google-apis-cloudbuild_v1 0.19.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,56 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
+ # RPC request object accepted by the AddBitbucketServerConnectedRepository RPC
26
+ # method.
27
+ class AddBitbucketServerConnectedRepositoryRequest
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # BitbucketServerRepositoryId identifies a specific repository hosted on a
31
+ # Bitbucket Server.
32
+ # Corresponds to the JSON property `connectedRepository`
33
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerRepositoryId]
34
+ attr_accessor :connected_repository
35
+
36
+ def initialize(**args)
37
+ update!(**args)
38
+ end
39
+
40
+ # Update properties of this object
41
+ def update!(**args)
42
+ @connected_repository = args[:connected_repository] if args.key?(:connected_repository)
43
+ end
44
+ end
45
+
46
+ # RPC request object returned by the AddBitbucketServerConnectedRepository RPC
47
+ # method.
48
+ class AddBitbucketServerConnectedRepositoryResponse
49
+ include Google::Apis::Core::Hashable
50
+
51
+ # The name of the `BitbucketServerConfig` that added connected repository.
52
+ # Format: `projects/`project`/locations/`location`/bitbucketServerConfigs/`
53
+ # config``
54
+ # Corresponds to the JSON property `config`
55
+ # @return [String]
56
+ attr_accessor :config
57
+
58
+ # BitbucketServerRepositoryId identifies a specific repository hosted on a
59
+ # Bitbucket Server.
60
+ # Corresponds to the JSON property `connectedRepository`
61
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerRepositoryId]
62
+ attr_accessor :connected_repository
63
+
64
+ def initialize(**args)
65
+ update!(**args)
66
+ end
67
+
68
+ # Update properties of this object
69
+ def update!(**args)
70
+ @config = args[:config] if args.key?(:config)
71
+ @connected_repository = args[:connected_repository] if args.key?(:connected_repository)
72
+ end
73
+ end
74
+
25
75
  # ApprovalConfig describes configuration for manual approval of a build.
26
76
  class ApprovalConfig
27
77
  include Google::Apis::Core::Hashable
@@ -204,6 +254,372 @@ module Google
204
254
  end
205
255
  end
206
256
 
