Reference documentation and code samples for the Secret Manager V1 Client class SecretVersion.
A secret version resource in the Secret Manager API.
Generated from protobuf message google.cloud.secretmanager.v1.SecretVersion
Namespace
Google \ Cloud \ SecretManager \ V1Methods
__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
↳ replication_status
↳ etag
↳ client_specified_payload_checksum
bool
Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion .
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.
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.
var
string
$this
getCreateTime
Output only. The time at which the SecretVersion was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which the SecretVersion was created.
$this
getDestroyTime
Output only. The time this SecretVersion was destroyed.
hasDestroyTime
clearDestroyTime
setDestroyTime
Output only. The time this SecretVersion was destroyed.
$this
getState
Output only. The current state of the SecretVersion .
int
setState
Output only. The current state of the SecretVersion .
var
int
$this
getReplicationStatus
The replication status of the SecretVersion .
hasReplicationStatus
clearReplicationStatus
setReplicationStatus
The replication status of the SecretVersion .
$this
getEtag
Output only. Etag of the currently stored SecretVersion .
string
setEtag
Output only. Etag of the currently stored SecretVersion .
var
string
$this
getClientSpecifiedPayloadChecksum
Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion .
bool
setClientSpecifiedPayloadChecksum
Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion .
var
bool
$this