Skip to content

Commit b5be5fc

Browse files
feat(recaptchaenterprise): update the api
#### recaptchaenterprise:v1 The following keys were added: - resources.projects.resources.keys.methods.retrieveLegacySecretKey (Total Keys: 11) - schemas.GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse (Total Keys: 3)
1 parent 6ea37ef commit b5be5fc

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

docs/dyn/recaptchaenterprise_v1.projects.keys.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ <h2>Instance Methods</h2>
101101
<p class="toc_element">
102102
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
103103
<p class="firstline">Updates the specified key.</p>
104+
<p class="toc_element">
105+
<code><a href="#retrieveLegacySecretKey">retrieveLegacySecretKey(x__xgafv=None)</a></code></p>
106+
<p class="firstline">Returns the secret key related to the specified public key. You should use the legacy secret key only if you are integrating with a 3rd party using the legacy reCAPTCHA instead of reCAPTCHA Enterprise.</p>
104107
<h3>Method Details</h3>
105108
<div class="method">
106109
<code class="details" id="close">close()</code>
@@ -544,4 +547,22 @@ <h3>Method Details</h3>
544547
}</pre>
545548
</div>
546549

550+
<div class="method">
551+
<code class="details" id="retrieveLegacySecretKey">retrieveLegacySecretKey(x__xgafv=None)</code>
552+
<pre>Returns the secret key related to the specified public key. You should use the legacy secret key only if you are integrating with a 3rd party using the legacy reCAPTCHA instead of reCAPTCHA Enterprise.
553+
554+
Args:
555+
x__xgafv: string, V1 error format.
556+
Allowed values
557+
1 - v1 error format
558+
2 - v2 error format
559+
560+
Returns:
561+
An object of the form:
562+
563+
{ # Secret key used in legacy reCAPTCHA only. Should be used when integrating with a 3rd party which is still using legacy reCAPTCHA.
564+
&quot;legacySecretKey&quot;: &quot;A String&quot;, # The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.
565+
}</pre>
566+
</div>
567+
547568
</body></html>

googleapiclient/discovery_cache/documents/recaptchaenterprise.v1.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,31 @@
369369
"scopes": [
370370
"https://www.googleapis.com/auth/cloud-platform"
371371
]
372+
},
373+
"retrieveLegacySecretKey": {
374+
"description": "Returns the secret key related to the specified public key. You should use the legacy secret key only if you are integrating with a 3rd party using the legacy reCAPTCHA instead of reCAPTCHA Enterprise.",
375+
"flatPath": "v1/projects/{projectsId}/keys/{keysId}:retrieveLegacySecretKey",
376+
"httpMethod": "GET",
377+
"id": "recaptchaenterprise.projects.keys.retrieveLegacySecretKey",
378+
"parameterOrder": [
379+
"key"
380+
],
381+
"parameters": {
382+
"key": {
383+
"description": "Required. The public key name linked to the requested secret key , in the format \"projects/{project}/keys/{key}\".",
384+
"location": "path",
385+
"pattern": "^projects/[^/]+/keys/[^/]+$",
386+
"required": true,
387+
"type": "string"
388+
}
389+
},
390+
"path": "v1/{+key}:retrieveLegacySecretKey",
391+
"response": {
392+
"$ref": "GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse"
393+
},
394+
"scopes": [
395+
"https://www.googleapis.com/auth/cloud-platform"
396+
]
372397
}
373398
}
374399
},
@@ -489,7 +514,7 @@
489514
}
490515
}
491516
},
492-
"revision": "20220429",
517+
"revision": "20220505",
493518
"rootUrl": "https://recaptchaenterprise.googleapis.com/",
494519
"schemas": {
495520
"GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": {
@@ -876,6 +901,17 @@
876901
},
877902
"type": "object"
878903
},
904+
"GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse": {
905+
"description": "Secret key used in legacy reCAPTCHA only. Should be used when integrating with a 3rd party which is still using legacy reCAPTCHA.",
906+
"id": "GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse",
907+
"properties": {
908+
"legacySecretKey": {
909+
"description": "The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.",
910+
"type": "string"
911+
}
912+
},
913+
"type": "object"
914+
},
879915
"GoogleCloudRecaptchaenterpriseV1RiskAnalysis": {
880916
"description": "Risk analysis result for an event.",
881917
"id": "GoogleCloudRecaptchaenterpriseV1RiskAnalysis",

0 commit comments

Comments
 (0)