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
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<Operation>
ApiKeysServiceBaseServiceRequest<Operation>
ProjectsResource.LocationsResource.KeysResource.CreateRequest
Implements
Google.Apis.Requests.IClientServiceRequest<Operation>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
ApiKeysServiceBaseServiceRequest<Operation>.Xgafv
ApiKeysServiceBaseServiceRequest<Operation>.AccessToken
ApiKeysServiceBaseServiceRequest<Operation>.Alt
ApiKeysServiceBaseServiceRequest<Operation>.Callback
ApiKeysServiceBaseServiceRequest<Operation>.Fields
ApiKeysServiceBaseServiceRequest<Operation>.Key
ApiKeysServiceBaseServiceRequest<Operation>.OauthToken
ApiKeysServiceBaseServiceRequest<Operation>.PrettyPrint
ApiKeysServiceBaseServiceRequest<Operation>.QuotaUser
ApiKeysServiceBaseServiceRequest<Operation>.UploadType
ApiKeysServiceBaseServiceRequest<Operation>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.ApiKeysService.v2
Assembly: Google.Apis.ApiKeysService.v2.dll
Syntax
public class 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
Google.Apis.Services.IClientService service
V2Key body
System.String parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.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
System.String

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.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
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.ApiKeysService.v2.ApiKeysServiceBaseServiceRequest<Google.Apis.ApiKeysService.v2.Data.Operation>.InitParameters()

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
In This Article
Back to top