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- (::Google::Protobuf::Timestamp) — Output only. Time at which the backup resource was created.
#etag
def etag() -> ::String- (::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- value (::String) — Optional. Used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other.
- (::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}- (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels with user-defined metadata.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels with user-defined metadata.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels with user-defined metadata.
#name
def name() -> ::String-
(::String) — Identifier. Resource name of the backup.
Format:
projects/{project}/locations/{location}/backups/{backup}
#name=
def name=(value) -> ::String-
value (::String) — Identifier. Resource name of the backup.
Format:
projects/{project}/locations/{location}/backups/{backup}
-
(::String) — Identifier. Resource name of the backup.
Format:
projects/{project}/locations/{location}/backups/{backup}
#source_secret
def source_secret() -> ::String-
(::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-
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)
-
(::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- (::Google::Protobuf::Timestamp) — Output only. Creation time of the source Secret at the moment the backup was initiated.
#state
def state() -> ::Google::Cloud::SecretManager::V1::Backup::State- (::Google::Cloud::SecretManager::V1::Backup::State) — Output only. Current state of the Backup.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Time at which the backup resource was last updated.
#version_count
def version_count() -> ::Integer- (::Integer) — Output only. Number of non-destroyed secret versions contained in this backup.