Class ProjectsResource.LocationsResource.KeysResource.CreateRequest | Google.Apis.ApiKeysService.v2
Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<Operation>
ApiKeysServiceBaseServiceRequest<Operation>
ProjectsResource.LocationsResource.KeysResource.CreateRequest
Implements
IClientServiceRequest<Operation>
IClientServiceRequest
Inherited Members
ApiKeysServiceBaseServiceRequest.Xgafv
ApiKeysServiceBaseServiceRequest.AccessToken
ApiKeysServiceBaseServiceRequest.Alt
ApiKeysServiceBaseServiceRequest.Callback
ApiKeysServiceBaseServiceRequest.Fields
ApiKeysServiceBaseServiceRequest.Key
ApiKeysServiceBaseServiceRequest.OauthToken
ApiKeysServiceBaseServiceRequest.PrettyPrint
ApiKeysServiceBaseServiceRequest.QuotaUser
ApiKeysServiceBaseServiceRequest.UploadType
ApiKeysServiceBaseServiceRequest.UploadProtocol
ClientServiceRequest.Execute()
ClientServiceRequest.ExecuteAsStream()
ClientServiceRequest.ExecuteAsync()
ClientServiceRequest.ExecuteAsync(CancellationToken)
ClientServiceRequest.ExecuteAsStreamAsync()
ClientServiceRequest.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest.CreateRequest(bool?)
ClientServiceRequest.GenerateRequestUri()
ClientServiceRequest.GetDefaultETagAction(string)
ClientServiceRequest.ETagAction
ClientServiceRequest.ModifyRequest
ClientServiceRequest.ValidateParameters
ClientServiceRequest.ApiVersion
ClientServiceRequest.RequestParameters
ClientServiceRequest.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ApiKeysService.v2
Assembly: Google.Apis.ApiKeysService.v2.dll
Syntax
public class ProjectsResource.LocationsResource.KeysResource.CreateRequest : ApiKeysServiceBaseServiceRequest, IClientServiceRequest, 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
ClientServiceRequest.HttpMethod

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
ClientServiceRequest.MethodName

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
ClientServiceRequest.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
ApiKeysServiceBaseServiceRequest.InitParameters()

Implements

IClientServiceRequest
IClientServiceRequest
In this article
Back to top Generated by DocFX