google-apis-cloudbuild_v1 0.5.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39aac7ae09c9d2440d5bc63fa5afd818a2e90cc9c768c58037489150ed196b44
4
- data.tar.gz: 774b11a8d06f065714792c5b195a7237ffd23ff08f71b7a607b8465f9519183b
3
+ metadata.gz: 54cda4b032e71c13fbb1c3105240510106e3f86754e20d032c461f136e7213e5
4
+ data.tar.gz: 6a66a2cb1e0ff6e52d1b195e960329d064d72636ca6ad92ad38d62f4fba16186
5
5
  SHA512:
6
- metadata.gz: 18033746b46870b4c55e230b3d8dc9450947f24456dbfdf3b2fde1cbe972d35c79ab9285cef8f82a0e15235efee1a16cf8c2dc6b35bcb233ac368a64b5729533
7
- data.tar.gz: 7e2b0ac055ddd939ad65b7928658bf4a7f5f64d7ec183a1f5062a24c5e1c65d3a312ab912588f086153dc93e0cfdb37926bf7af65635dc9097b0ec0b9ca9ba4d
6
+ metadata.gz: '072684c93416857a321a7686c3d9b4f8cca116d4caf2ddcc7833e326f2e9518f751740062443df4f7f786f348f5fb806d16d226849e887d6323146c949ae7aa3'
7
+ data.tar.gz: d8d183fedd676fc631c83e727f43d6467e04b1f36ebd20d39209b446900ddf7264e0820594dec11a52a4a387ca851bc9bb7e385172578acf8f375367f62f6244
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.10.0 (2021-07-03)
4
+
5
+ * Regenerated from discovery document revision 20210701
6
+ * Regenerated using generator version 0.4.0
7
+
8
+ ### v0.9.0 (2021-06-24)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.8.0 (2021-06-16)
13
+
14
+ * Regenerated from discovery document revision 20210613
15
+ * Regenerated using generator version 0.3.0
16
+
17
+ ### v0.7.0 (2021-05-19)
18
+
19
+ * Unspecified changes
20
+
21
+ ### v0.6.0 (2021-05-12)
22
+
23
+ * Regenerated from discovery document revision 20210511
24
+
3
25
  ### v0.5.0 (2021-03-23)
4
26
 
5
27
  * Regenerated from discovery document revision 20210319
@@ -223,7 +223,7 @@ module Google
223
223
 
224
224
  # IAM service account whose credentials will be used at build runtime. Must be
225
225
  # of the format `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. ACCOUNT can
226
- # be email address or uniqueId of the service account. This field is in beta.
226
+ # be email address or uniqueId of the service account.
227
227
  # Corresponds to the JSON property `serviceAccount`
228
228
  # @return [String]
229
229
  attr_accessor :service_account
@@ -285,6 +285,11 @@ module Google
285
285
  # @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
286
286
  attr_accessor :timing
287
287
 
288
+ # Output only. Non-fatal problems encountered during the execution of the build.
289
+ # Corresponds to the JSON property `warnings`
290
+ # @return [Array<Google::Apis::CloudbuildV1::Warning>]
291
+ attr_accessor :warnings
292
+
288
293
  def initialize(**args)
289
294
  update!(**args)
290
295
  end
@@ -317,6 +322,7 @@ module Google
317
322
  @tags = args[:tags] if args.key?(:tags)
318
323
  @timeout = args[:timeout] if args.key?(:timeout)
319
324
  @timing = args[:timing] if args.key?(:timing)
325
+ @warnings = args[:warnings] if args.key?(:warnings)
320
326
  end
321
327
  end
322
328
 
@@ -396,6 +402,13 @@ module Google
396
402
  # @return [String]
397
403
  attr_accessor :machine_type
398
404
 
405
+ # Details about how a build should be executed on a `WorkerPool`. See [running
406
+ # builds in a custom worker pool](https://cloud.google.com/build/docs/custom-
407
+ # workers/run-builds-in-custom-worker-pool) for more information.
408
+ # Corresponds to the JSON property `pool`
409
+ # @return [Google::Apis::CloudbuildV1::PoolOption]
410
+ attr_accessor :pool
411
+
399
412
  # Requested verifiability options.
400
413
  # Corresponds to the JSON property `requestedVerifyOption`
401
414
  # @return [String]
