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.



987
988
989
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 987

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



967
968
969
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 967

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



973
974
975
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 973

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



979
980
981
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 979

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



985
986
987
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 985

def zypper
  @zypper
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



992
993
994
995
996
997
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 992

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