google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- 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/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- 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 +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- 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 +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- 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 +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- 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 +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- 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 +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- 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 +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- 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 +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- 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 +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- 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_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -22,42 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudbuildV1
|
24
24
|
|
25
|
-
class Status
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class Empty
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class BuildTrigger
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class Build
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class CancelBuildRequest
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class ListBuildsResponse
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
25
|
class ListOperationsResponse
|
62
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
27
|
|
@@ -106,13 +70,13 @@ module Google
|
|
106
70
|
include Google::Apis::Core::JsonObjectSupport
|
107
71
|
end
|
108
72
|
|
109
|
-
class
|
73
|
+
class ListBuildTriggersResponse
|
110
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
75
|
|
112
76
|
include Google::Apis::Core::JsonObjectSupport
|
113
77
|
end
|
114
78
|
|
115
|
-
class
|
79
|
+
class Operation
|
116
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
81
|
|
118
82
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -130,13 +94,13 @@ module Google
|
|
130
94
|
include Google::Apis::Core::JsonObjectSupport
|
131
95
|
end
|
132
96
|
|
133
|
-
class
|
97
|
+
class RepoSource
|
134
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
99
|
|
136
100
|
include Google::Apis::Core::JsonObjectSupport
|
137
101
|
end
|
138
102
|
|
139
|
-
class
|
103
|
+
class BuildStep
|
140
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
105
|
|
142
106
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -149,79 +113,39 @@ module Google
|
|
149
113
|
end
|
150
114
|
|
151
115
|
class Status
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
property :code, as: 'code'
|
156
|
-
property :message, as: 'message'
|
157
|
-
end
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
158
119
|
end
|
159
120
|
|
160
121
|
class Empty
|
161
|
-
|
162
|
-
|
163
|
-
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
164
125
|
end
|
165
126
|
|
166
127
|
class BuildTrigger
|
167
|
-
|
168
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
-
property :disabled, as: 'disabled'
|
170
|
-
property :create_time, as: 'createTime'
|
171
|
-
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
172
|
-
|
173
|
-
property :filename, as: 'filename'
|
174
|
-
property :id, as: 'id'
|
175
|
-
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
176
129
|
|
177
|
-
|
178
|
-
property :description, as: 'description'
|
179
|
-
end
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
180
131
|
end
|
181
132
|
|
182
133
|
class Build
|
183
|
-
|
184
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
185
|
-
property :status_detail, as: 'statusDetail'
|
186
|
-
property :status, as: 'status'
|
187
|
-
property :timeout, as: 'timeout'
|
188
|
-
property :logs_bucket, as: 'logsBucket'
|
189
|
-
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
190
|
-
|
191
|
-
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
192
|
-
|
193
|
-
property :build_trigger_id, as: 'buildTriggerId'
|
194
|
-
collection :tags, as: 'tags'
|
195
|
-
property :id, as: 'id'
|
196
|
-
hash :substitutions, as: 'substitutions'
|
197
|
-
property :start_time, as: 'startTime'
|
198
|
-
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
199
|
-
|
200
|
-
property :create_time, as: 'createTime'
|
201
|
-
collection :images, as: 'images'
|
202
|
-
property :project_id, as: 'projectId'
|
203
|
-
property :log_url, as: 'logUrl'
|
204
|
-
property :finish_time, as: 'finishTime'
|
205
|
-
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
206
|
-
|
207
|
-
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
208
135
|
|
209
|
-
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
210
137
|
end
|
211
138
|
|
212
139
|
class CancelBuildRequest
|
213
|
-
|
214
|
-
|
215
|
-
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
216
143
|
end
|
217
144
|
|
218
145
|
class ListBuildsResponse
|
219
|
-
|
220
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
221
|
-
property :next_page_token, as: 'nextPageToken'
|
222
|
-
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
223
147
|
|
224
|
-
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
225
149
|
end
|
226
150
|
|
227
151
|
class ListOperationsResponse
|
@@ -246,17 +170,17 @@ module Google
|
|
246
170
|
class BuildOptions
|
247
171
|
# @private
|
248
172
|
class Representation < Google::Apis::Core::JsonRepresentation
|
249
|
-
property :requested_verify_option, as: 'requestedVerifyOption'
|
250
173
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
174
|
+
property :requested_verify_option, as: 'requestedVerifyOption'
|
251
175
|
end
|
252
176
|
end
|
253
177
|
|
254
178
|
class StorageSource
|
255
179
|
# @private
|
256
180
|
class Representation < Google::Apis::Core::JsonRepresentation
|
181
|
+
property :bucket, as: 'bucket'
|
257
182
|
property :object, as: 'object'
|
258
183
|
property :generation, :numeric_string => true, as: 'generation'
|
259
|
-
property :bucket, as: 'bucket'
|
260
184
|
end
|
261
185
|
end
|
262
186
|
|
@@ -280,12 +204,12 @@ module Google
|
|
280
204
|
class SourceProvenance
|
281
205
|
# @private
|
282
206
|
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
+
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
208
|
+
|
283
209
|
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
284
210
|
|
285
211
|
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
286
212
|
|
287
|
-
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
288
|
-
|
289
213
|
end
|
290
214
|
end
|
291
215
|
|
@@ -295,23 +219,23 @@ module Google
|
|
295
219
|
end
|
296
220
|
end
|
297
221
|
|
298
|
-
class
|
222
|
+
class ListBuildTriggersResponse
|
299
223
|
# @private
|
300
224
|
class Representation < Google::Apis::Core::JsonRepresentation
|
301
|
-
|
302
|
-
property :name, as: 'name'
|
303
|
-
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
225
|
+
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
304
226
|
|
305
|
-
hash :metadata, as: 'metadata'
|
306
|
-
property :done, as: 'done'
|
307
227
|
end
|
308
228
|
end
|
309
229
|
|
310
|
-
class
|
230
|
+
class Operation
|
311
231
|
# @private
|
312
232
|
class Representation < Google::Apis::Core::JsonRepresentation
|
313
|
-
|
233
|
+
property :done, as: 'done'
|
234
|
+
hash :response, as: 'response'
|
235
|
+
property :name, as: 'name'
|
236
|
+
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
314
237
|
|
238
|
+
hash :metadata, as: 'metadata'
|
315
239
|
end
|
316
240
|
end
|
317
241
|
|
@@ -331,34 +255,110 @@ module Google
|
|
331
255
|
end
|
332
256
|
end
|
333
257
|
|
258
|
+
class RepoSource
|
259
|
+
# @private
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
+
property :tag_name, as: 'tagName'
|
262
|
+
property :commit_sha, as: 'commitSha'
|
263
|
+
property :project_id, as: 'projectId'
|
264
|
+
property :repo_name, as: 'repoName'
|
265
|
+
property :branch_name, as: 'branchName'
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
334
269
|
class BuildStep
|
335
270
|
# @private
|
336
271
|
class Representation < Google::Apis::Core::JsonRepresentation
|
272
|
+
property :name, as: 'name'
|
337
273
|
property :entrypoint, as: 'entrypoint'
|
338
274
|
property :id, as: 'id'
|
339
275
|
property :dir, as: 'dir'
|
340
|
-
collection :wait_for, as: 'waitFor'
|
341
276
|
collection :env, as: 'env'
|
277
|
+
collection :wait_for, as: 'waitFor'
|
342
278
|
collection :args, as: 'args'
|
343
|
-
property :name, as: 'name'
|
344
279
|
end
|
345
280
|
end
|
346
281
|
|
347
|
-
class
|
282
|
+
class FileHashes
|
348
283
|
# @private
|
349
284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
350
|
-
|
351
|
-
|
285
|
+
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
286
|
+
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
class Status
|
291
|
+
# @private
|
292
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
293
|
+
property :message, as: 'message'
|
294
|
+
collection :details, as: 'details'
|
295
|
+
property :code, as: 'code'
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
class Empty
|
300
|
+
# @private
|
301
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
class BuildTrigger
|
306
|
+
# @private
|
307
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
308
|
+
property :create_time, as: 'createTime'
|
309
|
+
property :disabled, as: 'disabled'
|
310
|
+
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
311
|
+
|
312
|
+
property :filename, as: 'filename'
|
313
|
+
property :id, as: 'id'
|
314
|
+
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
315
|
+
|
316
|
+
hash :substitutions, as: 'substitutions'
|
317
|
+
property :description, as: 'description'
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
class Build
|
322
|
+
# @private
|
323
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
+
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
325
|
+
|
326
|
+
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
327
|
+
|
328
|
+
property :status_detail, as: 'statusDetail'
|
329
|
+
property :status, as: 'status'
|
330
|
+
property :timeout, as: 'timeout'
|
331
|
+
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
332
|
+
|
333
|
+
property :logs_bucket, as: 'logsBucket'
|
334
|
+
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
335
|
+
|
336
|
+
property :build_trigger_id, as: 'buildTriggerId'
|
337
|
+
collection :tags, as: 'tags'
|
338
|
+
property :id, as: 'id'
|
339
|
+
property :start_time, as: 'startTime'
|
340
|
+
hash :substitutions, as: 'substitutions'
|
341
|
+
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
342
|
+
|
343
|
+
property :create_time, as: 'createTime'
|
344
|
+
collection :images, as: 'images'
|
352
345
|
property :project_id, as: 'projectId'
|
353
|
-
property :
|
354
|
-
property :
|
346
|
+
property :log_url, as: 'logUrl'
|
347
|
+
property :finish_time, as: 'finishTime'
|
355
348
|
end
|
356
349
|
end
|
357
350
|
|
358
|
-
class
|
351
|
+
class CancelBuildRequest
|
359
352
|
# @private
|
360
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
361
|
-
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
357
|
+
class ListBuildsResponse
|
358
|
+
# @private
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
360
|
+
property :next_page_token, as: 'nextPageToken'
|
361
|
+
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
362
362
|
|
363
363
|
end
|
364
364
|
end
|
@@ -47,12 +47,13 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
-
#
|
51
|
-
#
|
50
|
+
# Returns information about a previously requested build.
|
51
|
+
# The Build that is returned includes its status (e.g., success or failure,
|
52
|
+
# or in-progress), and timing information.
|
52
53
|
# @param [String] project_id
|
53
|
-
# ID of the project
|
54
|
-
# @param [String]
|
55
|
-
# ID of the
|
54
|
+
# ID of the project.
|
55
|
+
# @param [String] id
|
56
|
+
# ID of the build.
|
56
57
|
# @param [String] quota_user
|
57
58
|
# Available to use for quota purposes for server-side applications. Can be any
|
58
59
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -62,31 +63,36 @@ module Google
|
|
62
63
|
# Request-specific options
|
63
64
|
#
|
64
65
|
# @yield [result, err] Result & error if block supplied
|
65
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
66
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
66
67
|
# @yieldparam err [StandardError] error object if request failed
|
67
68
|
#
|
68
|
-
# @return [Google::Apis::CloudbuildV1::
|
69
|
+
# @return [Google::Apis::CloudbuildV1::Build]
|
69
70
|
#
|
70
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
-
def
|
74
|
-
command = make_simple_command(:
|
75
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
76
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
74
|
+
def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
76
|
+
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
77
|
+
command.response_class = Google::Apis::CloudbuildV1::Build
|
77
78
|
command.params['projectId'] = project_id unless project_id.nil?
|
78
|
-
command.params['
|
79
|
+
command.params['id'] = id unless id.nil?
|
79
80
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
81
|
command.query['fields'] = fields unless fields.nil?
|
81
82
|
execute_or_queue_command(command, &block)
|
82
83
|
end
|
83
84
|
|
84
|
-
#
|
85
|
-
#
|
85
|
+
# Lists previously requested builds.
|
86
|
+
# Previously requested builds may still be in-progress, or may have finished
|
87
|
+
# successfully or unsuccessfully.
|
86
88
|
# @param [String] project_id
|
87
|
-
# ID of the project
|
88
|
-
# @param [String]
|
89
|
-
#
|
89
|
+
# ID of the project.
|
90
|
+
# @param [String] page_token
|
91
|
+
# Token to provide to skip to a particular spot in the list.
|
92
|
+
# @param [Fixnum] page_size
|
93
|
+
# Number of results to return in the list.
|
94
|
+
# @param [String] filter
|
95
|
+
# The raw filter text to constrain the results.
|
90
96
|
# @param [String] quota_user
|
91
97
|
# Available to use for quota purposes for server-side applications. Can be any
|
92
98
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -96,29 +102,34 @@ module Google
|
|
96
102
|
# Request-specific options
|
97
103
|
#
|
98
104
|
# @yield [result, err] Result & error if block supplied
|
99
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
105
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
100
106
|
# @yieldparam err [StandardError] error object if request failed
|
101
107
|
#
|
102
|
-
# @return [Google::Apis::CloudbuildV1::
|
108
|
+
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
103
109
|
#
|
104
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
-
def
|
108
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/
|
109
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
110
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
113
|
+
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
115
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
116
|
+
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
111
117
|
command.params['projectId'] = project_id unless project_id.nil?
|
112
|
-
command.
|
118
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
119
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
120
|
+
command.query['filter'] = filter unless filter.nil?
|
113
121
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
122
|
command.query['fields'] = fields unless fields.nil?
|
115
123
|
execute_or_queue_command(command, &block)
|
116
124
|
end
|
117
125
|
|
118
|
-
#
|
119
|
-
#
|
126
|
+
# Starts a build with the specified configuration.
|
127
|
+
# The long-running Operation returned by this method will include the ID of
|
128
|
+
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
129
|
+
# success or failure).
|
120
130
|
# @param [String] project_id
|
121
|
-
# ID of the project
|
131
|
+
# ID of the project.
|
132
|
+
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
122
133
|
# @param [String] quota_user
|
123
134
|
# Available to use for quota purposes for server-side applications. Can be any
|
124
135
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -128,31 +139,32 @@ module Google
|
|
128
139
|
# Request-specific options
|
129
140
|
#
|
130
141
|
# @yield [result, err] Result & error if block supplied
|
131
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
142
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
132
143
|
# @yieldparam err [StandardError] error object if request failed
|
133
144
|
#
|
134
|
-
# @return [Google::Apis::CloudbuildV1::
|
145
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
135
146
|
#
|
136
147
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
137
148
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
138
149
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
139
|
-
def
|
140
|
-
command = make_simple_command(:
|
141
|
-
command.
|
142
|
-
command.
|
150
|
+
def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
151
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
152
|
+
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
153
|
+
command.request_object = build_object
|
154
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
155
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
143
156
|
command.params['projectId'] = project_id unless project_id.nil?
|
144
157
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
145
158
|
command.query['fields'] = fields unless fields.nil?
|
146
159
|
execute_or_queue_command(command, &block)
|
147
160
|
end
|
148
161
|
|
149
|
-
#
|
150
|
-
# This API is experimental.
|
162
|
+
# Cancels a requested build in progress.
|
151
163
|
# @param [String] project_id
|
152
|
-
# ID of the project
|
153
|
-
# @param [String]
|
154
|
-
# ID of the
|
155
|
-
# @param [Google::Apis::CloudbuildV1::
|
164
|
+
# ID of the project.
|
165
|
+
# @param [String] id
|
166
|
+
# ID of the build.
|
167
|
+
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
156
168
|
# @param [String] quota_user
|
157
169
|
# Available to use for quota purposes for server-side applications. Can be any
|
158
170
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -162,32 +174,33 @@ module Google
|
|
162
174
|
# Request-specific options
|
163
175
|
#
|
164
176
|
# @yield [result, err] Result & error if block supplied
|
165
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
177
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
166
178
|
# @yieldparam err [StandardError] error object if request failed
|
167
179
|
#
|
168
|
-
# @return [Google::Apis::CloudbuildV1::
|
180
|
+
# @return [Google::Apis::CloudbuildV1::Build]
|
169
181
|
#
|
170
182
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
171
183
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
172
184
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
173
|
-
def
|
174
|
-
command = make_simple_command(:
|
175
|
-
command.request_representation = Google::Apis::CloudbuildV1::
|
176
|
-
command.request_object =
|
177
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
178
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
185
|
+
def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
186
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
187
|
+
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
188
|
+
command.request_object = cancel_build_request_object
|
189
|
+
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
190
|
+
command.response_class = Google::Apis::CloudbuildV1::Build
|
179
191
|
command.params['projectId'] = project_id unless project_id.nil?
|
180
|
-
command.params['
|
192
|
+
command.params['id'] = id unless id.nil?
|
181
193
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
182
194
|
command.query['fields'] = fields unless fields.nil?
|
183
195
|
execute_or_queue_command(command, &block)
|
184
196
|
end
|
185
197
|
|
186
|
-
#
|
198
|
+
# Gets information about a BuildTrigger.
|
187
199
|
# This API is experimental.
|
188
200
|
# @param [String] project_id
|
189
|
-
# ID of the project
|
190
|
-
# @param [
|
201
|
+
# ID of the project that owns the trigger.
|
202
|
+
# @param [String] trigger_id
|
203
|
+
# ID of the BuildTrigger to get.
|
191
204
|
# @param [String] quota_user
|
192
205
|
# Available to use for quota purposes for server-side applications. Can be any
|
193
206
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -205,25 +218,21 @@ module Google
|
|
205
218
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
206
219
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
207
220
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
208
|
-
def
|
209
|
-
command = make_simple_command(:
|
210
|
-
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
211
|
-
command.request_object = build_trigger_object
|
221
|
+
def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
212
223
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
213
224
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
214
225
|
command.params['projectId'] = project_id unless project_id.nil?
|
226
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
215
227
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
228
|
command.query['fields'] = fields unless fields.nil?
|
217
229
|
execute_or_queue_command(command, &block)
|
218
230
|
end
|
219
231
|
|
220
|
-
#
|
221
|
-
#
|
222
|
-
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
223
|
-
# success or failure).
|
232
|
+
# Lists existing BuildTrigger.
|
233
|
+
# This API is experimental.
|
224
234
|
# @param [String] project_id
|
225
|
-
# ID of the project.
|
226
|
-
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
235
|
+
# ID of the project for which to list BuildTriggers.
|
227
236
|
# @param [String] quota_user
|
228
237
|
# Available to use for quota purposes for server-side applications. Can be any
|
229
238
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -233,32 +242,31 @@ module Google
|
|
233
242
|
# Request-specific options
|
234
243
|
#
|
235
244
|
# @yield [result, err] Result & error if block supplied
|
236
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
245
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
237
246
|
# @yieldparam err [StandardError] error object if request failed
|
238
247
|
#
|
239
|
-
# @return [Google::Apis::CloudbuildV1::
|
248
|
+
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
240
249
|
#
|
241
250
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
242
251
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
243
252
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
244
|
-
def
|
245
|
-
command = make_simple_command(:
|
246
|
-
command.
|
247
|
-
command.
|
248
|
-
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
249
|
-
command.response_class = Google::Apis::CloudbuildV1::Operation
|
253
|
+
def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
254
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
255
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
256
|
+
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
250
257
|
command.params['projectId'] = project_id unless project_id.nil?
|
251
258
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
252
259
|
command.query['fields'] = fields unless fields.nil?
|
253
260
|
execute_or_queue_command(command, &block)
|
254
261
|
end
|
255
262
|
|
256
|
-
#
|
263
|
+
# Updates an BuildTrigger by its project ID and trigger ID.
|
264
|
+
# This API is experimental.
|
257
265
|
# @param [String] project_id
|
258
|
-
# ID of the project.
|
259
|
-
# @param [String]
|
260
|
-
# ID of the
|
261
|
-
# @param [Google::Apis::CloudbuildV1::
|
266
|
+
# ID of the project that owns the trigger.
|
267
|
+
# @param [String] trigger_id
|
268
|
+
# ID of the BuildTrigger to update.
|
269
|
+
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
262
270
|
# @param [String] quota_user
|
263
271
|
# Available to use for quota purposes for server-side applications. Can be any
|
264
272
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -268,34 +276,32 @@ module Google
|
|
268
276
|
# Request-specific options
|
269
277
|
#
|
270
278
|
# @yield [result, err] Result & error if block supplied
|
271
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
279
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
272
280
|
# @yieldparam err [StandardError] error object if request failed
|
273
281
|
#
|
274
|
-
# @return [Google::Apis::CloudbuildV1::
|
282
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
275
283
|
#
|
276
284
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
277
285
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
278
286
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
279
|
-
def
|
280
|
-
command = make_simple_command(:
|
281
|
-
command.request_representation = Google::Apis::CloudbuildV1::
|
282
|
-
command.request_object =
|
283
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
284
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
287
|
+
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
288
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
289
|
+
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
290
|
+
command.request_object = build_trigger_object
|
291
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
292
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
285
293
|
command.params['projectId'] = project_id unless project_id.nil?
|
286
|
-
command.params['
|
294
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
287
295
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
288
296
|
command.query['fields'] = fields unless fields.nil?
|
289
297
|
execute_or_queue_command(command, &block)
|
290
298
|
end
|
291
299
|
|
292
|
-
#
|
293
|
-
#
|
294
|
-
# or in-progress), and timing information.
|
300
|
+
# Creates a new BuildTrigger.
|
301
|
+
# This API is experimental.
|
295
302
|
# @param [String] project_id
|
296
|
-
# ID of the project.
|
297
|
-
# @param [
|
298
|
-
# ID of the build.
|
303
|
+
# ID of the project for which to configure automatic builds.
|
304
|
+
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
299
305
|
# @param [String] quota_user
|
300
306
|
# Available to use for quota purposes for server-side applications. Can be any
|
301
307
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -305,79 +311,32 @@ module Google
|
|
305
311
|
# Request-specific options
|
306
312
|
#
|
307
313
|
# @yield [result, err] Result & error if block supplied
|
308
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
314
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
309
315
|
# @yieldparam err [StandardError] error object if request failed
|
310
316
|
#
|
311
|
-
# @return [Google::Apis::CloudbuildV1::
|
317
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
312
318
|
#
|
313
319
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
314
320
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
321
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
|
-
def
|
317
|
-
command = make_simple_command(:
|
318
|
-
command.
|
319
|
-
command.
|
322
|
+
def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
323
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
324
|
+
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
325
|
+
command.request_object = build_trigger_object
|
326
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
327
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
320
328
|
command.params['projectId'] = project_id unless project_id.nil?
|
321
|
-
command.params['id'] = id unless id.nil?
|
322
329
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
323
330
|
command.query['fields'] = fields unless fields.nil?
|
324
331
|
execute_or_queue_command(command, &block)
|
325
332
|
end
|
326
333
|
|
327
|
-
#
|
328
|
-
#
|
329
|
-
# successfully or unsuccessfully.
|
334
|
+
# Deletes an BuildTrigger by its project ID and trigger ID.
|
335
|
+
# This API is experimental.
|
330
336
|
# @param [String] project_id
|
331
|
-
# ID of the project.
|
332
|
-
# @param [String]
|
333
|
-
#
|
334
|
-
# @param [Fixnum] page_size
|
335
|
-
# Number of results to return in the list.
|
336
|
-
# @param [String] filter
|
337
|
-
# The raw filter text to constrain the results.
|
338
|
-
# @param [String] quota_user
|
339
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
340
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
341
|
-
# @param [String] fields
|
342
|
-
# Selector specifying which fields to include in a partial response.
|
343
|
-
# @param [Google::Apis::RequestOptions] options
|
344
|
-
# Request-specific options
|
345
|
-
#
|
346
|
-
# @yield [result, err] Result & error if block supplied
|
347
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
348
|
-
# @yieldparam err [StandardError] error object if request failed
|
349
|
-
#
|
350
|
-
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
351
|
-
#
|
352
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
353
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
354
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
355
|
-
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
356
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
357
|
-
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
358
|
-
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
359
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
360
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
361
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
362
|
-
command.query['filter'] = filter unless filter.nil?
|
363
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
364
|
-
command.query['fields'] = fields unless fields.nil?
|
365
|
-
execute_or_queue_command(command, &block)
|
366
|
-
end
|
367
|
-
|
368
|
-
# Starts asynchronous cancellation on a long-running operation. The server
|
369
|
-
# makes a best effort to cancel the operation, but success is not
|
370
|
-
# guaranteed. If the server doesn't support this method, it returns
|
371
|
-
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
372
|
-
# Operations.GetOperation or
|
373
|
-
# other methods to check whether the cancellation succeeded or whether the
|
374
|
-
# operation completed despite cancellation. On successful cancellation,
|
375
|
-
# the operation is not deleted; instead, it becomes an operation with
|
376
|
-
# an Operation.error value with a google.rpc.Status.code of 1,
|
377
|
-
# corresponding to `Code.CANCELLED`.
|
378
|
-
# @param [String] name
|
379
|
-
# The name of the operation resource to be cancelled.
|
380
|
-
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
337
|
+
# ID of the project that owns the trigger.
|
338
|
+
# @param [String] trigger_id
|
339
|
+
# ID of the BuildTrigger to delete.
|
381
340
|
# @param [String] quota_user
|
382
341
|
# Available to use for quota purposes for server-side applications. Can be any
|
383
342
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -395,13 +354,12 @@ module Google
|
|
395
354
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
396
355
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
397
356
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
398
|
-
def
|
399
|
-
command = make_simple_command(:
|
400
|
-
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
401
|
-
command.request_object = cancel_operation_request_object
|
357
|
+
def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
358
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
402
359
|
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
403
360
|
command.response_class = Google::Apis::CloudbuildV1::Empty
|
404
|
-
command.params['
|
361
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
362
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
405
363
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
406
364
|
command.query['fields'] = fields unless fields.nil?
|
407
365
|
execute_or_queue_command(command, &block)
|
@@ -409,10 +367,15 @@ module Google
|
|
409
367
|
|
410
368
|
# Lists operations that match the specified filter in the request. If the
|
411
369
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
412
|
-
# NOTE: the `name` binding
|
413
|
-
# to use different resource name schemes, such as `users/*/operations`.
|
370
|
+
# NOTE: the `name` binding allows API services to override the binding
|
371
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
372
|
+
# override the binding, API services can add a binding such as
|
373
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
374
|
+
# For backwards compatibility, the default name includes the operations
|
375
|
+
# collection id, however overriding users must ensure the name binding
|
376
|
+
# is the parent resource, without the operations collection id.
|
414
377
|
# @param [String] name
|
415
|
-
# The name of the operation
|
378
|
+
# The name of the operation's parent resource.
|
416
379
|
# @param [String] filter
|
417
380
|
# The standard list filter.
|
418
381
|
# @param [String] page_token
|
@@ -480,6 +443,48 @@ module Google
|
|
480
443
|
command.query['fields'] = fields unless fields.nil?
|
481
444
|
execute_or_queue_command(command, &block)
|
482
445
|
end
|
446
|
+
|
447
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
448
|
+
# makes a best effort to cancel the operation, but success is not
|
449
|
+
# guaranteed. If the server doesn't support this method, it returns
|
450
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
451
|
+
# Operations.GetOperation or
|
452
|
+
# other methods to check whether the cancellation succeeded or whether the
|
453
|
+
# operation completed despite cancellation. On successful cancellation,
|
454
|
+
# the operation is not deleted; instead, it becomes an operation with
|
455
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
456
|
+
# corresponding to `Code.CANCELLED`.
|
457
|
+
# @param [String] name
|
458
|
+
# The name of the operation resource to be cancelled.
|
459
|
+
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
460
|
+
# @param [String] quota_user
|
461
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
462
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
463
|
+
# @param [String] fields
|
464
|
+
# Selector specifying which fields to include in a partial response.
|
465
|
+
# @param [Google::Apis::RequestOptions] options
|
466
|
+
# Request-specific options
|
467
|
+
#
|
468
|
+
# @yield [result, err] Result & error if block supplied
|
469
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
470
|
+
# @yieldparam err [StandardError] error object if request failed
|
471
|
+
#
|
472
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
473
|
+
#
|
474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
477
|
+
def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
478
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
479
|
+
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
480
|
+
command.request_object = cancel_operation_request_object
|
481
|
+
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
482
|
+
command.response_class = Google::Apis::CloudbuildV1::Empty
|
483
|
+
command.params['name'] = name unless name.nil?
|
484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
485
|
+
command.query['fields'] = fields unless fields.nil?
|
486
|
+
execute_or_queue_command(command, &block)
|
487
|
+
end
|
483
488
|
|
484
489
|
protected
|
485
490
|
|