public sealed class Secret : IMessage<Secret>, IEquatable<Secret>, IDeepCloneable<Secret>, IBufferMessage, IMessageReference documentation and code samples for the DataStream v1 API class Secret.
A confidential piece of information where the actual value is either directly specified in the message as a raw string or stored in GCP secret manager.
Namespace
Google.Cloud.Datastream.V1Assembly
Google.Cloud.Datastream.V1.dll
Constructors
Secret()
public Secret()Secret(Secret)
public Secret(Secret other)| Parameter | |
|---|---|
| Name | Description |
other |
Secret |
Properties
HasRawValue
public bool HasRawValue { get; }Gets whether the "raw_value" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSecretVersion
public bool HasSecretVersion { get; }Gets whether the "secret_version" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
RawValue
public string RawValue { get; set; }Optional. Input only. The actual raw value of the secret as plain text.
| Property Value | |
|---|---|
| Type | Description |
string |
|
SecretVersion
public string SecretVersion { get; set; }Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:
- projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
- projects/{project}/secrets/{secret}/versions/{version}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ValueCase
public Secret.ValueOneofCase ValueCase { get; }| Property Value | |
|---|---|
| Type | Description |
SecretValueOneofCase |
|