Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::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
defbase_url()->::String
Returns
(::String) — Required. The location of the repository directory.
#base_url=
defbase_url=(value)->::String
Parameter
value (::String) — Required. The location of the repository directory.
Returns
(::String) — Required. The location of the repository directory.
#display_name
defdisplay_name()->::String
Returns
(::String) — The display name of the repository.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::String) — The display name of the repository.
Returns
(::String) — The display name of the repository.
#gpg_keys
defgpg_keys()->::Array<::String>
Returns
(::Array<::String>) — URIs of GPG keys.
#gpg_keys=
defgpg_keys=(value)->::Array<::String>
Parameter
value (::Array<::String>) — URIs of GPG keys.
Returns
(::Array<::String>) — URIs of GPG keys.
#id
defid()->::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=
defid=(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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::YumRepository (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.11.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.11.1/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.10.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.9.1/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.8.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.8.2/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.7.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.7.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.6.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.6.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.5.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.5.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.4.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.4.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.3.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.3.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)\n- [0.2.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.2.2/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository) \nReference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::YumRepository.\n\nRepresents a single yum package repository. These are added to a\nrepo file that is managed at\n`/etc/yum.repos.d/google_osconfig.repo`. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #base_url\n\n def base_url() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The location of the repository directory.\n\n### #base_url=\n\n def base_url=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The location of the repository directory. \n**Returns**\n\n- (::String) --- Required. The location of the repository directory.\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The display name of the repository.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The display name of the repository. \n**Returns**\n\n- (::String) --- The display name of the repository.\n\n### #gpg_keys\n\n def gpg_keys() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- URIs of GPG keys.\n\n### #gpg_keys=\n\n def gpg_keys=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- URIs of GPG keys. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- URIs of GPG keys.\n\n### #id\n\n def id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. A one word, unique name for this repository. This is the `repo\n 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.\n\n### #id=\n\n def id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. A one word, unique name for this repository. This is the `repo\nid` 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. \n**Returns**\n\n- (::String) --- Required. A one word, unique name for this repository. This is the `repo\n 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."]]