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.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. 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 Operation
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 ListBuildTriggersResponse
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 BuildStep
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 RepoSource
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
- # @private
153
- class Representation < Google::Apis::Core::JsonRepresentation
154
- collection :details, as: 'details'
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
- # @private
162
- class Representation < Google::Apis::Core::JsonRepresentation
163
- end
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
- # @private
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
- hash :substitutions, as: 'substitutions'
178
- property :description, as: 'description'
179
- end
130
+ include Google::Apis::Core::JsonObjectSupport
180
131
  end
181
132
 
182
133
  class Build
183
- # @private
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
- end
136
+ include Google::Apis::Core::JsonObjectSupport
210
137
  end
211
138
 
212
139
  class CancelBuildRequest
213
- # @private
214
- class Representation < Google::Apis::Core::JsonRepresentation
215
- end
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
- # @private
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
- end
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 Operation
222
+ class ListBuildTriggersResponse
299
223
  # @private
300
224
  class Representation < Google::Apis::Core::JsonRepresentation
301
- hash :response, as: 'response'
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 ListBuildTriggersResponse
230
+ class Operation
311
231
  # @private
312
232
  class Representation < Google::Apis::Core::JsonRepresentation
313
- collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
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 RepoSource
282
+ class FileHashes
348
283
  # @private
349
284
  class Representation < Google::Apis::Core::JsonRepresentation
350
- property :tag_name, as: 'tagName'
351
- property :commit_sha, as: 'commitSha'
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 :repo_name, as: 'repoName'
354
- property :branch_name, as: 'branchName'
346
+ property :log_url, as: 'logUrl'
347
+ property :finish_time, as: 'finishTime'
355
348
  end
356
349
  end
357
350
 
358
- class FileHashes
351
+ class CancelBuildRequest
359
352
  # @private
360
353
  class Representation < Google::Apis::Core::JsonRepresentation
361
- collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
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
- # Deletes an BuildTrigger by its project ID and trigger ID.
51
- # This API is experimental.
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 that owns the trigger.
54
- # @param [String] trigger_id
55
- # ID of the BuildTrigger to delete.
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::Empty] parsed result object
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::Empty]
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 delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
74
- command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
75
- command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
76
- command.response_class = Google::Apis::CloudbuildV1::Empty
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['triggerId'] = trigger_id unless trigger_id.nil?
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
- # Gets information about a BuildTrigger.
85
- # This API is experimental.
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 that owns the trigger.
88
- # @param [String] trigger_id
89
- # ID of the BuildTrigger to get.
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::BuildTrigger] parsed result object
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::BuildTrigger]
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 get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
108
- command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
109
- command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
110
- command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
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.params['triggerId'] = trigger_id unless trigger_id.nil?
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
- # Lists existing BuildTrigger.
119
- # This API is experimental.
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 for which to list BuildTriggers.
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::ListBuildTriggersResponse] parsed result object
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::ListBuildTriggersResponse]
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 list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
140
- command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
141
- command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
142
- command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
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
- # Updates an BuildTrigger by its project ID and trigger ID.
150
- # This API is experimental.
162
+ # Cancels a requested build in progress.
151
163
  # @param [String] project_id
152
- # ID of the project that owns the trigger.
153
- # @param [String] trigger_id
154
- # ID of the BuildTrigger to update.
155
- # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
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::BuildTrigger] parsed result object
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::BuildTrigger]
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 patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
174
- command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
175
- command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
176
- command.request_object = build_trigger_object
177
- command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
178
- command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
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['triggerId'] = trigger_id unless trigger_id.nil?
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
- # Creates a new BuildTrigger.
198
+ # Gets information about a BuildTrigger.
187
199
  # This API is experimental.
188
200
  # @param [String] project_id
189
- # ID of the project for which to configure automatic builds.
190
- # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
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 create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
209
- command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
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
- # Starts a build with the specified configuration.
221
- # The long-running Operation returned by this method will include the ID of
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::Operation] parsed result object
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::Operation]
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 create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
245
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
246
- command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
247
- command.request_object = build_object
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
- # Cancels a requested build in progress.
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] id
260
- # ID of the build.
261
- # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
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::Build] parsed result object
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::Build]
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 cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
280
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
281
- command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
282
- command.request_object = cancel_build_request_object
283
- command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
284
- command.response_class = Google::Apis::CloudbuildV1::Build
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['id'] = id unless id.nil?
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
- # Returns information about a previously requested build.
293
- # The Build that is returned includes its status (e.g., success or failure,
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 [String] id
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::Build] parsed result object
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::Build]
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 get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
317
- command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
318
- command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
319
- command.response_class = Google::Apis::CloudbuildV1::Build
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
- # Lists previously requested builds.
328
- # Previously requested builds may still be in-progress, or may have finished
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] page_token
333
- # Token to provide to skip to a particular spot in the list.
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 cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
399
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
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['name'] = name unless name.nil?
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 below allows API services to override the 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 collection.
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