@@ -430,9 +443,7 @@ module Google
430
443
  # @return [Array<Google::Apis::CloudbuildV1::Volume>]
431
444
  attr_accessor :volumes
432
445
 
433
- # Option to specify a `WorkerPool` for the build. Format: projects/`project`/
434
- # locations/`location`/workerPools/`workerPool` This field is in beta and is
435
- # available only to restricted users.
446
+ # This field deprecated; please use `pool.name` instead.
436
447
  # Corresponds to the JSON property `workerPool`
437
448
  # @return [String]
438
449
  attr_accessor :worker_pool
@@ -449,6 +460,7 @@ module Google
449
460
  @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
450
461
  @logging = args[:logging] if args.key?(:logging)
451
462
  @machine_type = args[:machine_type] if args.key?(:machine_type)
463
+ @pool = args[:pool] if args.key?(:pool)
452
464
  @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
453
465
  @secret_env = args[:secret_env] if args.key?(:secret_env)
454
466
  @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@@ -590,6 +602,14 @@ module Google
590
602
  class BuildTrigger
591
603
  include Google::Apis::Core::Hashable
592
604
 
605
+ # Autodetect build configuration. The following precedence is used (case
606
+ # insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4.
607
+ # Dockerfile Currently only available for GitHub App Triggers.
608
+ # Corresponds to the JSON property `autodetect`
609
+ # @return [Boolean]
610
+ attr_accessor :autodetect
611
+ alias_method :autodetect?, :autodetect
612
+
593
613
  # A build resource in the Cloud Build API. At a high level, a `Build` describes
594
614
  # where to find source code, how to build it (for example, the builder image to
595
615
  # run on the source), and where to store the built artifacts. Fields can include
@@ -627,6 +647,11 @@ module Google
627
647
  # @return [String]
628
648
  attr_accessor :filename
629
649
 
650
+ # Optional. A Common Expression Language string.
651
+ # Corresponds to the JSON property `filter`
652
+ # @return [String]
653
+ attr_accessor :filter
654
+
630
655
  # GitHubEventsConfig describes the configuration of a trigger that creates a
631
656
  # build whenever a GitHub event is received. This message is experimental.
632
657
  # Corresponds to the JSON property `github`
@@ -666,6 +691,19 @@ module Google
666
691
  # @return [String]
667
692
  attr_accessor :name
668
693
 
694
+ # PubsubConfig describes the configuration of a trigger that creates a build
695
+ # whenever a Pub/Sub message is published.
696
+ # Corresponds to the JSON property `pubsubConfig`
697
+ # @return [Google::Apis::CloudbuildV1::PubsubConfig]
698
+ attr_accessor :pubsub_config
699
+
700
+ # The `Trigger` name with format: `projects/`project`/locations/`location`/
701
+ # triggers/`trigger``, where `trigger` is a unique identifier generated by the
702
+ # service.
703
+ # Corresponds to the JSON property `resourceName`
704
+ # @return [String]
705
+ attr_accessor :resource_name
706
+
669
707
  # Substitutions for Build resource. The keys must match the following regular
670
708
  # expression: `^_[A-Z0-9_]+$`.
671
709
  # Corresponds to the JSON property `substitutions`
@@ -682,25 +720,36 @@ module Google
682
720
  # @return [Google::Apis::CloudbuildV1::RepoSource]
683
721
  attr_accessor :trigger_template
684
722
 
723
+ # WebhookConfig describes the configuration of a trigger that creates a build
724
+ # whenever a webhook is sent to a trigger's webhook URL.
725
+ # Corresponds to the JSON property `webhookConfig`
726
+ # @return [Google::Apis::CloudbuildV1::WebhookConfig]
727
+ attr_accessor :webhook_config
728
+
685
729
  def initialize(**args)
686
730
  update!(**args)
687
731
  end
688
732
 
689
733
  # Update properties of this object
690
734
  def update!(**args)
735
+ @autodetect = args[:autodetect] if args.key?(:autodetect)
691
736
  @build = args[:build] if args.key?(:build)
692
737
  @create_time = args[:create_time] if args.key?(:create_time)
693
738
  @description = args[:description] if args.key?(:description)
694
739
  @disabled = args[:disabled] if args.key?(:disabled)
695
740
  @filename = args[:filename] if args.key?(:filename)
