Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResource
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResource
- 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
-
#apt ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceAptRepository
Represents a single apt package repository.
-
#goo ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceGooRepository
Represents a Goo package repository.
-
#yum ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceYumRepository
Represents a single yum package repository.
-
#zypper ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceZypperRepository
Represents a single zypper package repository.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyResourceRepositoryResource
constructor
A new instance of OsPolicyResourceRepositoryResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceRepositoryResource
Returns a new instance of OsPolicyResourceRepositoryResource.
1877 1878 1879 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1877 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apt ⇒ Google::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
1857 1858 1859 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1857 def apt @apt end |
#goo ⇒ Google::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
1863 1864 1865 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1863 def goo @goo end |
#yum ⇒ Google::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
1869 1870 1871 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1869 def yum @yum end |
#zypper ⇒ Google::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
1875 1876 1877 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1875 def zypper @zypper end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1882 1883 1884 1885 1886 1887 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1882 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 |