class Google::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile

Executes an artifact or local file.

Attributes

allowed_exit_codes[RW]

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

args[RW]

Arguments to be passed to the provided executable. Corresponds to the JSON property `args` @return [Array<String>]

artifact_id[RW]

The id of the relevant artifact in the recipe. Corresponds to the JSON property `artifactId` @return [String]

local_path[RW]

The absolute path of the file on the local filesystem. 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 1921
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 1926
def update!(**args)
  @allowed_exit_codes = args[:allowed_exit_codes] if args.key?(:allowed_exit_codes)
  @args = args[:args] if args.key?(:args)
  @artifact_id = args[:artifact_id] if args.key?(:artifact_id)
  @local_path = args[:local_path] if args.key?(:local_path)
end