Skip to content

Commit

Permalink
set version
Browse files Browse the repository at this point in the history
  • Loading branch information
Greedygre committed Jul 3, 2023
1 parent eaa9241 commit aac0694
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
logger = get_logger(__name__)

PREVIEW_API_VERSION = "2023-04-01-preview"
CURRENT_API_VERSION = "2023-04-01-preview"
POLLING_TIMEOUT = 600 # 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
18 changes: 9 additions & 9 deletions src/containerapp/azext_containerapp/_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

logger = get_logger(__name__)

PREVIEW_API_VERSION = "2023-04-01-preview"
CURRENT_API_VERSION = "2023-04-01-preview"
POLLING_TIMEOUT = 600 # 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 @@ -149,7 +149,7 @@ def _extract_delay(response):
class ContainerAppClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def create_or_update(cls, cmd, resource_group_name, name, container_app_envelope, no_wait=False):
Expand Down Expand Up @@ -493,7 +493,7 @@ def validate_domain(cls, cmd, resource_group_name, name, hostname):
class ManagedEnvironmentClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def create(cls, cmd, resource_group_name, name, managed_environment_envelope, no_wait=False):
Expand Down Expand Up @@ -842,7 +842,7 @@ def get_auth_token(cls, cmd, resource_group_name, name):
class WorkloadProfileClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def list_supported(cls, cmd, location):
Expand Down Expand Up @@ -877,7 +877,7 @@ def list(cls, cmd, resource_group_name, env_name):
class ContainerAppsJobClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def create_or_update(cls, cmd, resource_group_name, name, containerapp_job_envelope, no_wait=False):
Expand Down Expand Up @@ -1123,7 +1123,7 @@ def list_secrets(cls, cmd, resource_group_name, name):
class GitHubActionClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def create_or_update(cls, cmd, resource_group_name, name, github_action_envelope, headers, no_wait=False):
Expand Down Expand Up @@ -1234,7 +1234,7 @@ def get_workflow_name(cls, cmd, repo, branch_name, container_app_name, token):
class DaprComponentClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def create_or_update(cls, cmd, resource_group_name, environment_name, name, dapr_component_envelope, no_wait=False):
Expand Down Expand Up @@ -1352,7 +1352,7 @@ def list(cls, cmd, resource_group_name, environment_name, formatter=lambda x: x)
class StorageClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def create_or_update(cls, cmd, resource_group_name, env_name, name, storage_envelope, no_wait=False):
Expand Down Expand Up @@ -1469,7 +1469,7 @@ def list(cls, cmd, resource_group_name, env_name, formatter=lambda x: x):
class AuthClient():
@classmethod
def get_api_version(cls):
return PREVIEW_API_VERSION
return CURRENT_API_VERSION

@classmethod
def create_or_update(cls, cmd, resource_group_name, container_app_name, auth_config_name, auth_config_envelope,
Expand Down

0 comments on commit aac0694

Please sign in to comment.