ActorEnvVarCollectionClient
Hierarchy
- ResourceCollectionClient
- ActorEnvVarCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
Added in 2.17.0
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new environment variable for this Actor version.
Parameters
actorEnvVar: EnvVar
The environment variable data.
options: TimeoutOptions = {}
Request options
Returns Promise<EnvVar>
The created environment variable object.
list
Lists all environment variables of this Actor version.
The endpoint returns every environment variable in one response, so awaiting the return value (as you would with a Promise) gets the whole list.
const { items } = await client.list();Asynchronous iteration is also supported, and yields the environment variables one by one.
for await (const singleItem of client.list()) {...}Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<ActorEnvVarListResult> & AsyncIterable<EnvVar, any, any>
The environment variables, awaitable as a whole list or iterable one by one.
Client for managing the collection of environment variables for an Actor version.
Environment variables are key-value pairs that are available to the Actor during execution. This client provides methods to list and create environment variables.