Enum class to store GCP targets.
| 20 | |
| 21 | @unique |
| 22 | class GcpTarget(Enum): |
| 23 | """Enum class to store GCP targets.""" |
| 24 | BIGQUERY = (1, "BigQuery") |
| 25 | GCS = (2, "Google Cloud Storage") |
| 26 | # Old name, should remove later. |
| 27 | AUTOML = (3, "Cloud AutoML") |
| 28 | CLOUDAI = (3, "Google Cloud AI Platform") |
| 29 | |
| 30 | def __init__(self, target, service): |
| 31 | self._target = target |
| 32 | self._service = service |
| 33 | |
| 34 | @property |
| 35 | def target(self): |
| 36 | return self._target |
| 37 | |
| 38 | @property |
| 39 | def service(self): |
| 40 | return self._service |
| 41 | |
| 42 | |
| 43 | class UserSecretsClient(): |
nothing calls this directly
no outgoing calls
no test coverage detected