Class: Google::Apis::OsconfigV1beta::PackageRepository
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::PackageRepository
- 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 package repository.
Instance Attribute Summary collapse
-
#apt ⇒ Google::Apis::OsconfigV1beta::AptRepository
Represents a single Apt package repository.
-
#goo ⇒ Google::Apis::OsconfigV1beta::GooRepository
Represents a Goo package repository.
-
#yum ⇒ Google::Apis::OsconfigV1beta::YumRepository
Represents a single Yum package repository.
-
#zypper ⇒ Google::Apis::OsconfigV1beta::ZypperRepository
Represents a single Zypper package repository.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PackageRepository
constructor
A new instance of PackageRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PackageRepository
Returns a new instance of PackageRepository.
1360 1361 1362 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apt ⇒ Google::Apis::OsconfigV1beta::AptRepository
Represents a single Apt package repository. This repository is added to a repo
file that is stored at /etc/apt/sources.list.d/google_osconfig.list
.
Corresponds to the JSON property apt
1340 1341 1342 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1340 def apt @apt end |
#goo ⇒ Google::Apis::OsconfigV1beta::GooRepository
Represents a Goo package repository. These is added to a repo file that is
stored at C:/ProgramData/GooGet/repos/google_osconfig.repo.
Corresponds to the JSON property goo
1346 1347 1348 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1346 def goo @goo end |
#yum ⇒ Google::Apis::OsconfigV1beta::YumRepository
Represents a single Yum package repository. This repository is added to a repo
file that is stored at /etc/yum.repos.d/google_osconfig.repo
.
Corresponds to the JSON property yum
1352 1353 1354 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1352 def yum @yum end |
#zypper ⇒ Google::Apis::OsconfigV1beta::ZypperRepository
Represents a single Zypper package repository. This repository is added to a
repo file that is stored at /etc/zypp/repos.d/google_osconfig.repo
.
Corresponds to the JSON property zypper
1358 1359 1360 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1358 def zypper @zypper end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1365 1366 1367 1368 1369 1370 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1365 def update!(**args) @apt = args[:apt] if args.key?(:apt) @goo = args[:goo] if args.key?(:goo) @yum = args[:yum] if args.key?(:yum) @zypper = args[:zypper] if args.key?(:zypper) end |