# Anthos Multi-Cloud V1 API - Class Google::Cloud::GkeMultiCloud::V1::Toleration (v0.21.0)

0.21.0 (latest) 0.20.1 0.19.0 0.18.0 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Anthos Multi-Cloud V1 API class Google::Cloud::GkeMultiCloud::V1::Toleration.

Toleration defines the fields for tolerations for pods created by
auto-installed components.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #effect

    def effect() -> ::Google::Cloud::GkeMultiCloud::V1::Toleration::Effect

**Returns**

- ([::Google::Cloud::GkeMultiCloud::V1::Toleration::Effect](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-Toleration-Effect)) --- Effect indicates the taint effect to match e.g. 'NoSchedule'

### #effect=

    def effect=(value) -> ::Google::Cloud::GkeMultiCloud::V1::Toleration::Effect

**Parameter**

- **value** ([::Google::Cloud::GkeMultiCloud::V1::Toleration::Effect](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-Toleration-Effect)) --- Effect indicates the taint effect to match e.g. 'NoSchedule'
**Returns**

- ([::Google::Cloud::GkeMultiCloud::V1::Toleration::Effect](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-Toleration-Effect)) --- Effect indicates the taint effect to match e.g. 'NoSchedule'

### #key

    def key() -> ::String

**Returns**

- (::String) --- Key is the taint key that the toleration applies to.

### #key=

    def key=(value) -> ::String

**Parameter**

- **value** (::String) --- Key is the taint key that the toleration applies to.
**Returns**

- (::String) --- Key is the taint key that the toleration applies to.

### #key_operator

    def key_operator() -> ::Google::Cloud::GkeMultiCloud::V1::Toleration::KeyOperator

**Returns**

- ([::Google::Cloud::GkeMultiCloud::V1::Toleration::KeyOperator](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-Toleration-KeyOperator)) --- KeyOperator represents a key's relationship to the value e.g. 'Exist'.

### #key_operator=

    def key_operator=(value) -> ::Google::Cloud::GkeMultiCloud::V1::Toleration::KeyOperator

**Parameter**

- **value** ([::Google::Cloud::GkeMultiCloud::V1::Toleration::KeyOperator](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-Toleration-KeyOperator)) --- KeyOperator represents a key's relationship to the value e.g. 'Exist'.
**Returns**

- ([::Google::Cloud::GkeMultiCloud::V1::Toleration::KeyOperator](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest/Google-Cloud-GkeMultiCloud-V1-Toleration-KeyOperator)) --- KeyOperator represents a key's relationship to the value e.g. 'Exist'.

### #value

    def value() -> ::String

**Returns**

- (::String) --- Value is the taint value that the toleration applies to.

### #value=

    def value=(value) -> ::String

**Parameter**

- **value** (::String) --- Value is the taint value that the toleration applies to.
**Returns**

- (::String) --- Value is the taint value that the toleration applies to.