741
+ @filter = args[:filter] if args.key?(:filter)
696
742
  @github = args[:github] if args.key?(:github)
697
743
  @id = args[:id] if args.key?(:id)
698
744
  @ignored_files = args[:ignored_files] if args.key?(:ignored_files)
699
745
  @included_files = args[:included_files] if args.key?(:included_files)
700
746
  @name = args[:name] if args.key?(:name)
747
+ @pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
748
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
701
749
  @substitutions = args[:substitutions] if args.key?(:substitutions)
702
750
  @tags = args[:tags] if args.key?(:tags)
703
751
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
752
+ @webhook_config = args[:webhook_config] if args.key?(:webhook_config)
704
753
  end
705
754
  end
706
755
 
@@ -781,6 +830,70 @@ module Google
781
830
  end
782
831
  end
783
832
 
833
+ # Metadata for the `CreateWorkerPool` operation.
834
+ class CreateWorkerPoolOperationMetadata
835
+ include Google::Apis::Core::Hashable
836
+
837
+ # Time the operation was completed.
838
+ # Corresponds to the JSON property `completeTime`
839
+ # @return [String]
840
+ attr_accessor :complete_time
841
+
842
+ # Time the operation was created.
843
+ # Corresponds to the JSON property `createTime`
844
+ # @return [String]
845
+ attr_accessor :create_time
846
+
847
+ # The resource name of the `WorkerPool` to create. Format: `projects/`project`/
848
+ # locations/`location`/workerPools/`worker_pool``.
849
+ # Corresponds to the JSON property `workerPool`
850
+ # @return [String]
851
+ attr_accessor :worker_pool
852
+
853
+ def initialize(**args)
854
+ update!(**args)
855
+ end
856
+
857
+ # Update properties of this object
858
+ def update!(**args)
859
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
860
+ @create_time = args[:create_time] if args.key?(:create_time)
861
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
862
+ end
863
+ end
864
+
865
+ # Metadata for the `DeleteWorkerPool` operation.
866
+ class DeleteWorkerPoolOperationMetadata
867
+ include Google::Apis::Core::Hashable
868
+
869
+ # Time the operation was completed.
870
+ # Corresponds to the JSON property `completeTime`
871
+ # @return [String]
872
+ attr_accessor :complete_time
873
+
874
+ # Time the operation was created.
875
+ # Corresponds to the JSON property `createTime`
876
+ # @return [String]
877
+ attr_accessor :create_time
878
+
879
+ # The resource name of the `WorkerPool` being deleted. Format: `projects/`
880
+ # project`/locations/`location`/workerPools/`worker_pool``.
881
+ # Corresponds to the JSON property `workerPool`
882
+ # @return [String]
883
+ attr_accessor :worker_pool
884
+
885
+ def initialize(**args)
886
+ update!(**args)
887
+ end
888
+
889
+ # Update properties of this object
890
+ def update!(**args)
891
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
892
+ @create_time = args[:create_time] if args.key?(:create_time)
893
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
894
+ end
895
+ end
896
+
784
897
  # A generic empty message that you can re-use to avoid defining duplicated empty
785
898
  # messages in your APIs. A typical example is to use it as the request or the
786
899
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1038,6 +1151,64 @@ module Google
1038
1151
  end
1039
1152
  end
1040
1153
 
