google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -40,18 +40,36 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class SourceProvenance
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class Operation
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
46
52
  include Google::Apis::Core::JsonObjectSupport
47
53
  end
48
54
 
55
+ class BuildTrigger
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class BuiltImage
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
52
64
  include Google::Apis::Core::JsonObjectSupport
53
65
  end
54
66
 
67
+ class HashProp
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
55
73
  class StorageSource
56
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
75
 
@@ -70,24 +88,54 @@ module Google
70
88
  include Google::Apis::Core::JsonObjectSupport
71
89
  end
72
90
 
91
+ class ListBuildTriggersResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
73
97
  class CancelBuildRequest
74
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
99
 
76
100
  include Google::Apis::Core::JsonObjectSupport
77
101
  end
78
102
 
103
+ class FileHashes
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
79
109
  class ListOperationsResponse
80
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
111
 
82
112
  include Google::Apis::Core::JsonObjectSupport
83
113
  end
84
114
 
115
+ class RepoSource
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
85
121
  class BuildStep
86
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
123
 
88
124
  include Google::Apis::Core::JsonObjectSupport
89
125
  end
90
126
 
127
+ class Empty
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class BuildOptions
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
91
139
  class ListBuildsResponse
92
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
141
 
@@ -116,6 +164,20 @@ module Google
116
164
  class Representation < Google::Apis::Core::JsonRepresentation
117
165
  property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
118
166
 
167
+ property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
168
+
169
+ end
170
+ end
171
+
172
+ class SourceProvenance
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
176
+
177
+ property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
178
+
179
+ hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
180
+
119
181
  end
120
182
  end
121
183
 
@@ -131,6 +193,21 @@ module Google
131
193
  end
132
194
  end
133
195
 
196
+ class BuildTrigger
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :id, as: 'id'
200
+ property :description, as: 'description'
201
+ property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
202
+
203
+ property :disabled, as: 'disabled'
204
+ property :create_time, as: 'createTime'
205
+ property :filename, as: 'filename'
206
+ property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
207
+
208
+ end
209
+ end
210
+
134
211
  class BuiltImage
135
212
  # @private
136
213
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -139,6 +216,14 @@ module Google
139
216
  end
140
217
  end
141
218
 
219
+ class HashProp
220
+ # @private
221
+ class Representation < Google::Apis::Core::JsonRepresentation
222
+ property :value, :base64 => true, as: 'value'
223
+ property :type, as: 'type'
224
+ end
225
+ end
226
+
142
227
  class StorageSource
143
228
  # @private
144
229
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -153,6 +238,7 @@ module Google
153
238
  class Representation < Google::Apis::Core::JsonRepresentation
154
239
  collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
155
240
 
241
+ collection :build_step_images, as: 'buildStepImages'
156
242
  end
157
243
  end
158
244
 
@@ -160,9 +246,13 @@ module Google
160
246
  # @private
161
247
  class Representation < Google::Apis::Core::JsonRepresentation
162
248
  property :id, as: 'id'
249
+ property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
250
+
163
251
  property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
164
252
 
165
253
  property :status, as: 'status'
254
+ property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
255
+
166
256
  property :finish_time, as: 'finishTime'
167
257
  property :timeout, as: 'timeout'
168
258
  collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
@@ -170,20 +260,38 @@ module Google
170
260
  property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
171
261
 
172
262
  property :create_time, as: 'createTime'
263
+ property :log_url, as: 'logUrl'
173
264
  property :status_detail, as: 'statusDetail'
174
265
  collection :images, as: 'images'
175
266
  property :start_time, as: 'startTime'
267
+ property :build_trigger_id, as: 'buildTriggerId'
176
268
  property :logs_bucket, as: 'logsBucket'
177
269
  property :project_id, as: 'projectId'
178
270
  end
179
271
  end
180
272
 
273
+ class ListBuildTriggersResponse
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
277
+
278
+ end
279
+ end
280
+
181
281
  class CancelBuildRequest
182
282
  # @private
183
283
  class Representation < Google::Apis::Core::JsonRepresentation
184
284
  end
185
285
  end
186
286
 
287
+ class FileHashes
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
291
+
292
+ end
293
+ end
294
+
187
295
  class ListOperationsResponse
188
296
  # @private
189
297
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -193,13 +301,40 @@ module Google
193
301
  end
194
302
  end
195
303
 
304
+ class RepoSource
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :repo_name, as: 'repoName'
308
+ property :tag_name, as: 'tagName'
309
+ property :project_id, as: 'projectId'
310
+ property :branch_name, as: 'branchName'
311
+ property :commit_sha, as: 'commitSha'
312
+ end
313
+ end
314
+
196
315
  class BuildStep
197
316
  # @private
198
317
  class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :id, as: 'id'
319
+ collection :env, as: 'env'
320
+ collection :wait_for, as: 'waitFor'
199
321
  collection :args, as: 'args'
200
- property :dir, as: 'dir'
201
322
  property :name, as: 'name'
202
- collection :env, as: 'env'
323
+ property :dir, as: 'dir'
324
+ end
325
+ end
326
+
327
+ class Empty
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ end
331
+ end
332
+
333
+ class BuildOptions
334
+ # @private
335
+ class Representation < Google::Apis::Core::JsonRepresentation
336
+ collection :source_provenance_hash, as: 'sourceProvenanceHash'
337
+ property :requested_verify_option, as: 'requestedVerifyOption'
203
338
  end
204
339
  end
205
340
 
@@ -46,6 +46,176 @@ module Google
46
46
  super('https://cloudbuild.googleapis.com/', '')
47
47
  end
48
48
 
