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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_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 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

#sourceString

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

Returns:

  • (String)


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