Class Secret
A Secret is a logical secret whose value and versions can be accessed. A Secret is made up of zero or more SecretVersions that represent the secret data.
Implements
Inherited Members
Namespace: Google.Apis.SecretManager.v1.Data
Assembly: Google.Apis.SecretManager.v1.dll
Syntax
public class Secret : IDirectResponseSchema
Properties
Annotations
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
Declaration
[JsonProperty("annotations")]
public virtual IDictionary<string, string> Annotations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The time at which the Secret was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
CustomerManagedEncryption
Optional. The customer-managed encryption configuration of the regionalized secrets. If no configuration is provided, Google-managed default encryption is used. Updates to the Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.
Declaration
[JsonProperty("customerManagedEncryption")]
public virtual CustomerManagedEncryption CustomerManagedEncryption { get; set; }
Property Value
Type | Description |
---|---|
CustomerManagedEncryption |
ETag
Optional. Etag of the currently stored Secret.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ExpireTime
object representation of ExpireTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ExpireTimeDateTimeOffset instead.")]
public virtual object ExpireTime { get; set; }
Property Value
Type | Description |
---|---|
object |
ExpireTimeDateTimeOffset
DateTimeOffset representation of ExpireTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? ExpireTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
ExpireTimeRaw
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
Declaration
[JsonProperty("expireTime")]
public virtual string ExpireTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE regular expression:
\p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum
128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more
than 64 labels can be assigned to a given resource.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Name
Output only. The resource name of the Secret in the format projects/*/secrets/*
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Replication
Optional. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
Declaration
[JsonProperty("replication")]
public virtual Replication Replication { get; set; }
Property Value
Type | Description |
---|---|
Replication |
Rotation
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
Declaration
[JsonProperty("rotation")]
public virtual Rotation Rotation { get; set; }
Property Value
Type | Description |
---|---|
Rotation |
Topics
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
Declaration
[JsonProperty("topics")]
public virtual IList<Topic> Topics { get; set; }
Property Value
Type | Description |
---|---|
IList<Topic> |
Ttl
Input only. The TTL for the Secret.
Declaration
[JsonProperty("ttl")]
public virtual object Ttl { get; set; }
Property Value
Type | Description |
---|---|
object |
VersionAliases
Optional. Mapping from version alias to version name. A version alias is a string with a maximum length of
63 characters and can contain uppercase and lowercase letters, numerals, and the hyphen (-
) and underscore
('_') characters. An alias string must start with a letter and cannot be the string 'latest' or 'NEW'. No
more than 50 aliases can be assigned to a given secret. Version-Alias pairs will be viewable via GetSecret
and modifiable via UpdateSecret. Access by alias is only be supported on GetSecretVersion and
AccessSecretVersion.
Declaration
[JsonProperty("versionAliases")]
public virtual IDictionary<string, long?> VersionAliases { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, long?> |
VersionDestroyTtl
Optional. Secret Version TTL after destruction request This is a part of the Delayed secret version destroy feature. For secret with TTL>0, version destruction doesn't happen immediately on calling destroy instead the version goes to a disabled state and destruction happens after the TTL expires.
Declaration
[JsonProperty("versionDestroyTtl")]
public virtual object VersionDestroyTtl { get; set; }
Property Value
Type | Description |
---|---|
object |