[[["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,["# AI Platform Notebooks V1beta1 API - Class Google::Cloud::Notebooks::V1beta1::ReservationAffinity (v0.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.13.0 (latest)](/ruby/docs/reference/google-cloud-notebooks-v1beta1/latest/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.12.1](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.12.1/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.11.0](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.11.0/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.10.1](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.10.1/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.9.2](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.9.2/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.8.0](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.8.0/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.7.1](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.7.1/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.6.1](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.6.1/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.5.0](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.5.0/Google-Cloud-Notebooks-V1beta1-ReservationAffinity)\n- [0.4.5](/ruby/docs/reference/google-cloud-notebooks-v1beta1/0.4.5/Google-Cloud-Notebooks-V1beta1-ReservationAffinity) \nReference documentation and code samples for the AI Platform Notebooks V1beta1 API class Google::Cloud::Notebooks::V1beta1::ReservationAffinity.\n\nReservation Affinity for consuming Zonal reservation. \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### #consume_reservation_type\n\n def consume_reservation_type() -\u003e ::Google::Cloud::Notebooks::V1beta1::ReservationAffinity::Type\n\n**Returns**\n\n- ([::Google::Cloud::Notebooks::V1beta1::ReservationAffinity::Type](./Google-Cloud-Notebooks-V1beta1-ReservationAffinity-Type)) --- Optional. Type of reservation to consume\n\n### #consume_reservation_type=\n\n def consume_reservation_type=(value) -\u003e ::Google::Cloud::Notebooks::V1beta1::ReservationAffinity::Type\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Notebooks::V1beta1::ReservationAffinity::Type](./Google-Cloud-Notebooks-V1beta1-ReservationAffinity-Type)) --- Optional. Type of reservation to consume \n**Returns**\n\n- ([::Google::Cloud::Notebooks::V1beta1::ReservationAffinity::Type](./Google-Cloud-Notebooks-V1beta1-ReservationAffinity-Type)) --- Optional. Type of reservation to consume\n\n### #key\n\n def key() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Corresponds to the label key of reservation resource.\n\n### #key=\n\n def key=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Corresponds to the label key of reservation resource. \n**Returns**\n\n- (::String) --- Optional. Corresponds to the label key of reservation resource.\n\n### #values\n\n def values() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. Corresponds to the label values of reservation resource.\n\n### #values=\n\n def values=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Optional. Corresponds to the label values of reservation resource. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. Corresponds to the label values of reservation resource."]]