SecretPaginator
next_items
has_next is True, otherwise it will raise an exception.
Arguments:
opts: Per-call connection options (e.g.api_key,domain,headers,request_timeout). When provided, this call uses these options instead of the ones the paginator was constructed with.
Secret
create and
update but never returned by any read surface.
create
name: Name of the secret, unique within the project.value: Secret value. Write-only — never returned by the API.metadata: Customer metadata to store with the secret.
1 for a new
secret), metadata, and creation and update times.
update
secret: Secret ID or name.value: New secret value. Write-only — never returned by the API.metadata: Customer metadata to store with the secret. When provided, replaces the stored metadata.
get_info
secret: Secret ID or name.
list
limit: Number of secrets to return per page.next_token: Token to the next page.
exists
secret: Secret ID or name.
True if the secret exists, False otherwise.
destroy
secret: Secret ID or name.
True if the secret was destroyed, False if it was not found.
SecretBase
create and
update but never returned by any read surface.
fill
secret: Secret name.
iam_token
iam.tokens when
creating a sandbox.
Arguments:
audience: Audience of the workload token, stored exactly as provided.token_type: Workload token type.
iam.tokens.
Example:
SecretInfo
secret_id
Secret ID.name
Secret name, unique within the project.version
Version served to readers that do not name one.metadata
Customer metadata of the secret.created_at
Time when the secret was created.updated_at
Time when the secret was last updated.AsyncSecretPaginator
next_items
has_next is True, otherwise it will raise an exception.
Arguments:
opts: Per-call connection options (e.g.api_key,domain,headers,request_timeout). When provided, this call uses these options instead of the ones the paginator was constructed with.
AsyncSecret
create and
update but never returned by any read surface.
create
name: Name of the secret, unique within the project.value: Secret value. Write-only — never returned by the API.metadata: Customer metadata to store with the secret.
1 for a new
secret), metadata, and creation and update times.
update
secret: Secret ID or name.value: New secret value. Write-only — never returned by the API.metadata: Customer metadata to store with the secret. When provided, replaces the stored metadata.
get_info
secret: Secret ID or name.
list
limit: Number of secrets to return per page.next_token: Token to the next page.
exists
secret: Secret ID or name.
True if the secret exists, False otherwise.
destroy
secret: Secret ID or name.
True if the secret was destroyed, False if it was not found.