Coverage for providers/src/airflow/providers/teradata/utils/constants.py: 100%
22 statements
« prev ^ index » next coverage.py v7.6.10, created at 2024-12-27 08:27 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2024-12-27 08:27 +0000
1# Licensed to the Apache Software Foundation (ASF) under one
2# or more contributor license agreements. See the NOTICE file
3# distributed with this work for additional information
4# regarding copyright ownership. The ASF licenses this file
5# to you under the Apache License, Version 2.0 (the
6# "License"); you may not use this file except in compliance
7# with the License. You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing,
12# software distributed under the License is distributed on an
13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14# KIND, either express or implied. See the License for the
15# specific language governing permissions and limitations
16# under the License.
17from __future__ import annotations
20class Constants:
21 """Define constants for Teradata Provider."""
23 CC_CREATE_OPR = "CREATE"
24 CC_CREATE_SUSPEND_OPR = "CREATE_SUSPEND"
25 CC_DROP_OPR = "DROP"
26 CC_SUSPEND_OPR = "SUSPEND"
27 CC_RESUME_OPR = "RESUME"
28 CC_INITIALIZE_DB_STATUS = "Initializing"
29 CC_SUSPEND_DB_STATUS = "Suspended"
30 CC_RESUME_DB_STATUS = "Running"
31 CC_OPR_SUCCESS_STATUS_MSG = "Compute Cluster %s %s operation completed successfully."
32 CC_OPR_FAILURE_STATUS_MSG = "Compute Cluster %s %s operation has failed."
33 CC_OPR_INITIALIZING_STATUS_MSG = "The environment is currently initializing. Please wait."
34 CC_OPR_EMPTY_PROFILE_ERROR_MSG = "Please provide a valid name for the compute cluster profile."
35 CC_GRP_PRP_NON_EXISTS_MSG = "The specified Compute cluster is not present or The user doesn't have permission to access compute cluster."
36 CC_GRP_PRP_UN_AUTHORIZED_MSG = "The %s operation is not authorized for the user."
37 CC_GRP_LAKE_SUPPORT_ONLY_MSG = "Compute Groups is supported only on Vantage Cloud Lake."
38 CC_OPR_TIMEOUT_ERROR = (
39 "There is an issue with the %s operation. Kindly consult the administrator for assistance."
40 )
41 CC_GRP_PRP_EXISTS_MSG = "The specified Compute cluster is already exists."
42 CC_OPR_EMPTY_COPY_PROFILE_ERROR_MSG = (
43 "Please provide a valid name for the source and target compute profile."
44 )
45 CC_OPR_TIME_OUT = 1200
46 CC_POLL_INTERVAL = 60