-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add RetrieveLegacySecretKey method (#411)
* feat: add RetrieveLegacySecretKey method feat: add annotation reasons REFUND, REFUND_FRAUD, TRANSACTION_ACCEPTED, TRANSACTION_DECLINED and SOCIAL_SPAM PiperOrigin-RevId: 480357575 Source-Link: googleapis/googleapis@cbd4501 Source-Link: googleapis/googleapis-gen@7155b97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzE1NWI5N2Q5ODM2MWYzZmM0NGNjOGNiNTM2Njc0OTg3MzZhOWJkZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e8848ff
commit 0df934c
Showing
15 changed files
with
2,683 additions
and
1,526 deletions.
There are no files selected for viewing
258 changes: 151 additions & 107 deletions
258
...-recaptchaenterprise/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
Large diffs are not rendered by default.
Oops, something went wrong.
452 changes: 336 additions & 116 deletions
452
packages/google-cloud-recaptchaenterprise/protos/protos.d.ts
Large diffs are not rendered by default.
Oops, something went wrong.
2,798 changes: 1,636 additions & 1,162 deletions
2,798
packages/google-cloud-recaptchaenterprise/protos/protos.js
Large diffs are not rendered by default.
Oops, something went wrong.
111 changes: 77 additions & 34 deletions
111
packages/google-cloud-recaptchaenterprise/protos/protos.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...nterprise/samples/generated/v1/recaptcha_enterprise_service.retrieve_legacy_secret_key.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// ** This file is automatically generated by gapic-generator-typescript. ** | ||
// ** https://github.com/googleapis/gapic-generator-typescript ** | ||
// ** All changes to this file may be overwritten. ** | ||
|
||
|
||
|
||
'use strict'; | ||
|
||
function main(key) { | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_RetrieveLegacySecretKey_async] | ||
/** | ||
* This snippet has been automatically generated and should be regarded as a code template only. | ||
* It will require modifications to work. | ||
* It may require correct/in-range values for request initialization. | ||
* TODO(developer): Uncomment these variables before running the sample. | ||
*/ | ||
/** | ||
* Required. The public key name linked to the requested secret key in the format | ||
* "projects/{project}/keys/{key}". | ||
*/ | ||
// const key = 'abc123' | ||
|
||
// Imports the Recaptchaenterprise library | ||
const {RecaptchaEnterpriseServiceClient} = require('@google-cloud/recaptcha-enterprise').v1; | ||
|
||
// Instantiates a client | ||
const recaptchaenterpriseClient = new RecaptchaEnterpriseServiceClient(); | ||
|
||
async function callRetrieveLegacySecretKey() { | ||
// Construct request | ||
const request = { | ||
key, | ||
}; | ||
|
||
// Run request | ||
const response = await recaptchaenterpriseClient.retrieveLegacySecretKey(request); | ||
console.log(response); | ||
} | ||
|
||
callRetrieveLegacySecretKey(); | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_RetrieveLegacySecretKey_async] | ||
} | ||
|
||
process.on('unhandledRejection', err => { | ||
console.error(err.message); | ||
process.exitCode = 1; | ||
}); | ||
main(...process.argv.slice(2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.