Skip to content

Commit

Permalink
chore: regenerate recaptchaenterprise client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot committed May 19, 2024
1 parent 09822b1 commit 7145a69
Show file tree
Hide file tree
Showing 13 changed files with 458 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-recaptchaenterprise</artifactId>
<version>v1-rev20231112-2.0.0</version>
<version>v1-rev20240324-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20231112-2.0.0'
implementation 'com.google.apis:google-api-services-recaptchaenterprise:v1-rev20240324-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,143 @@ public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}
/**
* Reorders all firewall policies.
*
* Create a request for the method "firewallpolicies.reorder".
*
* This request holds the parameters needed by the recaptchaenterprise server. After setting any
* optional parameters, call the {@link Reorder#execute()} method to invoke the remote operation.
*
* @param parent Required. The name of the project to list the policies for, in the format `projects/{project}`.
* @param content the {@link com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest}
* @return the request
*/
public Reorder reorder(java.lang.String parent, com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest content) throws java.io.IOException {
Reorder result = new Reorder(parent, content);
initialize(result);
return result;
}

public class Reorder extends RecaptchaEnterpriseRequest<com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse> {

private static final String REST_PATH = "v1/{+parent}/firewallpolicies:reorder";

private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+$");

/**
* Reorders all firewall policies.
*
* Create a request for the method "firewallpolicies.reorder".
*
* This request holds the parameters needed by the the recaptchaenterprise server. After setting
* any optional parameters, call the {@link Reorder#execute()} method to invoke the remote
* operation. <p> {@link
* Reorder#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param parent Required. The name of the project to list the policies for, in the format `projects/{project}`.
* @param content the {@link com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest}
* @since 1.13
*/
protected Reorder(java.lang.String parent, com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest content) {
super(RecaptchaEnterprise.this, "POST", REST_PATH, content, com.google.api.services.recaptchaenterprise.v1.model.GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+$");
}
}

@Override
public Reorder set$Xgafv(java.lang.String $Xgafv) {
return (Reorder) super.set$Xgafv($Xgafv);
}

@Override
public Reorder setAccessToken(java.lang.String accessToken) {
return (Reorder) super.setAccessToken(accessToken);
}

@Override
public Reorder setAlt(java.lang.String alt) {
return (Reorder) super.setAlt(alt);
}

@Override
public Reorder setCallback(java.lang.String callback) {
return (Reorder) super.setCallback(callback);
}

@Override
public Reorder setFields(java.lang.String fields) {
return (Reorder) super.setFields(fields);
}

@Override
public Reorder setKey(java.lang.String key) {
return (Reorder) super.setKey(key);
}

@Override
public Reorder setOauthToken(java.lang.String oauthToken) {
return (Reorder) super.setOauthToken(oauthToken);
}

@Override
public Reorder setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Reorder) super.setPrettyPrint(prettyPrint);
}

@Override
public Reorder setQuotaUser(java.lang.String quotaUser) {
return (Reorder) super.setQuotaUser(quotaUser);
}

@Override
public Reorder setUploadType(java.lang.String uploadType) {
return (Reorder) super.setUploadType(uploadType);
}

@Override
public Reorder setUploadProtocol(java.lang.String uploadProtocol) {
return (Reorder) super.setUploadProtocol(uploadProtocol);
}

/**
* Required. The name of the project to list the policies for, in the format
* `projects/{project}`.
*/
@com.google.api.client.util.Key
private java.lang.String parent;

/** Required. The name of the project to list the policies for, in the format `projects/{project}`.
*/
public java.lang.String getParent() {
return parent;
}

/**
* Required. The name of the project to list the policies for, in the format
* `projects/{project}`.
*/
public Reorder setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+$");
}
this.parent = parent;
return this;
}

