Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource.
Note: The following fields are mutually exclusive: apt, yum, zypper, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: apt, yum, zypper, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: apt, yum, zypper, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: goo, apt, yum, zypper. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: goo, apt, yum, zypper. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: goo, apt, yum, zypper. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: yum, apt, zypper, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: yum, apt, zypper, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: yum, apt, zypper, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: zypper, apt, yum, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: zypper, apt, yum, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: zypper, apt, yum, goo. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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 (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)\n- [0.11.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.11.1/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.10.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.9.1/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.8.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.8.2/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.7.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.7.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.6.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.6.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.5.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.5.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.4.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.4.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.3.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.3.0/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource)\n- [0.2.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.2.2/Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource) \nReference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource.\n\nA resource that manages a package repository. \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### #apt\n\n def apt() -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::AptRepository\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::AptRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-AptRepository)) --- An Apt Repository.\n\n\n Note: The following fields are mutually exclusive: `apt`, `yum`, `zypper`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #apt=\n\n def apt=(value) -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::AptRepository\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::AptRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-AptRepository)) --- An Apt Repository.\n\n\nNote: The following fields are mutually exclusive: `apt`, `yum`, `zypper`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::AptRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-AptRepository)) --- An Apt Repository.\n\n\n Note: The following fields are mutually exclusive: `apt`, `yum`, `zypper`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #goo\n\n def goo() -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::GooRepository\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::GooRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-GooRepository)) --- A Goo Repository.\n\n\n Note: The following fields are mutually exclusive: `goo`, `apt`, `yum`, `zypper`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #goo=\n\n def goo=(value) -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::GooRepository\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::GooRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-GooRepository)) --- A Goo Repository.\n\n\nNote: The following fields are mutually exclusive: `goo`, `apt`, `yum`, `zypper`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::GooRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-GooRepository)) --- A Goo Repository.\n\n\n Note: The following fields are mutually exclusive: `goo`, `apt`, `yum`, `zypper`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #yum\n\n def yum() -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::YumRepository\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::YumRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)) --- A Yum Repository.\n\n\n Note: The following fields are mutually exclusive: `yum`, `apt`, `zypper`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #yum=\n\n def yum=(value) -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::YumRepository\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::YumRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)) --- A Yum Repository.\n\n\nNote: The following fields are mutually exclusive: `yum`, `apt`, `zypper`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::YumRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-YumRepository)) --- A Yum Repository.\n\n\n Note: The following fields are mutually exclusive: `yum`, `apt`, `zypper`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #zypper\n\n def zypper() -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::ZypperRepository\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::ZypperRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-ZypperRepository)) --- A Zypper Repository.\n\n\n Note: The following fields are mutually exclusive: `zypper`, `apt`, `yum`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #zypper=\n\n def zypper=(value) -\u003e ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::ZypperRepository\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::ZypperRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-ZypperRepository)) --- A Zypper Repository.\n\n\nNote: The following fields are mutually exclusive: `zypper`, `apt`, `yum`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::RepositoryResource::ZypperRepository](./Google-Cloud-OsConfig-V1alpha-OSPolicy-Resource-RepositoryResource-ZypperRepository)) --- A Zypper Repository.\n\n\n Note: The following fields are mutually exclusive: `zypper`, `apt`, `yum`, `goo`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]