access_token
access_token ¶
DomoAccessToken
dataclass
¶
DomoAccessToken(
auth: DomoAuth,
id: str,
raw: dict,
name: str = "",
owner: Any = None,
expiration_date: datetime | None = None,
token: str = "",
)
Bases: DomoEntity
generate
async
classmethod
¶
generate(
duration_in_days: int,
token_name: str,
auth: DomoAuth,
owner,
debug_api: bool = False,
session: AsyncClient | None = None,
debug_num_stacks_to_drop: int = 2,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoInstanceConfig/access_token.py
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 143 144 145 146 | |
get_by_id
async
classmethod
¶
get_by_id(
auth: DomoAuth,
id: str,
session: AsyncClient | None = None,
debug_api: bool = False,
debug_num_stacks_to_drop: int = 2,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoInstanceConfig/access_token.py
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 | |
get_entity_by_id
async
classmethod
¶
get_entity_by_id(auth: DomoAuth, entity_id: str, **kwargs)
Fetch a access token by ID; delegates to get_by_id.
Source code in src/crew_dcs/classes/DomoInstanceConfig/access_token.py
71 72 73 74 | |
revoke
async
¶
revoke(
debug_api: bool = False,
session: AsyncClient | None = None,
debug_num_stacks_to_drop: int = 2,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoInstanceConfig/access_token.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
DomoAccessTokens
dataclass
¶
DomoAccessTokens(
auth: DomoAuth,
domo_access_tokens: list[DomoAccessToken] = list(),
)
Bases: DomoManager
get
async
¶
get(
return_raw: bool = False,
debug_api: bool = False,
debug_num_stacks_to_drop=2,
session: AsyncClient = None,
*,
context: RouteContext | None = None,
**context_kwargs,
)
Calls route
Source code in src/crew_dcs/classes/DomoInstanceConfig/access_token.py
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |