Class AgentScript
Script runnable representation on the agent side.
Implements
Inherited Members
Namespace: Google.Apis.Batch.v1.Data
Assembly: Google.Apis.Batch.v1.dll
Syntax
public class AgentScript : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Path
Script file path on the host VM. To specify an interpreter, please add a #!(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.
Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Text
Shell script text. To specify an interpreter, please add a #!\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.
Declaration
[JsonProperty("text")]
public virtual string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |