Class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedSoftwareRecipe
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedSoftwareRecipe
- 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
A guest policy recipe including its source.
Instance Attribute Summary collapse
-
#software_recipe ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipe
A software recipe is a set of instructions for installing and configuring a piece of software.
-
#source ⇒ String
Name of the guest policy providing this config.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EffectiveGuestPolicySourcedSoftwareRecipe
constructor
A new instance of EffectiveGuestPolicySourcedSoftwareRecipe.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EffectiveGuestPolicySourcedSoftwareRecipe
Returns a new instance of EffectiveGuestPolicySourcedSoftwareRecipe.
368 369 370 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 368 def initialize(**args) update!(**args) end |
Instance Attribute Details
#software_recipe ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipe
A software recipe is a set of instructions for installing and configuring a
piece of software. It consists of a set of artifacts that are
downloaded, and a set of steps that install, configure, and/or update the
software.
Recipes support installing and updating software from artifacts in the
following formats:
Zip archive, Tar archive, Windows MSI, Debian package, and RPM package.
Additionally, recipes support executing a script (either defined in a file or
directly in this api) in bash, sh, cmd, and powershell.
Updating a software recipe
If a recipe is assigned to an instance and there is a recipe with the same
name but a lower version already installed and the assigned state
of the recipe is INSTALLED_KEEP_UPDATED
, then the recipe is updated to
the new version.
Script Working Directories
Each script or execution step is run in its own temporary directory which
is deleted after completing the step.
Corresponds to the JSON property softwareRecipe
361 362 363 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 361 def software_recipe @software_recipe end |
#source ⇒ String
Name of the guest policy providing this config.
Corresponds to the JSON property source
366 367 368 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 366 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
373 374 375 376 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 373 def update!(**args) @software_recipe = args[:software_recipe] if args.key?(:software_recipe) @source = args[:source] if args.key?(:source) end |