google-api-client 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/games/services/web/api/states
|
26
26
|
module AppstateV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170427'
|
29
29
|
|
30
30
|
# View and manage your data for this application
|
31
31
|
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
26
26
|
module BigqueryV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170423'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
26
26
|
module CalendarV3
|
27
27
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170402'
|
29
29
|
|
30
30
|
# Manage your calendars
|
31
31
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/classroom/
|
26
26
|
module ClassroomV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170502'
|
29
29
|
|
30
30
|
# View your Google Classroom class rosters
|
31
31
|
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/billing/
|
27
27
|
module CloudbillingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20170418'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/container-builder/docs/
|
26
26
|
module CloudbuildV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170504'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,47 +22,65 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudbuildV1
|
24
24
|
|
25
|
-
#
|
26
|
-
#
|
27
|
-
|
25
|
+
# The `Status` type defines a logical error model that is suitable for different
|
26
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
27
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
28
|
+
# - Simple to use and understand for most users
|
29
|
+
# - Flexible enough to meet unexpected needs
|
30
|
+
# # Overview
|
31
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
32
|
+
# and error details. The error code should be an enum value of
|
33
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
34
|
+
# error message should be a developer-facing English message that helps
|
35
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
36
|
+
# error message is needed, put the localized message in the error details or
|
37
|
+
# localize it in the client. The optional error details may contain arbitrary
|
38
|
+
# information about the error. There is a predefined set of error detail types
|
39
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
40
|
+
# # Language mapping
|
41
|
+
# The `Status` message is the logical representation of the error model, but it
|
42
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
43
|
+
# exposed in different client libraries and different wire protocols, it can be
|
44
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
45
|
+
# in Java, but more likely mapped to some error codes in C.
|
46
|
+
# # Other uses
|
47
|
+
# The error model and the `Status` message can be used in a variety of
|
48
|
+
# environments, either with or without APIs, to provide a
|
49
|
+
# consistent developer experience across different environments.
|
50
|
+
# Example uses of this error model include:
|
51
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
52
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
53
|
+
# errors.
|
54
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
55
|
+
# have a `Status` message for error reporting.
|
56
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
57
|
+
# `Status` message should be used directly inside batch response, one for
|
58
|
+
# each error sub-response.
|
59
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
60
|
+
# results in its response, the status of those operations should be
|
61
|
+
# represented directly using the `Status` message.
|
62
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
63
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
64
|
+
class Status
|
28
65
|
include Google::Apis::Core::Hashable
|
29
66
|
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# Corresponds to the JSON property `
|
33
|
-
# @return [
|
34
|
-
attr_accessor :
|
35
|
-
|
36
|
-
# RepoSource describes the location of the source in a Google Cloud Source
|
37
|
-
# Repository.
|
38
|
-
# Corresponds to the JSON property `repoSource`
|
39
|
-
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
40
|
-
attr_accessor :repo_source
|
41
|
-
|
42
|
-
def initialize(**args)
|
43
|
-
update!(**args)
|
44
|
-
end
|
45
|
-
|
46
|
-
# Update properties of this object
|
47
|
-
def update!(**args)
|
48
|
-
@storage_source = args[:storage_source] if args.key?(:storage_source)
|
49
|
-
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
50
|
-
end
|
51
|
-
end
|
67
|
+
# A list of messages that carry the error details. There will be a
|
68
|
+
# common set of message types for APIs to use.
|
69
|
+
# Corresponds to the JSON property `details`
|
70
|
+
# @return [Array<Hash<String,Object>>]
|
71
|
+
attr_accessor :details
|
52
72
|
|
53
|
-
|
54
|
-
|
55
|
-
|
73
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
74
|
+
# Corresponds to the JSON property `code`
|
75
|
+
# @return [Fixnum]
|
76
|
+
attr_accessor :code
|
56
77
|
|
57
|
-
#
|
58
|
-
#
|
78
|
+
# A developer-facing error message, which should be in English. Any
|
79
|
+
# user-facing error message should be localized and sent in the
|
80
|
+
# google.rpc.Status.details field, or localized by the client.
|
81
|
+
# Corresponds to the JSON property `message`
|
59
82
|
# @return [String]
|
60
|
-
attr_accessor :
|
61
|
-
|
62
|
-
# Requested hash for SourceProvenance.
|
63
|
-
# Corresponds to the JSON property `sourceProvenanceHash`
|
64
|
-
# @return [Array<String>]
|
65
|
-
attr_accessor :source_provenance_hash
|
83
|
+
attr_accessor :message
|
66
84
|
|
67
85
|
def initialize(**args)
|
68
86
|
update!(**args)
|
@@ -70,77 +88,65 @@ module Google
|
|
70
88
|
|
71
89
|
# Update properties of this object
|
72
90
|
def update!(**args)
|
73
|
-
@
|
74
|
-
@
|
91
|
+
@details = args[:details] if args.key?(:details)
|
92
|
+
@code = args[:code] if args.key?(:code)
|
93
|
+
@message = args[:message] if args.key?(:message)
|
75
94
|
end
|
76
95
|
end
|
77
96
|
|
78
|
-
#
|
79
|
-
#
|
80
|
-
|
97
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
98
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
99
|
+
# or the response type of an API method. For instance:
|
100
|
+
# service Foo `
|
101
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
102
|
+
# `
|
103
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
104
|
+
class Empty
|
81
105
|
include Google::Apis::Core::Hashable
|
82
106
|
|
83
|
-
# Google Cloud Storage generation for the object. If the generation is
|
84
|
-
# omitted, the latest generation will be used.
|
85
|
-
# Corresponds to the JSON property `generation`
|
86
|
-
# @return [Fixnum]
|
87
|
-
attr_accessor :generation
|
88
|
-
|
89
|
-
# Google Cloud Storage bucket containing source (see
|
90
|
-
# [Bucket Name
|
91
|
-
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
92
|
-
# ).
|
93
|
-
# Corresponds to the JSON property `bucket`
|
94
|
-
# @return [String]
|
95
|
-
attr_accessor :bucket
|
96
|
-
|
97
|
-
# Google Cloud Storage object containing source.
|
98
|
-
# This object must be a gzipped archive file (.tar.gz) containing source to
|
99
|
-
# build.
|
100
|
-
# Corresponds to the JSON property `object`
|
101
|
-
# @return [String]
|
102
|
-
attr_accessor :object
|
103
|
-
|
104
107
|
def initialize(**args)
|
105
108
|
update!(**args)
|
106
109
|
end
|
107
110
|
|
108
111
|
# Update properties of this object
|
109
112
|
def update!(**args)
|
110
|
-
@generation = args[:generation] if args.key?(:generation)
|
111
|
-
@bucket = args[:bucket] if args.key?(:bucket)
|
112
|
-
@object = args[:object] if args.key?(:object)
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
-
#
|
117
|
-
|
116
|
+
# Configuration for an automated build in response to source repository
|
117
|
+
# changes.
|
118
|
+
class BuildTrigger
|
118
119
|
include Google::Apis::Core::Hashable
|
119
120
|
|
120
|
-
#
|
121
|
-
# Corresponds to the JSON property `
|
122
|
-
# @return [
|
123
|
-
attr_accessor :
|
121
|
+
# If true, the trigger will never result in a build.
|
122
|
+
# Corresponds to the JSON property `disabled`
|
123
|
+
# @return [Boolean]
|
124
|
+
attr_accessor :disabled
|
125
|
+
alias_method :disabled?, :disabled
|
124
126
|
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
|
127
|
+
# Time when the trigger was created.
|
128
|
+
# @OutputOnly
|
129
|
+
# Corresponds to the JSON property `createTime`
|
130
|
+
# @return [String]
|
131
|
+
attr_accessor :create_time
|
129
132
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
134
|
+
# Repository.
|
135
|
+
# Corresponds to the JSON property `triggerTemplate`
|
136
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
137
|
+
attr_accessor :trigger_template
|
133
138
|
|
134
|
-
#
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
end
|
139
|
+
# Path, from the source root, to a file whose contents is used for the
|
140
|
+
# template.
|
141
|
+
# Corresponds to the JSON property `filename`
|
142
|
+
# @return [String]
|
143
|
+
attr_accessor :filename
|
140
144
|
|
141
|
-
|
142
|
-
|
143
|
-
|
145
|
+
# Unique identifier of the trigger.
|
146
|
+
# @OutputOnly
|
147
|
+
# Corresponds to the JSON property `id`
|
148
|
+
# @return [String]
|
149
|
+
attr_accessor :id
|
144
150
|
|
145
151
|
# A build resource in the Container Builder API.
|
146
152
|
# At a high level, a Build describes where to find source code, how to build
|
@@ -159,171 +165,169 @@ module Google
|
|
159
165
|
# @return [Google::Apis::CloudbuildV1::Build]
|
160
166
|
attr_accessor :build
|
161
167
|
|
168
|
+
# Substitutions data for Build resource.
|
169
|
+
# Corresponds to the JSON property `substitutions`
|
170
|
+
# @return [Hash<String,String>]
|
171
|
+
attr_accessor :substitutions
|
172
|
+
|
173
|
+
# Human-readable description of this trigger.
|
174
|
+
# Corresponds to the JSON property `description`
|
175
|
+
# @return [String]
|
176
|
+
attr_accessor :description
|
177
|
+
|
162
178
|
def initialize(**args)
|
163
179
|
update!(**args)
|
164
180
|
end
|
165
181
|
|
166
182
|
# Update properties of this object
|
167
183
|
def update!(**args)
|
184
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
185
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
186
|
+
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
|
187
|
+
@filename = args[:filename] if args.key?(:filename)
|
188
|
+
@id = args[:id] if args.key?(:id)
|
168
189
|
@build = args[:build] if args.key?(:build)
|
190
|
+
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
191
|
+
@description = args[:description] if args.key?(:description)
|
169
192
|
end
|
170
193
|
end
|
171
194
|
|
172
|
-
#
|
173
|
-
#
|
174
|
-
|
195
|
+
# A build resource in the Container Builder API.
|
196
|
+
# At a high level, a Build describes where to find source code, how to build
|
197
|
+
# it (for example, the builder image to run on the source), and what tag to
|
198
|
+
# apply to the built image when it is pushed to Google Container Registry.
|
199
|
+
# Fields can include the following variables which will be expanded when the
|
200
|
+
# build is created:
|
201
|
+
# - $PROJECT_ID: the project ID of the build.
|
202
|
+
# - $BUILD_ID: the autogenerated ID of the build.
|
203
|
+
# - $REPO_NAME: the source repository name specified by RepoSource.
|
204
|
+
# - $BRANCH_NAME: the branch name specified by RepoSource.
|
205
|
+
# - $TAG_NAME: the tag name specified by RepoSource.
|
206
|
+
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
|
207
|
+
# resolved from the specified branch or tag.
|
208
|
+
class Build
|
175
209
|
include Google::Apis::Core::Hashable
|
176
210
|
|
177
|
-
#
|
178
|
-
# Google Cloud Storage.
|
179
|
-
# Corresponds to the JSON property `resolvedStorageSource`
|
180
|
-
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
181
|
-
attr_accessor :resolved_storage_source
|
182
|
-
|
183
|
-
# Hash(es) of the build source, which can be used to verify that the original
|
184
|
-
# source integrity was maintained in the build. Note that FileHashes will
|
185
|
-
# only be populated if BuildOptions has requested a SourceProvenanceHash.
|
186
|
-
# The keys to this map are file paths used as build source and the values
|
187
|
-
# contain the hash values for those files.
|
188
|
-
# If the build source came in a single package such as a gzipped tarfile
|
189
|
-
# (.tar.gz), the FileHash will be for the single path to that file.
|
211
|
+
# Customer-readable message about the current status.
|
190
212
|
# @OutputOnly
|
191
|
-
# Corresponds to the JSON property `
|
192
|
-
# @return [
|
193
|
-
attr_accessor :
|
213
|
+
# Corresponds to the JSON property `statusDetail`
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :status_detail
|
194
216
|
|
195
|
-
#
|
196
|
-
#
|
197
|
-
# Corresponds to the JSON property `
|
198
|
-
# @return [
|
199
|
-
attr_accessor :
|
217
|
+
# Status of the build.
|
218
|
+
# @OutputOnly
|
219
|
+
# Corresponds to the JSON property `status`
|
220
|
+
# @return [String]
|
221
|
+
attr_accessor :status
|
200
222
|
|
201
|
-
|
202
|
-
|
203
|
-
|
223
|
+
# Amount of time that this build should be allowed to run, to second
|
224
|
+
# granularity. If this amount of time elapses, work on the build will cease
|
225
|
+
# and the build status will be TIMEOUT.
|
226
|
+
# Default time is ten minutes.
|
227
|
+
# Corresponds to the JSON property `timeout`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :timeout
|
204
230
|
|
205
|
-
#
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
231
|
+
# Google Cloud Storage bucket where logs should be written (see
|
232
|
+
# [Bucket Name
|
233
|
+
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
234
|
+
# ).
|
235
|
+
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
|
236
|
+
# Corresponds to the JSON property `logsBucket`
|
237
|
+
# @return [String]
|
238
|
+
attr_accessor :logs_bucket
|
212
239
|
|
213
|
-
|
214
|
-
|
215
|
-
|
240
|
+
# Results describes the artifacts created by the build pipeline.
|
241
|
+
# Corresponds to the JSON property `results`
|
242
|
+
# @return [Google::Apis::CloudbuildV1::Results]
|
243
|
+
attr_accessor :results
|
216
244
|
|
217
|
-
|
218
|
-
|
219
|
-
|
245
|
+
# Describes the operations to be performed on the workspace.
|
246
|
+
# Corresponds to the JSON property `steps`
|
247
|
+
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
|
248
|
+
attr_accessor :steps
|
220
249
|
|
221
|
-
#
|
222
|
-
|
223
|
-
|
224
|
-
|
250
|
+
# The ID of the BuildTrigger that triggered this build, if it was
|
251
|
+
# triggered automatically.
|
252
|
+
# @OutputOnly
|
253
|
+
# Corresponds to the JSON property `buildTriggerId`
|
254
|
+
# @return [String]
|
255
|
+
attr_accessor :build_trigger_id
|
225
256
|
|
226
|
-
|
227
|
-
|
228
|
-
|
257
|
+
# Tags for annotation of a Build. These are not docker tags.
|
258
|
+
# Corresponds to the JSON property `tags`
|
259
|
+
# @return [Array<String>]
|
260
|
+
attr_accessor :tags
|
229
261
|
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
|
262
|
+
# Unique identifier of the build.
|
263
|
+
# @OutputOnly
|
264
|
+
# Corresponds to the JSON property `id`
|
265
|
+
# @return [String]
|
266
|
+
attr_accessor :id
|
234
267
|
|
235
|
-
|
236
|
-
|
237
|
-
|
268
|
+
# Substitutions data for Build resource.
|
269
|
+
# Corresponds to the JSON property `substitutions`
|
270
|
+
# @return [Hash<String,String>]
|
271
|
+
attr_accessor :substitutions
|
238
272
|
|
239
|
-
#
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
273
|
+
# Time at which execution of the build was started.
|
274
|
+
# @OutputOnly
|
275
|
+
# Corresponds to the JSON property `startTime`
|
276
|
+
# @return [String]
|
277
|
+
attr_accessor :start_time
|
244
278
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
279
|
+
# Provenance of the source. Ways to find the original source, or verify that
|
280
|
+
# some source was used for this build.
|
281
|
+
# Corresponds to the JSON property `sourceProvenance`
|
282
|
+
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
|
283
|
+
attr_accessor :source_provenance
|
249
284
|
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
|
255
|
-
attr_accessor :done
|
256
|
-
alias_method :done?, :done
|
285
|
+
# Time at which the request to create the build was received.
|
286
|
+
# @OutputOnly
|
287
|
+
# Corresponds to the JSON property `createTime`
|
288
|
+
# @return [String]
|
289
|
+
attr_accessor :create_time
|
257
290
|
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
266
|
-
|
267
|
-
# @return [Hash<String,Object>]
|
268
|
-
attr_accessor :response
|
291
|
+
# A list of images to be pushed upon the successful completion of all build
|
292
|
+
# steps.
|
293
|
+
# The images will be pushed using the builder service account's credentials.
|
294
|
+
# The digests of the pushed images will be stored in the Build resource's
|
295
|
+
# results field.
|
296
|
+
# If any of the images fail to be pushed, the build is marked FAILURE.
|
297
|
+
# Corresponds to the JSON property `images`
|
298
|
+
# @return [Array<String>]
|
299
|
+
attr_accessor :images
|
269
300
|
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
# Corresponds to the JSON property `name`
|
301
|
+
# ID of the project.
|
302
|
+
# @OutputOnly.
|
303
|
+
# Corresponds to the JSON property `projectId`
|
274
304
|
# @return [String]
|
275
|
-
attr_accessor :
|
305
|
+
attr_accessor :project_id
|
276
306
|
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
280
|
-
#
|
281
|
-
|
282
|
-
# # Overview
|
283
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
284
|
-
# and error details. The error code should be an enum value of
|
285
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
286
|
-
# error message should be a developer-facing English message that helps
|
287
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
288
|
-
# error message is needed, put the localized message in the error details or
|
289
|
-
# localize it in the client. The optional error details may contain arbitrary
|
290
|
-
# information about the error. There is a predefined set of error detail types
|
291
|
-
# in the package `google.rpc` which can be used for common error conditions.
|
292
|
-
# # Language mapping
|
293
|
-
# The `Status` message is the logical representation of the error model, but it
|
294
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
295
|
-
# exposed in different client libraries and different wire protocols, it can be
|
296
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
297
|
-
# in Java, but more likely mapped to some error codes in C.
|
298
|
-
# # Other uses
|
299
|
-
# The error model and the `Status` message can be used in a variety of
|
300
|
-
# environments, either with or without APIs, to provide a
|
301
|
-
# consistent developer experience across different environments.
|
302
|
-
# Example uses of this error model include:
|
303
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
304
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
305
|
-
# errors.
|
306
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
307
|
-
# have a `Status` message for error reporting purpose.
|
308
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
309
|
-
# `Status` message should be used directly inside batch response, one for
|
310
|
-
# each error sub-response.
|
311
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
312
|
-
# results in its response, the status of those operations should be
|
313
|
-
# represented directly using the `Status` message.
|
314
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
315
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
316
|
-
# Corresponds to the JSON property `error`
|
317
|
-
# @return [Google::Apis::CloudbuildV1::Status]
|
318
|
-
attr_accessor :error
|
307
|
+
# URL to logs for this build in Google Cloud Logging.
|
308
|
+
# @OutputOnly
|
309
|
+
# Corresponds to the JSON property `logUrl`
|
310
|
+
# @return [String]
|
311
|
+
attr_accessor :log_url
|
319
312
|
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
# Corresponds to the JSON property `
|
325
|
-
# @return [
|
326
|
-
attr_accessor :
|
313
|
+
# Time at which execution of the build was finished.
|
314
|
+
# The difference between finish_time and start_time is the duration of the
|
315
|
+
# build's execution.
|
316
|
+
# @OutputOnly
|
317
|
+
# Corresponds to the JSON property `finishTime`
|
318
|
+
# @return [String]
|
319
|
+
attr_accessor :finish_time
|
320
|
+
|
321
|
+
# Source describes the location of the source in a supported storage
|
322
|
+
# service.
|
323
|
+
# Corresponds to the JSON property `source`
|
324
|
+
# @return [Google::Apis::CloudbuildV1::Source]
|
325
|
+
attr_accessor :source
|
326
|
+
|
327
|
+
# Optional arguments to enable specific features of builds.
|
328
|
+
# Corresponds to the JSON property `options`
|
329
|
+
# @return [Google::Apis::CloudbuildV1::BuildOptions]
|
330
|
+
attr_accessor :options
|
327
331
|
|
328
332
|
def initialize(**args)
|
329
333
|
update!(**args)
|
@@ -331,104 +335,54 @@ module Google
|
|
331
335
|
|
332
336
|
# Update properties of this object
|
333
337
|
def update!(**args)
|
334
|
-
@
|
335
|
-
@
|
336
|
-
@
|
337
|
-
@
|
338
|
-
@
|
338
|
+
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
339
|
+
@status = args[:status] if args.key?(:status)
|
340
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
341
|
+
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
342
|
+
@results = args[:results] if args.key?(:results)
|
343
|
+
@steps = args[:steps] if args.key?(:steps)
|
344
|
+
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
345
|
+
@tags = args[:tags] if args.key?(:tags)
|
346
|
+
@id = args[:id] if args.key?(:id)
|
347
|
+
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
348
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
349
|
+
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
350
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
351
|
+
@images = args[:images] if args.key?(:images)
|
352
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
353
|
+
@log_url = args[:log_url] if args.key?(:log_url)
|
354
|
+
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
355
|
+
@source = args[:source] if args.key?(:source)
|
356
|
+
@options = args[:options] if args.key?(:options)
|
339
357
|
end
|
340
358
|
end
|
341
359
|
|
342
|
-
#
|
343
|
-
class
|
360
|
+
# Request to cancel an ongoing build.
|
361
|
+
class CancelBuildRequest
|
344
362
|
include Google::Apis::Core::Hashable
|
345
363
|
|
346
|
-
# Name used to push the container image to Google Container Registry, as
|
347
|
-
# presented to `docker push`.
|
348
|
-
# Corresponds to the JSON property `name`
|
349
|
-
# @return [String]
|
350
|
-
attr_accessor :name
|
351
|
-
|
352
|
-
# Docker Registry 2.0 digest.
|
353
|
-
# Corresponds to the JSON property `digest`
|
354
|
-
# @return [String]
|
355
|
-
attr_accessor :digest
|
356
|
-
|
357
364
|
def initialize(**args)
|
358
365
|
update!(**args)
|
359
366
|
end
|
360
367
|
|
361
368
|
# Update properties of this object
|
362
369
|
def update!(**args)
|
363
|
-
@name = args[:name] if args.key?(:name)
|
364
|
-
@digest = args[:digest] if args.key?(:digest)
|
365
370
|
end
|
366
371
|
end
|
367
372
|
|
368
|
-
#
|
369
|
-
class
|
373
|
+
# Response including listed builds.
|
374
|
+
class ListBuildsResponse
|
370
375
|
include Google::Apis::Core::Hashable
|
371
376
|
|
372
|
-
#
|
373
|
-
#
|
374
|
-
# Corresponds to the JSON property `entrypoint`
|
375
|
-
# @return [String]
|
376
|
-
attr_accessor :entrypoint
|
377
|
-
|
378
|
-
# Optional unique identifier for this build step, used in wait_for to
|
379
|
-
# reference this build step as a dependency.
|
380
|
-
# Corresponds to the JSON property `id`
|
381
|
-
# @return [String]
|
382
|
-
attr_accessor :id
|
383
|
-
|
384
|
-
# Working directory (relative to project source root) to use when running
|
385
|
-
# this operation's container.
|
386
|
-
# Corresponds to the JSON property `dir`
|
377
|
+
# Token to receive the next page of results.
|
378
|
+
# Corresponds to the JSON property `nextPageToken`
|
387
379
|
# @return [String]
|
388
|
-
attr_accessor :
|
389
|
-
|
390
|
-
# A list of environment variable definitions to be used when running a step.
|
391
|
-
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
|
392
|
-
# being given the value "VALUE".
|
393
|
-
# Corresponds to the JSON property `env`
|
394
|
-
# @return [Array<String>]
|
395
|
-
attr_accessor :env
|
396
|
-
|
397
|
-
# The ID(s) of the step(s) that this build step depends on.
|
398
|
-
# This build step will not start until all the build steps in wait_for
|
399
|
-
# have completed successfully. If wait_for is empty, this build step will
|
400
|
-
# start when all previous build steps in the Build.Steps list have completed
|
401
|
-
# successfully.
|
402
|
-
# Corresponds to the JSON property `waitFor`
|
403
|
-
# @return [Array<String>]
|
404
|
-
attr_accessor :wait_for
|
405
|
-
|
406
|
-
# A list of arguments that will be presented to the step when it is started.
|
407
|
-
# If the image used to run the step's container has an entrypoint, these args
|
408
|
-
# will be used as arguments to that entrypoint. If the image does not define
|
409
|
-
# an entrypoint, the first element in args will be used as the entrypoint,
|
410
|
-
# and the remainder will be used as arguments.
|
411
|
-
# Corresponds to the JSON property `args`
|
412
|
-
# @return [Array<String>]
|
413
|
-
attr_accessor :args
|
380
|
+
attr_accessor :next_page_token
|
414
381
|
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
|
419
|
-
# The Docker daemon's cache will already have the latest versions of all of
|
420
|
-
# the officially supported build steps
|
421
|
-
# ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
|
422
|
-
# GoogleCloudPlatform/cloud-builders)).
|
423
|
-
# The Docker daemon will also have cached many of the layers for some popular
|
424
|
-
# images, like "ubuntu", "debian", but they will be refreshed at the time you
|
425
|
-
# attempt to use them.
|
426
|
-
# If you built an image in a previous build step, it will be stored in the
|
427
|
-
# host's Docker daemon's cache and is available to use as the name for a
|
428
|
-
# later build step.
|
429
|
-
# Corresponds to the JSON property `name`
|
430
|
-
# @return [String]
|
431
|
-
attr_accessor :name
|
382
|
+
# Builds will be sorted by create_time, descending.
|
383
|
+
# Corresponds to the JSON property `builds`
|
384
|
+
# @return [Array<Google::Apis::CloudbuildV1::Build>]
|
385
|
+
attr_accessor :builds
|
432
386
|
|
433
387
|
def initialize(**args)
|
434
388
|
update!(**args)
|
@@ -436,46 +390,24 @@ module Google
|
|
436
390
|
|
437
391
|
# Update properties of this object
|
438
392
|
def update!(**args)
|
439
|
-
@
|
440
|
-
@
|
441
|
-
@dir = args[:dir] if args.key?(:dir)
|
442
|
-
@env = args[:env] if args.key?(:env)
|
443
|
-
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
444
|
-
@args = args[:args] if args.key?(:args)
|
445
|
-
@name = args[:name] if args.key?(:name)
|
393
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
394
|
+
@builds = args[:builds] if args.key?(:builds)
|
446
395
|
end
|
447
396
|
end
|
448
397
|
|
449
|
-
#
|
450
|
-
|
451
|
-
class RepoSource
|
398
|
+
# The response message for Operations.ListOperations.
|
399
|
+
class ListOperationsResponse
|
452
400
|
include Google::Apis::Core::Hashable
|
453
401
|
|
454
|
-
#
|
455
|
-
# Corresponds to the JSON property `
|
456
|
-
# @return [String]
|
457
|
-
attr_accessor :tag_name
|
458
|
-
|
459
|
-
# Explicit commit SHA to build.
|
460
|
-
# Corresponds to the JSON property `commitSha`
|
461
|
-
# @return [String]
|
462
|
-
attr_accessor :commit_sha
|
463
|
-
|
464
|
-
# ID of the project that owns the repo. If omitted, the project ID requesting
|
465
|
-
# the build is assumed.
|
466
|
-
# Corresponds to the JSON property `projectId`
|
467
|
-
# @return [String]
|
468
|
-
attr_accessor :project_id
|
469
|
-
|
470
|
-
# Name of the repo. If omitted, the name "default" is assumed.
|
471
|
-
# Corresponds to the JSON property `repoName`
|
402
|
+
# The standard List next-page token.
|
403
|
+
# Corresponds to the JSON property `nextPageToken`
|
472
404
|
# @return [String]
|
473
|
-
attr_accessor :
|
405
|
+
attr_accessor :next_page_token
|
474
406
|
|
475
|
-
#
|
476
|
-
# Corresponds to the JSON property `
|
477
|
-
# @return [
|
478
|
-
attr_accessor :
|
407
|
+
# A list of operations that matches the specified filter in the request.
|
408
|
+
# Corresponds to the JSON property `operations`
|
409
|
+
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
|
410
|
+
attr_accessor :operations
|
479
411
|
|
480
412
|
def initialize(**args)
|
481
413
|
update!(**args)
|
@@ -483,28 +415,27 @@ module Google
|
|
483
415
|
|
484
416
|
# Update properties of this object
|
485
417
|
def update!(**args)
|
486
|
-
@
|
487
|
-
@
|
488
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
489
|
-
@repo_name = args[:repo_name] if args.key?(:repo_name)
|
490
|
-
@branch_name = args[:branch_name] if args.key?(:branch_name)
|
418
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
419
|
+
@operations = args[:operations] if args.key?(:operations)
|
491
420
|
end
|
492
421
|
end
|
493
422
|
|
494
|
-
#
|
495
|
-
|
423
|
+
# Source describes the location of the source in a supported storage
|
424
|
+
# service.
|
425
|
+
class Source
|
496
426
|
include Google::Apis::Core::Hashable
|
497
427
|
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
|
428
|
+
# StorageSource describes the location of the source in an archive file in
|
429
|
+
# Google Cloud Storage.
|
430
|
+
# Corresponds to the JSON property `storageSource`
|
431
|
+
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
432
|
+
attr_accessor :storage_source
|
502
433
|
|
503
|
-
#
|
504
|
-
#
|
505
|
-
#
|
506
|
-
# @return [
|
507
|
-
attr_accessor :
|
434
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
435
|
+
# Repository.
|
436
|
+
# Corresponds to the JSON property `repoSource`
|
437
|
+
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
438
|
+
attr_accessor :repo_source
|
508
439
|
|
509
440
|
def initialize(**args)
|
510
441
|
update!(**args)
|
@@ -512,20 +443,24 @@ module Google
|
|
512
443
|
|
513
444
|
# Update properties of this object
|
514
445
|
def update!(**args)
|
515
|
-
@
|
516
|
-
@
|
446
|
+
@storage_source = args[:storage_source] if args.key?(:storage_source)
|
447
|
+
@repo_source = args[:repo_source] if args.key?(:repo_source)
|
517
448
|
end
|
518
449
|
end
|
519
450
|
|
520
|
-
#
|
521
|
-
|
522
|
-
class FileHashes
|
451
|
+
# Optional arguments to enable specific features of builds.
|
452
|
+
class BuildOptions
|
523
453
|
include Google::Apis::Core::Hashable
|
524
454
|
|
525
|
-
#
|
526
|
-
# Corresponds to the JSON property `
|
527
|
-
# @return [
|
528
|
-
attr_accessor :
|
455
|
+
# Requested verifiability options.
|
456
|
+
# Corresponds to the JSON property `requestedVerifyOption`
|
457
|
+
# @return [String]
|
458
|
+
attr_accessor :requested_verify_option
|
459
|
+
|
460
|
+
# Requested hash for SourceProvenance.
|
461
|
+
# Corresponds to the JSON property `sourceProvenanceHash`
|
462
|
+
# @return [Array<String>]
|
463
|
+
attr_accessor :source_provenance_hash
|
529
464
|
|
530
465
|
def initialize(**args)
|
531
466
|
update!(**args)
|
@@ -533,69 +468,36 @@ module Google
|
|
533
468
|
|
534
469
|
# Update properties of this object
|
535
470
|
def update!(**args)
|
536
|
-
@
|
471
|
+
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
472
|
+
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
|
537
473
|
end
|
538
474
|
end
|
539
475
|
|
540
|
-
#
|
541
|
-
#
|
542
|
-
|
543
|
-
# - Simple to use and understand for most users
|
544
|
-
# - Flexible enough to meet unexpected needs
|
545
|
-
# # Overview
|
546
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
547
|
-
# and error details. The error code should be an enum value of
|
548
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
549
|
-
# error message should be a developer-facing English message that helps
|
550
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
551
|
-
# error message is needed, put the localized message in the error details or
|
552
|
-
# localize it in the client. The optional error details may contain arbitrary
|
553
|
-
# information about the error. There is a predefined set of error detail types
|
554
|
-
# in the package `google.rpc` which can be used for common error conditions.
|
555
|
-
# # Language mapping
|
556
|
-
# The `Status` message is the logical representation of the error model, but it
|
557
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
558
|
-
# exposed in different client libraries and different wire protocols, it can be
|
559
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
560
|
-
# in Java, but more likely mapped to some error codes in C.
|
561
|
-
# # Other uses
|
562
|
-
# The error model and the `Status` message can be used in a variety of
|
563
|
-
# environments, either with or without APIs, to provide a
|
564
|
-
# consistent developer experience across different environments.
|
565
|
-
# Example uses of this error model include:
|
566
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
567
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
568
|
-
# errors.
|
569
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
570
|
-
# have a `Status` message for error reporting purpose.
|
571
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
572
|
-
# `Status` message should be used directly inside batch response, one for
|
573
|
-
# each error sub-response.
|
574
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
575
|
-
# results in its response, the status of those operations should be
|
576
|
-
# represented directly using the `Status` message.
|
577
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
578
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
579
|
-
class Status
|
476
|
+
# StorageSource describes the location of the source in an archive file in
|
477
|
+
# Google Cloud Storage.
|
478
|
+
class StorageSource
|
580
479
|
include Google::Apis::Core::Hashable
|
581
480
|
|
582
|
-
#
|
583
|
-
#
|
584
|
-
#
|
585
|
-
# Corresponds to the JSON property `
|
481
|
+
# Google Cloud Storage object containing source.
|
482
|
+
# This object must be a gzipped archive file (.tar.gz) containing source to
|
483
|
+
# build.
|
484
|
+
# Corresponds to the JSON property `object`
|
586
485
|
# @return [String]
|
587
|
-
attr_accessor :
|
588
|
-
|
589
|
-
# A list of messages that carry the error details. There will be a
|
590
|
-
# common set of message types for APIs to use.
|
591
|
-
# Corresponds to the JSON property `details`
|
592
|
-
# @return [Array<Hash<String,Object>>]
|
593
|
-
attr_accessor :details
|
486
|
+
attr_accessor :object
|
594
487
|
|
595
|
-
#
|
596
|
-
#
|
488
|
+
# Google Cloud Storage generation for the object. If the generation is
|
489
|
+
# omitted, the latest generation will be used.
|
490
|
+
# Corresponds to the JSON property `generation`
|
597
491
|
# @return [Fixnum]
|
598
|
-
attr_accessor :
|
492
|
+
attr_accessor :generation
|
493
|
+
|
494
|
+
# Google Cloud Storage bucket containing source (see
|
495
|
+
# [Bucket Name
|
496
|
+
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
497
|
+
# ).
|
498
|
+
# Corresponds to the JSON property `bucket`
|
499
|
+
# @return [String]
|
500
|
+
attr_accessor :bucket
|
599
501
|
|
600
502
|
def initialize(**args)
|
601
503
|
update!(**args)
|
@@ -603,42 +505,41 @@ module Google
|
|
603
505
|
|
604
506
|
# Update properties of this object
|
605
507
|
def update!(**args)
|
606
|
-
@
|
607
|
-
@
|
608
|
-
@
|
508
|
+
@object = args[:object] if args.key?(:object)
|
509
|
+
@generation = args[:generation] if args.key?(:generation)
|
510
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
609
511
|
end
|
610
512
|
end
|
611
513
|
|
612
|
-
#
|
613
|
-
|
614
|
-
# or the response type of an API method. For instance:
|
615
|
-
# service Foo `
|
616
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
617
|
-
# `
|
618
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
619
|
-
class Empty
|
514
|
+
# Results describes the artifacts created by the build pipeline.
|
515
|
+
class Results
|
620
516
|
include Google::Apis::Core::Hashable
|
621
517
|
|
518
|
+
# List of build step digests, in order corresponding to build step indices.
|
519
|
+
# Corresponds to the JSON property `buildStepImages`
|
520
|
+
# @return [Array<String>]
|
521
|
+
attr_accessor :build_step_images
|
522
|
+
|
523
|
+
# Images that were built as a part of the build.
|
524
|
+
# Corresponds to the JSON property `images`
|
525
|
+
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
|
526
|
+
attr_accessor :images
|
527
|
+
|
622
528
|
def initialize(**args)
|
623
529
|
update!(**args)
|
624
530
|
end
|
625
531
|
|
626
532
|
# Update properties of this object
|
627
533
|
def update!(**args)
|
534
|
+
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
|
535
|
+
@images = args[:images] if args.key?(:images)
|
628
536
|
end
|
629
537
|
end
|
630
538
|
|
631
|
-
#
|
632
|
-
|
633
|
-
class BuildTrigger
|
539
|
+
# Metadata for build operations.
|
540
|
+
class BuildOperationMetadata
|
634
541
|
include Google::Apis::Core::Hashable
|
635
542
|
|
636
|
-
# Unique identifier of the trigger.
|
637
|
-
# @OutputOnly
|
638
|
-
# Corresponds to the JSON property `id`
|
639
|
-
# @return [String]
|
640
|
-
attr_accessor :id
|
641
|
-
|
642
543
|
# A build resource in the Container Builder API.
|
643
544
|
# At a high level, a Build describes where to find source code, how to build
|
644
545
|
# it (for example, the builder image to run on the source), and what tag to
|
@@ -656,39 +557,44 @@ module Google
|
|
656
557
|
# @return [Google::Apis::CloudbuildV1::Build]
|
657
558
|
attr_accessor :build
|
658
559
|
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
attr_accessor :substitutions
|
560
|
+
def initialize(**args)
|
561
|
+
update!(**args)
|
562
|
+
end
|
663
563
|
|
664
|
-
#
|
665
|
-
|
666
|
-
|
667
|
-
|
564
|
+
# Update properties of this object
|
565
|
+
def update!(**args)
|
566
|
+
@build = args[:build] if args.key?(:build)
|
567
|
+
end
|
568
|
+
end
|
668
569
|
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
alias_method :disabled?, :disabled
|
570
|
+
# Provenance of the source. Ways to find the original source, or verify that
|
571
|
+
# some source was used for this build.
|
572
|
+
class SourceProvenance
|
573
|
+
include Google::Apis::Core::Hashable
|
674
574
|
|
675
|
-
#
|
575
|
+
# Hash(es) of the build source, which can be used to verify that the original
|
576
|
+
# source integrity was maintained in the build. Note that FileHashes will
|
577
|
+
# only be populated if BuildOptions has requested a SourceProvenanceHash.
|
578
|
+
# The keys to this map are file paths used as build source and the values
|
579
|
+
# contain the hash values for those files.
|
580
|
+
# If the build source came in a single package such as a gzipped tarfile
|
581
|
+
# (.tar.gz), the FileHash will be for the single path to that file.
|
676
582
|
# @OutputOnly
|
677
|
-
# Corresponds to the JSON property `
|
678
|
-
# @return [String]
|
679
|
-
attr_accessor :
|
583
|
+
# Corresponds to the JSON property `fileHashes`
|
584
|
+
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
|
585
|
+
attr_accessor :file_hashes
|
680
586
|
|
681
587
|
# RepoSource describes the location of the source in a Google Cloud Source
|
682
588
|
# Repository.
|
683
|
-
# Corresponds to the JSON property `
|
589
|
+
# Corresponds to the JSON property `resolvedRepoSource`
|
684
590
|
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
685
|
-
attr_accessor :
|
591
|
+
attr_accessor :resolved_repo_source
|
686
592
|
|
687
|
-
#
|
688
|
-
#
|
689
|
-
# Corresponds to the JSON property `
|
690
|
-
# @return [
|
691
|
-
attr_accessor :
|
593
|
+
# StorageSource describes the location of the source in an archive file in
|
594
|
+
# Google Cloud Storage.
|
595
|
+
# Corresponds to the JSON property `resolvedStorageSource`
|
596
|
+
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
597
|
+
attr_accessor :resolved_storage_source
|
692
598
|
|
693
599
|
def initialize(**args)
|
694
600
|
update!(**args)
|
@@ -696,148 +602,181 @@ module Google
|
|
696
602
|
|
697
603
|
# Update properties of this object
|
698
604
|
def update!(**args)
|
699
|
-
@
|
700
|
-
@
|
701
|
-
@
|
702
|
-
@description = args[:description] if args.key?(:description)
|
703
|
-
@disabled = args[:disabled] if args.key?(:disabled)
|
704
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
705
|
-
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
|
706
|
-
@filename = args[:filename] if args.key?(:filename)
|
605
|
+
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
|
606
|
+
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
|
607
|
+
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
|
707
608
|
end
|
708
609
|
end
|
709
610
|
|
710
|
-
#
|
711
|
-
|
712
|
-
# it (for example, the builder image to run on the source), and what tag to
|
713
|
-
# apply to the built image when it is pushed to Google Container Registry.
|
714
|
-
# Fields can include the following variables which will be expanded when the
|
715
|
-
# build is created:
|
716
|
-
# - $PROJECT_ID: the project ID of the build.
|
717
|
-
# - $BUILD_ID: the autogenerated ID of the build.
|
718
|
-
# - $REPO_NAME: the source repository name specified by RepoSource.
|
719
|
-
# - $BRANCH_NAME: the branch name specified by RepoSource.
|
720
|
-
# - $TAG_NAME: the tag name specified by RepoSource.
|
721
|
-
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
|
722
|
-
# resolved from the specified branch or tag.
|
723
|
-
class Build
|
611
|
+
# The request message for Operations.CancelOperation.
|
612
|
+
class CancelOperationRequest
|
724
613
|
include Google::Apis::Core::Hashable
|
725
614
|
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
# ).
|
730
|
-
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
|
731
|
-
# Corresponds to the JSON property `logsBucket`
|
732
|
-
# @return [String]
|
733
|
-
attr_accessor :logs_bucket
|
615
|
+
def initialize(**args)
|
616
|
+
update!(**args)
|
617
|
+
end
|
734
618
|
|
735
|
-
#
|
736
|
-
|
737
|
-
|
738
|
-
|
619
|
+
# Update properties of this object
|
620
|
+
def update!(**args)
|
621
|
+
end
|
622
|
+
end
|
739
623
|
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
624
|
+
# This resource represents a long-running operation that is the result of a
|
625
|
+
# network API call.
|
626
|
+
class Operation
|
627
|
+
include Google::Apis::Core::Hashable
|
744
628
|
|
745
|
-
# The
|
746
|
-
#
|
747
|
-
#
|
748
|
-
#
|
749
|
-
#
|
750
|
-
|
629
|
+
# The normal response of the operation in case of success. If the original
|
630
|
+
# method returns no data on success, such as `Delete`, the response is
|
631
|
+
# `google.protobuf.Empty`. If the original method is standard
|
632
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
633
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
634
|
+
# is the original method name. For example, if the original method name
|
635
|
+
# is `TakeSnapshot()`, the inferred response type is
|
636
|
+
# `TakeSnapshotResponse`.
|
637
|
+
# Corresponds to the JSON property `response`
|
638
|
+
# @return [Hash<String,Object>]
|
639
|
+
attr_accessor :response
|
751
640
|
|
752
|
-
#
|
753
|
-
#
|
754
|
-
#
|
641
|
+
# The server-assigned name, which is only unique within the same service that
|
642
|
+
# originally returns it. If you use the default HTTP mapping, the
|
643
|
+
# `name` should have the format of `operations/some/unique/name`.
|
644
|
+
# Corresponds to the JSON property `name`
|
755
645
|
# @return [String]
|
756
|
-
attr_accessor :
|
646
|
+
attr_accessor :name
|
757
647
|
|
758
|
-
#
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
|
648
|
+
# The `Status` type defines a logical error model that is suitable for different
|
649
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
650
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
651
|
+
# - Simple to use and understand for most users
|
652
|
+
# - Flexible enough to meet unexpected needs
|
653
|
+
# # Overview
|
654
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
655
|
+
# and error details. The error code should be an enum value of
|
656
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
657
|
+
# error message should be a developer-facing English message that helps
|
658
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
659
|
+
# error message is needed, put the localized message in the error details or
|
660
|
+
# localize it in the client. The optional error details may contain arbitrary
|
661
|
+
# information about the error. There is a predefined set of error detail types
|
662
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
663
|
+
# # Language mapping
|
664
|
+
# The `Status` message is the logical representation of the error model, but it
|
665
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
666
|
+
# exposed in different client libraries and different wire protocols, it can be
|
667
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
668
|
+
# in Java, but more likely mapped to some error codes in C.
|
669
|
+
# # Other uses
|
670
|
+
# The error model and the `Status` message can be used in a variety of
|
671
|
+
# environments, either with or without APIs, to provide a
|
672
|
+
# consistent developer experience across different environments.
|
673
|
+
# Example uses of this error model include:
|
674
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
675
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
676
|
+
# errors.
|
677
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
678
|
+
# have a `Status` message for error reporting.
|
679
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
680
|
+
# `Status` message should be used directly inside batch response, one for
|
681
|
+
# each error sub-response.
|
682
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
683
|
+
# results in its response, the status of those operations should be
|
684
|
+
# represented directly using the `Status` message.
|
685
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
686
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
687
|
+
# Corresponds to the JSON property `error`
|
688
|
+
# @return [Google::Apis::CloudbuildV1::Status]
|
689
|
+
attr_accessor :error
|
763
690
|
|
764
|
-
#
|
765
|
-
#
|
766
|
-
#
|
767
|
-
|
691
|
+
# Service-specific metadata associated with the operation. It typically
|
692
|
+
# contains progress information and common metadata such as create time.
|
693
|
+
# Some services might not provide such metadata. Any method that returns a
|
694
|
+
# long-running operation should document the metadata type, if any.
|
695
|
+
# Corresponds to the JSON property `metadata`
|
696
|
+
# @return [Hash<String,Object>]
|
697
|
+
attr_accessor :metadata
|
698
|
+
|
699
|
+
# If the value is `false`, it means the operation is still in progress.
|
700
|
+
# If true, the operation is completed, and either `error` or `response` is
|
701
|
+
# available.
|
702
|
+
# Corresponds to the JSON property `done`
|
703
|
+
# @return [Boolean]
|
704
|
+
attr_accessor :done
|
705
|
+
alias_method :done?, :done
|
706
|
+
|
707
|
+
def initialize(**args)
|
708
|
+
update!(**args)
|
709
|
+
end
|
710
|
+
|
711
|
+
# Update properties of this object
|
712
|
+
def update!(**args)
|
713
|
+
@response = args[:response] if args.key?(:response)
|
714
|
+
@name = args[:name] if args.key?(:name)
|
715
|
+
@error = args[:error] if args.key?(:error)
|
716
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
717
|
+
@done = args[:done] if args.key?(:done)
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
# Response containing existing BuildTriggers.
|
722
|
+
class ListBuildTriggersResponse
|
723
|
+
include Google::Apis::Core::Hashable
|
768
724
|
|
769
|
-
#
|
770
|
-
#
|
771
|
-
#
|
772
|
-
|
773
|
-
attr_accessor :create_time
|
725
|
+
# BuildTriggers for the project, sorted by create_time descending.
|
726
|
+
# Corresponds to the JSON property `triggers`
|
727
|
+
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
|
728
|
+
attr_accessor :triggers
|
774
729
|
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
|
779
|
-
attr_accessor :source_provenance
|
730
|
+
def initialize(**args)
|
731
|
+
update!(**args)
|
732
|
+
end
|
780
733
|
|
781
|
-
#
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
# If any of the images fail to be pushed, the build is marked FAILURE.
|
787
|
-
# Corresponds to the JSON property `images`
|
788
|
-
# @return [Array<String>]
|
789
|
-
attr_accessor :images
|
734
|
+
# Update properties of this object
|
735
|
+
def update!(**args)
|
736
|
+
@triggers = args[:triggers] if args.key?(:triggers)
|
737
|
+
end
|
738
|
+
end
|
790
739
|
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
# @return [String]
|
795
|
-
attr_accessor :project_id
|
740
|
+
# BuiltImage describes an image built by the pipeline.
|
741
|
+
class BuiltImage
|
742
|
+
include Google::Apis::Core::Hashable
|
796
743
|
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
800
|
-
# @OutputOnly
|
801
|
-
# Corresponds to the JSON property `finishTime`
|
744
|
+
# Name used to push the container image to Google Container Registry, as
|
745
|
+
# presented to `docker push`.
|
746
|
+
# Corresponds to the JSON property `name`
|
802
747
|
# @return [String]
|
803
|
-
attr_accessor :
|
748
|
+
attr_accessor :name
|
804
749
|
|
805
|
-
#
|
806
|
-
#
|
807
|
-
# Corresponds to the JSON property `logUrl`
|
750
|
+
# Docker Registry 2.0 digest.
|
751
|
+
# Corresponds to the JSON property `digest`
|
808
752
|
# @return [String]
|
809
|
-
attr_accessor :
|
753
|
+
attr_accessor :digest
|
810
754
|
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
attr_accessor :options
|
755
|
+
def initialize(**args)
|
756
|
+
update!(**args)
|
757
|
+
end
|
815
758
|
|
816
|
-
#
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
759
|
+
# Update properties of this object
|
760
|
+
def update!(**args)
|
761
|
+
@name = args[:name] if args.key?(:name)
|
762
|
+
@digest = args[:digest] if args.key?(:digest)
|
763
|
+
end
|
764
|
+
end
|
821
765
|
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
# @return [String]
|
826
|
-
attr_accessor :status_detail
|
766
|
+
# Container message for hash values.
|
767
|
+
class HashProp
|
768
|
+
include Google::Apis::Core::Hashable
|
827
769
|
|
828
|
-
#
|
829
|
-
#
|
830
|
-
# Corresponds to the JSON property `status`
|
770
|
+
# The type of hash that was performed.
|
771
|
+
# Corresponds to the JSON property `type`
|
831
772
|
# @return [String]
|
832
|
-
attr_accessor :
|
773
|
+
attr_accessor :type
|
833
774
|
|
834
|
-
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
# Default time is ten minutes.
|
838
|
-
# Corresponds to the JSON property `timeout`
|
775
|
+
# The hash value.
|
776
|
+
# Corresponds to the JSON property `value`
|
777
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
839
778
|
# @return [String]
|
840
|
-
attr_accessor :
|
779
|
+
attr_accessor :value
|
841
780
|
|
842
781
|
def initialize(**args)
|
843
782
|
update!(**args)
|
@@ -845,53 +784,122 @@ module Google
|
|
845
784
|
|
846
785
|
# Update properties of this object
|
847
786
|
def update!(**args)
|
848
|
-
@
|
849
|
-
@
|
850
|
-
@steps = args[:steps] if args.key?(:steps)
|
851
|
-
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
852
|
-
@id = args[:id] if args.key?(:id)
|
853
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
854
|
-
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
855
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
856
|
-
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
857
|
-
@images = args[:images] if args.key?(:images)
|
858
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
859
|
-
@finish_time = args[:finish_time] if args.key?(:finish_time)
|
860
|
-
@log_url = args[:log_url] if args.key?(:log_url)
|
861
|
-
@options = args[:options] if args.key?(:options)
|
862
|
-
@source = args[:source] if args.key?(:source)
|
863
|
-
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
864
|
-
@status = args[:status] if args.key?(:status)
|
865
|
-
@timeout = args[:timeout] if args.key?(:timeout)
|
787
|
+
@type = args[:type] if args.key?(:type)
|
788
|
+
@value = args[:value] if args.key?(:value)
|
866
789
|
end
|
867
790
|
end
|
868
791
|
|
869
|
-
#
|
870
|
-
class
|
792
|
+
# BuildStep describes a step to perform in the build pipeline.
|
793
|
+
class BuildStep
|
871
794
|
include Google::Apis::Core::Hashable
|
872
795
|
|
796
|
+
# Optional entrypoint to be used instead of the build step image's default
|
797
|
+
# If unset, the image's default will be used.
|
798
|
+
# Corresponds to the JSON property `entrypoint`
|
799
|
+
# @return [String]
|
800
|
+
attr_accessor :entrypoint
|
801
|
+
|
802
|
+
# Optional unique identifier for this build step, used in wait_for to
|
803
|
+
# reference this build step as a dependency.
|
804
|
+
# Corresponds to the JSON property `id`
|
805
|
+
# @return [String]
|
806
|
+
attr_accessor :id
|
807
|
+
|
808
|
+
# Working directory (relative to project source root) to use when running
|
809
|
+
# this operation's container.
|
810
|
+
# Corresponds to the JSON property `dir`
|
811
|
+
# @return [String]
|
812
|
+
attr_accessor :dir
|
813
|
+
|
814
|
+
# The ID(s) of the step(s) that this build step depends on.
|
815
|
+
# This build step will not start until all the build steps in wait_for
|
816
|
+
# have completed successfully. If wait_for is empty, this build step will
|
817
|
+
# start when all previous build steps in the Build.Steps list have completed
|
818
|
+
# successfully.
|
819
|
+
# Corresponds to the JSON property `waitFor`
|
820
|
+
# @return [Array<String>]
|
821
|
+
attr_accessor :wait_for
|
822
|
+
|
823
|
+
# A list of environment variable definitions to be used when running a step.
|
824
|
+
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
|
825
|
+
# being given the value "VALUE".
|
826
|
+
# Corresponds to the JSON property `env`
|
827
|
+
# @return [Array<String>]
|
828
|
+
attr_accessor :env
|
829
|
+
|
830
|
+
# A list of arguments that will be presented to the step when it is started.
|
831
|
+
# If the image used to run the step's container has an entrypoint, these args
|
832
|
+
# will be used as arguments to that entrypoint. If the image does not define
|
833
|
+
# an entrypoint, the first element in args will be used as the entrypoint,
|
834
|
+
# and the remainder will be used as arguments.
|
835
|
+
# Corresponds to the JSON property `args`
|
836
|
+
# @return [Array<String>]
|
837
|
+
attr_accessor :args
|
838
|
+
|
839
|
+
# The name of the container image that will run this particular build step.
|
840
|
+
# If the image is already available in the host's Docker daemon's cache, it
|
841
|
+
# will be run directly. If not, the host will attempt to pull the image
|
842
|
+
# first, using the builder service account's credentials if necessary.
|
843
|
+
# The Docker daemon's cache will already have the latest versions of all of
|
844
|
+
# the officially supported build steps
|
845
|
+
# ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/
|
846
|
+
# GoogleCloudPlatform/cloud-builders)).
|
847
|
+
# The Docker daemon will also have cached many of the layers for some popular
|
848
|
+
# images, like "ubuntu", "debian", but they will be refreshed at the time you
|
849
|
+
# attempt to use them.
|
850
|
+
# If you built an image in a previous build step, it will be stored in the
|
851
|
+
# host's Docker daemon's cache and is available to use as the name for a
|
852
|
+
# later build step.
|
853
|
+
# Corresponds to the JSON property `name`
|
854
|
+
# @return [String]
|
855
|
+
attr_accessor :name
|
856
|
+
|
873
857
|
def initialize(**args)
|
874
858
|
update!(**args)
|
875
859
|
end
|
876
860
|
|
877
861
|
# Update properties of this object
|
878
862
|
def update!(**args)
|
863
|
+
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
864
|
+
@id = args[:id] if args.key?(:id)
|
865
|
+
@dir = args[:dir] if args.key?(:dir)
|
866
|
+
@wait_for = args[:wait_for] if args.key?(:wait_for)
|
867
|
+
@env = args[:env] if args.key?(:env)
|
868
|
+
@args = args[:args] if args.key?(:args)
|
869
|
+
@name = args[:name] if args.key?(:name)
|
879
870
|
end
|
880
871
|
end
|
881
872
|
|
882
|
-
#
|
883
|
-
|
873
|
+
# RepoSource describes the location of the source in a Google Cloud Source
|
874
|
+
# Repository.
|
875
|
+
class RepoSource
|
884
876
|
include Google::Apis::Core::Hashable
|
885
877
|
|
886
|
-
#
|
887
|
-
# Corresponds to the JSON property `
|
878
|
+
# Name of the tag to build.
|
879
|
+
# Corresponds to the JSON property `tagName`
|
888
880
|
# @return [String]
|
889
|
-
attr_accessor :
|
881
|
+
attr_accessor :tag_name
|
890
882
|
|
891
|
-
#
|
892
|
-
# Corresponds to the JSON property `
|
893
|
-
# @return [
|
894
|
-
attr_accessor :
|
883
|
+
# Explicit commit SHA to build.
|
884
|
+
# Corresponds to the JSON property `commitSha`
|
885
|
+
# @return [String]
|
886
|
+
attr_accessor :commit_sha
|
887
|
+
|
888
|
+
# ID of the project that owns the repo. If omitted, the project ID requesting
|
889
|
+
# the build is assumed.
|
890
|
+
# Corresponds to the JSON property `projectId`
|
891
|
+
# @return [String]
|
892
|
+
attr_accessor :project_id
|
893
|
+
|
894
|
+
# Name of the repo. If omitted, the name "default" is assumed.
|
895
|
+
# Corresponds to the JSON property `repoName`
|
896
|
+
# @return [String]
|
897
|
+
attr_accessor :repo_name
|
898
|
+
|
899
|
+
# Name of the branch to build.
|
900
|
+
# Corresponds to the JSON property `branchName`
|
901
|
+
# @return [String]
|
902
|
+
attr_accessor :branch_name
|
895
903
|
|
896
904
|
def initialize(**args)
|
897
905
|
update!(**args)
|
@@ -899,24 +907,23 @@ module Google
|
|
899
907
|
|
900
908
|
# Update properties of this object
|
901
909
|
def update!(**args)
|
902
|
-
@
|
903
|
-
@
|
910
|
+
@tag_name = args[:tag_name] if args.key?(:tag_name)
|
911
|
+
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
|
912
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
913
|
+
@repo_name = args[:repo_name] if args.key?(:repo_name)
|
914
|
+
@branch_name = args[:branch_name] if args.key?(:branch_name)
|
904
915
|
end
|
905
916
|
end
|
906
917
|
|
907
|
-
#
|
908
|
-
|
918
|
+
# Container message for hashes of byte content of files, used in
|
919
|
+
# SourceProvenance messages to verify integrity of source input to the build.
|
920
|
+
class FileHashes
|
909
921
|
include Google::Apis::Core::Hashable
|
910
922
|
|
911
|
-
#
|
912
|
-
# Corresponds to the JSON property `
|
913
|
-
# @return [
|
914
|
-
attr_accessor :
|
915
|
-
|
916
|
-
# A list of operations that matches the specified filter in the request.
|
917
|
-
# Corresponds to the JSON property `operations`
|
918
|
-
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
|
919
|
-
attr_accessor :operations
|
923
|
+
# Collection of file hashes.
|
924
|
+
# Corresponds to the JSON property `fileHash`
|
925
|
+
# @return [Array<Google::Apis::CloudbuildV1::HashProp>]
|
926
|
+
attr_accessor :file_hash
|
920
927
|
|
921
928
|
def initialize(**args)
|
922
929
|
update!(**args)
|
@@ -924,8 +931,7 @@ module Google
|
|
924
931
|
|
925
932
|
# Update properties of this object
|
926
933
|
def update!(**args)
|
927
|
-
@
|
928
|
-
@operations = args[:operations] if args.key?(:operations)
|
934
|
+
@file_hash = args[:file_hash] if args.key?(:file_hash)
|
929
935
|
end
|
930
936
|
end
|
931
937
|
end
|