Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix!: remove key management API (#366)
Browse files Browse the repository at this point in the history
* fix!: remove key management API
feat: introduced Reason, PasswordLeakVerification, AccountDefenderAssessment

PiperOrigin-RevId: 445255953

Source-Link: googleapis/googleapis@79b9055

Source-Link: googleapis/googleapis-gen@f21fea7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjIxZmVhNzY1NmM3ZThhNmQyOWFjYTllMzkwZDkzNWE1MTFhYTkzMSJ9

* 🦉 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
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Apr 29, 2022
1 parent 13deccc commit 44a5a4b
Show file tree
Hide file tree
Showing 10 changed files with 1,116 additions and 5,925 deletions.
350 changes: 129 additions & 221 deletions protos/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto

Large diffs are not rendered by default.

1,238 changes: 192 additions & 1,046 deletions protos/protos.d.ts

Large diffs are not rendered by default.

3,064 changes: 646 additions & 2,418 deletions protos/protos.js

Large diffs are not rendered by default.

351 changes: 84 additions & 267 deletions protos/protos.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

'use strict';

function main(name, annotation) {
function main(name) {
// [START recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
Expand All @@ -31,9 +31,23 @@ function main(name, annotation) {
*/
// const name = 'abc123'
/**
* Required. The annotation that will be assigned to the Event.
* Optional. The annotation that will be assigned to the Event. This field can be left
* empty to provide reasons that apply to an event without concluding whether
* the event is legitimate or fraudulent.
*/
// const annotation = {}
/**
* Optional. Optional reasons for the annotation that will be assigned to the Event.
*/
// const reasons = 1234
/**
* Optional. Optional unique stable hashed user identifier to apply to the assessment.
* This is an alternative to setting the hashed_account_id in
* CreateAssessment, for example when the account identifier is not yet known
* in the initial request. It is recommended that the identifier is hashed
* using hmac-sha256 with stable secret.
*/
// const hashedAccountId = 'Buffer.from('string')'

// Imports the Recaptchaenterprise library
const {RecaptchaEnterpriseServiceV1Beta1Client} = require('@google-cloud/recaptcha-enterprise').v1beta1;
Expand All @@ -45,7 +59,6 @@ function main(name, annotation) {
// Construct request
const request = {
name,
annotation,
};

// Run request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"segments": [
{
"start": 25,
"end": 56,
"end": 69,
"type": "FULL"
}
],
Expand All @@ -82,232 +82,24 @@
{
"name": "annotation",
"type": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation"
}
],
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse",
"client": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
},
"method": {
"shortName": "AnnotateAssessment",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment",
"service": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
}
}
}
},
{
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateKey_async",
"title": "RecaptchaEnterpriseServiceV1Beta1 createKey Sample",
"origin": "API_DEFINITION",
"description": " Creates a new reCAPTCHA Enterprise key.",
"canonical": true,
"file": "recaptcha_enterprise_service_v1_beta1.create_key.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 56,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "CreateKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateKey",
"async": true,
"parameters": [
{
"name": "parent",
"type": "TYPE_STRING"
},
{
"name": "key",
"type": ".google.cloud.recaptchaenterprise.v1beta1.Key"
}
],
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.Key",
"client": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
},
"method": {
"shortName": "CreateKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateKey",
"service": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
}
}
}
},
{
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_ListKeys_async",
"title": "RecaptchaEnterpriseServiceV1Beta1 listKeys Sample",
"origin": "API_DEFINITION",
"description": " Returns the list of all keys that belong to a project.",
"canonical": true,
"file": "recaptcha_enterprise_service_v1_beta1.list_keys.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 63,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "ListKeys",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.ListKeys",
"async": true,
"parameters": [
{
"name": "parent",
"type": "TYPE_STRING"
},
{
"name": "page_size",
"type": "TYPE_INT32"
"name": "reasons",
"type": "TYPE_ENUM[]"
},
{
"name": "page_token",
"type": "TYPE_STRING"
"name": "hashed_account_id",
"type": "TYPE_BYTES"
}
],
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.ListKeysResponse",
"client": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
},
"method": {
"shortName": "ListKeys",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.ListKeys",
"service": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
}
}
}
},
{
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_GetKey_async",
"title": "RecaptchaEnterpriseServiceV1Beta1 getKey Sample",
"origin": "API_DEFINITION",
"description": " Returns the specified key.",
"canonical": true,
"file": "recaptcha_enterprise_service_v1_beta1.get_key.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 51,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "GetKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.GetKey",
"async": true,
"parameters": [
{
"name": "name",
"type": "TYPE_STRING"
}
],
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.Key",
"client": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
},
"method": {
"shortName": "GetKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.GetKey",
"service": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
}
}
}
},
{
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_UpdateKey_async",
"title": "RecaptchaEnterpriseServiceV1Beta1 updateKey Sample",
"origin": "API_DEFINITION",
"description": " Updates the specified key.",
"canonical": true,
"file": "recaptcha_enterprise_service_v1_beta1.update_key.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 55,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "UpdateKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.UpdateKey",
"async": true,
"parameters": [
{
"name": "key",
"type": ".google.cloud.recaptchaenterprise.v1beta1.Key"
},
{
"name": "update_mask",
"type": ".google.protobuf.FieldMask"
}
],
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.Key",
"client": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
},
"method": {
"shortName": "UpdateKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.UpdateKey",
"service": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
}
}
}
},
{
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_DeleteKey_async",
"title": "RecaptchaEnterpriseServiceV1Beta1 deleteKey Sample",
"origin": "API_DEFINITION",
"description": " Deletes the specified key.",
"canonical": true,
"file": "recaptcha_enterprise_service_v1_beta1.delete_key.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 51,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "DeleteKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.DeleteKey",
"async": true,
"parameters": [
{
"name": "name",
"type": "TYPE_STRING"
}
],
"resultType": ".google.protobuf.Empty",
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse",
"client": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
},
"method": {
"shortName": "DeleteKey",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.DeleteKey",
"shortName": "AnnotateAssessment",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment",
"service": {
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
Expand Down
54 changes: 0 additions & 54 deletions src/v1beta1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,6 @@
"methods": [
"annotateAssessment"
]
},
"CreateKey": {
"methods": [
"createKey"
]
},
"GetKey": {
"methods": [
"getKey"
]
},
"UpdateKey": {
"methods": [
"updateKey"
]
},
"DeleteKey": {
"methods": [
"deleteKey"
]
},
"ListKeys": {
"methods": [
"listKeys",
"listKeysStream",
"listKeysAsync"
]
}
}
},
Expand All @@ -61,33 +34,6 @@
"methods": [
"annotateAssessment"
]
},
"CreateKey": {
"methods": [
"createKey"
]
},
"GetKey": {
"methods": [
"getKey"
]
},
"UpdateKey": {
"methods": [
"updateKey"
]
},
"DeleteKey": {
"methods": [
"deleteKey"
]
},
"ListKeys": {
"methods": [
"listKeys",
"listKeysStream",
"listKeysAsync"
]
}
}
}
Expand Down
Loading

0 comments on commit 44a5a4b

Please sign in to comment.