Class ProjectsResource.LocationsResource.KeysResource.CreateRequest
Creates a new API key. NOTE: Key is a global resource; hence the only supported value for location
is global
.
Inheritance
ProjectsResource.LocationsResource.KeysResource.CreateRequest
Inherited Members
Namespace: Google.Apis.ApiKeysService.v2
Assembly: Google.Apis.ApiKeysService.v2.dll
Syntax
public class ProjectsResource.LocationsResource.KeysResource.CreateRequest : ApiKeysServiceBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, V2Key, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, V2Key body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
V2Key | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
KeyId
User specified key id (optional). If specified, it will become the final component of the key
resource name. The id must be unique within the project, must conform with RFC-1034, is
restricted to lower-cased letters, and has a maximum length of 63 characters. In another word,
the id must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?
. The id must NOT be
a UUID-like string.
Declaration
[RequestParameter("keyId", RequestParameterType.Query)]
public virtual string KeyId { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The project in which the API key is created.
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()