257
+ # RPC request object accepted by BatchCreateBitbucketServerConnectedRepositories
258
+ # RPC method.
259
+ class BatchCreateBitbucketServerConnectedRepositoriesRequest
260
+ include Google::Apis::Core::Hashable
261
+
262
+ # Required. Requests to connect Bitbucket Server repositories.
263
+ # Corresponds to the JSON property `requests`
264
+ # @return [Array<Google::Apis::CloudbuildV1::CreateBitbucketServerConnectedRepositoryRequest>]
265
+ attr_accessor :requests
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @requests = args[:requests] if args.key?(:requests)
274
+ end
275
+ end
276
+
277
+ # Response of BatchCreateBitbucketServerConnectedRepositories RPC method
278
+ # including all successfully connected Bitbucket Server repositories.
279
+ class BatchCreateBitbucketServerConnectedRepositoriesResponse
280
+ include Google::Apis::Core::Hashable
281
+
282
+ # The connected Bitbucket Server repositories.
283
+ # Corresponds to the JSON property `bitbucketServerConnectedRepositories`
284
+ # @return [Array<Google::Apis::CloudbuildV1::BitbucketServerConnectedRepository>]
285
+ attr_accessor :bitbucket_server_connected_repositories
286
+
287
+ def initialize(**args)
288
+ update!(**args)
289
+ end
290
+
291
+ # Update properties of this object
292
+ def update!(**args)
293
+ @bitbucket_server_connected_repositories = args[:bitbucket_server_connected_repositories] if args.key?(:bitbucket_server_connected_repositories)
294
+ end
295
+ end
296
+
297
+ # Metadata for `BatchCreateBitbucketServerConnectedRepositories` operation.
298
+ class BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata
299
+ include Google::Apis::Core::Hashable
300
+
301
+ # Time the operation was completed.
302
+ # Corresponds to the JSON property `completeTime`
303
+ # @return [String]
304
+ attr_accessor :complete_time
305
+
306
+ # The name of the `BitbucketServerConfig` that added connected repositories.
307
+ # Format: `projects/`project`/locations/`location`/bitbucketServerConfigs/`
308
+ # config``
309
+ # Corresponds to the JSON property `config`
310
+ # @return [String]
311
+ attr_accessor :config
312
+
313
+ # Time the operation was created.
314
+ # Corresponds to the JSON property `createTime`
315
+ # @return [String]
316
+ attr_accessor :create_time
317
+
318
+ def initialize(**args)
319
+ update!(**args)
320
+ end
321
+
322
+ # Update properties of this object
323
+ def update!(**args)
324
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
325
+ @config = args[:config] if args.key?(:config)
326
+ @create_time = args[:create_time] if args.key?(:create_time)
327
+ end
328
+ end
329
+
330
+ # BitbucketServerConfig represents the configuration for a Bitbucket Server.
331
+ class BitbucketServerConfig
332
+ include Google::Apis::Core::Hashable
333
+
334
+ # Required. Immutable. API Key that will be attached to webhook. Once this field
335
+ # has been set, it cannot be changed. If you need to change it, please create
336
+ # another BitbucketServerConfig.
337
+ # Corresponds to the JSON property `apiKey`
338
+ # @return [String]
339
+ attr_accessor :api_key
340
+
341
+ # Output only. Connected Bitbucket Server repositories for this config.
342
+ # Corresponds to the JSON property `connectedRepositories`
343
+ # @return [Array<Google::Apis::CloudbuildV1::BitbucketServerRepositoryId>]
344
+ attr_accessor :connected_repositories
345
+
346
+ # Time when the config was created.
347
+ # Corresponds to the JSON property `createTime`
348
+ # @return [String]
349
+ attr_accessor :create_time
350
+
351
+ # Required. Immutable. The URI of the Bitbucket Server host. Once this field has
352
+ # been set, it cannot be changed. If you need to change it, please create
353
+ # another BitbucketServerConfig.
354
+ # Corresponds to the JSON property `hostUri`
355
+ # @return [String]
356
+ attr_accessor :host_uri
357
+
358
+ # The resource name for the config.
359
+ # Corresponds to the JSON property `name`
360
+ # @return [String]
361
+ attr_accessor :name
362
+
363
+ # Optional. The network to be used when reaching out to the Bitbucket Server
364
+ # instance. The VPC network must be enabled for private service connection. This
365
+ # should be set if the Bitbucket Server instance is hosted on-premises and not
366
+ # reachable by public internet. If this field is left empty, no network peering
367
+ # will occur and calls to the Bitbucket Server instance will be made over the
368
+ # public internet. Must be in the format `projects/`project`/global/networks/`
369
+ # network``, where `project` is a project number or id and `network` is the name
370
+ # of a VPC network in the project.
371
+ # Corresponds to the JSON property `peeredNetwork`
372
+ # @return [String]
373
+ attr_accessor :peered_network
374
+
375
+ # BitbucketServerSecrets represents the secrets in Secret Manager for a
376
+ # Bitbucket Server.
377
+ # Corresponds to the JSON property `secrets`
378
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerSecrets]
379
+ attr_accessor :secrets
380
+
381
+ # Optional. SSL certificate to use for requests to Bitbucket Server. The format
382
+ # should be PEM format but the extension can be one of .pem, .cer, or .crt.
383
+ # Corresponds to the JSON property `sslCa`
384
+ # @return [String]
385
+ attr_accessor :ssl_ca
386
+
387
+ # Username of the account Cloud Build will use on Bitbucket Server.
388
+ # Corresponds to the JSON property `username`
389
+ # @return [String]
390
+ attr_accessor :username
391
+
392
+ # Output only. UUID included in webhook requests. The UUID is used to look up
393
+ # the corresponding config.
394
+ # Corresponds to the JSON property `webhookKey`
395
+ # @return [String]
396
+ attr_accessor :webhook_key
397
+
398
+ def initialize(**args)
399
+ update!(**args)
400
+ end
401
+
402
+ # Update properties of this object
403
+ def update!(**args)
404
+ @api_key = args[:api_key] if args.key?(:api_key)
405
+ @connected_repositories = args[:connected_repositories] if args.key?(:connected_repositories)
406
+ @create_time = args[:create_time] if args.key?(:create_time)
407
+ @host_uri = args[:host_uri] if args.key?(:host_uri)
408
+ @name = args[:name] if args.key?(:name)
409
+ @peered_network = args[:peered_network] if args.key?(:peered_network)
410
+ @secrets = args[:secrets] if args.key?(:secrets)
411
+ @ssl_ca = args[:ssl_ca] if args.key?(:ssl_ca)
412
+ @username = args[:username] if args.key?(:username)
413
+ @webhook_key = args[:webhook_key] if args.key?(:webhook_key)
414
+ end
415
+ end
416
+
417
+ # / BitbucketServerConnectedRepository represents a connected Bitbucket Server /
418
+ # repository.
419
+ class BitbucketServerConnectedRepository
420
+ include Google::Apis::Core::Hashable
421
+
422
+ # The name of the `BitbucketServerConfig` that added connected repository.
423
+ # Format: `projects/`project`/locations/`location`/bitbucketServerConfigs/`
424
+ # config``
425
+ # Corresponds to the JSON property `parent`
426
+ # @return [String]
427
+ attr_accessor :parent
428
+
429
+ # BitbucketServerRepositoryId identifies a specific repository hosted on a
430
+ # Bitbucket Server.
431
+ # Corresponds to the JSON property `repo`
432
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerRepositoryId]
433
+ attr_accessor :repo
434
+
435
+ # The `Status` type defines a logical error model that is suitable for different
436
+ # programming environments, including REST APIs and RPC APIs. It is used by [
437
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
438
+ # data: error code, error message, and error details. You can find out more
439
+ # about this error model and how to work with it in the [API Design Guide](https:
440
+ # //cloud.google.com/apis/design/errors).
441
+ # Corresponds to the JSON property `status`
442
+ # @return [Google::Apis::CloudbuildV1::Status]
443
+ attr_accessor :status
444
+
445
+ def initialize(**args)
446
+ update!(**args)
447
+ end
448
+
449
+ # Update properties of this object
450
+ def update!(**args)
451
+ @parent = args[:parent] if args.key?(:parent)
452
+ @repo = args[:repo] if args.key?(:repo)
453
+ @status = args[:status] if args.key?(:status)
454
+ end
455
+ end
456
+
457
+ # BitbucketServerRepository represents a repository hosted on a Bitbucket Server.
458
+ class BitbucketServerRepository
459
+ include Google::Apis::Core::Hashable
460
+
461
+ # Link to the browse repo page on the Bitbucket Server instance.
462
+ # Corresponds to the JSON property `browseUri`
463
+ # @return [String]
464
+ attr_accessor :browse_uri
465
+
466
+ # Description of the repository.
467
+ # Corresponds to the JSON property `description`
468
+ # @return [String]
469
+ attr_accessor :description
470
+
471
+ # Display name of the repository.
472
+ # Corresponds to the JSON property `displayName`
473
+ # @return [String]
474
+ attr_accessor :display_name
475
+
476
+ # The resource name of the repository.
477
+ # Corresponds to the JSON property `name`
478
+ # @return [String]
479
+ attr_accessor :name
480
+
481
+ # BitbucketServerRepositoryId identifies a specific repository hosted on a
482
+ # Bitbucket Server.
483
+ # Corresponds to the JSON property `repoId`
484
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerRepositoryId]
485
+ attr_accessor :repo_id
486
+
487
+ def initialize(**args)
488
+ update!(**args)
489
+ end
490
+
491
+ # Update properties of this object
492
+ def update!(**args)
493
+ @browse_uri = args[:browse_uri] if args.key?(:browse_uri)
494
+ @description = args[:description] if args.key?(:description)
495
+ @display_name = args[:display_name] if args.key?(:display_name)
496
+ @name = args[:name] if args.key?(:name)
497
+ @repo_id = args[:repo_id] if args.key?(:repo_id)
498
+ end
499
+ end
500
+
501
+ # BitbucketServerRepositoryId identifies a specific repository hosted on a
502
+ # Bitbucket Server.
503
+ class BitbucketServerRepositoryId
504
+ include Google::Apis::Core::Hashable
505
+
506
+ # Required. Identifier for the project storing the repository.
507
+ # Corresponds to the JSON property `projectKey`
508
+ # @return [String]
509
+ attr_accessor :project_key
510
+
511
+ # Required. Identifier for the repository.
512
+ # Corresponds to the JSON property `repoSlug`
513
+ # @return [String]
514
+ attr_accessor :repo_slug
515
+
516
+ # Output only. The ID of the webhook that was created for receiving events from
517
+ # this repo. We only create and manage a single webhook for each repo.
518
+ # Corresponds to the JSON property `webhookId`
519
+ # @return [Fixnum]
520
+ attr_accessor :webhook_id
521
+
522
+ def initialize(**args)
523
+ update!(**args)
524
+ end
525
+
526
+ # Update properties of this object
527
+ def update!(**args)
528
+ @project_key = args[:project_key] if args.key?(:project_key)
529
+ @repo_slug = args[:repo_slug] if args.key?(:repo_slug)
530
+ @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
531
+ end
532
+ end
533
+
534
+ # BitbucketServerSecrets represents the secrets in Secret Manager for a
535
+ # Bitbucket Server.
536
+ class BitbucketServerSecrets
537
+ include Google::Apis::Core::Hashable
538
+
539
+ # Required. The resource name for the admin access token's secret version.
540
+ # Corresponds to the JSON property `adminAccessTokenVersionName`
541
+ # @return [String]
542
+ attr_accessor :admin_access_token_version_name
543
+
544
+ # Required. The resource name for the read access token's secret version.
545
+ # Corresponds to the JSON property `readAccessTokenVersionName`
546
+ # @return [String]
547
+ attr_accessor :read_access_token_version_name
548
+
549
+ # Required. Immutable. The resource name for the webhook secret's secret version.
550
+ # Once this field has been set, it cannot be changed. If you need to change it,
551
+ # please create another BitbucketServerConfig.
552
+ # Corresponds to the JSON property `webhookSecretVersionName`
553
+ # @return [String]
554
+ attr_accessor :webhook_secret_version_name
555
+
556
+ def initialize(**args)
557
+ update!(**args)
558
+ end
559
+
560
+ # Update properties of this object
561
+ def update!(**args)
562
+ @admin_access_token_version_name = args[:admin_access_token_version_name] if args.key?(:admin_access_token_version_name)
563
+ @read_access_token_version_name = args[:read_access_token_version_name] if args.key?(:read_access_token_version_name)
564
+ @webhook_secret_version_name = args[:webhook_secret_version_name] if args.key?(:webhook_secret_version_name)
565
+ end
566
+ end
567
+
568
+ # BitbucketServerTriggerConfig describes the configuration of a trigger that
569
+ # creates a build whenever a Bitbucket Server event is received.
570
+ class BitbucketServerTriggerConfig
571
+ include Google::Apis::Core::Hashable
572
+
573
+ # BitbucketServerConfig represents the configuration for a Bitbucket Server.
574
+ # Corresponds to the JSON property `bitbucketServerConfig`
575
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerConfig]
576
+ attr_accessor :bitbucket_server_config
577
+
578
+ # Required. The Bitbucket server config resource that this trigger config maps
579
+ # to.
580
+ # Corresponds to the JSON property `bitbucketServerConfigResource`
581
+ # @return [String]
582
+ attr_accessor :bitbucket_server_config_resource
583
+
584
+ # Required. Key of the project that the repo is in. For example: The key for
585
+ # http://mybitbucket.server/projects/TEST/repos/test-repo is "TEST".
586
+ # Corresponds to the JSON property `projectKey`
587
+ # @return [String]
588
+ attr_accessor :project_key
589
+
590
+ # PullRequestFilter contains filter properties for matching GitHub Pull Requests.
591
+ # Corresponds to the JSON property `pullRequest`
592
+ # @return [Google::Apis::CloudbuildV1::PullRequestFilter]
593
+ attr_accessor :pull_request
594
+
595
+ # Push contains filter properties for matching GitHub git pushes.
596
+ # Corresponds to the JSON property `push`
597
+ # @return [Google::Apis::CloudbuildV1::PushFilter]
598
+ attr_accessor :push
599
+
600
+ # Required. Slug of the repository. A repository slug is a URL-friendly version
601
+ # of a repository name, automatically generated by Bitbucket for use in the URL.
602
+ # For example, if the repository name is 'test repo', in the URL it would become
603
+ # 'test-repo' as in http://mybitbucket.server/projects/TEST/repos/test-repo.
604
+ # Corresponds to the JSON property `repoSlug`
605
+ # @return [String]
606
+ attr_accessor :repo_slug
607
+
608
+ def initialize(**args)
609
+ update!(**args)
610
+ end
611
+
612
+ # Update properties of this object
613
+ def update!(**args)
614
+ @bitbucket_server_config = args[:bitbucket_server_config] if args.key?(:bitbucket_server_config)
615
+ @bitbucket_server_config_resource = args[:bitbucket_server_config_resource] if args.key?(:bitbucket_server_config_resource)
616
+ @project_key = args[:project_key] if args.key?(:project_key)
617
+ @pull_request = args[:pull_request] if args.key?(:pull_request)
618
+ @push = args[:push] if args.key?(:push)
619
+ @repo_slug = args[:repo_slug] if args.key?(:repo_slug)
620
+ end
621
+ end
622
+
207
623
  # A build resource in the Cloud Build API. At a high level, a `Build` describes
