public sealed class CreateExternalApiRequest : IMessage<CreateExternalApiRequest>, IEquatable<CreateExternalApiRequest>, IDeepCloneable<CreateExternalApiRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the API hub v1 API class CreateExternalApiRequest.
The [CreateExternalApi][google.cloud.apihub.v1.ApiHub.CreateExternalApi]
method's request.
Optional. The ID to use for the External API resource, which will become
the final component of the External API's resource name. This field is
optional.
If provided, the same will be used. The service will throw an error if
the specified id is already used by another External API resource in the
API hub.
If not provided, a system generated id will be used.
This value should be 4-500 characters, and valid characters
are /[a-z][A-Z][0-9]-_/.
[[["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\u003eCreateExternalApiRequest\u003c/code\u003e class is part of the API hub v1 API and is used to define the request for the \u003ccode\u003eCreateExternalApi\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis 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\u003eThe \u003ccode\u003eCreateExternalApiRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eExternalApi\u003c/code\u003e, \u003ccode\u003eExternalApiId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, and \u003ccode\u003eParentAsLocationName\u003c/code\u003e, which are used to specify the details of the External API resource being created.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExternalApiId\u003c/code\u003e property is optional and allows users to specify a custom ID for the External API, otherwise, a system-generated ID is used.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors, one that is parameterless and one that takes a \u003ccode\u003eCreateExternalApiRequest\u003c/code\u003e as its parameter.\u003c/p\u003e\n"]]],[],null,["# API hub v1 API - Class CreateExternalApiRequest (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.CreateExternalApiRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/1.0.0-beta02/Google.Cloud.ApiHub.V1.CreateExternalApiRequest) \n\n public sealed class CreateExternalApiRequest : IMessage\u003cCreateExternalApiRequest\u003e, IEquatable\u003cCreateExternalApiRequest\u003e, IDeepCloneable\u003cCreateExternalApiRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the API hub v1 API class CreateExternalApiRequest.\n\nThe \\[CreateExternalApi\\]\\[google.cloud.apihub.v1.ApiHub.CreateExternalApi\\]\nmethod's request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateExternalApiRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateExternalApiRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateExternalApiRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateExternalApiRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateExternalApiRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateExternalApiRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateExternalApiRequest), [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### CreateExternalApiRequest()\n\n public CreateExternalApiRequest()\n\n### CreateExternalApiRequest(CreateExternalApiRequest)\n\n public CreateExternalApiRequest(CreateExternalApiRequest other)\n\nProperties\n----------\n\n### ExternalApi\n\n public ExternalApi ExternalApi { get; set; }\n\nRequired. The External API resource to create.\n\n### ExternalApiId\n\n public string ExternalApiId { get; set; }\n\nOptional. The ID to use for the External API resource, which will become\nthe final component of the External API's resource name. This field is\noptional.\n\n- If provided, the same will be used. The service will throw an error if the specified id is already used by another External API resource in the API hub.\n- If not provided, a system generated id will be used.\n\nThis value should be 4-500 characters, and valid characters\nare /\\[a-z\\]\\[A-Z\\]\\[0-9\\]-_/.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource for the External API resource.\nFormat: `projects/{project}/locations/{location}`\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateExternalApiRequest#Google_Cloud_ApiHub_V1_CreateExternalApiRequest_Parent) resource name property."]]