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.
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
↳ destroy_time
Google\Protobuf\Timestamp
Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED .
↳ state
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.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
string
$this
getCreateTime
Output only. The time at which the SecretVersion was created.
Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Google\Protobuf\Timestamp|null
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which the SecretVersion was created.
Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
Google\Protobuf\Timestamp
$this
getDestroyTime
Output only. The time this SecretVersion was destroyed.
Only present if state is DESTROYED .
Generated from protobuf field .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Google\Protobuf\Timestamp|null
hasDestroyTime
clearDestroyTime
setDestroyTime
Output only. The time this SecretVersion was destroyed.
Only present if state is DESTROYED .
Generated from protobuf field .google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
Google\Protobuf\Timestamp
$this
getState
Output only. The current state of the SecretVersion .
Generated from protobuf field .google.cloud.secrets.v1beta1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
int
setState
Output only. The current state of the SecretVersion .
Generated from protobuf field .google.cloud.secrets.v1beta1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
int
$this