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.
Constructor Details
#initialize(**args) ⇒ EffectiveGuestPolicySourcedPackage
Returns a new instance of EffectiveGuestPolicySourcedPackage.
287 288 289 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 287 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
280 281 282 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 280 def package @package end |
#source ⇒ String
Name of the guest policy providing this config.
Corresponds to the JSON property source
285 286 287 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 285 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
292 293 294 295 |
# File 'generated/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 |