Skip to content

Commit 1734250

Browse files
authored
[Containerapp] Update api-version to 2025-02-02-preview (#8791)
1 parent 9152ae3 commit 1734250

230 files changed

Lines changed: 437097 additions & 349517 deletions

File tree

Some content is hidden

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

src/containerapp/HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Release History
55
upcoming
66
++++++
77
* 'az containerapp sessionpool update': Support `--mi-system-assigned`, `--mi-user-assigned` and `--registry-identity`
8+
* Upgrade api-version to 2025-02-02-preview
89

910
1.1.0b5
1011
++++++

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 = "2024-10-02-preview"
29+
PREVIEW_API_VERSION = "2025-02-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/_decorator_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def process_loaded_yaml(yaml_containerapp):
6767
"latestReadyRevisionName",
6868
"eventStreamEndpoint",
6969
"runningStatus",
70-
"deploymentErrors"]
70+
"deploymentErrors",
71+
"runningState"]
7172
for nested_property in nested_properties:
7273
tmp = yaml_containerapp.get(nested_property)
7374
if nested_property in yaml_containerapp:

src/containerapp/azext_containerapp/_sdk_enums.py

Lines changed: 63 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class CertificateProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta)
114114
CANCELED = "Canceled"
115115
DELETE_FAILED = "DeleteFailed"
116116
PENDING = "Pending"
117+
DELETING = "Deleting"
117118

118119

119120
class CertificateType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -139,6 +140,7 @@ class ConnectedEnvironmentDaprComponentProvisioningState(str, Enum, metaclass=Ca
139140
FAILED = "Failed"
140141
CANCELED = "Canceled"
141142
IN_PROGRESS = "InProgress"
143+
DELETING = "Deleting"
142144

143145

144146
class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -161,6 +163,7 @@ class ConnectedEnvironmentStorageProvisioningState(str, Enum, metaclass=CaseInse
161163
FAILED = "Failed"
162164
CANCELED = "Canceled"
163165
IN_PROGRESS = "InProgress"
166+
DELETING = "Deleting"
164167

165168

166169
class ContainerAppContainerRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -274,12 +277,6 @@ class EnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta)
274277
UPGRADE_FAILED = "UpgradeFailed"
275278

276279

277-
class ExecutionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
278-
"""The execution type of the session pool."""
279-
280-
TIMED = "Timed"
281-
282-
283280
class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
284281
"""The type of extendedLocation."""
285282

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

425422

423+
class LifecycleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
424+
"""The lifecycle type of the session pool."""
425+
426+
TIMED = "Timed"
427+
ON_CONTAINER_EXIT = "OnContainerExit"
428+
429+
426430
class LogicAppsProxyMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
427431
"""LogicAppsProxyMethod."""
428432

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

462466

467+
class PatchApplyStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
468+
"""The status of the patch once it has been provisioned."""
469+
470+
NOT_STARTED = "NotStarted"
471+
REBASE_IN_PROGRESS = "RebaseInProgress"
472+
CREATING_REVISION = "CreatingRevision"
473+
SUCCEEDED = "Succeeded"
474+
CANCELED = "Canceled"
475+
REBASE_FAILED = "RebaseFailed"
476+
REVISION_CREATION_FAILED = "RevisionCreationFailed"
477+
IMAGE_PUSH_PULL_FAILED = "ImagePushPullFailed"
478+
MANUALLY_SKIPPED = "ManuallySkipped"
479+
480+
481+
class PatchingMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
482+
"""Patching mode for the container app. Null or default in this field will be interpreted as
483+
Automatic by RP. Automatic mode will automatically apply available patches. Manual mode will
484+
require the user to manually apply patches. Disabled mode will stop patch detection and auto
485+
patching.
486+
"""
487+
488+
AUTOMATIC = "Automatic"
489+
MANUAL = "Manual"
490+
DISABLED = "Disabled"
491+
492+
493+
class PatchType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
494+
"""The type for the patch."""
495+
496+
FRAMEWORK_SECURITY = "FrameworkSecurity"
497+
OS_SECURITY = "OSSecurity"
498+
FRAMEWORK_AND_OS_SECURITY = "FrameworkAndOSSecurity"
499+
OTHER = "Other"
500+
501+
463502
class PoolManagementType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
464503
"""The pool management type of the session pool."""
465504

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

550589

590+
class SessionProbeType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
591+
"""Denotes the type of probe. Can be Liveness or Startup, Readiness probe is not supported in
592+
sessions. Type must be unique for each probe within the context of a list of probes
593+
(SessionProbes).
594+
"""
595+
596+
LIVENESS = "Liveness"
597+
STARTUP = "Startup"
598+
599+
551600
class SourceControlOperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
552601
"""Current provisioning State of the operation."""
553602

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

559608

609+
class Status(str, Enum, metaclass=CaseInsensitiveEnumMeta):
610+
"""Status of the label history record."""
611+
612+
SUCCEEDED = "Succeeded"
613+
FAILED = "Failed"
614+
STARTING = "Starting"
615+
616+
560617
class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
561618
"""Storage type for the volume. If not provided, use EmptyDir."""
562619

@@ -602,8 +659,6 @@ class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta):
602659
FRIDAY = "Friday"
603660
SATURDAY = "Saturday"
604661
SUNDAY = "Sunday"
605-
EVERYDAY = "Everyday"
606-
WEEKEND = "Weekend"
607662

608663

609664
class WorkflowHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):

0 commit comments

Comments
 (0)