Reference documentation and code samples for the Secret Manager V1 Client class CreateSecretRequest.
Request message for SecretManagerService.CreateSecret .
Generated from protobuf message google.cloud.secretmanager.v1.CreateSecretRequest
Namespace
Google \ Cloud \ SecretManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The resource name of the project to associate with the Secret
, in the format projects/*
or projects/*/locations/*
.
↳ secret_id
string
Required. This must be unique within the project. A secret ID is a string with a maximum length of 255 characters and can contain uppercase and lowercase letters, numerals, and the hyphen ( -
) and underscore ( _
) characters.
getParent
Required. The resource name of the project to associate with the Secret
, in the format projects/*
or projects/*/locations/*
.
string
setParent
Required. The resource name of the project to associate with the Secret
, in the format projects/*
or projects/*/locations/*
.
var
string
$this
getSecretId
Required. This must be unique within the project.
A secret ID is a string with a maximum length of 255 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen ( -
) and
underscore ( _
) characters.
string
setSecretId
Required. This must be unique within the project.
A secret ID is a string with a maximum length of 255 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen ( -
) and
underscore ( _
) characters.
var
string
$this
getSecret
Required. A Secret with initial field values.
hasSecret
clearSecret
setSecret
Required. A Secret with initial field values.
$this
static::build
parent
string
Required. The resource name of the project to associate with the Secret
, in the format projects/*
or projects/*/locations/*
. Please see SecretManagerServiceClient::projectName()
for help formatting this field.
secretId
string
Required. This must be unique within the project.
A secret ID is a string with a maximum length of 255 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen ( -
) and
underscore ( _
) characters.