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.



196
197
198
# File 'lib/google/apis/osconfig_v1/classes.rb', line 196

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



189
190
191
# File 'lib/google/apis/osconfig_v1/classes.rb', line 189

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



194
195
196
# File 'lib/google/apis/osconfig_v1/classes.rb', line 194

def windows_exec_step_config
  @windows_exec_step_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



201
202
203
204
# File 'lib/google/apis/osconfig_v1/classes.rb', line 201

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