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 @@ -5,6 +5,7 @@ Release History
upcoming
++++++
* 'az containerapp sessionpool update': Support `--mi-system-assigned`, `--mi-user-assigned` and `--registry-identity`
* Upgrade api-version to 2025-02-02-preview

1.1.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 = "2024-10-02-preview"
PREVIEW_API_VERSION = "2025-02-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
3 changes: 2 additions & 1 deletion src/containerapp/azext_containerapp/_decorator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def process_loaded_yaml(yaml_containerapp):
"latestReadyRevisionName",
"eventStreamEndpoint",
"runningStatus",
"deploymentErrors"]
"deploymentErrors",
"runningState"]
for nested_property in nested_properties:
tmp = yaml_containerapp.get(nested_property)
if nested_property in yaml_containerapp:
Expand Down
71 changes: 63 additions & 8 deletions src/containerapp/azext_containerapp/_sdk_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class CertificateProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta)
CANCELED = "Canceled"
DELETE_FAILED = "DeleteFailed"
PENDING = "Pending"
DELETING = "Deleting"


class CertificateType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand All @@ -139,6 +140,7 @@ class ConnectedEnvironmentDaprComponentProvisioningState(str, Enum, metaclass=Ca
FAILED = "Failed"
CANCELED = "Canceled"
IN_PROGRESS = "InProgress"
DELETING = "Deleting"


class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand All @@ -161,6 +163,7 @@ class ConnectedEnvironmentStorageProvisioningState(str, Enum, metaclass=CaseInse
FAILED = "Failed"
CANCELED = "Canceled"
IN_PROGRESS = "InProgress"
DELETING = "Deleting"


class ContainerAppContainerRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand Down Expand Up @@ -274,12 +277,6 @@ class EnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta)
UPGRADE_FAILED = "UpgradeFailed"


class ExecutionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The execution type of the session pool."""

TIMED = "Timed"


class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of extendedLocation."""

Expand Down Expand Up @@ -423,6 +420,13 @@ class Level(str, Enum, metaclass=CaseInsensitiveEnumMeta):
WARN = "warn"


class LifecycleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The lifecycle type of the session pool."""

TIMED = "Timed"
ON_CONTAINER_EXIT = "OnContainerExit"


class LogicAppsProxyMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""LogicAppsProxyMethod."""

Expand Down Expand Up @@ -460,6 +464,41 @@ class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"


class PatchApplyStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The status of the patch once it has been provisioned."""

NOT_STARTED = "NotStarted"
REBASE_IN_PROGRESS = "RebaseInProgress"
CREATING_REVISION = "CreatingRevision"
SUCCEEDED = "Succeeded"
CANCELED = "Canceled"
REBASE_FAILED = "RebaseFailed"
REVISION_CREATION_FAILED = "RevisionCreationFailed"
IMAGE_PUSH_PULL_FAILED = "ImagePushPullFailed"
MANUALLY_SKIPPED = "ManuallySkipped"


class PatchingMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Patching mode for the container app. Null or default in this field will be interpreted as
Automatic by RP. Automatic mode will automatically apply available patches. Manual mode will
require the user to manually apply patches. Disabled mode will stop patch detection and auto
patching.
"""

AUTOMATIC = "Automatic"
MANUAL = "Manual"
DISABLED = "Disabled"


class PatchType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type for the patch."""

FRAMEWORK_SECURITY = "FrameworkSecurity"
OS_SECURITY = "OSSecurity"
FRAMEWORK_AND_OS_SECURITY = "FrameworkAndOSSecurity"
OTHER = "Other"


class PoolManagementType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The pool management type of the session pool."""

Expand Down Expand Up @@ -548,6 +587,16 @@ class SessionPoolProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta)
DELETING = "Deleting"


class SessionProbeType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Denotes the type of probe. Can be Liveness or Startup, Readiness probe is not supported in
sessions. Type must be unique for each probe within the context of a list of probes
(SessionProbes).
"""

LIVENESS = "Liveness"
STARTUP = "Startup"


class SourceControlOperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current provisioning State of the operation."""

Expand All @@ -557,6 +606,14 @@ class SourceControlOperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
CANCELED = "Canceled"


class Status(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Status of the label history record."""

SUCCEEDED = "Succeeded"
FAILED = "Failed"
STARTING = "Starting"


class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Storage type for the volume. If not provided, use EmptyDir."""

Expand Down Expand Up @@ -602,8 +659,6 @@ class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta):
FRIDAY = "Friday"
SATURDAY = "Saturday"
SUNDAY = "Sunday"
EVERYDAY = "Everyday"
WEEKEND = "Weekend"


class WorkflowHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand Down
Loading
Loading