Secret Manager V1beta1 Client - Class SecretVersion (1.11.0)

Reference documentation and code samples for the Secret Manager V1beta1 Client class SecretVersion.

A secret version resource in the Secret Manager API.

Generated from protobuf message google.cloud.secrets.v1beta1.SecretVersion

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* . SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

↳ create_time
Google\Protobuf\Timestamp

Output only. The time at which the SecretVersion was created.

↳ destroy_time
Google\Protobuf\Timestamp

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED .

↳ state
int

Output only. The current state of the SecretVersion .

getName

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* .

SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

Returns
Type
Description
string

setName

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/* .

SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreateTime

Output only. The time at which the SecretVersion was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time at which the SecretVersion was created.

Parameter
Name
Description
Returns
Type
Description
$this

getDestroyTime

Output only. The time this SecretVersion was destroyed.

Only present if state is DESTROYED .

Returns
Type
Description

hasDestroyTime

clearDestroyTime

setDestroyTime

Output only. The time this SecretVersion was destroyed.

Only present if state is DESTROYED .

Parameter
Name
Description
Returns
Type
Description
$this

getState

Output only. The current state of the SecretVersion .

Returns
Type
Description
int

setState

Output only. The current state of the SecretVersion .

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: