public sealed class CreateApiSpecRequest : IMessage<CreateApiSpecRequest>, IEquatable<CreateApiSpecRequest>, IDeepCloneable<CreateApiSpecRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Apigee Registry v1 API class CreateApiSpecRequest.
[[["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-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateApiSpecRequest\u003c/code\u003e class is used to create a request for the Apigee Registry v1 API's \u003ccode\u003eCreateApiSpec\u003c/code\u003e method, as detailed by the reference documentation and code samples.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, allowing for various interactions with the Google.Protobuf library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateApiSpecRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eApiSpec\u003c/code\u003e, \u003ccode\u003eApiSpecId\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e which are essential for defining the spec to be created, its unique identifier, and its location within the registry.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, a default one and another that accepts an existing \u003ccode\u003eCreateApiSpecRequest\u003c/code\u003e object, allowing for object creation and duplication.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParentAsApiVersionName\u003c/code\u003e property provides a typed view over the \u003ccode\u003eParent\u003c/code\u003e property, specifically utilizing the \u003ccode\u003eApiVersionName\u003c/code\u003e type to represent the parent's resource name.\u003c/p\u003e\n"]]],[],null,["# Apigee Registry v1 API - Class CreateApiSpecRequest (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.CreateApiSpecRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/1.0.0-beta06/Google.Cloud.ApigeeRegistry.V1.CreateApiSpecRequest) \n\n public sealed class CreateApiSpecRequest : IMessage\u003cCreateApiSpecRequest\u003e, IEquatable\u003cCreateApiSpecRequest\u003e, IDeepCloneable\u003cCreateApiSpecRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Apigee Registry v1 API class CreateApiSpecRequest.\n\nRequest message for CreateApiSpec. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateApiSpecRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateApiSpecRequest](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.CreateApiSpecRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateApiSpecRequest](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.CreateApiSpecRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateApiSpecRequest](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.CreateApiSpecRequest), [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.ApigeeRegistry.V1](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ApigeeRegistry.V1.dll\n\nConstructors\n------------\n\n### CreateApiSpecRequest()\n\n public CreateApiSpecRequest()\n\n### CreateApiSpecRequest(CreateApiSpecRequest)\n\n public CreateApiSpecRequest(CreateApiSpecRequest other)\n\nProperties\n----------\n\n### ApiSpec\n\n public ApiSpec ApiSpec { get; set; }\n\nRequired. The spec to create.\n\n### ApiSpecId\n\n public string ApiSpecId { get; set; }\n\nRequired. The ID to use for the spec, which will become the final component of\nthe spec's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\nFollowing AIP-162, IDs must not have the form of a UUID.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent, which owns this collection of specs.\nFormat: `projects/*/locations/*/apis/*/versions/*`\n\n### ParentAsApiVersionName\n\n public ApiVersionName ParentAsApiVersionName { get; set; }\n\n[ApiVersionName](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.ApiVersionName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.CreateApiSpecRequest#Google_Cloud_ApigeeRegistry_V1_CreateApiSpecRequest_Parent) resource name property."]]