Class: Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackage
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::EffectiveGuestPolicySourcedPackage
- 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
-
#package ⇒ Google::Apis::OsconfigV1beta::Package
Package is a reference to the software package to be installed or removed.
-
#source ⇒ String
Name of the guest policy providing this config.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EffectiveGuestPolicySourcedPackage
constructor
A new instance of EffectiveGuestPolicySourcedPackage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#package ⇒ Google::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 |
#source ⇒ String
Name of the guest policy providing this config.
Corresponds to the JSON property source
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 |