1154
+ # Response containing existing `WorkerPools`.
1155
+ class ListWorkerPoolsResponse
1156
+ include Google::Apis::Core::Hashable
1157
+
1158
+ # Continuation token used to page through large result sets. Provide this value
1159
+ # in a subsequent ListWorkerPoolsRequest to return the next page of results.
1160
+ # Corresponds to the JSON property `nextPageToken`
1161
+ # @return [String]
1162
+ attr_accessor :next_page_token
1163
+
1164
+ # `WorkerPools` for the specified project.
1165
+ # Corresponds to the JSON property `workerPools`
1166
+ # @return [Array<Google::Apis::CloudbuildV1::WorkerPool>]
1167
+ attr_accessor :worker_pools
1168
+
1169
+ def initialize(**args)
1170
+ update!(**args)
1171
+ end
1172
+
1173
+ # Update properties of this object
1174
+ def update!(**args)
1175
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1176
+ @worker_pools = args[:worker_pools] if args.key?(:worker_pools)
1177
+ end
1178
+ end
1179
+
1180
+ # Defines the network configuration for the pool.
1181
+ class NetworkConfig
1182
+ include Google::Apis::Core::Hashable
1183
+
1184
+ # Option to configure network egress for the workers.
1185
+ # Corresponds to the JSON property `egressOption`
1186
+ # @return [String]
1187
+ attr_accessor :egress_option
1188
+
1189
+ # Required. Immutable. The network definition that the workers are peered to. If
1190
+ # this section is left empty, the workers will be peered to `WorkerPool.
1191
+ # project_id` on the service producer network. Must be in the format `projects/`
1192
+ # project`/global/networks/`network``, where ``project`` is a project number,
1193
+ # such as `12345`, and ``network`` is the name of a VPC network in the project.
1194
+ # See [Understanding network configuration options](https://cloud.google.com/
1195
+ # cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#
1196
+ # understanding_the_network_configuration_options)
1197
+ # Corresponds to the JSON property `peeredNetwork`
1198
+ # @return [String]
1199
+ attr_accessor :peered_network
1200
+
1201
+ def initialize(**args)
1202
+ update!(**args)
1203
+ end
1204
+
1205
+ # Update properties of this object
1206
+ def update!(**args)
1207
+ @egress_option = args[:egress_option] if args.key?(:egress_option)
1208
+ @peered_network = args[:peered_network] if args.key?(:peered_network)
1209
+ end
1210
+ end
1211
+
1041
1212
  # Notification is the container which holds the data that is relevant to this
1042
1213
  # particular notification.
1043
1214
  class Notification
@@ -1292,6 +1463,95 @@ module Google
1292
1463
  end
1293
1464
  end
1294
1465
 
1466
+ # Details about how a build should be executed on a `WorkerPool`. See [running
1467
+ # builds in a custom worker pool](https://cloud.google.com/build/docs/custom-
1468
+ # workers/run-builds-in-custom-worker-pool) for more information.
1469
+ class PoolOption
1470
+ include Google::Apis::Core::Hashable
1471
+
1472
+ # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.
1473
+ # workerpools.use` on the project hosting the WorkerPool. Format projects/`
1474
+ # project`/locations/`location`/workerPools/`workerPoolId`
1475
+ # Corresponds to the JSON property `name`
1476
+ # @return [String]
1477
+ attr_accessor :name
1478
+
1479
+ def initialize(**args)
1480
+ update!(**args)
1481
+ end
1482
+
1483
+ # Update properties of this object
1484
+ def update!(**args)
1485
+ @name = args[:name] if args.key?(:name)
1486
+ end
1487
+ end
1488
+
1489
+ # Configuration for a V1 `PrivatePool`.
1490
+ class PrivatePoolV1Config
1491
+ include Google::Apis::Core::Hashable
1492
+
1493
+ # Defines the network configuration for the pool.
1494
+ # Corresponds to the JSON property `networkConfig`
1495
+ # @return [Google::Apis::CloudbuildV1::NetworkConfig]
1496
+ attr_accessor :network_config
1497
+
1498
+ # Defines the configuration to be used for creating workers in the pool.
1499
+ # Corresponds to the JSON property `workerConfig`
1500
+ # @return [Google::Apis::CloudbuildV1::WorkerConfig]
1501
+ attr_accessor :worker_config
1502
+
1503
+ def initialize(**args)
1504
+ update!(**args)
1505
+ end
1506
+
1507
+ # Update properties of this object
1508
+ def update!(**args)
1509
+ @network_config = args[:network_config] if args.key?(:network_config)
1510
+ @worker_config = args[:worker_config] if args.key?(:worker_config)
1511
+ end
1512
+ end
1513
+
1514
+ # PubsubConfig describes the configuration of a trigger that creates a build
1515
+ # whenever a Pub/Sub message is published.
1516
+ class PubsubConfig
1517
+ include Google::Apis::Core::Hashable
1518
+
1519
+ # Service account that will make the push request.
1520
+ # Corresponds to the JSON property `serviceAccountEmail`
1521
+ # @return [String]
1522
+ attr_accessor :service_account_email
1523
+
1524
+ # Potential issues with the underlying Pub/Sub subscription configuration. Only
1525
+ # populated on get requests.
1526
+ # Corresponds to the JSON property `state`
1527
+ # @return [String]
1528
+ attr_accessor :state
1529
+
1530
+ # Output only. Name of the subscription. Format is `projects/`project`/
1531
+ # subscriptions/`subscription``.
1532
+ # Corresponds to the JSON property `subscription`
1533
+ # @return [String]
1534
+ attr_accessor :subscription
1535
+
1536
+ # The name of the topic from which this subscription is receiving messages.
1537
+ # Format is `projects/`project`/topics/`topic``.
1538
+ # Corresponds to the JSON property `topic`
1539
+ # @return [String]
1540
+ attr_accessor :topic
1541
+
1542
+ def initialize(**args)
1543
+ update!(**args)
1544
+ end
1545
+
1546
+ # Update properties of this object
1547
+ def update!(**args)
1548
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
1549
+ @state = args[:state] if args.key?(:state)
1550
+ @subscription = args[:subscription] if args.key?(:subscription)
1551
+ @topic = args[:topic] if args.key?(:topic)
1552
+ end
1553
+ end
1554
+
1295
1555
  # PullRequestFilter contains filter properties for matching GitHub Pull Requests.
