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
Methods
__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/*
.
↳ 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
getParent
Required. The resource name of the project to associate with the Secret
, in the format projects/*
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
string
setParent
Required. The resource name of the project to associate with the Secret
, in the format projects/*
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
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.
Generated from protobuf field string secret_id = 2 [(.google.api.field_behavior) = REQUIRED];
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.
Generated from protobuf field string secret_id = 2 [(.google.api.field_behavior) = REQUIRED];
var
string
$this
getSecret
Required. A Secret with initial field values.
Generated from protobuf field .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED];
hasSecret
clearSecret
setSecret
Required. A Secret with initial field values.
Generated from protobuf field .google.cloud.secretmanager.v1.Secret secret = 3 [(.google.api.field_behavior) = REQUIRED];
$this