208
624
  # where to find source code, how to build it (for example, the builder image to
209
625
  # run on the source), and where to store the built artifacts. Fields can include
@@ -758,6 +1174,12 @@ module Google
758
1174
  attr_accessor :autodetect
759
1175
  alias_method :autodetect?, :autodetect
760
1176
 
1177
+ # BitbucketServerTriggerConfig describes the configuration of a trigger that
1178
+ # creates a build whenever a Bitbucket Server event is received.
1179
+ # Corresponds to the JSON property `bitbucketServerTriggerConfig`
1180
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerTriggerConfig]
1181
+ attr_accessor :bitbucket_server_trigger_config
1182
+
761
1183
  # A build resource in the Cloud Build API. At a high level, a `Build` describes
762
1184
  # where to find source code, how to build it (for example, the builder image to
763
1185
  # run on the source), and where to store the built artifacts. Fields can include
@@ -790,9 +1212,9 @@ module Google
790
1212
  attr_accessor :disabled
791
1213
  alias_method :disabled?, :disabled
792
1214
 
793
- # Optional. EventType allows the user to explicitly set the type of event to
794
- # which this BuildTrigger should respond. This field is optional but will be
795
- # validated against the rest of the configuration if it is set.
1215
+ # EventType allows the user to explicitly set the type of event to which this
1216
+ # BuildTrigger should respond. This field will be validated against the rest of
1217
+ # the configuration if it is set.
796
1218
  # Corresponds to the JSON property `eventType`
