DeployAccount
DeployAccount ¶
DeployAccount
dataclass
¶
DeployAccount(
auth: DomoAuth,
creds: dict[str, Any],
config_types: Sequence[ConfigTypeSpecifier],
account_name: str,
description: str | None = None,
is_available_as_unencrypted: bool = True,
context: RouteContext | None = None,
)
Deploy multiple DomoAccount objects that share a credential bundle.
Attributes:
| Name | Type | Description |
|---|---|---|
auth |
DomoAuth
|
Auth used to create / upsert the accounts. |
creds |
dict[str, Any]
|
Shared credential dictionary. Keys should match the
dataclass field names on the target |
config_types |
Sequence[ConfigTypeSpecifier]
|
Collection of config type specifiers. Each entry may be:
|
account_name |
str
|
Base account name to use. A short provider suffix is appended to make each account name unique per config type. |
description |
str | None
|
Optional human friendly description of the bundle. Not sent to the Domo APIs; intended for logging / debugging. |
is_available_as_unencrypted |
bool
|
Controls the |
deploy
async
¶
deploy(
*,
debug_api: bool = False,
debug_prn: bool = False,
dry_run: bool = False
) -> list[DomoAccount]
Create or update one DomoAccount per config type.
Returns:
| Type | Description |
|---|---|
list[DomoAccount]
|
List of created / upserted |
list[DomoAccount]
|
order as |
Source code in src/crew_dcs/integrations/DeployAccount.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |