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.



941
942
943
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 941

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



921
922
923
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 921

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



927
928
929
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 927

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



933
934
935
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 933

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



939
940
941
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 939

def zypper
  @zypper
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



946
947
948
949
950
951
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 946

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