/// <summary>Snippet for UpdateKeyAsync</summary> public async Task UpdateKeyRequestObjectAsync() { // Snippet: UpdateKeyAsync(UpdateKeyRequest, CallSettings) // Additional: UpdateKeyAsync(UpdateKeyRequest, CancellationToken) // Create client RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); // Initialize request argument(s) UpdateKeyRequest request = new UpdateKeyRequest { Key = new Key(), UpdateMask = new FieldMask(), }; // Make the request Key response = await recaptchaEnterpriseServiceClient.UpdateKeyAsync(request); // End snippet }