Class: Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResource
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
A resource that manages a package repository.
Instance Attribute Summary collapse
-
#apt ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceAptRepository
Represents a single apt package repository.
-
#goo ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceGooRepository
Represents a Goo package repository.
-
#yum ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceYumRepository
Represents a single yum package repository.
-
#zypper ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceZypperRepository
Represents a single zypper package repository.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyResourceRepositoryResource
constructor
A new instance of OsPolicyResourceRepositoryResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceRepositoryResource
Returns a new instance of OsPolicyResourceRepositoryResource.
2446 2447 2448 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2446 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apt ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceAptRepository
Represents a single apt package repository. These will be added to a repo file
that will be managed at /etc/apt/sources.list.d/google_osconfig.list
.
Corresponds to the JSON property apt
2426 2427 2428 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2426 def apt @apt end |
#goo ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceGooRepository
Represents a Goo package repository. These are added to a repo file that is
managed at C:/ProgramData/GooGet/repos/google_osconfig.repo
.
Corresponds to the JSON property goo
2432 2433 2434 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2432 def goo @goo end |
#yum ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceYumRepository
Represents a single yum package repository. These are added to a repo file
that is managed at /etc/yum.repos.d/google_osconfig.repo
.
Corresponds to the JSON property yum
2438 2439 2440 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2438 def yum @yum end |
#zypper ⇒ Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceZypperRepository
Represents a single zypper package repository. These are added to a repo file
that is managed at /etc/zypp/repos.d/google_osconfig.repo
.
Corresponds to the JSON property zypper
2444 2445 2446 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2444 def zypper @zypper end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2451 2452 2453 2454 2455 2456 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2451 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 |