public sealed class UpdateSpecRequest : IMessage<UpdateSpecRequest>, IEquatable<UpdateSpecRequest>, IDeepCloneable<UpdateSpecRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the API hub v1 API class UpdateSpecRequest.
The [UpdateSpec][google.cloud.apihub.v1.ApiHub.UpdateSpec] method's request.
The spec's name field is used to identify the spec to
update. Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
[[["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 page provides reference documentation for the \u003ccode\u003eUpdateSpecRequest\u003c/code\u003e class within the Google Cloud API Hub v1 API, specifically for the .NET client library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateSpecRequest\u003c/code\u003e class is used to make requests to the \u003ccode\u003eUpdateSpec\u003c/code\u003e method, allowing updates to existing specifications within the API Hub.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \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\u003eIt contains properties such as \u003ccode\u003eSpec\u003c/code\u003e, which represents the specification data to be updated, and \u003ccode\u003eUpdateMask\u003c/code\u003e, which specifies the fields to be updated.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eUpdateSpecRequest\u003c/code\u003e is available under the namespace \u003ccode\u003eGoogle.Cloud.ApiHub.V1\u003c/code\u003e within the assembly \u003ccode\u003eGoogle.Cloud.ApiHub.V1.dll\u003c/code\u003e, including a beta version of the class.\u003c/p\u003e\n"]]],[],null,["# API hub v1 API - Class UpdateSpecRequest (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdateSpecRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/1.0.0-beta02/Google.Cloud.ApiHub.V1.UpdateSpecRequest) \n\n public sealed class UpdateSpecRequest : IMessage\u003cUpdateSpecRequest\u003e, IEquatable\u003cUpdateSpecRequest\u003e, IDeepCloneable\u003cUpdateSpecRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the API hub v1 API class UpdateSpecRequest.\n\nThe \\[UpdateSpec\\]\\[google.cloud.apihub.v1.ApiHub.UpdateSpec\\] method's request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateSpecRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateSpecRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdateSpecRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateSpecRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdateSpecRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateSpecRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.UpdateSpecRequest), [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.ApiHub.V1](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ApiHub.V1.dll\n\nConstructors\n------------\n\n### UpdateSpecRequest()\n\n public UpdateSpecRequest()\n\n### UpdateSpecRequest(UpdateSpecRequest)\n\n public UpdateSpecRequest(UpdateSpecRequest other)\n\nProperties\n----------\n\n### Spec\n\n public Spec Spec { get; set; }\n\nRequired. The spec to update.\n\nThe spec's `name` field is used to identify the spec to\nupdate. Format:\n`projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nRequired. The list of fields to update."]]