Class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedSoftwareRecipe

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

A guest policy recipe including its source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EffectiveGuestPolicySourcedSoftwareRecipe

Returns a new instance of EffectiveGuestPolicySourcedSoftwareRecipe.



348
349
350
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 348

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

Instance Attribute Details

#software_recipeGoogle::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 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



341
342
343
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 341

def software_recipe
  @software_recipe
end

#sourceString

Name of the guest policy providing this config. Corresponds to the JSON property source

Returns:

  • (String)


346
347
348
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 346

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



353
354
355
356
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 353

def update!(**args)
  @software_recipe = args[:software_recipe] if args.key?(:software_recipe)
  @source = args[:source] if args.key?(:source)
end