1296
1556
  class PullRequestFilter
1297
1557
  include Google::Apis::Core::Hashable
@@ -1532,6 +1792,37 @@ module Google
1532
1792
  end
1533
1793
  end
1534
1794
 
1795
+ # Specifies a build trigger to run and the source to use.
1796
+ class RunBuildTriggerRequest
1797
+ include Google::Apis::Core::Hashable
1798
+
1799
+ # Required. ID of the project.
1800
+ # Corresponds to the JSON property `projectId`
1801
+ # @return [String]
1802
+ attr_accessor :project_id
1803
+
1804
+ # Location of the source in a Google Cloud Source Repository.
1805
+ # Corresponds to the JSON property `source`
1806
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
1807
+ attr_accessor :source
1808
+
1809
+ # Required. ID of the trigger.
1810
+ # Corresponds to the JSON property `triggerId`
1811
+ # @return [String]
1812
+ attr_accessor :trigger_id
1813
+
1814
+ def initialize(**args)
1815
+ update!(**args)
1816
+ end
1817
+
1818
+ # Update properties of this object
1819
+ def update!(**args)
1820
+ @project_id = args[:project_id] if args.key?(:project_id)
1821
+ @source = args[:source] if args.key?(:source)
1822
+ @trigger_id = args[:trigger_id] if args.key?(:trigger_id)
1823
+ end
1824
+ end
1825
+
1535
1826
  # SMTPDelivery is the delivery configuration for an SMTP (email) notification.
1536
1827
  class SmtpDelivery
1537
1828
  include Google::Apis::Core::Hashable
@@ -1705,7 +1996,8 @@ module Google
1705
1996
  attr_accessor :storage_source
1706
1997
 
1707
1998
  # Location of the source manifest in Google Cloud Storage. This feature is in
1708
- # Preview.
1999
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2000
+ # builders/tree/master/gcs-fetcher).
1709
2001
  # Corresponds to the JSON property `storageSourceManifest`
1710
2002
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1711
2003
  attr_accessor :storage_source_manifest
@@ -1749,7 +2041,8 @@ module Google
1749
2041
  attr_accessor :resolved_storage_source
1750
2042
 
1751
2043
  # Location of the source manifest in Google Cloud Storage. This feature is in
1752
- # Preview.
2044
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2045
+ # builders/tree/master/gcs-fetcher).
1753
2046
  # Corresponds to the JSON property `resolvedStorageSourceManifest`
1754
2047
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1755
2048
  attr_accessor :resolved_storage_source_manifest
@@ -1842,7 +2135,8 @@ module Google
1842
2135
  end
1843
2136
 
1844
2137
  # Location of the source manifest in Google Cloud Storage. This feature is in
1845
- # Preview.
2138
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2139
+ # builders/tree/master/gcs-fetcher).
1846
2140
  class StorageSourceManifest
1847
2141
  include Google::Apis::Core::Hashable
1848
2142
 
@@ -1902,6 +2196,38 @@ module Google
1902
2196
  end
1903
2197
  end
1904
2198
 