797
1219
  # @return [String]
798
1220
  attr_accessor :event_type
@@ -909,6 +1331,7 @@ module Google
909
1331
  def update!(**args)
910
1332
  @approval_config = args[:approval_config] if args.key?(:approval_config)
911
1333
  @autodetect = args[:autodetect] if args.key?(:autodetect)
1334
+ @bitbucket_server_trigger_config = args[:bitbucket_server_trigger_config] if args.key?(:bitbucket_server_trigger_config)
912
1335
  @build = args[:build] if args.key?(:build)
913
1336
  @create_time = args[:create_time] if args.key?(:create_time)
914
1337
  @description = args[:description] if args.key?(:description)
@@ -965,25 +1388,70 @@ module Google
965
1388
  end
966
1389
  end
967
1390
 
968
- # Request to cancel an ongoing build.
969
- class CancelBuildRequest
1391
+ # Request to cancel an ongoing build.
1392
+ class CancelBuildRequest
1393
+ include Google::Apis::Core::Hashable
1394
+
1395
+ # Required. ID of the build.
1396
+ # Corresponds to the JSON property `id`
1397
+ # @return [String]
1398
+ attr_accessor :id
1399
+
1400
+ # The name of the `Build` to cancel. Format: `projects/`project`/locations/`
1401
+ # location`/builds/`build``
1402
+ # Corresponds to the JSON property `name`
1403
+ # @return [String]
1404
+ attr_accessor :name
1405
+
1406
+ # Required. ID of the project.
1407
+ # Corresponds to the JSON property `projectId`
1408
+ # @return [String]
1409
+ attr_accessor :project_id
1410
+
1411
+ def initialize(**args)
1412
+ update!(**args)
1413
+ end
1414
+
1415
+ # Update properties of this object
1416
+ def update!(**args)
1417
+ @id = args[:id] if args.key?(:id)
1418
+ @name = args[:name] if args.key?(:name)
1419
+ @project_id = args[:project_id] if args.key?(:project_id)
1420
+ end
1421
+ end
1422
+
1423
+ # The request message for Operations.CancelOperation.
1424
+ class CancelOperationRequest
1425
+ include Google::Apis::Core::Hashable
1426
+
1427
+ def initialize(**args)
1428
+ update!(**args)
1429
+ end
1430
+
1431
+ # Update properties of this object
1432
+ def update!(**args)
1433
+ end
1434
+ end
1435
+
1436
+ # Metadata for `CreateBitbucketServerConfig` operation.
1437
+ class CreateBitbucketServerConfigOperationMetadata
970
1438
  include Google::Apis::Core::Hashable
