Class: Google::Apis::OsconfigV1::ExecStepConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/osconfig_v1/classes.rb,
generated/google/apis/osconfig_v1/representations.rb,
generated/google/apis/osconfig_v1/representations.rb

Overview

Common configurations for an ExecStep.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecStepConfig

Returns a new instance of ExecStepConfig.



143
144
145
# File 'generated/google/apis/osconfig_v1/classes.rb', line 143

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowed_success_codesArray<Fixnum>

Defaults to [0]. A list of possible return values that the execution can return to indicate a success. Corresponds to the JSON property allowedSuccessCodes

Returns:

  • (Array<Fixnum>)


123
124
125
# File 'generated/google/apis/osconfig_v1/classes.rb', line 123

def allowed_success_codes
  @allowed_success_codes
end

#gcs_objectGoogle::Apis::OsconfigV1::GcsObject

Cloud Storage object representation. Corresponds to the JSON property gcsObject



128
129
130
# File 'generated/google/apis/osconfig_v1/classes.rb', line 128

def gcs_object
  @gcs_object
end

#interpreterString

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). Corresponds to the JSON property interpreter

Returns:

  • (String)


136
137
138
# File 'generated/google/apis/osconfig_v1/classes.rb', line 136

def interpreter
  @interpreter
end

#local_pathString

An absolute path to the executable on the VM. Corresponds to the JSON property localPath

Returns:

  • (String)


141
142
143
# File 'generated/google/apis/osconfig_v1/classes.rb', line 141

def local_path
  @local_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



148
149
150
151
152
153
# File 'generated/google/apis/osconfig_v1/classes.rb', line 148

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