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

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

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.



104
105
106
# File 'generated/google/apis/osconfig_v1/classes.rb', line 104

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



97
98
99
# File 'generated/google/apis/osconfig_v1/classes.rb', line 97

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



102
103
104
# File 'generated/google/apis/osconfig_v1/classes.rb', line 102

def windows_exec_step_config
  @windows_exec_step_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



109
110
111
112
# File 'generated/google/apis/osconfig_v1/classes.rb', line 109

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