971
1439
 
972
- # Required. ID of the build.
973
- # Corresponds to the JSON property `id`
1440
+ # The resource name of the BitbucketServerConfig to be created. Format: `
1441
+ # projects/`project`/locations/`location`/bitbucketServerConfigs/`id``.
1442
+ # Corresponds to the JSON property `bitbucketServerConfig`
974
1443
  # @return [String]
975
- attr_accessor :id
1444
+ attr_accessor :bitbucket_server_config
976
1445
 
977
- # The name of the `Build` to cancel. Format: `projects/`project`/locations/`
978
- # location`/builds/`build``
979
- # Corresponds to the JSON property `name`
1446
+ # Time the operation was completed.
1447
+ # Corresponds to the JSON property `completeTime`
980
1448
  # @return [String]
981
- attr_accessor :name
1449
+ attr_accessor :complete_time
982
1450
 
983
- # Required. ID of the project.
984
- # Corresponds to the JSON property `projectId`
1451
+ # Time the operation was created.
1452
+ # Corresponds to the JSON property `createTime`
985
1453
  # @return [String]
986
- attr_accessor :project_id
1454
+ attr_accessor :create_time
987
1455
 
988
1456
  def initialize(**args)
989
1457
  update!(**args)
@@ -991,22 +1459,37 @@ module Google
991
1459
 
992
1460
  # Update properties of this object
993
1461
  def update!(**args)
994
- @id = args[:id] if args.key?(:id)
995
- @name = args[:name] if args.key?(:name)
996
- @project_id = args[:project_id] if args.key?(:project_id)
1462
+ @bitbucket_server_config = args[:bitbucket_server_config] if args.key?(:bitbucket_server_config)
1463
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
1464
+ @create_time = args[:create_time] if args.key?(:create_time)
997
1465
  end
998
1466
  end
999
1467
 
1000
- # The request message for Operations.CancelOperation.
1001
- class CancelOperationRequest
1468
+ # Request to connect a repository from a connected Bitbucket Server host.
1469
+ class CreateBitbucketServerConnectedRepositoryRequest
1002
1470
  include Google::Apis::Core::Hashable
1003
1471
 
1472
+ # / BitbucketServerConnectedRepository represents a connected Bitbucket Server /
1473
+ # repository.
1474
+ # Corresponds to the JSON property `bitbucketServerConnectedRepository`
1475
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerConnectedRepository]
1476
+ attr_accessor :bitbucket_server_connected_repository
1477
+
1478
+ # Required. The name of the `BitbucketServerConfig` that added connected
1479
+ # repository. Format: `projects/`project`/locations/`location`/
1480
+ # bitbucketServerConfigs/`config``
1481
+ # Corresponds to the JSON property `parent`
1482
+ # @return [String]
1483
+ attr_accessor :parent
1484
+
1004
1485
  def initialize(**args)
1005
1486
  update!(**args)
1006
1487
  end
1007
1488
 
1008
1489
  # Update properties of this object
1009
1490
  def update!(**args)
1491
+ @bitbucket_server_connected_repository = args[:bitbucket_server_connected_repository] if args.key?(:bitbucket_server_connected_repository)
1492
+ @parent = args[:parent] if args.key?(:parent)
1010
1493
  end
1011
1494
  end
1012
1495
 
@@ -1042,6 +1525,38 @@ module Google
1042
1525
  end
1043
1526
  end
1044
1527
 
1528
+ # Metadata for `CreateGitLabConfig` operation.
1529
+ class CreateGitLabConfigOperationMetadata
1530
+ include Google::Apis::Core::Hashable
1531
+
1532
+ # Time the operation was completed.
1533
+ # Corresponds to the JSON property `completeTime`
1534
+ # @return [String]
1535
+ attr_accessor :complete_time
1536
+
1537
+ # Time the operation was created.
1538
+ # Corresponds to the JSON property `createTime`
1539
+ # @return [String]
1540
+ attr_accessor :create_time
1541
+
1542
+ # The resource name of the GitLabConfig to be created. Format: `projects/`
1543
+ # project`/locations/`location`/gitlabConfigs/`id``.
1544
+ # Corresponds to the JSON property `gitlabConfig`
1545
+ # @return [String]
1546
+ attr_accessor :gitlab_config
1547
+
1548
+ def initialize(**args)
1549
+ update!(**args)
1550
+ end
1551
+
1552
+ # Update properties of this object
1553
+ def update!(**args)
1554
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
1555
+ @create_time = args[:create_time] if args.key?(:create_time)
1556
+ @gitlab_config = args[:gitlab_config] if args.key?(:gitlab_config)
1557
+ end
1558
+ end
1559
+
1045
1560
  # Metadata for the `CreateWorkerPool` operation.
1046
1561
  class CreateWorkerPoolOperationMetadata
1047
1562
  include Google::Apis::Core::Hashable
@@ -1074,6 +1589,38 @@ module Google
1074
1589
  end
1075
1590
  end
1076
1591
 
