Class: Google::Apis::OsconfigV1beta::PackageRepository

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb

Overview

A package repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PackageRepository

Returns a new instance of PackageRepository.



1032
1033
1034
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1032

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

Instance Attribute Details

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



1012
1013
1014
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1012

def apt
  @apt
end

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



1018
1019
1020
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1018

def goo
  @goo
end

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



1024
1025
1026
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1024

def yum
  @yum
end

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



1030
1031
1032
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1030

def zypper
  @zypper
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1037
1038
1039
1040
1041
1042
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1037

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