google-cloud-build-v1 0.19.0 → 0.21.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 +4 -4
- data/lib/google/cloud/build/v1/cloud_build/client.rb +106 -69
- data/lib/google/cloud/build/v1/cloud_build/paths.rb +41 -0
- data/lib/google/cloud/build/v1/cloud_build/rest/client.rb +10 -3
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +7 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb +7 -1
- data/proto_docs/google/api/routing.rb +459 -0
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +195 -22
- metadata +3 -2
|
@@ -51,26 +51,27 @@ module Google
|
|
|
51
51
|
# @!attribute [rw] source
|
|
52
52
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
|
53
53
|
# Source to build against this trigger.
|
|
54
|
+
# Branch and tag names cannot consist of regular expressions.
|
|
54
55
|
class RunBuildTriggerRequest
|
|
55
56
|
include ::Google::Protobuf::MessageExts
|
|
56
57
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
57
58
|
end
|
|
58
59
|
|
|
59
|
-
# Location of the source in an archive file in
|
|
60
|
+
# Location of the source in an archive file in Cloud Storage.
|
|
60
61
|
# @!attribute [rw] bucket
|
|
61
62
|
# @return [::String]
|
|
62
|
-
#
|
|
63
|
+
# Cloud Storage bucket containing the source (see
|
|
63
64
|
# [Bucket Name
|
|
64
65
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
|
65
66
|
# @!attribute [rw] object
|
|
66
67
|
# @return [::String]
|
|
67
|
-
#
|
|
68
|
+
# Cloud Storage object containing the source.
|
|
68
69
|
#
|
|
69
|
-
# This object must be a gzipped archive file (`.tar.gz`)
|
|
70
|
-
# build.
|
|
70
|
+
# This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
|
|
71
|
+
# containing source to build.
|
|
71
72
|
# @!attribute [rw] generation
|
|
72
73
|
# @return [::Integer]
|
|
73
|
-
#
|
|
74
|
+
# Cloud Storage generation for the object. If the generation is
|
|
74
75
|
# omitted, the latest generation will be used.
|
|
75
76
|
class StorageSource
|
|
76
77
|
include ::Google::Protobuf::MessageExts
|
|
@@ -157,22 +158,22 @@ module Google
|
|
|
157
158
|
end
|
|
158
159
|
end
|
|
159
160
|
|
|
160
|
-
# Location of the source manifest in
|
|
161
|
+
# Location of the source manifest in Cloud Storage.
|
|
161
162
|
# This feature is in Preview; see description
|
|
162
163
|
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
|
163
164
|
# @!attribute [rw] bucket
|
|
164
165
|
# @return [::String]
|
|
165
|
-
#
|
|
166
|
+
# Cloud Storage bucket containing the source manifest (see [Bucket
|
|
166
167
|
# Name
|
|
167
168
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
|
168
169
|
# @!attribute [rw] object
|
|
169
170
|
# @return [::String]
|
|
170
|
-
#
|
|
171
|
+
# Cloud Storage object containing the source manifest.
|
|
171
172
|
#
|
|
172
173
|
# This object must be a JSON file.
|
|
173
174
|
# @!attribute [rw] generation
|
|
174
175
|
# @return [::Integer]
|
|
175
|
-
#
|
|
176
|
+
# Cloud Storage generation for the object. If the generation is
|
|
176
177
|
# omitted, the latest generation will be used.
|
|
177
178
|
class StorageSourceManifest
|
|
178
179
|
include ::Google::Protobuf::MessageExts
|
|
@@ -182,7 +183,7 @@ module Google
|
|
|
182
183
|
# Location of the source in a supported storage service.
|
|
183
184
|
# @!attribute [rw] storage_source
|
|
184
185
|
# @return [::Google::Cloud::Build::V1::StorageSource]
|
|
185
|
-
# If provided, get the source from this location in
|
|
186
|
+
# If provided, get the source from this location in Cloud Storage.
|
|
186
187
|
# @!attribute [rw] repo_source
|
|
187
188
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
|
188
189
|
# If provided, get the source from this location in a Cloud Source
|
|
@@ -192,7 +193,7 @@ module Google
|
|
|
192
193
|
# If provided, get the source from this Git repository.
|
|
193
194
|
# @!attribute [rw] storage_source_manifest
|
|
194
195
|
# @return [::Google::Cloud::Build::V1::StorageSourceManifest]
|
|
195
|
-
# If provided, get the source from this manifest in
|
|
196
|
+
# If provided, get the source from this manifest in Cloud Storage.
|
|
196
197
|
# This feature is in Preview; see description
|
|
197
198
|
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
|
198
199
|
class Source
|
|
@@ -444,7 +445,7 @@ module Google
|
|
|
444
445
|
# is a single record in the artifact manifest JSON file.
|
|
445
446
|
# @!attribute [rw] location
|
|
446
447
|
# @return [::String]
|
|
447
|
-
# The path of an artifact in a
|
|
448
|
+
# The path of an artifact in a Cloud Storage bucket, with the
|
|
448
449
|
# generation number. For example,
|
|
449
450
|
# `gs://mybucket/path/to/output.jar#generation`.
|
|
450
451
|
# @!attribute [rw] file_hash
|
|
@@ -546,7 +547,7 @@ module Google
|
|
|
546
547
|
# successful completion of all build steps.
|
|
547
548
|
# @!attribute [rw] logs_bucket
|
|
548
549
|
# @return [::String]
|
|
549
|
-
#
|
|
550
|
+
# Cloud Storage bucket where logs should be written (see
|
|
550
551
|
# [Bucket Name
|
|
551
552
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
|
552
553
|
# Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
|
|
@@ -1254,6 +1255,92 @@ module Google
|
|
|
1254
1255
|
end
|
|
1255
1256
|
end
|
|
1256
1257
|
|
|
1258
|
+
# GitRepoSource describes a repo and ref of a code repository.
|
|
1259
|
+
# @!attribute [rw] uri
|
|
1260
|
+
# @return [::String]
|
|
1261
|
+
# The URI of the repo (e.g. https://github.com/user/repo.git).
|
|
1262
|
+
# Either `uri` or `repository` can be specified and is required.
|
|
1263
|
+
# @!attribute [rw] repository
|
|
1264
|
+
# @return [::String]
|
|
1265
|
+
# The connected repository resource name, in the format
|
|
1266
|
+
# `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or
|
|
1267
|
+
# `repository` can be specified and is required.
|
|
1268
|
+
# @!attribute [rw] ref
|
|
1269
|
+
# @return [::String]
|
|
1270
|
+
# The branch or tag to use. Must start with "refs/" (required).
|
|
1271
|
+
# @!attribute [rw] repo_type
|
|
1272
|
+
# @return [::Google::Cloud::Build::V1::GitFileSource::RepoType]
|
|
1273
|
+
# See RepoType below.
|
|
1274
|
+
# @!attribute [rw] github_enterprise_config
|
|
1275
|
+
# @return [::String]
|
|
1276
|
+
# The full resource name of the github enterprise config.
|
|
1277
|
+
# Format:
|
|
1278
|
+
# `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
|
|
1279
|
+
# `projects/{project}/githubEnterpriseConfigs/{id}`.
|
|
1280
|
+
class GitRepoSource
|
|
1281
|
+
include ::Google::Protobuf::MessageExts
|
|
1282
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1283
|
+
end
|
|
1284
|
+
|
|
1285
|
+
# GitFileSource describes a file within a (possibly remote) code repository.
|
|
1286
|
+
# @!attribute [rw] path
|
|
1287
|
+
# @return [::String]
|
|
1288
|
+
# The path of the file, with the repo root as the root of the path.
|
|
1289
|
+
# @!attribute [rw] uri
|
|
1290
|
+
# @return [::String]
|
|
1291
|
+
# The URI of the repo.
|
|
1292
|
+
# Either uri or repository can be specified.
|
|
1293
|
+
# If unspecified, the repo from which the trigger invocation originated is
|
|
1294
|
+
# assumed to be the repo from which to read the specified path.
|
|
1295
|
+
# @!attribute [rw] repository
|
|
1296
|
+
# @return [::String]
|
|
1297
|
+
# The fully qualified resource name of the Repos API repository.
|
|
1298
|
+
# Either URI or repository can be specified.
|
|
1299
|
+
# If unspecified, the repo from which the trigger invocation originated is
|
|
1300
|
+
# assumed to be the repo from which to read the specified path.
|
|
1301
|
+
# @!attribute [rw] repo_type
|
|
1302
|
+
# @return [::Google::Cloud::Build::V1::GitFileSource::RepoType]
|
|
1303
|
+
# See RepoType above.
|
|
1304
|
+
# @!attribute [rw] revision
|
|
1305
|
+
# @return [::String]
|
|
1306
|
+
# The branch, tag, arbitrary ref, or SHA version of the repo to use when
|
|
1307
|
+
# resolving the filename (optional).
|
|
1308
|
+
# This field respects the same syntax/resolution as described here:
|
|
1309
|
+
# https://git-scm.com/docs/gitrevisions
|
|
1310
|
+
# If unspecified, the revision from which the trigger invocation originated
|
|
1311
|
+
# is assumed to be the revision from which to read the specified path.
|
|
1312
|
+
# @!attribute [rw] github_enterprise_config
|
|
1313
|
+
# @return [::String]
|
|
1314
|
+
# The full resource name of the github enterprise config.
|
|
1315
|
+
# Format:
|
|
1316
|
+
# `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`.
|
|
1317
|
+
# `projects/{project}/githubEnterpriseConfigs/{id}`.
|
|
1318
|
+
class GitFileSource
|
|
1319
|
+
include ::Google::Protobuf::MessageExts
|
|
1320
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1321
|
+
|
|
1322
|
+
# The type of the repo, since it may not be explicit from the `repo` field
|
|
1323
|
+
# (e.g from a URL).
|
|
1324
|
+
module RepoType
|
|
1325
|
+
# The default, unknown repo type. Don't use it, instead use one of
|
|
1326
|
+
# the other repo types.
|
|
1327
|
+
UNKNOWN = 0
|
|
1328
|
+
|
|
1329
|
+
# A Google Cloud Source Repositories-hosted repo.
|
|
1330
|
+
CLOUD_SOURCE_REPOSITORIES = 1
|
|
1331
|
+
|
|
1332
|
+
# A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub
|
|
1333
|
+
# Enterprise).
|
|
1334
|
+
GITHUB = 2
|
|
1335
|
+
|
|
1336
|
+
# A Bitbucket Server-hosted repo.
|
|
1337
|
+
BITBUCKET_SERVER = 3
|
|
1338
|
+
|
|
1339
|
+
# A GitLab-hosted repo.
|
|
1340
|
+
GITLAB = 4
|
|
1341
|
+
end
|
|
1342
|
+
end
|
|
1343
|
+
|
|
1257
1344
|
# Configuration for an automated build in response to source repository
|
|
1258
1345
|
# changes.
|
|
1259
1346
|
# @!attribute [rw] resource_name
|
|
@@ -1319,6 +1406,9 @@ module Google
|
|
|
1319
1406
|
# @return [::String]
|
|
1320
1407
|
# Path, from the source root, to the build configuration file
|
|
1321
1408
|
# (i.e. cloudbuild.yaml).
|
|
1409
|
+
# @!attribute [rw] git_file_source
|
|
1410
|
+
# @return [::Google::Cloud::Build::V1::GitFileSource]
|
|
1411
|
+
# The file source describing the local or remote Build template.
|
|
1322
1412
|
# @!attribute [r] create_time
|
|
1323
1413
|
# @return [::Google::Protobuf::Timestamp]
|
|
1324
1414
|
# Output only. Time when the trigger was created.
|
|
@@ -1353,6 +1443,14 @@ module Google
|
|
|
1353
1443
|
# @!attribute [rw] filter
|
|
1354
1444
|
# @return [::String]
|
|
1355
1445
|
# Optional. A Common Expression Language string.
|
|
1446
|
+
# @!attribute [rw] source_to_build
|
|
1447
|
+
# @return [::Google::Cloud::Build::V1::GitRepoSource]
|
|
1448
|
+
# The repo and ref of the repository from which to build. This field
|
|
1449
|
+
# is used only for those triggers that do not respond to SCM events.
|
|
1450
|
+
# Triggers that respond to such events build source at whatever commit
|
|
1451
|
+
# caused the event.
|
|
1452
|
+
# This field is currently only used by Webhook, Pub/Sub, Manual, and Cron
|
|
1453
|
+
# triggers.
|
|
1356
1454
|
# @!attribute [rw] service_account
|
|
1357
1455
|
# @return [::String]
|
|
1358
1456
|
# The service account used for all user-controlled operations including
|
|
@@ -1414,8 +1512,6 @@ module Google
|
|
|
1414
1512
|
|
|
1415
1513
|
# GitHubEventsConfig describes the configuration of a trigger that creates a
|
|
1416
1514
|
# build whenever a GitHub event is received.
|
|
1417
|
-
#
|
|
1418
|
-
# This message is experimental.
|
|
1419
1515
|
# @!attribute [rw] installation_id
|
|
1420
1516
|
# @return [::Integer]
|
|
1421
1517
|
# The installationID that emits the GitHub event.
|
|
@@ -1691,7 +1787,7 @@ module Google
|
|
|
1691
1787
|
# overridden in the build configuration file.
|
|
1692
1788
|
# @!attribute [rw] log_streaming_option
|
|
1693
1789
|
# @return [::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption]
|
|
1694
|
-
# Option to define build log streaming behavior to
|
|
1790
|
+
# Option to define build log streaming behavior to Cloud
|
|
1695
1791
|
# Storage.
|
|
1696
1792
|
# @!attribute [rw] worker_pool
|
|
1697
1793
|
# @return [::String]
|
|
@@ -1757,6 +1853,15 @@ module Google
|
|
|
1757
1853
|
end
|
|
1758
1854
|
|
|
1759
1855
|
# Specifies the manner in which the build should be verified, if at all.
|
|
1856
|
+
#
|
|
1857
|
+
# If a verified build is requested, and any part of the process to generate
|
|
1858
|
+
# and upload provenance fails, the build will also fail.
|
|
1859
|
+
#
|
|
1860
|
+
# If the build does not request verification then that process may occur, but
|
|
1861
|
+
# is not guaranteed to. If it does occur and fails, the build will not fail.
|
|
1862
|
+
#
|
|
1863
|
+
# For more information, see [Viewing Build
|
|
1864
|
+
# Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance).
|
|
1760
1865
|
module VerifyOption
|
|
1761
1866
|
# Not a verifiable build (the default).
|
|
1762
1867
|
NOT_VERIFIED = 0
|
|
@@ -1798,15 +1903,15 @@ module Google
|
|
|
1798
1903
|
ALLOW_LOOSE = 1
|
|
1799
1904
|
end
|
|
1800
1905
|
|
|
1801
|
-
# Specifies the behavior when writing build logs to
|
|
1906
|
+
# Specifies the behavior when writing build logs to Cloud Storage.
|
|
1802
1907
|
module LogStreamingOption
|
|
1803
1908
|
# Service may automatically determine build log streaming behavior.
|
|
1804
1909
|
STREAM_DEFAULT = 0
|
|
1805
1910
|
|
|
1806
|
-
# Build logs should be streamed to
|
|
1911
|
+
# Build logs should be streamed to Cloud Storage.
|
|
1807
1912
|
STREAM_ON = 1
|
|
1808
1913
|
|
|
1809
|
-
# Build logs should not be streamed to
|
|
1914
|
+
# Build logs should not be streamed to Cloud Storage; they will be
|
|
1810
1915
|
# written when the build is completed.
|
|
1811
1916
|
STREAM_OFF = 2
|
|
1812
1917
|
end
|
|
@@ -1877,6 +1982,71 @@ module Google
|
|
|
1877
1982
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1878
1983
|
end
|
|
1879
1984
|
|
|
1985
|
+
# @!attribute [rw] name
|
|
1986
|
+
# @return [::String]
|
|
1987
|
+
# Optional. The full resource name for the GitHubEnterpriseConfig
|
|
1988
|
+
# For example:
|
|
1989
|
+
# "projects/\\{$project_id}/locations/\\{$location_id}/githubEnterpriseConfigs/\\{$config_id}"
|
|
1990
|
+
# @!attribute [rw] host_url
|
|
1991
|
+
# @return [::String]
|
|
1992
|
+
# The URL of the github enterprise host the configuration is for.
|
|
1993
|
+
# @!attribute [rw] app_id
|
|
1994
|
+
# @return [::Integer]
|
|
1995
|
+
# Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise
|
|
1996
|
+
# server.
|
|
1997
|
+
# @!attribute [r] create_time
|
|
1998
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
1999
|
+
# Output only. Time when the installation was associated with the project.
|
|
2000
|
+
# @!attribute [rw] webhook_key
|
|
2001
|
+
# @return [::String]
|
|
2002
|
+
# The key that should be attached to webhook calls to the ReceiveWebhook
|
|
2003
|
+
# endpoint.
|
|
2004
|
+
# @!attribute [rw] peered_network
|
|
2005
|
+
# @return [::String]
|
|
2006
|
+
# Optional. The network to be used when reaching out to the GitHub
|
|
2007
|
+
# Enterprise server. The VPC network must be enabled for private
|
|
2008
|
+
# service connection. This should be set if the GitHub Enterprise server is
|
|
2009
|
+
# hosted on-premises and not reachable by public internet.
|
|
2010
|
+
# If this field is left empty, no network peering will occur and calls to
|
|
2011
|
+
# the GitHub Enterprise server will be made over the public internet.
|
|
2012
|
+
# Must be in the format
|
|
2013
|
+
# `projects/{project}/global/networks/{network}`, where \\{project}
|
|
2014
|
+
# is a project number or id and \\{network} is the name of a
|
|
2015
|
+
# VPC network in the project.
|
|
2016
|
+
# @!attribute [rw] secrets
|
|
2017
|
+
# @return [::Google::Cloud::Build::V1::GitHubEnterpriseSecrets]
|
|
2018
|
+
# Names of secrets in Secret Manager.
|
|
2019
|
+
# @!attribute [rw] display_name
|
|
2020
|
+
# @return [::String]
|
|
2021
|
+
# Name to display for this config.
|
|
2022
|
+
# @!attribute [rw] ssl_ca
|
|
2023
|
+
# @return [::String]
|
|
2024
|
+
# Optional. SSL certificate to use for requests to GitHub Enterprise.
|
|
2025
|
+
class GitHubEnterpriseConfig
|
|
2026
|
+
include ::Google::Protobuf::MessageExts
|
|
2027
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2028
|
+
end
|
|
2029
|
+
|
|
2030
|
+
# GitHubEnterpriseSecrets represents the names of all necessary secrets in
|
|
2031
|
+
# Secret Manager for a GitHub Enterprise server.
|
|
2032
|
+
# Format is: projects/<project number>/secrets/<secret name>.
|
|
2033
|
+
# @!attribute [rw] private_key_version_name
|
|
2034
|
+
# @return [::String]
|
|
2035
|
+
# The resource name for the private key secret version.
|
|
2036
|
+
# @!attribute [rw] webhook_secret_version_name
|
|
2037
|
+
# @return [::String]
|
|
2038
|
+
# The resource name for the webhook secret secret version in Secret Manager.
|
|
2039
|
+
# @!attribute [rw] oauth_secret_version_name
|
|
2040
|
+
# @return [::String]
|
|
2041
|
+
# The resource name for the OAuth secret secret version in Secret Manager.
|
|
2042
|
+
# @!attribute [rw] oauth_client_id_version_name
|
|
2043
|
+
# @return [::String]
|
|
2044
|
+
# The resource name for the OAuth client ID secret version in Secret Manager.
|
|
2045
|
+
class GitHubEnterpriseSecrets
|
|
2046
|
+
include ::Google::Protobuf::MessageExts
|
|
2047
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2048
|
+
end
|
|
2049
|
+
|
|
1880
2050
|
# Configuration for a `WorkerPool`.
|
|
1881
2051
|
#
|
|
1882
2052
|
# Cloud Build owns and maintains a pool of workers for general use and have no
|
|
@@ -1960,6 +2130,9 @@ module Google
|
|
|
1960
2130
|
|
|
1961
2131
|
# `WorkerPool` is deleted.
|
|
1962
2132
|
DELETED = 4
|
|
2133
|
+
|
|
2134
|
+
# `WorkerPool` is being updated; new builds cannot be run.
|
|
2135
|
+
UPDATING = 5
|
|
1963
2136
|
end
|
|
1964
2137
|
end
|
|
1965
2138
|
|
|
@@ -2080,8 +2253,8 @@ module Google
|
|
|
2080
2253
|
# `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
|
2081
2254
|
# @!attribute [rw] etag
|
|
2082
2255
|
# @return [::String]
|
|
2083
|
-
# Optional. If
|
|
2084
|
-
#
|
|
2256
|
+
# Optional. If provided, it must match the server's etag on the workerpool
|
|
2257
|
+
# for the request to be processed.
|
|
2085
2258
|
# @!attribute [rw] allow_missing
|
|
2086
2259
|
# @return [::Boolean]
|
|
2087
2260
|
# If set to true, and the `WorkerPool` is not found, the request will succeed
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-build-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.21.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: 2023-07-
|
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -192,6 +192,7 @@ files:
|
|
|
192
192
|
- proto_docs/google/api/httpbody.rb
|
|
193
193
|
- proto_docs/google/api/launch_stage.rb
|
|
194
194
|
- proto_docs/google/api/resource.rb
|
|
195
|
+
- proto_docs/google/api/routing.rb
|
|
195
196
|
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
|
|
196
197
|
- proto_docs/google/longrunning/operations.rb
|
|
197
198
|
- proto_docs/google/protobuf/any.rb
|