Secret Manager V1beta1 Client - Class CreateSecretRequest (1.15.4)

Reference documentation and code samples for the Secret Manager V1beta1 Client class CreateSecretRequest.

Request message for SecretManagerService.CreateSecret .

Generated from protobuf message google.cloud.secrets.v1beta1.CreateSecretRequest

Namespace

Google \ Cloud \ SecretManager \ V1beta1

Methods

__construct

Constructor.

Parameters
Name
Description
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/* .

↳ 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.

↳ secret
Secret

Required. A Secret with initial field values.

getParent

Required. The resource name of the project to associate with the Secret , in the format projects/* .

Returns
Type
Description
string

setParent

Required. The resource name of the project to associate with the Secret , in the format projects/* .

Parameter
Name
Description
var
string
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSecret

Required. A Secret with initial field values.

Returns
Type
Description
Secret |null

hasSecret

clearSecret

setSecret

Required. A Secret with initial field values.

Parameter
Name
Description
var
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: