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

Constructor Details

#initialize(**args) ⇒ EffectiveGuestPolicy

Returns a new instance of EffectiveGuestPolicy.



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

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



240
241
242
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 240

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



245
246
247
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 245

def packages
  @packages
end

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

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



250
251
252
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 250

def software_recipes
  @software_recipes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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