Class: Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceZypperRepository
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceZypperRepository
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
Represents a single zypper package repository. These are added to a repo file
that is managed at /etc/zypp/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) ⇒ OsPolicyResourceRepositoryResourceZypperRepository
constructor
A new instance of OsPolicyResourceRepositoryResourceZypperRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceZypperRepository
Returns a new instance of OsPolicyResourceRepositoryResourceZypperRepository.
2600 2601 2602 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2600 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
2580 2581 2582 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2580 def base_url @base_url end |
#display_name ⇒ String
The display name of the repository.
Corresponds to the JSON property displayName
2585 2586 2587 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2585 def display_name @display_name end |
#gpg_keys ⇒ Array<String>
URIs of GPG keys.
Corresponds to the JSON property gpgKeys
2590 2591 2592 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2590 def gpg_keys @gpg_keys end |
#id ⇒ String
Required. A one word, unique name for this repository. This is the repo id
in the zypper config file and also the display_name
if display_name
is
omitted. This id is also used as the unique identifier when checking for
GuestPolicy conflicts.
Corresponds to the JSON property id
2598 2599 2600 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2598 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2605 2606 2607 2608 2609 2610 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2605 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 |