Package com.google.container.v1
Interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LinuxNodeConfig.CustomNodeInit.InitScript,LinuxNodeConfig.CustomNodeInit.InitScript.Builder
- Enclosing class:
- LinuxNodeConfig.CustomNodeInit
public static interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetArgs(int index) Optional.com.google.protobuf.ByteStringgetArgsBytes(int index) Optional.intOptional.Optional.The resource name of the secret manager secret hosting the init script.com.google.protobuf.ByteStringThe resource name of the secret manager secret hosting the init script.longThe generation of the init script stored in Gloud Storage.The Cloud Storage URI for storing the init script.com.google.protobuf.ByteStringThe Cloud Storage URI for storing the init script.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getGcsUri
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:
- The gcsUri.
-
getGcsUriBytes
com.google.protobuf.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:
- The bytes for gcsUri.
-
getGcsGeneration
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:
- The gcsGeneration.
-
getArgsList
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the args.
-
getArgsCount
int getArgsCount()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of args.
-
getArgs
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
com.google.protobuf.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];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getGcpSecretManagerSecretUri
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:
- The gcpSecretManagerSecretUri.
-
getGcpSecretManagerSecretUriBytes
com.google.protobuf.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:
- The bytes for gcpSecretManagerSecretUri.
-