google-apis-cloudbuild_v1 0.8.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c725716abc02710eb56c63df004599aa4cedce2c1501d71f617bb9481b516b2
|
4
|
+
data.tar.gz: c6d13805990b81654bea8cb3157efc544cf10c84df187ef3000ad7f12224194d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd04a9de6f4e6cd7b0d7574926f259af4e224c9401d70c951d72c319cc27d6f9516b523bcb133295cf8b76979db6ff877aaf1c306cd90515a0d5dd93222f294a
|
7
|
+
data.tar.gz: 83ed1eed19e2ecf760034845f1edb029f5bffa45d2f8e38279e5d8eb3aa68f1957b2d58f1f26366b733853f7b963d3618cd0a363478d272e264807391dcd2000
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-cloudbuild_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-07-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210715
|
6
|
+
|
7
|
+
### v0.11.0 (2021-07-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210709
|
10
|
+
|
11
|
+
### v0.10.0 (2021-07-03)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210701
|
14
|
+
* Regenerated using generator version 0.4.0
|
15
|
+
|
16
|
+
### v0.9.0 (2021-06-24)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
3
20
|
### v0.8.0 (2021-06-16)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210613
|
@@ -151,6 +151,11 @@ module Google
|
|
151
151
|
# @return [String]
|
152
152
|
attr_accessor :create_time
|
153
153
|
|
154
|
+
# A fatal problem encountered during the execution of the build.
|
155
|
+
# Corresponds to the JSON property `failureInfo`
|
156
|
+
# @return [Google::Apis::CloudbuildV1::FailureInfo]
|
157
|
+
attr_accessor :failure_info
|
158
|
+
|
154
159
|
# Output only. Time at which execution of the build was finished. The difference
|
155
160
|
# between finish_time and start_time is the duration of the build's execution.
|
156
161
|
# Corresponds to the JSON property `finishTime`
|
@@ -300,6 +305,7 @@ module Google
|
|
300
305
|
@available_secrets = args[:available_secrets] if args.key?(:available_secrets)
|
301
306
|
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
302
307
|
@create_time = args[:create_time] if args.key?(:create_time)
|
308
|
+
@failure_info = args[:failure_info] if args.key?(:failure_info)
|
303
309
|
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
304
310
|
@id = args[:id] if args.key?(:id)
|
305
311
|
@images = args[:images] if args.key?(:images)
|
@@ -402,6 +408,13 @@ module Google
|
|
402
408
|
# @return [String]
|
403
409
|
attr_accessor :machine_type
|
404
410
|
|
411
|
+
# Details about how a build should be executed on a `WorkerPool`. See [running
|
412
|
+
# builds in a private pool](https://cloud.google.com/build/docs/private-pools/
|
413
|
+
# run-builds-in-private-pool) for more information.
|
414
|
+
# Corresponds to the JSON property `pool`
|
415
|
+
# @return [Google::Apis::CloudbuildV1::PoolOption]
|
416
|
+
attr_accessor :pool
|
417
|
+
|
405
418
|
# Requested verifiability options.
|
406
419
|
# Corresponds to the JSON property `requestedVerifyOption`
|
407
420
|
# @return [String]
|
@@ -436,9 +449,7 @@ module Google
|
|
436
449
|
# @return [Array<Google::Apis::CloudbuildV1::Volume>]
|
437
450
|
attr_accessor :volumes
|
438
451
|
|
439
|
-
#
|
440
|
-
# locations/`location`/workerPools/`workerPool` This field is in beta and is
|
441
|
-
# available only to restricted users.
|
452
|
+
# This field deprecated; please use `pool.name` instead.
|
442
453
|
# Corresponds to the JSON property `workerPool`
|
443
454
|
# @return [String]
|
444
455
|
attr_accessor :worker_pool
|
@@ -455,6 +466,7 @@ module Google
|
|
455
466
|
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
|
456
467
|
@logging = args[:logging] if args.key?(:logging)
|
457
468
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
469
|
+
@pool = args[:pool] if args.key?(:pool)
|
458
470
|
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
459
471
|
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
460
472
|
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
|
@@ -596,6 +608,14 @@ module Google
|
|
596
608
|
class BuildTrigger
|
597
609
|
include Google::Apis::Core::Hashable
|
598
610
|
|
611
|
+
# Autodetect build configuration. The following precedence is used (case
|
612
|
+
# insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4.
|
613
|
+
# Dockerfile Currently only available for GitHub App Triggers.
|
614
|
+
# Corresponds to the JSON property `autodetect`
|
615
|
+
# @return [Boolean]
|
616
|
+
attr_accessor :autodetect
|
617
|
+
alias_method :autodetect?, :autodetect
|
618
|
+
|
599
619
|
# A build resource in the Cloud Build API. At a high level, a `Build` describes
|
600
620
|
# where to find source code, how to build it (for example, the builder image to
|
601
621
|
# run on the source), and where to store the built artifacts. Fields can include
|
@@ -690,6 +710,11 @@ module Google
|
|
690
710
|
# @return [String]
|
691
711
|
attr_accessor :resource_name
|
692
712
|
|
713
|
+
# GitRepoSource describes a repo and ref of a code repository.
|
714
|
+
# Corresponds to the JSON property `sourceToBuild`
|
715
|
+
# @return [Google::Apis::CloudbuildV1::GitRepoSource]
|
716
|
+
attr_accessor :source_to_build
|
717
|
+
|
693
718
|
# Substitutions for Build resource. The keys must match the following regular
|
694
719
|
# expression: `^_[A-Z0-9_]+$`.
|
695
720
|
# Corresponds to the JSON property `substitutions`
|
@@ -718,6 +743,7 @@ module Google
|
|
718
743
|
|
719
744
|
# Update properties of this object
|
720
745
|
def update!(**args)
|
746
|
+
@autodetect = args[:autodetect] if args.key?(:autodetect)
|
721
747
|
@build = args[:build] if args.key?(:build)
|
722
748
|
@create_time = args[:create_time] if args.key?(:create_time)
|
723
749
|
@description = args[:description] if args.key?(:description)
|
@@ -731,6 +757,7 @@ module Google
|
|
731
757
|
@name = args[:name] if args.key?(:name)
|
732
758
|
@pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
|
733
759
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
760
|
+
@source_to_build = args[:source_to_build] if args.key?(:source_to_build)
|
734
761
|
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
735
762
|
@tags = args[:tags] if args.key?(:tags)
|
736
763
|
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
|
@@ -815,6 +842,70 @@ module Google
|
|
815
842
|
end
|
816
843
|
end
|
817
844
|
|
845
|
+
# Metadata for the `CreateWorkerPool` operation.
|
846
|
+
class CreateWorkerPoolOperationMetadata
|
847
|
+
include Google::Apis::Core::Hashable
|
848
|
+
|
849
|
+
# Time the operation was completed.
|
850
|
+
# Corresponds to the JSON property `completeTime`
|
851
|
+
# @return [String]
|
852
|
+
attr_accessor :complete_time
|
853
|
+
|
854
|
+
# Time the operation was created.
|
855
|
+
# Corresponds to the JSON property `createTime`
|
856
|
+
# @return [String]
|
857
|
+
attr_accessor :create_time
|
858
|
+
|
859
|
+
# The resource name of the `WorkerPool` to create. Format: `projects/`project`/
|
860
|
+
# locations/`location`/workerPools/`worker_pool``.
|
861
|
+
# Corresponds to the JSON property `workerPool`
|
862
|
+
# @return [String]
|
863
|
+
attr_accessor :worker_pool
|
864
|
+
|
865
|
+
def initialize(**args)
|
866
|
+
update!(**args)
|
867
|
+
end
|
868
|
+
|
869
|
+
# Update properties of this object
|
870
|
+
def update!(**args)
|
871
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
872
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
873
|
+
@worker_pool = args[:worker_pool] if args.key?(:worker_pool)
|
874
|
+
end
|
875
|
+
end
|
876
|
+
|
877
|
+
# Metadata for the `DeleteWorkerPool` operation.
|
878
|
+
class DeleteWorkerPoolOperationMetadata
|
879
|
+
include Google::Apis::Core::Hashable
|
880
|
+
|
881
|
+
# Time the operation was completed.
|
882
|
+
# Corresponds to the JSON property `completeTime`
|
883
|
+
# @return [String]
|
884
|
+
attr_accessor :complete_time
|
885
|
+
|
886
|
+
# Time the operation was created.
|
887
|
+
# Corresponds to the JSON property `createTime`
|
888
|
+
# @return [String]
|
889
|
+
attr_accessor :create_time
|
890
|
+
|
891
|
+
# The resource name of the `WorkerPool` being deleted. Format: `projects/`
|
892
|
+
# project`/locations/`location`/workerPools/`worker_pool``.
|
893
|
+
# Corresponds to the JSON property `workerPool`
|
894
|
+
# @return [String]
|
895
|
+
attr_accessor :worker_pool
|
896
|
+
|
897
|
+
def initialize(**args)
|
898
|
+
update!(**args)
|
899
|
+
end
|
900
|
+
|
901
|
+
# Update properties of this object
|
902
|
+
def update!(**args)
|
903
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
904
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
905
|
+
@worker_pool = args[:worker_pool] if args.key?(:worker_pool)
|
906
|
+
end
|
907
|
+
end
|
908
|
+
|
818
909
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
819
910
|
# messages in your APIs. A typical example is to use it as the request or the
|
820
911
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -832,6 +923,31 @@ module Google
|
|
832
923
|
end
|
833
924
|
end
|
834
925
|
|
926
|
+
# A fatal problem encountered during the execution of the build.
|
927
|
+
class FailureInfo
|
928
|
+
include Google::Apis::Core::Hashable
|
929
|
+
|
930
|
+
# Explains the failure issue in more detail using hard-coded text.
|
931
|
+
# Corresponds to the JSON property `detail`
|
932
|
+
# @return [String]
|
933
|
+
attr_accessor :detail
|
934
|
+
|
935
|
+
# The name of the failure.
|
936
|
+
# Corresponds to the JSON property `type`
|
937
|
+
# @return [String]
|
938
|
+
attr_accessor :type
|
939
|
+
|
940
|
+
def initialize(**args)
|
941
|
+
update!(**args)
|
942
|
+
end
|
943
|
+
|
944
|
+
# Update properties of this object
|
945
|
+
def update!(**args)
|
946
|
+
@detail = args[:detail] if args.key?(:detail)
|
947
|
+
@type = args[:type] if args.key?(:type)
|
948
|
+
end
|
949
|
+
end
|
950
|
+
|
835
951
|
# Container message for hashes of byte content of files, used in
|
836
952
|
# SourceProvenance messages to verify integrity of source input to the build.
|
837
953
|
class FileHashes
|
@@ -898,6 +1014,96 @@ module Google
|
|
898
1014
|
end
|
899
1015
|
end
|
900
1016
|
|
1017
|
+
# GitRepoSource describes a repo and ref of a code repository.
|
1018
|
+
class GitRepoSource
|
1019
|
+
include Google::Apis::Core::Hashable
|
1020
|
+
|
1021
|
+
# The branch or tag to use. Must start with "refs/" (required).
|
1022
|
+
# Corresponds to the JSON property `ref`
|
1023
|
+
# @return [String]
|
1024
|
+
attr_accessor :ref
|
1025
|
+
|
1026
|
+
# See RepoType below.
|
1027
|
+
# Corresponds to the JSON property `repoType`
|
1028
|
+
# @return [String]
|
1029
|
+
attr_accessor :repo_type
|
1030
|
+
|
1031
|
+
# The URI of the repo (required).
|
1032
|
+
# Corresponds to the JSON property `uri`
|
1033
|
+
# @return [String]
|
1034
|
+
attr_accessor :uri
|
1035
|
+
|
1036
|
+
def initialize(**args)
|
1037
|
+
update!(**args)
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# Update properties of this object
|
1041
|
+
def update!(**args)
|
1042
|
+
@ref = args[:ref] if args.key?(:ref)
|
1043
|
+
@repo_type = args[:repo_type] if args.key?(:repo_type)
|
1044
|
+
@uri = args[:uri] if args.key?(:uri)
|
1045
|
+
end
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
# Represents the metadata of the long-running operation.
|
1049
|
+
class GoogleDevtoolsCloudbuildV2OperationMetadata
|
1050
|
+
include Google::Apis::Core::Hashable
|
1051
|
+
|
1052
|
+
# Output only. API version used to start the operation.
|
1053
|
+
# Corresponds to the JSON property `apiVersion`
|
1054
|
+
# @return [String]
|
1055
|
+
attr_accessor :api_version
|
1056
|
+
|
1057
|
+
# Output only. The time the operation was created.
|
1058
|
+
# Corresponds to the JSON property `createTime`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :create_time
|
1061
|
+
|
1062
|
+
# Output only. The time the operation finished running.
|
1063
|
+
# Corresponds to the JSON property `endTime`
|
1064
|
+
# @return [String]
|
1065
|
+
attr_accessor :end_time
|
1066
|
+
|
1067
|
+
# Output only. Identifies whether the user has requested cancellation of the
|
1068
|
+
# operation. Operations that have successfully been cancelled have Operation.
|
1069
|
+
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
1070
|
+
# CANCELLED`.
|
1071
|
+
# Corresponds to the JSON property `requestedCancellation`
|
1072
|
+
# @return [Boolean]
|
1073
|
+
attr_accessor :requested_cancellation
|
1074
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
1075
|
+
|
1076
|
+
# Output only. Human-readable status of the operation, if any.
|
1077
|
+
# Corresponds to the JSON property `statusMessage`
|
1078
|
+
# @return [String]
|
1079
|
+
attr_accessor :status_message
|
1080
|
+
|
1081
|
+
# Output only. Server-defined resource path for the target of the operation.
|
1082
|
+
# Corresponds to the JSON property `target`
|
1083
|
+
# @return [String]
|
1084
|
+
attr_accessor :target
|
1085
|
+
|
1086
|
+
# Output only. Name of the verb executed by the operation.
|
1087
|
+
# Corresponds to the JSON property `verb`
|
1088
|
+
# @return [String]
|
1089
|
+
attr_accessor :verb
|
1090
|
+
|
1091
|
+
def initialize(**args)
|
1092
|
+
update!(**args)
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# Update properties of this object
|
1096
|
+
def update!(**args)
|
1097
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
1098
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1099
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1100
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
1101
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
1102
|
+
@target = args[:target] if args.key?(:target)
|
1103
|
+
@verb = args[:verb] if args.key?(:verb)
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
901
1107
|
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
902
1108
|
class HttpDelivery
|
903
1109
|
include Google::Apis::Core::Hashable
|
@@ -1072,6 +1278,63 @@ module Google
|
|
1072
1278
|
end
|
1073
1279
|
end
|
1074
1280
|
|
1281
|
+
# Response containing existing `WorkerPools`.
|
1282
|
+
class ListWorkerPoolsResponse
|
1283
|
+
include Google::Apis::Core::Hashable
|
1284
|
+
|
1285
|
+
# Continuation token used to page through large result sets. Provide this value
|
1286
|
+
# in a subsequent ListWorkerPoolsRequest to return the next page of results.
|
1287
|
+
# Corresponds to the JSON property `nextPageToken`
|
1288
|
+
# @return [String]
|
1289
|
+
attr_accessor :next_page_token
|
1290
|
+
|
1291
|
+
# `WorkerPools` for the specified project.
|
1292
|
+
# Corresponds to the JSON property `workerPools`
|
1293
|
+
# @return [Array<Google::Apis::CloudbuildV1::WorkerPool>]
|
1294
|
+
attr_accessor :worker_pools
|
1295
|
+
|
1296
|
+
def initialize(**args)
|
1297
|
+
update!(**args)
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
# Update properties of this object
|
1301
|
+
def update!(**args)
|
1302
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1303
|
+
@worker_pools = args[:worker_pools] if args.key?(:worker_pools)
|
1304
|
+
end
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
# Defines the network configuration for the pool.
|
1308
|
+
class NetworkConfig
|
1309
|
+
include Google::Apis::Core::Hashable
|
1310
|
+
|
1311
|
+
# Option to configure network egress for the workers.
|
1312
|
+
# Corresponds to the JSON property `egressOption`
|
1313
|
+
# @return [String]
|
1314
|
+
attr_accessor :egress_option
|
1315
|
+
|
1316
|
+
# Required. Immutable. The network definition that the workers are peered to. If
|
1317
|
+
# this section is left empty, the workers will be peered to `WorkerPool.
|
1318
|
+
# project_id` on the service producer network. Must be in the format `projects/`
|
1319
|
+
# project`/global/networks/`network``, where ``project`` is a project number,
|
1320
|
+
# such as `12345`, and ``network`` is the name of a VPC network in the project.
|
1321
|
+
# See [Understanding network configuration options](https://cloud.google.com/
|
1322
|
+
# build/docs/private-pools/set-up-private-pool-environment)
|
1323
|
+
# Corresponds to the JSON property `peeredNetwork`
|
1324
|
+
# @return [String]
|
1325
|
+
attr_accessor :peered_network
|
1326
|
+
|
1327
|
+
def initialize(**args)
|
1328
|
+
update!(**args)
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# Update properties of this object
|
1332
|
+
def update!(**args)
|
1333
|
+
@egress_option = args[:egress_option] if args.key?(:egress_option)
|
1334
|
+
@peered_network = args[:peered_network] if args.key?(:peered_network)
|
1335
|
+
end
|
1336
|
+
end
|
1337
|
+
|
1075
1338
|
# Notification is the container which holds the data that is relevant to this
|
1076
1339
|
# particular notification.
|
1077
1340
|
class Notification
|
@@ -1326,6 +1589,113 @@ module Google
|
|
1326
1589
|
end
|
1327
1590
|
end
|
1328
1591
|
|
1592
|
+
# Represents the metadata of the long-running operation.
|
1593
|
+
class OperationMetadata
|
1594
|
+
include Google::Apis::Core::Hashable
|
1595
|
+
|
1596
|
+
# Output only. API version used to start the operation.
|
1597
|
+
# Corresponds to the JSON property `apiVersion`
|
1598
|
+
# @return [String]
|
1599
|
+
attr_accessor :api_version
|
1600
|
+
|
1601
|
+
# Output only. Identifies whether the user has requested cancellation of the
|
1602
|
+
# operation. Operations that have successfully been cancelled have Operation.
|
1603
|
+
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
1604
|
+
# CANCELLED`.
|
1605
|
+
# Corresponds to the JSON property `cancelRequested`
|
1606
|
+
# @return [Boolean]
|
1607
|
+
attr_accessor :cancel_requested
|
1608
|
+
alias_method :cancel_requested?, :cancel_requested
|
1609
|
+
|
1610
|
+
# Output only. The time the operation was created.
|
1611
|
+
# Corresponds to the JSON property `createTime`
|
1612
|
+
# @return [String]
|
1613
|
+
attr_accessor :create_time
|
1614
|
+
|
1615
|
+
# Output only. The time the operation finished running.
|
1616
|
+
# Corresponds to the JSON property `endTime`
|
1617
|
+
# @return [String]
|
1618
|
+
attr_accessor :end_time
|
1619
|
+
|
1620
|
+
# Output only. Human-readable status of the operation, if any.
|
1621
|
+
# Corresponds to the JSON property `statusDetail`
|
1622
|
+
# @return [String]
|
1623
|
+
attr_accessor :status_detail
|
1624
|
+
|
1625
|
+
# Output only. Server-defined resource path for the target of the operation.
|
1626
|
+
# Corresponds to the JSON property `target`
|
1627
|
+
# @return [String]
|
1628
|
+
attr_accessor :target
|
1629
|
+
|
1630
|
+
# Output only. Name of the verb executed by the operation.
|
1631
|
+
# Corresponds to the JSON property `verb`
|
1632
|
+
# @return [String]
|
1633
|
+
attr_accessor :verb
|
1634
|
+
|
1635
|
+
def initialize(**args)
|
1636
|
+
update!(**args)
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
# Update properties of this object
|
1640
|
+
def update!(**args)
|
1641
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
1642
|
+
@cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
|
1643
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1644
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1645
|
+
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
1646
|
+
@target = args[:target] if args.key?(:target)
|
1647
|
+
@verb = args[:verb] if args.key?(:verb)
|
1648
|
+
end
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
# Details about how a build should be executed on a `WorkerPool`. See [running
|
1652
|
+
# builds in a private pool](https://cloud.google.com/build/docs/private-pools/
|
1653
|
+
# run-builds-in-private-pool) for more information.
|
1654
|
+
class PoolOption
|
1655
|
+
include Google::Apis::Core::Hashable
|
1656
|
+
|
1657
|
+
# The `WorkerPool` resource to execute the build on. You must have `cloudbuild.
|
1658
|
+
# workerpools.use` on the project hosting the WorkerPool. Format projects/`
|
1659
|
+
# project`/locations/`location`/workerPools/`workerPoolId`
|
1660
|
+
# Corresponds to the JSON property `name`
|
1661
|
+
# @return [String]
|
1662
|
+
attr_accessor :name
|
1663
|
+
|
1664
|
+
def initialize(**args)
|
1665
|
+
update!(**args)
|
1666
|
+
end
|
1667
|
+
|
1668
|
+
# Update properties of this object
|
1669
|
+
def update!(**args)
|
1670
|
+
@name = args[:name] if args.key?(:name)
|
1671
|
+
end
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
# Configuration for a V1 `PrivatePool`.
|
1675
|
+
class PrivatePoolV1Config
|
1676
|
+
include Google::Apis::Core::Hashable
|
1677
|
+
|
1678
|
+
# Defines the network configuration for the pool.
|
1679
|
+
# Corresponds to the JSON property `networkConfig`
|
1680
|
+
# @return [Google::Apis::CloudbuildV1::NetworkConfig]
|
1681
|
+
attr_accessor :network_config
|
1682
|
+
|
1683
|
+
# Defines the configuration to be used for creating workers in the pool.
|
1684
|
+
# Corresponds to the JSON property `workerConfig`
|
1685
|
+
# @return [Google::Apis::CloudbuildV1::WorkerConfig]
|
1686
|
+
attr_accessor :worker_config
|
1687
|
+
|
1688
|
+
def initialize(**args)
|
1689
|
+
update!(**args)
|
1690
|
+
end
|
1691
|
+
|
1692
|
+
# Update properties of this object
|
1693
|
+
def update!(**args)
|
1694
|
+
@network_config = args[:network_config] if args.key?(:network_config)
|
1695
|
+
@worker_config = args[:worker_config] if args.key?(:worker_config)
|
1696
|
+
end
|
1697
|
+
end
|
1698
|
+
|
1329
1699
|
# PubsubConfig describes the configuration of a trigger that creates a build
|
1330
1700
|
# whenever a Pub/Sub message is published.
|
1331
1701
|
class PubsubConfig
|
@@ -1811,7 +2181,8 @@ module Google
|
|
1811
2181
|
attr_accessor :storage_source
|
1812
2182
|
|
1813
2183
|
# Location of the source manifest in Google Cloud Storage. This feature is in
|
1814
|
-
# Preview.
|
2184
|
+
# Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
|
2185
|
+
# builders/tree/master/gcs-fetcher).
|
1815
2186
|
# Corresponds to the JSON property `storageSourceManifest`
|
1816
2187
|
# @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
|
1817
2188
|
attr_accessor :storage_source_manifest
|
@@ -1855,7 +2226,8 @@ module Google
|
|
1855
2226
|
attr_accessor :resolved_storage_source
|
1856
2227
|
|
1857
2228
|
# Location of the source manifest in Google Cloud Storage. This feature is in
|
1858
|
-
# Preview.
|
2229
|
+
# Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
|
2230
|
+
# builders/tree/master/gcs-fetcher).
|
1859
2231
|
# Corresponds to the JSON property `resolvedStorageSourceManifest`
|
1860
2232
|
# @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
|
1861
2233
|
attr_accessor :resolved_storage_source_manifest
|
@@ -1930,7 +2302,7 @@ module Google
|
|
1930
2302
|
attr_accessor :generation
|
1931
2303
|
|
1932
2304
|
# Google Cloud Storage object containing the source. This object must be a
|
1933
|
-
# gzipped archive file (`.tar.gz`) containing source to build.
|
2305
|
+
# zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
|
1934
2306
|
# Corresponds to the JSON property `object`
|
1935
2307
|
# @return [String]
|
1936
2308
|
attr_accessor :object
|
@@ -1948,7 +2320,8 @@ module Google
|
|
1948
2320
|
end
|
1949
2321
|
|
1950
2322
|
# Location of the source manifest in Google Cloud Storage. This feature is in
|
1951
|
-
# Preview.
|
2323
|
+
# Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
|
2324
|
+
# builders/tree/master/gcs-fetcher).
|
1952
2325
|
class StorageSourceManifest
|
1953
2326
|
include Google::Apis::Core::Hashable
|
1954
2327
|
|
@@ -2008,6 +2381,38 @@ module Google
|
|
2008
2381
|
end
|
2009
2382
|
end
|
2010
2383
|
|
2384
|
+
# Metadata for the `UpdateWorkerPool` operation.
|
2385
|
+
class UpdateWorkerPoolOperationMetadata
|
2386
|
+
include Google::Apis::Core::Hashable
|
2387
|
+
|
2388
|
+
# Time the operation was completed.
|
2389
|
+
# Corresponds to the JSON property `completeTime`
|
2390
|
+
# @return [String]
|
2391
|
+
attr_accessor :complete_time
|
2392
|
+
|
2393
|
+
# Time the operation was created.
|
2394
|
+
# Corresponds to the JSON property `createTime`
|
2395
|
+
# @return [String]
|
2396
|
+
attr_accessor :create_time
|
2397
|
+
|
2398
|
+
# The resource name of the `WorkerPool` being updated. Format: `projects/`
|
2399
|
+
# project`/locations/`location`/workerPools/`worker_pool``.
|
2400
|
+
# Corresponds to the JSON property `workerPool`
|
2401
|
+
# @return [String]
|
2402
|
+
attr_accessor :worker_pool
|
2403
|
+
|
2404
|
+
def initialize(**args)
|
2405
|
+
update!(**args)
|
2406
|
+
end
|
2407
|
+
|
2408
|
+
# Update properties of this object
|
2409
|
+
def update!(**args)
|
2410
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
2411
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2412
|
+
@worker_pool = args[:worker_pool] if args.key?(:worker_pool)
|
2413
|
+
end
|
2414
|
+
end
|
2415
|
+
|
2011
2416
|
# Volume describes a Docker container volume which is mounted into build steps
|
2012
2417
|
# in order to persist files across build step execution.
|
2013
2418
|
class Volume
|
@@ -2089,6 +2494,123 @@ module Google
|
|
2089
2494
|
@state = args[:state] if args.key?(:state)
|
2090
2495
|
end
|
2091
2496
|
end
|
2497
|
+
|
2498
|
+
# Defines the configuration to be used for creating workers in the pool.
|
2499
|
+
class WorkerConfig
|
2500
|
+
include Google::Apis::Core::Hashable
|
2501
|
+
|
2502
|
+
# Size of the disk attached to the worker, in GB. See [Worker pool config file](
|
2503
|
+
# https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-
|
2504
|
+
# schema). Specify a value of up to 1000. If `0` is specified, Cloud Build will
|
2505
|
+
# use a standard disk size.
|
2506
|
+
# Corresponds to the JSON property `diskSizeGb`
|
2507
|
+
# @return [Fixnum]
|
2508
|
+
attr_accessor :disk_size_gb
|
2509
|
+
|
2510
|
+
# Machine type of a worker, such as `e2-medium`. See [Worker pool config file](
|
2511
|
+
# https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-
|
2512
|
+
# schema). If left blank, Cloud Build will use a sensible default.
|
2513
|
+
# Corresponds to the JSON property `machineType`
|
2514
|
+
# @return [String]
|
2515
|
+
attr_accessor :machine_type
|
2516
|
+
|
2517
|
+
def initialize(**args)
|
2518
|
+
update!(**args)
|
2519
|
+
end
|
2520
|
+
|
2521
|
+
# Update properties of this object
|
2522
|
+
def update!(**args)
|
2523
|
+
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
2524
|
+
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
2525
|
+
end
|
2526
|
+
end
|
2527
|
+
|
2528
|
+
# Configuration for a `WorkerPool`. Cloud Build owns and maintains a pool of
|
2529
|
+
# workers for general use and have no access to a project's private network. By
|
2530
|
+
# default, builds submitted to Cloud Build will use a worker from this pool. If
|
2531
|
+
# your build needs access to resources on a private network, create and use a `
|
2532
|
+
# WorkerPool` to run your builds. Private `WorkerPool`s give your builds access
|
2533
|
+
# to any single VPC network that you administer, including any on-prem resources
|
2534
|
+
# connected to that VPC network. For an overview of private pools, see [Private
|
2535
|
+
# pools overview](https://cloud.google.com/build/docs/private-pools/private-
|
2536
|
+
# pools-overview).
|
2537
|
+
class WorkerPool
|
2538
|
+
include Google::Apis::Core::Hashable
|
2539
|
+
|
2540
|
+
# User specified annotations. See https://google.aip.dev/128#annotations for
|
2541
|
+
# more details such as format and size limitations.
|
2542
|
+
# Corresponds to the JSON property `annotations`
|
2543
|
+
# @return [Hash<String,String>]
|
2544
|
+
attr_accessor :annotations
|
2545
|
+
|
2546
|
+
# Output only. Time at which the request to create the `WorkerPool` was received.
|
2547
|
+
# Corresponds to the JSON property `createTime`
|
2548
|
+
# @return [String]
|
2549
|
+
attr_accessor :create_time
|
2550
|
+
|
2551
|
+
# Output only. Time at which the request to delete the `WorkerPool` was received.
|
2552
|
+
# Corresponds to the JSON property `deleteTime`
|
2553
|
+
# @return [String]
|
2554
|
+
attr_accessor :delete_time
|
2555
|
+
|
2556
|
+
# A user-specified, human-readable name for the `WorkerPool`. If provided, this
|
2557
|
+
# value must be 1-63 characters.
|
2558
|
+
# Corresponds to the JSON property `displayName`
|
2559
|
+
# @return [String]
|
2560
|
+
attr_accessor :display_name
|
2561
|
+
|
2562
|
+
# Output only. Checksum computed by the server. May be sent on update and delete
|
2563
|
+
# requests to ensure that the client has an up-to-date value before proceeding.
|
2564
|
+
# Corresponds to the JSON property `etag`
|
2565
|
+
# @return [String]
|
2566
|
+
attr_accessor :etag
|
2567
|
+
|
2568
|
+
# Output only. The resource name of the `WorkerPool`, with format `projects/`
|
2569
|
+
# project`/locations/`location`/workerPools/`worker_pool``. The value of ``
|
2570
|
+
# worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
|
2571
|
+
# and the value of ``location`` is determined by the endpoint accessed.
|
2572
|
+
# Corresponds to the JSON property `name`
|
2573
|
+
# @return [String]
|
2574
|
+
attr_accessor :name
|
2575
|
+
|
2576
|
+
# Configuration for a V1 `PrivatePool`.
|
2577
|
+
# Corresponds to the JSON property `privatePoolV1Config`
|
2578
|
+
# @return [Google::Apis::CloudbuildV1::PrivatePoolV1Config]
|
2579
|
+
attr_accessor :private_pool_v1_config
|
2580
|
+
|
2581
|
+
# Output only. `WorkerPool` state.
|
2582
|
+
# Corresponds to the JSON property `state`
|
2583
|
+
# @return [String]
|
2584
|
+
attr_accessor :state
|
2585
|
+
|
2586
|
+
# Output only. A unique identifier for the `WorkerPool`.
|
2587
|
+
# Corresponds to the JSON property `uid`
|
2588
|
+
# @return [String]
|
2589
|
+
attr_accessor :uid
|
2590
|
+
|
2591
|
+
# Output only. Time at which the request to update the `WorkerPool` was received.
|
2592
|
+
# Corresponds to the JSON property `updateTime`
|
2593
|
+
# @return [String]
|
2594
|
+
attr_accessor :update_time
|
2595
|
+
|
2596
|
+
def initialize(**args)
|
2597
|
+
update!(**args)
|
2598
|
+
end
|
2599
|
+
|
2600
|
+
# Update properties of this object
|
2601
|
+
def update!(**args)
|
2602
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
2603
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2604
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
2605
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2606
|
+
@etag = args[:etag] if args.key?(:etag)
|
2607
|
+
@name = args[:name] if args.key?(:name)
|
2608
|
+
@private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config)
|
2609
|
+
@state = args[:state] if args.key?(:state)
|
2610
|
+
@uid = args[:uid] if args.key?(:uid)
|
2611
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2612
|
+
end
|
2613
|
+
end
|
2092
2614
|
end
|
2093
2615
|
end
|
2094
2616
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudbuildV1
|
18
18
|
# Version of the google-apis-cloudbuild_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210715"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,12 +88,30 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class CreateWorkerPoolOperationMetadata
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class DeleteWorkerPoolOperationMetadata
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class Empty
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class FailureInfo
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
97
115
|
class FileHashes
|
98
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
117
|
|
@@ -106,6 +124,18 @@ module Google
|
|
106
124
|
include Google::Apis::Core::JsonObjectSupport
|
107
125
|
end
|
108
126
|
|
127
|
+
class GitRepoSource
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class GoogleDevtoolsCloudbuildV2OperationMetadata
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
109
139
|
class HttpDelivery
|
110
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
141
|
|
@@ -142,6 +172,18 @@ module Google
|
|
142
172
|
include Google::Apis::Core::JsonObjectSupport
|
143
173
|
end
|
144
174
|
|
175
|
+
class ListWorkerPoolsResponse
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class NetworkConfig
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
145
187
|
class Notification
|
146
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
189
|
|
@@ -184,6 +226,24 @@ module Google
|
|
184
226
|
include Google::Apis::Core::JsonObjectSupport
|
185
227
|
end
|
186
228
|
|
229
|
+
class OperationMetadata
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class PoolOption
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
241
|
+
class PrivatePoolV1Config
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
187
247
|
class PubsubConfig
|
188
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
249
|
|
@@ -298,6 +358,12 @@ module Google
|
|
298
358
|
include Google::Apis::Core::JsonObjectSupport
|
299
359
|
end
|
300
360
|
|
361
|
+
class UpdateWorkerPoolOperationMetadata
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
301
367
|
class Volume
|
302
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
369
|
|
@@ -316,6 +382,18 @@ module Google
|
|
316
382
|
include Google::Apis::Core::JsonObjectSupport
|
317
383
|
end
|
318
384
|
|
385
|
+
class WorkerConfig
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
391
|
+
class WorkerPool
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
319
397
|
class ArtifactObjects
|
320
398
|
# @private
|
321
399
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -353,6 +431,8 @@ module Google
|
|
353
431
|
|
354
432
|
property :build_trigger_id, as: 'buildTriggerId'
|
355
433
|
property :create_time, as: 'createTime'
|
434
|
+
property :failure_info, as: 'failureInfo', class: Google::Apis::CloudbuildV1::FailureInfo, decorator: Google::Apis::CloudbuildV1::FailureInfo::Representation
|
435
|
+
|
356
436
|
property :finish_time, as: 'finishTime'
|
357
437
|
property :id, as: 'id'
|
358
438
|
collection :images, as: 'images'
|
@@ -404,6 +484,8 @@ module Google
|
|
404
484
|
property :log_streaming_option, as: 'logStreamingOption'
|
405
485
|
property :logging, as: 'logging'
|
406
486
|
property :machine_type, as: 'machineType'
|
487
|
+
property :pool, as: 'pool', class: Google::Apis::CloudbuildV1::PoolOption, decorator: Google::Apis::CloudbuildV1::PoolOption::Representation
|
488
|
+
|
407
489
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
408
490
|
collection :secret_env, as: 'secretEnv'
|
409
491
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
@@ -439,6 +521,7 @@ module Google
|
|
439
521
|
class BuildTrigger
|
440
522
|
# @private
|
441
523
|
class Representation < Google::Apis::Core::JsonRepresentation
|
524
|
+
property :autodetect, as: 'autodetect'
|
442
525
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
443
526
|
|
444
527
|
property :create_time, as: 'createTime'
|
@@ -455,6 +538,8 @@ module Google
|
|
455
538
|
property :pubsub_config, as: 'pubsubConfig', class: Google::Apis::CloudbuildV1::PubsubConfig, decorator: Google::Apis::CloudbuildV1::PubsubConfig::Representation
|
456
539
|
|
457
540
|
property :resource_name, as: 'resourceName'
|
541
|
+
property :source_to_build, as: 'sourceToBuild', class: Google::Apis::CloudbuildV1::GitRepoSource, decorator: Google::Apis::CloudbuildV1::GitRepoSource::Representation
|
542
|
+
|
458
543
|
hash :substitutions, as: 'substitutions'
|
459
544
|
collection :tags, as: 'tags'
|
460
545
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
@@ -489,12 +574,38 @@ module Google
|
|
489
574
|
end
|
490
575
|
end
|
491
576
|
|
577
|
+
class CreateWorkerPoolOperationMetadata
|
578
|
+
# @private
|
579
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
580
|
+
property :complete_time, as: 'completeTime'
|
581
|
+
property :create_time, as: 'createTime'
|
582
|
+
property :worker_pool, as: 'workerPool'
|
583
|
+
end
|
584
|
+
end
|
585
|
+
|
586
|
+
class DeleteWorkerPoolOperationMetadata
|
587
|
+
# @private
|
588
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
589
|
+
property :complete_time, as: 'completeTime'
|
590
|
+
property :create_time, as: 'createTime'
|
591
|
+
property :worker_pool, as: 'workerPool'
|
592
|
+
end
|
593
|
+
end
|
594
|
+
|
492
595
|
class Empty
|
493
596
|
# @private
|
494
597
|
class Representation < Google::Apis::Core::JsonRepresentation
|
495
598
|
end
|
496
599
|
end
|
497
600
|
|
601
|
+
class FailureInfo
|
602
|
+
# @private
|
603
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
604
|
+
property :detail, as: 'detail'
|
605
|
+
property :type, as: 'type'
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
498
609
|
class FileHashes
|
499
610
|
# @private
|
500
611
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -516,6 +627,28 @@ module Google
|
|
516
627
|
end
|
517
628
|
end
|
518
629
|
|
630
|
+
class GitRepoSource
|
631
|
+
# @private
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
633
|
+
property :ref, as: 'ref'
|
634
|
+
property :repo_type, as: 'repoType'
|
635
|
+
property :uri, as: 'uri'
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
class GoogleDevtoolsCloudbuildV2OperationMetadata
|
640
|
+
# @private
|
641
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
642
|
+
property :api_version, as: 'apiVersion'
|
643
|
+
property :create_time, as: 'createTime'
|
644
|
+
property :end_time, as: 'endTime'
|
645
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
646
|
+
property :status_message, as: 'statusMessage'
|
647
|
+
property :target, as: 'target'
|
648
|
+
property :verb, as: 'verb'
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
519
652
|
class HttpDelivery
|
520
653
|
# @private
|
521
654
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -566,6 +699,23 @@ module Google
|
|
566
699
|
end
|
567
700
|
end
|
568
701
|
|
702
|
+
class ListWorkerPoolsResponse
|
703
|
+
# @private
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
705
|
+
property :next_page_token, as: 'nextPageToken'
|
706
|
+
collection :worker_pools, as: 'workerPools', class: Google::Apis::CloudbuildV1::WorkerPool, decorator: Google::Apis::CloudbuildV1::WorkerPool::Representation
|
707
|
+
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
711
|
+
class NetworkConfig
|
712
|
+
# @private
|
713
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
714
|
+
property :egress_option, as: 'egressOption'
|
715
|
+
property :peered_network, as: 'peeredNetwork'
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
569
719
|
class Notification
|
570
720
|
# @private
|
571
721
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -637,6 +787,36 @@ module Google
|
|
637
787
|
end
|
638
788
|
end
|
639
789
|
|
790
|
+
class OperationMetadata
|
791
|
+
# @private
|
792
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
793
|
+
property :api_version, as: 'apiVersion'
|
794
|
+
property :cancel_requested, as: 'cancelRequested'
|
795
|
+
property :create_time, as: 'createTime'
|
796
|
+
property :end_time, as: 'endTime'
|
797
|
+
property :status_detail, as: 'statusDetail'
|
798
|
+
property :target, as: 'target'
|
799
|
+
property :verb, as: 'verb'
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
class PoolOption
|
804
|
+
# @private
|
805
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
806
|
+
property :name, as: 'name'
|
807
|
+
end
|
808
|
+
end
|
809
|
+
|
810
|
+
class PrivatePoolV1Config
|
811
|
+
# @private
|
812
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
813
|
+
property :network_config, as: 'networkConfig', class: Google::Apis::CloudbuildV1::NetworkConfig, decorator: Google::Apis::CloudbuildV1::NetworkConfig::Representation
|
814
|
+
|
815
|
+
property :worker_config, as: 'workerConfig', class: Google::Apis::CloudbuildV1::WorkerConfig, decorator: Google::Apis::CloudbuildV1::WorkerConfig::Representation
|
816
|
+
|
817
|
+
end
|
818
|
+
end
|
819
|
+
|
640
820
|
class PubsubConfig
|
641
821
|
# @private
|
642
822
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -826,6 +1006,15 @@ module Google
|
|
826
1006
|
end
|
827
1007
|
end
|
828
1008
|
|
1009
|
+
class UpdateWorkerPoolOperationMetadata
|
1010
|
+
# @private
|
1011
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1012
|
+
property :complete_time, as: 'completeTime'
|
1013
|
+
property :create_time, as: 'createTime'
|
1014
|
+
property :worker_pool, as: 'workerPool'
|
1015
|
+
end
|
1016
|
+
end
|
1017
|
+
|
829
1018
|
class Volume
|
830
1019
|
# @private
|
831
1020
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -849,6 +1038,31 @@ module Google
|
|
849
1038
|
property :state, as: 'state'
|
850
1039
|
end
|
851
1040
|
end
|
1041
|
+
|
1042
|
+
class WorkerConfig
|
1043
|
+
# @private
|
1044
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1045
|
+
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
1046
|
+
property :machine_type, as: 'machineType'
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
class WorkerPool
|
1051
|
+
# @private
|
1052
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1053
|
+
hash :annotations, as: 'annotations'
|
1054
|
+
property :create_time, as: 'createTime'
|
1055
|
+
property :delete_time, as: 'deleteTime'
|
1056
|
+
property :display_name, as: 'displayName'
|
1057
|
+
property :etag, as: 'etag'
|
1058
|
+
property :name, as: 'name'
|
1059
|
+
property :private_pool_v1_config, as: 'privatePoolV1Config', class: Google::Apis::CloudbuildV1::PrivatePoolV1Config, decorator: Google::Apis::CloudbuildV1::PrivatePoolV1Config::Representation
|
1060
|
+
|
1061
|
+
property :state, as: 'state'
|
1062
|
+
property :uid, as: 'uid'
|
1063
|
+
property :update_time, as: 'updateTime'
|
1064
|
+
end
|
1065
|
+
end
|
852
1066
|
end
|
853
1067
|
end
|
854
1068
|
end
|
@@ -885,6 +885,205 @@ module Google
|
|
885
885
|
execute_or_queue_command(command, &block)
|
886
886
|
end
|
887
887
|
|
888
|
+
# Creates a `WorkerPool`.
|
889
|
+
# @param [String] parent
|
890
|
+
# Required. The parent resource where this worker pool will be created. Format: `
|
891
|
+
# projects/`project`/locations/`location``.
|
892
|
+
# @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
|
893
|
+
# @param [Boolean] validate_only
|
894
|
+
# If set, validate the request and preview the response, but do not actually
|
895
|
+
# post it.
|
896
|
+
# @param [String] worker_pool_id
|
897
|
+
# Required. Immutable. The ID to use for the `WorkerPool`, which will become the
|
898
|
+
# final component of the resource name. This value should be 1-63 characters,
|
899
|
+
# and valid characters are /a-z-/.
|
900
|
+
# @param [String] fields
|
901
|
+
# Selector specifying which fields to include in a partial response.
|
902
|
+
# @param [String] quota_user
|
903
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
904
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
905
|
+
# @param [Google::Apis::RequestOptions] options
|
906
|
+
# Request-specific options
|
907
|
+
#
|
908
|
+
# @yield [result, err] Result & error if block supplied
|
909
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
910
|
+
# @yieldparam err [StandardError] error object if request failed
|
911
|
+
#
|
912
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
913
|
+
#
|
914
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
915
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
916
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
917
|
+
def create_project_location_worker_pool(parent, worker_pool_object = nil, validate_only: nil, worker_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
918
|
+
command = make_simple_command(:post, 'v1/{+parent}/workerPools', options)
|
919
|
+
command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
920
|
+
command.request_object = worker_pool_object
|
921
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
922
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
923
|
+
command.params['parent'] = parent unless parent.nil?
|
924
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
925
|
+
command.query['workerPoolId'] = worker_pool_id unless worker_pool_id.nil?
|
926
|
+
command.query['fields'] = fields unless fields.nil?
|
927
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
928
|
+
execute_or_queue_command(command, &block)
|
929
|
+
end
|
930
|
+
|
931
|
+
# Deletes a `WorkerPool`.
|
932
|
+
# @param [String] name
|
933
|
+
# Required. The name of the `WorkerPool` to delete. Format: `projects/`project`/
|
934
|
+
# locations/`workerPool`/workerPools/`workerPool``.
|
935
|
+
# @param [Boolean] allow_missing
|
936
|
+
# If set to true, and the `WorkerPool` is not found, the request will succeed
|
937
|
+
# but no action will be taken on the server.
|
938
|
+
# @param [String] etag
|
939
|
+
# Optional. If this is provided, it must match the server's etag on the
|
940
|
+
# workerpool for the request to be processed.
|
941
|
+
# @param [Boolean] validate_only
|
942
|
+
# If set, validate the request and preview the response, but do not actually
|
943
|
+
# post it.
|
944
|
+
# @param [String] fields
|
945
|
+
# Selector specifying which fields to include in a partial response.
|
946
|
+
# @param [String] quota_user
|
947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
949
|
+
# @param [Google::Apis::RequestOptions] options
|
950
|
+
# Request-specific options
|
951
|
+
#
|
952
|
+
# @yield [result, err] Result & error if block supplied
|
953
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
954
|
+
# @yieldparam err [StandardError] error object if request failed
|
955
|
+
#
|
956
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
957
|
+
#
|
958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
961
|
+
def delete_project_location_worker_pool(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
962
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
963
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
964
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
965
|
+
command.params['name'] = name unless name.nil?
|
966
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
967
|
+
command.query['etag'] = etag unless etag.nil?
|
968
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
969
|
+
command.query['fields'] = fields unless fields.nil?
|
970
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
971
|
+
execute_or_queue_command(command, &block)
|
972
|
+
end
|
973
|
+
|
974
|
+
# Returns details of a `WorkerPool`.
|
975
|
+
# @param [String] name
|
976
|
+
# Required. The name of the `WorkerPool` to retrieve. Format: `projects/`project`
|
977
|
+
# /locations/`location`/workerPools/`workerPool``.
|
978
|
+
# @param [String] fields
|
979
|
+
# Selector specifying which fields to include in a partial response.
|
980
|
+
# @param [String] quota_user
|
981
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
982
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
983
|
+
# @param [Google::Apis::RequestOptions] options
|
984
|
+
# Request-specific options
|
985
|
+
#
|
986
|
+
# @yield [result, err] Result & error if block supplied
|
987
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::WorkerPool] parsed result object
|
988
|
+
# @yieldparam err [StandardError] error object if request failed
|
989
|
+
#
|
990
|
+
# @return [Google::Apis::CloudbuildV1::WorkerPool]
|
991
|
+
#
|
992
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
993
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
994
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
995
|
+
def get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
996
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
997
|
+
command.response_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
998
|
+
command.response_class = Google::Apis::CloudbuildV1::WorkerPool
|
999
|
+
command.params['name'] = name unless name.nil?
|
1000
|
+
command.query['fields'] = fields unless fields.nil?
|
1001
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1002
|
+
execute_or_queue_command(command, &block)
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
# Lists `WorkerPool`s.
|
1006
|
+
# @param [String] parent
|
1007
|
+
# Required. The parent of the collection of `WorkerPools`. Format: `projects/`
|
1008
|
+
# project`/locations/`location``.
|
1009
|
+
# @param [Fixnum] page_size
|
1010
|
+
# The maximum number of `WorkerPool`s to return. The service may return fewer
|
1011
|
+
# than this value. If omitted, the server will use a sensible default.
|
1012
|
+
# @param [String] page_token
|
1013
|
+
# A page token, received from a previous `ListWorkerPools` call. Provide this to
|
1014
|
+
# retrieve the subsequent page.
|
1015
|
+
# @param [String] fields
|
1016
|
+
# Selector specifying which fields to include in a partial response.
|
1017
|
+
# @param [String] quota_user
|
1018
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1019
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1020
|
+
# @param [Google::Apis::RequestOptions] options
|
1021
|
+
# Request-specific options
|
1022
|
+
#
|
1023
|
+
# @yield [result, err] Result & error if block supplied
|
1024
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse] parsed result object
|
1025
|
+
# @yieldparam err [StandardError] error object if request failed
|
1026
|
+
#
|
1027
|
+
# @return [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse]
|
1028
|
+
#
|
1029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1032
|
+
def list_project_location_worker_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1033
|
+
command = make_simple_command(:get, 'v1/{+parent}/workerPools', options)
|
1034
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse::Representation
|
1035
|
+
command.response_class = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse
|
1036
|
+
command.params['parent'] = parent unless parent.nil?
|
1037
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1038
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1039
|
+
command.query['fields'] = fields unless fields.nil?
|
1040
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1041
|
+
execute_or_queue_command(command, &block)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Updates a `WorkerPool`.
|
1045
|
+
# @param [String] name
|
1046
|
+
# Output only. The resource name of the `WorkerPool`, with format `projects/`
|
1047
|
+
# project`/locations/`location`/workerPools/`worker_pool``. The value of ``
|
1048
|
+
# worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
|
1049
|
+
# and the value of ``location`` is determined by the endpoint accessed.
|
1050
|
+
# @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
|
1051
|
+
# @param [String] update_mask
|
1052
|
+
# A mask specifying which fields in `worker_pool` to update.
|
1053
|
+
# @param [Boolean] validate_only
|
1054
|
+
# If set, validate the request and preview the response, but do not actually
|
1055
|
+
# post it.
|
1056
|
+
# @param [String] fields
|
1057
|
+
# Selector specifying which fields to include in a partial response.
|
1058
|
+
# @param [String] quota_user
|
1059
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1060
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1061
|
+
# @param [Google::Apis::RequestOptions] options
|
1062
|
+
# Request-specific options
|
1063
|
+
#
|
1064
|
+
# @yield [result, err] Result & error if block supplied
|
1065
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
1066
|
+
# @yieldparam err [StandardError] error object if request failed
|
1067
|
+
#
|
1068
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
1069
|
+
#
|
1070
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1071
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1072
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1073
|
+
def patch_project_location_worker_pool(name, worker_pool_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1074
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1075
|
+
command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
1076
|
+
command.request_object = worker_pool_object
|
1077
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
1078
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
1079
|
+
command.params['name'] = name unless name.nil?
|
1080
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1081
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1082
|
+
command.query['fields'] = fields unless fields.nil?
|
1083
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1084
|
+
execute_or_queue_command(command, &block)
|
1085
|
+
end
|
1086
|
+
|
888
1087
|
# Creates a new `BuildTrigger`. This API is experimental.
|
889
1088
|
# @param [String] project_id
|
890
1089
|
# Required. ID of the project for which to configure automatic builds.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudbuild_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud Build API V1. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.12.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|