public sealed class UpdateMembershipRequest : IMessage<UpdateMembershipRequest>, IEquatable<UpdateMembershipRequest>, IDeepCloneable<UpdateMembershipRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1beta1 API class UpdateMembershipRequest.
Request message for GkeHubMembershipService.UpdateMembership method.
Optional. A request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Required. Only fields specified in update_mask are updated.
If you specify a field in the update_mask but don't specify its value here
that field will be deleted.
If you are updating a map field, set the value of a key to null or empty
string to delete the key from the map. It's not possible to update a key's
value to the empty string.
If you specify the update_mask to be a special path "*", fully replaces all
user-modifiable fields to match resource.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eUpdateMembershipRequest\u003c/code\u003e class within the GKE Hub v1beta1 API, specifically for the \u003ccode\u003eGkeHubMembershipService.UpdateMembership\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateMembershipRequest\u003c/code\u003e class is used to update a membership resource and requires parameters like \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eResource\u003c/code\u003e, and \u003ccode\u003eUpdateMask\u003c/code\u003e to specify the membership to modify and how.\u003c/p\u003e\n"],["\u003cp\u003eIt has an optional \u003ccode\u003eRequestId\u003c/code\u003e property to handle retries, preventing duplicate operations when requests time out, by using a unique identifier for each request.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are 3 versions, with \u003ccode\u003e2.0.0-beta07\u003c/code\u003e being the latest, and the class has 2 constructors.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1beta1 API - Class UpdateMembershipRequest (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta06/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest) \n\n public sealed class UpdateMembershipRequest : IMessage\u003cUpdateMembershipRequest\u003e, IEquatable\u003cUpdateMembershipRequest\u003e, IDeepCloneable\u003cUpdateMembershipRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1beta1 API class UpdateMembershipRequest.\n\nRequest message for `GkeHubMembershipService.UpdateMembership` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateMembershipRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateMembershipRequest](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateMembershipRequest](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateMembershipRequest](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeHub.V1Beta1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1Beta1.dll\n\nConstructors\n------------\n\n### UpdateMembershipRequest()\n\n public UpdateMembershipRequest()\n\n### UpdateMembershipRequest(UpdateMembershipRequest)\n\n public UpdateMembershipRequest(UpdateMembershipRequest other)\n\nProperties\n----------\n\n### MembershipName\n\n public MembershipName MembershipName { get; set; }\n\n[MembershipName](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MembershipName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest#Google_Cloud_GkeHub_V1Beta1_UpdateMembershipRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The membership resource name in the format:\n`projects/[project_id]/locations/global/memberships/[membership_id]`\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A request ID to identify requests. Specify a unique request ID\nso that if you must retry your request, the server will know to ignore\nthe request if it has already been completed. The server will guarantee\nthat for at least 60 minutes after the first request.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### Resource\n\n public Membership Resource { get; set; }\n\nRequired. Only fields specified in update_mask are updated.\nIf you specify a field in the update_mask but don't specify its value here\nthat field will be deleted.\nIf you are updating a map field, set the value of a key to null or empty\nstring to delete the key from the map. It's not possible to update a key's\nvalue to the empty string.\nIf you specify the update_mask to be a special path \"\\*\", fully replaces all\nuser-modifiable fields to match `resource`.\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nRequired. Mask of fields to update. At least one field path must be\nspecified in this mask."]]