Skip to content

Commit b3e7648

Browse files
1 parent 702f39f commit b3e7648

23 files changed

Lines changed: 1384 additions & 21 deletions

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-rev20260517-2.0.0</version>
25+
<version>v1-rev20260707-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-rev20260517-2.0.0'
38+
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20260707-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 309 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,151 @@ public GetMetrics set(String parameterName, Object value) {
21162116
return (GetMetrics) super.set(parameterName, value);
21172117
}
21182118
}
2119+
/**
2120+
* Get the policy for a key.
2121+
*
2122+
* Create a request for the method "keys.getPolicy".
2123+
*
2124+
* This request holds the parameters needed by the recaptchaenterprise server. After setting any
2125+
* optional parameters, call the {@link GetPolicy#execute()} method to invoke the remote operation.
2126+
*
2127+
* @param name Required. The name of the policy to get, in the format `projects/{project}/keys/{key}/policy`.
2128+
* @return the request
2129+
*/
2130+
public GetPolicy getPolicy(java.lang.String name) throws java.io.IOException {
2131+
GetPolicy result = new GetPolicy(name);
2132+
initialize(result);
2133+
return result;
2134+
}
2135+
2136+
public class GetPolicy extends RecaptchaEnterpriseRequest<com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy> {
2137+
2138+
private static final String REST_PATH = "v1/{+name}";
2139+
2140+
private final java.util.regex.Pattern NAME_PATTERN =
2141+
java.util.regex.Pattern.compile("^projects/[^/]+/keys/[^/]+/policy$");
2142+
2143+
/**
2144+
* Get the policy for a key.
2145+
*
2146+
* Create a request for the method "keys.getPolicy".
2147+
*
2148+
* This request holds the parameters needed by the the recaptchaenterprise server. After setting
2149+
* any optional parameters, call the {@link GetPolicy#execute()} method to invoke the remote
2150+
* operation. <p> {@link
2151+
* GetPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
2152+
* must be called to initialize this instance immediately after invoking the constructor. </p>
2153+
*
2154+
* @param name Required. The name of the policy to get, in the format `projects/{project}/keys/{key}/policy`.
2155+
* @since 1.13
2156+
*/
2157+
protected GetPolicy(java.lang.String name) {
2158+
super(RecaptchaEnterprise.this, "GET", REST_PATH, null, com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy.class);
2159+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2160+
if (!getSuppressPatternChecks()) {
2161+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2162+
"Parameter name must conform to the pattern " +
2163+
"^projects/[^/]+/keys/[^/]+/policy$");
2164+
}
2165+
}
2166+
2167+
@Override
2168+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
2169+
return super.executeUsingHead();
2170+
}
2171+
2172+
@Override
2173+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
2174+
return super.buildHttpRequestUsingHead();
2175+
}
2176+
2177+
@Override
2178+
public GetPolicy set$Xgafv(java.lang.String $Xgafv) {
2179+
return (GetPolicy) super.set$Xgafv($Xgafv);
2180+
}
2181+
2182+
@Override
2183+
public GetPolicy setAccessToken(java.lang.String accessToken) {
2184+
return (GetPolicy) super.setAccessToken(accessToken);
2185+
}
2186+
2187+
@Override
2188+
public GetPolicy setAlt(java.lang.String alt) {
2189+
return (GetPolicy) super.setAlt(alt);
2190+
}
2191+
2192+
@Override
2193+
public GetPolicy setCallback(java.lang.String callback) {
2194+
return (GetPolicy) super.setCallback(callback);
2195+
}
2196+
2197+
@Override
2198+
public GetPolicy setFields(java.lang.String fields) {
2199+
return (GetPolicy) super.setFields(fields);
2200+
}
2201+
2202+
@Override
2203+
public GetPolicy setKey(java.lang.String key) {
2204+
return (GetPolicy) super.setKey(key);
2205+
}
2206+
2207+
@Override
2208+
public GetPolicy setOauthToken(java.lang.String oauthToken) {
2209+
return (GetPolicy) super.setOauthToken(oauthToken);
2210+
}
2211+
2212+
@Override
2213+
public GetPolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
2214+
return (GetPolicy) super.setPrettyPrint(prettyPrint);
2215+
}
2216+
2217+
@Override
2218+
public GetPolicy setQuotaUser(java.lang.String quotaUser) {
2219+
return (GetPolicy) super.setQuotaUser(quotaUser);
2220+
}
2221+
2222+
@Override
2223+
public GetPolicy setUploadType(java.lang.String uploadType) {
2224+
return (GetPolicy) super.setUploadType(uploadType);
2225+
}
2226+
2227+
@Override
2228+
public GetPolicy setUploadProtocol(java.lang.String uploadProtocol) {
2229+
return (GetPolicy) super.setUploadProtocol(uploadProtocol);
2230+
}
2231+
2232+
/**
2233+
* Required. The name of the policy to get, in the format
2234+
* `projects/{project}/keys/{key}/policy`.
2235+
*/
2236+
@com.google.api.client.util.Key
2237+
private java.lang.String name;
2238+
2239+
/** Required. The name of the policy to get, in the format `projects/{project}/keys/{key}/policy`.
2240+
*/
2241+
public java.lang.String getName() {
2242+
return name;
2243+
}
2244+
2245+
/**
2246+
* Required. The name of the policy to get, in the format
2247+
* `projects/{project}/keys/{key}/policy`.
2248+
*/
2249+
public GetPolicy setName(java.lang.String name) {
2250+
if (!getSuppressPatternChecks()) {
2251+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2252+
"Parameter name must conform to the pattern " +
2253+
"^projects/[^/]+/keys/[^/]+/policy$");
2254+
}
2255+
this.name = name;
2256+
return this;
2257+
}
2258+
2259+
@Override
2260+
public GetPolicy set(String parameterName, Object value) {
2261+
return (GetPolicy) super.set(parameterName, value);
2262+
}
2263+
}
21192264
/**
21202265
* Returns the list of all keys that belong to a project.
21212266
*
@@ -3053,6 +3198,170 @@ public RetrieveLegacySecretKey set(String parameterName, Object value) {
30533198
return (RetrieveLegacySecretKey) super.set(parameterName, value);
30543199
}
30553200
}
3201+
/**
3202+
* Updates the policy for a key.
3203+
*
3204+
* Create a request for the method "keys.updatePolicy".
3205+
*
3206+
* This request holds the parameters needed by the recaptchaenterprise server. After setting any
3207+
* optional parameters, call the {@link UpdatePolicy#execute()} method to invoke the remote
3208+
* operation.
3209+
*
3210+
* @param name Identifier. Resource name for this policy. Format: "projects/{project}/keys/{key}/policy" for a
3211+
* policy under a key.
3212+
* @param content the {@link com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy}
3213+
* @return the request
3214+
*/
3215+
public UpdatePolicy updatePolicy(java.lang.String name, com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy content) throws java.io.IOException {
3216+
UpdatePolicy result = new UpdatePolicy(name, content);
3217+
initialize(result);
3218+
return result;
3219+
}
3220+
3221+
public class UpdatePolicy extends RecaptchaEnterpriseRequest<com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy> {
3222+
3223+
private static final String REST_PATH = "v1/{+name}";
3224+
3225+
private final java.util.regex.Pattern NAME_PATTERN =
3226+
java.util.regex.Pattern.compile("^projects/[^/]+/keys/[^/]+/policy$");
3227+
3228+
/**
3229+
* Updates the policy for a key.
3230+
*
3231+
* Create a request for the method "keys.updatePolicy".
3232+
*
3233+
* This request holds the parameters needed by the the recaptchaenterprise server. After setting
3234+
* any optional parameters, call the {@link UpdatePolicy#execute()} method to invoke the remote
3235+
* operation. <p> {@link
3236+
* UpdatePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
3237+
* must be called to initialize this instance immediately after invoking the constructor. </p>
3238+
*
3239+
* @param name Identifier. Resource name for this policy. Format: "projects/{project}/keys/{key}/policy" for a
3240+
* policy under a key.
3241+
* @param content the {@link com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy}
3242+
* @since 1.13
3243+
*/
3244+
protected UpdatePolicy(java.lang.String name, com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy content) {
3245+
super(RecaptchaEnterprise.this, "PATCH", REST_PATH, content, com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1Policy.class);
3246+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
3247+
if (!getSuppressPatternChecks()) {
3248+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3249+
"Parameter name must conform to the pattern " +
3250+
"^projects/[^/]+/keys/[^/]+/policy$");
3251+
}
3252+
}
3253+
3254+
@Override
3255+
public UpdatePolicy set$Xgafv(java.lang.String $Xgafv) {
3256+
return (UpdatePolicy) super.set$Xgafv($Xgafv);
3257+
}
3258+
3259+
@Override
3260+
public UpdatePolicy setAccessToken(java.lang.String accessToken) {
3261+
return (UpdatePolicy) super.setAccessToken(accessToken);
3262+
}
3263+
3264+
@Override
3265+
public UpdatePolicy setAlt(java.lang.String alt) {
3266+
return (UpdatePolicy) super.setAlt(alt);
3267+
}
3268+
3269+
@Override
3270+
public UpdatePolicy setCallback(java.lang.String callback) {
3271+
return (UpdatePolicy) super.setCallback(callback);
3272+
}
3273+
3274+
@Override
3275+
public UpdatePolicy setFields(java.lang.String fields) {
3276+
return (UpdatePolicy) super.setFields(fields);
3277+
}
3278+
3279+
@Override
3280+
public UpdatePolicy setKey(java.lang.String key) {
3281+
return (UpdatePolicy) super.setKey(key);
3282+
}
3283+
3284+
@Override
3285+
public UpdatePolicy setOauthToken(java.lang.String oauthToken) {
3286+
return (UpdatePolicy) super.setOauthToken(oauthToken);
3287+
}
3288+
3289+
@Override
3290+
public UpdatePolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
3291+
return (UpdatePolicy) super.setPrettyPrint(prettyPrint);
3292+
}
3293+
3294+
@Override
3295+
public UpdatePolicy setQuotaUser(java.lang.String quotaUser) {
3296+
return (UpdatePolicy) super.setQuotaUser(quotaUser);
3297+
}
3298+
3299+
@Override
3300+
public UpdatePolicy setUploadType(java.lang.String uploadType) {
3301+
return (UpdatePolicy) super.setUploadType(uploadType);
3302+
}
3303+
3304+
@Override
3305+
public UpdatePolicy setUploadProtocol(java.lang.String uploadProtocol) {
3306+
return (UpdatePolicy) super.setUploadProtocol(uploadProtocol);
3307+
}
3308+
3309+
/**
3310+
* Identifier. Resource name for this policy. Format: "projects/{project}/keys/{key}/policy"
3311+
* for a policy under a key.
3312+
*/
3313+
@com.google.api.client.util.Key
3314+
private java.lang.String name;
3315+
3316+
/** Identifier. Resource name for this policy. Format: "projects/{project}/keys/{key}/policy" for a
3317+
policy under a key.
3318+
*/
3319+
public java.lang.String getName() {
3320+
return name;
3321+
}
3322+
3323+
/**
3324+
* Identifier. Resource name for this policy. Format: "projects/{project}/keys/{key}/policy"
3325+
* for a policy under a key.
3326+
*/
3327+
public UpdatePolicy setName(java.lang.String name) {
3328+
if (!getSuppressPatternChecks()) {
3329+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
3330+
"Parameter name must conform to the pattern " +
3331+
"^projects/[^/]+/keys/[^/]+/policy$");
3332+
}
3333+
this.name = name;
3334+
return this;
3335+
}
3336+
3337+
/**
3338+
* Optional. The mask to control which fields of the policy get updated. If the mask is not
3339+
* present, all fields are updated.
3340+
*/
3341+
@com.google.api.client.util.Key
3342+
private String updateMask;
3343+
3344+
/** Optional. The mask to control which fields of the policy get updated. If the mask is not present,
3345+
all fields are updated.
3346+
*/
3347+
public String getUpdateMask() {
3348+
return updateMask;
3349+
}
3350+
3351+
/**
3352+
* Optional. The mask to control which fields of the policy get updated. If the mask is not
3353+
* present, all fields are updated.
3354+
*/
3355+
public UpdatePolicy setUpdateMask(String updateMask) {
3356+
this.updateMask = updateMask;
3357+
return this;
3358+
}
3359+
3360+
@Override
3361+
public UpdatePolicy set(String parameterName, Object value) {
3362+
return (UpdatePolicy) super.set(parameterName, value);
3363+
}
3364+
}
30563365

30573366
}
30583367
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.recaptchaenterprise.v1.model;
1818

1919
/**
20-
* Account defender risk assessment.
20+
* Account defense risk assessment.
2121
*
2222
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2323
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.recaptchaenterprise.v1.model;
1818

1919
/**
20-
* Risk explainability reasons for account defender.
20+
* Risk explainability reasons for Account defense.
2121
*
2222
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2323
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.recaptchaenterprise.v1.model;
1818

1919
/**
20-
* Trust explainability reasons for account defender.
20+
* Trust explainability reasons for Account defense.
2121
*
2222
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2323
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation

0 commit comments

Comments
 (0)