3.40.0 (latest) 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.30.0 3.29.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0

```javascript
public sealed class LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript : IMessage<LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript>, IEquatable<LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript>, IDeepCloneable<LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript>, IBufferMessage, IMessage
```
Reference documentation and code samples for the Google Kubernetes Engine v1 API class LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript.

InitScript provide a simply bash script to be executed on the node.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[LinuxNodeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.md.txt)[CustomNodeInit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.Types.md.txt)[InitScript](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LinuxNodeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.md.txt)[CustomNodeInit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.Types.md.txt)[InitScript](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[LinuxNodeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.md.txt)[CustomNodeInit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.Types.md.txt)[InitScript](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript.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.Container.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.md.txt)

## Assembly

Google.Cloud.Container.V1.dll

## Constructors

### InitScript()

```javascript
public InitScript()
```

### InitScript(InitScript)

```javascript
public InitScript(LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript other)
```

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

## Properties

### Args

```javascript
public RepeatedField<string> Args { get; }
```
Optional. The optional arguments line to be passed to the init script.

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

### GcpSecretManagerSecretUri

```javascript
public string GcpSecretManagerSecretUri { get; set; }
```
The resource name of the secret manager secret hosting the init script.
Both global and regional secrets are supported with format below:
Global secret: projects/{project}/secrets/{secret}/versions/{version}
Regional secret:
projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
Example: projects/1234567890/secrets/script_1/versions/1.
Accept version number only, not support version alias.
User can't configure both gcp_secret_manager_secret_uri and gcs_uri.

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

### GcsGeneration

```javascript
public long GcsGeneration { get; set; }
```
The generation of the init script stored in Gloud Storage.
This is the required field to identify the version of the
init script.
User can get the genetaion from
`gcloud storage objects describe gs://BUCKET_NAME/OBJECT_NAME
--format="value(generation)"` or from the "Version history" tab of the
object in the Cloud Console UI.

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

### GcsUri

```javascript
public string GcsUri { get; set; }
```
The Cloud Storage URI for storing the init script.
Format: gs://BUCKET_NAME/OBJECT_NAME
The service account on the node pool must have read access to the
object.
User can't configure both gcs_uri and gcp_secret_manager_secret_uri.

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