configs
Contains classes representing user provided configs for different levels (group, env, bucket/role) of the wanted iam bindings.
AuthGroupIAMConfig
Bases: BaseModel
Represents IAM config for one auth group.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
combine()
Combine EnvironmentIAMConfigs if they are the same env.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
BucketIAMConfig
Bases: BaseModel
Represents one bucket IAM binding.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
identifier()
A bucket config is identified by its name and access type.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
20 21 22 |
|
sorter()
Sort bucket configs based on the expiry timestamp.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
24 25 26 |
|
EnvironmentIAMConfig
Bases: BaseModel
Represents IAM Config for one environment for one auth group.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
44 45 46 47 48 49 50 51 52 53 54 |
|
combine()
Combine buckets and roles if they share the same name, and choose the one with the longest expiry.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
51 52 53 54 |
|
IAMBindingConfig
Bases: BaseModel
Represents the overall IAM binding config to commit.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
combine()
Combine multiple AuthGroupIAMConfigs into a single one if they represent the same auth group.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
86 87 88 89 90 91 92 93 94 95 96 97 |
|
RoleIAMConfig
Bases: BaseModel
Represents one project role IAM binding.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
identifier()
A role config is identified by its role.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
35 36 37 |
|
sorter()
Sort role configs based on the expiry timestamp.
Source code in dapla_team_cli/tf/iam_bindings/configs.py
39 40 41 |
|