Class: Google::Apis::OsconfigV1::ExecStep

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

Overview

A step that runs an executable for a PatchJob.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecStep

Returns a new instance of ExecStep.



237
238
239
# File 'lib/google/apis/osconfig_v1/classes.rb', line 237

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

Instance Attribute Details

#linux_exec_step_configGoogle::Apis::OsconfigV1::ExecStepConfig

Common configurations for an ExecStep. Corresponds to the JSON property linuxExecStepConfig



230
231
232
# File 'lib/google/apis/osconfig_v1/classes.rb', line 230

def linux_exec_step_config
  @linux_exec_step_config
end

#windows_exec_step_configGoogle::Apis::OsconfigV1::ExecStepConfig

Common configurations for an ExecStep. Corresponds to the JSON property windowsExecStepConfig



235
236
237
# File 'lib/google/apis/osconfig_v1/classes.rb', line 235

def windows_exec_step_config
  @windows_exec_step_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



242
243
244
245
# File 'lib/google/apis/osconfig_v1/classes.rb', line 242

def update!(**args)
  @linux_exec_step_config = args[:linux_exec_step_config] if args.key?(:linux_exec_step_config)
  @windows_exec_step_config = args[:windows_exec_step_config] if args.key?(:windows_exec_step_config)
end