Skip to content

Commit 59814d0

Browse files
authored
[Containerapp] Update api-version to 2025-10-02-preview (#9392)
1 parent 880d884 commit 59814d0

File tree

195 files changed

+835780
-584190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+835780
-584190
lines changed

src/containerapp/HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Release History
44
===============
55
upcoming
66
++++++
7+
* Upgrade api-version to 2025-10-02-preview
78

89
1.2.0b5
910
++++++

src/containerapp/azext_containerapp/_clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
logger = get_logger(__name__)
2828

29-
PREVIEW_API_VERSION = "2025-02-02-preview"
29+
PREVIEW_API_VERSION = "2025-10-02-preview"
3030
POLLING_TIMEOUT = 1500 # how many seconds before exiting
3131
POLLING_SECONDS = 2 # how many seconds between requests
3232
POLLING_TIMEOUT_FOR_MANAGED_CERTIFICATE = 1500 # how many seconds before exiting

src/containerapp/azext_containerapp/_sdk_enums.py

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@ class Action(str, Enum, metaclass=CaseInsensitiveEnumMeta):
2828

2929
class ActiveRevisionsMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
3030
"""ActiveRevisionsMode controls how active revisions are handled for the Container app:
31-
32-
3331
.. raw:: html
34-
3532
<list><item>Single: Only one revision can be active at a time. Traffic weights cannot be
36-
used. This is the default.</item><item>Multiple: Multiple revisions can be active, including
37-
optional traffic weights and labels.</item><item>Labels: Only revisions with labels are active.
38-
Traffic weights can be applied to labels.</item></list>.
33+
used. This is the default.</item><item>Multiple: Multiple revisions can be active, including
34+
optional traffic weights and labels.</item><item>Labels: Only revisions with labels are active.
35+
Traffic weights can be applied to labels.</item></list>.
3936
"""
4037

4138
MULTIPLE = "Multiple"
@@ -133,16 +130,6 @@ class CheckNameAvailabilityReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
133130
ALREADY_EXISTS = "AlreadyExists"
134131

135132

136-
class ConnectedEnvironmentDaprComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
137-
"""Provisioning state of the Connected Environment Dapr Component."""
138-
139-
SUCCEEDED = "Succeeded"
140-
FAILED = "Failed"
141-
CANCELED = "Canceled"
142-
IN_PROGRESS = "InProgress"
143-
DELETING = "Deleting"
144-
145-
146133
class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
147134
"""Provisioning state of the Kubernetes Environment."""
148135

@@ -230,6 +217,16 @@ class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
230217
KEY = "Key"
231218

232219

220+
class DaprComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
221+
"""Provisioning state of the Connected Environment Dapr Component."""
222+
223+
SUCCEEDED = "Succeeded"
224+
FAILED = "Failed"
225+
CANCELED = "Canceled"
226+
IN_PROGRESS = "InProgress"
227+
DELETING = "Deleting"
228+
229+
233230
class DetectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
234231
"""The status of the patch detection."""
235232

@@ -401,12 +398,12 @@ class JobRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
401398

402399

403400
class Kind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
404-
"""Metadata used to render different experiences for resources of the same type; e.g. WorkflowApp
405-
is a kind of Microsoft.App/ContainerApps type. If supported, the resource provider must
406-
validate and persist this value.
401+
"""Metadata to represent the container app kind, representing if a container app is workflowapp or
402+
functionapp.
407403
"""
408404

409405
WORKFLOWAPP = "workflowapp"
406+
FUNCTIONAPP = "functionapp"
410407

411408

412409
class Level(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -670,6 +667,14 @@ class WorkflowHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
670667
UNKNOWN = "Unknown"
671668

672669

670+
class WorkflowKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
671+
"""Gets the logic app hybrid workflow kind."""
672+
673+
STATEFUL = "Stateful"
674+
STATELESS = "Stateless"
675+
AGENTIC = "Agentic"
676+
677+
673678
class WorkflowState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
674679
"""The workflow state."""
675680

src/containerapp/azext_containerapp/_sdk_models.py

Lines changed: 1082 additions & 1146 deletions
Large diffs are not rendered by default.

src/containerapp/azext_containerapp/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,7 @@ def connected_env_create_or_update_dapr_component(cmd, resource_group_name, envi
19961996
# Deserialize the yaml into a DaprComponent object. Need this since we're not using SDK
19971997
try:
19981998
deserializer = create_deserializer(CONTAINER_APPS_SDK_MODELS)
1999-
daprcomponent_def = deserializer('ConnectedEnvironmentDaprComponent', yaml_dapr_component)
1999+
daprcomponent_def = deserializer('DaprComponent', yaml_dapr_component)
20002000
except DeserializationError as ex:
20012001
raise ValidationError('Invalid YAML provided. Please see https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-schema for a valid Dapr Component YAML spec.') from ex
20022002

src/containerapp/azext_containerapp/tests/latest/recordings/test_container_acr.yaml

Lines changed: 2706 additions & 4315 deletions
Large diffs are not rendered by default.

src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml

Lines changed: 1113 additions & 1719 deletions
Large diffs are not rendered by default.

src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_nfsazurefile_e2e.yaml

Lines changed: 2042 additions & 2410 deletions
Large diffs are not rendered by default.

src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_e2e.yaml

Lines changed: 13064 additions & 4144 deletions
Large diffs are not rendered by default.

src/containerapp/azext_containerapp/tests/latest/recordings/test_container_app_mount_secret_update_e2e.yaml

Lines changed: 15100 additions & 4071 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)