@@ -7619,6 +7619,177 @@ public SetIamPolicy set(String parameterName, Object value) {
7619
7619
return (SetIamPolicy ) super .set (parameterName , value );
7620
7620
}
7621
7621
}
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
+ }
7622
7793
/**
7623
7794
* Returns permissions that a caller has on the specified resource. If the resource does not exist,
7624
7795
* this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is
0 commit comments