Class Script (0.11.0)

Script(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Script runnable.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
path str
Script file path on the host VM. To specify an interpreter, please add a #!\ (also known as `shebang line
text str
Shell script text. To specify an interpreter, please add a #! at the beginning of the text.(For example, to execute the script using bash, #!/bin/bash\n should be added. To execute the script using\ Python3, #!/usr/bin/env python3\n should be added.) Otherwise, the script will by default be excuted by /bin/sh. This field is a member of oneof_ command.