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