Class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackage

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

Returns a new instance of EffectiveGuestPolicySourcedPackage.



302
303
304
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 302

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

Instance Attribute Details

#packageGoogle::Apis::OsconfigV1beta::Package

Package is a reference to the software package to be installed or removed. The agent on the VM instance uses the system package manager to apply the config. These are the commands that the agent uses to install or remove packages. Apt install: apt-get update && apt-get -y install package1 package2 package3 remove: apt-get -y remove package1 package2 package3 Yum install: yum -y install package1 package2 package3 remove: yum -y remove package1 package2 package3 Zypper install: zypper install package1 package2 package3 remove: zypper rm package1 package2 Googet install: googet -noconfirm install package1 package2 package3 remove: googet -noconfirm remove package1 package2 package3 Corresponds to the JSON property package



295
296
297
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 295

def package
  @package
end

#sourceString

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

Returns:

  • (String)


300
301
302
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 300

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



307
308
309
310
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 307

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