1592
+ # Metadata for `DeleteBitbucketServerConfig` operation.
1593
+ class DeleteBitbucketServerConfigOperationMetadata
1594
+ include Google::Apis::Core::Hashable
1595
+
1596
+ # The resource name of the BitbucketServerConfig to be deleted. Format: `
1597
+ # projects/`project`/locations/`location`/bitbucketServerConfigs/`id``.
1598
+ # Corresponds to the JSON property `bitbucketServerConfig`
1599
+ # @return [String]
1600
+ attr_accessor :bitbucket_server_config
1601
+
1602
+ # Time the operation was completed.
1603
+ # Corresponds to the JSON property `completeTime`
1604
+ # @return [String]
1605
+ attr_accessor :complete_time
1606
+
1607
+ # Time the operation was created.
1608
+ # Corresponds to the JSON property `createTime`
1609
+ # @return [String]
1610
+ attr_accessor :create_time
1611
+
1612
+ def initialize(**args)
1613
+ update!(**args)
1614
+ end
1615
+
1616
+ # Update properties of this object
1617
+ def update!(**args)
1618
+ @bitbucket_server_config = args[:bitbucket_server_config] if args.key?(:bitbucket_server_config)
1619
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
1620
+ @create_time = args[:create_time] if args.key?(:create_time)
1621
+ end
1622
+ end
1623
+
1077
1624
  # Metadata for `DeleteGitHubEnterpriseConfig` operation.
1078
1625
  class DeleteGitHubEnterpriseConfigOperationMetadata
1079
1626
  include Google::Apis::Core::Hashable
@@ -1106,6 +1653,38 @@ module Google
1106
1653
  end
1107
1654
  end
1108
1655
 
1656
+ # Metadata for `DeleteGitLabConfig` operation.
1657
+ class DeleteGitLabConfigOperationMetadata
1658
+ include Google::Apis::Core::Hashable
1659
+
1660
+ # Time the operation was completed.
1661
+ # Corresponds to the JSON property `completeTime`
1662
+ # @return [String]
1663
+ attr_accessor :complete_time
1664
+
1665
+ # Time the operation was created.
1666
+ # Corresponds to the JSON property `createTime`
1667
+ # @return [String]
1668
+ attr_accessor :create_time
1669
+
1670
+ # The resource name of the GitLabConfig to be created. Format: `projects/`
1671
+ # project`/locations/`location`/gitlabConfigs/`id``.
1672
+ # Corresponds to the JSON property `gitlabConfig`
1673
+ # @return [String]
1674
+ attr_accessor :gitlab_config
1675
+
1676
+ def initialize(**args)
1677
+ update!(**args)
1678
+ end
1679
+
1680
+ # Update properties of this object
1681
+ def update!(**args)
1682
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
1683
+ @create_time = args[:create_time] if args.key?(:create_time)
1684
+ @gitlab_config = args[:gitlab_config] if args.key?(:gitlab_config)
1685
+ end
1686
+ end
1687
+
1109
1688
  # Metadata for the `DeleteWorkerPool` operation.
1110
1689
  class DeleteWorkerPoolOperationMetadata
1111
1690
  include Google::Apis::Core::Hashable
@@ -1469,6 +2048,40 @@ module Google
1469
2048
  end
1470
2049
  end
1471
2050
 
2051
+ # Configuration per workload for both Private Pools and Hybrid Pools.
2052
+ class GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
2053
+ include Google::Apis::Core::Hashable
2054
+
2055
+ # The disk size (in GB) which is requested for the build container. If unset, a
2056
+ # value of 10 GB will be used.
2057
+ # Corresponds to the JSON property `diskSizeGb`
2058
+ # @return [Fixnum]
2059
+ attr_accessor :disk_size_gb
2060
+
2061
+ # The memory (in GB) which is requested for the build container. If unset, a
2062
+ # value of 4 GB will be used.
2063
+ # Corresponds to the JSON property `memoryGb`
2064
+ # @return [Float]
2065
+ attr_accessor :memory_gb
2066
+
2067
+ # The number of vCPUs which are requested for the build container. If unset, a
2068
+ # value of 1 will be used.
2069
+ # Corresponds to the JSON property `vcpuCount`
2070
+ # @return [Float]
2071
+ attr_accessor :vcpu_count
2072
+
2073
+ def initialize(**args)
2074
+ update!(**args)
2075
+ end
2076
+
2077
+ # Update properties of this object
2078
+ def update!(**args)
2079
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2080
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
2081
+ @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
2082
+ end
2083
+ end
2084
+
1472
2085
  # Represents the metadata of the long-running operation.
1473
2086
  class GoogleDevtoolsCloudbuildV2OperationMetadata
1474
2087
  include Google::Apis::Core::Hashable
@@ -1621,6 +2234,66 @@ module Google
1621
2234
  end
1622
2235
  end
1623
2236
 
