Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Containerapp] az containerapp create/update: Update models to support new properties with --yaml for api-version 2024-02-02-preview #7794

Merged
merged 6 commits into from
Sep 20, 2024
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
++++++
* Update models to support new properties with --yaml for api-version 2024-02-02-preview

1.0.0b2
++++++
Expand Down
143 changes: 142 additions & 1 deletion src/containerapp/azext_containerapp/_sdk_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ class ContainerAppReplicaRunningState(str, Enum, metaclass=CaseInsensitiveEnumMe
UNKNOWN = "Unknown"


class ContainerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The container type of the sessions."""

CUSTOM_CONTAINER = "CustomContainer"
PYTHON_LTS = "PythonLTS"


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

Expand All @@ -184,6 +191,14 @@ class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
KEY = "Key"


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

SUCCEEDED = "Succeeded"
REGISTRY_LOGIN_FAILED = "RegistryLoginFailed"
FAILED = "Failed"


class DnsVerificationTestResult(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""DNS verification test result."""

Expand All @@ -206,7 +221,6 @@ class DotNetComponentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of the .NET Component."""

ASPIRE_DASHBOARD = "AspireDashboard"
ASPIRE_RESOURCE_SERVER_API = "AspireResourceServerApi"


class EnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand All @@ -224,6 +238,12 @@ 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 All @@ -238,6 +258,26 @@ class ForwardProxyConvention(str, Enum, metaclass=CaseInsensitiveEnumMeta):
CUSTOM = "Custom"


class IdentitySettingsLifeCycle(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Use to select the lifecycle stages of a Container App during which the Managed Identity should
be available.
"""

INIT = "Init"
MAIN = "Main"
NONE = "None"
ALL = "All"


class ImageType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of the image. Set to CloudBuild to let the system manages the image, where user will
not be able to update image through image field. Set to ContainerImage for user provided image.
"""

CLOUD_BUILD = "CloudBuild"
CONTAINER_IMAGE = "ContainerImage"


class IngressClientCertificateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Client certificate mode for mTLS authentication. Ignore indicates server drops client
certificate on forwarding. Accept indicates server forwards client certificate but does not
Expand Down Expand Up @@ -281,6 +321,7 @@ class JavaComponentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
SPRING_BOOT_ADMIN = "SpringBootAdmin"
SPRING_CLOUD_EUREKA = "SpringCloudEureka"
SPRING_CLOUD_CONFIG = "SpringCloudConfig"
NACOS = "Nacos"


class JobExecutionRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand All @@ -305,6 +346,33 @@ class JobProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DELETING = "Deleting"


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.
"""

WORKFLOWAPP = "workflowapp"


class Level(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The specified logger's log level."""

OFF = "off"
ERROR = "error"
INFO = "info"
DEBUG = "debug"
TRACE = "trace"
WARN = "warn"


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

GET = "GET"
POST = "POST"


class LogLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default
is info.
Expand Down Expand Up @@ -335,6 +403,41 @@ class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"


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

MANUAL = "Manual"
DYNAMIC = "Dynamic"


class PrivateEndpointConnectionProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The current provisioning state."""

SUCCEEDED = "Succeeded"
FAILED = "Failed"
CANCELED = "Canceled"
WAITING = "Waiting"
UPDATING = "Updating"
DELETING = "Deleting"
PENDING = "Pending"


class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The private endpoint connection status."""

PENDING = "Pending"
APPROVED = "Approved"
REJECTED = "Rejected"
DISCONNECTED = "Disconnected"


class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled'."""

ENABLED = "Enabled"
DISABLED = "Disabled"


class RevisionHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current health State of the revision."""

Expand Down Expand Up @@ -371,6 +474,23 @@ class Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta):
HTTPS = "HTTPS"


class SessionNetworkStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Network status for the sessions."""

EGRESS_ENABLED = "EgressEnabled"
EGRESS_DISABLED = "EgressDisabled"


class SessionPoolProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the session pool."""

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


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

Expand All @@ -387,6 +507,7 @@ class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
EMPTY_DIR = "EmptyDir"
SECRET = "Secret"
NFS_AZURE_FILE = "NfsAzureFile"
SMB = "Smb"


class TriggerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand All @@ -412,3 +533,23 @@ class UnauthenticatedClientActionV2(str, Enum, metaclass=CaseInsensitiveEnumMeta
ALLOW_ANONYMOUS = "AllowAnonymous"
RETURN401 = "Return401"
RETURN403 = "Return403"


class WorkflowHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Gets or sets the workflow health state."""

NOT_SPECIFIED = "NotSpecified"
HEALTHY = "Healthy"
UNHEALTHY = "Unhealthy"
UNKNOWN = "Unknown"


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

NOT_SPECIFIED = "NotSpecified"
COMPLETED = "Completed"
ENABLED = "Enabled"
DISABLED = "Disabled"
DELETED = "Deleted"
SUSPENDED = "Suspended"
Loading
Loading