Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/containerapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release History
===============
upcoming
++++++
* Upgrade api-version to 2025-10-02-preview

1.2.0b5
++++++
Expand Down
2 changes: 1 addition & 1 deletion src/containerapp/azext_containerapp/_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

logger = get_logger(__name__)

PREVIEW_API_VERSION = "2025-02-02-preview"
PREVIEW_API_VERSION = "2025-10-02-preview"
POLLING_TIMEOUT = 1500 # how many seconds before exiting
POLLING_SECONDS = 2 # how many seconds between requests
POLLING_TIMEOUT_FOR_MANAGED_CERTIFICATE = 1500 # how many seconds before exiting
Expand Down
43 changes: 24 additions & 19 deletions src/containerapp/azext_containerapp/_sdk_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ class Action(str, Enum, metaclass=CaseInsensitiveEnumMeta):

class ActiveRevisionsMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""ActiveRevisionsMode controls how active revisions are handled for the Container app:


.. raw:: html

<list><item>Single: Only one revision can be active at a time. Traffic weights cannot be
used. This is the default.</item><item>Multiple: Multiple revisions can be active, including
optional traffic weights and labels.</item><item>Labels: Only revisions with labels are active.
Traffic weights can be applied to labels.</item></list>.
used. This is the default.</item><item>Multiple: Multiple revisions can be active, including
optional traffic weights and labels.</item><item>Labels: Only revisions with labels are active.
Traffic weights can be applied to labels.</item></list>.
"""

MULTIPLE = "Multiple"
Expand Down Expand Up @@ -133,16 +130,6 @@ 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"
DELETING = "Deleting"


class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the Kubernetes Environment."""

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


class DaprComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the Connected Environment Dapr Component."""

SUCCEEDED = "Succeeded"
FAILED = "Failed"
CANCELED = "Canceled"
IN_PROGRESS = "InProgress"
DELETING = "Deleting"


class DetectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The status of the patch detection."""

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


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

WORKFLOWAPP = "workflowapp"
FUNCTIONAPP = "functionapp"


class Level(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand Down Expand Up @@ -670,6 +667,14 @@ class WorkflowHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
UNKNOWN = "Unknown"


class WorkflowKind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Gets the logic app hybrid workflow kind."""

STATEFUL = "Stateful"
STATELESS = "Stateless"
AGENTIC = "Agentic"


class WorkflowState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The workflow state."""

Expand Down
2,228 changes: 1,082 additions & 1,146 deletions src/containerapp/azext_containerapp/_sdk_models.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/containerapp/azext_containerapp/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ def connected_env_create_or_update_dapr_component(cmd, resource_group_name, envi
# Deserialize the yaml into a DaprComponent object. Need this since we're not using SDK
try:
deserializer = create_deserializer(CONTAINER_APPS_SDK_MODELS)
daprcomponent_def = deserializer('ConnectedEnvironmentDaprComponent', yaml_dapr_component)
daprcomponent_def = deserializer('DaprComponent', yaml_dapr_component)
except DeserializationError as ex:
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

Expand Down
7,021 changes: 2,706 additions & 4,315 deletions src/containerapp/azext_containerapp/tests/latest/recordings/test_container_acr.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ interactions:
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_containerapp_preview000001/providers/Microsoft.OperationalInsights/workspaces/workspace-clitestcontainerapppreviewnkh4/sharedKeys?api-version=2020-08-01
response:
body:
string: '{"primarySharedKey":"abc123","secondarySharedKey":"abc123"}'
string: '{"primarySharedKey": "abc123","secondarySharedKey": "abc123"}'
headers:
access-control-allow-origin:
- '*'
Expand Down
Loading
Loading