public sealed class Runnable.Types.Script : IMessage<Runnable.Types.Script>, IEquatable<Runnable.Types.Script>, IDeepCloneable<Runnable.Types.Script>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class Runnable.Types.Script.
Script runnable.
Implements
IMessageRunnableTypesScript, IEquatableRunnableTypesScript, IDeepCloneableRunnableTypesScript, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.BatchV1Assembly
Google.Cloud.Batch.V1.dll
Constructors
Script()
public Script()
Script(Script)
public Script(Runnable.Types.Script other)
Parameter | |
---|---|
Name | Description |
other | RunnableTypesScript |
Properties
CommandCase
public Runnable.Types.Script.CommandOneofCase CommandCase { get; }
Property Value | |
---|---|
Type | Description |
RunnableTypesScriptCommandOneofCase |
Path
public string Path { get; set; }
Script file path on the host VM.
To specify an interpreter, please add a #!<interpreter>
(also known as
shebang line) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash
should be the first line of the file. To execute the
script usingPython3
, #!/usr/bin/env python3
should be the first
line of the file.) Otherwise, the file will by default be excuted by
/bin/sh
.
Property Value | |
---|---|
Type | Description |
string |
Text
public string Text { get; set; }
Shell script text.
To specify an interpreter, please add a #!<interpreter>\n
at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n
should be added. To execute the script usingPython3
,
#!/usr/bin/env python3\n
should be added.) Otherwise, the script will
by default be excuted by /bin/sh
.
Property Value | |
---|---|
Type | Description |
string |