Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstancePartitionRequest.
(::Google::Protobuf::FieldMask) — Required. A mask specifying which fields in
InstancePartition
should be updated. The field mask must always be specified; this prevents
any future fields in
InstancePartition
from being erased accidentally by clients that do not know about them.
value (::Google::Protobuf::FieldMask) — Required. A mask specifying which fields in
InstancePartition
should be updated. The field mask must always be specified; this prevents
any future fields in
InstancePartition
from being erased accidentally by clients that do not know about them.
Returns
(::Google::Protobuf::FieldMask) — Required. A mask specifying which fields in
InstancePartition
should be updated. The field mask must always be specified; this prevents
any future fields in
InstancePartition
from being erased accidentally by clients that do not know about them.
[[["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,["# Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstancePartitionRequest (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstancePartitionRequest.\n\nThe request for\n[UpdateInstancePartition](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstanceAdmin-Client#Google__Cloud__Spanner__Admin__Instance__V1__InstanceAdmin__Client_update_instance_partition_instance_ \"Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client#update_instance_partition (method)\"). \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### #field_mask\n\n def field_mask() -\u003e ::Google::Protobuf::FieldMask\n\n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- Required. A mask specifying which fields in [InstancePartition](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition \"Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition (class)\") should be updated. The field mask must always be specified; this prevents any future fields in [InstancePartition](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition \"Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition (class)\") from being erased accidentally by clients that do not know about them.\n\n### #field_mask=\n\n def field_mask=(value) -\u003e ::Google::Protobuf::FieldMask\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- Required. A mask specifying which fields in [InstancePartition](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition \"Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition (class)\") should be updated. The field mask must always be specified; this prevents any future fields in [InstancePartition](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition \"Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition (class)\") from being erased accidentally by clients that do not know about them. \n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- Required. A mask specifying which fields in [InstancePartition](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition \"Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition (class)\") should be updated. The field mask must always be specified; this prevents any future fields in [InstancePartition](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition \"Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition (class)\") from being erased accidentally by clients that do not know about them.\n\n### #instance_partition\n\n def instance_partition() -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition\n\n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition](./Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition)) --- Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in [field_mask](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest#Google__Cloud__Spanner__Admin__Instance__V1__UpdateInstancePartitionRequest_field_mask_instance_ \"Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstancePartitionRequest#field_mask (method)\") need be included.\n\n### #instance_partition=\n\n def instance_partition=(value) -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition](./Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition)) --- Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in [field_mask](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest#Google__Cloud__Spanner__Admin__Instance__V1__UpdateInstancePartitionRequest_field_mask_instance_ \"Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstancePartitionRequest#field_mask (method)\") need be included. \n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::InstancePartition](./Google-Cloud-Spanner-Admin-Instance-V1-InstancePartition)) --- Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in [field_mask](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-UpdateInstancePartitionRequest#Google__Cloud__Spanner__Admin__Instance__V1__UpdateInstancePartitionRequest_field_mask_instance_ \"Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstancePartitionRequest#field_mask (method)\") need be included."]]