Class: Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyResourceRepositoryResource

Returns a new instance of OsPolicyResourceRepositoryResource.



2383
2384
2385
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2383

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aptGoogle::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



2363
2364
2365
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2363

def apt
  @apt
end

#gooGoogle::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



2369
2370
2371
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2369

def goo
  @goo
end

#yumGoogle::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



2375
2376
2377
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2375

def yum
  @yum
end

#zypperGoogle::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



2381
2382
2383
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2381

def zypper
  @zypper
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2388
2389
2390
2391
2392
2393
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2388

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