Batch v1 API - Class Runnable.Types.Script (2.11.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

Google.Cloud.Batch.V1

Assembly

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

HasPath

public bool HasPath { get; }

Gets whether the "path" field is set

Property Value
Type Description
bool

HasText

public bool HasText { get; }

Gets whether the "text" field is set

Property Value
Type Description
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
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 executed by /bin/sh.

Property Value
Type Description
string