class Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResource

A resource that manages a package repository.

Attributes

apt[RW]

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` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceAptRepository]

goo[RW]

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` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceGooRepository]

yum[RW]

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` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceYumRepository]

zypper[RW]

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` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceZypperRepository]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 2062
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1alpha/classes.rb, line 2067
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