Class KeysResource.LookupKeyRequest
Find the parent project and resource name of the API key that matches the key string in the request. If the
API key has been purged, resource name will not be set. The service account must have the
apikeys.keys.lookup permission on the parent project.
Inheritance
KeysResource.LookupKeyRequest
Inherited Members
Namespace: Google.Apis.ApiKeysService.v2
Assembly: Google.Apis.ApiKeysService.v2.dll
Syntax
public class KeysResource.LookupKeyRequest : ApiKeysServiceBaseServiceRequest<V2LookupKeyResponse>, IClientServiceRequest<V2LookupKeyResponse>, IClientServiceRequest
Constructors
LookupKeyRequest(IClientService)
Constructs a new LookupKey request.
Declaration
public LookupKeyRequest(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
KeyString
Required. Finds the project that owns the key string value.
Declaration
[RequestParameter("keyString", RequestParameterType.Query)]
public virtual string KeyString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes LookupKey parameter list.
Declaration
protected override void InitParameters()