# Class RepositoryResource (1.25.0)

1.25.0 (latest) 1.24.0 1.23.0 1.22.0 1.21.0 1.20.2 1.19.0 1.18.1 1.17.5 1.16.0 1.15.3 1.14.1 1.13.0 1.12.4 1.11.2 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.2 1.4.0 1.3.2 1.2.0 1.1.0 1.0.0 0.1.2

    RepositoryResource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A resource that manages a package repository.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `apt` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.RepositoryResource.AptRepository` An Apt Repository. This field is a member of `oneof`_ `repository`. |
| `yum` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.RepositoryResource.YumRepository` A Yum Repository. This field is a member of `oneof`_ `repository`. |
| `zypper` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.RepositoryResource.ZypperRepository` A Zypper Repository. This field is a member of `oneof`_ `repository`. |
| `goo` | `https://docs.cloud.google.com/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.RepositoryResource.GooRepository` A Goo Repository. This field is a member of `oneof`_ `repository`. |

## Classes

### AptRepository

    AptRepository(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

### GooRepository

    GooRepository(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a Goo package repository. These are added to a repo file
that is managed at
`C:/ProgramData/GooGet/repos/google_osconfig.repo`.

### YumRepository

    YumRepository(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

### ZypperRepository

    ZypperRepository(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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