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.
Implements
IMessageRunnableTypesScript, IEquatableRunnableTypesScript, IDeepCloneableRunnableTypesScript, IBufferMessage, IMessageNamespace
Google.Cloud.Batch.V1AlphaAssembly
Google.Cloud.Batch.V1Alpha.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; }
The path to a script file that is accessible from the host VM(s).
Unless the script file supports the default #!/bin/sh
shell
interpreter, you must specify an interpreter by including a
[shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
first line of the file. For example, to execute the script using bash,
include #!/bin/bash
as the first line of the file. Alternatively,
to execute the script using Python3, include #!/usr/bin/env python3
as the first line of the file.
Property Value | |
---|---|
Type | Description |
string |
Text
public string Text { get; set; }
The text for a script.
Unless the script text supports the default #!/bin/sh
shell
interpreter, you must specify an interpreter by including a
[shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
beginning of the text. For example, to execute the script using bash,
include #!/bin/bash\n
at the beginning of the text. Alternatively,
to execute the script using Python3, include #!/usr/bin/env python3\n
at the beginning of the text.
Property Value | |
---|---|
Type | Description |
string |