Class: Google::Apis::OsconfigV1beta::ExecStep

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/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.



389
390
391
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 389

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

Instance Attribute Details

#linux_exec_step_configGoogle::Apis::OsconfigV1beta::ExecStepConfig

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



382
383
384
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 382

def linux_exec_step_config
  @linux_exec_step_config
end

#windows_exec_step_configGoogle::Apis::OsconfigV1beta::ExecStepConfig

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



387
388
389
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 387

def windows_exec_step_config
  @windows_exec_step_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
397
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 394

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