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

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

A Backup of a Secret. Backups are regional resources.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#etag

def etag() -> ::String
Returns
  • (::String) — Optional. Used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other.

#etag=

def etag=(value) -> ::String
Parameter
  • value (::String) — Optional. Used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other.
Returns
  • (::String) — Optional. Used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels with user-defined metadata.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels with user-defined metadata.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels with user-defined metadata.

#name

def name() -> ::String
Returns
  • (::String) — Identifier. Resource name of the backup. Format: projects/{project}/locations/{location}/backups/{backup}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Identifier. Resource name of the backup. Format: projects/{project}/locations/{location}/backups/{backup}
Returns
  • (::String) — Identifier. Resource name of the backup. Format: projects/{project}/locations/{location}/backups/{backup}

#source_secret

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

    Required. Immutable. Resource name of the Secret that this backup is for. The source Secret can be in a different region than the Backup. This field is immutable after creation. Formats:

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

#source_secret=

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

    Required. Immutable. Resource name of the Secret that this backup is for. The source Secret can be in a different region than the Backup. This field is immutable after creation. Formats:

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

    Required. Immutable. Resource name of the Secret that this backup is for. The source Secret can be in a different region than the Backup. This field is immutable after creation. Formats:

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

#source_secret_create_time

def source_secret_create_time() -> ::Google::Protobuf::Timestamp
Returns

#state

def state() -> ::Google::Cloud::SecretManager::V1::Backup::State
Returns

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#version_count

def version_count() -> ::Integer
Returns
  • (::Integer) — Output only. Number of non-destroyed secret versions contained in this backup.