class Google::Apis::OsconfigV1beta::ExecStepConfig

Common configurations for an ExecStep.

Attributes

allowed_success_codes[RW]

Defaults to [0]. A list of possible return values that the execution can return to indicate a success. Corresponds to the JSON property `allowedSuccessCodes` @return [Array<Fixnum>]

gcs_object[RW]

Google Cloud Storage object representation. Corresponds to the JSON property `gcsObject` @return [Google::Apis::OsconfigV1beta::GcsObject]

interpreter[RW]

The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (en.wikipedia.org/wiki/Shebang_(Unix\ )). Corresponds to the JSON property `interpreter` @return [String]

local_path[RW]

An absolute path to the executable on the VM. Corresponds to the JSON property `localPath` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 429
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 434
def update!(**args)
  @allowed_success_codes = args[:allowed_success_codes] if args.key?(:allowed_success_codes)
  @gcs_object = args[:gcs_object] if args.key?(:gcs_object)
  @interpreter = args[:interpreter] if args.key?(:interpreter)
  @local_path = args[:local_path] if args.key?(:local_path)
end