# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::Restore::Filter (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Backup for GKE V1 API class Google::Cloud::GkeBackup::V1::Restore::Filter.

Defines the filter for `Restore`. This filter can be used to further
refine the resource selection of the `Restore` beyond the coarse-grained
scope defined in the `RestorePlan`. `exclusion_filters` take precedence
over `inclusion_filters`. If a resource matches both `inclusion_filters`
and `exclusion_filters`, it will not be restored.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #exclusion_filters

    def exclusion_filters() -> ::Array<::Google::Cloud::GkeBackup::V1::ResourceSelector>

**Returns**

- (::Array\<[::Google::Cloud::GkeBackup::V1::ResourceSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ResourceSelector)\>) --- Optional. Excludes resources from restoration. If specified, a resource will not be restored if it matches any `ResourceSelector` of the `exclusion_filters`.

### #exclusion_filters=

    def exclusion_filters=(value) -> ::Array<::Google::Cloud::GkeBackup::V1::ResourceSelector>

**Parameter**

- **value** (::Array\<[::Google::Cloud::GkeBackup::V1::ResourceSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ResourceSelector)\>) --- Optional. Excludes resources from restoration. If specified, a resource will not be restored if it matches any `ResourceSelector` of the `exclusion_filters`.
**Returns**

- (::Array\<[::Google::Cloud::GkeBackup::V1::ResourceSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ResourceSelector)\>) --- Optional. Excludes resources from restoration. If specified, a resource will not be restored if it matches any `ResourceSelector` of the `exclusion_filters`.

### #inclusion_filters

    def inclusion_filters() -> ::Array<::Google::Cloud::GkeBackup::V1::ResourceSelector>

**Returns**

- (::Array\<[::Google::Cloud::GkeBackup::V1::ResourceSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ResourceSelector)\>) --- Optional. Selects resources for restoration. If specified, only resources which match `inclusion_filters` will be selected for restoration. A resource will be selected if it matches any `ResourceSelector` of the `inclusion_filters`.

### #inclusion_filters=

    def inclusion_filters=(value) -> ::Array<::Google::Cloud::GkeBackup::V1::ResourceSelector>

**Parameter**

- **value** (::Array\<[::Google::Cloud::GkeBackup::V1::ResourceSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ResourceSelector)\>) --- Optional. Selects resources for restoration. If specified, only resources which match `inclusion_filters` will be selected for restoration. A resource will be selected if it matches any `ResourceSelector` of the `inclusion_filters`.
**Returns**

- (::Array\<[::Google::Cloud::GkeBackup::V1::ResourceSelector](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-ResourceSelector)\>) --- Optional. Selects resources for restoration. If specified, only resources which match `inclusion_filters` will be selected for restoration. A resource will be selected if it matches any `ResourceSelector` of the `inclusion_filters`.