Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource::AptRepository (v1.0.0)

Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource::AptRepository.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#archive_type

def archive_type() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource::AptRepository::ArchiveType
Returns

#archive_type=

def archive_type=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource::AptRepository::ArchiveType
Parameter
Returns

#components

def components() -> ::Array<::String>
Returns
  • (::Array<::String>) — Required. List of components for this repository. Must contain at least one item.

#components=

def components=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Required. List of components for this repository. Must contain at least one item.
Returns
  • (::Array<::String>) — Required. List of components for this repository. Must contain at least one item.

#distribution

def distribution() -> ::String
Returns
  • (::String) — Required. Distribution of this repository.

#distribution=

def distribution=(value) -> ::String
Parameter
  • value (::String) — Required. Distribution of this repository.
Returns
  • (::String) — Required. Distribution of this repository.

#gpg_key

def gpg_key() -> ::String
Returns
  • (::String) — URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.

#gpg_key=

def gpg_key=(value) -> ::String
Parameter
  • value (::String) — URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
Returns
  • (::String) — URI of the key file for this repository. The agent maintains a keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.

#uri

def uri() -> ::String
Returns
  • (::String) — Required. URI for this repository.

#uri=

def uri=(value) -> ::String
Parameter
  • value (::String) — Required. URI for this repository.
Returns
  • (::String) — Required. URI for this repository.