Class: Google::Apis::OsconfigV1beta::SoftwareRecipeStep
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::SoftwareRecipeStep
- 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
An action that can be taken as part of installing or updating a recipe.
Instance Attribute Summary collapse
-
#archive_extraction ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepExtractArchive
Extracts an archive of the type specified in the specified directory.
-
#dpkg_installation ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallDpkg
Installs a deb via dpkg.
-
#file_copy ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepCopyFile
Copies the artifact to the specified path on the instance.
-
#file_exec ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile
Executes an artifact or local file.
-
#msi_installation ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallMsi
Installs an MSI file.
-
#rpm_installation ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallRpm
Installs an rpm file via the rpm utility.
-
#script_run ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript
Runs a script through an interpreter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareRecipeStep
constructor
A new instance of SoftwareRecipeStep.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SoftwareRecipeStep
Returns a new instance of SoftwareRecipeStep.
1917 1918 1919 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#archive_extraction ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepExtractArchive
Extracts an archive of the type specified in the specified directory.
Corresponds to the JSON property archiveExtraction
1885 1886 1887 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1885 def archive_extraction @archive_extraction end |
#dpkg_installation ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallDpkg
Installs a deb via dpkg.
Corresponds to the JSON property dpkgInstallation
1890 1891 1892 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1890 def dpkg_installation @dpkg_installation end |
#file_copy ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepCopyFile
Copies the artifact to the specified path on the instance.
Corresponds to the JSON property fileCopy
1895 1896 1897 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1895 def file_copy @file_copy end |
#file_exec ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile
Executes an artifact or local file.
Corresponds to the JSON property fileExec
1900 1901 1902 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1900 def file_exec @file_exec end |
#msi_installation ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallMsi
Installs an MSI file.
Corresponds to the JSON property msiInstallation
1905 1906 1907 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1905 def msi_installation @msi_installation end |
#rpm_installation ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallRpm
Installs an rpm file via the rpm utility.
Corresponds to the JSON property rpmInstallation
1910 1911 1912 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1910 def rpm_installation @rpm_installation end |
#script_run ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript
Runs a script through an interpreter.
Corresponds to the JSON property scriptRun
1915 1916 1917 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1915 def script_run @script_run end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1922 1923 1924 1925 1926 1927 1928 1929 1930 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1922 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 |