public sealed class CreateNamespaceRequest : IMessage<CreateNamespaceRequest>, IEquatable<CreateNamespaceRequest>, IDeepCloneable<CreateNamespaceRequest>, IBufferMessage, IMessage
The request message for
[RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace].
Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt"; target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
Property Value
Type
Description
System.String
Parent
public string Parent { get; set; }
Required. The resource name of the project and location the namespace
will be created in.
Property Value
Type
Description
System.String
ParentAsLocationName
public LocationName ParentAsLocationName { get; set; }
Google.Api.Gax.ResourceNames.LocationName-typed view over the Parent resource name property.
[[["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 outlines the \u003ccode\u003eCreateNamespaceRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.ServiceDirectory.V1\u003c/code\u003e namespace, used for requesting the creation of a namespace in the Google Cloud Service Directory.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateNamespaceRequest\u003c/code\u003e class, which is part of version 1.0.0, implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is designed to send requests through the RegistrationService.\u003c/p\u003e\n"],["\u003cp\u003eThe class features constructors, including a default constructor and a copy constructor that takes another \u003ccode\u003eCreateNamespaceRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateNamespaceRequest\u003c/code\u003e class has properties for \u003ccode\u003eNamespace\u003c/code\u003e, \u003ccode\u003eNamespaceId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, and \u003ccode\u003eParentAsLocationName\u003c/code\u003e, detailing the required fields for creating a namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNamespaceId\u003c/code\u003e property requires a string that must comply with RFC1035, meaning it should be 1-63 characters long, begin with a lowercase letter, and only contain dashes, lowercase letters, or digits.\u003c/p\u003e\n"]]],[],null,[]]