Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceAptRepository
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceAptRepository
- 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 apt package repository. These will be added to a repo file
that will be managed at /etc/apt/sources.list.d/google_osconfig.list.
Instance Attribute Summary collapse
-
#archive_type ⇒ String
Required.
-
#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) ⇒ OsPolicyResourceRepositoryResourceAptRepository
constructor
A new instance of OsPolicyResourceRepositoryResourceAptRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceAptRepository
Returns a new instance of OsPolicyResourceRepositoryResourceAptRepository.
1922 1923 1924 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1922 def initialize(**args) update!(**args) end |
Instance Attribute Details
#archive_type ⇒ String
Required. Type of archive files in this repository.
Corresponds to the JSON property archiveType
1898 1899 1900 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1898 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
1904 1905 1906 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1904 def components @components end |
#distribution ⇒ String
Required. Distribution of this repository.
Corresponds to the JSON property distribution
1909 1910 1911 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1909 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.
Corresponds to the JSON property gpgKey
1915 1916 1917 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1915 def gpg_key @gpg_key end |
#uri ⇒ String
Required. URI for this repository.
Corresponds to the JSON property uri
1920 1921 1922 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1920 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1927 1928 1929 1930 1931 1932 1933 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1927 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 |