diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json b/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
index cc1c882ac2c4..c6d80c7f07e7 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
@@ -1,11 +1,11 @@
{
- "commit": "c3f246bece34c122def67e59945e634490f205fe",
+ "commit": "d8ac17cb54e0da7beff2da9b906cf941922a4766",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
- "autorest_command": "autorest specification/app/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
+ "autorest_command": "autorest specification/app/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/app/resource-manager/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 af2e666061c1..4f9ddd750225 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py
@@ -28,13 +28,13 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
- :keyword api_version: Api Version. Default value is "2024-08-02-preview". Note that overriding
+ :keyword api_version: Api Version. Default value is "2024-10-02-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
- api_version: str = kwargs.pop("api_version", "2024-08-02-preview")
+ api_version: str = kwargs.pop("api_version", "2024-10-02-preview")
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 c9c41bc93026..f40a77a0bf18 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
@@ -36,6 +36,7 @@
ContainerAppsBuildsByContainerAppOperations,
ContainerAppsBuildsOperations,
ContainerAppsDiagnosticsOperations,
+ ContainerAppsLabelHistoryOperations,
ContainerAppsOperations,
ContainerAppsPatchesOperations,
ContainerAppsRevisionReplicasOperations,
@@ -47,10 +48,12 @@
DaprSubscriptionsOperations,
DotNetComponentsOperations,
FunctionsExtensionOperations,
+ HttpRouteConfigOperations,
JavaComponentsOperations,
JobsExecutionsOperations,
JobsOperations,
LogicAppsOperations,
+ MaintenanceConfigurationsOperations,
ManagedCertificatesOperations,
ManagedEnvironmentDiagnosticsOperations,
ManagedEnvironmentPrivateEndpointConnectionsOperations,
@@ -121,6 +124,9 @@ class ContainerAppsAPIClient(
:ivar container_apps_patches: ContainerAppsPatchesOperations operations
:vartype container_apps_patches:
azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations
+ :ivar container_apps_label_history: ContainerAppsLabelHistoryOperations operations
+ :vartype container_apps_label_history:
+ azure.mgmt.appcontainers.operations.ContainerAppsLabelHistoryOperations
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
:vartype container_apps_revisions:
azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations
@@ -175,6 +181,11 @@ class ContainerAppsAPIClient(
:vartype dapr_components: azure.mgmt.appcontainers.operations.DaprComponentsOperations
:ivar dapr_subscriptions: DaprSubscriptionsOperations operations
:vartype dapr_subscriptions: azure.mgmt.appcontainers.operations.DaprSubscriptionsOperations
+ :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
@@ -195,7 +206,7 @@ class ContainerAppsAPIClient(
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
- :keyword api_version: Api Version. Default value is "2024-08-02-preview". Note that overriding
+ :keyword api_version: Api Version. Default value is "2024-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
@@ -272,6 +283,9 @@ def __init__(
self.container_apps_patches = ContainerAppsPatchesOperations(
self._client, self._config, self._serialize, self._deserialize
)
+ self.container_apps_label_history = ContainerAppsLabelHistoryOperations(
+ self._client, self._config, self._serialize, self._deserialize
+ )
self.container_apps_revisions = ContainerAppsRevisionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
@@ -319,6 +333,12 @@ def __init__(
self.dapr_subscriptions = DaprSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
+ self.http_route_config = HttpRouteConfigOperations(
+ self._client, self._config, self._serialize, self._deserialize
+ )
+ self.maintenance_configurations = MaintenanceConfigurationsOperations(
+ self._client, self._config, self._serialize, self._deserialize
+ )
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(
self._client, self._config, self._serialize, self._deserialize
)
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 e46fe87dc038..e5754a47ce68 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 = "3.2.0b1"
+VERSION = "1.0.0b1"
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 8cae65231135..36434a81d4f8 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
@@ -28,13 +28,13 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
- :keyword api_version: Api Version. Default value is "2024-08-02-preview". Note that overriding
+ :keyword api_version: Api Version. Default value is "2024-10-02-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
- api_version: str = kwargs.pop("api_version", "2024-08-02-preview")
+ api_version: str = kwargs.pop("api_version", "2024-10-02-preview")
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 3bec301c96c4..32d22465acfb 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
@@ -36,6 +36,7 @@
ContainerAppsBuildsByContainerAppOperations,
ContainerAppsBuildsOperations,
ContainerAppsDiagnosticsOperations,
+ ContainerAppsLabelHistoryOperations,
ContainerAppsOperations,
ContainerAppsPatchesOperations,
ContainerAppsRevisionReplicasOperations,
@@ -47,10 +48,12 @@
DaprSubscriptionsOperations,
DotNetComponentsOperations,
FunctionsExtensionOperations,
+ HttpRouteConfigOperations,
JavaComponentsOperations,
JobsExecutionsOperations,
JobsOperations,
LogicAppsOperations,
+ MaintenanceConfigurationsOperations,
ManagedCertificatesOperations,
ManagedEnvironmentDiagnosticsOperations,
ManagedEnvironmentPrivateEndpointConnectionsOperations,
@@ -121,6 +124,9 @@ class ContainerAppsAPIClient(
:ivar container_apps_patches: ContainerAppsPatchesOperations operations
:vartype container_apps_patches:
azure.mgmt.appcontainers.aio.operations.ContainerAppsPatchesOperations
+ :ivar container_apps_label_history: ContainerAppsLabelHistoryOperations operations
+ :vartype container_apps_label_history:
+ azure.mgmt.appcontainers.aio.operations.ContainerAppsLabelHistoryOperations
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
:vartype container_apps_revisions:
azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations
@@ -177,6 +183,11 @@ class ContainerAppsAPIClient(
:ivar dapr_subscriptions: DaprSubscriptionsOperations operations
:vartype dapr_subscriptions:
azure.mgmt.appcontainers.aio.operations.DaprSubscriptionsOperations
+ :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
@@ -197,7 +208,7 @@ class ContainerAppsAPIClient(
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
- :keyword api_version: Api Version. Default value is "2024-08-02-preview". Note that overriding
+ :keyword api_version: Api Version. Default value is "2024-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
@@ -274,6 +285,9 @@ def __init__(
self.container_apps_patches = ContainerAppsPatchesOperations(
self._client, self._config, self._serialize, self._deserialize
)
+ self.container_apps_label_history = ContainerAppsLabelHistoryOperations(
+ self._client, self._config, self._serialize, self._deserialize
+ )
self.container_apps_revisions = ContainerAppsRevisionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
@@ -321,6 +335,12 @@ def __init__(
self.dapr_subscriptions = DaprSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
+ self.http_route_config = HttpRouteConfigOperations(
+ self._client, self._config, self._serialize, self._deserialize
+ )
+ self.maintenance_configurations = MaintenanceConfigurationsOperations(
+ self._client, self._config, self._serialize, self._deserialize
+ )
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(
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 f105aaf0a686..fed77a5ed4ea 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
@@ -22,6 +22,7 @@
from ._container_apps_builds_by_container_app_operations import ContainerAppsBuildsByContainerAppOperations
from ._container_apps_builds_operations import ContainerAppsBuildsOperations
from ._container_apps_patches_operations import ContainerAppsPatchesOperations
+from ._container_apps_label_history_operations import ContainerAppsLabelHistoryOperations
from ._container_apps_revisions_operations import ContainerAppsRevisionsOperations
from ._container_apps_revision_replicas_operations import ContainerAppsRevisionReplicasOperations
from ._container_apps_diagnostics_operations import ContainerAppsDiagnosticsOperations
@@ -46,6 +47,8 @@
from ._dapr_component_resiliency_policies_operations import DaprComponentResiliencyPoliciesOperations
from ._dapr_components_operations import DaprComponentsOperations
from ._dapr_subscriptions_operations import DaprSubscriptionsOperations
+from ._http_route_config_operations import HttpRouteConfigOperations
+from ._maintenance_configurations_operations import MaintenanceConfigurationsOperations
from ._managed_environments_storages_operations import ManagedEnvironmentsStoragesOperations
from ._container_apps_session_pools_operations import ContainerAppsSessionPoolsOperations
from ._container_apps_source_controls_operations import ContainerAppsSourceControlsOperations
@@ -73,6 +76,7 @@
"ContainerAppsBuildsByContainerAppOperations",
"ContainerAppsBuildsOperations",
"ContainerAppsPatchesOperations",
+ "ContainerAppsLabelHistoryOperations",
"ContainerAppsRevisionsOperations",
"ContainerAppsRevisionReplicasOperations",
"ContainerAppsDiagnosticsOperations",
@@ -95,6 +99,8 @@
"DaprComponentResiliencyPoliciesOperations",
"DaprComponentsOperations",
"DaprSubscriptionsOperations",
+ "HttpRouteConfigOperations",
+ "MaintenanceConfigurationsOperations",
"ManagedEnvironmentsStoragesOperations",
"ContainerAppsSessionPoolsOperations",
"ContainerAppsSourceControlsOperations",
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 963c94331810..ac26f3621ebd 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
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -18,14 +18,18 @@
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 ...operations._connected_environments_certificates_operations import (
@@ -212,8 +216,80 @@ async def get(
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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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:
+ 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)
+
+ 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 create_or_update(
+ async def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -222,7 +298,7 @@ async def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> AsyncLROPoller[_models.Certificate]:
"""Create or Update a Certificate.
Create or Update a Certificate.
@@ -239,13 +315,14 @@ async def create_or_update(
: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
+ :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 create_or_update(
+ async def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -254,7 +331,7 @@ async def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> AsyncLROPoller[_models.Certificate]:
"""Create or Update a Certificate.
Create or Update a Certificate.
@@ -271,20 +348,21 @@ async def create_or_update(
: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
+ :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 create_or_update(
+ 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
- ) -> _models.Certificate:
+ ) -> AsyncLROPoller[_models.Certificate]:
"""Create or Update a Certificate.
Create or Update a Certificate.
@@ -299,10 +377,65 @@ async def create_or_update(
: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
+ :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._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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -311,61 +444,55 @@ 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 = 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:
- if certificate_envelope is not None:
- _json = self._serialize.body(certificate_envelope, "Certificate")
- else:
- _json = None
+ cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
- _request = build_create_or_update_request(
+ _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,
- content_type=content_type,
- json=_json,
- content=_content,
headers=_headers,
params=_params,
)
_request.url = self._client.format_url(_request.url)
- _stream = False
+ _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]:
+ 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.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)
+ 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, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
return deserialized # type: ignore
@distributed_trace_async
- async def delete( # pylint: disable=inconsistent-return-statements
+ async def begin_delete(
self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any
- ) -> None:
+ ) -> AsyncLROPoller[None]:
"""Deletes the specified Certificate.
Deletes the specified Certificate.
@@ -377,10 +504,61 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type connected_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
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
+ _headers = kwargs.pop("headers", {}) 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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -389,40 +567,65 @@ async def delete( # pylint: disable=inconsistent-return-statements
}
error_map.update(kwargs.pop("error_map", {}) or {})
- _headers = kwargs.pop("headers", {}) or {}
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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)
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
- _request = build_delete_request(
+ 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)
- _stream = False
+ _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, 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):
+ 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)
+ 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, None, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
@overload
- async def update(
+ async def begin_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -431,7 +634,7 @@ async def update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> AsyncLROPoller[_models.Certificate]:
"""Update properties of a certificate.
Patches a certificate. Currently only patching of tags is supported.
@@ -448,13 +651,14 @@ async def update(
: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
+ :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 update(
+ async def begin_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -463,7 +667,7 @@ async def update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> AsyncLROPoller[_models.Certificate]:
"""Update properties of a certificate.
Patches a certificate. Currently only patching of tags is supported.
@@ -480,20 +684,21 @@ async def update(
: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
+ :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 update(
+ 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
- ) -> _models.Certificate:
+ ) -> AsyncLROPoller[_models.Certificate]:
"""Update properties of a certificate.
Patches a certificate. Currently only patching of tags is supported.
@@ -508,62 +713,57 @@ async def update(
: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
+ :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:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) 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)
- 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)
+ 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
- _stream = False
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
+ 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
)
-
- response = pipeline_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("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_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py
index d892729a6bac..16ad32e823c7 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
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -18,14 +18,18 @@
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 ...operations._connected_environments_dapr_components_operations import (
@@ -66,7 +70,7 @@ def __init__(self, *args, **kwargs) -> None:
@distributed_trace
def list(
self, resource_group_name: str, connected_environment_name: str, **kwargs: Any
- ) -> AsyncIterable["_models.DaprComponent"]:
+ ) -> AsyncIterable["_models.ConnectedEnvironmentDaprComponent"]:
"""Get the Dapr Components for a connected environment.
Get the Dapr Components for a connected environment.
@@ -76,15 +80,17 @@ def list(
: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]
+ :return: An iterator like instance of either ConnectedEnvironmentDaprComponent or the result of
+ cls(response)
+ :rtype:
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) 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)
+ cls: ClsType[_models.ConnectedEnvironmentDaprComponentsCollection] = kwargs.pop("cls", None)
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
@@ -125,7 +131,7 @@ def prepare_request(next_link=None):
return _request
async def extract_data(pipeline_response):
- deserialized = self._deserialize("DaprComponentsCollection", pipeline_response)
+ deserialized = self._deserialize("ConnectedEnvironmentDaprComponentsCollection", pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
@@ -152,7 +158,7 @@ async def get_next(next_link=None):
@distributed_trace_async
async def get(
self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> _models.ConnectedEnvironmentDaprComponent:
"""Get a dapr component.
Get a dapr component.
@@ -164,8 +170,8 @@ async def get(
: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
+ :return: ConnectedEnvironmentDaprComponent or the result of cls(response)
+ :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = {
@@ -180,7 +186,7 @@ async def get(
_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)
+ cls: ClsType[_models.ConnectedEnvironmentDaprComponent] = kwargs.pop("cls", None)
_request = build_get_request(
resource_group_name=resource_group_name,
@@ -205,7 +211,76 @@ async def get(
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)
+ deserialized = self._deserialize("ConnectedEnvironmentDaprComponent", 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.ConnectedEnvironmentDaprComponent, IO[bytes]],
+ **kwargs: Any
+ ) -> AsyncIterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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, "ConnectedEnvironmentDaprComponent")
+
+ _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)
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -213,16 +288,16 @@ async def get(
return deserialized # type: ignore
@overload
- async def create_or_update(
+ async def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
component_name: str,
- dapr_component_envelope: _models.DaprComponent,
+ dapr_component_envelope: _models.ConnectedEnvironmentDaprComponent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> AsyncLROPoller[_models.ConnectedEnvironmentDaprComponent]:
"""Creates or updates a Dapr Component.
Creates or updates a Dapr Component in a connected environment.
@@ -235,17 +310,20 @@ async def create_or_update(
: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
+ :type dapr_component_envelope:
+ ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent
: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
+ :return: An instance of AsyncLROPoller that returns either ConnectedEnvironmentDaprComponent or
+ the result of cls(response)
+ :rtype:
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def create_or_update(
+ async def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -254,7 +332,7 @@ async def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> AsyncLROPoller[_models.ConnectedEnvironmentDaprComponent]:
"""Creates or updates a Dapr Component.
Creates or updates a Dapr Component in a connected environment.
@@ -271,20 +349,22 @@ async def create_or_update(
: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
+ :return: An instance of AsyncLROPoller that returns either ConnectedEnvironmentDaprComponent or
+ the result of cls(response)
+ :rtype:
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace_async
- async def 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, IO[bytes]],
+ dapr_component_envelope: Union[_models.ConnectedEnvironmentDaprComponent, IO[bytes]],
**kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> AsyncLROPoller[_models.ConnectedEnvironmentDaprComponent]:
"""Creates or updates a Dapr Component.
Creates or updates a Dapr Component in a connected environment.
@@ -297,12 +377,69 @@ async def create_or_update(
: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
+ ConnectedEnvironmentDaprComponent type or a IO[bytes] type. Required.
+ :type dapr_component_envelope:
+ ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent or IO[bytes]
+ :return: An instance of AsyncLROPoller that returns either ConnectedEnvironmentDaprComponent or
+ the result of cls(response)
+ :rtype:
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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.ConnectedEnvironmentDaprComponent] = kwargs.pop("cls", None)
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = 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("ConnectedEnvironmentDaprComponent", 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.ConnectedEnvironmentDaprComponent].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return AsyncLROPoller[_models.ConnectedEnvironmentDaprComponent](
+ 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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -311,58 +448,55 @@ 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 = 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)
+ 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(
+ _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,
- content_type=content_type,
- json=_json,
- content=_content,
headers=_headers,
params=_params,
)
_request.url = self._client.format_url(_request.url)
- _stream = False
+ _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]:
+ 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.DefaultErrorResponse, pipeline_response)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- deserialized = self._deserialize("DaprComponent", pipeline_response.http_response)
+ 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, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
return deserialized # type: ignore
@distributed_trace_async
- async def delete( # pylint: disable=inconsistent-return-statements
+ async def begin_delete(
self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any
- ) -> None:
+ ) -> AsyncLROPoller[None]:
"""Delete a Dapr Component.
Delete a Dapr Component from a connected environment.
@@ -374,49 +508,52 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type connected_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
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
_headers = kwargs.pop("headers", {}) 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)
- _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)
-
- _stream = False
- pipeline_response: PipelineResponse = await 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)
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
+ if cls:
+ return cls(pipeline_response, None, {}) # type: ignore
- 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(
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 00be8a0cd8f8..fae30450a8e6 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
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -16,13 +16,17 @@
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 ...operations._connected_environments_storages_operations import (
@@ -182,8 +186,77 @@ async def get(
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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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)
+
+ 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 create_or_update(
+ async def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -192,7 +265,7 @@ async def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.ConnectedEnvironmentStorage:
+ ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]:
"""Create or update storage for a connectedEnvironment.
Create or update storage for a connectedEnvironment.
@@ -209,13 +282,15 @@ async def create_or_update(
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: ConnectedEnvironmentStorage or the result of cls(response)
- :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage
+ :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 create_or_update(
+ async def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -224,7 +299,7 @@ async def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.ConnectedEnvironmentStorage:
+ ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]:
"""Create or update storage for a connectedEnvironment.
Create or update storage for a connectedEnvironment.
@@ -241,20 +316,22 @@ async def create_or_update(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: ConnectedEnvironmentStorage or the result of cls(response)
- :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage
+ :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 create_or_update(
+ 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
- ) -> _models.ConnectedEnvironmentStorage:
+ ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]:
"""Create or update storage for a connectedEnvironment.
Create or update storage for a connectedEnvironment.
@@ -270,10 +347,66 @@ async def create_or_update(
ConnectedEnvironmentStorage type or a IO[bytes] type. Required.
:type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or
IO[bytes]
- :return: ConnectedEnvironmentStorage or the result of cls(response)
- :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage
+ :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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -282,58 +415,55 @@ 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 = 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)
+ 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(
+ _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,
- content_type=content_type,
- json=_json,
- content=_content,
headers=_headers,
params=_params,
)
_request.url = self._client.format_url(_request.url)
- _stream = False
+ _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]:
+ 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.DefaultErrorResponse, pipeline_response)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_response)
+ 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, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
return deserialized # type: ignore
@distributed_trace_async
- async def delete( # pylint: disable=inconsistent-return-statements
+ async def begin_delete(
self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any
- ) -> None:
+ ) -> AsyncLROPoller[None]:
"""Delete storage for a connectedEnvironment.
Delete storage for a connectedEnvironment.
@@ -345,46 +475,49 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type connected_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
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
_headers = kwargs.pop("headers", {}) 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,
- 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, 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
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", 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_label_history_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_label_history_operations.py
new file mode 100644
index 000000000000..c122bb4f8ae3
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_label_history_operations.py
@@ -0,0 +1,212 @@
+# pylint: disable=too-many-lines,too-many-statements
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+import sys
+from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
+import urllib.parse
+
+from azure.core.async_paging import AsyncItemPaged, AsyncList
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ ResourceNotModifiedError,
+ map_error,
+)
+from azure.core.pipeline import PipelineResponse
+from azure.core.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 ...operations._container_apps_label_history_operations import (
+ build_get_label_history_request,
+ build_list_label_history_request,
+)
+
+if sys.version_info >= (3, 9):
+ from collections.abc import MutableMapping
+else:
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+T = TypeVar("T")
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
+
+
+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.
+ """
+
+ models = _models
+
+ def __init__(self, *args, **kwargs) -> None:
+ input_args = list(args)
+ self._client = input_args.pop(0) if input_args else kwargs.pop("client")
+ self._config = input_args.pop(0) if input_args else kwargs.pop("config")
+ self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
+ self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
+
+ @distributed_trace
+ def list_label_history(
+ self, resource_group_name: str, container_app_name: str, filter: Optional[str] = None, **kwargs: Any
+ ) -> AsyncIterable["_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
+ :param filter: The filter to apply on the operation. Default value is None.
+ :type filter: str
+ :return: An iterator like instance of either LabelHistory or the result of cls(response)
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.LabelHistory]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) 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.LabelHistoryCollection] = kwargs.pop("cls", None)
+
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ def prepare_request(next_link=None):
+ if not next_link:
+
+ _request = build_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=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("LabelHistoryCollection", pipeline_response)
+ list_of_elem = deserialized.value
+ if cls:
+ list_of_elem = cls(list_of_elem) # type: ignore
+ return deserialized.next_link or None, AsyncList(list_of_elem)
+
+ async def get_next(next_link=None):
+ _request = prepare_request(next_link)
+
+ _stream = False
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ response = pipeline_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_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 Container App label. Required.
+ :type label_name: str
+ :return: LabelHistory or the result of cls(response)
+ :rtype: ~azure.mgmt.appcontainers.models.LabelHistory
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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.LabelHistory] = kwargs.pop("cls", None)
+
+ _request = build_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=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("LabelHistory", 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
new file mode 100644
index 000000000000..32e2415b65c1
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py
@@ -0,0 +1,574 @@
+# pylint: disable=too-many-lines,too-many-statements
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from io import IOBase
+import sys
+from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+import urllib.parse
+
+from azure.core.async_paging import AsyncItemPaged, AsyncList
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ ResourceNotModifiedError,
+ map_error,
+)
+from azure.core.pipeline import PipelineResponse
+from azure.core.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 ...operations._http_route_config_operations import (
+ build_create_or_update_request,
+ build_delete_request,
+ build_get_request,
+ build_list_request,
+ build_update_request,
+)
+
+if sys.version_info >= (3, 9):
+ from collections.abc import MutableMapping
+else:
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+T = TypeVar("T")
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
+
+
+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 = input_args.pop(0) if input_args else kwargs.pop("client")
+ self._config = input_args.pop(0) if input_args else kwargs.pop("config")
+ self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
+ self._deserialize = 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 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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:
+ 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 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 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 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 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 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 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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
+
+ @distributed_trace_async
+ async def delete( # pylint: disable=inconsistent-return-statements
+ self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any
+ ) -> 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 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: None or the result of cls(response)
+ :rtype: None
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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,
+ 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, 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(
+ self, resource_group_name: str, environment_name: str, **kwargs: Any
+ ) -> AsyncIterable["_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 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.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/_maintenance_configurations_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py
new file mode 100644
index 000000000000..8f8e164644a9
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py
@@ -0,0 +1,413 @@
+# pylint: disable=too-many-lines,too-many-statements
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from io import IOBase
+import sys
+from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+import urllib.parse
+
+from azure.core.async_paging import AsyncItemPaged, AsyncList
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ ResourceNotModifiedError,
+ map_error,
+)
+from azure.core.pipeline import PipelineResponse
+from azure.core.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 ...operations._maintenance_configurations_operations import (
+ build_create_or_update_request,
+ build_delete_request,
+ build_get_request,
+ build_list_request,
+)
+
+if sys.version_info >= (3, 9):
+ from collections.abc import MutableMapping
+else:
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+T = TypeVar("T")
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
+
+
+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 = input_args.pop(0) if input_args else kwargs.pop("client")
+ self._config = input_args.pop(0) if input_args else kwargs.pop("config")
+ self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
+ self._deserialize = 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
+ ) -> AsyncIterable["_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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.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.DefaultErrorResponse, 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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.DefaultErrorResponse, 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( # 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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.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 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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.DefaultErrorResponse, 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/models/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py
index d6a2ce622d06..804959be5c91 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
@@ -54,6 +54,9 @@
from ._models_py3 import Configuration
from ._models_py3 import ConnectedEnvironment
from ._models_py3 import ConnectedEnvironmentCollection
+from ._models_py3 import ConnectedEnvironmentDaprComponent
+from ._models_py3 import ConnectedEnvironmentDaprComponentProperties
+from ._models_py3 import ConnectedEnvironmentDaprComponentsCollection
from ._models_py3 import ConnectedEnvironmentStorage
from ._models_py3 import ConnectedEnvironmentStorageProperties
from ._models_py3 import ConnectedEnvironmentStoragesCollection
@@ -88,6 +91,7 @@
from ._models_py3 import CustomScaleRule
from ._models_py3 import Dapr
from ._models_py3 import DaprComponent
+from ._models_py3 import DaprComponentProperties
from ._models_py3 import DaprComponentResiliencyPoliciesCollection
from ._models_py3 import DaprComponentResiliencyPolicy
from ._models_py3 import DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration
@@ -151,6 +155,15 @@
from ._models_py3 import HttpConnectionPool
from ._models_py3 import HttpGet
from ._models_py3 import HttpRetryPolicy
+from ._models_py3 import HttpRoute
+from ._models_py3 import HttpRouteAction
+from ._models_py3 import HttpRouteConfig
+from ._models_py3 import HttpRouteConfigCollection
+from ._models_py3 import HttpRouteConfigProperties
+from ._models_py3 import HttpRouteMatch
+from ._models_py3 import HttpRouteProvisioningErrors
+from ._models_py3 import HttpRouteRule
+from ._models_py3 import HttpRouteTarget
from ._models_py3 import HttpScaleRule
from ._models_py3 import HttpSettings
from ._models_py3 import HttpSettingsRoutes
@@ -187,6 +200,10 @@
from ._models_py3 import JobsCollection
from ._models_py3 import JwtClaimChecks
from ._models_py3 import KedaConfiguration
+from ._models_py3 import LabelHistory
+from ._models_py3 import LabelHistoryCollection
+from ._models_py3 import LabelHistoryProperties
+from ._models_py3 import LabelHistoryRecordItem
from ._models_py3 import ListUsagesResult
from ._models_py3 import LogAnalyticsConfiguration
from ._models_py3 import LoggerSetting
@@ -195,6 +212,8 @@
from ._models_py3 import LoginRoutes
from ._models_py3 import LoginScopes
from ._models_py3 import LogsConfiguration
+from ._models_py3 import MaintenanceConfigurationCollection
+from ._models_py3 import MaintenanceConfigurationResource
from ._models_py3 import ManagedCertificate
from ._models_py3 import ManagedCertificateCollection
from ._models_py3 import ManagedCertificatePatch
@@ -207,6 +226,7 @@
from ._models_py3 import ManagedEnvironmentStorageProperties
from ._models_py3 import ManagedEnvironmentStoragesCollection
from ._models_py3 import ManagedEnvironmentsCollection
+from ._models_py3 import ManagedIdentitySetting
from ._models_py3 import ManagedServiceIdentity
from ._models_py3 import MetricsConfiguration
from ._models_py3 import Mtls
@@ -255,6 +275,7 @@
from ._models_py3 import ScaleRule
from ._models_py3 import ScaleRuleAuth
from ._models_py3 import ScgRoute
+from ._models_py3 import ScheduledEntry
from ._models_py3 import Secret
from ._models_py3 import SecretVolumeItem
from ._models_py3 import SecretsCollection
@@ -317,10 +338,13 @@
from ._container_apps_api_client_enums import CertificateProvisioningState
from ._container_apps_api_client_enums import CertificateType
from ._container_apps_api_client_enums import CheckNameAvailabilityReason
+from ._container_apps_api_client_enums import ConnectedEnvironmentDaprComponentProvisioningState
from ._container_apps_api_client_enums import ConnectedEnvironmentProvisioningState
+from ._container_apps_api_client_enums import ConnectedEnvironmentStorageProvisioningState
from ._container_apps_api_client_enums import ContainerAppContainerRunningState
from ._container_apps_api_client_enums import ContainerAppProvisioningState
from ._container_apps_api_client_enums import ContainerAppReplicaRunningState
+from ._container_apps_api_client_enums import ContainerAppRunningStatus
from ._container_apps_api_client_enums import ContainerType
from ._container_apps_api_client_enums import CookieExpirationConvention
from ._container_apps_api_client_enums import CreatedByType
@@ -332,6 +356,7 @@
from ._container_apps_api_client_enums import ExecutionType
from ._container_apps_api_client_enums import ExtendedLocationTypes
from ._container_apps_api_client_enums import ForwardProxyConvention
+from ._container_apps_api_client_enums import HttpRouteProvisioningState
from ._container_apps_api_client_enums import IdentitySettingsLifeCycle
from ._container_apps_api_client_enums import ImageType
from ._container_apps_api_client_enums import IngressClientCertificateMode
@@ -366,6 +391,7 @@
from ._container_apps_api_client_enums import TriggerType
from ._container_apps_api_client_enums import Type
from ._container_apps_api_client_enums import UnauthenticatedClientActionV2
+from ._container_apps_api_client_enums import WeekDay
from ._container_apps_api_client_enums import WorkflowHealthState
from ._container_apps_api_client_enums import WorkflowState
from ._patch import __all__ as _patch_all
@@ -421,6 +447,9 @@
"Configuration",
"ConnectedEnvironment",
"ConnectedEnvironmentCollection",
+ "ConnectedEnvironmentDaprComponent",
+ "ConnectedEnvironmentDaprComponentProperties",
+ "ConnectedEnvironmentDaprComponentsCollection",
"ConnectedEnvironmentStorage",
"ConnectedEnvironmentStorageProperties",
"ConnectedEnvironmentStoragesCollection",
@@ -455,6 +484,7 @@
"CustomScaleRule",
"Dapr",
"DaprComponent",
+ "DaprComponentProperties",
"DaprComponentResiliencyPoliciesCollection",
"DaprComponentResiliencyPolicy",
"DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration",
@@ -518,6 +548,15 @@
"HttpConnectionPool",
"HttpGet",
"HttpRetryPolicy",
+ "HttpRoute",
+ "HttpRouteAction",
+ "HttpRouteConfig",
+ "HttpRouteConfigCollection",
+ "HttpRouteConfigProperties",
+ "HttpRouteMatch",
+ "HttpRouteProvisioningErrors",
+ "HttpRouteRule",
+ "HttpRouteTarget",
"HttpScaleRule",
"HttpSettings",
"HttpSettingsRoutes",
@@ -554,6 +593,10 @@
"JobsCollection",
"JwtClaimChecks",
"KedaConfiguration",
+ "LabelHistory",
+ "LabelHistoryCollection",
+ "LabelHistoryProperties",
+ "LabelHistoryRecordItem",
"ListUsagesResult",
"LogAnalyticsConfiguration",
"LoggerSetting",
@@ -562,6 +605,8 @@
"LoginRoutes",
"LoginScopes",
"LogsConfiguration",
+ "MaintenanceConfigurationCollection",
+ "MaintenanceConfigurationResource",
"ManagedCertificate",
"ManagedCertificateCollection",
"ManagedCertificatePatch",
@@ -574,6 +619,7 @@
"ManagedEnvironmentStorageProperties",
"ManagedEnvironmentStoragesCollection",
"ManagedEnvironmentsCollection",
+ "ManagedIdentitySetting",
"ManagedServiceIdentity",
"MetricsConfiguration",
"Mtls",
@@ -622,6 +668,7 @@
"ScaleRule",
"ScaleRuleAuth",
"ScgRoute",
+ "ScheduledEntry",
"Secret",
"SecretVolumeItem",
"SecretsCollection",
@@ -683,10 +730,13 @@
"CertificateProvisioningState",
"CertificateType",
"CheckNameAvailabilityReason",
+ "ConnectedEnvironmentDaprComponentProvisioningState",
"ConnectedEnvironmentProvisioningState",
+ "ConnectedEnvironmentStorageProvisioningState",
"ContainerAppContainerRunningState",
"ContainerAppProvisioningState",
"ContainerAppReplicaRunningState",
+ "ContainerAppRunningStatus",
"ContainerType",
"CookieExpirationConvention",
"CreatedByType",
@@ -698,6 +748,7 @@
"ExecutionType",
"ExtendedLocationTypes",
"ForwardProxyConvention",
+ "HttpRouteProvisioningState",
"IdentitySettingsLifeCycle",
"ImageType",
"IngressClientCertificateMode",
@@ -732,6 +783,7 @@
"TriggerType",
"Type",
"UnauthenticatedClientActionV2",
+ "WeekDay",
"WorkflowHealthState",
"WorkflowState",
]
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 5466c525adcb..380d55bd8aa7 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
@@ -32,13 +32,15 @@ class ActiveRevisionsMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
.. 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"
SINGLE = "Single"
+ LABELS = "Labels"
class Affinity(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -69,6 +71,7 @@ class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DISABLED = "Disabled"
SNI_ENABLED = "SniEnabled"
+ AUTO = "Auto"
class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -129,6 +132,15 @@ class CheckNameAvailabilityReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
ALREADY_EXISTS = "AlreadyExists"
+class ConnectedEnvironmentDaprComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ """Provisioning state of the Connected Environment Dapr Component."""
+
+ SUCCEEDED = "Succeeded"
+ FAILED = "Failed"
+ CANCELED = "Canceled"
+ IN_PROGRESS = "InProgress"
+
+
class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the Kubernetes Environment."""
@@ -142,6 +154,15 @@ class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitive
SCHEDULED_FOR_DELETE = "ScheduledForDelete"
+class ConnectedEnvironmentStorageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ """Provisioning state of the storage."""
+
+ SUCCEEDED = "Succeeded"
+ FAILED = "Failed"
+ CANCELED = "Canceled"
+ IN_PROGRESS = "InProgress"
+
+
class ContainerAppContainerRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current running state of the container."""
@@ -168,6 +189,21 @@ class ContainerAppReplicaRunningState(str, Enum, metaclass=CaseInsensitiveEnumMe
UNKNOWN = "Unknown"
+class ContainerAppRunningStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ """Running status of the Container App."""
+
+ PROGRESSING = "Progressing"
+ """Container App is transitioning between Stopped and Running states."""
+ RUNNING = "Running"
+ """Container App is in Running state."""
+ STOPPED = "Stopped"
+ """Container App is in Stopped state."""
+ SUSPENDED = "Suspended"
+ """Container App Job is in Suspended state."""
+ READY = "Ready"
+ """Container App Job is in Ready state."""
+
+
class ContainerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The container type of the sessions."""
@@ -258,6 +294,18 @@ class ForwardProxyConvention(str, Enum, metaclass=CaseInsensitiveEnumMeta):
CUSTOM = "Custom"
+class HttpRouteProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ """The current provisioning state."""
+
+ SUCCEEDED = "Succeeded"
+ FAILED = "Failed"
+ CANCELED = "Canceled"
+ WAITING = "Waiting"
+ UPDATING = "Updating"
+ DELETING = "Deleting"
+ PENDING = "Pending"
+
+
class IdentitySettingsLifeCycle(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Use to select the lifecycle stages of a Container App during which the Managed Identity should
be available.
@@ -579,6 +627,20 @@ class UnauthenticatedClientActionV2(str, Enum, metaclass=CaseInsensitiveEnumMeta
RETURN403 = "Return403"
+class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ """Day of the week when a managed environment can be patched."""
+
+ MONDAY = "Monday"
+ TUESDAY = "Tuesday"
+ WEDNESDAY = "Wednesday"
+ THURSDAY = "Thursday"
+ FRIDAY = "Friday"
+ SATURDAY = "Saturday"
+ SUNDAY = "Sunday"
+ EVERYDAY = "Everyday"
+ WEEKEND = "Weekend"
+
+
class WorkflowHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Gets or sets the workflow health state."""
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 fae7ddf612a3..9f17aa45ae56 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
@@ -1361,29 +1361,55 @@ def __init__(
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.
+ 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
"""
- _validation = {
- "sas_url_setting_name": {"required": True},
- }
-
_attribute_map = {
"sas_url_setting_name": {"key": "sasUrlSettingName", "type": "str"},
+ "blob_container_uri": {"key": "blobContainerUri", "type": "str"},
+ "client_id": {"key": "clientId", "type": "str"},
+ "managed_identity_resource_id": {"key": "managedIdentityResourceId", "type": "str"},
}
- def __init__(self, *, sas_url_setting_name: str, **kwargs: Any) -> None:
+ 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,
+ **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.
+ storage containing the tokens. Should not be used along with blobContainerUri.
:paramtype sas_url_setting_name: str
+ :keyword blob_container_uri: The URI of the blob storage containing the tokens. Should not be
+ used along with sasUrlSettingName.
+ :paramtype blob_container_uri: str
+ :keyword client_id: The Client ID of a User-Assigned Managed Identity. Should not be used along
+ with managedIdentityResourceId.
+ :paramtype client_id: str
+ :keyword managed_identity_resource_id: The Resource ID of a User-Assigned Managed Identity.
+ Should not be used along with clientId.
+ :paramtype managed_identity_resource_id: str
"""
super().__init__(**kwargs)
self.sas_url_setting_name = sas_url_setting_name
+ self.blob_container_uri = blob_container_uri
+ self.client_id = client_id
+ self.managed_identity_resource_id = managed_identity_resource_id
class BuildCollection(_serialization.Model):
@@ -1963,6 +1989,8 @@ class CertificateProperties(_serialization.Model): # pylint: disable=too-many-i
"Failed", "Canceled", "DeleteFailed", and "Pending".
: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
@@ -1994,6 +2022,7 @@ class CertificateProperties(_serialization.Model): # pylint: disable=too-many-i
_validation = {
"provisioning_state": {"readonly": True},
+ "deployment_errors": {"readonly": True},
"subject_name": {"readonly": True},
"subject_alternative_names": {"readonly": True},
"issuer": {"readonly": True},
@@ -2006,6 +2035,7 @@ class CertificateProperties(_serialization.Model): # pylint: disable=too-many-i
_attribute_map = {
"provisioning_state": {"key": "provisioningState", "type": "str"},
+ "deployment_errors": {"key": "deploymentErrors", "type": "str"},
"certificate_key_vault_properties": {
"key": "certificateKeyVaultProperties",
"type": "CertificateKeyVaultProperties",
@@ -2047,6 +2077,7 @@ def __init__(
"""
super().__init__(**kwargs)
self.provisioning_state = None
+ self.deployment_errors = None
self.certificate_key_vault_properties = certificate_key_vault_properties
self.password = password
self.subject_name = None
@@ -2202,7 +2233,7 @@ def __init__(
self.client_secret_setting_name = client_secret_setting_name
-class Configuration(_serialization.Model):
+class Configuration(_serialization.Model): # pylint: disable=too-many-instance-attributes
"""Non versioned Container App configuration properties that define the mutable settings of a
Container app.
@@ -2214,10 +2245,15 @@ class Configuration(_serialization.Model):
.. 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".
+ - 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
@@ -2229,6 +2265,10 @@ class Configuration(_serialization.Model):
: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
@@ -2236,14 +2276,20 @@ class Configuration(_serialization.Model):
:vartype identity_settings: list[~azure.mgmt.appcontainers.models.IdentitySettings]
"""
+ _validation = {
+ "revision_transition_threshold": {"maximum": 100, "minimum": 1},
+ }
+
_attribute_map = {
"secrets": {"key": "secrets", "type": "[Secret]"},
"active_revisions_mode": {"key": "activeRevisionsMode", "type": "str"},
+ "target_label": {"key": "targetLabel", "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"},
+ "revision_transition_threshold": {"key": "revisionTransitionThreshold", "type": "int"},
"service": {"key": "service", "type": "Service"},
"identity_settings": {"key": "identitySettings", "type": "[IdentitySettings]"},
}
@@ -2253,11 +2299,13 @@ def __init__(
*,
secrets: Optional[List["_models.Secret"]] = None,
active_revisions_mode: Union[str, "_models.ActiveRevisionsMode"] = "Single",
+ 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,
**kwargs: Any
@@ -2271,10 +2319,15 @@ def __init__(
.. 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".
+ - 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".
:paramtype active_revisions_mode: str or ~azure.mgmt.appcontainers.models.ActiveRevisionsMode
+ :keyword target_label: Required in labels revisions mode. Label to apply to newly created
+ revision.
+ :paramtype target_label: str
:keyword ingress: Ingress configurations.
:paramtype ingress: ~azure.mgmt.appcontainers.models.Ingress
:keyword registries: Collection of private container registry credentials for containers used
@@ -2286,6 +2339,10 @@ def __init__(
: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 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.
+ :paramtype revision_transition_threshold: 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
@@ -2295,11 +2352,13 @@ def __init__(
super().__init__(**kwargs)
self.secrets = secrets
self.active_revisions_mode = active_revisions_mode
+ self.target_label = target_label
self.ingress = ingress
self.registries = registries
self.dapr = dapr
self.runtime = runtime
self.max_inactive_revisions = max_inactive_revisions
+ self.revision_transition_threshold = revision_transition_threshold
self.service = service
self.identity_settings = identity_settings
@@ -2434,10 +2493,355 @@ class ConnectedEnvironmentCollection(_serialization.Model):
"next_link": {"key": "nextLink", "type": "str"},
}
- def __init__(self, *, value: Optional[List["_models.ConnectedEnvironment"]] = None, **kwargs: Any) -> None:
+ 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 = None
+
+
+class ConnectedEnvironmentDaprComponent(ProxyResource): # pylint: disable=too-many-instance-attributes
+ """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}". # pylint: disable=line-too-long
+ :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 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", and "InProgress".
+ :vartype provisioning_state: str or
+ ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponentProvisioningState
+ :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]"},
+ "service_component_bind": {"key": "properties.serviceComponentBind", "type": "[DaprComponentServiceBinding]"},
+ "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,
+ service_component_bind: Optional[List["_models.DaprComponentServiceBinding"]] = 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]
+ :keyword service_component_bind: List of container app services that are bound to the Dapr
+ component.
+ :paramtype service_component_bind:
+ list[~azure.mgmt.appcontainers.models.DaprComponentServiceBinding]
+ """
+ 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.service_component_bind = service_component_bind
+ self.provisioning_state = None
+ self.deployment_errors = None
+
+
+class DaprComponentProperties(_serialization.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]
+ """
+
+ _attribute_map = {
+ "component_type": {"key": "componentType", "type": "str"},
+ "version": {"key": "version", "type": "str"},
+ "ignore_errors": {"key": "ignoreErrors", "type": "bool"},
+ "init_timeout": {"key": "initTimeout", "type": "str"},
+ "secrets": {"key": "secrets", "type": "[Secret]"},
+ "secret_store_component": {"key": "secretStoreComponent", "type": "str"},
+ "metadata": {"key": "metadata", "type": "[DaprMetadata]"},
+ "scopes": {"key": "scopes", "type": "[str]"},
+ "service_component_bind": {"key": "serviceComponentBind", "type": "[DaprComponentServiceBinding]"},
+ }
+
+ 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,
+ service_component_bind: Optional[List["_models.DaprComponentServiceBinding"]] = 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]
+ :keyword service_component_bind: List of container app services that are bound to the Dapr
+ component.
+ :paramtype service_component_bind:
+ list[~azure.mgmt.appcontainers.models.DaprComponentServiceBinding]
+ """
+ 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.service_component_bind = service_component_bind
+
+
+class ConnectedEnvironmentDaprComponentProperties(
+ DaprComponentProperties
+): # pylint: disable=too-many-instance-attributes,name-too-long
+ """Dapr component properties.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :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", and "InProgress".
+ :vartype provisioning_state: str or
+ ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponentProvisioningState
+ :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 = {
+ "component_type": {"key": "componentType", "type": "str"},
+ "version": {"key": "version", "type": "str"},
+ "ignore_errors": {"key": "ignoreErrors", "type": "bool"},
+ "init_timeout": {"key": "initTimeout", "type": "str"},
+ "secrets": {"key": "secrets", "type": "[Secret]"},
+ "secret_store_component": {"key": "secretStoreComponent", "type": "str"},
+ "metadata": {"key": "metadata", "type": "[DaprMetadata]"},
+ "scopes": {"key": "scopes", "type": "[str]"},
+ "service_component_bind": {"key": "serviceComponentBind", "type": "[DaprComponentServiceBinding]"},
+ "provisioning_state": {"key": "provisioningState", "type": "str"},
+ "deployment_errors": {"key": "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,
+ service_component_bind: Optional[List["_models.DaprComponentServiceBinding"]] = 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]
+ :keyword service_component_bind: List of container app services that are bound to the Dapr
+ component.
+ :paramtype service_component_bind:
+ list[~azure.mgmt.appcontainers.models.DaprComponentServiceBinding]
+ """
+ super().__init__(
+ component_type=component_type,
+ version=version,
+ ignore_errors=ignore_errors,
+ init_timeout=init_timeout,
+ secrets=secrets,
+ secret_store_component=secret_store_component,
+ metadata=metadata,
+ scopes=scopes,
+ service_component_bind=service_component_bind,
+ **kwargs
+ )
+ self.provisioning_state = None
+ self.deployment_errors = None
+
+
+class ConnectedEnvironmentDaprComponentsCollection(_serialization.Model): # pylint: disable=name-too-long
+ """Collection of Dapr Components for 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 Dapr component resources. Required.
+ :vartype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
+ :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": "[ConnectedEnvironmentDaprComponent]"},
+ "next_link": {"key": "nextLink", "type": "str"},
+ }
+
+ def __init__(self, *, value: List["_models.ConnectedEnvironmentDaprComponent"], **kwargs: Any) -> None:
"""
- :keyword value: Collection of resources.
- :paramtype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironment]
+ :keyword value: Collection of Dapr component resources. Required.
+ :paramtype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
"""
super().__init__(**kwargs)
self.value = value
@@ -2493,13 +2897,28 @@ def __init__(
class ConnectedEnvironmentStorageProperties(_serialization.Model):
"""Storage properties.
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provisioning_state: Provisioning state of the storage. Known values are: "Succeeded",
+ "Failed", "Canceled", and "InProgress".
+ :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
"""
+ _validation = {
+ "provisioning_state": {"readonly": True},
+ "deployment_errors": {"readonly": True},
+ }
+
_attribute_map = {
+ "provisioning_state": {"key": "provisioningState", "type": "str"},
+ "deployment_errors": {"key": "deploymentErrors", "type": "str"},
"azure_file": {"key": "azureFile", "type": "AzureFileProperties"},
"smb": {"key": "smb", "type": "SmbStorage"},
}
@@ -2518,6 +2937,8 @@ def __init__(
:paramtype smb: ~azure.mgmt.appcontainers.models.SmbStorage
"""
super().__init__(**kwargs)
+ self.provisioning_state = None
+ self.deployment_errors = None
self.azure_file = azure_file
self.smb = smb
@@ -2675,6 +3096,9 @@ class ContainerApp(TrackedResource): # pylint: disable=too-many-instance-attrib
"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.
@@ -2712,6 +3136,7 @@ class ContainerApp(TrackedResource): # pylint: disable=too-many-instance-attrib
"system_data": {"readonly": True},
"location": {"required": True},
"provisioning_state": {"readonly": True},
+ "running_status": {"readonly": True},
"deployment_errors": {"readonly": True},
"latest_revision_name": {"readonly": True},
"latest_ready_revision_name": {"readonly": True},
@@ -2733,6 +3158,7 @@ class ContainerApp(TrackedResource): # pylint: disable=too-many-instance-attrib
"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"},
"deployment_errors": {"key": "properties.deploymentErrors", "type": "str"},
"managed_environment_id": {"key": "properties.managedEnvironmentId", "type": "str"},
"environment_id": {"key": "properties.environmentId", "type": "str"},
@@ -2807,6 +3233,7 @@ def __init__( # pylint: disable=too-many-locals
self.managed_by = managed_by
self.kind = kind
self.provisioning_state = None
+ self.running_status = None
self.deployment_errors = None
self.managed_environment_id = managed_environment_id
self.environment_id = environment_id
@@ -3578,6 +4005,8 @@ class ContainerResources(_serialization.Model):
: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
"""
_validation = {
@@ -3588,19 +4017,25 @@ class ContainerResources(_serialization.Model):
"cpu": {"key": "cpu", "type": "float"},
"memory": {"key": "memory", "type": "str"},
"ephemeral_storage": {"key": "ephemeralStorage", "type": "str"},
+ "gpu": {"key": "gpu", "type": "float"},
}
- def __init__(self, *, cpu: Optional[float] = None, memory: Optional[str] = None, **kwargs: Any) -> None:
+ def __init__(
+ self, *, cpu: Optional[float] = None, memory: Optional[str] = None, gpu: Optional[float] = 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
+ :keyword gpu: Required GPU in cores for GPU based app, e.g. 1.0.
+ :paramtype gpu: float
"""
super().__init__(**kwargs)
self.cpu = cpu
self.memory = memory
self.ephemeral_storage = None
+ self.gpu = gpu
class CookieExpiration(_serialization.Model):
@@ -3755,7 +4190,8 @@ class CustomDomain(_serialization.Model):
:ivar name: Hostname. Required.
:vartype name: str
- :ivar binding_type: Custom Domain binding type. Known values are: "Disabled" and "SniEnabled".
+ :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.
@@ -3783,8 +4219,8 @@ def __init__(
"""
:keyword name: Hostname. Required.
:paramtype name: str
- :keyword binding_type: Custom Domain binding type. Known values are: "Disabled" and
- "SniEnabled".
+ :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.
@@ -6842,36 +7278,387 @@ class HttpRetryPolicy(_serialization.Model):
def __init__(
self,
*,
- max_retries: Optional[int] = None,
- headers: Optional[List["_models.HeaderMatch"]] = None,
- http_status_codes: Optional[List[int]] = None,
- errors: Optional[List[str]] = None,
- initial_delay_in_milliseconds: Optional[int] = None,
- max_interval_in_milliseconds: Optional[int] = None,
+ max_retries: Optional[int] = None,
+ headers: Optional[List["_models.HeaderMatch"]] = None,
+ http_status_codes: Optional[List[int]] = None,
+ errors: Optional[List[str]] = None,
+ initial_delay_in_milliseconds: Optional[int] = None,
+ max_interval_in_milliseconds: Optional[int] = None,
+ **kwargs: Any
+ ) -> None:
+ """
+ :keyword max_retries: Maximum number of times a request will retry.
+ :paramtype max_retries: int
+ :keyword headers: Headers that must be present for a request to be retried.
+ :paramtype headers: list[~azure.mgmt.appcontainers.models.HeaderMatch]
+ :keyword http_status_codes: Additional http status codes that can trigger a retry.
+ :paramtype http_status_codes: list[int]
+ :keyword errors: Errors that can trigger a retry.
+ :paramtype errors: list[str]
+ :keyword initial_delay_in_milliseconds: Initial delay, in milliseconds, before retrying a
+ request.
+ :paramtype initial_delay_in_milliseconds: int
+ :keyword max_interval_in_milliseconds: Maximum interval, in milliseconds, between retries.
+ :paramtype max_interval_in_milliseconds: int
+ """
+ super().__init__(**kwargs)
+ self.max_retries = max_retries
+ self.headers = headers
+ self.http_status_codes = http_status_codes
+ self.errors = errors
+ self.initial_delay_in_milliseconds = initial_delay_in_milliseconds
+ self.max_interval_in_milliseconds = max_interval_in_milliseconds
+
+
+class HttpRoute(_serialization.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
+ """
+
+ _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):
+ """Advanced Ingress routing for path/header based routing 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}". # pylint: disable=line-too-long
+ :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 Advanced Ingress Routing 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 = 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 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]
+ """
+
+ _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 http route resource.
+ :paramtype rules: list[~azure.mgmt.appcontainers.models.HttpRouteRule]
+ """
+ super().__init__(**kwargs)
+ self.provisioning_state = None
+ self.provisioning_errors = None
+ self.fqdn = 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 = None
+ self.message = None
+
+
+class HttpRouteRule(_serialization.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
+ """
+
+ _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/Revision to route requests to.
+ :vartype label: str
+ :ivar weight: Weighted routing.
+ :vartype weight: int
+ """
+
+ _validation = {
+ "container_app": {"required": True},
+ "weight": {"maximum": 100, "minimum": 0},
+ }
+
+ _attribute_map = {
+ "container_app": {"key": "containerApp", "type": "str"},
+ "revision": {"key": "revision", "type": "str"},
+ "label": {"key": "label", "type": "str"},
+ "weight": {"key": "weight", "type": "int"},
+ }
+
+ def __init__(
+ self,
+ *,
+ container_app: str,
+ revision: Optional[str] = None,
+ label: Optional[str] = None,
+ weight: Optional[int] = None,
**kwargs: Any
) -> None:
"""
- :keyword max_retries: Maximum number of times a request will retry.
- :paramtype max_retries: int
- :keyword headers: Headers that must be present for a request to be retried.
- :paramtype headers: list[~azure.mgmt.appcontainers.models.HeaderMatch]
- :keyword http_status_codes: Additional http status codes that can trigger a retry.
- :paramtype http_status_codes: list[int]
- :keyword errors: Errors that can trigger a retry.
- :paramtype errors: list[str]
- :keyword initial_delay_in_milliseconds: Initial delay, in milliseconds, before retrying a
- request.
- :paramtype initial_delay_in_milliseconds: int
- :keyword max_interval_in_milliseconds: Maximum interval, in milliseconds, between retries.
- :paramtype max_interval_in_milliseconds: int
+ :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/Revision to route requests to.
+ :paramtype label: str
+ :keyword weight: Weighted routing.
+ :paramtype weight: int
"""
super().__init__(**kwargs)
- self.max_retries = max_retries
- self.headers = headers
- self.http_status_codes = http_status_codes
- self.errors = errors
- self.initial_delay_in_milliseconds = initial_delay_in_milliseconds
- self.max_interval_in_milliseconds = max_interval_in_milliseconds
+ self.container_app = container_app
+ self.revision = revision
+ self.label = label
+ self.weight = weight
class HttpScaleRule(_serialization.Model):
@@ -7088,7 +7875,11 @@ class IdentitySettings(_serialization.Model):
}
def __init__(
- self, *, identity: str, lifecycle: Union[str, "_models.IdentitySettingsLifeCycle"] = "All", **kwargs: Any
+ 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
@@ -8581,6 +9372,140 @@ def __init__(self, **kwargs: Any) -> None:
self.version = None
+class LabelHistory(ProxyResource):
+ """Container App Label History.
+
+ 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}". # pylint: disable=line-too-long
+ :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
+ """
+
+ _validation = {
+ "id": {"readonly": True},
+ "name": {"readonly": True},
+ "type": {"readonly": True},
+ "system_data": {"readonly": True},
+ }
+
+ _attribute_map = {
+ "id": {"key": "id", "type": "str"},
+ "name": {"key": "name", "type": "str"},
+ "type": {"key": "type", "type": "str"},
+ "system_data": {"key": "systemData", "type": "SystemData"},
+ "properties": {"key": "properties", "type": "LabelHistoryProperties"},
+ }
+
+ def __init__(self, *, properties: Optional["_models.LabelHistoryProperties"] = None, **kwargs: Any) -> None:
+ """
+ :keyword properties: Container App Label History resource specific properties.
+ :paramtype properties: ~azure.mgmt.appcontainers.models.LabelHistoryProperties
+ """
+ super().__init__(**kwargs)
+ self.properties = properties
+
+
+class LabelHistoryCollection(_serialization.Model):
+ """Container App Label History 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.LabelHistory]
+ :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": "[LabelHistory]"},
+ "next_link": {"key": "nextLink", "type": "str"},
+ }
+
+ def __init__(self, *, value: List["_models.LabelHistory"], **kwargs: Any) -> None:
+ """
+ :keyword value: Collection of resources. Required.
+ :paramtype value: list[~azure.mgmt.appcontainers.models.LabelHistory]
+ """
+ super().__init__(**kwargs)
+ self.value = value
+ self.next_link = None
+
+
+class LabelHistoryProperties(_serialization.Model):
+ """Container App Label History resource specific properties.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar records: List of label history records.
+ :vartype records: list[~azure.mgmt.appcontainers.models.LabelHistoryRecordItem]
+ """
+
+ _validation = {
+ "records": {"readonly": True},
+ }
+
+ _attribute_map = {
+ "records": {"key": "records", "type": "[LabelHistoryRecordItem]"},
+ }
+
+ def __init__(self, **kwargs: Any) -> None:
+ """ """
+ super().__init__(**kwargs)
+ self.records = None
+
+
+class LabelHistoryRecordItem(_serialization.Model):
+ """Container App Label History Item resource specific properties.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :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
+ """
+
+ _validation = {
+ "revision": {"readonly": True},
+ "start": {"readonly": True},
+ "stop": {"readonly": True},
+ }
+
+ _attribute_map = {
+ "revision": {"key": "revision", "type": "str"},
+ "start": {"key": "start", "type": "iso-8601"},
+ "stop": {"key": "stop", "type": "iso-8601"},
+ }
+
+ def __init__(self, **kwargs: Any) -> None:
+ """ """
+ super().__init__(**kwargs)
+ self.revision = None
+ self.start = None
+ self.stop = None
+
+
class ListUsagesResult(_serialization.Model):
"""ListUsagesResult.
@@ -8861,6 +9786,82 @@ def __init__(self, *, destinations: Optional[List[str]] = None, **kwargs: Any) -
self.destinations = destinations
+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 = 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}". # pylint: disable=line-too-long
+ :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.
@@ -9084,9 +10085,8 @@ class ManagedEnvironment(TrackedResource): # pylint: disable=too-many-instance-
: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 a destination. Currently only "log-analytics" is
- supported.
+ :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
@@ -9095,6 +10095,8 @@ class ManagedEnvironment(TrackedResource): # pylint: disable=too-many-instance-
~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
@@ -9164,6 +10166,7 @@ class ManagedEnvironment(TrackedResource): # pylint: disable=too-many-instance-
"type": "OpenTelemetryConfiguration",
},
"zone_redundant": {"key": "properties.zoneRedundant", "type": "bool"},
+ "availability_zones": {"key": "properties.availabilityZones", "type": "[str]"},
"custom_domain_configuration": {
"key": "properties.customDomainConfiguration",
"type": "CustomDomainConfiguration",
@@ -9202,6 +10205,7 @@ def __init__( # pylint: disable=too-many-locals
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,
@@ -9231,8 +10235,7 @@ def __init__( # pylint: disable=too-many-locals
: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 a destination. Currently only "log-analytics" is
- supported.
+ app logs to configured destination.
:paramtype app_logs_configuration: ~azure.mgmt.appcontainers.models.AppLogsConfiguration
:keyword app_insights_configuration: Environment level Application Insights configuration.
:paramtype app_insights_configuration:
@@ -9242,6 +10245,8 @@ def __init__( # pylint: disable=too-many-locals
~azure.mgmt.appcontainers.models.OpenTelemetryConfiguration
:keyword zone_redundant: Whether or not this Managed Environment is zone-redundant.
:paramtype zone_redundant: bool
+ :keyword availability_zones: The list of availability zones to use for managed environment.
+ :paramtype availability_zones: list[str]
:keyword custom_domain_configuration: Custom domain configuration for the environment.
:paramtype custom_domain_configuration:
~azure.mgmt.appcontainers.models.CustomDomainConfiguration
@@ -9279,6 +10284,7 @@ def __init__( # pylint: disable=too-many-locals
self.app_insights_configuration = app_insights_configuration
self.open_telemetry_configuration = open_telemetry_configuration
self.zone_redundant = zone_redundant
+ self.availability_zones = availability_zones
self.custom_domain_configuration = custom_domain_configuration
self.event_stream_endpoint = None
self.workload_profiles = workload_profiles
@@ -9497,6 +10503,48 @@ def __init__(self, *, value: List["_models.ManagedEnvironmentStorage"], **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).
@@ -11049,6 +12097,8 @@ class Revision(ProxyResource): # pylint: disable=too-many-instance-attributes
: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",
@@ -11074,6 +12124,7 @@ class Revision(ProxyResource): # pylint: disable=too-many-instance-attributes
"active": {"readonly": True},
"replicas": {"readonly": True},
"traffic_weight": {"readonly": True},
+ "labels": {"readonly": True},
"provisioning_error": {"readonly": True},
"health_state": {"readonly": True},
"provisioning_state": {"readonly": True},
@@ -11092,6 +12143,7 @@ class Revision(ProxyResource): # pylint: disable=too-many-instance-attributes
"active": {"key": "properties.active", "type": "bool"},
"replicas": {"key": "properties.replicas", "type": "int"},
"traffic_weight": {"key": "properties.trafficWeight", "type": "int"},
+ "labels": {"key": "properties.labels", "type": "[str]"},
"provisioning_error": {"key": "properties.provisioningError", "type": "str"},
"health_state": {"key": "properties.healthState", "type": "str"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
@@ -11108,6 +12160,7 @@ def __init__(self, **kwargs: Any) -> None:
self.active = None
self.replicas = None
self.traffic_weight = None
+ self.labels = None
self.provisioning_error = None
self.health_state = None
self.provisioning_state = None
@@ -11511,6 +12564,54 @@ def __init__(
self.order = order
+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", "Sunday",
+ "Everyday", and "Weekend".
+ :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", "Sunday",
+ "Everyday", and "Weekend".
+ :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.
@@ -11837,6 +12938,9 @@ class SessionPool(TrackedResource): # pylint: disable=too-many-instance-attribu
: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"
@@ -11866,6 +12970,10 @@ class SessionPool(TrackedResource): # pylint: disable=too-many-instance-attribu
"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 = {
@@ -11886,6 +12994,7 @@ class SessionPool(TrackedResource): # pylint: disable=too-many-instance-attribu
"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"},
@@ -11903,6 +13012,7 @@ class SessionPool(TrackedResource): # pylint: disable=too-many-instance-attribu
},
"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__(
@@ -11910,6 +13020,7 @@ def __init__(
*,
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,
@@ -11918,6 +13029,7 @@ def __init__(
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:
"""
@@ -11925,6 +13037,9 @@ def __init__(
: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:
@@ -11948,8 +13063,13 @@ def __init__(
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
@@ -11961,6 +13081,7 @@ def __init__(
self.session_network_configuration = session_network_configuration
self.pool_management_endpoint = None
self.provisioning_state = None
+ self.managed_identity_settings = managed_identity_settings
class SessionPoolCollection(_serialization.Model):
@@ -12025,6 +13146,9 @@ def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, *
class SessionPoolUpdatableProperties(_serialization.Model):
"""Container App session pool updatable properties.
+ :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.
@@ -12041,6 +13165,7 @@ class SessionPoolUpdatableProperties(_serialization.Model):
"""
_attribute_map = {
+ "identity": {"key": "identity", "type": "ManagedServiceIdentity"},
"scale_configuration": {"key": "properties.scaleConfiguration", "type": "ScaleConfiguration"},
"secrets": {"key": "properties.secrets", "type": "[SessionPoolSecret]"},
"dynamic_pool_configuration": {
@@ -12057,6 +13182,7 @@ class SessionPoolUpdatableProperties(_serialization.Model):
def __init__(
self,
*,
+ identity: Optional["_models.ManagedServiceIdentity"] = None,
scale_configuration: Optional["_models.ScaleConfiguration"] = None,
secrets: Optional[List["_models.SessionPoolSecret"]] = None,
dynamic_pool_configuration: Optional["_models.DynamicPoolConfiguration"] = None,
@@ -12065,6 +13191,9 @@ def __init__(
**kwargs: Any
) -> None:
"""
+ :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.
@@ -12082,6 +13211,7 @@ def __init__(
~azure.mgmt.appcontainers.models.SessionNetworkConfiguration
"""
super().__init__(**kwargs)
+ self.identity = identity
self.scale_configuration = scale_configuration
self.secrets = secrets
self.dynamic_pool_configuration = dynamic_pool_configuration
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 f105aaf0a686..fed77a5ed4ea 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
@@ -22,6 +22,7 @@
from ._container_apps_builds_by_container_app_operations import ContainerAppsBuildsByContainerAppOperations
from ._container_apps_builds_operations import ContainerAppsBuildsOperations
from ._container_apps_patches_operations import ContainerAppsPatchesOperations
+from ._container_apps_label_history_operations import ContainerAppsLabelHistoryOperations
from ._container_apps_revisions_operations import ContainerAppsRevisionsOperations
from ._container_apps_revision_replicas_operations import ContainerAppsRevisionReplicasOperations
from ._container_apps_diagnostics_operations import ContainerAppsDiagnosticsOperations
@@ -46,6 +47,8 @@
from ._dapr_component_resiliency_policies_operations import DaprComponentResiliencyPoliciesOperations
from ._dapr_components_operations import DaprComponentsOperations
from ._dapr_subscriptions_operations import DaprSubscriptionsOperations
+from ._http_route_config_operations import HttpRouteConfigOperations
+from ._maintenance_configurations_operations import MaintenanceConfigurationsOperations
from ._managed_environments_storages_operations import ManagedEnvironmentsStoragesOperations
from ._container_apps_session_pools_operations import ContainerAppsSessionPoolsOperations
from ._container_apps_source_controls_operations import ContainerAppsSourceControlsOperations
@@ -73,6 +76,7 @@
"ContainerAppsBuildsByContainerAppOperations",
"ContainerAppsBuildsOperations",
"ContainerAppsPatchesOperations",
+ "ContainerAppsLabelHistoryOperations",
"ContainerAppsRevisionsOperations",
"ContainerAppsRevisionReplicasOperations",
"ContainerAppsDiagnosticsOperations",
@@ -95,6 +99,8 @@
"DaprComponentResiliencyPoliciesOperations",
"DaprComponentsOperations",
"DaprSubscriptionsOperations",
+ "HttpRouteConfigOperations",
+ "MaintenanceConfigurationsOperations",
"ManagedEnvironmentsStoragesOperations",
"ContainerAppsSessionPoolsOperations",
"ContainerAppsSourceControlsOperations",
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_app_resiliency_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_app_resiliency_operations.py
index 007ffc990766..db8d88b4f4fc 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_app_resiliency_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_app_resiliency_operations.py
@@ -46,7 +46,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -83,7 +83,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -154,7 +154,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -186,7 +186,7 @@ def build_list_request(resource_group_name: str, app_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 2e759340e8f8..19a6e58d1c47 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
@@ -43,7 +43,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 8f64d6ac5a55..0b43ed5ca647 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
@@ -41,7 +41,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_build_auth_token_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_build_auth_token_operations.py
index ba1910fd2d62..325b9ffa581a 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_build_auth_token_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_build_auth_token_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builders_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builders_operations.py
index 186330f36bbd..5577085edcaf 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builders_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builders_operations.py
@@ -48,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -72,7 +72,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -102,7 +102,7 @@ def build_get_request(resource_group_name: str, builder_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -137,7 +137,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -175,7 +175,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -213,7 +213,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_by_builder_resource_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_by_builder_resource_operations.py
index 8aa6f68d3d89..5cb379b0db1c 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_by_builder_resource_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_by_builder_resource_operations.py
@@ -43,7 +43,7 @@ def build_list_request(resource_group_name: str, builder_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_operations.py
index bcc1f199cf5e..7e0678221aa8 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_builds_operations.py
@@ -48,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -86,7 +86,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -127,7 +127,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 36e8d265de50..fc47999b7c38 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
@@ -46,7 +46,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -79,7 +79,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -113,7 +113,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -150,7 +150,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -184,7 +184,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
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 83e1e99e488e..c192e8085d10 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
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -17,14 +17,18 @@
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 .._serialization import Serializer
@@ -46,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +87,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -121,7 +125,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -162,7 +166,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -200,7 +204,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -399,8 +403,80 @@ def get(
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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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:
+ 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)
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
+
+ return deserialized # type: ignore
+
@overload
- def create_or_update(
+ def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -409,7 +485,7 @@ def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> LROPoller[_models.Certificate]:
"""Create or Update a Certificate.
Create or Update a Certificate.
@@ -426,13 +502,14 @@ def create_or_update(
: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
+ :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 create_or_update(
+ def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -441,7 +518,7 @@ def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> LROPoller[_models.Certificate]:
"""Create or Update a Certificate.
Create or Update a Certificate.
@@ -458,20 +535,21 @@ def create_or_update(
: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
+ :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 create_or_update(
+ 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
- ) -> _models.Certificate:
+ ) -> LROPoller[_models.Certificate]:
"""Create or Update a Certificate.
Create or Update a Certificate.
@@ -486,10 +564,64 @@ def create_or_update(
: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
+ :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._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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -498,61 +630,55 @@ 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 = 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:
- if certificate_envelope is not None:
- _json = self._serialize.body(certificate_envelope, "Certificate")
- else:
- _json = None
+ cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
- _request = build_create_or_update_request(
+ _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,
- content_type=content_type,
- json=_json,
- content=_content,
headers=_headers,
params=_params,
)
_request.url = self._client.format_url(_request.url)
- _stream = False
+ _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]:
+ 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.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)
+ 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, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
return deserialized # type: ignore
@distributed_trace
- def delete( # pylint: disable=inconsistent-return-statements
+ def begin_delete(
self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any
- ) -> None:
+ ) -> LROPoller[None]:
"""Deletes the specified Certificate.
Deletes the specified Certificate.
@@ -564,10 +690,61 @@ def delete( # pylint: disable=inconsistent-return-statements
:type connected_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
+ :return: An instance of LROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
+ _headers = kwargs.pop("headers", {}) 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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -576,40 +753,65 @@ def delete( # pylint: disable=inconsistent-return-statements
}
error_map.update(kwargs.pop("error_map", {}) or {})
- _headers = kwargs.pop("headers", {}) or {}
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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)
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
- _request = build_delete_request(
+ 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)
- _stream = False
+ _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, 204]:
+ 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)
+ 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, None, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
@overload
- def update(
+ def begin_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -618,7 +820,7 @@ def update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> LROPoller[_models.Certificate]:
"""Update properties of a certificate.
Patches a certificate. Currently only patching of tags is supported.
@@ -635,13 +837,14 @@ def update(
: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
+ :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 update(
+ def begin_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -650,7 +853,7 @@ def update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> LROPoller[_models.Certificate]:
"""Update properties of a certificate.
Patches a certificate. Currently only patching of tags is supported.
@@ -667,20 +870,21 @@ def update(
: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
+ :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 update(
+ def begin_update(
self,
resource_group_name: str,
connected_environment_name: str,
certificate_name: str,
certificate_envelope: Union[_models.CertificatePatch, IO[bytes]],
**kwargs: Any
- ) -> _models.Certificate:
+ ) -> LROPoller[_models.Certificate]:
"""Update properties of a certificate.
Patches a certificate. Currently only patching of tags is supported.
@@ -695,62 +899,57 @@ def update(
: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
+ :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:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) 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)
- 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)
+ 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
- _stream = False
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
+ 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
)
-
- response = pipeline_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("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_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py
index 0b8bfb9753a0..65b74b5a369e 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
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -17,14 +17,18 @@
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 .._serialization import Serializer
@@ -46,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -79,7 +83,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -113,7 +117,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -150,7 +154,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -184,7 +188,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -234,7 +238,7 @@ def __init__(self, *args, **kwargs):
@distributed_trace
def list(
self, resource_group_name: str, connected_environment_name: str, **kwargs: Any
- ) -> Iterable["_models.DaprComponent"]:
+ ) -> Iterable["_models.ConnectedEnvironmentDaprComponent"]:
"""Get the Dapr Components for a connected environment.
Get the Dapr Components for a connected environment.
@@ -244,15 +248,17 @@ def list(
: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]
+ :return: An iterator like instance of either ConnectedEnvironmentDaprComponent or the result of
+ cls(response)
+ :rtype:
+ ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) 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)
+ cls: ClsType[_models.ConnectedEnvironmentDaprComponentsCollection] = kwargs.pop("cls", None)
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
@@ -293,7 +299,7 @@ def prepare_request(next_link=None):
return _request
def extract_data(pipeline_response):
- deserialized = self._deserialize("DaprComponentsCollection", pipeline_response)
+ deserialized = self._deserialize("ConnectedEnvironmentDaprComponentsCollection", pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
@@ -320,7 +326,7 @@ def get_next(next_link=None):
@distributed_trace
def get(
self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> _models.ConnectedEnvironmentDaprComponent:
"""Get a dapr component.
Get a dapr component.
@@ -332,8 +338,8 @@ def get(
: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
+ :return: ConnectedEnvironmentDaprComponent or the result of cls(response)
+ :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = {
@@ -348,7 +354,7 @@ def get(
_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)
+ cls: ClsType[_models.ConnectedEnvironmentDaprComponent] = kwargs.pop("cls", None)
_request = build_get_request(
resource_group_name=resource_group_name,
@@ -373,7 +379,76 @@ def get(
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)
+ deserialized = self._deserialize("ConnectedEnvironmentDaprComponent", 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.ConnectedEnvironmentDaprComponent, IO[bytes]],
+ **kwargs: Any
+ ) -> Iterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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, "ConnectedEnvironmentDaprComponent")
+
+ _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)
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -381,16 +456,16 @@ def get(
return deserialized # type: ignore
@overload
- def create_or_update(
+ def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
component_name: str,
- dapr_component_envelope: _models.DaprComponent,
+ dapr_component_envelope: _models.ConnectedEnvironmentDaprComponent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> LROPoller[_models.ConnectedEnvironmentDaprComponent]:
"""Creates or updates a Dapr Component.
Creates or updates a Dapr Component in a connected environment.
@@ -403,17 +478,20 @@ def create_or_update(
: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
+ :type dapr_component_envelope:
+ ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent
: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
+ :return: An instance of LROPoller that returns either ConnectedEnvironmentDaprComponent or the
+ result of cls(response)
+ :rtype:
+ ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def create_or_update(
+ def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -422,7 +500,7 @@ def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> LROPoller[_models.ConnectedEnvironmentDaprComponent]:
"""Creates or updates a Dapr Component.
Creates or updates a Dapr Component in a connected environment.
@@ -439,20 +517,22 @@ def create_or_update(
: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
+ :return: An instance of LROPoller that returns either ConnectedEnvironmentDaprComponent or the
+ result of cls(response)
+ :rtype:
+ ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace
- def 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, IO[bytes]],
+ dapr_component_envelope: Union[_models.ConnectedEnvironmentDaprComponent, IO[bytes]],
**kwargs: Any
- ) -> _models.DaprComponent:
+ ) -> LROPoller[_models.ConnectedEnvironmentDaprComponent]:
"""Creates or updates a Dapr Component.
Creates or updates a Dapr Component in a connected environment.
@@ -465,12 +545,68 @@ def create_or_update(
: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
+ ConnectedEnvironmentDaprComponent type or a IO[bytes] type. Required.
+ :type dapr_component_envelope:
+ ~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent or IO[bytes]
+ :return: An instance of LROPoller that returns either ConnectedEnvironmentDaprComponent or the
+ result of cls(response)
+ :rtype:
+ ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentDaprComponent]
:raises ~azure.core.exceptions.HttpResponseError:
"""
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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.ConnectedEnvironmentDaprComponent] = kwargs.pop("cls", None)
+ polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[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("ConnectedEnvironmentDaprComponent", 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.ConnectedEnvironmentDaprComponent].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return LROPoller[_models.ConnectedEnvironmentDaprComponent](
+ 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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -479,58 +615,55 @@ 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 = 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)
+ 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(
+ _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,
- content_type=content_type,
- json=_json,
- content=_content,
headers=_headers,
params=_params,
)
_request.url = self._client.format_url(_request.url)
- _stream = False
+ _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]:
+ 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.DefaultErrorResponse, pipeline_response)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- deserialized = self._deserialize("DaprComponent", pipeline_response.http_response)
+ 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, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
return deserialized # type: ignore
@distributed_trace
- def delete( # pylint: disable=inconsistent-return-statements
+ def begin_delete(
self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any
- ) -> None:
+ ) -> LROPoller[None]:
"""Delete a Dapr Component.
Delete a Dapr Component from a connected environment.
@@ -542,49 +675,52 @@ def delete( # pylint: disable=inconsistent-return-statements
:type connected_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
+ :return: An instance of LROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
_headers = kwargs.pop("headers", {}) 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)
- _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)
-
- _stream = False
- pipeline_response: PipelineResponse = 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)
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
+ if cls:
+ return cls(pipeline_response, None, {}) # type: ignore
- 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(
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 ef3ba4e0eb42..812b37cbd79e 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
@@ -48,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -72,7 +72,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -104,7 +104,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -137,7 +137,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -173,7 +173,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -206,7 +206,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -239,7 +239,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
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 ca4ee82e2623..21e1db7d698c 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
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Iterator, Optional, Type, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -16,13 +16,17 @@
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 .._serialization import Serializer
@@ -44,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -77,7 +81,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -111,7 +115,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -148,7 +152,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -318,8 +322,77 @@ def get(
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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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)
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
+
+ return deserialized # type: ignore
+
@overload
- def create_or_update(
+ def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -328,7 +401,7 @@ def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.ConnectedEnvironmentStorage:
+ ) -> LROPoller[_models.ConnectedEnvironmentStorage]:
"""Create or update storage for a connectedEnvironment.
Create or update storage for a connectedEnvironment.
@@ -345,13 +418,15 @@ def create_or_update(
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: ConnectedEnvironmentStorage or the result of cls(response)
- :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage
+ :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 create_or_update(
+ def begin_create_or_update(
self,
resource_group_name: str,
connected_environment_name: str,
@@ -360,7 +435,7 @@ def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.ConnectedEnvironmentStorage:
+ ) -> LROPoller[_models.ConnectedEnvironmentStorage]:
"""Create or update storage for a connectedEnvironment.
Create or update storage for a connectedEnvironment.
@@ -377,20 +452,22 @@ def create_or_update(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: ConnectedEnvironmentStorage or the result of cls(response)
- :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage
+ :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 create_or_update(
+ 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
- ) -> _models.ConnectedEnvironmentStorage:
+ ) -> LROPoller[_models.ConnectedEnvironmentStorage]:
"""Create or update storage for a connectedEnvironment.
Create or update storage for a connectedEnvironment.
@@ -406,10 +483,65 @@ def create_or_update(
ConnectedEnvironmentStorage type or a IO[bytes] type. Required.
:type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or
IO[bytes]
- :return: ConnectedEnvironmentStorage or the result of cls(response)
- :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage
+ :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[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -418,58 +550,55 @@ 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 = 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)
+ 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(
+ _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,
- content_type=content_type,
- json=_json,
- content=_content,
headers=_headers,
params=_params,
)
_request.url = self._client.format_url(_request.url)
- _stream = False
+ _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]:
+ 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.DefaultErrorResponse, pipeline_response)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_response)
+ 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, {}) # type: ignore
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
return deserialized # type: ignore
@distributed_trace
- def delete( # pylint: disable=inconsistent-return-statements
+ def begin_delete(
self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any
- ) -> None:
+ ) -> LROPoller[None]:
"""Delete storage for a connectedEnvironment.
Delete storage for a connectedEnvironment.
@@ -481,46 +610,49 @@ def delete( # pylint: disable=inconsistent-return-statements
:type connected_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
+ :return: An instance of LROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
_headers = kwargs.pop("headers", {}) 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,
- 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, 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
+ polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_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
index 42a17070e70f..90018f385669 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
@@ -44,7 +44,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -80,7 +80,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 aad3e7f178e2..240da8f023cd 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
@@ -46,7 +46,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -79,7 +79,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -113,7 +113,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -150,7 +150,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_by_container_app_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_by_container_app_operations.py
index c0c6bec4f1e7..e00a7631b1e0 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_by_container_app_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_by_container_app_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_operations.py
index baa987a7159c..6e061fd965ff 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_builds_operations.py
@@ -47,7 +47,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -85,7 +85,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 3f459b466f63..efbb6f2c5576 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
@@ -45,7 +45,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -78,7 +78,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -117,7 +117,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -152,7 +152,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -186,7 +186,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_label_history_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_label_history_operations.py
new file mode 100644
index 000000000000..1037088ab3d6
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_label_history_operations.py
@@ -0,0 +1,289 @@
+# pylint: disable=too-many-lines,too-many-statements
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+import sys
+from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
+import urllib.parse
+
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ ResourceNotModifiedError,
+ map_error,
+)
+from azure.core.paging import ItemPaged
+from azure.core.pipeline import PipelineResponse
+from azure.core.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 .._serialization import Serializer
+
+if sys.version_info >= (3, 9):
+ from collections.abc import MutableMapping
+else:
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+T = TypeVar("T")
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
+
+_SERIALIZER = Serializer()
+_SERIALIZER.client_side_validation = False
+
+
+def build_list_label_history_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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/labelHistory",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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")
+ 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_label_history_request(
+ 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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/labelHistory/{labelName}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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\._\(\)]+$"
+ ),
+ "labelName": _SERIALIZER.url("label_name", label_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 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.
+ """
+
+ models = _models
+
+ def __init__(self, *args, **kwargs):
+ input_args = list(args)
+ self._client = input_args.pop(0) if input_args else kwargs.pop("client")
+ self._config = input_args.pop(0) if input_args else kwargs.pop("config")
+ self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
+ self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
+
+ @distributed_trace
+ def list_label_history(
+ self, resource_group_name: str, container_app_name: str, filter: Optional[str] = None, **kwargs: Any
+ ) -> Iterable["_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
+ :param filter: The filter to apply on the operation. Default value is None.
+ :type filter: str
+ :return: An iterator like instance of either LabelHistory or the result of cls(response)
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.LabelHistory]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) 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.LabelHistoryCollection] = kwargs.pop("cls", None)
+
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ def prepare_request(next_link=None):
+ if not next_link:
+
+ _request = build_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=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("LabelHistoryCollection", pipeline_response)
+ list_of_elem = deserialized.value
+ if cls:
+ list_of_elem = cls(list_of_elem) # type: ignore
+ return deserialized.next_link or None, iter(list_of_elem)
+
+ def get_next(next_link=None):
+ _request = prepare_request(next_link)
+
+ _stream = False
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ response = pipeline_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_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 Container App label. Required.
+ :type label_name: str
+ :return: LabelHistory or the result of cls(response)
+ :rtype: ~azure.mgmt.appcontainers.models.LabelHistory
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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.LabelHistory] = kwargs.pop("cls", None)
+
+ _request = build_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=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("LabelHistory", 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
index 67267d32f72c..17c9803e0fd4 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
@@ -48,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -72,7 +72,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -104,7 +104,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -137,7 +137,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -173,7 +173,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -206,7 +206,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -247,7 +247,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -282,7 +282,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -315,7 +315,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -348,7 +348,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -383,7 +383,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_patches_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_patches_operations.py
index 5ecf4eda2b9b..174d1f7dd566 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_patches_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_patches_operations.py
@@ -55,7 +55,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -92,7 +92,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -130,7 +130,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -168,7 +168,7 @@ def build_skip_configure_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -209,7 +209,7 @@ def build_apply_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 5dc5a5a20868..0d0caeed41b4 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
@@ -48,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 36516fbefb0d..d55d277896b1 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
@@ -50,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -85,7 +85,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -119,7 +119,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -153,7 +153,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -187,7 +187,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 005c216efb9e..f24cfbfff7bf 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
@@ -48,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -72,7 +72,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -104,7 +104,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -139,7 +139,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -177,7 +177,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -215,7 +215,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 e546fc010ddf..88d9271bb8ae 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
@@ -50,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -123,7 +123,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -170,7 +170,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_component_resiliency_policies_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_component_resiliency_policies_operations.py
index 045f7dd750c2..810e672a5c2e 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_component_resiliency_policies_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_component_resiliency_policies_operations.py
@@ -46,7 +46,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -115,7 +115,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 8d9e32077cec..271972c3c708 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
@@ -46,7 +46,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -79,7 +79,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -113,7 +113,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -150,7 +150,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -184,7 +184,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_subscriptions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_subscriptions_operations.py
index e629225b8b27..a31af5584136 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_subscriptions_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_subscriptions_operations.py
@@ -46,7 +46,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -79,7 +79,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -113,7 +113,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -150,7 +150,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dot_net_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dot_net_components_operations.py
index bf63632ced24..246f97db6b85 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dot_net_components_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dot_net_components_operations.py
@@ -50,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -117,7 +117,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
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_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_functions_extension_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_functions_extension_operations.py
index 6f8a36799039..a1ecfbecd7ea 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_functions_extension_operations.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_functions_extension_operations.py
@@ -48,7 +48,7 @@ def build_invoke_functions_host_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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
new file mode 100644
index 000000000000..6d48916b807f
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py
@@ -0,0 +1,750 @@
+# pylint: disable=too-many-lines,too-many-statements
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from io import IOBase
+import sys
+from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
+import urllib.parse
+
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ ResourceNotModifiedError,
+ map_error,
+)
+from azure.core.paging import ItemPaged
+from azure.core.pipeline import PipelineResponse
+from azure.core.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 .._serialization import Serializer
+
+if sys.version_info >= (3, 9):
+ from collections.abc import MutableMapping
+else:
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+T = TypeVar("T")
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
+
+_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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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", "2024-10-02-preview"))
+ content_type: Optional[str] = kwargs.pop("content_type", _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}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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", "2024-10-02-preview"))
+ content_type: Optional[str] = kwargs.pop("content_type", _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}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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):
+ input_args = list(args)
+ self._client = input_args.pop(0) if input_args else kwargs.pop("client")
+ self._config = input_args.pop(0) if input_args else kwargs.pop("config")
+ self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
+ self._deserialize = 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 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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:
+ 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 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 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 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 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 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 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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
+
+ @distributed_trace
+ def delete( # pylint: disable=inconsistent-return-statements
+ self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any
+ ) -> 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 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: None or the result of cls(response)
+ :rtype: None
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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,
+ 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, 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(
+ self, resource_group_name: str, environment_name: str, **kwargs: Any
+ ) -> Iterable["_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 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.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
index d3f5eb6f249c..4f2b95d2929a 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
@@ -50,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -117,7 +117,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
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_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 cc7739b4cffd..fd225be62508 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
@@ -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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 3d818980ddcc..ad44309ef2cb 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
@@ -50,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -117,7 +117,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -149,7 +149,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -173,7 +173,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -203,7 +203,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -236,7 +236,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -270,7 +270,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -301,7 +301,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -335,7 +335,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -371,7 +371,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -407,7 +407,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -440,7 +440,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -471,7 +471,7 @@ def build_resume_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -502,7 +502,7 @@ def build_suspend_request(resource_group_name: str, job_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 d605e1b98115..f0e443a98e75 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
@@ -47,7 +47,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -122,7 +122,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -158,7 +158,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -199,7 +199,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -238,7 +238,7 @@ def build_deploy_workflow_artifacts_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -277,7 +277,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -320,7 +320,7 @@ def build_invoke_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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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
new file mode 100644
index 000000000000..ad4625e85331
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py
@@ -0,0 +1,548 @@
+# pylint: disable=too-many-lines,too-many-statements
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+from io import IOBase
+import sys
+from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
+import urllib.parse
+
+from azure.core.exceptions import (
+ ClientAuthenticationError,
+ HttpResponseError,
+ ResourceExistsError,
+ ResourceNotFoundError,
+ ResourceNotModifiedError,
+ map_error,
+)
+from azure.core.paging import ItemPaged
+from azure.core.pipeline import PipelineResponse
+from azure.core.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 .._serialization import Serializer
+
+if sys.version_info >= (3, 9):
+ from collections.abc import MutableMapping
+else:
+ from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+T = TypeVar("T")
+ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
+
+_SERIALIZER = Serializer()
+_SERIALIZER.client_side_validation = False
+
+
+def build_list_request(
+ resource_group_name: str, 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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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", "2024-10-02-preview"))
+ content_type: Optional[str] = kwargs.pop("content_type", _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}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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", "2024-10-02-preview"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "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):
+ input_args = list(args)
+ self._client = input_args.pop(0) if input_args else kwargs.pop("client")
+ self._config = input_args.pop(0) if input_args else kwargs.pop("config")
+ self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
+ self._deserialize = 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
+ ) -> Iterable["_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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.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.DefaultErrorResponse, 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) 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.DefaultErrorResponse, 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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.DefaultErrorResponse, 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[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) 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.DefaultErrorResponse, 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
index 9f36dced20c6..1059b5137e01 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
@@ -50,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -84,7 +84,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -121,7 +121,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -155,7 +155,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -192,7 +192,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 9dc1c93f419e..8bc2f29dded5 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
@@ -43,7 +43,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -76,7 +76,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 bc2a1b0afbbd..6f8d28c71d70 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
@@ -50,7 +50,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -87,7 +87,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -127,7 +127,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -170,7 +170,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 b0e3381efafc..f3387d5363d1 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
@@ -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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 1a5c2012b781..cd876682660c 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
@@ -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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 3fc779e575d5..d76f3d3d0801 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
@@ -43,7 +43,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 7a8ce01af66d..ba8095dcc277 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
@@ -48,7 +48,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -72,7 +72,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -104,7 +104,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -137,7 +137,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -173,7 +173,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -206,7 +206,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -242,7 +242,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -275,7 +275,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 03461d39e5b0..740818210fdd 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
@@ -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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -77,7 +77,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -111,7 +111,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -148,7 +148,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 fc3bcc72ea79..d62bd5f1e85e 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
@@ -44,7 +44,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
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 2a59bde3b989..1522dca0b06a 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
@@ -43,7 +43,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 d5a93c241b48..ce2f7ced53af 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
@@ -43,7 +43,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", "2024-08-02-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-02-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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
index 5a7c362d5592..dc57975eeb8f 100644
--- 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
@@ -56,6 +56,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 2a3290b3c7b3..325630bae6e8 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_delete.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_delete.py
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 7065799318f7..42ed014e1f31 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_get.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index f6775fa9fb55..ae03f4c1cfdd 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_list.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 7098bc5e8eb5..87d0a4fc6c4c 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_patch.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_patch.py
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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..2adf908ae230
--- /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) 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 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="00000000-0000-0000-0000-000000000000",
+ )
+
+ 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: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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..baf60e4bd47f
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_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) 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 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="00000000-0000-0000-0000-000000000000",
+ )
+
+ 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: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 c71fdb6e4cdd..7273acf7498b 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
@@ -51,6 +51,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 8240d4e413a7..52d2a1164355 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
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 4c69273b19ca..ae1fa40b1ab2 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 dd0e21b2cdfb..269ed648c668 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_ListByContainer.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 32d0a6b0f796..1bde669af9bf 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
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AvailableWorkloadProfiles_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 80c67d53ed01..787aea9e84c0 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
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/BillingMeters_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 04594ac45949..31e004d2d817 100644
--- 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
@@ -60,6 +60,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 259406317a14..28607c2251ea 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_delete.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_delete.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index e2321d5c4a71..b3ce271e7c82 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_get.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 2cdceb481671..34c156bb3920 100644
--- 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
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListByResourceGroup.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 13608b9d4dff..1a13bdf4b850 100644
--- 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
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListBySubscription.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 0d01c2a2e546..2cb9875fc7f2 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_update.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_update.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Update.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index ae6655d27d86..0f8a3789b406 100644
--- 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
@@ -65,6 +65,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Builds_CreateOrUpdate.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
index 67b8f63959d6..09550a96eb9f 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_delete.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_delete.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 2148675026f8..af5c209ffda2 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_get.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index f66fd8c88ea5..bafbb8f6b417 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListAuthToken.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index cc345a50860d..dd88abf452a1 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListByBuilderResource.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 594148a497b8..f865daed111f 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 ef33b0ce76c3..afd379141aaa 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_CreateOrUpdate_FromKeyVault.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f23ff120a400..aced2de22090 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 0828c12aa00b..1eade3ebee4b 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 05ff56b14ce6..cc6ad6d60d16 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
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_CheckNameAvailability.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 91be5df081a0..c48d991455d9 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_ListByManagedEnvironment.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 bb11fd7d3044..3a34d654d3a0 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 da89a8a2733e..a95ec1537ab4 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
@@ -30,14 +30,14 @@ def main():
subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
)
- response = client.connected_environments_certificates.create_or_update(
+ response = client.connected_environments_certificates.begin_create_or_update(
resource_group_name="examplerg",
connected_environment_name="testcontainerenv",
certificate_name="certificate-firendly-name",
- )
+ ).result()
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 bb43e5e857eb..aa2e336dee07 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
@@ -30,13 +30,13 @@ def main():
subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
)
- client.connected_environments_certificates.delete(
+ client.connected_environments_certificates.begin_delete(
resource_group_name="examplerg",
connected_environment_name="testcontainerenv",
certificate_name="certificate-firendly-name",
- )
+ ).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsCertificate_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 86116532731b..9362fb268263 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsCertificate_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 6a53577f801c..862b812dbef8 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
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 1e7beb90acf6..81bee97eb41f 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 18e1b105e2e8..692b4e37b3e0 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
@@ -30,15 +30,15 @@ def main():
subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
)
- response = client.connected_environments_certificates.update(
+ response = client.connected_environments_certificates.begin_update(
resource_group_name="examplerg",
connected_environment_name="testcontainerenv",
certificate_name="certificate-firendly-name",
certificate_envelope={"tags": {"tag1": "value1", "tag2": "value2"}},
- )
+ ).result()
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsCertificates_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 24727ed167a4..31942e081304 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
@@ -49,6 +49,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 d9b1da9ab451..f01562cfab8b 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
@@ -30,7 +30,7 @@ def main():
subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9",
)
- response = client.connected_environments_dapr_components.create_or_update(
+ response = client.connected_environments_dapr_components.begin_create_or_update(
resource_group_name="examplerg",
connected_environment_name="myenvironment",
component_name="reddog",
@@ -57,10 +57,10 @@ def main():
"version": "v1",
}
},
- )
+ ).result()
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 76733621cead..35504e0ad6d1 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
@@ -30,13 +30,13 @@ def main():
subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9",
)
- client.connected_environments_dapr_components.delete(
+ client.connected_environments_dapr_components.begin_delete(
resource_group_name="examplerg",
connected_environment_name="myenvironment",
component_name="reddog",
- )
+ ).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 b3dbdff17128..c896316780d9 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 dc4e642bcea1..c8bd64759b47 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsDaprComponents_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 10a102b48849..16a5bbaedb72 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 b6b488e37f47..e5921efe7d2e 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
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 ae85090e64f1..744b49c76dc1 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 91340e4d4d70..ef3754fdbde7 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
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_ListByResourceGroup.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 ffe41e43b870..106c8db462a0 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
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_ListBySubscription.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 9392818cb7a2..53ed7d818b04 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 094e1d0ce1a1..a3012e09046c 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
@@ -30,7 +30,7 @@ def main():
subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9",
)
- response = client.connected_environments_storages.create_or_update(
+ response = client.connected_environments_storages.begin_create_or_update(
resource_group_name="examplerg",
connected_environment_name="env",
storage_name="jlaw-demo1",
@@ -44,10 +44,10 @@ def main():
}
}
},
- )
+ ).result()
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 05d1bf87a369..b7583dc26866 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
@@ -30,13 +30,13 @@ def main():
subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9",
)
- client.connected_environments_storages.delete(
+ client.connected_environments_storages.begin_delete(
resource_group_name="examplerg",
connected_environment_name="env",
storage_name="jlaw-demo1",
- )
+ ).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsStorages_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 391eec19758c..b5bd6ead2add 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsStorages_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 c73dc0806d5a..108d540baeaa 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironmentsStorages_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 1a7c4db19768..9a636f287d4b 100644
--- 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
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index a1d2cf259996..62a0ffb90a26 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index c9c0d99d4e1f..0706ef0a1f0d 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_ListByContainerApp.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 c39bd4f29d8d..ceb5489a5dc8 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_CheckNameAvailability.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 1ad3f2c2c0ab..c0f42165792a 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
@@ -105,6 +105,7 @@ def main():
"traffic": [{"label": "production", "revisionName": "testcontainerApp0-ab1234", "weight": 100}],
},
"maxInactiveRevisions": 10,
+ "revisionTransitionThreshold": 100,
"runtime": {
"dotnet": {"autoConfigureDataProtection": True},
"java": {
@@ -149,7 +150,7 @@ def main():
"command": ["/bin/sh"],
"image": "repo/testcontainerApp0:v4",
"name": "testinitcontainerApp0",
- "resources": {"cpu": 0.2, "memory": "100Mi"},
+ "resources": {"cpu": 0.2, "gpu": 1, "memory": "100Mi"},
}
],
"scale": {
@@ -205,6 +206,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 982c44339883..52039fa215b7 100644
--- 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
@@ -96,6 +96,7 @@ def main():
"traffic": [{"label": "production", "revisionName": "testcontainerApp0-ab1234", "weight": 100}],
},
"maxInactiveRevisions": 10,
+ "revisionTransitionThreshold": 100,
"runtime": {
"dotnet": {"autoConfigureDataProtection": True},
"java": {
@@ -157,6 +158,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_CreateOrUpdate_ConnectedEnvironment.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 be555431bf19..ec45f4997ce4 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
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 6a6cba62774f..bc5aa28eab85 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsDiagnostics_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 44e30c8edd2c..561bf74e2547 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsDiagnostics_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f5f2cf370cd5..e653fb277c06 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 42aaf1991bc1..37404f89a060 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_GetAuthToken.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_GetAuthToken.json
if __name__ == "__main__":
main()
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_create_or_update.py
index 0710f88d9a99..2f21554af5d9 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_create_or_update.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_create_or_update.py
@@ -59,6 +59,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Kind_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerApps_Kind_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 1bc694dc2101..18052ae18b53 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
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListByResourceGroup.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 eca4c3765a5a..124b566a2980 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
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListBySubscription.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f057938529c9..398916ea4c44 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 b06c04f37800..b199c3f2b980 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListSecrets.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 0567ceee69bc..9f9295a1c94c 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
@@ -76,6 +76,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 614ee5f6f01e..a73061a4f8ca 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
@@ -79,6 +79,7 @@ def main():
"traffic": [{"label": "production", "revisionName": "testcontainerApp0-ab1234", "weight": 100}],
},
"maxInactiveRevisions": 10,
+ "revisionTransitionThreshold": 100,
"runtime": {
"dotnet": {"autoConfigureDataProtection": True},
"java": {
@@ -147,6 +148,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 3ae8181fb130..ee552ca815d0 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Apply.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 46e89807a6d6..0627552285eb 100644
--- 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
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index ea96d388a69a..c40b32ca0d27 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 137b60c3a890..23a422afc4ef 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_ListByContainerApp.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 8c6cf0adfa0b..fcdf020e2e1b 100644
--- 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
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Skip_Configure.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ContainerAppsPatches_Skip_Configure.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
index 7a0d2a37f956..1af1b231c13f 100644
--- 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
@@ -92,6 +92,7 @@ def main():
"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",
@@ -161,6 +162,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_SourceToCloudApp_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 b931704058da..5195c5cb9ede 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Start.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 4e53aecae74d..19d2ccb3e39a 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Stop.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 9088967d2cec..a633d148a75d 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
@@ -75,6 +75,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 394bfb98e13f..93d3f28a268e 100644
--- 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
@@ -38,6 +38,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponentResiliencyPolicies_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 7c171732cfb2..b084d7ab4838 100644
--- 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
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponentResiliencyPolicies_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 64e1d88ee179..e1d7c062d599 100644
--- 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
@@ -39,6 +39,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponentResiliencyPolicies_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index c4c74ea43170..57a7d30fc763 100644
--- 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
@@ -59,6 +59,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 7ba3b3bded64..70f60a7dae0d 100644
--- 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
@@ -51,6 +51,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index d6699ea9382e..8c139b646551 100644
--- 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
@@ -51,6 +51,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 9e65fca11fad..21ddfb573af3 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
@@ -61,6 +61,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 fd9f72adf0ee..5e9ddfbc25b7 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
@@ -61,6 +61,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 bc2d152efa0b..05278023c449 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
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 ddb007ce3e77..fcd400a1154b 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Get_SecretStoreComponent.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 58575899c8e3..a7c2e8a267e5 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Get_Secrets.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 d714ed7bca74..5cf231655702 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 0f1599cd7207..e577d0aa359c 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_ListSecrets.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index a806104af44e..4d28a6ed0b70 100644
--- 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
@@ -47,6 +47,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 861b72b01334..a91260c03077 100644
--- 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
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_CreateOrUpdate_DefaultRoute.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index b9190c4a3420..f884820c624a 100644
--- 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
@@ -52,6 +52,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 5531aaa71688..bcb9a1ee4522 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_delete.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_delete.py
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 76c9018263a1..82f93d9ac708 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Get_BulkSubscribeAndScopes.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index eab424bf711a..48236ced5402 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Get_DefaultRoute.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 0bd6e9711f36..c8cdb97688e4 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Get_RouteRulesAndMetadata.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 04baa56e6474..b025688ecb29 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_list.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 7bf97b63e080..5d8bfd801452 100644
--- 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
@@ -44,6 +44,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index bdf0d33a3abb..21ecd3ccf329 100644
--- 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
@@ -50,6 +50,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_CreateOrUpdate_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 08d450b57995..f84c094e714a 100644
--- 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
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index af8ccf93d2d3..39ad0dcddef5 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 95a45b0579e1..4daf02ee43d9 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Get_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index e20c21100d1d..dcc4f532733c 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 5509186a4fa4..6237c9c4507a 100644
--- 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_List_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index b12aa6939207..e87f815f47d1 100644
--- 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
@@ -44,6 +44,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index d439a50b57cf..9f4bb5e3d0f8 100644
--- 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
@@ -50,6 +50,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Patch_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 46a70524d072..0044378f856b 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/functions_extension_post.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/functions_extension_post.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/FunctionsExtension_Post.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
new file mode 100644
index 000000000000..cf0e6eb3bfb1
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_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) 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 http_route_config_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="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ )
+
+ response = client.http_route_config.create_or_update(
+ resource_group_name="examplerg",
+ environment_name="testcontainerenv",
+ http_route_name="httproutefriendlyname",
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..34923d4fc6b3
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.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) 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 http_route_config_create_or_update_path_sep_prefix.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.http_route_config.create_or_update(
+ resource_group_name="examplerg",
+ environment_name="testcontainerenv",
+ http_route_name="httproutefriendlyname",
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..a39c81c2123e
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.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) 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 http_route_config_create_or_update_prefix.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.http_route_config.create_or_update(
+ resource_group_name="examplerg",
+ environment_name="testcontainerenv",
+ http_route_name="httproutefriendlyname",
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..996539159ba1
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_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) 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 http_route_config_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="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ )
+
+ client.http_route_config.delete(
+ resource_group_name="examplerg",
+ environment_name="testcontainerenv",
+ http_route_name="httproutefriendlyname",
+ )
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..2f22a94663ac
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_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) 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 http_route_config_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="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ )
+
+ response = client.http_route_config.get(
+ resource_group_name="examplerg",
+ environment_name="testcontainerenv",
+ http_route_name="httproutefriendlyname",
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..9815fe668183
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.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) 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 http_route_config_list_by_managed_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="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ )
+
+ response = client.http_route_config.list(
+ resource_group_name="examplerg",
+ environment_name="testcontainerenv",
+ )
+ for item in response:
+ print(item)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..4be23e65803c
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py
@@ -0,0 +1,63 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license 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 http_route_config_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.http_route_config.update(
+ resource_group_name="examplerg",
+ environment_name="testcontainerenv",
+ http_route_name="httproutefriendlyname",
+ http_route_config_envelope={
+ "properties": {
+ "customDomains": [
+ {
+ "bindingType": "SniEnabled",
+ "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificates/certificate-1",
+ "name": "example.com",
+ }
+ ],
+ "rules": [
+ {
+ "description": "random-description",
+ "routes": [
+ {"action": {"prefixRewrite": "/v1/api"}, "match": {"caseSensitive": True, "path": "/v1"}}
+ ],
+ "targets": [{"containerApp": "capp-1", "revision": "rev-1", "weight": 100}],
+ }
+ ],
+ }
+ },
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 78359218bf25..5f2b11ab7700 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
@@ -48,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 0a963ba92c96..66121829ac80 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
@@ -54,6 +54,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_CreateOrUpdate_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 783cb50c8e1a..c33abcec40c4 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
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f1f2f6ba1733..45aa7e9eb134 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 9f764f970b73..e5188648574b 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Get_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 1dfffd9db9f7..f9cb04f9249c 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 7e7008efcfbb..1408c7f01248 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_List_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 7b56ab8543fd..dd58a34e9100 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
@@ -48,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 a8fcc4eba3ed..c3998f1f1e49 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
@@ -54,6 +54,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Patch_ServiceBind.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/JavaComponents_Patch_ServiceBind.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 5aad6377c5c5..c0273423c3e2 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 6f1ec8ca2fe3..fc9993234600 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Execution_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 787f2903c41c..b05f91c36777 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Executions_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 432732fb53e2..eb7b37e8e9b5 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 c0cd4f3e5e07..fa9e758e417b 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_GetDetector.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 8e3ed688b03d..c2e3f55bbdc4 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListDetectors.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 45a5d1f3eda2..646345cc8499 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListSecrets.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Job_ListSecrets.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 166007f8aa4f..ae832607c215 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ProxyGet.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 660e975ae04e..8e32d4f3371d 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Start.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 d9efac99f737..08f8d3fee12c 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
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Execution.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 964d950f3103..bfd95a86b3ae 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Multiple.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 394544855a3b..989e3242ebd4 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
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListByResourceGroup.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 901b6ca6b3c4..bffe9762d5d4 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
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListBySubscription.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index d5103965c699..d6fed123ff2b 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_resume.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_resume.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Resume.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 494dc3570660..d2608b91a88b 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_suspend.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_suspend.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Suspend.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Jobs_Suspend.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..c2881eb4dd82
--- /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) 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 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="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ )
+
+ 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: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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..c32bf99b8f09
--- /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) 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 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="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
+ )
+
+ 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: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 b17a83a1db5a..2f9f6ad8f11d 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/preview/2024-08-02-preview/examples/LogicApps_Create.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 3723a6b14dc0..ccb5aa1921b1 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
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index 53a088ad48e8..64c12fa093f9 100644
--- 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
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_DeleteDeployWorkflowArtifacts.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 3f3bbb065063..b3cfc3f73f3c 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 10cc104a38d5..a7f35d006aae 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
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_GetWorkflow.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 0df82c749ed7..f4ecdbd37dfb 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListConnections.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 1760beb7571c..a38a520f60b2 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
@@ -39,6 +39,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListWorkflows.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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
index f2d1b47a8a05..f6fa6ea92b08 100644
--- 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
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_PostDeployWorkflowArtifacts.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/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 0a78917c2a1b..885fc979e31d 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 88d24e1ba8fb..c69ad3983800 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
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 af53b64175c2..6b4e0e1b2032 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 a75a51c33023..58891fcd5581 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificates_ListByManagedEnvironment.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 b05a6fd36ff3..d31d8e902793 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
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificates_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f0059c7b40bb..a322e73f55b4 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentDiagnostics_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 05db0567889d..7437f59e597a 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentDiagnostics_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..5a91d254a868
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.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) 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 managed_environment_maintenance_configurations_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="8efdecc5-919e-44eb-b179-915dca89ebf9",
+ )
+
+ response = client.maintenance_configurations.create_or_update(
+ resource_group_name="rg1",
+ environment_name="managedEnv",
+ config_name="default",
+ maintenance_configuration_envelope={
+ "properties": {"scheduledEntries": [{"durationHours": 9, "startHourUtc": 12, "weekDay": "Sunday"}]}
+ },
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..c4e35507178a
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_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) 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 managed_environment_maintenance_configurations_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="8efdecc5-919e-44eb-b179-915dca89ebf9",
+ )
+
+ client.maintenance_configurations.delete(
+ resource_group_name="rg1",
+ environment_name="managedEnv",
+ config_name="default",
+ )
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..58e95720befb
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_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) 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 managed_environment_maintenance_configurations_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="8efdecc5-919e-44eb-b179-915dca89ebf9",
+ )
+
+ response = client.maintenance_configurations.get(
+ resource_group_name="rg1",
+ environment_name="managedEnv",
+ config_name="default",
+ )
+ print(response)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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
new file mode 100644
index 000000000000..286e553c9c66
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_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) 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 managed_environment_maintenance_configurations_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="8efdecc5-919e-44eb-b179-915dca89ebf9",
+ )
+
+ response = client.maintenance_configurations.list(
+ resource_group_name="rg1",
+ environment_name="managedEnv",
+ )
+ for item in response:
+ print(item)
+
+
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 ac50de426bf2..7d94cc0668ca 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
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 4cda07073ec4..4f88a1b93207 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
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f294ecfe6ebc..719d2629123d 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f324695db3db..5cc14433c310 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentPrivateEndpointConnections_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 771e0aa19b54..f1e6eca7ae55 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentPrivateLinkResources_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 aa809adeb2e3..2ace1f0202a2 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentUsages_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 5fa930b36332..147bc4d15913 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
@@ -52,6 +52,7 @@ def main():
"sharedKey": "string",
}
},
+ "availabilityZones": ["1", "2", "3"],
"customDomainConfiguration": {
"certificatePassword": "1234",
"certificateValue": "Y2VydA==",
@@ -108,6 +109,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 8f8767d800dc..1be10ff061b7 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
@@ -37,6 +37,7 @@ def main():
"location": "East US",
"properties": {
"appLogsConfiguration": {"logAnalyticsConfiguration": {"customerId": "string", "sharedKey": "string"}},
+ "availabilityZones": ["1", "2", "3"],
"customDomainConfiguration": {
"certificatePassword": "1234",
"certificateValue": "Y2VydA==",
@@ -76,6 +77,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 835a60c6ba03..aec96f535548 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
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 7318e63a3949..3f58bc667651 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
@@ -9,7 +9,6 @@
from azure.identity import DefaultAzureCredential
from azure.mgmt.appcontainers import ContainerAppsAPIClient
-
"""
# PREREQUISITES
pip install azure-identity
@@ -22,8 +21,6 @@
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(),
@@ -31,12 +28,13 @@ def main():
)
response = client.managed_environments.get(
- resource_group_name="examplerg",
- environment_name="jlaw-demo1",
+ resource_group_name='examplerg',
+ environment_name='jlaw-demo1',
)
print(response)
-
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/ManagedEnvironments_Get.json
if __name__ == "__main__":
main()
+n__":
+ 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 d62bf60ab031..04e706d6ffd6 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_GetAuthToken.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 f6b0a88941b7..ae2888163165 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
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_ListByResourceGroup.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 fa26dbe7803e..f031733eea23 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
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_ListBySubscription.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 61c26bbbff07..a5848860fc61 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 a42e432b9031..638ec6fc8441 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 a3d5b15e6e3a..24c7e9449fe7 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
@@ -48,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 87655ae18c0e..48f17f51871d 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
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 e8d45d34bc46..de76edafee41 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
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentsStorages_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 1506b49d9b30..26df3a05de4b 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentsStorages_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 a69c23be4467..becf88ace864 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentsStorages_Get_NfsAzureFile.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 e27605853999..ae84c407984c 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironmentsStorages_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 d945168ac5c0..602a52d4d609 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Operations_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 4d55341354b1..8c45a7a53966 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 1620ba85d3de..d8f2b97cbfe9 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 c1fc63f741ea..0e1d622c5198 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Activate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 50cdbdd917af..faf629d0d885 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Deactivate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 0cb1046f492b..4c315b269258 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 fc17ef5677bc..446bec6c10de 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 018d3b7f8917..226c9b901665 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py
@@ -37,6 +37,6 @@ def main():
)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Restart.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/Revisions_Restart.json
if __name__ == "__main__":
main()
diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_create_or_update.py
index a9466d929675..5b2a4a24b4ab 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_create_or_update.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_create_or_update.py
@@ -34,6 +34,7 @@ def main():
resource_group_name="rg",
session_pool_name="testsessionpool",
session_pool_envelope={
+ "identity": {"type": "SystemAssigned"},
"location": "East US",
"properties": {
"containerType": "CustomContainer",
@@ -48,9 +49,14 @@ def main():
}
],
"ingress": {"targetPort": 80},
+ "registryCredentials": {
+ "identity": "/subscriptions/7a497526-bb8d-4816-9795-db1418a1f977/resourcegroups/test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testSP",
+ "server": "test.azurecr.io",
+ },
},
"dynamicPoolConfiguration": {"cooldownPeriodInSeconds": 600, "executionType": "Timed"},
"environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
+ "managedIdentitySettings": [{"identity": "system", "lifecycle": "Main"}],
"poolManagementType": "Dynamic",
"scaleConfiguration": {"maxConcurrentSessions": 500, "readySessionInstances": 100},
"sessionNetworkConfiguration": {"status": "EgressEnabled"},
@@ -60,6 +66,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SessionPools_CreateOrUpdate.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 87437162a7c2..7c4fe22b1fcc 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
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 2c8cced5037b..1c710125ca36 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
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/examples/SessionPools_Get.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 ecc34901eb6e..a73412ce069b 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
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_ListByResourceGroup.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 5a621a6ca5bb..666ca35f78e9 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
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_ListBySubscription.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 ec4fb6a3bff4..0869cb09e702 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/preview/2024-08-02-preview/examples/SessionPools_Patch.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 546e8c7f7c50..93435656f227 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
@@ -62,6 +62,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_CreateOrUpdate.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 190c5f835db5..5a05cff8ce41 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
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Delete.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 fe678c5d8efb..188bd1deda3f 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Get.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 858543e28e02..20dbc36c36d9 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
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_ListByContainer.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 16e4146f2b8a..02c44bb0c588 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
@@ -34,6 +34,6 @@ def main():
print(response)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Subscriptions_GetCustomDomainVerificationId.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 62f7320f33b0..27b3b7bac266 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Usages_List.json
+# x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-10-02-preview/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 94215044ea12..40d4267efe99 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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 54644f94f304..cb16c9119f95 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
@@ -59,7 +59,7 @@ def test_create_or_update(self, resource_group):
"timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -106,7 +106,7 @@ def test_update(self, resource_group):
"timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -119,7 +119,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
app_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -132,7 +132,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
app_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -144,7 +144,7 @@ def test_list(self, resource_group):
response = self.client.app_resiliency.list(
resource_group_name=resource_group.name,
app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 ff4be53d4302..defbd6b83dc4 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
@@ -60,7 +60,7 @@ async def test_create_or_update(self, resource_group):
"timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -107,7 +107,7 @@ async def test_update(self, resource_group):
"timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -120,7 +120,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
app_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -133,7 +133,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
app_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -145,7 +145,7 @@ async def test_list(self, resource_group):
response = self.client.app_resiliency.list(
resource_group_name=resource_group.name,
app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 ef584fad5d2d..38e2b5108164 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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 8eae410d0d89..e93c162d89bc 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_get(self, resource_group):
response = self.client.available_workload_profiles.get(
location="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 f1c9e48ffecb..5f186c371978 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_get(self, resource_group):
response = self.client.available_workload_profiles.get(
location="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_billing_meters_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py
index 275a3238118c..07c958a6f6ab 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_get(self, resource_group):
response = self.client.billing_meters.get(
location="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 f0b99ca05854..49c7b4d622f6 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_get(self, resource_group):
response = await self.client.billing_meters.get(
location="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations.py
index d042638f1658..c723ca272caa 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
@@ -25,7 +25,7 @@ def test_list(self, resource_group):
resource_group_name=resource_group.name,
builder_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 c318505cab15..544e714615aa 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
@@ -26,7 +26,7 @@ async def test_list(self, resource_group):
resource_group_name=resource_group.name,
builder_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 bf0aa1457acc..351477a443d2 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
@@ -22,7 +22,7 @@ def setup_method(self, method):
@recorded_by_proxy
def test_list_by_subscription(self, resource_group):
response = self.client.builders.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -33,7 +33,7 @@ def test_list_by_subscription(self, resource_group):
def test_list_by_resource_group(self, resource_group):
response = self.client.builders.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
response = self.client.builders.get(
resource_group_name=resource_group.name,
builder_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -81,7 +81,7 @@ def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -103,7 +103,7 @@ def test_begin_update(self, resource_group):
},
"tags": {"str": "str"},
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -115,7 +115,7 @@ def test_begin_delete(self, resource_group):
response = self.client.builders.begin_delete(
resource_group_name=resource_group.name,
builder_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_builders_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations_async.py
index 22c6c7970201..b7a279e0950c 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
@@ -23,7 +23,7 @@ def setup_method(self, method):
@recorded_by_proxy_async
async def test_list_by_subscription(self, resource_group):
response = self.client.builders.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -34,7 +34,7 @@ async def test_list_by_subscription(self, resource_group):
async def test_list_by_resource_group(self, resource_group):
response = self.client.builders.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
response = await self.client.builders.get(
resource_group_name=resource_group.name,
builder_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -83,7 +83,7 @@ async def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -107,7 +107,7 @@ async def test_begin_update(self, resource_group):
},
"tags": {"str": "str"},
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -121,7 +121,7 @@ async def test_begin_delete(self, resource_group):
await self.client.builders.begin_delete(
resource_group_name=resource_group.name,
builder_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 b09222cbb50d..ee61ed426108 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
@@ -24,7 +24,7 @@ def test_list(self, resource_group):
response = self.client.builds_by_builder_resource.list(
resource_group_name=resource_group.name,
builder_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 3bb9dc3a779f..e90c98c2c443 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
@@ -25,7 +25,7 @@ async def test_list(self, resource_group):
response = self.client.builds_by_builder_resource.list(
resource_group_name=resource_group.name,
builder_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 27fc8b6e19e6..629c8e385850 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
@@ -25,7 +25,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
builder_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -70,7 +70,7 @@ def test_begin_create_or_update(self, resource_group):
"type": "str",
"uploadEndpoint": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -83,7 +83,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
builder_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 8926a7c50342..cba545e20431 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
@@ -26,7 +26,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
builder_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -72,7 +72,7 @@ async def test_begin_create_or_update(self, resource_group):
"type": "str",
"uploadEndpoint": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -87,7 +87,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
builder_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 bb71a5ae354f..dec7806cc204 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_list(self, resource_group):
response = self.client.certificates.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ def test_create_or_update(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -63,7 +63,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -77,7 +77,7 @@ def test_update(self, resource_group):
environment_name="str",
certificate_name="str",
certificate_envelope={"tags": {"str": "str"}},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 fa7528f15ff7..1ed3a7e8fb3c 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_list(self, resource_group):
response = self.client.certificates.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -51,7 +51,7 @@ async def test_create_or_update(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -64,7 +64,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -78,7 +78,7 @@ async def test_update(self, resource_group):
environment_name="str",
certificate_name="str",
certificate_envelope={"tags": {"str": "str"}},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 90e7557395ce..f5e03af5259d 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_list(self, resource_group):
response = self.client.connected_environments_certificates.list(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -45,40 +45,40 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_create_or_update(self, resource_group):
- response = self.client.connected_environments_certificates.create_or_update(
+ def test_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="2024-08-02-preview",
- )
+ api_version="2024-10-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_delete(self, resource_group):
- response = self.client.connected_environments_certificates.delete(
+ def test_begin_delete(self, resource_group):
+ response = self.client.connected_environments_certificates.begin_delete(
resource_group_name=resource_group.name,
connected_environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-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_update(self, resource_group):
- response = self.client.connected_environments_certificates.update(
+ def test_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",
certificate_envelope={"tags": {"str": "str"}},
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-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_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 1aecd0cca672..8ae4dab8706c 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_list(self, resource_group):
response = self.client.connected_environments_certificates.list(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -46,40 +46,46 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_create_or_update(self, resource_group):
- response = await self.client.connected_environments_certificates.create_or_update(
- resource_group_name=resource_group.name,
- connected_environment_name="str",
- certificate_name="str",
- api_version="2024-08-02-preview",
- )
+ async def test_begin_create_or_update(self, resource_group):
+ response = await (
+ await self.client.connected_environments_certificates.begin_create_or_update(
+ resource_group_name=resource_group.name,
+ connected_environment_name="str",
+ certificate_name="str",
+ api_version="2024-10-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_delete(self, resource_group):
- response = await self.client.connected_environments_certificates.delete(
- resource_group_name=resource_group.name,
- connected_environment_name="str",
- certificate_name="str",
- api_version="2024-08-02-preview",
- )
+ async def test_begin_delete(self, resource_group):
+ response = await (
+ await self.client.connected_environments_certificates.begin_delete(
+ resource_group_name=resource_group.name,
+ connected_environment_name="str",
+ certificate_name="str",
+ api_version="2024-10-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_update(self, resource_group):
- response = await self.client.connected_environments_certificates.update(
- resource_group_name=resource_group.name,
- connected_environment_name="str",
- certificate_name="str",
- certificate_envelope={"tags": {"str": "str"}},
- api_version="2024-08-02-preview",
- )
+ async def test_begin_update(self, resource_group):
+ response = await (
+ await self.client.connected_environments_certificates.begin_update(
+ resource_group_name=resource_group.name,
+ connected_environment_name="str",
+ certificate_name="str",
+ certificate_envelope={"tags": {"str": "str"}},
+ api_version="2024-10-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_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 d8e59805808a..bae96c4c1184 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_list(self, resource_group):
response = self.client.connected_environments_dapr_components.list(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -45,18 +45,20 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_create_or_update(self, resource_group):
- response = self.client.connected_environments_dapr_components.create_or_update(
+ def test_begin_create_or_update(self, resource_group):
+ response = self.client.connected_environments_dapr_components.begin_create_or_update(
resource_group_name=resource_group.name,
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"}],
@@ -74,21 +76,21 @@ def test_create_or_update(self, resource_group):
"type": "str",
"version": "str",
},
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-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_delete(self, resource_group):
- response = self.client.connected_environments_dapr_components.delete(
+ def test_begin_delete(self, resource_group):
+ response = self.client.connected_environments_dapr_components.begin_delete(
resource_group_name=resource_group.name,
connected_environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-02-preview",
+ ).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
# ...
@@ -100,7 +102,7 @@ def test_list_secrets(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 1c70aa13e458..0ae09e688467 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_list(self, resource_group):
response = self.client.connected_environments_dapr_components.list(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -46,50 +46,56 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_create_or_update(self, resource_group):
- response = await self.client.connected_environments_dapr_components.create_or_update(
- resource_group_name=resource_group.name,
- connected_environment_name="str",
- component_name="str",
- dapr_component_envelope={
- "componentType": "str",
- "id": "str",
- "ignoreErrors": False,
- "initTimeout": "str",
- "metadata": [{"name": "str", "secretRef": "str", "value": "str"}],
- "name": "str",
- "scopes": ["str"],
- "secretStoreComponent": "str",
- "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}],
- "serviceComponentBind": [
- {"metadata": {"name": "str", "value": "str"}, "name": "str", "serviceId": "str"}
- ],
- "systemData": {
- "createdAt": "2020-02-20 00:00:00",
- "createdBy": "str",
- "createdByType": "str",
- "lastModifiedAt": "2020-02-20 00:00:00",
- "lastModifiedBy": "str",
- "lastModifiedByType": "str",
+ async def test_begin_create_or_update(self, resource_group):
+ response = await (
+ await self.client.connected_environments_dapr_components.begin_create_or_update(
+ resource_group_name=resource_group.name,
+ 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"}],
+ "serviceComponentBind": [
+ {"metadata": {"name": "str", "value": "str"}, "name": "str", "serviceId": "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",
+ "version": "str",
},
- "type": "str",
- "version": "str",
- },
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-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_delete(self, resource_group):
- response = await self.client.connected_environments_dapr_components.delete(
- resource_group_name=resource_group.name,
- connected_environment_name="str",
- component_name="str",
- api_version="2024-08-02-preview",
- )
+ async def test_begin_delete(self, resource_group):
+ response = await (
+ await self.client.connected_environments_dapr_components.begin_delete(
+ resource_group_name=resource_group.name,
+ connected_environment_name="str",
+ component_name="str",
+ api_version="2024-10-02-preview",
+ )
+ ).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
# ...
@@ -101,7 +107,7 @@ async def test_list_secrets(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 d8d65eaeb645..8a1bd704f93e 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_list_by_subscription(self, resource_group):
response = self.client.connected_environments.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -33,7 +33,7 @@ def test_list_by_subscription(self, resource_group):
def test_list_by_resource_group(self, resource_group):
response = self.client.connected_environments.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
response = self.client.connected_environments.get(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -88,7 +88,7 @@ def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -100,7 +100,7 @@ def test_begin_delete(self, resource_group):
response = self.client.connected_environments.begin_delete(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -112,7 +112,7 @@ def test_update(self, resource_group):
response = self.client.connected_environments.update(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -125,7 +125,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 20b583aecca8..a5ff68392a27 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_list_by_subscription(self, resource_group):
response = self.client.connected_environments.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -34,7 +34,7 @@ async def test_list_by_subscription(self, resource_group):
async def test_list_by_resource_group(self, resource_group):
response = self.client.connected_environments.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
response = await self.client.connected_environments.get(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -90,7 +90,7 @@ async def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -104,7 +104,7 @@ async def test_begin_delete(self, resource_group):
await self.client.connected_environments.begin_delete(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -117,7 +117,7 @@ async def test_update(self, resource_group):
response = await self.client.connected_environments.update(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -130,7 +130,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 9d23204d77e3..6f3da40fc0f3 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_list(self, resource_group):
response = self.client.connected_environments_storages.list(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
storage_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -45,8 +45,8 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_create_or_update(self, resource_group):
- response = self.client.connected_environments_storages.create_or_update(
+ def test_begin_create_or_update(self, resource_group):
+ response = self.client.connected_environments_storages.begin_create_or_update(
resource_group_name=resource_group.name,
connected_environment_name="str",
storage_name="str",
@@ -55,6 +55,8 @@ def test_create_or_update(self, resource_group):
"name": "str",
"properties": {
"azureFile": {"accessMode": "str", "accountKey": "str", "accountName": "str", "shareName": "str"},
+ "deploymentErrors": "str",
+ "provisioningState": "str",
"smb": {
"accessMode": "str",
"domain": "str",
@@ -74,21 +76,21 @@ def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-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_delete(self, resource_group):
- response = self.client.connected_environments_storages.delete(
+ def test_begin_delete(self, resource_group):
+ response = self.client.connected_environments_storages.begin_delete(
resource_group_name=resource_group.name,
connected_environment_name="str",
storage_name="str",
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-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_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 2f61ad4ecc5a..0309670a919d 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_list(self, resource_group):
response = await self.client.connected_environments_storages.list(
resource_group_name=resource_group.name,
connected_environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
connected_environment_name="str",
storage_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -46,50 +46,61 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_create_or_update(self, resource_group):
- response = await self.client.connected_environments_storages.create_or_update(
- resource_group_name=resource_group.name,
- connected_environment_name="str",
- storage_name="str",
- storage_envelope={
- "id": "str",
- "name": "str",
- "properties": {
- "azureFile": {"accessMode": "str", "accountKey": "str", "accountName": "str", "shareName": "str"},
- "smb": {
- "accessMode": "str",
- "domain": "str",
- "host": "str",
- "password": "str",
- "shareName": "str",
- "username": "str",
+ async def test_begin_create_or_update(self, resource_group):
+ response = await (
+ await self.client.connected_environments_storages.begin_create_or_update(
+ resource_group_name=resource_group.name,
+ connected_environment_name="str",
+ storage_name="str",
+ storage_envelope={
+ "id": "str",
+ "name": "str",
+ "properties": {
+ "azureFile": {
+ "accessMode": "str",
+ "accountKey": "str",
+ "accountName": "str",
+ "shareName": "str",
+ },
+ "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",
+ "createdBy": "str",
+ "createdByType": "str",
+ "lastModifiedAt": "2020-02-20 00:00:00",
+ "lastModifiedBy": "str",
+ "lastModifiedByType": "str",
+ },
+ "type": "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",
- },
- api_version="2024-08-02-preview",
- )
+ api_version="2024-10-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_delete(self, resource_group):
- response = await self.client.connected_environments_storages.delete(
- resource_group_name=resource_group.name,
- connected_environment_name="str",
- storage_name="str",
- api_version="2024-08-02-preview",
- )
+ async def test_begin_delete(self, resource_group):
+ response = await (
+ await self.client.connected_environments_storages.begin_delete(
+ resource_group_name=resource_group.name,
+ connected_environment_name="str",
+ storage_name="str",
+ api_version="2024-10-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_auth_configs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py
index a05430f40e0d..d1d11cc06b56 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
auth_config_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -144,7 +144,12 @@ def test_create_or_update(self, resource_group):
"preserveUrlFragmentsForLogins": bool,
"routes": {"logoutEndpoint": "str"},
"tokenStore": {
- "azureBlobStorage": {"sasUrlSettingName": "str"},
+ "azureBlobStorage": {
+ "blobContainerUri": "str",
+ "clientId": "str",
+ "managedIdentityResourceId": "str",
+ "sasUrlSettingName": "str",
+ },
"enabled": bool,
"tokenRefreshExtensionHours": 0.0,
},
@@ -161,7 +166,7 @@ def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -174,7 +179,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
auth_config_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 a5de3d34523f..bfc68aa99364 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
auth_config_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -145,7 +145,12 @@ async def test_create_or_update(self, resource_group):
"preserveUrlFragmentsForLogins": bool,
"routes": {"logoutEndpoint": "str"},
"tokenStore": {
- "azureBlobStorage": {"sasUrlSettingName": "str"},
+ "azureBlobStorage": {
+ "blobContainerUri": "str",
+ "clientId": "str",
+ "managedIdentityResourceId": "str",
+ "sasUrlSettingName": "str",
+ },
"enabled": bool,
"tokenRefreshExtensionHours": 0.0,
},
@@ -162,7 +167,7 @@ async def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -175,7 +180,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
auth_config_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 de15466e9fb8..bc831dc7973a 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
@@ -24,7 +24,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-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 88f9aa60204e..c1bcffa29933 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
@@ -25,7 +25,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-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 b401d0208703..9aa068f7bfcf 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
@@ -25,7 +25,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 d3686d69e48e..d40aadcd5bca 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
@@ -26,7 +26,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -40,7 +40,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
build_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 6feb281ecca7..c5c26d840f50 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get_detector(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
detector_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -49,7 +49,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -62,7 +62,7 @@ def test_get_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -74,7 +74,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 31469c25d996..19665bb4d04c 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get_detector(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
detector_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -63,7 +63,7 @@ async def test_get_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -75,7 +75,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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
new file mode 100644
index 000000000000..1321e468248e
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_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) AutoRest 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 TestContainerAppsAPIContainerAppsLabelHistoryOperations(AzureMgmtRecordedTestCase):
+ def setup_method(self, method):
+ self.client = self.create_mgmt_client(ContainerAppsAPIClient)
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_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",
+ api_version="2024-10-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_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",
+ label_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # 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
new file mode 100644
index 000000000000..0f0807472ba8
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_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) AutoRest 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 TestContainerAppsAPIContainerAppsLabelHistoryOperationsAsync(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_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",
+ api_version="2024-10-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_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",
+ label_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # 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 990c849a6efc..ec34e004e8c8 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_list_by_subscription(self, resource_group):
response = self.client.container_apps.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -33,7 +33,7 @@ def test_list_by_subscription(self, resource_group):
def test_list_by_resource_group(self, resource_group):
response = self.client.container_apps.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
response = self.client.container_apps.get(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -71,7 +71,7 @@ def test_begin_create_or_update(self, resource_group):
"httpReadBufferSize": 0,
"logLevel": "str",
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"ingress": {
"additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}],
"allowInsecure": False,
@@ -99,6 +99,7 @@ def test_begin_create_or_update(self, resource_group):
},
"maxInactiveRevisions": 0,
"registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}],
+ "revisionTransitionThreshold": 0,
"runtime": {
"dotnet": {"autoConfigureDataProtection": bool},
"java": {
@@ -111,6 +112,7 @@ def test_begin_create_or_update(self, resource_group):
},
"secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}],
"service": {"type": "str"},
+ "targetLabel": "str",
},
"customDomainVerificationId": "str",
"deploymentErrors": "str",
@@ -134,6 +136,7 @@ def test_begin_create_or_update(self, resource_group):
"outboundIpAddresses": ["str"],
"patchingConfiguration": {"patchingMode": "str"},
"provisioningState": "str",
+ "runningStatus": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
@@ -171,7 +174,7 @@ def test_begin_create_or_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"}],
}
],
@@ -183,7 +186,7 @@ def test_begin_create_or_update(self, resource_group):
"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"}],
}
],
@@ -239,7 +242,7 @@ def test_begin_create_or_update(self, resource_group):
"type": "str",
"workloadProfileName": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -251,7 +254,7 @@ def test_begin_delete(self, resource_group):
response = self.client.container_apps.begin_delete(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -277,7 +280,7 @@ def test_begin_update(self, resource_group):
"httpReadBufferSize": 0,
"logLevel": "str",
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"ingress": {
"additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}],
"allowInsecure": False,
@@ -305,6 +308,7 @@ def test_begin_update(self, resource_group):
},
"maxInactiveRevisions": 0,
"registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}],
+ "revisionTransitionThreshold": 0,
"runtime": {
"dotnet": {"autoConfigureDataProtection": bool},
"java": {
@@ -317,6 +321,7 @@ def test_begin_update(self, resource_group):
},
"secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}],
"service": {"type": "str"},
+ "targetLabel": "str",
},
"customDomainVerificationId": "str",
"deploymentErrors": "str",
@@ -340,6 +345,7 @@ def test_begin_update(self, resource_group):
"outboundIpAddresses": ["str"],
"patchingConfiguration": {"patchingMode": "str"},
"provisioningState": "str",
+ "runningStatus": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
@@ -377,7 +383,7 @@ def test_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"}],
}
],
@@ -389,7 +395,7 @@ def test_begin_update(self, resource_group):
"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"}],
}
],
@@ -445,7 +451,7 @@ def test_begin_update(self, resource_group):
"type": "str",
"workloadProfileName": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -457,7 +463,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -469,7 +475,7 @@ def test_list_secrets(self, resource_group):
response = self.client.container_apps.list_secrets(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -481,7 +487,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -493,7 +499,7 @@ def test_begin_start(self, resource_group):
response = self.client.container_apps.begin_start(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -505,7 +511,7 @@ def test_begin_stop(self, resource_group):
response = self.client.container_apps.begin_stop(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py
index 79bf6b517286..f743f42f45bd 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_list_by_subscription(self, resource_group):
response = self.client.container_apps.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -34,7 +34,7 @@ async def test_list_by_subscription(self, resource_group):
async def test_list_by_resource_group(self, resource_group):
response = self.client.container_apps.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
response = await self.client.container_apps.get(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -73,7 +73,7 @@ async def test_begin_create_or_update(self, resource_group):
"httpReadBufferSize": 0,
"logLevel": "str",
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"ingress": {
"additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}],
"allowInsecure": False,
@@ -103,6 +103,7 @@ async def test_begin_create_or_update(self, resource_group):
"registries": [
{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}
],
+ "revisionTransitionThreshold": 0,
"runtime": {
"dotnet": {"autoConfigureDataProtection": bool},
"java": {
@@ -115,6 +116,7 @@ async def test_begin_create_or_update(self, resource_group):
},
"secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}],
"service": {"type": "str"},
+ "targetLabel": "str",
},
"customDomainVerificationId": "str",
"deploymentErrors": "str",
@@ -138,6 +140,7 @@ async def test_begin_create_or_update(self, resource_group):
"outboundIpAddresses": ["str"],
"patchingConfiguration": {"patchingMode": "str"},
"provisioningState": "str",
+ "runningStatus": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
@@ -175,7 +178,7 @@ async def test_begin_create_or_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"}],
}
],
@@ -187,7 +190,7 @@ async def test_begin_create_or_update(self, resource_group):
"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"}],
}
],
@@ -243,7 +246,7 @@ async def test_begin_create_or_update(self, resource_group):
"type": "str",
"workloadProfileName": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -257,7 +260,7 @@ async def test_begin_delete(self, resource_group):
await self.client.container_apps.begin_delete(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -285,7 +288,7 @@ async def test_begin_update(self, resource_group):
"httpReadBufferSize": 0,
"logLevel": "str",
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"ingress": {
"additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}],
"allowInsecure": False,
@@ -315,6 +318,7 @@ async def test_begin_update(self, resource_group):
"registries": [
{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}
],
+ "revisionTransitionThreshold": 0,
"runtime": {
"dotnet": {"autoConfigureDataProtection": bool},
"java": {
@@ -327,6 +331,7 @@ async def test_begin_update(self, resource_group):
},
"secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}],
"service": {"type": "str"},
+ "targetLabel": "str",
},
"customDomainVerificationId": "str",
"deploymentErrors": "str",
@@ -350,6 +355,7 @@ async def test_begin_update(self, resource_group):
"outboundIpAddresses": ["str"],
"patchingConfiguration": {"patchingMode": "str"},
"provisioningState": "str",
+ "runningStatus": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
@@ -387,7 +393,7 @@ async def test_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"}],
}
],
@@ -399,7 +405,7 @@ async def test_begin_update(self, resource_group):
"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"}],
}
],
@@ -455,7 +461,7 @@ async def test_begin_update(self, resource_group):
"type": "str",
"workloadProfileName": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -468,7 +474,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -480,7 +486,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -492,7 +498,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -505,7 +511,7 @@ async def test_begin_start(self, resource_group):
await self.client.container_apps.begin_start(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -519,7 +525,7 @@ async def test_begin_stop(self, resource_group):
await self.client.container_apps.begin_stop(
resource_group_name=resource_group.name,
container_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_patches_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations.py
index 066218350cda..82861c237a88 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
@@ -24,7 +24,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
patch_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
patch_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -64,7 +64,7 @@ def test_begin_skip_configure(self, resource_group):
container_app_name="str",
patch_name="str",
patch_skip_config={"skip": bool},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -77,7 +77,7 @@ def test_begin_apply(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
patch_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 ceffcba02976..46da52eabc88 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
@@ -25,7 +25,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
patch_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -52,7 +52,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
patch_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -68,7 +68,7 @@ async def test_begin_skip_configure(self, resource_group):
container_app_name="str",
patch_name="str",
patch_skip_config={"skip": bool},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -83,7 +83,7 @@ async def test_begin_apply(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
patch_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py
index 2a146342491d..d8cb13a24677 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_get_replica(self, resource_group):
container_app_name="str",
revision_name="str",
replica_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -39,7 +39,7 @@ def test_list_replicas(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 2057852c3796..a0860cd3518a 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_get_replica(self, resource_group):
container_app_name="str",
revision_name="str",
replica_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -40,7 +40,7 @@ async def test_list_replicas(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 94d92dbc0bfb..d2ab3e963b45 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ def test_activate_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -63,7 +63,7 @@ def test_deactivate_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -76,7 +76,7 @@ def test_restart_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 a1947378e9ec..fd792fd702b9 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -51,7 +51,7 @@ async def test_activate_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -64,7 +64,7 @@ async def test_deactivate_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -77,7 +77,7 @@ async def test_restart_revision(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
revision_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 10922dbeb837..854c108419d1 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_list_by_subscription(self, resource_group):
response = self.client.container_apps_session_pools.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -33,7 +33,7 @@ def test_list_by_subscription(self, resource_group):
def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
response = self.client.container_apps_session_pools.get(
resource_group_name=resource_group.name,
session_pool_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -82,6 +82,13 @@ def test_begin_create_or_update(self, resource_group):
"dynamicPoolConfiguration": {"cooldownPeriodInSeconds": 0, "executionType": "str"},
"environmentId": "str",
"id": "str",
+ "identity": {
+ "type": "str",
+ "principalId": "str",
+ "tenantId": "str",
+ "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}},
+ },
+ "managedIdentitySettings": [{"identity": "str", "lifecycle": "str"}],
"name": "str",
"nodeCount": 0,
"poolManagementEndpoint": "str",
@@ -101,7 +108,7 @@ def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -134,11 +141,17 @@ def test_begin_update(self, resource_group):
},
},
"dynamicPoolConfiguration": {"cooldownPeriodInSeconds": 0, "executionType": "str"},
+ "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"},
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -150,7 +163,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-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_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 e621004b8fad..b8de671d1a27 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_list_by_subscription(self, resource_group):
response = self.client.container_apps_session_pools.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -34,7 +34,7 @@ async def test_list_by_subscription(self, resource_group):
async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -84,6 +84,13 @@ async def test_begin_create_or_update(self, resource_group):
"dynamicPoolConfiguration": {"cooldownPeriodInSeconds": 0, "executionType": "str"},
"environmentId": "str",
"id": "str",
+ "identity": {
+ "type": "str",
+ "principalId": "str",
+ "tenantId": "str",
+ "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}},
+ },
+ "managedIdentitySettings": [{"identity": "str", "lifecycle": "str"}],
"name": "str",
"nodeCount": 0,
"poolManagementEndpoint": "str",
@@ -103,7 +110,7 @@ async def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -138,11 +145,17 @@ async def test_begin_update(self, resource_group):
},
},
"dynamicPoolConfiguration": {"cooldownPeriodInSeconds": 0, "executionType": "str"},
+ "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"},
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -156,7 +169,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-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_source_controls_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py
index d1c3378482b3..39ccfb331e58 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
source_control_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -85,7 +85,7 @@ def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -98,7 +98,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
source_control_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 e7bdc90db6a5..2878be58bbc9 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
source_control_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -87,7 +87,7 @@ async def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -102,7 +102,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
source_control_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 3147d365491d..6185f12c75ff 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
@@ -25,7 +25,7 @@ def test_list(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -39,7 +39,7 @@ def test_get(self, resource_group):
environment_name="str",
component_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -82,7 +82,7 @@ def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -96,7 +96,7 @@ def test_delete(self, resource_group):
environment_name="str",
component_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 fc06f53a0604..e6b62f5c7812 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
@@ -26,7 +26,7 @@ async def test_list(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -40,7 +40,7 @@ async def test_get(self, resource_group):
environment_name="str",
component_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -83,7 +83,7 @@ async def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -97,7 +97,7 @@ async def test_delete(self, resource_group):
environment_name="str",
component_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 bbd3070f070f..efc218e9d537 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_list(self, resource_group):
response = self.client.dapr_components.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -74,7 +74,7 @@ def test_create_or_update(self, resource_group):
"type": "str",
"version": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -87,7 +87,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -100,7 +100,7 @@ def test_list_secrets(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 59f9d86584b9..78e71aa0ae77 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_list(self, resource_group):
response = self.client.dapr_components.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -75,7 +75,7 @@ async def test_create_or_update(self, resource_group):
"type": "str",
"version": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -88,7 +88,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -101,7 +101,7 @@ async def test_list_secrets(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
component_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 49197250bc40..6e26963ea279 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
@@ -24,7 +24,7 @@ def test_list(self, resource_group):
response = self.client.dapr_subscriptions.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -70,7 +70,7 @@ def test_create_or_update(self, resource_group):
"topic": "str",
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -83,7 +83,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 9038a3c23b75..bf13d4f59ead 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
@@ -25,7 +25,7 @@ async def test_list(self, resource_group):
response = self.client.dapr_subscriptions.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -71,7 +71,7 @@ async def test_create_or_update(self, resource_group):
"topic": "str",
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -84,7 +84,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 72a4e436436f..ccb8897f4c77 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
@@ -24,7 +24,7 @@ def test_list(self, resource_group):
response = self.client.dot_net_components.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -67,7 +67,7 @@ def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -97,7 +97,7 @@ def test_begin_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -110,7 +110,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 1e6a8021baa2..11c06d729957 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
@@ -25,7 +25,7 @@ async def test_list(self, resource_group):
response = self.client.dot_net_components.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -69,7 +69,7 @@ async def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -101,7 +101,7 @@ async def test_begin_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -116,7 +116,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_functions_extension_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations.py
index 743c92817f33..eea8f279ef88 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
@@ -26,7 +26,7 @@ def test_invoke_functions_host(self, resource_group):
container_app_name="str",
revision_name="str",
function_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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 7601b17d79b5..f24ef8962b8a 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
@@ -27,7 +27,7 @@ async def test_invoke_functions_host(self, resource_group):
container_app_name="str",
revision_name="str",
function_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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
new file mode 100644
index 000000000000..395bac9fca63
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py
@@ -0,0 +1,119 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+import 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 TestContainerAppsAPIHttpRouteConfigOperations(AzureMgmtRecordedTestCase):
+ def setup_method(self, method):
+ self.client = self.create_mgmt_client(ContainerAppsAPIClient)
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_get(self, resource_group):
+ response = self.client.http_route_config.get(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_create_or_update(self, resource_group):
+ response = self.client.http_route_config.create_or_update(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_update(self, resource_group):
+ response = self.client.http_route_config.update(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ http_route_config_envelope={
+ "id": "str",
+ "name": "str",
+ "properties": {
+ "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}],
+ "fqdn": "str",
+ "provisioningErrors": [{"message": "str", "timestamp": "2020-02-20 00:00:00"}],
+ "provisioningState": "str",
+ "rules": [
+ {
+ "description": "str",
+ "routes": [
+ {
+ "action": {"prefixRewrite": "str"},
+ "match": {
+ "caseSensitive": bool,
+ "path": "str",
+ "pathSeparatedPrefix": "str",
+ "prefix": "str",
+ },
+ }
+ ],
+ "targets": [{"containerApp": "str", "label": "str", "revision": "str", "weight": 0}],
+ }
+ ],
+ },
+ "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",
+ },
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_delete(self, resource_group):
+ response = self.client.http_route_config.delete(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_list(self, resource_group):
+ response = self.client.http_route_config.list(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ api_version="2024-10-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_http_route_config_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py
new file mode 100644
index 000000000000..23cb88d29886
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py
@@ -0,0 +1,120 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+import 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 TestContainerAppsAPIHttpRouteConfigOperationsAsync(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_get(self, resource_group):
+ response = await self.client.http_route_config.get(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_create_or_update(self, resource_group):
+ response = await self.client.http_route_config.create_or_update(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_update(self, resource_group):
+ response = await self.client.http_route_config.update(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ http_route_config_envelope={
+ "id": "str",
+ "name": "str",
+ "properties": {
+ "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}],
+ "fqdn": "str",
+ "provisioningErrors": [{"message": "str", "timestamp": "2020-02-20 00:00:00"}],
+ "provisioningState": "str",
+ "rules": [
+ {
+ "description": "str",
+ "routes": [
+ {
+ "action": {"prefixRewrite": "str"},
+ "match": {
+ "caseSensitive": bool,
+ "path": "str",
+ "pathSeparatedPrefix": "str",
+ "prefix": "str",
+ },
+ }
+ ],
+ "targets": [{"containerApp": "str", "label": "str", "revision": "str", "weight": 0}],
+ }
+ ],
+ },
+ "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",
+ },
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_delete(self, resource_group):
+ response = await self.client.http_route_config.delete(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ http_route_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_list(self, resource_group):
+ response = self.client.http_route_config.list(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ api_version="2024-10-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_java_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py
index 3e2beb5bccf3..a550679e51e5 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_list(self, resource_group):
response = self.client.java_components.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -64,7 +64,7 @@ def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -91,7 +91,7 @@ def test_begin_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -104,7 +104,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_java_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py
index afe090122714..edb26bc78b8a 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_list(self, resource_group):
response = self.client.java_components.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -66,7 +66,7 @@ async def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -95,7 +95,7 @@ async def test_begin_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -110,7 +110,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_jobs_executions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py
index c2e31ca66ea3..42697798cf4f 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_list(self, resource_group):
response = self.client.jobs_executions.list(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_jobs_executions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py
index 3bc443073725..f50754cd5915 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_list(self, resource_group):
response = self.client.jobs_executions.list(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_jobs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py
index 9f8d3be2d07f..c88b2789d61e 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_list_detectors(self, resource_group):
response = self.client.jobs.list_detectors(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get_detector(self, resource_group):
resource_group_name=resource_group.name,
job_name="str",
detector_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ def test_proxy_get(self, resource_group):
resource_group_name=resource_group.name,
job_name="str",
api_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -60,7 +60,7 @@ def test_proxy_get(self, resource_group):
@recorded_by_proxy
def test_list_by_subscription(self, resource_group):
response = self.client.jobs.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -71,7 +71,7 @@ def test_list_by_subscription(self, resource_group):
def test_list_by_resource_group(self, resource_group):
response = self.client.jobs.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -83,7 +83,7 @@ def test_get(self, resource_group):
response = self.client.jobs.get(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -118,7 +118,7 @@ def test_begin_create_or_update(self, resource_group):
],
},
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0},
"registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}],
"replicaRetryLimit": 0,
@@ -176,7 +176,7 @@ def test_begin_create_or_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"}],
}
],
@@ -188,7 +188,7 @@ def test_begin_create_or_update(self, resource_group):
"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"}],
}
],
@@ -205,7 +205,7 @@ def test_begin_create_or_update(self, resource_group):
"type": "str",
"workloadProfileName": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -217,7 +217,7 @@ def test_begin_delete(self, resource_group):
response = self.client.jobs.begin_delete(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -259,7 +259,7 @@ def test_begin_update(self, resource_group):
],
},
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0},
"registries": [
{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}
@@ -303,7 +303,7 @@ def test_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"}],
}
],
@@ -315,7 +315,7 @@ def test_begin_update(self, resource_group):
"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"}],
}
],
@@ -332,7 +332,7 @@ def test_begin_update(self, resource_group):
},
"tags": {"str": "str"},
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -344,7 +344,7 @@ def test_begin_start(self, resource_group):
response = self.client.jobs.begin_start(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -357,7 +357,7 @@ def test_begin_stop_execution(self, resource_group):
resource_group_name=resource_group.name,
job_name="str",
job_execution_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -369,7 +369,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -381,7 +381,7 @@ def test_list_secrets(self, resource_group):
response = self.client.jobs.list_secrets(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -393,7 +393,7 @@ def test_begin_resume(self, resource_group):
response = self.client.jobs.begin_resume(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -405,7 +405,7 @@ def test_begin_suspend(self, resource_group):
response = self.client.jobs.begin_suspend(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_jobs_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py
index 09e16b1e7465..c320bafd02d3 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_list_detectors(self, resource_group):
response = self.client.jobs.list_detectors(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get_detector(self, resource_group):
resource_group_name=resource_group.name,
job_name="str",
detector_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -51,7 +51,7 @@ async def test_proxy_get(self, resource_group):
resource_group_name=resource_group.name,
job_name="str",
api_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -61,7 +61,7 @@ async def test_proxy_get(self, resource_group):
@recorded_by_proxy_async
async def test_list_by_subscription(self, resource_group):
response = self.client.jobs.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -72,7 +72,7 @@ async def test_list_by_subscription(self, resource_group):
async def test_list_by_resource_group(self, resource_group):
response = self.client.jobs.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -84,7 +84,7 @@ async def test_get(self, resource_group):
response = await self.client.jobs.get(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -120,7 +120,7 @@ async def test_begin_create_or_update(self, resource_group):
],
},
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0},
"registries": [
{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}
@@ -184,7 +184,7 @@ async def test_begin_create_or_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"}],
}
],
@@ -196,7 +196,7 @@ async def test_begin_create_or_update(self, resource_group):
"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"}],
}
],
@@ -213,7 +213,7 @@ async def test_begin_create_or_update(self, resource_group):
"type": "str",
"workloadProfileName": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -227,7 +227,7 @@ async def test_begin_delete(self, resource_group):
await self.client.jobs.begin_delete(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -271,7 +271,7 @@ async def test_begin_update(self, resource_group):
],
},
},
- "identitySettings": [{"identity": "str", "lifecycle": "All"}],
+ "identitySettings": [{"identity": "str", "lifecycle": "str"}],
"manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0},
"registries": [
{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}
@@ -315,7 +315,7 @@ async def test_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"}],
}
],
@@ -327,7 +327,7 @@ async def test_begin_update(self, resource_group):
"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"}],
}
],
@@ -344,7 +344,7 @@ async def test_begin_update(self, resource_group):
},
"tags": {"str": "str"},
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -358,7 +358,7 @@ async def test_begin_start(self, resource_group):
await self.client.jobs.begin_start(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -373,7 +373,7 @@ async def test_begin_stop_execution(self, resource_group):
resource_group_name=resource_group.name,
job_name="str",
job_execution_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -387,7 +387,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -400,7 +400,7 @@ async def test_list_secrets(self, resource_group):
response = await self.client.jobs.list_secrets(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -413,7 +413,7 @@ async def test_begin_resume(self, resource_group):
await self.client.jobs.begin_resume(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -427,7 +427,7 @@ async def test_begin_suspend(self, resource_group):
await self.client.jobs.begin_suspend(
resource_group_name=resource_group.name,
job_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_logic_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py
index 1d4536c74063..af3051e287f3 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_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -52,7 +52,7 @@ def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -65,7 +65,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -78,7 +78,7 @@ def test_list_workflows(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -92,7 +92,7 @@ def test_get_workflow(self, resource_group):
container_app_name="str",
logic_app_name="str",
workflow_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -105,7 +105,7 @@ def test_deploy_workflow_artifacts(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -118,7 +118,7 @@ def test_list_workflows_connections(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -133,7 +133,7 @@ def test_invoke(self, resource_group):
logic_app_name="str",
x_ms_logic_apps_proxy_path="str",
x_ms_logic_apps_proxy_method="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 76a868a54901..f4bb3513ca1b 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_get(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -53,7 +53,7 @@ async def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -66,7 +66,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -79,7 +79,7 @@ async def test_list_workflows(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -93,7 +93,7 @@ async def test_get_workflow(self, resource_group):
container_app_name="str",
logic_app_name="str",
workflow_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -106,7 +106,7 @@ async def test_deploy_workflow_artifacts(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -119,7 +119,7 @@ async def test_list_workflows_connections(self, resource_group):
resource_group_name=resource_group.name,
container_app_name="str",
logic_app_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -134,7 +134,7 @@ async def test_invoke(self, resource_group):
logic_app_name="str",
x_ms_logic_apps_proxy_path="str",
x_ms_logic_apps_proxy_method="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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
new file mode 100644
index 000000000000..66640394c038
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py
@@ -0,0 +1,84 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+import 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 TestContainerAppsAPIMaintenanceConfigurationsOperations(AzureMgmtRecordedTestCase):
+ def setup_method(self, method):
+ self.client = self.create_mgmt_client(ContainerAppsAPIClient)
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_list(self, resource_group):
+ response = self.client.maintenance_configurations.list(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ api_version="2024-10-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_create_or_update(self, resource_group):
+ response = self.client.maintenance_configurations.create_or_update(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ config_name="str",
+ maintenance_configuration_envelope={
+ "id": "str",
+ "name": "str",
+ "scheduledEntries": [{"durationHours": 0, "startHourUtc": 0, "weekDay": "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",
+ },
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_delete(self, resource_group):
+ response = self.client.maintenance_configurations.delete(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ config_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_get(self, resource_group):
+ response = self.client.maintenance_configurations.get(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ config_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # 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
new file mode 100644
index 000000000000..f881a68128f5
--- /dev/null
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py
@@ -0,0 +1,85 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+import 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 TestContainerAppsAPIMaintenanceConfigurationsOperationsAsync(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_list(self, resource_group):
+ response = self.client.maintenance_configurations.list(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ api_version="2024-10-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_create_or_update(self, resource_group):
+ response = await self.client.maintenance_configurations.create_or_update(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ config_name="str",
+ maintenance_configuration_envelope={
+ "id": "str",
+ "name": "str",
+ "scheduledEntries": [{"durationHours": 0, "startHourUtc": 0, "weekDay": "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",
+ },
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_delete(self, resource_group):
+ response = await self.client.maintenance_configurations.delete(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ config_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_get(self, resource_group):
+ response = await self.client.maintenance_configurations.get(
+ resource_group_name=resource_group.name,
+ environment_name="str",
+ config_name="str",
+ api_version="2024-10-02-preview",
+ )
+
+ # 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 15cb79a15a31..d4f6732b0d5a 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_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
managed_certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ def test_begin_create_or_update(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
managed_certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -51,7 +51,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
managed_certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -65,7 +65,7 @@ def test_update(self, resource_group):
environment_name="str",
managed_certificate_name="str",
managed_certificate_envelope={"tags": {"str": "str"}},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -77,7 +77,7 @@ def test_list(self, resource_group):
response = self.client.managed_certificates.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_managed_certificates_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py
index aa2880913e1e..8bef5ce07c5d 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_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
managed_certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -40,7 +40,7 @@ async def test_begin_create_or_update(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
managed_certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -54,7 +54,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
managed_certificate_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -68,7 +68,7 @@ async def test_update(self, resource_group):
environment_name="str",
managed_certificate_name="str",
managed_certificate_envelope={"tags": {"str": "str"}},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -80,7 +80,7 @@ async def test_list(self, resource_group):
response = self.client.managed_certificates.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_managed_environment_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py
index e99594c282e9..f97b7ecdc58c 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_list_detectors(self, resource_group):
response = self.client.managed_environment_diagnostics.list_detectors(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get_detector(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
detector_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 b9e3e94e8464..3a5b96353f45 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_list_detectors(self, resource_group):
response = await self.client.managed_environment_diagnostics.list_detectors(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get_detector(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
detector_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 44b9aa6dbcc2..785d97460551 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_list(self, resource_group):
response = self.client.managed_environment_private_endpoint_connections.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
private_endpoint_connection_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -67,7 +67,7 @@ def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -80,7 +80,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
private_endpoint_connection_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 ea026b11caf3..a34999252945 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_list(self, resource_group):
response = self.client.managed_environment_private_endpoint_connections.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
private_endpoint_connection_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -73,7 +73,7 @@ async def test_begin_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -88,7 +88,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
private_endpoint_connection_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 297c7238aa80..ecffde523b64 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_list(self, resource_group):
response = self.client.managed_environment_private_link_resources.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 74a629c4ff43..8f44fa35f660 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_list(self, resource_group):
response = self.client.managed_environment_private_link_resources.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_managed_environment_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py
index 849c8b722162..06831a5535c9 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_list(self, resource_group):
response = self.client.managed_environment_usages.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_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 92e527da68b4..6d21f7d68e79 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_list(self, resource_group):
response = self.client.managed_environment_usages.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_managed_environments_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py
index 10da13959b88..24bcd49a0a27 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_get_root(self, resource_group):
response = self.client.managed_environments_diagnostics.get_root(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 62bd4fd73518..512a8cf555ba 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 ca60ccd51d1a..6aef9b9c96e0 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_list_by_subscription(self, resource_group):
response = self.client.managed_environments.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -33,7 +33,7 @@ def test_list_by_subscription(self, resource_group):
def test_list_by_resource_group(self, resource_group):
response = self.client.managed_environments.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
response = self.client.managed_environments.get(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -64,6 +64,7 @@ def test_begin_create_or_update(self, resource_group):
"destination": "str",
"logAnalyticsConfiguration": {"customerId": "str", "dynamicJsonColumns": bool, "sharedKey": "str"},
},
+ "availabilityZones": ["str"],
"customDomainConfiguration": {
"certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"},
"certificatePassword": "str",
@@ -163,7 +164,7 @@ def test_begin_create_or_update(self, resource_group):
],
"zoneRedundant": bool,
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -175,7 +176,7 @@ def test_begin_delete(self, resource_group):
response = self.client.managed_environments.begin_delete(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -194,6 +195,7 @@ def test_begin_update(self, resource_group):
"destination": "str",
"logAnalyticsConfiguration": {"customerId": "str", "dynamicJsonColumns": bool, "sharedKey": "str"},
},
+ "availabilityZones": ["str"],
"customDomainConfiguration": {
"certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"},
"certificatePassword": "str",
@@ -293,7 +295,7 @@ def test_begin_update(self, resource_group):
],
"zoneRedundant": bool,
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -305,7 +307,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -317,7 +319,7 @@ def test_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="2024-08-02-preview",
+ api_version="2024-10-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_managed_environments_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py
index 822bdeec9d75..ba77ceba044b 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_list_by_subscription(self, resource_group):
response = self.client.managed_environments.list_by_subscription(
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -34,7 +34,7 @@ async def test_list_by_subscription(self, resource_group):
async def test_list_by_resource_group(self, resource_group):
response = self.client.managed_environments.list_by_resource_group(
resource_group_name=resource_group.name,
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
response = await self.client.managed_environments.get(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -70,6 +70,7 @@ async def test_begin_create_or_update(self, resource_group):
"sharedKey": "str",
},
},
+ "availabilityZones": ["str"],
"customDomainConfiguration": {
"certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"},
"certificatePassword": "str",
@@ -169,7 +170,7 @@ async def test_begin_create_or_update(self, resource_group):
],
"zoneRedundant": bool,
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -183,7 +184,7 @@ async def test_begin_delete(self, resource_group):
await self.client.managed_environments.begin_delete(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -208,6 +209,7 @@ async def test_begin_update(self, resource_group):
"sharedKey": "str",
},
},
+ "availabilityZones": ["str"],
"customDomainConfiguration": {
"certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"},
"certificatePassword": "str",
@@ -307,7 +309,7 @@ async def test_begin_update(self, resource_group):
],
"zoneRedundant": bool,
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
).result() # call '.result()' to poll until service return final result
@@ -320,7 +322,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -332,7 +334,7 @@ async def test_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="2024-08-02-preview",
+ api_version="2024-10-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_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py
index 07d3f3d84dd2..b91874603b85 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_list(self, resource_group):
response = self.client.managed_environments_storages.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
storage_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -67,7 +67,7 @@ def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -80,7 +80,7 @@ def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
storage_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 5e6af988708e..04e2b608a3ae 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_list(self, resource_group):
response = await self.client.managed_environments_storages.list(
resource_group_name=resource_group.name,
environment_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
storage_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -68,7 +68,7 @@ async def test_create_or_update(self, resource_group):
},
"type": "str",
},
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# please add some check logic here by yourself
@@ -81,7 +81,7 @@ async def test_delete(self, resource_group):
resource_group_name=resource_group.name,
environment_name="str",
storage_name="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 2c6343949e2f..974f31dc4cfd 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 4d7d402a20d7..8ab7aa5fe3cc 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_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="2024-08-02-preview",
+ api_version="2024-10-02-preview",
)
# 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 a6f1201eb482..5e8763696321 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_list(self, resource_group):
response = self.client.operations.list(
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py
index 79e186721f08..27e796e1532a 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_list(self, resource_group):
response = self.client.operations.list(
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py
index 04acf42ae22d..532e11146954 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_list(self, resource_group):
response = self.client.usages.list(
location="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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_usages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py
index d463d34828e8..05bfc53527de 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_list(self, resource_group):
response = self.client.usages.list(
location="str",
- api_version="2024-08-02-preview",
+ api_version="2024-10-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/setup.py b/sdk/appcontainers/azure-mgmt-appcontainers/setup.py
index 2f3300f3cf4f..f4a701461b04 100644
--- a/sdk/appcontainers/azure-mgmt-appcontainers/setup.py
+++ b/sdk/appcontainers/azure-mgmt-appcontainers/setup.py
@@ -22,11 +22,9 @@
# Version extraction inspired from 'requests'
with open(
- (
- os.path.join(package_folder_path, "version.py")
- if os.path.exists(os.path.join(package_folder_path, "version.py"))
- else os.path.join(package_folder_path, "_version.py")
- ),
+ os.path.join(package_folder_path, "version.py")
+ if os.path.exists(os.path.join(package_folder_path, "version.py"))
+ else os.path.join(package_folder_path, "_version.py"),
"r",
) as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)