Reference documentation and code samples for the Secret Manager V1beta1 Client class AddSecretVersionRequest.
Request message for SecretManagerService.AddSecretVersion.
Generated from protobuf message google.cloud.secrets.v1beta1.AddSecretVersionRequest
Namespace
Google \ Cloud \ SecretManager \ V1beta1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The resource name of the Secret to associate with the SecretVersion in the format |
↳ payload |
Google\Cloud\SecretManager\V1beta1\SecretPayload
Required. The secret payload of the SecretVersion. |
getParent
Required. The resource name of the Secret to associate with the
SecretVersion in the format projects/*/secrets/*.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The resource name of the Secret to associate with the
SecretVersion in the format projects/*/secrets/*.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPayload
Required. The secret payload of the SecretVersion.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\SecretManager\V1beta1\SecretPayload|null |
|
hasPayload
clearPayload
setPayload
Required. The secret payload of the SecretVersion.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\SecretManager\V1beta1\SecretPayload
|
| Returns | |
|---|---|
| Type | Description |
$this |
|