@@ -469,6 +469,146 @@ public GenerateIdToken set(String parameterName, Object value) {
469
469
return (GenerateIdToken ) super .set (parameterName , value );
470
470
}
471
471
}
472
+ /**
473
+ * Returns the trust boundary info for a given service account.
474
+ *
475
+ * Create a request for the method "serviceAccounts.getAllowedLocations".
476
+ *
477
+ * This request holds the parameters needed by the iamcredentials server. After setting any
478
+ * optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
479
+ * operation.
480
+ *
481
+ * @param name Required. Resource name of service account.
482
+ * @return the request
483
+ */
484
+ public GetAllowedLocations getAllowedLocations (java .lang .String name ) throws java .io .IOException {
485
+ GetAllowedLocations result = new GetAllowedLocations (name );
486
+ initialize (result );
487
+ return result ;
488
+ }
489
+
490
+ public class GetAllowedLocations extends IAMCredentialsRequest <com .google .api .services .iamcredentials .v1 .model .ServiceAccountAllowedLocations > {
491
+
492
+ private static final String REST_PATH = "v1/{+name}/allowedLocations" ;
493
+
494
+ private final java .util .regex .Pattern NAME_PATTERN =
495
+ java .util .regex .Pattern .compile ("^projects/[^/]+/serviceAccounts/[^/]+$" );
496
+
497
+ /**
498
+ * Returns the trust boundary info for a given service account.
499
+ *
500
+ * Create a request for the method "serviceAccounts.getAllowedLocations".
501
+ *
502
+ * This request holds the parameters needed by the the iamcredentials server. After setting any
503
+ * optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
504
+ * operation. <p> {@link GetAllowedLocations#initialize(com.google.api.client.googleapis.services.
505
+ * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
506
+ * invoking the constructor. </p>
507
+ *
508
+ * @param name Required. Resource name of service account.
509
+ * @since 1.13
510
+ */
511
+ protected GetAllowedLocations (java .lang .String name ) {
512
+ super (IAMCredentials .this , "GET" , REST_PATH , null , com .google .api .services .iamcredentials .v1 .model .ServiceAccountAllowedLocations .class );
513
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
514
+ if (!getSuppressPatternChecks ()) {
515
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
516
+ "Parameter name must conform to the pattern " +
517
+ "^projects/[^/]+/serviceAccounts/[^/]+$" );
518
+ }
519
+ }
520
+
521
+ @ Override
522
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
523
+ return super .executeUsingHead ();
524
+ }
525
+
526
+ @ Override
527
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
528
+ return super .buildHttpRequestUsingHead ();
529
+ }
530
+
531
+ @ Override
532
+ public GetAllowedLocations set$Xgafv (java .lang .String $Xgafv ) {
533
+ return (GetAllowedLocations ) super .set$Xgafv ($Xgafv );
534
+ }
535
+
536
+ @ Override
537
+ public GetAllowedLocations setAccessToken (java .lang .String accessToken ) {
538
+ return (GetAllowedLocations ) super .setAccessToken (accessToken );
539
+ }
540
+
541
+ @ Override
542
+ public GetAllowedLocations setAlt (java .lang .String alt ) {
543
+ return (GetAllowedLocations ) super .setAlt (alt );
544
+ }
545
+
546
+ @ Override
547
+ public GetAllowedLocations setCallback (java .lang .String callback ) {
548
+ return (GetAllowedLocations ) super .setCallback (callback );
549
+ }
550
+
551
+ @ Override
552
+ public GetAllowedLocations setFields (java .lang .String fields ) {
553
+ return (GetAllowedLocations ) super .setFields (fields );
554
+ }
555
+
556
+ @ Override
557
+ public GetAllowedLocations setKey (java .lang .String key ) {
558
+ return (GetAllowedLocations ) super .setKey (key );
559
+ }
560
+
561
+ @ Override
562
+ public GetAllowedLocations setOauthToken (java .lang .String oauthToken ) {
563
+ return (GetAllowedLocations ) super .setOauthToken (oauthToken );
564
+ }
565
+
566
+ @ Override
567
+ public GetAllowedLocations setPrettyPrint (java .lang .Boolean prettyPrint ) {
568
+ return (GetAllowedLocations ) super .setPrettyPrint (prettyPrint );
569
+ }
570
+
571
+ @ Override
572
+ public GetAllowedLocations setQuotaUser (java .lang .String quotaUser ) {
573
+ return (GetAllowedLocations ) super .setQuotaUser (quotaUser );
574
+ }
575
+
576
+ @ Override
577
+ public GetAllowedLocations setUploadType (java .lang .String uploadType ) {
578
+ return (GetAllowedLocations ) super .setUploadType (uploadType );
579
+ }
580
+
581
+ @ Override
582
+ public GetAllowedLocations setUploadProtocol (java .lang .String uploadProtocol ) {
583
+ return (GetAllowedLocations ) super .setUploadProtocol (uploadProtocol );
584
+ }
585
+
586
+ /** Required. Resource name of service account. */
587
+ @ com .google .api .client .util .Key
588
+ private java .lang .String name ;
589
+
590
+ /** Required. Resource name of service account.
591
+ */
592
+ public java .lang .String getName () {
593
+ return name ;
594
+ }
595
+
596
+ /** Required. Resource name of service account. */
597
+ public GetAllowedLocations setName (java .lang .String name ) {
598
+ if (!getSuppressPatternChecks ()) {
599
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
600
+ "Parameter name must conform to the pattern " +
601
+ "^projects/[^/]+/serviceAccounts/[^/]+$" );
602
+ }
603
+ this .name = name ;
604
+ return this ;
605
+ }
606
+
607
+ @ Override
608
+ public GetAllowedLocations set (String parameterName , Object value ) {
609
+ return (GetAllowedLocations ) super .set (parameterName , value );
610
+ }
611
+ }
472
612
/**
473
613
* Signs a blob using a service account's system-managed private key.
474
614
*
0 commit comments