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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PackageRepository
Returns a new instance of PackageRepository.
954 955 956 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 954 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
934 935 936 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 934 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
940 941 942 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 940 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
946 947 948 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 946 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
952 953 954 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 952 def zypper @zypper end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
959 960 961 962 963 964 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 959 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 |