Batch v1alpha API - Class Runnable.Types.Script (1.0.0-alpha23)

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 v1alpha API class Runnable.Types.Script.

Script runnable.

Inheritance

object > Runnable.Types.Script

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.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

HasPath

public bool HasPath { get; }

Gets whether the "path" field is set

Property Value
TypeDescription
bool

HasText

public bool HasText { get; }

Gets whether the "text" field is set

Property Value
TypeDescription
bool

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 executed 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 executed by /bin/sh.

Property Value
TypeDescription
string