2237
+ # Configuration for a Hybrid Worker Pool Next ID: 6
2238
+ class HybridPoolConfig
2239
+ include Google::Apis::Core::Hashable
2240
+
2241
+ # These settings can be applied to a user's build operations. Next ID: 4
2242
+ # Corresponds to the JSON property `defaultWorkerConfig`
2243
+ # @return [Google::Apis::CloudbuildV1::HybridWorkerConfig]
2244
+ attr_accessor :default_worker_config
2245
+
2246
+ # Required. Immutable. The Anthos/GKE Hub membership of the cluster which will
2247
+ # run the actual build operations. Example: projects/`project`/locations/`
2248
+ # location`/memberships/`cluster_name`
2249
+ # Corresponds to the JSON property `membership`
2250
+ # @return [String]
2251
+ attr_accessor :membership
2252
+
2253
+ def initialize(**args)
2254
+ update!(**args)
2255
+ end
2256
+
2257
+ # Update properties of this object
2258
+ def update!(**args)
2259
+ @default_worker_config = args[:default_worker_config] if args.key?(:default_worker_config)
2260
+ @membership = args[:membership] if args.key?(:membership)
2261
+ end
2262
+ end
2263
+
2264
+ # These settings can be applied to a user's build operations. Next ID: 4
2265
+ class HybridWorkerConfig
2266
+ include Google::Apis::Core::Hashable
2267
+
2268
+ # The disk size (in GB) which is requested for the build container. Defaults to
2269
+ # 10 GB.
2270
+ # Corresponds to the JSON property `diskSizeGb`
2271
+ # @return [Fixnum]
2272
+ attr_accessor :disk_size_gb
2273
+
2274
+ # The memory (in GB) which is requested for the build container. Defaults to 4
2275
+ # GB.
2276
+ # Corresponds to the JSON property `memoryGb`
2277
+ # @return [Float]
2278
+ attr_accessor :memory_gb
2279
+
2280
+ # The number of vCPUs which are requested for the build container. Defaults to 1.
2281
+ # Corresponds to the JSON property `vcpuCount`
2282
+ # @return [Float]
2283
+ attr_accessor :vcpu_count
2284
+
2285
+ def initialize(**args)
2286
+ update!(**args)
2287
+ end
2288
+
2289
+ # Update properties of this object
2290
+ def update!(**args)
2291
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2292
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
2293
+ @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
2294
+ end
2295
+ end
2296
+
1624
2297
  # Pairs a set of secret environment variables mapped to encrypted values with
1625
2298
  # the Cloud KMS key to use to decrypt the value.
1626
2299
  class InlineSecret
@@ -1651,6 +2324,58 @@ module Google
1651
2324
  end
1652
2325
  end
1653
2326
 
2327
+ # RPC response object returned by ListBitbucketServerConfigs RPC method.
2328
+ class ListBitbucketServerConfigsResponse
2329
+ include Google::Apis::Core::Hashable
2330
+
2331
+ # A list of BitbucketServerConfigs
2332
+ # Corresponds to the JSON property `bitbucketServerConfigs`
2333
+ # @return [Array<Google::Apis::CloudbuildV1::BitbucketServerConfig>]
2334
+ attr_accessor :bitbucket_server_configs
2335
+
2336
+ # A token that can be sent as `page_token` to retrieve the next page. If this
2337
+ # field is omitted, there are no subsequent pages.
2338
+ # Corresponds to the JSON property `nextPageToken`
2339
+ # @return [String]
2340
+ attr_accessor :next_page_token
2341
+
2342
+ def initialize(**args)
2343
+ update!(**args)
2344
+ end
2345
+
2346
+ # Update properties of this object
2347
+ def update!(**args)
2348
+ @bitbucket_server_configs = args[:bitbucket_server_configs] if args.key?(:bitbucket_server_configs)
2349
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2350
+ end
2351
+ end
2352
+
2353
+ # RPC response object returned by the ListBitbucketServerRepositories RPC method.
2354
+ class ListBitbucketServerRepositoriesResponse
2355
+ include Google::Apis::Core::Hashable
2356
+
2357
+ # List of Bitbucket Server repositories.
2358
+ # Corresponds to the JSON property `bitbucketServerRepositories`
2359
+ # @return [Array<Google::Apis::CloudbuildV1::BitbucketServerRepository>]
2360
+ attr_accessor :bitbucket_server_repositories
2361
+
2362
+ # A token that can be sent as `page_token` to retrieve the next page. If this
2363
+ # field is omitted, there are no subsequent pages.
2364
+ # Corresponds to the JSON property `nextPageToken`
2365
+ # @return [String]
2366
+ attr_accessor :next_page_token
2367
+
2368
+ def initialize(**args)
2369
+ update!(**args)
2370
+ end
2371
+
2372
+ # Update properties of this object
2373
+ def update!(**args)
2374
+ @bitbucket_server_repositories = args[:bitbucket_server_repositories] if args.key?(:bitbucket_server_repositories)
2375
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2376
+ end
2377
+ end
2378
+
1654
2379
  # Response containing existing `BuildTriggers`.
1655
2380
  class ListBuildTriggersResponse
1656
2381
  include Google::Apis::Core::Hashable
@@ -2104,6 +2829,11 @@ module Google
2104
2829
  # @return [String]
2105
2830
  attr_accessor :name
2106
2831
 
2832
+ # Configuration per workload for both Private Pools and Hybrid Pools.
2833
+ # Corresponds to the JSON property `workerConfig`
2834
+ # @return [Google::Apis::CloudbuildV1::GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig]
2835
+ attr_accessor :worker_config
2836
+
2107
2837
  def initialize(**args)
2108
2838
  update!(**args)
2109
2839
  end
@@ -2111,6 +2841,7 @@ module Google
2111
2841
  # Update properties of this object
2112
2842
  def update!(**args)
2113
2843
  @name = args[:name] if args.key?(:name)
2844
+ @worker_config = args[:worker_config] if args.key?(:worker_config)
2114
2845
  end
2115
2846
  end
2116
2847
 
@@ -2298,6 +3029,27 @@ module Google
2298
3029
  end
2299
3030
  end
2300
3031
 
