Secret Manager V1 API - Class Google::Cloud::SecretManager::V1::RestoreBackupRequest (v2.1.0)

Reference documentation and code samples for the Secret Manager V1 API class Google::Cloud::SecretManager::V1::RestoreBackupRequest.

Request message for SecretOperationsService.RestoreBackup.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#destination_secret_id

def destination_secret_id() -> ::String
Returns
  • (::String) — Required. ID of the new Secret to be created from this backup. 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.

#destination_secret_id=

def destination_secret_id=(value) -> ::String
Parameter
  • value (::String) — Required. ID of the new Secret to be created from this backup. 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. ID of the new Secret to be created from this backup. 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.

#destination_secret_parent

def destination_secret_parent() -> ::String
Returns
  • (::String) —

    Required. Parent of the new Secret to be created from this backup. Formats:

    • projects/{project}/locations/{location} (for regional secrets)
    • projects/{project} (for global secrets)

#destination_secret_parent=

def destination_secret_parent=(value) -> ::String
Parameter
  • value (::String) —

    Required. Parent of the new Secret to be created from this backup. Formats:

    • projects/{project}/locations/{location} (for regional secrets)
    • projects/{project} (for global secrets)
Returns
  • (::String) —

    Required. Parent of the new Secret to be created from this backup. Formats:

    • projects/{project}/locations/{location} (for regional secrets)
    • projects/{project} (for global secrets)

#kms_key_name

def kms_key_name() -> ::String
Returns
  • (::String) — Optional. The resource name of the Cloud KMS CryptoKey to be used to encrypt the Secret. Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}

#kms_key_name=

def kms_key_name=(value) -> ::String
Parameter
  • value (::String) — Optional. The resource name of the Cloud KMS CryptoKey to be used to encrypt the Secret. Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
Returns
  • (::String) — Optional. The resource name of the Cloud KMS CryptoKey to be used to encrypt the Secret. Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}

#name

def name() -> ::String
Returns
  • (::String) — Required. The resource name of the Backup to restore from. Format: projects/{project}/locations/{location}/backups/{backup}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. The resource name of the Backup to restore from. Format: projects/{project}/locations/{location}/backups/{backup}
Returns
  • (::String) — Required. The resource name of the Backup to restore from. Format: projects/{project}/locations/{location}/backups/{backup}