@Override
public Reorder set(String parameterName, Object value) {
return (Reorder) super.set(parameterName, value);
}
}

}
/**
Expand Down Expand Up @@ -3201,5 +3338,10 @@ public Builder setGoogleClientRequestInitializer(
com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) {
return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer);
}

@Override
public Builder setUniverseDomain(String universeDomain) {
return (Builder) super.setUniverseDomain(universeDomain);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo exten

/**
* Username of the account that is being verified. Deprecated. Customers should now provide the
* hashed account ID field in Event.
* `account_id` field in `event.user_info`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -115,7 +115,7 @@ public GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo setLatestVerifica

/**
* Username of the account that is being verified. Deprecated. Customers should now provide the
* hashed account ID field in Event.
* `account_id` field in `event.user_info`.
* @return value or {@code null} for none
*/
public java.lang.String getUsername() {
Expand All @@ -124,7 +124,7 @@ public java.lang.String getUsername() {

/**
* Username of the account that is being verified. Deprecated. Customers should now provide the
* hashed account ID field in Event.
* `account_id` field in `event.user_info`.
* @param username username or {@code null} for none
*/
public GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo setUsername(java.lang.String username) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ public final class GoogleCloudRecaptchaenterpriseV1Event extends com.google.api.
@com.google.api.client.util.Key
private java.lang.Boolean firewallPolicyEvaluation;

/**
* Optional. The Fraud Prevention setting for this assessment.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fraudPrevention;

/**
* Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier
* for the request. The identifier must be hashed using hmac-sha256 with stable secret.
Expand Down Expand Up @@ -199,6 +206,23 @@ public GoogleCloudRecaptchaenterpriseV1Event setFirewallPolicyEvaluation(java.la
return this;
}

/**
* Optional. The Fraud Prevention setting for this assessment.
* @return value or {@code null} for none
*/
public java.lang.String getFraudPrevention() {
return fraudPrevention;
}

/**
* Optional. The Fraud Prevention setting for this assessment.
* @param fraudPrevention fraudPrevention or {@code null} for none
*/
public GoogleCloudRecaptchaenterpriseV1Event setFraudPrevention(java.lang.String fraudPrevention) {
this.fraudPrevention = fraudPrevention;
return this;
}

/**
* Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed user identifier
* for the request. The identifier must be hashed using hmac-sha256 with stable secret.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ public final class GoogleCloudRecaptchaenterpriseV1FirewallAction extends com.go
@com.google.api.client.util.Key
private GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction block;

/**
* This action will inject reCAPTCHA JavaScript code into the HTML page returned by the site
* backend.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction includeRecaptchaScript;

/**
* This action will redirect the request to a ReCaptcha interstitial to attach a token.
* The value may be {@code null}.
Expand Down Expand Up @@ -102,6 +110,25 @@ public GoogleCloudRecaptchaenterpriseV1FirewallAction setBlock(GoogleCloudRecapt
return this;
}

/**
* This action will inject reCAPTCHA JavaScript code into the HTML page returned by the site
* backend.
* @return value or {@code null} for none
*/
public GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction getIncludeRecaptchaScript() {
return includeRecaptchaScript;
}

/**
* This action will inject reCAPTCHA JavaScript code into the HTML page returned by the site
* backend.
* @param includeRecaptchaScript includeRecaptchaScript or {@code null} for none
*/
public GoogleCloudRecaptchaenterpriseV1FirewallAction setIncludeRecaptchaScript(GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction includeRecaptchaScript) {
this.includeRecaptchaScript = includeRecaptchaScript;
return this;
}

/**
* This action will redirect the request to a ReCaptcha interstitial to attach a token.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.recaptchaenterprise.v1.model;

/**
* An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML
* returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the
* requested web page, issuing tokens as a cookie within the site domain, and enabling their
* utilization in subsequent page requests.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction extends com.google.api.client.json.GenericJson {

@Override
public GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction set(String fieldName, Object value) {
return (GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction) super.set(fieldName, value);
}

@Override
public GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction clone() {
return (GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.google.api.services.recaptchaenterprise.v1.model;

/**
* Response to request to list firewall policies belonging to a key.
* Response to request to list firewall policies belonging to a project.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation
Expand Down

0 comments on commit 7145a69

Please sign in to comment.