Secret Manager v1 API - Class Backup (3.1.0)

public sealed class Backup : IMessage<Backup>, IEquatable<Backup>, IDeepCloneable<Backup>, IBufferMessage, IMessage

Reference documentation and code samples for the Secret Manager v1 API class Backup.

A Backup of a Secret. Backups are regional resources.

Inheritance

object > Backup

Namespace

Google.Cloud.SecretManager.V1

Assembly

Google.Cloud.SecretManager.V1.dll

Constructors

Backup()

public Backup()

Backup(Backup)

public Backup(Backup other)
Parameter
Name Description
other Backup

Properties

BackupName

public BackupName BackupName { get; set; }

BackupName-typed view over the Name resource name property.

Property Value
Type Description
BackupName

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Time at which the backup resource was created.

Property Value
Type Description
Timestamp

Etag

public string Etag { get; set; }

Optional. Used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other.

Property Value
Type Description
string

Labels

public MapField<string, string> Labels { get; }

Optional. Labels with user-defined metadata.

Property Value
Type Description
MapFieldstringstring

Name

public string Name { get; set; }

Identifier. Resource name of the backup. Format: projects/{project}/locations/{location}/backups/{backup}

Property Value
Type Description
string

SourceSecret

public string SourceSecret { get; set; }

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

  • projects/{project}/locations/{location}/secrets/{secret} (for regional secrets)
  • projects/{project}/secrets/{secret} (for global secrets)
Property Value
Type Description
string

SourceSecretAsSecretName

public SecretName SourceSecretAsSecretName { get; set; }

SecretName-typed view over the SourceSecret resource name property.

Property Value
Type Description
SecretName

SourceSecretCreateTime

public Timestamp SourceSecretCreateTime { get; set; }

Output only. Creation time of the source [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was initiated.

Property Value
Type Description
Timestamp

State

public Backup.Types.State State { get; set; }

Output only. Current state of the Backup.

Property Value
Type Description
BackupTypesState

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. Time at which the backup resource was last updated.

Property Value
Type Description
Timestamp

VersionCount

public int VersionCount { get; set; }

Output only. Number of non-destroyed secret versions contained in this backup.

Property Value
Type Description
int