@@ -3373,6 +3373,195 @@ public List set(String parameterName, Object value) {
3373
3373
return (List ) super .set (parameterName , value );
3374
3374
}
3375
3375
}
3376
+ /**
3377
+ * Patches a ServiceAccount.
3378
+ *
3379
+ * Currently, only the following fields are updatable: `display_name` and `description`.
3380
+ *
3381
+ * Only fields specified in the request are garaunteed to be returned in the response. Other fields
3382
+ * in the response may be empty.
3383
+ *
3384
+ * Note: The field mask is required.
3385
+ *
3386
+ * Create a request for the method "serviceAccounts.patch".
3387
+ *
3388
+ * This request holds the parameters needed by the iam server. After setting any optional
3389
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
3390
+ *
3391
+ * @param name The resource name of the service account in the following format:
3392
+ * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3393
+ Requests using `-` as a wildcard for
3394
+ * the `PROJECT_ID` will infer the
3395
+ project from the `account` and the `ACCOUNT` value can be
3396
+ * the `email`
3397
+ address or the `unique_id` of the service account.
3398
+ In responses the resource
3399
+ * name will always be in the format
3400
+ `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3401
+ * @param content the {@link com.google.api.services.iam.v1.model.PatchServiceAccountRequest}
3402
+ * @return the request
3403
+ */
3404
+ public Patch patch (java .lang .String name , com .google .api .services .iam .v1 .model .PatchServiceAccountRequest content ) throws java .io .IOException {
3405
+ Patch result = new Patch (name , content );
3406
+ initialize (result );
3407
+ return result ;
3408
+ }
3409
+
3410
+ public class Patch extends IamRequest <com .google .api .services .iam .v1 .model .ServiceAccount > {
3411
+
3412
+ private static final String REST_PATH = "v1/{+name}" ;
3413
+
3414
+ private final java .util .regex .Pattern NAME_PATTERN =
3415
+ java .util .regex .Pattern .compile ("^projects/[^/]+/serviceAccounts/[^/]+$" );
3416
+
3417
+ /**
3418
+ * Patches a ServiceAccount.
3419
+ *
3420
+ * Currently, only the following fields are updatable: `display_name` and `description`.
3421
+ *
3422
+ * Only fields specified in the request are garaunteed to be returned in the response. Other
3423
+ * fields in the response may be empty.
3424
+ *
3425
+ * Note: The field mask is required.
3426
+ *
3427
+ * Create a request for the method "serviceAccounts.patch".
3428
+ *
3429
+ * This request holds the parameters needed by the the iam server. After setting any optional
3430
+ * parameters, call the {@link Patch#execute()} method to invoke the remote operation. <p> {@link
3431
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
3432
+ * be called to initialize this instance immediately after invoking the constructor. </p>
3433
+ *
3434
+ * @param name The resource name of the service account in the following format:
3435
+ * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3436
+ Requests using `-` as a wildcard for
3437
+ * the `PROJECT_ID` will infer the
3438
+ project from the `account` and the `ACCOUNT` value can be
3439
+ * the `email`
3440
+ address or the `unique_id` of the service account.
3441
+ In responses the resource
3442
+ * name will always be in the format
3443
+ `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3444
+ * @param content the {@link com.google.api.services.iam.v1.model.PatchServiceAccountRequest}
3445
+ * @since 1.13
3446
+ */
3447
+ protected Patch (java .lang .String name , com .google .api .services .iam .v1 .model .PatchServiceAccountRequest content ) {
3448
+ super (Iam .this , "PATCH" , REST_PATH , content , com .google .api .services .iam .v1 .model .ServiceAccount .class );
3449
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
3450
+ if (!getSuppressPatternChecks ()) {
3451
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
3452
+ "Parameter name must conform to the pattern " +
3453
+ "^projects/[^/]+/serviceAccounts/[^/]+$" );
3454
+ }
3455
+ }
3456
+
3457
+ @ Override
3458
+ public Patch set$Xgafv (java .lang .String $Xgafv ) {
3459
+ return (Patch ) super .set$Xgafv ($Xgafv );
3460
+ }
3461
+
3462
+ @ Override
3463
+ public Patch setAccessToken (java .lang .String accessToken ) {
3464
+ return (Patch ) super .setAccessToken (accessToken );
3465
+ }
3466
+
3467
+ @ Override
3468
+ public Patch setAlt (java .lang .String alt ) {
3469
+ return (Patch ) super .setAlt (alt );
3470
+ }
3471
+
3472
+ @ Override
3473
+ public Patch setCallback (java .lang .String callback ) {
3474
+ return (Patch ) super .setCallback (callback );
3475
+ }
3476
+
3477
+ @ Override
3478
+ public Patch setFields (java .lang .String fields ) {
3479
+ return (Patch ) super .setFields (fields );
3480
+ }
3481
+
3482
+ @ Override
3483
+ public Patch setKey (java .lang .String key ) {
3484
+ return (Patch ) super .setKey (key );
3485
+ }
3486
+
3487
+ @ Override
3488
+ public Patch setOauthToken (java .lang .String oauthToken ) {
3489
+ return (Patch ) super .setOauthToken (oauthToken );
3490
+ }
3491
+
3492
+ @ Override
3493
+ public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
3494
+ return (Patch ) super .setPrettyPrint (prettyPrint );
3495
+ }
3496
+
3497
+ @ Override
3498
+ public Patch setQuotaUser (java .lang .String quotaUser ) {
3499
+ return (Patch ) super .setQuotaUser (quotaUser );
3500
+ }
3501
+
3502
+ @ Override
3503
+ public Patch setUploadType (java .lang .String uploadType ) {
3504
+ return (Patch ) super .setUploadType (uploadType );
3505
+ }
3506
+
3507
+ @ Override
3508
+ public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
3509
+ return (Patch ) super .setUploadProtocol (uploadProtocol );
3510
+ }
3511
+
3512
+ /**
3513
+ * The resource name of the service account in the following format:
3514
+ * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3515
+ *
3516
+ * Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the
3517
+ * `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the
3518
+ * service account.
3519
+ *
3520
+ * In responses the resource name will always be in the format
3521
+ * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3522
+ */
3523
+ @ com .google .api .client .util .Key
3524
+ private java .lang .String name ;
3525
+
3526
+ /** The resource name of the service account in the following format:
3527
+ `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3528
+
3529
+ Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the `account` and
3530
+ the `ACCOUNT` value can be the `email` address or the `unique_id` of the service account.
3531
+
3532
+ In responses the resource name will always be in the format
3533
+ `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3534
+ */
3535
+ public java .lang .String getName () {
3536
+ return name ;
3537
+ }
3538
+
3539
+ /**
3540
+ * The resource name of the service account in the following format:
3541
+ * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3542
+ *
3543
+ * Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the
3544
+ * `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the
3545
+ * service account.
3546
+ *
3547
+ * In responses the resource name will always be in the format
3548
+ * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
3549
+ */
3550
+ public Patch setName (java .lang .String name ) {
3551
+ if (!getSuppressPatternChecks ()) {
3552
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
3553
+ "Parameter name must conform to the pattern " +
3554
+ "^projects/[^/]+/serviceAccounts/[^/]+$" );
3555
+ }
3556
+ this .name = name ;
3557
+ return this ;
3558
+ }
3559
+
3560
+ @ Override
3561
+ public Patch set (String parameterName , Object value ) {
3562
+ return (Patch ) super .set (parameterName , value );
3563
+ }
3564
+ }
3376
3565
/**
3377
3566
* Sets the IAM access control policy for a ServiceAccount.
3378
3567
*
0 commit comments