Skip to content

Commit 44a5a4b

Browse files
fix!: remove key management API (googleapis#366)
* fix!: remove key management API feat: introduced Reason, PasswordLeakVerification, AccountDefenderAssessment PiperOrigin-RevId: 445255953 Source-Link: googleapis/googleapis@79b9055 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f21fea7656c7e8a6d29aca9e390d935a511aa931 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>
1 parent 13deccc commit 44a5a4b

10 files changed

+1116
-5925
lines changed

protos/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto

+129-221
Large diffs are not rendered by default.

protos/protos.d.ts

+192-1,046
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

+646-2,418
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.json

+84-267
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/generated/v1beta1/recaptcha_enterprise_service_v1_beta1.annotate_assessment.js

+16-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
'use strict';
2222

23-
function main(name, annotation) {
23+
function main(name) {
2424
// [START recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_async]
2525
/**
2626
* TODO(developer): Uncomment these variables before running the sample.
@@ -31,9 +31,23 @@ function main(name, annotation) {
3131
*/
3232
// const name = 'abc123'
3333
/**
34-
* Required. The annotation that will be assigned to the Event.
34+
* Optional. The annotation that will be assigned to the Event. This field can be left
35+
* empty to provide reasons that apply to an event without concluding whether
36+
* the event is legitimate or fraudulent.
3537
*/
3638
// const annotation = {}
39+
/**
40+
* Optional. Optional reasons for the annotation that will be assigned to the Event.
41+
*/
42+
// const reasons = 1234
43+
/**
44+
* Optional. Optional unique stable hashed user identifier to apply to the assessment.
45+
* This is an alternative to setting the hashed_account_id in
46+
* CreateAssessment, for example when the account identifier is not yet known
47+
* in the initial request. It is recommended that the identifier is hashed
48+
* using hmac-sha256 with stable secret.
49+
*/
50+
// const hashedAccountId = 'Buffer.from('string')'
3751

3852
// Imports the Recaptchaenterprise library
3953
const {RecaptchaEnterpriseServiceV1Beta1Client} = require('@google-cloud/recaptcha-enterprise').v1beta1;
@@ -45,7 +59,6 @@ function main(name, annotation) {
4559
// Construct request
4660
const request = {
4761
name,
48-
annotation,
4962
};
5063

5164
// Run request

samples/generated/v1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json

+8-216
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"segments": [
6767
{
6868
"start": 25,
69-
"end": 56,
69+
"end": 69,
7070
"type": "FULL"
7171
}
7272
],
@@ -82,232 +82,24 @@
8282
{
8383
"name": "annotation",
8484
"type": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation"
85-
}
86-
],
87-
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse",
88-
"client": {
89-
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
90-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
91-
},
92-
"method": {
93-
"shortName": "AnnotateAssessment",
94-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment",
95-
"service": {
96-
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
97-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
98-
}
99-
}
100-
}
101-
},
102-
{
103-
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateKey_async",
104-
"title": "RecaptchaEnterpriseServiceV1Beta1 createKey Sample",
105-
"origin": "API_DEFINITION",
106-
"description": " Creates a new reCAPTCHA Enterprise key.",
107-
"canonical": true,
108-
"file": "recaptcha_enterprise_service_v1_beta1.create_key.js",
109-
"language": "JAVASCRIPT",
110-
"segments": [
111-
{
112-
"start": 25,
113-
"end": 56,
114-
"type": "FULL"
115-
}
116-
],
117-
"clientMethod": {
118-
"shortName": "CreateKey",
119-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateKey",
120-
"async": true,
121-
"parameters": [
122-
{
123-
"name": "parent",
124-
"type": "TYPE_STRING"
12585
},
12686
{
127-
"name": "key",
128-
"type": ".google.cloud.recaptchaenterprise.v1beta1.Key"
129-
}
130-
],
131-
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.Key",
132-
"client": {
133-
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
134-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
135-
},
136-
"method": {
137-
"shortName": "CreateKey",
138-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateKey",
139-
"service": {
140-
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
141-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
142-
}
143-
}
144-
}
145-
},
146-
{
147-
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_ListKeys_async",
148-
"title": "RecaptchaEnterpriseServiceV1Beta1 listKeys Sample",
149-
"origin": "API_DEFINITION",
150-
"description": " Returns the list of all keys that belong to a project.",
151-
"canonical": true,
152-
"file": "recaptcha_enterprise_service_v1_beta1.list_keys.js",
153-
"language": "JAVASCRIPT",
154-
"segments": [
155-
{
156-
"start": 25,
157-
"end": 63,
158-
"type": "FULL"
159-
}
160-
],
161-
"clientMethod": {
162-
"shortName": "ListKeys",
163-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.ListKeys",
164-
"async": true,
165-
"parameters": [
166-
{
167-
"name": "parent",
168-
"type": "TYPE_STRING"
169-
},
170-
{
171-
"name": "page_size",
172-
"type": "TYPE_INT32"
87+
"name": "reasons",
88+
"type": "TYPE_ENUM[]"
17389
},
17490
{
175-
"name": "page_token",
176-
"type": "TYPE_STRING"
91+
"name": "hashed_account_id",
92+
"type": "TYPE_BYTES"
17793
}
17894
],
179-
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.ListKeysResponse",
180-
"client": {
181-
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
182-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
183-
},
184-
"method": {
185-
"shortName": "ListKeys",
186-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.ListKeys",
187-
"service": {
188-
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
189-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
190-
}
191-
}
192-
}
193-
},
194-
{
195-
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_GetKey_async",
196-
"title": "RecaptchaEnterpriseServiceV1Beta1 getKey Sample",
197-
"origin": "API_DEFINITION",
198-
"description": " Returns the specified key.",
199-
"canonical": true,
200-
"file": "recaptcha_enterprise_service_v1_beta1.get_key.js",
201-
"language": "JAVASCRIPT",
202-
"segments": [
203-
{
204-
"start": 25,
205-
"end": 51,
206-
"type": "FULL"
207-
}
208-
],
209-
"clientMethod": {
210-
"shortName": "GetKey",
211-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.GetKey",
212-
"async": true,
213-
"parameters": [
214-
{
215-
"name": "name",
216-
"type": "TYPE_STRING"
217-
}
218-
],
219-
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.Key",
220-
"client": {
221-
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
222-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
223-
},
224-
"method": {
225-
"shortName": "GetKey",
226-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.GetKey",
227-
"service": {
228-
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
229-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
230-
}
231-
}
232-
}
233-
},
234-
{
235-
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_UpdateKey_async",
236-
"title": "RecaptchaEnterpriseServiceV1Beta1 updateKey Sample",
237-
"origin": "API_DEFINITION",
238-
"description": " Updates the specified key.",
239-
"canonical": true,
240-
"file": "recaptcha_enterprise_service_v1_beta1.update_key.js",
241-
"language": "JAVASCRIPT",
242-
"segments": [
243-
{
244-
"start": 25,
245-
"end": 55,
246-
"type": "FULL"
247-
}
248-
],
249-
"clientMethod": {
250-
"shortName": "UpdateKey",
251-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.UpdateKey",
252-
"async": true,
253-
"parameters": [
254-
{
255-
"name": "key",
256-
"type": ".google.cloud.recaptchaenterprise.v1beta1.Key"
257-
},
258-
{
259-
"name": "update_mask",
260-
"type": ".google.protobuf.FieldMask"
261-
}
262-
],
263-
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.Key",
264-
"client": {
265-
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
266-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
267-
},
268-
"method": {
269-
"shortName": "UpdateKey",
270-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.UpdateKey",
271-
"service": {
272-
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
273-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"
274-
}
275-
}
276-
}
277-
},
278-
{
279-
"regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_DeleteKey_async",
280-
"title": "RecaptchaEnterpriseServiceV1Beta1 deleteKey Sample",
281-
"origin": "API_DEFINITION",
282-
"description": " Deletes the specified key.",
283-
"canonical": true,
284-
"file": "recaptcha_enterprise_service_v1_beta1.delete_key.js",
285-
"language": "JAVASCRIPT",
286-
"segments": [
287-
{
288-
"start": 25,
289-
"end": 51,
290-
"type": "FULL"
291-
}
292-
],
293-
"clientMethod": {
294-
"shortName": "DeleteKey",
295-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.DeleteKey",
296-
"async": true,
297-
"parameters": [
298-
{
299-
"name": "name",
300-
"type": "TYPE_STRING"
301-
}
302-
],
303-
"resultType": ".google.protobuf.Empty",
95+
"resultType": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse",
30496
"client": {
30597
"shortName": "RecaptchaEnterpriseServiceV1Beta1Client",
30698
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client"
30799
},
308100
"method": {
309-
"shortName": "DeleteKey",
310-
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.DeleteKey",
101+
"shortName": "AnnotateAssessment",
102+
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment",
311103
"service": {
312104
"shortName": "RecaptchaEnterpriseServiceV1Beta1",
313105
"fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1"

src/v1beta1/gapic_metadata.json

-54
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,6 @@
1919
"methods": [
2020
"annotateAssessment"
2121
]
22-
},
23-
"CreateKey": {
24-
"methods": [
25-
"createKey"
26-
]
27-
},
28-
"GetKey": {
29-
"methods": [
30-
"getKey"
31-
]
32-
},
33-
"UpdateKey": {
34-
"methods": [
35-
"updateKey"
36-
]
37-
},
38-
"DeleteKey": {
39-
"methods": [
40-
"deleteKey"
41-
]
42-
},
43-
"ListKeys": {
44-
"methods": [
45-
"listKeys",
46-
"listKeysStream",
47-
"listKeysAsync"
48-
]
4922
}
5023
}
5124
},
@@ -61,33 +34,6 @@
6134
"methods": [
6235
"annotateAssessment"
6336
]
64-
},
65-
"CreateKey": {
66-
"methods": [
67-
"createKey"
68-
]
69-
},
70-
"GetKey": {
71-
"methods": [
72-
"getKey"
73-
]
74-
},
75-
"UpdateKey": {
76-
"methods": [
77-
"updateKey"
78-
]
79-
},
80-
"DeleteKey": {
81-
"methods": [
82-
"deleteKey"
83-
]
84-
},
85-
"ListKeys": {
86-
"methods": [
87-
"listKeys",
88-
"listKeysStream",
89-
"listKeysAsync"
90-
]
9137
}
9238
}
9339
}

0 commit comments

Comments
 (0)