Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::CreateSecretRequest (v0.2.0)

Reference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::CreateSecretRequest.

Request message for SecretManagerService.CreateSecret.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The resource name of the project to associate with the Secret, in the format projects/* or projects/*/locations/*.

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The resource name of the project to associate with the Secret, in the format projects/* or projects/*/locations/*.
Returns
  • (::String) — Required. The resource name of the project to associate with the Secret, in the format projects/* or projects/*/locations/*.

#secret

def secret() -> ::Google::Cloud::SecretManager::V1beta2::Secret
Returns

#secret=

def secret=(value) -> ::Google::Cloud::SecretManager::V1beta2::Secret
Parameter
Returns

#secret_id

def secret_id() -> ::String
Returns
  • (::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_id=

def secret_id=(value) -> ::String
Parameter
  • value (::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.

Returns
  • (::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.