Class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackageRepository

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 package repository including its source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EffectiveGuestPolicySourcedPackageRepository

Returns a new instance of EffectiveGuestPolicySourcedPackageRepository.



312
313
314
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 312

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

Instance Attribute Details

#package_repositoryGoogle::Apis::OsconfigV1beta::PackageRepository

A package repository. Corresponds to the JSON property packageRepository



305
306
307
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 305

def package_repository
  @package_repository
end

#sourceString

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

Returns:

  • (String)


310
311
312
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 310

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



317
318
319
320
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 317

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