# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource::YumRepository (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::OSPolicy::Resource::RepositoryResource::YumRepository.

Represents a single yum package repository. These are added to a
repo file that is managed at
`/etc/yum.repos.d/google_osconfig.repo`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #base_url

    def base_url() -> ::String

**Returns**

- (::String) --- Required. The location of the repository directory.

### #base_url=

    def base_url=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The location of the repository directory.
**Returns**

- (::String) --- Required. The location of the repository directory.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The display name of the repository.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The display name of the repository.
**Returns**

- (::String) --- The display name of the repository.

### #gpg_keys

    def gpg_keys() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- URIs of GPG keys.

### #gpg_keys=

    def gpg_keys=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- URIs of GPG keys.
**Returns**

- (::Array\<::String\>) --- URIs of GPG keys.

### #id

    def id() -> ::String

**Returns**

- (::String) --- Required. A one word, unique name for this repository. This is the `repo id` in the yum config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for resource conflicts.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. A one word, unique name for this repository. This is the `repo id` in the yum config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for resource conflicts.
**Returns**

- (::String) --- Required. A one word, unique name for this repository. This is the `repo id` in the yum config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for resource conflicts.