@@ -3310,6 +3310,292 @@ public List set(String parameterName, Object value) {
3310
3310
return (List ) super .set (parameterName , value );
3311
3311
}
3312
3312
}
3313
+ /**
3314
+ * ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud instances for notifying
3315
+ * events.
3316
+ *
3317
+ * Create a request for the method "gitRepositoryLinks.processBitbucketCloudWebhook".
3318
+ *
3319
+ * This request holds the parameters needed by the developerconnect server. After setting any
3320
+ * optional parameters, call the {@link ProcessBitbucketCloudWebhook#execute()} method to invoke the
3321
+ * remote operation.
3322
+ *
3323
+ * @param name Required. The GitRepositoryLink where the webhook will be received. Format:
3324
+ * `projects/locations/connections/gitRepositoryLinks`.
3325
+ * @param content the {@link com.google.api.services.developerconnect.v1.model.ProcessBitbucketCloudWebhookRequest}
3326
+ * @return the request
3327
+ */
3328
+ public ProcessBitbucketCloudWebhook processBitbucketCloudWebhook (java .lang .String name , com .google .api .services .developerconnect .v1 .model .ProcessBitbucketCloudWebhookRequest content ) throws java .io .IOException {
3329
+ ProcessBitbucketCloudWebhook result = new ProcessBitbucketCloudWebhook (name , content );
3330
+ initialize (result );
3331
+ return result ;
3332
+ }
3333
+
3334
+ public class ProcessBitbucketCloudWebhook extends DeveloperConnectRequest <com .google .api .services .developerconnect .v1 .model .Empty > {
3335
+
3336
+ private static final String REST_PATH = "v1/{+name}:processBitbucketCloudWebhook" ;
3337
+
3338
+ private final java .util .regex .Pattern NAME_PATTERN =
3339
+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$" );
3340
+
3341
+ /**
3342
+ * ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud instances for notifying
3343
+ * events.
3344
+ *
3345
+ * Create a request for the method "gitRepositoryLinks.processBitbucketCloudWebhook".
3346
+ *
3347
+ * This request holds the parameters needed by the the developerconnect server. After setting any
3348
+ * optional parameters, call the {@link ProcessBitbucketCloudWebhook#execute()} method to invoke
3349
+ * the remote operation. <p> {@link ProcessBitbucketCloudWebhook#initialize(com.google.api.client.
3350
+ * googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
3351
+ * immediately after invoking the constructor. </p>
3352
+ *
3353
+ * @param name Required. The GitRepositoryLink where the webhook will be received. Format:
3354
+ * `projects/locations/connections/gitRepositoryLinks`.
3355
+ * @param content the {@link com.google.api.services.developerconnect.v1.model.ProcessBitbucketCloudWebhookRequest}
3356
+ * @since 1.13
3357
+ */
3358
+ protected ProcessBitbucketCloudWebhook (java .lang .String name , com .google .api .services .developerconnect .v1 .model .ProcessBitbucketCloudWebhookRequest content ) {
3359
+ super (DeveloperConnect .this , "POST" , REST_PATH , content , com .google .api .services .developerconnect .v1 .model .Empty .class );
3360
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
3361
+ if (!getSuppressPatternChecks ()) {
3362
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
3363
+ "Parameter name must conform to the pattern " +
3364
+ "^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$" );
3365
+ }
3366
+ }
3367
+
3368
+ @ Override
3369
+ public ProcessBitbucketCloudWebhook set$Xgafv (java .lang .String $Xgafv ) {
3370
+ return (ProcessBitbucketCloudWebhook ) super .set$Xgafv ($Xgafv );
3371
+ }
3372
+
3373
+ @ Override
3374
+ public ProcessBitbucketCloudWebhook setAccessToken (java .lang .String accessToken ) {
3375
+ return (ProcessBitbucketCloudWebhook ) super .setAccessToken (accessToken );
3376
+ }
3377
+
3378
+ @ Override
3379
+ public ProcessBitbucketCloudWebhook setAlt (java .lang .String alt ) {
3380
+ return (ProcessBitbucketCloudWebhook ) super .setAlt (alt );
3381
+ }
3382
+
3383
+ @ Override
3384
+ public ProcessBitbucketCloudWebhook setCallback (java .lang .String callback ) {
3385
+ return (ProcessBitbucketCloudWebhook ) super .setCallback (callback );
3386
+ }
3387
+
3388
+ @ Override
3389
+ public ProcessBitbucketCloudWebhook setFields (java .lang .String fields ) {
3390
+ return (ProcessBitbucketCloudWebhook ) super .setFields (fields );
3391
+ }
3392
+
3393
+ @ Override
3394
+ public ProcessBitbucketCloudWebhook setKey (java .lang .String key ) {
3395
+ return (ProcessBitbucketCloudWebhook ) super .setKey (key );
3396
+ }
3397
+
3398
+ @ Override
3399
+ public ProcessBitbucketCloudWebhook setOauthToken (java .lang .String oauthToken ) {
3400
+ return (ProcessBitbucketCloudWebhook ) super .setOauthToken (oauthToken );
3401
+ }
3402
+
3403
+ @ Override
3404
+ public ProcessBitbucketCloudWebhook setPrettyPrint (java .lang .Boolean prettyPrint ) {
3405
+ return (ProcessBitbucketCloudWebhook ) super .setPrettyPrint (prettyPrint );
3406
+ }
3407
+
3408
+ @ Override
3409
+ public ProcessBitbucketCloudWebhook setQuotaUser (java .lang .String quotaUser ) {
3410
+ return (ProcessBitbucketCloudWebhook ) super .setQuotaUser (quotaUser );
3411
+ }
3412
+
3413
+ @ Override
3414
+ public ProcessBitbucketCloudWebhook setUploadType (java .lang .String uploadType ) {
3415
+ return (ProcessBitbucketCloudWebhook ) super .setUploadType (uploadType );
3416
+ }
3417
+
3418
+ @ Override
3419
+ public ProcessBitbucketCloudWebhook setUploadProtocol (java .lang .String uploadProtocol ) {
3420
+ return (ProcessBitbucketCloudWebhook ) super .setUploadProtocol (uploadProtocol );
3421
+ }
3422
+
3423
+ /**
3424
+ * Required. The GitRepositoryLink where the webhook will be received. Format:
3425
+ * `projects/locations/connections/gitRepositoryLinks`.
3426
+ */
3427
+ @ com .google .api .client .util .Key
3428
+ private java .lang .String name ;
3429
+
3430
+ /** Required. The GitRepositoryLink where the webhook will be received. Format:
3431
+ `projects/locations/connections/gitRepositoryLinks`.
3432
+ */
3433
+ public java .lang .String getName () {
3434
+ return name ;
3435
+ }
3436
+
3437
+ /**
3438
+ * Required. The GitRepositoryLink where the webhook will be received. Format:
3439
+ * `projects/locations/connections/gitRepositoryLinks`.
3440
+ */
3441
+ public ProcessBitbucketCloudWebhook setName (java .lang .String name ) {
3442
+ if (!getSuppressPatternChecks ()) {
3443
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
3444
+ "Parameter name must conform to the pattern " +
3445
+ "^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$" );
3446
+ }
3447
+ this .name = name ;
3448
+ return this ;
3449
+ }
3450
+
3451
+ @ Override
3452
+ public ProcessBitbucketCloudWebhook set (String parameterName , Object value ) {
3453
+ return (ProcessBitbucketCloudWebhook ) super .set (parameterName , value );
3454
+ }
3455
+ }
3456
+ /**
3457
+ * ProcessBitbucketDataCenterWebhook is called by the external Bitbucket Data Center instances for
3458
+ * notifying events.
3459
+ *
3460
+ * Create a request for the method "gitRepositoryLinks.processBitbucketDataCenterWebhook".
3461
+ *
3462
+ * This request holds the parameters needed by the developerconnect server. After setting any
3463
+ * optional parameters, call the {@link ProcessBitbucketDataCenterWebhook#execute()} method to
3464
+ * invoke the remote operation.
3465
+ *
3466
+ * @param name Required. The GitRepositoryLink where the webhook will be received. Format:
3467
+ * `projects/locations/connections/gitRepositoryLinks`.
3468
+ * @param content the {@link com.google.api.services.developerconnect.v1.model.ProcessBitbucketDataCenterWebhookRequest}
3469
+ * @return the request
3470
+ */
3471
+ public ProcessBitbucketDataCenterWebhook processBitbucketDataCenterWebhook (java .lang .String name , com .google .api .services .developerconnect .v1 .model .ProcessBitbucketDataCenterWebhookRequest content ) throws java .io .IOException {
3472
+ ProcessBitbucketDataCenterWebhook result = new ProcessBitbucketDataCenterWebhook (name , content );
3473
+ initialize (result );
3474
+ return result ;
3475
+ }
3476
+
3477
+ public class ProcessBitbucketDataCenterWebhook extends DeveloperConnectRequest <com .google .api .services .developerconnect .v1 .model .Empty > {
3478
+
3479
+ private static final String REST_PATH = "v1/{+name}:processBitbucketDataCenterWebhook" ;
3480
+
3481
+ private final java .util .regex .Pattern NAME_PATTERN =
3482
+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$" );
3483
+
3484
+ /**
3485
+ * ProcessBitbucketDataCenterWebhook is called by the external Bitbucket Data Center instances for
3486
+ * notifying events.
3487
+ *
3488
+ * Create a request for the method "gitRepositoryLinks.processBitbucketDataCenterWebhook".
3489
+ *
3490
+ * This request holds the parameters needed by the the developerconnect server. After setting any
3491
+ * optional parameters, call the {@link ProcessBitbucketDataCenterWebhook#execute()} method to
3492
+ * invoke the remote operation. <p> {@link ProcessBitbucketDataCenterWebhook#initialize(com.google
3493
+ * .api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this
3494
+ * instance immediately after invoking the constructor. </p>
3495
+ *
3496
+ * @param name Required. The GitRepositoryLink where the webhook will be received. Format:
3497
+ * `projects/locations/connections/gitRepositoryLinks`.
3498
+ * @param content the {@link com.google.api.services.developerconnect.v1.model.ProcessBitbucketDataCenterWebhookRequest}
3499
+ * @since 1.13
3500
+ */
3501
+ protected ProcessBitbucketDataCenterWebhook (java .lang .String name , com .google .api .services .developerconnect .v1 .model .ProcessBitbucketDataCenterWebhookRequest content ) {
3502
+ super (DeveloperConnect .this , "POST" , REST_PATH , content , com .google .api .services .developerconnect .v1 .model .Empty .class );
3503
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
3504
+ if (!getSuppressPatternChecks ()) {
3505
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
3506
+ "Parameter name must conform to the pattern " +
3507
+ "^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$" );
3508
+ }
3509
+ }
3510
+
3511
+ @ Override
3512
+ public ProcessBitbucketDataCenterWebhook set$Xgafv (java .lang .String $Xgafv ) {
3513
+ return (ProcessBitbucketDataCenterWebhook ) super .set$Xgafv ($Xgafv );
3514
+ }
3515
+
3516
+ @ Override
3517
+ public ProcessBitbucketDataCenterWebhook setAccessToken (java .lang .String accessToken ) {
3518
+ return (ProcessBitbucketDataCenterWebhook ) super .setAccessToken (accessToken );
3519
+ }
3520
+
3521
+ @ Override
3522
+ public ProcessBitbucketDataCenterWebhook setAlt (java .lang .String alt ) {
3523
+ return (ProcessBitbucketDataCenterWebhook ) super .setAlt (alt );
3524
+ }
3525
+
3526
+ @ Override
3527
+ public ProcessBitbucketDataCenterWebhook setCallback (java .lang .String callback ) {
3528
+ return (ProcessBitbucketDataCenterWebhook ) super .setCallback (callback );
3529
+ }
3530
+
3531
+ @ Override
3532
+ public ProcessBitbucketDataCenterWebhook setFields (java .lang .String fields ) {
3533
+ return (ProcessBitbucketDataCenterWebhook ) super .setFields (fields );
3534
+ }
3535
+
3536
+ @ Override
3537
+ public ProcessBitbucketDataCenterWebhook setKey (java .lang .String key ) {
3538
+ return (ProcessBitbucketDataCenterWebhook ) super .setKey (key );
3539
+ }
3540
+
3541
+ @ Override
3542
+ public ProcessBitbucketDataCenterWebhook setOauthToken (java .lang .String oauthToken ) {
3543
+ return (ProcessBitbucketDataCenterWebhook ) super .setOauthToken (oauthToken );
3544
+ }
3545
+
3546
+ @ Override
3547
+ public ProcessBitbucketDataCenterWebhook setPrettyPrint (java .lang .Boolean prettyPrint ) {
3548
+ return (ProcessBitbucketDataCenterWebhook ) super .setPrettyPrint (prettyPrint );
3549
+ }
3550
+
3551
+ @ Override
3552
+ public ProcessBitbucketDataCenterWebhook setQuotaUser (java .lang .String quotaUser ) {
3553
+ return (ProcessBitbucketDataCenterWebhook ) super .setQuotaUser (quotaUser );
3554
+ }
3555
+
3556
+ @ Override
3557
+ public ProcessBitbucketDataCenterWebhook setUploadType (java .lang .String uploadType ) {
3558
+ return (ProcessBitbucketDataCenterWebhook ) super .setUploadType (uploadType );
3559
+ }
3560
+
3561
+ @ Override
3562
+ public ProcessBitbucketDataCenterWebhook setUploadProtocol (java .lang .String uploadProtocol ) {
3563
+ return (ProcessBitbucketDataCenterWebhook ) super .setUploadProtocol (uploadProtocol );
3564
+ }
3565
+
3566
+ /**
3567
+ * Required. The GitRepositoryLink where the webhook will be received. Format:
3568
+ * `projects/locations/connections/gitRepositoryLinks`.
3569
+ */
3570
+ @ com .google .api .client .util .Key
3571
+ private java .lang .String name ;
3572
+
3573
+ /** Required. The GitRepositoryLink where the webhook will be received. Format:
3574
+ `projects/locations/connections/gitRepositoryLinks`.
3575
+ */
3576
+ public java .lang .String getName () {
3577
+ return name ;
3578
+ }
3579
+
3580
+ /**
3581
+ * Required. The GitRepositoryLink where the webhook will be received. Format:
3582
+ * `projects/locations/connections/gitRepositoryLinks`.
3583
+ */
3584
+ public ProcessBitbucketDataCenterWebhook setName (java .lang .String name ) {
3585
+ if (!getSuppressPatternChecks ()) {
3586
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
3587
+ "Parameter name must conform to the pattern " +
3588
+ "^projects/[^/]+/locations/[^/]+/connections/[^/]+/gitRepositoryLinks/[^/]+$" );
3589
+ }
3590
+ this .name = name ;
3591
+ return this ;
3592
+ }
3593
+
3594
+ @ Override
3595
+ public ProcessBitbucketDataCenterWebhook set (String parameterName , Object value ) {
3596
+ return (ProcessBitbucketDataCenterWebhook ) super .set (parameterName , value );
3597
+ }
3598
+ }
3313
3599
/**
3314
3600
* ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise instances for
3315
3601
* notifying events.
0 commit comments