49
+ # Creates a new BuildTrigger.
50
+ # This API is experimental.
51
+ # @param [String] project_id
52
+ # ID of the project for which to configure automatic builds.
53
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
54
+ # @param [String] quota_user
55
+ # Available to use for quota purposes for server-side applications. Can be any
56
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
72
+ command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
73
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
74
+ command.request_object = build_trigger_object
75
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
76
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
77
+ command.params['projectId'] = project_id unless project_id.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Gets information about a BuildTrigger.
84
+ # This API is experimental.
85
+ # @param [String] project_id
86
+ # ID of the project that owns the trigger.
87
+ # @param [String] trigger_id
88
+ # ID of the BuildTrigger to get.
89
+ # @param [String] quota_user
90
+ # Available to use for quota purposes for server-side applications. Can be any
91
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
108
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
109
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
110
+ command.params['projectId'] = project_id unless project_id.nil?
111
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ command.query['fields'] = fields unless fields.nil?
114
+ execute_or_queue_command(command, &block)
115
+ end
116
+
117
+ # Lists existing BuildTrigger.
118
+ # This API is experimental.
119
+ # @param [String] project_id
120
+ # ID of the project for which to list BuildTriggers.
121
+ # @param [String] quota_user
122
+ # Available to use for quota purposes for server-side applications. Can be any
123
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
+ # @param [Google::Apis::RequestOptions] options
127
+ # Request-specific options
128
+ #
129
+ # @yield [result, err] Result & error if block supplied
130
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
131
+ # @yieldparam err [StandardError] error object if request failed
132
+ #
133
+ # @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
134
+ #
135
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
138
+ def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
139
+ command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
140
+ command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
141
+ command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
142
+ command.params['projectId'] = project_id unless project_id.nil?
143
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
144
+ command.query['fields'] = fields unless fields.nil?
145
+ execute_or_queue_command(command, &block)
146
+ end
147
+
148
+ # Deletes an BuildTrigger by its project ID and trigger ID.
149
+ # This API is experimental.
150
+ # @param [String] project_id
151
+ # ID of the project that owns the trigger.
152
+ # @param [String] trigger_id
153
+ # ID of the BuildTrigger to delete.
154
+ # @param [String] quota_user
155
+ # Available to use for quota purposes for server-side applications. Can be any
156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
159
+ # @param [Google::Apis::RequestOptions] options
160
+ # Request-specific options
161
+ #
162
+ # @yield [result, err] Result & error if block supplied
163
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
164
+ # @yieldparam err [StandardError] error object if request failed
165
+ #
166
+ # @return [Google::Apis::CloudbuildV1::Empty]
167
+ #
168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
171
+ def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
172
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
173
+ command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
174
+ command.response_class = Google::Apis::CloudbuildV1::Empty
175
+ command.params['projectId'] = project_id unless project_id.nil?
176
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
178
+ command.query['fields'] = fields unless fields.nil?
179
+ execute_or_queue_command(command, &block)
180
+ end
181
+
182
+ # Updates an BuildTrigger by its project ID and trigger ID.
183
+ # This API is experimental.
184
+ # @param [String] project_id
185
+ # ID of the project that owns the trigger.
186
+ # @param [String] trigger_id
187
+ # ID of the BuildTrigger to update.
188
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
207
+ command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
208
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
209
+ command.request_object = build_trigger_object
210
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
211
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
212
+ command.params['projectId'] = project_id unless project_id.nil?
213
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
215
+ command.query['fields'] = fields unless fields.nil?
216
+ execute_or_queue_command(command, &block)
217
+ end
218
+
49
219
  # Starts a build with the specified configuration.
50
220
  # The long-running Operation returned by this method will include the ID of
51
221
  # the build, which can be passed to GetBuild to determine its status (e.g.,
@@ -124,6 +294,8 @@ module Google
124
294
  # ID of the project.
125
295
  # @param [Fixnum] page_size
126
296
  # Number of results to return in the list.
297
+ # @param [String] filter
298
+ # The raw filter text to constrain the results.
127
299
  # @param [String] page_token
128
300
  # Token to provide to skip to a particular spot in the list.
129
301
  # @param [String] quota_user
@@ -143,12 +315,13 @@ module Google
143
315
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
316
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
317
  # @raise [Google::Apis::AuthorizationError] Authorization is required
146
- def list_project_builds(project_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
318
+ def list_project_builds(project_id, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
147
319
  command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
148
320
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
149
321
  command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
150
322
  command.params['projectId'] = project_id unless project_id.nil?
151
323
  command.query['pageSize'] = page_size unless page_size.nil?
324
+ command.query['filter'] = filter unless filter.nil?
152
325
  command.query['pageToken'] = page_token unless page_token.nil?
153
326
  command.query['quotaUser'] = quota_user unless quota_user.nil?
154
327
  command.query['fields'] = fields unless fields.nil?
@@ -18,24 +18,21 @@ require 'google/apis/clouddebugger_v2/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Cloud Debugger API
21
+ # Stackdriver Debugger API
22
22
  #
23
23
  # Examines the call stack and variables of a running application without
24
24
  # stopping or slowing it down.
25
25
  #
26
- # @see https://cloud.google.com/tools/cloud-debugger
26
+ # @see http://cloud.google.com/debugger
27
27
  module ClouddebuggerV2
28
28
  VERSION = 'V2'
29
- REVISION = '20160309'
29
+ REVISION = '20160810'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
33
 
34
34
  # Manage cloud debugger
35
35
  AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
36
-
37
- # Manage active breakpoints in cloud debugger
38
- AUTH_CLOUD_DEBUGLETCONTROLLER = 'https://www.googleapis.com/auth/cloud_debugletcontroller'
39
36
  end
40
37
  end
41
38
  end