Skip to content

Commit 44c8c0f

Browse files
1 parent c34f12e commit 44c8c0f

File tree

5 files changed

+243
-6
lines changed

5 files changed

+243
-6
lines changed

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

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

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12448,6 +12448,177 @@ public SetIamPolicy set(String parameterName, Object value) {
1244812448
return (SetIamPolicy) super.set(parameterName, value);
1244912449
}
1245012450
}
12451+
/**
12452+
* Calls the Bouncer method ShouldThrottle to check if a request should be throttled.
12453+
*
12454+
* Create a request for the method "appGateways.shouldThrottle".
12455+
*
12456+
* This request holds the parameters needed by the beyondcorp server. After setting any optional
12457+
* parameters, call the {@link ShouldThrottle#execute()} method to invoke the remote operation.
12458+
*
12459+
* @param name Required. Name of the resource
12460+
* @return the request
12461+
*/
12462+
public ShouldThrottle shouldThrottle(java.lang.String name) throws java.io.IOException {
12463+
ShouldThrottle result = new ShouldThrottle(name);
12464+
initialize(result);
12465+
return result;
12466+
}
12467+
12468+
public class ShouldThrottle extends BeyondCorpRequest<com.google.api.services.beyondcorp.v1alpha.model.ShouldThrottleResponse> {
12469+
12470+
private static final String REST_PATH = "v1alpha/{+name}:shouldThrottle";
12471+
12472+
private final java.util.regex.Pattern NAME_PATTERN =
12473+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$");
12474+
12475+
/**
12476+
* Calls the Bouncer method ShouldThrottle to check if a request should be throttled.
12477+
*
12478+
* Create a request for the method "appGateways.shouldThrottle".
12479+
*
12480+
* This request holds the parameters needed by the the beyondcorp server. After setting any
12481+
* optional parameters, call the {@link ShouldThrottle#execute()} method to invoke the remote
12482+
* operation. <p> {@link ShouldThrottle#initialize(com.google.api.client.googleapis.services.Abstr
12483+
* actGoogleClientRequest)} must be called to initialize this instance immediately after invoking
12484+
* the constructor. </p>
12485+
*
12486+
* @param name Required. Name of the resource
12487+
* @since 1.13
12488+
*/
12489+
protected ShouldThrottle(java.lang.String name) {
12490+
super(BeyondCorp.this, "GET", REST_PATH, null, com.google.api.services.beyondcorp.v1alpha.model.ShouldThrottleResponse.class);
12491+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
12492+
if (!getSuppressPatternChecks()) {
12493+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
12494+
"Parameter name must conform to the pattern " +
12495+
"^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$");
12496+
}
12497+
}
12498+
12499+
@Override
12500+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
12501+
return super.executeUsingHead();
12502+
}
12503+
12504+
@Override
12505+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
12506+
return super.buildHttpRequestUsingHead();
12507+
}
12508+
12509+
@Override
12510+
public ShouldThrottle set$Xgafv(java.lang.String $Xgafv) {
12511+
return (ShouldThrottle) super.set$Xgafv($Xgafv);
12512+
}
12513+
12514+
@Override
12515+
public ShouldThrottle setAccessToken(java.lang.String accessToken) {
12516+
return (ShouldThrottle) super.setAccessToken(accessToken);
12517+
}
12518+
12519+
@Override
12520+
public ShouldThrottle setAlt(java.lang.String alt) {
12521+
return (ShouldThrottle) super.setAlt(alt);
12522+
}
12523+
12524+
@Override
12525+
public ShouldThrottle setCallback(java.lang.String callback) {
12526+
return (ShouldThrottle) super.setCallback(callback);
12527+
}
12528+
12529+
@Override
12530+
public ShouldThrottle setFields(java.lang.String fields) {
12531+
return (ShouldThrottle) super.setFields(fields);
12532+
}
12533+
12534+
@Override
12535+
public ShouldThrottle setKey(java.lang.String key) {
12536+
return (ShouldThrottle) super.setKey(key);
12537+
}
12538+
12539+
@Override
12540+
public ShouldThrottle setOauthToken(java.lang.String oauthToken) {
12541+
return (ShouldThrottle) super.setOauthToken(oauthToken);
12542+
}
12543+
12544+
@Override
12545+
public ShouldThrottle setPrettyPrint(java.lang.Boolean prettyPrint) {
12546+
return (ShouldThrottle) super.setPrettyPrint(prettyPrint);
12547+
}
12548+
12549+
@Override
12550+
public ShouldThrottle setQuotaUser(java.lang.String quotaUser) {
12551+
return (ShouldThrottle) super.setQuotaUser(quotaUser);
12552+
}
12553+
12554+
@Override
12555+
public ShouldThrottle setUploadType(java.lang.String uploadType) {
12556+
return (ShouldThrottle) super.setUploadType(uploadType);
12557+
}
12558+
12559+
@Override
12560+
public ShouldThrottle setUploadProtocol(java.lang.String uploadProtocol) {
12561+
return (ShouldThrottle) super.setUploadProtocol(uploadProtocol);
12562+
}
12563+
12564+
/** Required. Name of the resource */
12565+
@com.google.api.client.util.Key
12566+
private java.lang.String name;
12567+
12568+
/** Required. Name of the resource
12569+
*/
12570+
public java.lang.String getName() {
12571+
return name;
12572+
}
12573+
12574+
/** Required. Name of the resource */
12575+
public ShouldThrottle setName(java.lang.String name) {
12576+
if (!getSuppressPatternChecks()) {
12577+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
12578+
"Parameter name must conform to the pattern " +
12579+
"^projects/[^/]+/locations/[^/]+/appGateways/[^/]+$");
12580+
}
12581+
this.name = name;
12582+
return this;
12583+
}
12584+
12585+
/** Optional. The port that is being throttled */
12586+
@com.google.api.client.util.Key
12587+
private java.lang.Integer port;
12588+
12589+
/** Optional. The port that is being throttled
12590+
*/
12591+
public java.lang.Integer getPort() {
12592+
return port;
12593+
}
12594+
12595+
/** Optional. The port that is being throttled */
12596+
public ShouldThrottle setPort(java.lang.Integer port) {
12597+
this.port = port;
12598+
return this;
12599+
}
12600+
12601+
/** Optional. The current throughput through the port (mbps) */
12602+
@com.google.api.client.util.Key
12603+
private java.lang.Long requestedAmount;
12604+
12605+
/** Optional. The current throughput through the port (mbps)
12606+
*/
12607+
public java.lang.Long getRequestedAmount() {
12608+
return requestedAmount;
12609+
}
12610+
12611+
/** Optional. The current throughput through the port (mbps) */
12612+
public ShouldThrottle setRequestedAmount(java.lang.Long requestedAmount) {
12613+
this.requestedAmount = requestedAmount;
12614+
return this;
12615+
}
12616+
12617+
@Override
12618+
public ShouldThrottle set(String parameterName, Object value) {
12619+
return (ShouldThrottle) super.set(parameterName, value);
12620+
}
12621+
}
1245112622
/**
1245212623
* Returns permissions that a caller has on the specified resource. If the resource does not exist,
1245312624
* 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.v1alpha.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/v1alpha/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>v1alpha-rev20240724-2.0.0</version>
12-
<name>BeyondCorp API v1alpha-rev20240724-2.0.0</name>
11+
<version>v1alpha-rev20240802-2.0.0</version>
12+
<name>BeyondCorp API v1alpha-rev20240802-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)