gcp
GCP specific stuff.
GCPRole
Bases: BaseModel
A GCPRole
holds information about a GCP role, such as name and description.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
The technical name of the GCP role, such as |
title |
str
|
A display friendly name, such as |
description |
str
|
A descriptive text that gives a short presentation of the role, such as ``Administer all BigQuery resources and data |
Source code in dapla_team_cli/gcp/__init__.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
__eq__(__o)
Custom equals operator, match on name.
Source code in dapla_team_cli/gcp/__init__.py
29 30 31 32 33 |
|
__hash__()
Implemented to support using GCPRole as a key in a dictionary.
Source code in dapla_team_cli/gcp/__init__.py
41 42 43 |
|
__lt__(__o)
Implemented to support sorting.
Source code in dapla_team_cli/gcp/__init__.py
35 36 37 38 39 |
|
GCPRoleValidator
Bases: Validator
Questionary Validator used for checking if the user provided GCP role is properly formatted.
Source code in dapla_team_cli/gcp/__init__.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
validate(document)
Validate that a GCP role name is appropriately formatted.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
document |
Document
|
The document to validate |
required |
Raises:
Type | Description |
---|---|
ValidationError
|
if input does not adhere to the naming convention. |
Source code in dapla_team_cli/gcp/__init__.py
49 50 51 52 53 54 55 56 57 58 59 60 |
|