Skip to content

Commit 65b3641

Browse files
1 parent c0ff981 commit 65b3641

File tree

5 files changed

+243
-6
lines changed

5 files changed

+243
-6
lines changed

clients/google-api-services-beyondcorp/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-beyondcorp</artifactId>
25-
<version>v1-rev20240424-2.0.0</version>
25+
<version>v1-rev20240802-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-beyondcorp:v1-rev20240424-2.0.0'
38+
implementation 'com.google.apis:google-api-services-beyondcorp:v1-rev20240802-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-beyondcorp/v1/2.0.0/com/google/api/services/beyondcorp/v1/BeyondCorp.java

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7619,6 +7619,177 @@ public SetIamPolicy set(String parameterName, Object value) {
76197619
return (SetIamPolicy) super.set(parameterName, value);
76207620
}
76217621
}
7622+
/**
7623+
* Calls the Bouncer method ShouldThrottle to check if a request should be throttled.
7624+
*
7625+
* Create a request for the method "appGateways.shouldThrottle".
7626+
*
7627+
* This request holds the parameters needed by the beyondcorp server. After setting any optional
7628+
* parameters, call the {@link ShouldThrottle#execute()} method to invoke the remote operation.
7629+
*
7630+
* @param name Required. Name of the resource
7631+
* @return the request
7632+
*/
7633+
public ShouldThrottle shouldThrottle(java.lang.String name) throws java.io.IOException {
7634+
ShouldThrottle result = new ShouldThrottle(name);
7635+
initialize(result);
7636+
return result;
7637+
}
7638+
7639+
public class ShouldThrottle extends BeyondCorpRequest<com.google.api.services.beyondcorp.v1.model.ShouldThrottleResponse> {
7640+
7641+
private static final String REST_PATH = "v1/{+name}:shouldThrottle";
7642+
7643+
private final java.util.regex.Pattern NAME_PATTERN =
7644+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$");
7645+
7646+
/**
7647+
* Calls the Bouncer method ShouldThrottle to check if a request should be throttled.
7648+
*
7649+
* Create a request for the method "appGateways.shouldThrottle".
7650+
*
7651+
* This request holds the parameters needed by the the beyondcorp server. After setting any
7652+
* optional parameters, call the {@link ShouldThrottle#execute()} method to invoke the remote
7653+
* operation. <p> {@link ShouldThrottle#initialize(com.google.api.client.googleapis.services.Abstr
7654+
* actGoogleClientRequest)} must be called to initialize this instance immediately after invoking
7655+
* the constructor. </p>
7656+
*
7657+
* @param name Required. Name of the resource
7658+
* @since 1.13
7659+
*/
7660+
protected ShouldThrottle(java.lang.String name) {
7661+
super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1.model.ShouldThrottleResponse.class);
7662+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
7663+
if (!getSuppressPatternChecks()) {
7664+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
7665+
"Parameter name must conform to the pattern " +
7666+
"^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$");
7667+
}
7668+
}
7669+
7670+
@Override
7671+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
7672+
return super.executeUsingHead();
7673+
}
7674+
7675+
@Override
7676+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
7677+
return super.buildHttpRequestUsingHead();
7678+
}
7679+
7680+
@Override
7681+
public ShouldThrottle set$Xgafv(java.lang.String $Xgafv) {
7682+
return (ShouldThrottle) super.set$Xgafv($Xgafv);
7683+
}
7684+
7685+
@Override
7686+
public ShouldThrottle setAccessToken(java.lang.String accessToken) {
7687+
return (ShouldThrottle) super.setAccessToken(accessToken);
7688+
}
7689+
7690+
@Override
7691+
public ShouldThrottle setAlt(java.lang.String alt) {
7692+
return (ShouldThrottle) super.setAlt(alt);
7693+
}
7694+
7695+
@Override
7696+
public ShouldThrottle setCallback(java.lang.String callback) {
7697+
return (ShouldThrottle) super.setCallback(callback);
7698+
}
7699+
7700+
@Override
7701+
public ShouldThrottle setFields(java.lang.String fields) {
7702+
return (ShouldThrottle) super.setFields(fields);
7703+
}
7704+
7705+
@Override
7706+
public ShouldThrottle setKey(java.lang.String key) {
7707+
return (ShouldThrottle) super.setKey(key);
7708+
}
7709+
7710+
@Override
7711+
public ShouldThrottle setOauthToken(java.lang.String oauthToken) {
7712+
return (ShouldThrottle) super.setOauthToken(oauthToken);
7713+
}
7714+
7715+
@Override
7716+
public ShouldThrottle setPrettyPrint(java.lang.Boolean prettyPrint) {
7717+
return (ShouldThrottle) super.setPrettyPrint(prettyPrint);
7718+
}
7719+
7720+
@Override
7721+
public ShouldThrottle setQuotaUser(java.lang.String quotaUser) {
7722+
return (ShouldThrottle) super.setQuotaUser(quotaUser);
7723+
}
7724+
7725+
@Override
7726+
public ShouldThrottle setUploadType(java.lang.String uploadType) {
7727+
return (ShouldThrottle) super.setUploadType(uploadType);
7728+
}
7729+
7730+
@Override
7731+
public ShouldThrottle setUploadProtocol(java.lang.String uploadProtocol) {
7732+
return (ShouldThrottle) super.setUploadProtocol(uploadProtocol);
7733+
}
7734+
7735+
/** Required. Name of the resource */
7736+
@com.google.api.client.util.Key
7737+
private java.lang.String name;
7738+
7739+
/** Required. Name of the resource
7740+
*/
7741+
public java.lang.String getName() {
7742+
return name;
7743+
}
7744+
7745+
/** Required. Name of the resource */
7746+
public ShouldThrottle setName(java.lang.String name) {
7747+
if (!getSuppressPatternChecks()) {
7748+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
7749+
"Parameter name must conform to the pattern " +
7750+
"^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$");
7751+
}
7752+
this.name = name;
7753+
return this;
7754+
}
7755+
7756+
/** Optional. The port that is being throttled */
7757+
@com.google.api.client.util.Key
7758+
private java.lang.Integer port;
7759+
7760+
/** Optional. The port that is being throttled
7761+
*/
7762+
public java.lang.Integer getPort() {
7763+
return port;
7764+
}
7765+
7766+
/** Optional. The port that is being throttled */
7767+
public ShouldThrottle setPort(java.lang.Integer port) {
7768+
this.port = port;
7769+
return this;
7770+
}
7771+
7772+
/** Optional. The current throughput through the port (mbps) */
7773+
@com.google.api.client.util.Key
7774+
private java.lang.Long requestedAmount;
7775+
7776+
/** Optional. The current throughput through the port (mbps)
7777+
*/
7778+
public java.lang.Long getRequestedAmount() {
7779+
return requestedAmount;
7780+
}
7781+
7782+
/** Optional. The current throughput through the port (mbps) */
7783+
public ShouldThrottle setRequestedAmount(java.lang.Long requestedAmount) {
7784+
this.requestedAmount = requestedAmount;
7785+
return this;
7786+
}
7787+
7788+
@Override
7789+
public ShouldThrottle set(String parameterName, Object value) {
7790+
return (ShouldThrottle) super.set(parameterName, value);
7791+
}
7792+
}
76227793
/**
76237794
* Returns permissions that a caller has on the specified resource. If the resource does not exist,
76247795
* this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.beyondcorp.v1.model;
18+
19+
/**
20+
* Response message for calling ShouldThrottle
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 BeyondCorp API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class ShouldThrottleResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Whether the port should be throttled
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.Boolean shouldThrottle;
38+
39+
/**
40+
* Whether the port should be throttled
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.Boolean getShouldThrottle() {
44+
return shouldThrottle;
45+
}
46+
47+
/**
48+
* Whether the port should be throttled
49+
* @param shouldThrottle shouldThrottle or {@code null} for none
50+
*/
51+
public ShouldThrottleResponse setShouldThrottle(java.lang.Boolean shouldThrottle) {
52+
this.shouldThrottle = shouldThrottle;
53+
return this;
54+
}
55+
56+
@Override
57+
public ShouldThrottleResponse set(String fieldName, Object value) {
58+
return (ShouldThrottleResponse) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public ShouldThrottleResponse clone() {
63+
return (ShouldThrottleResponse) super.clone();
64+
}
65+
66+
}

clients/google-api-services-beyondcorp/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-beyondcorp</artifactId>
11-
<version>v1-rev20240424-2.0.0</version>
12-
<name>BeyondCorp API v1-rev20240424-2.0.0</name>
11+
<version>v1-rev20240802-2.0.0</version>
12+
<name>BeyondCorp API v1-rev20240802-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-beyondcorp/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-beyondcorp</artifactId>
25-
<version>v1-rev20240424-2.0.0</version>
25+
<version>v1-rev20240802-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-beyondcorp:v1-rev20240424-2.0.0'
38+
implementation 'com.google.apis:google-api-services-beyondcorp:v1-rev20240802-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)