Class: Google::Apis::OsconfigV1beta::YumRepository
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::YumRepository
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
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
.
Instance Attribute Summary collapse
-
#base_url ⇒ String
Required.
-
#display_name ⇒ String
The display name of the repository.
-
#gpg_keys ⇒ Array<String>
URIs of GPG keys.
-
#id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ YumRepository
constructor
A new instance of YumRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ YumRepository
Returns a new instance of YumRepository.
2200 2201 2202 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_url ⇒ String
Required. The location of the repository directory.
Corresponds to the JSON property baseUrl
2180 2181 2182 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2180 def base_url @base_url end |
#display_name ⇒ String
The display name of the repository.
Corresponds to the JSON property displayName
2185 2186 2187 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2185 def display_name @display_name end |
#gpg_keys ⇒ Array<String>
URIs of GPG keys.
Corresponds to the JSON property gpgKeys
2190 2191 2192 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2190 def gpg_keys @gpg_keys end |
#id ⇒ String
Required. A one word, unique name for this repository. This is
the repo id
in the Yum config file and also the display_name
if
display_name
is omitted. This id is also used as the unique identifier
when checking for guest policy conflicts.
Corresponds to the JSON property id
2198 2199 2200 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2198 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2205 2206 2207 2208 2209 2210 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2205 def update!(**args) @base_url = args[:base_url] if args.key?(:base_url) @display_name = args[:display_name] if args.key?(:display_name) @gpg_keys = args[:gpg_keys] if args.key?(:gpg_keys) @id = args[:id] if args.key?(:id) end |