Skip to content

Commit

Permalink
[containerapp] Update api-version to 2023-08-01-preview (#6963)
Browse files Browse the repository at this point in the history
  • Loading branch information
Greedygre committed Nov 8, 2023
1 parent e3139e7 commit 8fe7548
Show file tree
Hide file tree
Showing 134 changed files with 252,927 additions and 222,182 deletions.
1 change: 1 addition & 0 deletions src/containerapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ upcoming
* 'az containerapp job create': fix problem of parsing parameters minExecutions and maxExecutions from --yaml
* 'az containerapp env dapr-component init': support initializing Dapr components and dev services for an environment
* 'az containerapp patch apply': support image patching for java application
* Upgrade api-version to 2023-08-01-preview

0.3.43
++++++
Expand Down
8 changes: 3 additions & 5 deletions src/containerapp/azext_containerapp/_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@

logger = get_logger(__name__)

PREVIEW_API_VERSION = "2023-05-02-preview"
BUILDER_CLIENT_API_VERSION = "2023-08-01-preview"
BUILD_CLIENT_API_VERSION = "2023-08-01-preview"
PREVIEW_API_VERSION = "2023-08-01-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 Expand Up @@ -502,7 +500,7 @@ class DaprComponentPreviewClient(DaprComponentClient):


class BuilderClient():
api_version = BUILDER_CLIENT_API_VERSION
api_version = PREVIEW_API_VERSION

@classmethod
def list(cls, cmd, resource_group_name):
Expand Down Expand Up @@ -548,7 +546,7 @@ def create(cls, cmd, builder_name, resource_group_name, environment_name, locati


class BuildClient():
api_version = BUILD_CLIENT_API_VERSION
api_version = PREVIEW_API_VERSION

@classmethod
def create(cls, cmd, builder_name, build_name, resource_group_name, location, no_wait=False):
Expand Down
70 changes: 69 additions & 1 deletion src/containerapp/azext_containerapp/_sdk_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,38 @@ class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
SNI_ENABLED = "SniEnabled"


class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Resource instance provisioning state."""

SUCCEEDED = "Succeeded"
FAILED = "Failed"
CANCELED = "Canceled"
CREATING = "Creating"
UPDATING = "Updating"
DELETING = "Deleting"


class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Resource instance provisioning state."""

SUCCEEDED = "Succeeded"
FAILED = "Failed"
CANCELED = "Canceled"
CREATING = "Creating"
UPDATING = "Updating"
DELETING = "Deleting"


class BuildStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Status of the build once it has been provisioned."""

NOT_STARTED = "NotStarted"
IN_PROGRESS = "InProgress"
SUCCEEDED = "Succeeded"
CANCELED = "Canceled"
FAILED = "Failed"


class CertificateProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the certificate."""

Expand All @@ -81,6 +113,15 @@ class CertificateProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta)
PENDING = "Pending"


class CertificateType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of the certificate. Allowed values are ``ServerSSLCertificate`` and
``ImagePullTrustedCA``.
"""

SERVER_SSL_CERTIFICATE = "ServerSSLCertificate"
IMAGE_PULL_TRUSTED_CA = "ImagePullTrustedCA"


class CheckNameAvailabilityReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The reason why the given name is not available."""

Expand All @@ -101,6 +142,14 @@ class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitive
SCHEDULED_FOR_DELETE = "ScheduledForDelete"


class ContainerAppContainerRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current running state of the container."""

RUNNING = "Running"
TERMINATED = "Terminated"
WAITING = "Waiting"


class ContainerAppProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the Container App."""

Expand All @@ -111,6 +160,14 @@ class ContainerAppProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta
DELETING = "Deleting"


class ContainerAppReplicaRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current running state of the replica."""

RUNNING = "Running"
NOT_RUNNING = "NotRunning"
UNKNOWN = "Unknown"


class CookieExpirationConvention(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The convention used when determining the session cookie's expiration."""

Expand Down Expand Up @@ -254,6 +311,17 @@ class RevisionProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DEPROVISIONED = "Deprovisioned"


class RevisionRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current running state of the revision."""

RUNNING = "Running"
PROCESSING = "Processing"
STOPPED = "Stopped"
DEGRADED = "Degraded"
FAILED = "Failed"
UNKNOWN = "Unknown"


class Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Scheme to use for connecting to the host. Defaults to HTTP."""

Expand Down Expand Up @@ -281,7 +349,7 @@ class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class TriggerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Trigger type of the job."""

SCHEDULED = "Scheduled"
SCHEDULE = "Schedule"
EVENT = "Event"
MANUAL = "Manual"

Expand Down
Loading

0 comments on commit 8fe7548

Please sign in to comment.