Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceYumRepository
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceYumRepository
- 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
Represents a single yum package repository. These are added to a repo file
that is managed 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) ⇒ OsPolicyResourceRepositoryResourceYumRepository
constructor
A new instance of OsPolicyResourceRepositoryResourceYumRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceYumRepository
Returns a new instance of OsPolicyResourceRepositoryResourceYumRepository.
2452 2453 2454 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2452 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
2432 2433 2434 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2432 def base_url @base_url end |
#display_name ⇒ String
The display name of the repository.
Corresponds to the JSON property displayName
2437 2438 2439 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2437 def display_name @display_name end |
#gpg_keys ⇒ Array<String>
URIs of GPG keys.
Corresponds to the JSON property gpgKeys
2442 2443 2444 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2442 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
resource conflicts.
Corresponds to the JSON property id
2450 2451 2452 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2450 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2457 2458 2459 2460 2461 2462 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2457 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 |