@@ -12448,6 +12448,177 @@ public SetIamPolicy set(String parameterName, Object value) {
12448
12448
return (SetIamPolicy) super.set(parameterName, value);
12449
12449
}
12450
12450
}
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
+ }
12451
12622
/**
12452
12623
* Returns permissions that a caller has on the specified resource. If the resource does not exist,
12453
12624
* this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is
0 commit comments