2199
+ # Metadata for the `UpdateWorkerPool` operation.
2200
+ class UpdateWorkerPoolOperationMetadata
2201
+ include Google::Apis::Core::Hashable
2202
+
2203
+ # Time the operation was completed.
2204
+ # Corresponds to the JSON property `completeTime`
2205
+ # @return [String]
2206
+ attr_accessor :complete_time
2207
+
2208
+ # Time the operation was created.
2209
+ # Corresponds to the JSON property `createTime`
2210
+ # @return [String]
2211
+ attr_accessor :create_time
2212
+
2213
+ # The resource name of the `WorkerPool` being updated. Format: `projects/`
2214
+ # project`/locations/`location`/workerPools/`worker_pool``.
2215
+ # Corresponds to the JSON property `workerPool`
2216
+ # @return [String]
2217
+ attr_accessor :worker_pool
2218
+
2219
+ def initialize(**args)
2220
+ update!(**args)
2221
+ end
2222
+
2223
+ # Update properties of this object
2224
+ def update!(**args)
2225
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
2226
+ @create_time = args[:create_time] if args.key?(:create_time)
2227
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
2228
+ end
2229
+ end
2230
+
1905
2231
  # Volume describes a Docker container volume which is mounted into build steps
1906
2232
  # in order to persist files across build step execution.
1907
2233
  class Volume
@@ -1931,6 +2257,175 @@ module Google
1931
2257
  @path = args[:path] if args.key?(:path)
1932
2258
  end
1933
2259
  end
