(::Google::Protobuf::FieldMask) — Field mask used to specify the fields to be overwritten in the policy
by the set. The fields specified in the update_mask are relative to the
policy, not the full request.
value (::Google::Protobuf::FieldMask) — Field mask used to specify the fields to be overwritten in the policy
by the set. The fields specified in the update_mask are relative to the
policy, not the full request.
Returns
(::Google::Protobuf::FieldMask) — Field mask used to specify the fields to be overwritten in the policy
by the set. The fields specified in the update_mask are relative to the
policy, not the full request.
[[["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-09-09 UTC."],[],[],null,["# Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::UpdatePolicyRequest (v1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/ruby/docs/reference/google-cloud-org_policy-v2/latest/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-org_policy-v2/1.4.1/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-org_policy-v2/1.3.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-org_policy-v2/1.2.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-org_policy-v2/1.1.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-org_policy-v2/1.0.1/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.10.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.9.2](/ruby/docs/reference/google-cloud-org_policy-v2/0.9.2/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.8.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.7.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.6.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.5.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.4.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.3.0/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest)\n- [0.2.6](/ruby/docs/reference/google-cloud-org_policy-v2/0.2.6/Google-Cloud-OrgPolicy-V2-UpdatePolicyRequest) \nReference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::UpdatePolicyRequest.\n\nThe request sent to the \\[UpdatePolicyRequest\\]\n\\[google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy\\] 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### #policy\n\n def policy() -\u003e ::Google::Cloud::OrgPolicy::V2::Policy\n\n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::Policy](./Google-Cloud-OrgPolicy-V2-Policy)) --- Required. Policy to update.\n\n### #policy=\n\n def policy=(value) -\u003e ::Google::Cloud::OrgPolicy::V2::Policy\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OrgPolicy::V2::Policy](./Google-Cloud-OrgPolicy-V2-Policy)) --- Required. Policy to update. \n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::Policy](./Google-Cloud-OrgPolicy-V2-Policy)) --- Required. Policy to update.\n\n### #update_mask\n\n def update_mask() -\u003e ::Google::Protobuf::FieldMask\n\n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request.\n\n### #update_mask=\n\n def update_mask=(value) -\u003e ::Google::Protobuf::FieldMask\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request. \n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- Field mask used to specify the fields to be overwritten in the policy by the set. The fields specified in the update_mask are relative to the policy, not the full request."]]