Class ProjectsResource.LocationsResource.NamespacesResource.CreateRequest
Creates a namespace, and returns the new namespace.
Inheritance
ProjectsResource.LocationsResource.NamespacesResource.CreateRequest
Inherited Members
Namespace: Google.Apis.ServiceDirectory.v1
Assembly: Google.Apis.ServiceDirectory.v1.dll
Syntax
public class ProjectsResource.LocationsResource.NamespacesResource.CreateRequest : ServiceDirectoryBaseServiceRequest<Namespace>, IClientServiceRequest<Namespace>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Namespace, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Namespace body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Namespace | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ServiceDirectory.v1.Data.Namespace>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ServiceDirectory.v1.Data.Namespace>.MethodName
NamespaceId
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. 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.
Declaration
[RequestParameter("namespaceId", RequestParameterType.Query)]
public virtual string NamespaceId { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Required. The resource name of the project and location the namespace will be created in.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ServiceDirectory.v1.Data.Namespace>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ServiceDirectory.v1.Data.Namespace>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()