# Backup for GKE V1 API - Class Google::Cloud::GkeBackup::V1::ResourceSelector (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::ResourceSelector.

Defines a selector to identify a single or a group of resources.
Conditions in the selector are optional, but at least one field
should be set to a non-empty value. If a condition is not specified,
no restrictions will be applied on that dimension.
If more than one condition is specified, a resource will be selected
if and only if all conditions are met.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #group_kind

    def group_kind() -> ::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind

**Returns**

- ([::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig-GroupKind)) --- Optional. Selects resources using their Kubernetes GroupKinds. If specified, only resources of provided GroupKind will be selected.

### #group_kind=

    def group_kind=(value) -> ::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind

**Parameter**

- **value** ([::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig-GroupKind)) --- Optional. Selects resources using their Kubernetes GroupKinds. If specified, only resources of provided GroupKind will be selected.
**Returns**

- ([::Google::Cloud::GkeBackup::V1::RestoreConfig::GroupKind](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_backup-v1/latest/Google-Cloud-GkeBackup-V1-RestoreConfig-GroupKind)) --- Optional. Selects resources using their Kubernetes GroupKinds. If specified, only resources of provided GroupKind will be selected.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Selects resources using Kubernetes [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). If specified, a resource will be selected if and only if the resource has all of the provided labels and all the label values match.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Selects resources using Kubernetes [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). If specified, a resource will be selected if and only if the resource has all of the provided labels and all the label values match.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Selects resources using Kubernetes [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). If specified, a resource will be selected if and only if the resource has all of the provided labels and all the label values match.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Optional. Selects resources using their resource names. If specified, only resources with the provided name will be selected.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Selects resources using their resource names. If specified, only resources with the provided name will be selected.
**Returns**

- (::String) --- Optional. Selects resources using their resource names. If specified, only resources with the provided name will be selected.

### #namespace

    def namespace() -> ::String

**Returns**

- (::String) --- Optional. Selects resources using their namespaces. This only applies to namespace scoped resources and cannot be used for selecting cluster scoped resources. If specified, only resources in the provided namespace will be selected. If not specified, the filter will apply to both cluster scoped and namespace scoped resources (e.g. name or label). The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource itself will be restored if and only if any resources within the namespace are restored.

### #namespace=

    def namespace=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Selects resources using their namespaces. This only applies to namespace scoped resources and cannot be used for selecting cluster scoped resources. If specified, only resources in the provided namespace will be selected. If not specified, the filter will apply to both cluster scoped and namespace scoped resources (e.g. name or label). The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource itself will be restored if and only if any resources within the namespace are restored.
**Returns**

- (::String) --- Optional. Selects resources using their namespaces. This only applies to namespace scoped resources and cannot be used for selecting cluster scoped resources. If specified, only resources in the provided namespace will be selected. If not specified, the filter will apply to both cluster scoped and namespace scoped resources (e.g. name or label). The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource itself will be restored if and only if any resources within the namespace are restored.