class Google::Apis::OsconfigV1beta::AptRepository

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`.

Attributes

archive_type[RW]

Type of archive files in this repository. The default behavior is DEB. Corresponds to the JSON property `archiveType` @return [String]

components[RW]

Required. List of components for this repository. Must contain at least one item. Corresponds to the JSON property `components` @return [Array<String>]

distribution[RW]

Required. Distribution of this repository. Corresponds to the JSON property `distribution` @return [String]

gpg_key[RW]

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` @return [String]

uri[RW]

Required. URI for this repository. Corresponds to the JSON property `uri` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 58
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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