Class ProjectsResource.KeysResource.MigrateRequest
Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. Once a key is migrated, it can be used from either product. SiteVerify requests are billed as CreateAssessment calls. You must be authenticated as one of the current owners of the reCAPTCHA Key, and your user must have the reCAPTCHA Enterprise Admin IAM role in the destination project.
Inheritance
ProjectsResource.KeysResource.MigrateRequest
Inherited Members
Namespace: Google.Apis.RecaptchaEnterprise.v1
Assembly: Google.Apis.RecaptchaEnterprise.v1.dll
Syntax
public class ProjectsResource.KeysResource.MigrateRequest : RecaptchaEnterpriseBaseServiceRequest<GoogleCloudRecaptchaenterpriseV1Key>, IClientServiceRequest<GoogleCloudRecaptchaenterpriseV1Key>, IClientServiceRequest
Constructors
MigrateRequest(IClientService, GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest, string)
Constructs a new Migrate request.
Declaration
public MigrateRequest(IClientService service, GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The name of the key to be migrated, in the format projects/{project}/keys/{key}
.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { 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 Migrate parameter list.
Declaration
protected override void InitParameters()