Class: Google::Apis::OsconfigV1beta::SoftwareRecipeStep

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

Overview

An action that can be taken as part of installing or updating a recipe.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SoftwareRecipeStep

Returns a new instance of SoftwareRecipeStep.



2206
2207
2208
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2206

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

Instance Attribute Details

#archive_extractionGoogle::Apis::OsconfigV1beta::SoftwareRecipeStepExtractArchive

Extracts an archive of the type specified in the specified directory. Corresponds to the JSON property archiveExtraction



2174
2175
2176
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2174

def archive_extraction
  @archive_extraction
end

#dpkg_installationGoogle::Apis::OsconfigV1beta::SoftwareRecipeStepInstallDpkg

Installs a deb via dpkg. Corresponds to the JSON property dpkgInstallation



2179
2180
2181
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2179

def dpkg_installation
  @dpkg_installation
end

#file_copyGoogle::Apis::OsconfigV1beta::SoftwareRecipeStepCopyFile

Copies the artifact to the specified path on the instance. Corresponds to the JSON property fileCopy



2184
2185
2186
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2184

def file_copy
  @file_copy
end

#file_execGoogle::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile

Executes an artifact or local file. Corresponds to the JSON property fileExec



2189
2190
2191
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2189

def file_exec
  @file_exec
end

#msi_installationGoogle::Apis::OsconfigV1beta::SoftwareRecipeStepInstallMsi

Installs an MSI file. Corresponds to the JSON property msiInstallation



2194
2195
2196
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2194

def msi_installation
  @msi_installation
end

#rpm_installationGoogle::Apis::OsconfigV1beta::SoftwareRecipeStepInstallRpm

Installs an rpm file via the rpm utility. Corresponds to the JSON property rpmInstallation



2199
2200
2201
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2199

def rpm_installation
  @rpm_installation
end

#script_runGoogle::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript

Runs a script through an interpreter. Corresponds to the JSON property scriptRun



2204
2205
2206
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2204

def script_run
  @script_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2211
2212
2213
2214
2215
2216
2217
2218
2219
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2211

def update!(**args)
  @archive_extraction = args[:archive_extraction] if args.key?(:archive_extraction)
  @dpkg_installation = args[:dpkg_installation] if args.key?(:dpkg_installation)
  @file_copy = args[:file_copy] if args.key?(:file_copy)
  @file_exec = args[:file_exec] if args.key?(:file_exec)
  @msi_installation = args[:msi_installation] if args.key?(:msi_installation)
  @rpm_installation = args[:rpm_installation] if args.key?(:rpm_installation)
  @script_run = args[:script_run] if args.key?(:script_run)
end