class Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackage

A guest policy package including its source.

Attributes

package[RW]

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` @return [Google::Apis::OsconfigV1beta::Package]

source[RW]

Name of the guest policy providing this config. Corresponds to the JSON property `source` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 287
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 292
def update!(**args)
  @package = args[:package] if args.key?(:package)
  @source = args[:source] if args.key?(:source)
end