Generated from protobuf message google.cloud.secretmanager.v1beta2.GetSecretRequest
Namespace
Google \ Cloud \ SecretManager \ V1beta2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the Secret, in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.
getName
Required. The resource name of the
Secret, in the format
projects/*/secrets/* or projects/*/locations/*/secrets/*.
Returns
Type
Description
string
setName
Required. The resource name of the
Secret, in the format
projects/*/secrets/* or projects/*/locations/*/secrets/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The resource name of the
Secret, in the format
projects/*/secrets/* or projects/*/locations/*/secrets/*. Please see
SecretManagerServiceClient::secretName() for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,[]]