Skip to content

Commit 390bbea

Browse files
1 parent aec3d4b commit 390bbea

File tree

7 files changed

+218
-15
lines changed

7 files changed

+218
-15
lines changed

clients/google-api-services-recaptchaenterprise/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-recaptchaenterprise</artifactId>
25-
<version>v1-rev20250608-2.0.0</version>
25+
<version>v1-rev20250706-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20250608-2.0.0'
38+
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20250706-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-recaptchaenterprise/v1/2.0.0/com/google/api/services/recaptchaenterprise/v1/model/GoogleCloudRecaptchaenterpriseV1RiskAnalysis.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
public final class GoogleCloudRecaptchaenterpriseV1RiskAnalysis extends com.google.api.client.json.GenericJson {
3232

3333
/**
34-
* Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
34+
* Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys
3535
* The value may be {@code null}.
3636
*/
3737
@com.google.api.client.util.Key
@@ -75,15 +75,15 @@ public final class GoogleCloudRecaptchaenterpriseV1RiskAnalysis extends com.goog
7575
}
7676

7777
/**
78-
* Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
78+
* Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys
7979
* @return value or {@code null} for none
8080
*/
8181
public java.lang.String getChallenge() {
8282
return challenge;
8383
}
8484

8585
/**
86-
* Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys
86+
* Output only. Challenge information for POLICY_BASED_CHALLENGE and INVISIBLE keys
8787
* @param challenge challenge or {@code null} for none
8888
*/
8989
public GoogleCloudRecaptchaenterpriseV1RiskAnalysis setChallenge(java.lang.String challenge) {

clients/google-api-services-recaptchaenterprise/v1/2.0.0/com/google/api/services/recaptchaenterprise/v1/model/GoogleCloudRecaptchaenterpriseV1WebKeySettings.java

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,20 @@ public final class GoogleCloudRecaptchaenterpriseV1WebKeySettings extends com.go
5656

5757
/**
5858
* Optional. Settings for the frequency and difficulty at which this key triggers captcha
59-
* challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE and
60-
* SCORE_AND_CHALLENGE.
59+
* challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or
60+
* POLICY_BASED_CHALLENGE.
6161
* The value may be {@code null}.
6262
*/
6363
@com.google.api.client.util.Key
6464
private java.lang.String challengeSecurityPreference;
6565

66+
/**
67+
* Optional. Challenge settings.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings challengeSettings;
72+
6673
/**
6774
* Required. Describes how this key is integrated with the website.
6875
* The value may be {@code null}.
@@ -129,8 +136,8 @@ public GoogleCloudRecaptchaenterpriseV1WebKeySettings setAllowedDomains(java.uti
129136

130137
/**
131138
* Optional. Settings for the frequency and difficulty at which this key triggers captcha
132-
* challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE and
133-
* SCORE_AND_CHALLENGE.
139+
* challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or
140+
* POLICY_BASED_CHALLENGE.
134141
* @return value or {@code null} for none
135142
*/
136143
public java.lang.String getChallengeSecurityPreference() {
@@ -139,15 +146,32 @@ public java.lang.String getChallengeSecurityPreference() {
139146

140147
/**
141148
* Optional. Settings for the frequency and difficulty at which this key triggers captcha
142-
* challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE and
143-
* SCORE_AND_CHALLENGE.
149+
* challenges. This should only be specified for `IntegrationType` CHECKBOX, INVISIBLE or
150+
* POLICY_BASED_CHALLENGE.
144151
* @param challengeSecurityPreference challengeSecurityPreference or {@code null} for none
145152
*/
146153
public GoogleCloudRecaptchaenterpriseV1WebKeySettings setChallengeSecurityPreference(java.lang.String challengeSecurityPreference) {
147154
this.challengeSecurityPreference = challengeSecurityPreference;
148155
return this;
149156
}
150157

158+
/**
159+
* Optional. Challenge settings.
160+
* @return value or {@code null} for none
161+
*/
162+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings getChallengeSettings() {
163+
return challengeSettings;
164+
}
165+
166+
/**
167+
* Optional. Challenge settings.
168+
* @param challengeSettings challengeSettings or {@code null} for none
169+
*/
170+
public GoogleCloudRecaptchaenterpriseV1WebKeySettings setChallengeSettings(GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings challengeSettings) {
171+
this.challengeSettings = challengeSettings;
172+
return this;
173+
}
174+
151175
/**
152176
* Required. Describes how this key is integrated with the website.
153177
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.recaptchaenterprise.v1.model;
18+
19+
/**
20+
* Per-action challenge settings.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. A challenge is triggered if the end-user score is below that threshold. Value must be
35+
* between 0 and 1 (inclusive).
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Float scoreThreshold;
40+
41+
/**
42+
* Required. A challenge is triggered if the end-user score is below that threshold. Value must be
43+
* between 0 and 1 (inclusive).
44+
* @return value or {@code null} for none
45+
*/
46+
public java.lang.Float getScoreThreshold() {
47+
return scoreThreshold;
48+
}
49+
50+
/**
51+
* Required. A challenge is triggered if the end-user score is below that threshold. Value must be
52+
* between 0 and 1 (inclusive).
53+
* @param scoreThreshold scoreThreshold or {@code null} for none
54+
*/
55+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings setScoreThreshold(java.lang.Float scoreThreshold) {
56+
this.scoreThreshold = scoreThreshold;
57+
return this;
58+
}
59+
60+
@Override
61+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings set(String fieldName, Object value) {
62+
return (GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings) super.set(fieldName, value);
63+
}
64+
65+
@Override
66+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings clone() {
67+
return (GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings) super.clone();
68+
}
69+
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.recaptchaenterprise.v1.model;
18+
19+
/**
20+
* Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is triggered.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The action to score threshold map. The action name should be the same as the action
35+
* name passed in the `data-action` attribute (see
36+
* https://cloud.google.com/recaptcha/docs/actions-website). Action names are case-insensitive.
37+
* There is a maximum of 100 action settings. An action name has a maximum length of 100.
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.util.Map<String, GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings> actionSettings;
42+
43+
static {
44+
// hack to force ProGuard to consider GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings used, since otherwise it would be stripped out
45+
// see https://github.com/google/google-api-java-client/issues/543
46+
com.google.api.client.util.Data.nullOf(GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.class);
47+
}
48+
49+
/**
50+
* Required. Defines when a challenge is triggered (unless the default threshold is overridden for
51+
* the given action, see `action_settings`).
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings defaultSettings;
56+
57+
/**
58+
* Optional. The action to score threshold map. The action name should be the same as the action
59+
* name passed in the `data-action` attribute (see
60+
* https://cloud.google.com/recaptcha/docs/actions-website). Action names are case-insensitive.
61+
* There is a maximum of 100 action settings. An action name has a maximum length of 100.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.util.Map<String, GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings> getActionSettings() {
65+
return actionSettings;
66+
}
67+
68+
/**
69+
* Optional. The action to score threshold map. The action name should be the same as the action
70+
* name passed in the `data-action` attribute (see
71+
* https://cloud.google.com/recaptcha/docs/actions-website). Action names are case-insensitive.
72+
* There is a maximum of 100 action settings. An action name has a maximum length of 100.
73+
* @param actionSettings actionSettings or {@code null} for none
74+
*/
75+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings setActionSettings(java.util.Map<String, GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings> actionSettings) {
76+
this.actionSettings = actionSettings;
77+
return this;
78+
}
79+
80+
/**
81+
* Required. Defines when a challenge is triggered (unless the default threshold is overridden for
82+
* the given action, see `action_settings`).
83+
* @return value or {@code null} for none
84+
*/
85+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings getDefaultSettings() {
86+
return defaultSettings;
87+
}
88+
89+
/**
90+
* Required. Defines when a challenge is triggered (unless the default threshold is overridden for
91+
* the given action, see `action_settings`).
92+
* @param defaultSettings defaultSettings or {@code null} for none
93+
*/
94+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings setDefaultSettings(GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings defaultSettings) {
95+
this.defaultSettings = defaultSettings;
96+
return this;
97+
}
98+
99+
@Override
100+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings set(String fieldName, Object value) {
101+
return (GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings) super.set(fieldName, value);
102+
}
103+
104+
@Override
105+
public GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings clone() {
106+
return (GoogleCloudRecaptchaenterpriseV1WebKeySettingsChallengeSettings) super.clone();
107+
}
108+
109+
}

clients/google-api-services-recaptchaenterprise/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-recaptchaenterprise</artifactId>
11-
<version>v1-rev20250608-2.0.0</version>
12-
<name>reCAPTCHA Enterprise API v1-rev20250608-2.0.0</name>
11+
<version>v1-rev20250706-2.0.0</version>
12+
<name>reCAPTCHA Enterprise API v1-rev20250706-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-recaptchaenterprise/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-recaptchaenterprise</artifactId>
25-
<version>v1-rev20250608-2.0.0</version>
25+
<version>v1-rev20250706-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20250608-2.0.0'
38+
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20250706-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)