Class: Google::Apis::OsconfigV1beta::AptRepository
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::AptRepository
- 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 Apt package repository. This repository is added to a repo
file that is stored at /etc/apt/sources.list.d/google_osconfig.list
.
Instance Attribute Summary collapse
-
#archive_type ⇒ String
Type of archive files in this repository.
-
#components ⇒ Array<String>
Required.
-
#distribution ⇒ String
Required.
-
#gpg_key ⇒ String
URI of the key file for this repository.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AptRepository
constructor
A new instance of AptRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AptRepository
Returns a new instance of AptRepository.
58 59 60 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 58 def initialize(**args) update!(**args) end |
Instance Attribute Details
#archive_type ⇒ String
Type of archive files in this repository. The default behavior is DEB.
Corresponds to the JSON property archiveType
33 34 35 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 33 def archive_type @archive_type end |
#components ⇒ Array<String>
Required. List of components for this repository. Must contain at least one
item.
Corresponds to the JSON property components
39 40 41 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 39 def components @components end |
#distribution ⇒ String
Required. Distribution of this repository.
Corresponds to the JSON property distribution
44 45 46 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 44 def distribution @distribution end |
#gpg_key ⇒ String
URI of the key file for this repository. The agent maintains a keyring at /
etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg
containing all the keys in
any applied guest policy.
Corresponds to the JSON property gpgKey
51 52 53 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 51 def gpg_key @gpg_key end |
#uri ⇒ String
Required. URI for this repository.
Corresponds to the JSON property uri
56 57 58 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 56 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
63 64 65 66 67 68 69 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 63 def update!(**args) @archive_type = args[:archive_type] if args.key?(:archive_type) @components = args[:components] if args.key?(:components) @distribution = args[:distribution] if args.key?(:distribution) @gpg_key = args[:gpg_key] if args.key?(:gpg_key) @uri = args[:uri] if args.key?(:uri) end |