google_cloud_automlops/utils/enums.py (22 lines of code) (raw):
# Copyright 2023 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Creates enums for orchestrator and submission service options
as well as generic component, pipeline, and services objects."""
# pylint: disable=anomalous-backslash-in-string
# pylint: disable=C0103
# pylint: disable=line-too-long
from enum import Enum
class Deployer(Enum):
"""Enum representing the available options for orchestration management."""
CLOUDBUILD = 'cloud-build'
GITHUB_ACTIONS = 'github-actions'
# GITLAB_CI = 'gitlab-ci' # roadmap item
# JENKINS = 'jenkins' # roadmap item
class Provisioner(Enum):
"""Enum representing the available providers for infrastructure management."""
TERRAFORM = 'terraform'
# PULUMI = 'pulumi' roadmap item
GCLOUD = 'gcloud'
class Orchestrator(Enum):
"""Enum representing the available options for orchestration management."""
KFP = 'kfp'
# ARGO_WORKFLOWS = 'argo-workflows' # roadmap item
# TFX = 'tfx' # roadmap item
# AIRFLOW = 'airflow' # roadmap item
# RAY = 'ray' # roadmap item
class ArtifactRepository(Enum):
"""Enum representing the available options for artifact repositories."""
ARTIFACT_REGISTRY = 'artifact-registry'
class CodeRepository(Enum):
"""Enum representing the available options for source code repositories."""
BITBUCKET = 'bitbucket' # roadmap item
# CLOUD_SOURCE_REPOSITORIES = 'cloud-source-repositories' # deprecated
GITHUB = 'github'
GITLAB = 'gitlab' # roadmap item
class PipelineJobSubmitter(Enum):
"""Enum representing the available options for the Pipeline Job submission service."""
CLOUD_FUNCTIONS = 'cloud-functions'
CLOUD_RUN = 'cloud-run'
class PulumiRuntime(Enum):
"""Enum representing the available pulumi runtimes."""
PYTHON = 'python'
TYPESCRIPT = 'typescript'
GO = 'go'