2.23.0 (latest) 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Cloud Build v1 API class InlineSecret.

Pairs a set of secret environment variables mapped to encrypted
values with the Cloud KMS key to use to decrypt the value.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> InlineSecret

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[InlineSecret](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.InlineSecret.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InlineSecret](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.InlineSecret.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[InlineSecret](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.InlineSecret.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudBuild.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.md.txt)

## Assembly

Google.Cloud.CloudBuild.V1.dll

## Constructors

### InlineSecret()

    public InlineSecret()

### InlineSecret(InlineSecret)

    public InlineSecret(InlineSecret other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `InlineSecret` |

## Properties

### EnvMap

    public MapField<string, ByteString> EnvMap { get; }

Map of environment variable name to its encrypted value.

Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step. Values can be at most
64 KB in size. There can be at most 100 secret values across all of a
build's secrets.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringByteString` |   |

### KmsKeyName

    public string KmsKeyName { get; set; }

Resource name of Cloud KMS crypto key to decrypt the encrypted value.
In format: projects/*/locations/* /keyRings/*/cryptoKeys/*

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### KmsKeyNameAsCryptoKeyName

    public CryptoKeyName KmsKeyNameAsCryptoKeyName { get; set; }

[CryptoKeyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.CryptoKeyName.md.txt)-typed view over the [KmsKeyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudBuild.V1/latest/Google.Cloud.CloudBuild.V1.InlineSecret.md.txt#Google_Cloud_CloudBuild_V1_InlineSecret_KmsKeyName) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CryptoKeyName` |   |