3032
+ # RPC request object accepted by RemoveBitbucketServerConnectedRepository RPC
3033
+ # method.
3034
+ class RemoveBitbucketServerConnectedRepositoryRequest
3035
+ include Google::Apis::Core::Hashable
3036
+
3037
+ # BitbucketServerRepositoryId identifies a specific repository hosted on a
3038
+ # Bitbucket Server.
3039
+ # Corresponds to the JSON property `connectedRepository`
3040
+ # @return [Google::Apis::CloudbuildV1::BitbucketServerRepositoryId]
3041
+ attr_accessor :connected_repository
3042
+
3043
+ def initialize(**args)
3044
+ update!(**args)
3045
+ end
3046
+
3047
+ # Update properties of this object
3048
+ def update!(**args)
3049
+ @connected_repository = args[:connected_repository] if args.key?(:connected_repository)
3050
+ end
3051
+ end
3052
+
2301
3053
  # Location of the source in a Google Cloud Source Repository.
2302
3054
  class RepoSource
2303
3055
  include Google::Apis::Core::Hashable
@@ -2856,6 +3608,38 @@ module Google
2856
3608
  end
2857
3609
  end
2858
3610
 
3611
+ # Metadata for `UpdateBitbucketServerConfig` operation.
3612
+ class UpdateBitbucketServerConfigOperationMetadata
3613
+ include Google::Apis::Core::Hashable
3614
+
3615
+ # The resource name of the BitbucketServerConfig to be updated. Format: `
3616
+ # projects/`project`/locations/`location`/bitbucketServerConfigs/`id``.
3617
+ # Corresponds to the JSON property `bitbucketServerConfig`
3618
+ # @return [String]
3619
+ attr_accessor :bitbucket_server_config
3620
+
3621
+ # Time the operation was completed.
3622
+ # Corresponds to the JSON property `completeTime`
3623
+ # @return [String]
3624
+ attr_accessor :complete_time
3625
+
3626
+ # Time the operation was created.
3627
+ # Corresponds to the JSON property `createTime`
3628
+ # @return [String]
3629
+ attr_accessor :create_time
3630
+
3631
+ def initialize(**args)
3632
+ update!(**args)
3633
+ end
3634
+
3635
+ # Update properties of this object
3636
+ def update!(**args)
3637
+ @bitbucket_server_config = args[:bitbucket_server_config] if args.key?(:bitbucket_server_config)
3638
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
3639
+ @create_time = args[:create_time] if args.key?(:create_time)
3640
+ end
3641
+ end
3642
+
2859
3643
  # Metadata for `UpdateGitHubEnterpriseConfig` operation.
2860
3644
  class UpdateGitHubEnterpriseConfigOperationMetadata
2861
3645
  include Google::Apis::Core::Hashable
@@ -2888,6 +3672,38 @@ module Google
2888
3672
  end
2889
3673
  end
2890
3674
 
3675
+ # Metadata for `UpdateGitLabConfig` operation.
3676
+ class UpdateGitLabConfigOperationMetadata
3677
+ include Google::Apis::Core::Hashable
3678
+
3679
+ # Time the operation was completed.
3680
+ # Corresponds to the JSON property `completeTime`
3681
+ # @return [String]
3682
+ attr_accessor :complete_time
3683
+
3684
+ # Time the operation was created.
3685
+ # Corresponds to the JSON property `createTime`
3686
+ # @return [String]
3687
+ attr_accessor :create_time
3688
+
3689
+ # The resource name of the GitLabConfig to be created. Format: `projects/`
3690
+ # project`/locations/`location`/gitlabConfigs/`id``.
3691
+ # Corresponds to the JSON property `gitlabConfig`
3692
+ # @return [String]
3693
+ attr_accessor :gitlab_config
3694
+
3695
+ def initialize(**args)
3696
+ update!(**args)
3697
+ end
3698
+
3699
+ # Update properties of this object
3700
+ def update!(**args)
3701
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
3702
+ @create_time = args[:create_time] if args.key?(:create_time)
3703
+ @gitlab_config = args[:gitlab_config] if args.key?(:gitlab_config)
3704
+ end
3705
+ end
3706
+
2891
3707
  # Metadata for the `UpdateWorkerPool` operation.
2892
3708
  class UpdateWorkerPoolOperationMetadata
2893
3709
  include Google::Apis::Core::Hashable
@@ -3072,6 +3888,11 @@ module Google
3072
3888
  # @return [String]
3073
3889
  attr_accessor :etag
3074
3890
 
3891
+ # Configuration for a Hybrid Worker Pool Next ID: 6
3892
+ # Corresponds to the JSON property `hybridPoolConfig`
3893
+ # @return [Google::Apis::CloudbuildV1::HybridPoolConfig]
3894
+ attr_accessor :hybrid_pool_config
3895
+
3075
3896
  # Output only. The resource name of the `WorkerPool`, with format `projects/`
3076
3897
  # project`/locations/`location`/workerPools/`worker_pool``. The value of ``
3077
3898
  # worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
@@ -3111,6 +3932,7 @@ module Google
3111
3932
  @delete_time = args[:delete_time] if args.key?(:delete_time)
3112
3933
  @display_name = args[:display_name] if args.key?(:display_name)
3113
3934
  @etag = args[:etag] if args.key?(:etag)
3935
+ @hybrid_pool_config = args[:hybrid_pool_config] if args.key?(:hybrid_pool_config)
3114
3936
  @name = args[:name] if args.key?(:name)
3115
3937
  @private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config)
3116
3938
  @state = args[:state] if args.key?(:state)