Batch v1 API - Class Runnable.Types.Script (2.0.0)

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.

Inheritance

object > Runnable.Types.Script

Namespace

GoogleCloudGoogle.Cloud.BatchV1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

Script()

public Script()

Script(Script)

public Script(Runnable.Types.Script other)
Parameter
NameDescription
otherRunnableTypesScript

Properties

CommandCase

public Runnable.Types.Script.CommandOneofCase CommandCase { get; }
Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
string