public sealed class CreateDeploymentRequest : IMessage<CreateDeploymentRequest>, IEquatable<CreateDeploymentRequest>, IDeepCloneable<CreateDeploymentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the API hub v1 API class CreateDeploymentRequest.
The [CreateDeployment][google.cloud.apihub.v1.ApiHub.CreateDeployment]
method's request.
[[["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\u003eThe \u003ccode\u003eCreateDeploymentRequest\u003c/code\u003e class is used to define the request for the \u003ccode\u003eCreateDeployment\u003c/code\u003e method in the API hub v1 API, using the latest 1.0.0 version.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing methods for object equality and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for \u003ccode\u003eDeployment\u003c/code\u003e (the resource to create), \u003ccode\u003eDeploymentId\u003c/code\u003e (optional custom ID), \u003ccode\u003eParent\u003c/code\u003e (the resource's parent), and \u003ccode\u003eParentAsLocationName\u003c/code\u003e (a \u003ccode\u003eLocationName\u003c/code\u003e-typed view of the parent resource).\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors provided, a default one and one that takes another \u003ccode\u003eCreateDeploymentRequest\u003c/code\u003e instance as an argument for creating a new object based on an existing one.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateDeploymentRequest\u003c/code\u003e class is located in the \u003ccode\u003eGoogle.Cloud.ApiHub.V1\u003c/code\u003e namespace and in the \u003ccode\u003eGoogle.Cloud.ApiHub.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# API hub v1 API - Class CreateDeploymentRequest (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.CreateDeploymentRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/1.0.0-beta02/Google.Cloud.ApiHub.V1.CreateDeploymentRequest) \n\n public sealed class CreateDeploymentRequest : IMessage\u003cCreateDeploymentRequest\u003e, IEquatable\u003cCreateDeploymentRequest\u003e, IDeepCloneable\u003cCreateDeploymentRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the API hub v1 API class CreateDeploymentRequest.\n\nThe \\[CreateDeployment\\]\\[google.cloud.apihub.v1.ApiHub.CreateDeployment\\]\nmethod's request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateDeploymentRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateDeploymentRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateDeploymentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDeploymentRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateDeploymentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateDeploymentRequest](/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CreateDeploymentRequest), [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### CreateDeploymentRequest()\n\n public CreateDeploymentRequest()\n\n### CreateDeploymentRequest(CreateDeploymentRequest)\n\n public CreateDeploymentRequest(CreateDeploymentRequest other)\n\nProperties\n----------\n\n### Deployment\n\n public Deployment Deployment { get; set; }\n\nRequired. The deployment resource to create.\n\n### DeploymentId\n\n public string DeploymentId { get; set; }\n\nOptional. The ID to use for the deployment resource, which will become the\nfinal component of the deployment's resource name. This field is optional.\n\n- If provided, the same will be used. The service will throw an error if the specified id is already used by another deployment 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 deployment 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.CreateDeploymentRequest#Google_Cloud_ApiHub_V1_CreateDeploymentRequest_Parent) resource name property."]]