Class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicy

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

The effective guest policy that applies to a VM instance.

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) ⇒ EffectiveGuestPolicy

Returns a new instance of EffectiveGuestPolicy.



260
261
262
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 260

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

Instance Attribute Details

#package_repositoriesArray<Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackageRepository>

List of package repository configurations assigned to the VM instance. Corresponds to the JSON property packageRepositories



248
249
250
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 248

def package_repositories
  @package_repositories
end

#packagesArray<Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackage>

List of package configurations assigned to the VM instance. Corresponds to the JSON property packages



253
254
255
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 253

def packages
  @packages
end

#software_recipesArray<Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedSoftwareRecipe>

List of recipes assigned to the VM instance. Corresponds to the JSON property softwareRecipes



258
259
260
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 258

def software_recipes
  @software_recipes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



265
266
267
268
269
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 265

def update!(**args)
  @package_repositories = args[:package_repositories] if args.key?(:package_repositories)
  @packages = args[:packages] if args.key?(:packages)
  @software_recipes = args[:software_recipes] if args.key?(:software_recipes)
end