Batch V1 API - Class Google::Cloud::Batch::V1::Runnable::Script (v0.9.0)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::Runnable::Script.

Script runnable.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#path

def path() -> ::String
Returns
  • (::String) — 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.

#path=

def path=(value) -> ::String
Parameter
  • value (::String) — 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.

Returns
  • (::String) — 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.

#text

def text() -> ::String
Returns
  • (::String) — 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.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — 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.

Returns
  • (::String) — 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.