Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/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.



2297
2298
2299
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2297

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

Instance Attribute Details

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



2277
2278
2279
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2277

def apt
  @apt
end

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



2283
2284
2285
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2283

def goo
  @goo
end

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



2289
2290
2291
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2289

def yum
  @yum
end

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



2295
2296
2297
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2295

def zypper
  @zypper
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2302
2303
2304
2305
2306
2307
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2302

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