public static interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getArgs(int index)
public abstract String getArgs(int index)Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The args at the given index. |
getArgsBytes(int index)
public abstract ByteString getArgsBytes(int index)Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the args at the given index. |
getArgsCount()
public abstract int getArgsCount()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of args. |
getArgsList()
public abstract List<String> getArgsList()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the args. |
getGcpSecretManagerSecretUri()
public abstract String getGcpSecretManagerSecretUri()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.
string gcp_secret_manager_secret_uri = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The gcpSecretManagerSecretUri. |
getGcpSecretManagerSecretUriBytes()
public abstract ByteString getGcpSecretManagerSecretUriBytes()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.
string gcp_secret_manager_secret_uri = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcpSecretManagerSecretUri. |
getGcsGeneration()
public abstract long getGcsGeneration() 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.
int64 gcs_generation = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The gcsGeneration. |
getGcsUri()
public abstract String getGcsUri()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.
string gcs_uri = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The gcsUri. |
getGcsUriBytes()
public abstract ByteString getGcsUriBytes()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.
string gcs_uri = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcsUri. |