|
12 | 12 | # See the License for the specific language governing permissions and
|
13 | 13 | # limitations under the License.
|
14 | 14 |
|
| 15 | +from enum import Enum |
15 | 16 | from typing import Final
|
16 | 17 |
|
| 18 | +GCP_APPHUB_APPLICATION_CONTAINER: Final = "gcp.apphub.application.container" |
| 19 | +""" |
| 20 | +The container within GCP where the AppHub application is defined. |
| 21 | +""" |
| 22 | + |
| 23 | +GCP_APPHUB_APPLICATION_ID: Final = "gcp.apphub.application.id" |
| 24 | +""" |
| 25 | +The name of the application as configured in AppHub. |
| 26 | +""" |
| 27 | + |
| 28 | +GCP_APPHUB_APPLICATION_LOCATION: Final = "gcp.apphub.application.location" |
| 29 | +""" |
| 30 | +The GCP zone or region where the application is defined. |
| 31 | +""" |
| 32 | + |
| 33 | +GCP_APPHUB_SERVICE_CRITICALITY_TYPE: Final = ( |
| 34 | + "gcp.apphub.service.criticality_type" |
| 35 | +) |
| 36 | +""" |
| 37 | +Criticality of a service indicates its importance to the business. |
| 38 | +Note: [See AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type). |
| 39 | +""" |
| 40 | + |
| 41 | +GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE: Final = ( |
| 42 | + "gcp.apphub.service.environment_type" |
| 43 | +) |
| 44 | +""" |
| 45 | +Environment of a service is the stage of a software lifecycle. |
| 46 | +Note: [See AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1). |
| 47 | +""" |
| 48 | + |
| 49 | +GCP_APPHUB_SERVICE_ID: Final = "gcp.apphub.service.id" |
| 50 | +""" |
| 51 | +The name of the service as configured in AppHub. |
| 52 | +""" |
| 53 | + |
| 54 | +GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE: Final = ( |
| 55 | + "gcp.apphub.workload.criticality_type" |
| 56 | +) |
| 57 | +""" |
| 58 | +Criticality of a workload indicates its importance to the business. |
| 59 | +Note: [See AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type). |
| 60 | +""" |
| 61 | + |
| 62 | +GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE: Final = ( |
| 63 | + "gcp.apphub.workload.environment_type" |
| 64 | +) |
| 65 | +""" |
| 66 | +Environment of a workload is the stage of a software lifecycle. |
| 67 | +Note: [See AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1). |
| 68 | +""" |
| 69 | + |
| 70 | +GCP_APPHUB_WORKLOAD_ID: Final = "gcp.apphub.workload.id" |
| 71 | +""" |
| 72 | +The name of the workload as configured in AppHub. |
| 73 | +""" |
| 74 | + |
17 | 75 | GCP_CLIENT_SERVICE: Final = "gcp.client.service"
|
18 | 76 | """
|
19 | 77 | Identifies the Google Cloud service for which the official client library is intended.
|
|
39 | 97 | """
|
40 | 98 | The instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names).
|
41 | 99 | """
|
| 100 | + |
| 101 | + |
| 102 | +class GcpApphubServiceCriticalityTypeValues(Enum): |
| 103 | + MISSION_CRITICAL = "MISSION_CRITICAL" |
| 104 | + """Mission critical service.""" |
| 105 | + HIGH = "HIGH" |
| 106 | + """High impact.""" |
| 107 | + MEDIUM = "MEDIUM" |
| 108 | + """Medium impact.""" |
| 109 | + LOW = "LOW" |
| 110 | + """Low impact.""" |
| 111 | + |
| 112 | + |
| 113 | +class GcpApphubServiceEnvironmentTypeValues(Enum): |
| 114 | + PRODUCTION = "PRODUCTION" |
| 115 | + """Production environment.""" |
| 116 | + STAGING = "STAGING" |
| 117 | + """Staging environment.""" |
| 118 | + TEST = "TEST" |
| 119 | + """Test environment.""" |
| 120 | + DEVELOPMENT = "DEVELOPMENT" |
| 121 | + """Development environment.""" |
| 122 | + |
| 123 | + |
| 124 | +class GcpApphubWorkloadCriticalityTypeValues(Enum): |
| 125 | + MISSION_CRITICAL = "MISSION_CRITICAL" |
| 126 | + """Mission critical service.""" |
| 127 | + HIGH = "HIGH" |
| 128 | + """High impact.""" |
| 129 | + MEDIUM = "MEDIUM" |
| 130 | + """Medium impact.""" |
| 131 | + LOW = "LOW" |
| 132 | + """Low impact.""" |
| 133 | + |
| 134 | + |
| 135 | +class GcpApphubWorkloadEnvironmentTypeValues(Enum): |
| 136 | + PRODUCTION = "PRODUCTION" |
| 137 | + """Production environment.""" |
| 138 | + STAGING = "STAGING" |
| 139 | + """Staging environment.""" |
| 140 | + TEST = "TEST" |
| 141 | + """Test environment.""" |
| 142 | + DEVELOPMENT = "DEVELOPMENT" |
| 143 | + """Development environment.""" |
0 commit comments