2260
+
2261
+ # A non-fatal problem encountered during the execution of the build.
2262
+ class Warning
2263
+ include Google::Apis::Core::Hashable
2264
+
2265
+ # The priority for this warning.
2266
+ # Corresponds to the JSON property `priority`
2267
+ # @return [String]
2268
+ attr_accessor :priority
2269
+
2270
+ # Explanation of the warning generated.
2271
+ # Corresponds to the JSON property `text`
2272
+ # @return [String]
2273
+ attr_accessor :text
2274
+
2275
+ def initialize(**args)
2276
+ update!(**args)
2277
+ end
2278
+
2279
+ # Update properties of this object
2280
+ def update!(**args)
2281
+ @priority = args[:priority] if args.key?(:priority)
2282
+ @text = args[:text] if args.key?(:text)
2283
+ end
2284
+ end
2285
+
2286
+ # WebhookConfig describes the configuration of a trigger that creates a build
2287
+ # whenever a webhook is sent to a trigger's webhook URL.
2288
+ class WebhookConfig
2289
+ include Google::Apis::Core::Hashable
2290
+
2291
+ # Required. Resource name for the secret required as a URL parameter.
2292
+ # Corresponds to the JSON property `secret`
2293
+ # @return [String]
2294
+ attr_accessor :secret
2295
+
2296
+ # Potential issues with the underlying Pub/Sub subscription configuration. Only
2297
+ # populated on get requests.
2298
+ # Corresponds to the JSON property `state`
2299
+ # @return [String]
2300
+ attr_accessor :state
2301
+
2302
+ def initialize(**args)
2303
+ update!(**args)
2304
+ end
2305
+
2306
+ # Update properties of this object
2307
+ def update!(**args)
2308
+ @secret = args[:secret] if args.key?(:secret)
2309
+ @state = args[:state] if args.key?(:state)
2310
+ end
2311
+ end
2312
+
2313
+ # Defines the configuration to be used for creating workers in the pool.
2314
+ class WorkerConfig
2315
+ include Google::Apis::Core::Hashable
2316
+
2317
+ # Size of the disk attached to the worker, in GB. See [Worker pool config file](
2318
+ # https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-
2319
+ # file). Specify a value of up to 1000. If `0` is specified, Cloud Build will
2320
+ # use a standard disk size.
2321
+ # Corresponds to the JSON property `diskSizeGb`
2322
+ # @return [Fixnum]
2323
+ attr_accessor :disk_size_gb
2324
+
2325
+ # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](
2326
+ # https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-
2327
+ # file). If left blank, Cloud Build will use a sensible default.
2328
+ # Corresponds to the JSON property `machineType`
2329
+ # @return [String]
2330
+ attr_accessor :machine_type
2331
+
2332
+ def initialize(**args)
2333
+ update!(**args)
2334
+ end
2335
+
2336
+ # Update properties of this object
2337
+ def update!(**args)
2338
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2339
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
2340
+ end
2341
+ end
2342
+
2343
+ # Configuration for a `WorkerPool`. Cloud Build owns and maintains a pool of
2344
+ # workers for general use and have no access to a project's private network. By
2345
+ # default, builds submitted to Cloud Build will use a worker from this pool. If
2346
+ # your build needs access to resources on a private network, create and use a `
2347
+ # WorkerPool` to run your builds. Private `WorkerPool`s give your builds access
2348
+ # to any single VPC network that you administer, including any on-prem resources
2349
+ # connected to that VPC network. For an overview of custom worker pools, see [
2350
+ # Custom workers overview](https://cloud.google.com/cloud-build/docs/custom-
2351
+ # workers/custom-workers-overview).
2352
+ class WorkerPool
2353
+ include Google::Apis::Core::Hashable
2354
+
2355
+ # User specified annotations. See https://google.aip.dev/128#annotations for
2356
+ # more details such as format and size limitations.
2357
+ # Corresponds to the JSON property `annotations`
2358
+ # @return [Hash<String,String>]
2359
+ attr_accessor :annotations
2360
+
2361
+ # Output only. Time at which the request to create the `WorkerPool` was received.
2362
+ # Corresponds to the JSON property `createTime`
2363
+ # @return [String]
2364
+ attr_accessor :create_time
2365
+
2366
+ # Output only. Time at which the request to delete the `WorkerPool` was received.
2367
+ # Corresponds to the JSON property `deleteTime`
2368
+ # @return [String]
2369
+ attr_accessor :delete_time
2370
+
2371
+ # A user-specified, human-readable name for the `WorkerPool`. If provided, this
2372
+ # value must be 1-63 characters.
2373
+ # Corresponds to the JSON property `displayName`
2374
+ # @return [String]
2375
+ attr_accessor :display_name
2376
+
2377
+ # Output only. Checksum computed by the server. May be sent on update and delete
2378
+ # requests to ensure that the client has an up-to-date value before proceeding.
2379
+ # Corresponds to the JSON property `etag`
2380
+ # @return [String]
2381
+ attr_accessor :etag
2382
+
2383
+ # Output only. The resource name of the `WorkerPool`, with format `projects/`
2384
+ # project`/locations/`location`/workerPools/`worker_pool``. The value of ``
2385
+ # worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
2386
+ # and the value of ``location`` is determined by the endpoint accessed.
2387
+ # Corresponds to the JSON property `name`
2388
+ # @return [String]
2389
+ attr_accessor :name
2390
+
2391
+ # Configuration for a V1 `PrivatePool`.
2392
+ # Corresponds to the JSON property `privatePoolV1Config`
2393
+ # @return [Google::Apis::CloudbuildV1::PrivatePoolV1Config]
2394
+ attr_accessor :private_pool_v1_config
2395
+
2396
+ # Output only. `WorkerPool` state.
2397
+ # Corresponds to the JSON property `state`
2398
+ # @return [String]
2399
+ attr_accessor :state
2400
+
2401
+ # Output only. A unique identifier for the `WorkerPool`.
2402
+ # Corresponds to the JSON property `uid`
2403
+ # @return [String]
2404
+ attr_accessor :uid
2405
+
2406
+ # Output only. Time at which the request to update the `WorkerPool` was received.
2407
+ # Corresponds to the JSON property `updateTime`
2408
+ # @return [String]
2409
+ attr_accessor :update_time
2410
+
2411
+ def initialize(**args)
2412
+ update!(**args)
2413
+ end
2414
+
2415
+ # Update properties of this object
2416
+ def update!(**args)
2417
+ @annotations = args[:annotations] if args.key?(:annotations)
2418
+ @create_time = args[:create_time] if args.key?(:create_time)
2419
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
2420
+ @display_name = args[:display_name] if args.key?(:display_name)
2421
+ @etag = args[:etag] if args.key?(:etag)
2422
+ @name = args[:name] if args.key?(:name)
2423
+ @private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config)
2424
+ @state = args[:state] if args.key?(:state)
2425
+ @uid = args[:uid] if args.key?(:uid)
2426
+ @update_time = args[:update_time] if args.key?(:update_time)
2427
+ end
2428
+ end
1934
2429
  end
1935
2430
  end
1936
2431
  end