|
349 | 349 | },
|
350 | 350 | "keys": {
|
351 | 351 | "methods": {
|
| 352 | +"addIpOverride": { |
| 353 | +"description": "Adds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 100. * For any conflict (such as IP already exists or IP part of an existing IP range), an error will be returned.", |
| 354 | +"flatPath": "v1/projects/{projectsId}/keys/{keysId}:addIpOverride", |
| 355 | +"httpMethod": "POST", |
| 356 | +"id": "recaptchaenterprise.projects.keys.addIpOverride", |
| 357 | +"parameterOrder": [ |
| 358 | +"name" |
| 359 | +], |
| 360 | +"parameters": { |
| 361 | +"name": { |
| 362 | +"description": "Required. The name of the key to which the IP override is added, in the format `projects/{project}/keys/{key}`.", |
| 363 | +"location": "path", |
| 364 | +"pattern": "^projects/[^/]+/keys/[^/]+$", |
| 365 | +"required": true, |
| 366 | +"type": "string" |
| 367 | +} |
| 368 | +}, |
| 369 | +"path": "v1/{+name}:addIpOverride", |
| 370 | +"request": { |
| 371 | +"$ref": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest" |
| 372 | +}, |
| 373 | +"response": { |
| 374 | +"$ref": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse" |
| 375 | +}, |
| 376 | +"scopes": [ |
| 377 | +"https://www.googleapis.com/auth/cloud-platform" |
| 378 | +] |
| 379 | +}, |
352 | 380 | "create": {
|
353 | 381 | "description": "Creates a new reCAPTCHA Enterprise key.",
|
354 | 382 | "flatPath": "v1/projects/{projectsId}/keys",
|
|
694 | 722 | }
|
695 | 723 | }
|
696 | 724 | },
|
697 |
| -"revision": "20240713", |
| 725 | +"revision": "20240721", |
698 | 726 | "rootUrl": "https://recaptchaenterprise.googleapis.com/",
|
699 | 727 | "schemas": {
|
700 | 728 | "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": {
|
|
778 | 806 | },
|
779 | 807 | "type": "object"
|
780 | 808 | },
|
| 809 | +"GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest": { |
| 810 | +"description": "The AddIpOverride request message.", |
| 811 | +"id": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest", |
| 812 | +"properties": { |
| 813 | +"ipOverrideData": { |
| 814 | +"$ref": "GoogleCloudRecaptchaenterpriseV1IpOverrideData", |
| 815 | +"description": "Required. IP override added to the key." |
| 816 | +} |
| 817 | +}, |
| 818 | +"type": "object" |
| 819 | +}, |
| 820 | +"GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse": { |
| 821 | +"description": "Response for AddIpOverride.", |
| 822 | +"id": "GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse", |
| 823 | +"properties": {}, |
| 824 | +"type": "object" |
| 825 | +}, |
781 | 826 | "GoogleCloudRecaptchaenterpriseV1AndroidKeySettings": {
|
782 | 827 | "description": "Settings specific to keys that can be used by Android apps.",
|
783 | 828 | "id": "GoogleCloudRecaptchaenterpriseV1AndroidKeySettings",
|
@@ -1391,6 +1436,29 @@ true
|
1391 | 1436 | },
|
1392 | 1437 | "type": "object"
|
1393 | 1438 | },
|
| 1439 | +"GoogleCloudRecaptchaenterpriseV1IpOverrideData": { |
| 1440 | +"description": "Information about the IP or IP range override.", |
| 1441 | +"id": "GoogleCloudRecaptchaenterpriseV1IpOverrideData", |
| 1442 | +"properties": { |
| 1443 | +"ip": { |
| 1444 | +"description": "Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48", |
| 1445 | +"type": "string" |
| 1446 | +}, |
| 1447 | +"overrideType": { |
| 1448 | +"description": "Required. Describes the type of IP override.", |
| 1449 | +"enum": [ |
| 1450 | +"OVERRIDE_TYPE_UNSPECIFIED", |
| 1451 | +"ALLOW" |
| 1452 | +], |
| 1453 | +"enumDescriptions": [ |
| 1454 | +"Default override type that indicates this enum hasn't been specified.", |
| 1455 | +"Allowlist the IP address; i.e. give a `risk_analysis.score` of 0.9 for all valid assessments." |
| 1456 | +], |
| 1457 | +"type": "string" |
| 1458 | +} |
| 1459 | +}, |
| 1460 | +"type": "object" |
| 1461 | +}, |
1394 | 1462 | "GoogleCloudRecaptchaenterpriseV1Key": {
|
1395 | 1463 | "description": "A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.",
|
1396 | 1464 | "id": "GoogleCloudRecaptchaenterpriseV1Key",
|
|
0 commit comments