google-api-client 0.31.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/continuous/linux.cfg +11 -1
  3. data/.kokoro/continuous/osx.cfg +5 -0
  4. data/.kokoro/continuous/windows.cfg +10 -0
  5. data/.kokoro/presubmit/linux.cfg +11 -1
  6. data/.kokoro/presubmit/osx.cfg +5 -0
  7. data/.kokoro/presubmit/windows.cfg +10 -0
  8. data/CHANGELOG.md +107 -0
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -1
  11. data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
  12. data/generated/google/apis/bigquery_v2.rb +1 -1
  13. data/generated/google/apis/bigquery_v2/classes.rb +241 -0
  14. data/generated/google/apis/bigquery_v2/representations.rb +115 -0
  15. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  16. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +62 -29
  17. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  18. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
  19. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -26
  20. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  21. data/generated/google/apis/bigqueryreservation_v1/classes.rb +7 -7
  22. data/generated/google/apis/bigqueryreservation_v1/representations.rb +3 -3
  23. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  24. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -175
  25. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -65
  26. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -140
  27. data/generated/google/apis/bigqueryreservation_v1beta1.rb +37 -0
  28. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +497 -0
  29. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +236 -0
  30. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +713 -0
  31. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  32. data/generated/google/apis/binaryauthorization_v1/classes.rb +307 -0
  33. data/generated/google/apis/binaryauthorization_v1/representations.rb +88 -0
  34. data/generated/google/apis/binaryauthorization_v1/service.rb +230 -0
  35. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  36. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +62 -29
  37. data/generated/google/apis/blogger_v3.rb +1 -1
  38. data/generated/google/apis/blogger_v3/service.rb +6 -6
  39. data/generated/google/apis/calendar_v3.rb +1 -1
  40. data/generated/google/apis/calendar_v3/classes.rb +1 -0
  41. data/generated/google/apis/cloudasset_v1.rb +1 -1
  42. data/generated/google/apis/cloudasset_v1/classes.rb +72 -29
  43. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  44. data/generated/google/apis/cloudasset_v1/service.rb +1 -1
  45. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudasset_v1beta1/classes.rb +62 -29
  47. data/generated/google/apis/cloudasset_v1beta1/service.rb +2 -2
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -2
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +10 -7
  51. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
  53. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +7 -6
  54. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  55. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  56. data/generated/google/apis/cloudiot_v1.rb +1 -1
  57. data/generated/google/apis/cloudiot_v1/classes.rb +68 -35
  58. data/generated/google/apis/cloudiot_v1/service.rb +18 -17
  59. data/generated/google/apis/cloudkms_v1.rb +1 -1
  60. data/generated/google/apis/cloudkms_v1/classes.rb +77 -35
  61. data/generated/google/apis/cloudkms_v1/service.rb +33 -27
  62. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  63. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +62 -29
  64. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  65. data/generated/google/apis/cloudsearch_v1/classes.rb +354 -0
  66. data/generated/google/apis/cloudsearch_v1/representations.rb +196 -0
  67. data/generated/google/apis/cloudsearch_v1/service.rb +314 -2
  68. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  69. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +62 -29
  70. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  71. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  72. data/generated/google/apis/cloudtrace_v1/service.rb +10 -10
  73. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  74. data/generated/google/apis/cloudtrace_v2/classes.rb +3 -3
  75. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  76. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +7 -10
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +38 -42
  79. data/generated/google/apis/compute_alpha/representations.rb +5 -16
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +10 -5
  82. data/generated/google/apis/compute_v1.rb +1 -1
  83. data/generated/google/apis/compute_v1/classes.rb +1327 -4
  84. data/generated/google/apis/compute_v1/representations.rb +439 -0
  85. data/generated/google/apis/container_v1.rb +1 -1
  86. data/generated/google/apis/container_v1/classes.rb +111 -0
  87. data/generated/google/apis/container_v1/representations.rb +51 -0
  88. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  89. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +76 -30
  90. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  91. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  92. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +70 -30
  93. data/generated/google/apis/content_v2.rb +1 -1
  94. data/generated/google/apis/content_v2/service.rb +0 -226
  95. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  96. data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
  97. data/generated/google/apis/dataflow_v1b3/representations.rb +4 -0
  98. data/generated/google/apis/dataproc_v1.rb +1 -1
  99. data/generated/google/apis/dataproc_v1/classes.rb +324 -38
  100. data/generated/google/apis/dataproc_v1/representations.rb +97 -0
  101. data/generated/google/apis/dataproc_v1/service.rb +613 -1
  102. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  103. data/generated/google/apis/dataproc_v1beta2/classes.rb +100 -54
  104. data/generated/google/apis/dataproc_v1beta2/service.rb +29 -22
  105. data/generated/google/apis/dialogflow_v2.rb +1 -1
  106. data/generated/google/apis/dialogflow_v2/classes.rb +363 -167
  107. data/generated/google/apis/dialogflow_v2/representations.rb +160 -49
  108. data/generated/google/apis/dialogflow_v2/service.rb +1 -1
  109. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  110. data/generated/google/apis/dialogflow_v2beta1/classes.rb +433 -178
  111. data/generated/google/apis/dialogflow_v2beta1/representations.rb +199 -59
  112. data/generated/google/apis/dialogflow_v2beta1/service.rb +39 -0
  113. data/generated/google/apis/dlp_v2.rb +1 -1
  114. data/generated/google/apis/dlp_v2/classes.rb +3 -4
  115. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  116. data/generated/google/apis/drive_v2.rb +1 -1
  117. data/generated/google/apis/drive_v2/classes.rb +2 -2
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +2 -2
  120. data/generated/google/apis/fcm_v1.rb +1 -1
  121. data/generated/google/apis/fcm_v1/classes.rb +9 -4
  122. data/generated/google/apis/file_v1.rb +1 -1
  123. data/generated/google/apis/file_v1/classes.rb +8 -0
  124. data/generated/google/apis/file_v1/representations.rb +1 -0
  125. data/generated/google/apis/file_v1/service.rb +2 -0
  126. data/generated/google/apis/file_v1beta1.rb +1 -1
  127. data/generated/google/apis/file_v1beta1/classes.rb +8 -0
  128. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  129. data/generated/google/apis/file_v1beta1/service.rb +2 -0
  130. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  131. data/generated/google/apis/firebase_v1beta1/classes.rb +41 -4
  132. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
  133. data/generated/google/apis/firebase_v1beta1/service.rb +22 -14
  134. data/generated/google/apis/fitness_v1.rb +19 -19
  135. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  136. data/generated/google/apis/healthcare_v1beta1/classes.rb +136 -100
  137. data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
  138. data/generated/google/apis/healthcare_v1beta1/service.rb +124 -119
  139. data/generated/google/apis/iam_v1.rb +1 -1
  140. data/generated/google/apis/iam_v1/classes.rb +87 -41
  141. data/generated/google/apis/iap_v1.rb +1 -1
  142. data/generated/google/apis/iap_v1/classes.rb +62 -29
  143. data/generated/google/apis/iap_v1beta1.rb +1 -1
  144. data/generated/google/apis/iap_v1beta1/classes.rb +62 -29
  145. data/generated/google/apis/ml_v1.rb +1 -1
  146. data/generated/google/apis/ml_v1/classes.rb +114 -49
  147. data/generated/google/apis/ml_v1/representations.rb +2 -0
  148. data/generated/google/apis/ml_v1/service.rb +12 -6
  149. data/generated/google/apis/monitoring_v3.rb +1 -1
  150. data/generated/google/apis/monitoring_v3/classes.rb +14 -10
  151. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  152. data/generated/google/apis/oslogin_v1.rb +1 -1
  153. data/generated/google/apis/oslogin_v1/classes.rb +12 -0
  154. data/generated/google/apis/oslogin_v1/representations.rb +2 -0
  155. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  156. data/generated/google/apis/oslogin_v1alpha/classes.rb +12 -0
  157. data/generated/google/apis/oslogin_v1alpha/representations.rb +2 -0
  158. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  159. data/generated/google/apis/oslogin_v1beta/classes.rb +12 -0
  160. data/generated/google/apis/oslogin_v1beta/representations.rb +2 -0
  161. data/generated/google/apis/policytroubleshooter_v1beta.rb +34 -0
  162. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +621 -0
  163. data/generated/google/apis/policytroubleshooter_v1beta/representations.rb +203 -0
  164. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +91 -0
  165. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  166. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +7 -4
  167. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +60 -58
  168. data/generated/google/apis/recommender_v1beta1.rb +34 -0
  169. data/generated/google/apis/recommender_v1beta1/classes.rb +502 -0
  170. data/generated/google/apis/recommender_v1beta1/representations.rb +232 -0
  171. data/generated/google/apis/recommender_v1beta1/service.rb +262 -0
  172. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  173. data/generated/google/apis/remotebuildexecution_v1/classes.rb +49 -1100
  174. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -276
  175. data/generated/google/apis/remotebuildexecution_v1/service.rb +0 -77
  176. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  177. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +12 -990
  178. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -245
  179. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  180. data/generated/google/apis/remotebuildexecution_v2/classes.rb +12 -990
  181. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -245
  182. data/generated/google/apis/run_v1.rb +1 -1
  183. data/generated/google/apis/run_v1/classes.rb +3553 -33
  184. data/generated/google/apis/run_v1/representations.rb +1186 -4
  185. data/generated/google/apis/run_v1/service.rb +2509 -23
  186. data/generated/google/apis/run_v1alpha1.rb +1 -1
  187. data/generated/google/apis/run_v1alpha1/classes.rb +103 -140
  188. data/generated/google/apis/run_v1alpha1/representations.rb +5 -43
  189. data/generated/google/apis/run_v1beta1.rb +35 -0
  190. data/generated/google/apis/run_v1beta1/classes.rb +1209 -0
  191. data/generated/google/apis/run_v1beta1/representations.rb +421 -0
  192. data/generated/google/apis/run_v1beta1/service.rb +172 -0
  193. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  194. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +62 -29
  195. data/generated/google/apis/safebrowsing_v4.rb +5 -2
  196. data/generated/google/apis/safebrowsing_v4/service.rb +4 -1
  197. data/generated/google/apis/securitycenter_v1.rb +1 -1
  198. data/generated/google/apis/securitycenter_v1/classes.rb +70 -35
  199. data/generated/google/apis/securitycenter_v1/service.rb +13 -12
  200. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  201. data/generated/google/apis/securitycenter_v1beta1/classes.rb +71 -35
  202. data/generated/google/apis/securitycenter_v1beta1/service.rb +13 -12
  203. data/generated/google/apis/servicebroker_v1.rb +1 -1
  204. data/generated/google/apis/servicebroker_v1/classes.rb +62 -29
  205. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  206. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +62 -29
  207. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  208. data/generated/google/apis/servicebroker_v1beta1/classes.rb +62 -29
  209. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  210. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +11 -2
  211. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  212. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  213. data/generated/google/apis/servicemanagement_v1/classes.rb +63 -33
  214. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  215. data/generated/google/apis/servicenetworking_v1/classes.rb +11 -2
  216. data/generated/google/apis/servicenetworking_v1/representations.rb +1 -0
  217. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  218. data/generated/google/apis/servicenetworking_v1beta/classes.rb +11 -2
  219. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  220. data/generated/google/apis/serviceusage_v1.rb +1 -1
  221. data/generated/google/apis/serviceusage_v1/classes.rb +11 -2
  222. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  223. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  224. data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -2
  225. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  226. data/generated/google/apis/spanner_v1.rb +1 -1
  227. data/generated/google/apis/spanner_v1/classes.rb +78 -2
  228. data/generated/google/apis/spanner_v1/representations.rb +44 -0
  229. data/generated/google/apis/spanner_v1/service.rb +35 -0
  230. data/generated/google/apis/speech_v1.rb +1 -1
  231. data/generated/google/apis/speech_v1/classes.rb +73 -19
  232. data/generated/google/apis/speech_v1/representations.rb +18 -0
  233. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  234. data/generated/google/apis/speech_v1p1beta1/classes.rb +31 -35
  235. data/generated/google/apis/speech_v2beta.rb +1 -1
  236. data/generated/google/apis/speech_v2beta/classes.rb +6 -6
  237. data/generated/google/apis/speech_v2beta/representations.rb +2 -2
  238. data/generated/google/apis/storage_v1.rb +1 -1
  239. data/generated/google/apis/storage_v1/classes.rb +1 -1
  240. data/generated/google/apis/storage_v1/representations.rb +2 -1
  241. data/generated/google/apis/storage_v1beta1.rb +1 -1
  242. data/generated/google/apis/storage_v1beta2.rb +1 -1
  243. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  244. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  245. data/generated/google/apis/streetviewpublish_v1/service.rb +9 -5
  246. data/generated/google/apis/testing_v1.rb +1 -1
  247. data/generated/google/apis/testing_v1/classes.rb +42 -0
  248. data/generated/google/apis/testing_v1/representations.rb +18 -0
  249. data/generated/google/apis/texttospeech_v1.rb +1 -1
  250. data/generated/google/apis/texttospeech_v1/classes.rb +6 -5
  251. data/generated/google/apis/texttospeech_v1/service.rb +1 -1
  252. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  253. data/generated/google/apis/texttospeech_v1beta1/classes.rb +6 -5
  254. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  255. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  256. data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -1
  257. data/generated/google/apis/translate_v3beta1.rb +1 -1
  258. data/generated/google/apis/translate_v3beta1/classes.rb +22 -16
  259. data/generated/google/apis/translate_v3beta1/service.rb +31 -31
  260. data/generated/google/apis/videointelligence_v1.rb +1 -1
  261. data/generated/google/apis/videointelligence_v1/classes.rb +45 -10
  262. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  263. data/generated/google/apis/videointelligence_v1beta2/classes.rb +45 -10
  264. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  265. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +45 -10
  266. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  267. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +45 -10
  268. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  269. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +45 -10
  270. data/generated/google/apis/vision_v1.rb +1 -1
  271. data/generated/google/apis/vision_v1/classes.rb +6 -156
  272. data/generated/google/apis/vision_v1/representations.rb +0 -44
  273. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  274. data/generated/google/apis/vision_v1p1beta1/classes.rb +6 -156
  275. data/generated/google/apis/vision_v1p1beta1/representations.rb +0 -44
  276. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  277. data/generated/google/apis/vision_v1p2beta1/classes.rb +6 -156
  278. data/generated/google/apis/vision_v1p2beta1/representations.rb +0 -44
  279. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  280. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  281. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +21 -31
  282. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  283. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  284. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +30 -42
  285. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  286. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  287. data/generated/google/apis/youtube_partner_v1/classes.rb +0 -83
  288. data/generated/google/apis/youtube_partner_v1/representations.rb +0 -35
  289. data/generated/google/apis/youtube_partner_v1/service.rb +0 -100
  290. data/lib/google/apis/version.rb +1 -1
  291. metadata +18 -6
  292. data/generated/google/apis/dfareporting_v3_1.rb +0 -40
  293. data/generated/google/apis/dfareporting_v3_1/classes.rb +0 -11998
  294. data/generated/google/apis/dfareporting_v3_1/representations.rb +0 -4313
  295. data/generated/google/apis/dfareporting_v3_1/service.rb +0 -8688
@@ -0,0 +1,37 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/bigqueryreservation_v1beta1/service.rb'
16
+ require 'google/apis/bigqueryreservation_v1beta1/classes.rb'
17
+ require 'google/apis/bigqueryreservation_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # BigQuery Reservation API
22
+ #
23
+ # A service to modify your BigQuery flat-rate reservations.
24
+ #
25
+ # @see https://cloud.google.com/bigquery/
26
+ module BigqueryreservationV1beta1
27
+ VERSION = 'V1beta1'
28
+ REVISION = '20190920'
29
+
30
+ # View and manage your data in Google BigQuery
31
+ AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,497 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module BigqueryreservationV1beta1
24
+
25
+ # A Assignment allows a project to submit jobs
26
+ # of a certain type using slots from the specified reservation.
27
+ class Assignment
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The resource which will use the reservation. E.g.
31
+ # projects/myproject, folders/123, organizations/456.
32
+ # Corresponds to the JSON property `assignee`
33
+ # @return [String]
34
+ attr_accessor :assignee
35
+
36
+ # Which type of jobs will use the reservation.
37
+ # Corresponds to the JSON property `jobType`
38
+ # @return [String]
39
+ attr_accessor :job_type
40
+
41
+ # Output only. Name of the resource. E.g.:
42
+ # projects/myproject/locations/US/reservations/team1-prod/assignments/123.
43
+ # Corresponds to the JSON property `name`
44
+ # @return [String]
45
+ attr_accessor :name
46
+
47
+ def initialize(**args)
48
+ update!(**args)
49
+ end
50
+
51
+ # Update properties of this object
52
+ def update!(**args)
53
+ @assignee = args[:assignee] if args.key?(:assignee)
54
+ @job_type = args[:job_type] if args.key?(:job_type)
55
+ @name = args[:name] if args.key?(:name)
56
+ end
57
+ end
58
+
59
+ # Capacity commitment is a way to purchase compute capacity for BigQuery jobs
60
+ # (in the form of slots) with some minimum committed period of usage. Capacity
61
+ # commitment is immutable and cannot be deleted until the end of the commitment
62
+ # period. After the end of the commitment period, slots are still available but
63
+ # can be freely removed any time.
64
+ # A capacity commitment resource exists as a child resource of the admin
65
+ # project.
66
+ class CapacityCommitment
67
+ include Google::Apis::Core::Hashable
68
+
69
+ # Output only. The end of the commitment period. Capacity commitment cannot be
70
+ # removed before commitment_end_time. It is applicable only for ACTIVE
71
+ # capacity commitments and is computed as a combination of the plan and the
72
+ # time when the capacity commitment became ACTIVE.
73
+ # Corresponds to the JSON property `commitmentEndTime`
74
+ # @return [String]
75
+ attr_accessor :commitment_end_time
76
+
77
+ # Output only. The resource name of the capacity commitment, e.g.,
78
+ # projects/myproject/locations/US/capacityCommitments/123
79
+ # Corresponds to the JSON property `name`
80
+ # @return [String]
81
+ attr_accessor :name
82
+
83
+ # Capacity commitment commitment plan.
84
+ # Corresponds to the JSON property `plan`
85
+ # @return [String]
86
+ attr_accessor :plan
87
+
88
+ # Number of slots in this commitment.
89
+ # Corresponds to the JSON property `slotCount`
90
+ # @return [Fixnum]
91
+ attr_accessor :slot_count
92
+
93
+ # Output only. State of the commitment.
94
+ # Corresponds to the JSON property `state`
95
+ # @return [String]
96
+ attr_accessor :state
97
+
98
+ def initialize(**args)
99
+ update!(**args)
100
+ end
101
+
102
+ # Update properties of this object
103
+ def update!(**args)
104
+ @commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
105
+ @name = args[:name] if args.key?(:name)
106
+ @plan = args[:plan] if args.key?(:plan)
107
+ @slot_count = args[:slot_count] if args.key?(:slot_count)
108
+ @state = args[:state] if args.key?(:state)
109
+ end
110
+ end
111
+
112
+ # The metadata for operation returned from
113
+ # ReservationService.CreateCapacityCommitment.
114
+ class CreateCapacityCommitmentMetadata
115
+ include Google::Apis::Core::Hashable
116
+
117
+ # Resource name of the capacity commitment that is being created. E.g.,
118
+ # projects/myproject/locations/US/capacityCommitments/123
119
+ # Corresponds to the JSON property `capacityCommitment`
120
+ # @return [String]
121
+ attr_accessor :capacity_commitment
122
+
123
+ def initialize(**args)
124
+ update!(**args)
125
+ end
126
+
127
+ # Update properties of this object
128
+ def update!(**args)
129
+ @capacity_commitment = args[:capacity_commitment] if args.key?(:capacity_commitment)
130
+ end
131
+ end
132
+
133
+ # A generic empty message that you can re-use to avoid defining duplicated
134
+ # empty messages in your APIs. A typical example is to use it as the request
135
+ # or the response type of an API method. For instance:
136
+ # service Foo `
137
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
138
+ # `
139
+ # The JSON representation for `Empty` is empty JSON object ````.
140
+ class Empty
141
+ include Google::Apis::Core::Hashable
142
+
143
+ def initialize(**args)
144
+ update!(**args)
145
+ end
146
+
147
+ # Update properties of this object
148
+ def update!(**args)
149
+ end
150
+ end
151
+
152
+ # The response for ReservationService.ListAssignments.
153
+ class ListAssignmentsResponse
154
+ include Google::Apis::Core::Hashable
155
+
156
+ # List of assignments visible to the user.
157
+ # Corresponds to the JSON property `assignments`
158
+ # @return [Array<Google::Apis::BigqueryreservationV1beta1::Assignment>]
159
+ attr_accessor :assignments
160
+
161
+ # Token to retrieve the next page of results, or empty if there are no
162
+ # more results in the list.
163
+ # Corresponds to the JSON property `nextPageToken`
164
+ # @return [String]
165
+ attr_accessor :next_page_token
166
+
167
+ def initialize(**args)
168
+ update!(**args)
169
+ end
170
+
171
+ # Update properties of this object
172
+ def update!(**args)
173
+ @assignments = args[:assignments] if args.key?(:assignments)
174
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
175
+ end
176
+ end
177
+
178
+ # The response for ReservationService.ListCapacityCommitments.
179
+ class ListCapacityCommitmentsResponse
180
+ include Google::Apis::Core::Hashable
181
+
182
+ # List of capacity commitments visible to the user.
183
+ # Corresponds to the JSON property `capacityCommitments`
184
+ # @return [Array<Google::Apis::BigqueryreservationV1beta1::CapacityCommitment>]
185
+ attr_accessor :capacity_commitments
186
+
187
+ # Token to retrieve the next page of results, or empty if there are no
188
+ # more results in the list.
189
+ # Corresponds to the JSON property `nextPageToken`
190
+ # @return [String]
191
+ attr_accessor :next_page_token
192
+
193
+ def initialize(**args)
194
+ update!(**args)
195
+ end
196
+
197
+ # Update properties of this object
198
+ def update!(**args)
199
+ @capacity_commitments = args[:capacity_commitments] if args.key?(:capacity_commitments)
200
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
201
+ end
202
+ end
203
+
204
+ # The response message for Locations.ListLocations.
205
+ class ListLocationsResponse
206
+ include Google::Apis::Core::Hashable
207
+
208
+ # A list of locations that matches the specified filter in the request.
209
+ # Corresponds to the JSON property `locations`
210
+ # @return [Array<Google::Apis::BigqueryreservationV1beta1::Location>]
211
+ attr_accessor :locations
212
+
213
+ # The standard List next-page token.
214
+ # Corresponds to the JSON property `nextPageToken`
215
+ # @return [String]
216
+ attr_accessor :next_page_token
217
+
218
+ def initialize(**args)
219
+ update!(**args)
220
+ end
221
+
222
+ # Update properties of this object
223
+ def update!(**args)
224
+ @locations = args[:locations] if args.key?(:locations)
225
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
226
+ end
227
+ end
228
+
229
+ # The response for ReservationService.ListReservations.
230
+ class ListReservationsResponse
231
+ include Google::Apis::Core::Hashable
232
+
233
+ # Token to retrieve the next page of results, or empty if there are no
234
+ # more results in the list.
235
+ # Corresponds to the JSON property `nextPageToken`
236
+ # @return [String]
237
+ attr_accessor :next_page_token
238
+
239
+ # List of reservations visible to the user.
240
+ # Corresponds to the JSON property `reservations`
241
+ # @return [Array<Google::Apis::BigqueryreservationV1beta1::Reservation>]
242
+ attr_accessor :reservations
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
251
+ @reservations = args[:reservations] if args.key?(:reservations)
252
+ end
253
+ end
254
+
255
+ # A resource that represents Google Cloud Platform location.
256
+ class Location
257
+ include Google::Apis::Core::Hashable
258
+
259
+ # The friendly name for this location, typically a nearby city name.
260
+ # For example, "Tokyo".
261
+ # Corresponds to the JSON property `displayName`
262
+ # @return [String]
263
+ attr_accessor :display_name
264
+
265
+ # Cross-service attributes for the location. For example
266
+ # `"cloud.googleapis.com/region": "us-east1"`
267
+ # Corresponds to the JSON property `labels`
268
+ # @return [Hash<String,String>]
269
+ attr_accessor :labels
270
+
271
+ # The canonical id for this location. For example: `"us-east1"`.
272
+ # Corresponds to the JSON property `locationId`
273
+ # @return [String]
274
+ attr_accessor :location_id
275
+
276
+ # Service-specific metadata. For example the available capacity at the given
277
+ # location.
278
+ # Corresponds to the JSON property `metadata`
279
+ # @return [Hash<String,Object>]
280
+ attr_accessor :metadata
281
+
282
+ # Resource name for the location, which may vary between implementations.
283
+ # For example: `"projects/example-project/locations/us-east1"`
284
+ # Corresponds to the JSON property `name`
285
+ # @return [String]
286
+ attr_accessor :name
287
+
288
+ def initialize(**args)
289
+ update!(**args)
290
+ end
291
+
292
+ # Update properties of this object
293
+ def update!(**args)
294
+ @display_name = args[:display_name] if args.key?(:display_name)
295
+ @labels = args[:labels] if args.key?(:labels)
296
+ @location_id = args[:location_id] if args.key?(:location_id)
297
+ @metadata = args[:metadata] if args.key?(:metadata)
298
+ @name = args[:name] if args.key?(:name)
299
+ end
300
+ end
301
+
302
+ # BigQuery-specific metadata about a location. This will be set on
303
+ # google.cloud.location.Location.metadata in Cloud Location API
304
+ # responses.
305
+ class LocationMetadata
306
+ include Google::Apis::Core::Hashable
307
+
308
+ # The legacy BigQuery location ID, e.g. “EU” for the “europe” location.
309
+ # This is for any API consumers that need the legacy “US” and “EU” locations.
310
+ # Corresponds to the JSON property `legacyLocationId`
311
+ # @return [String]
312
+ attr_accessor :legacy_location_id
313
+
314
+ def initialize(**args)
315
+ update!(**args)
316
+ end
317
+
318
+ # Update properties of this object
319
+ def update!(**args)
320
+ @legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id)
321
+ end
322
+ end
323
+
324
+ # This resource represents a long-running operation that is the result of a
325
+ # network API call.
326
+ class Operation
327
+ include Google::Apis::Core::Hashable
328
+
329
+ # If the value is `false`, it means the operation is still in progress.
330
+ # If `true`, the operation is completed, and either `error` or `response` is
331
+ # available.
332
+ # Corresponds to the JSON property `done`
333
+ # @return [Boolean]
334
+ attr_accessor :done
335
+ alias_method :done?, :done
336
+
337
+ # The `Status` type defines a logical error model that is suitable for
338
+ # different programming environments, including REST APIs and RPC APIs. It is
339
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
340
+ # three pieces of data: error code, error message, and error details.
341
+ # You can find out more about this error model and how to work with it in the
342
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
343
+ # Corresponds to the JSON property `error`
344
+ # @return [Google::Apis::BigqueryreservationV1beta1::Status]
345
+ attr_accessor :error
346
+
347
+ # Service-specific metadata associated with the operation. It typically
348
+ # contains progress information and common metadata such as create time.
349
+ # Some services might not provide such metadata. Any method that returns a
350
+ # long-running operation should document the metadata type, if any.
351
+ # Corresponds to the JSON property `metadata`
352
+ # @return [Hash<String,Object>]
353
+ attr_accessor :metadata
354
+
355
+ # The server-assigned name, which is only unique within the same service that
356
+ # originally returns it. If you use the default HTTP mapping, the
357
+ # `name` should be a resource name ending with `operations/`unique_id``.
358
+ # Corresponds to the JSON property `name`
359
+ # @return [String]
360
+ attr_accessor :name
361
+
362
+ # The normal response of the operation in case of success. If the original
363
+ # method returns no data on success, such as `Delete`, the response is
364
+ # `google.protobuf.Empty`. If the original method is standard
365
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
366
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
367
+ # is the original method name. For example, if the original method name
368
+ # is `TakeSnapshot()`, the inferred response type is
369
+ # `TakeSnapshotResponse`.
370
+ # Corresponds to the JSON property `response`
371
+ # @return [Hash<String,Object>]
372
+ attr_accessor :response
373
+
374
+ def initialize(**args)
375
+ update!(**args)
376
+ end
377
+
378
+ # Update properties of this object
379
+ def update!(**args)
380
+ @done = args[:done] if args.key?(:done)
381
+ @error = args[:error] if args.key?(:error)
382
+ @metadata = args[:metadata] if args.key?(:metadata)
383
+ @name = args[:name] if args.key?(:name)
384
+ @response = args[:response] if args.key?(:response)
385
+ end
386
+ end
387
+
388
+ # A reservation is a mechanism used to guarantee slots to users.
389
+ class Reservation
390
+ include Google::Apis::Core::Hashable
391
+
392
+ # If true, any query using this reservation might be able to use the idle
393
+ # slots from other reservations within the same admin project. If false, a
394
+ # query using this reservation will execute with the maximum slot capacity as
395
+ # specified above. If not specified, default value is true.
396
+ # Corresponds to the JSON property `ignoreIdleSlots`
397
+ # @return [Boolean]
398
+ attr_accessor :ignore_idle_slots
399
+ alias_method :ignore_idle_slots?, :ignore_idle_slots
400
+
401
+ # The resource name of the reservation, e.g.,
402
+ # "projects/*/locations/*/reservations/team1-prod".
403
+ # Corresponds to the JSON property `name`
404
+ # @return [String]
405
+ attr_accessor :name
406
+
407
+ # Maximum slots available to this reservation. A slot is a unit of
408
+ # computational power in BigQuery, and serves as the unit of parallelism. In
409
+ # a scan of a multi-partitioned table, a single slot operates on a single
410
+ # partition of the table.
411
+ # If the new reservation's slot capacity exceed the parent's slot capacity or
412
+ # if total slot capacity of the new reservation and its siblings exceeds the
413
+ # parent's slot capacity, the request will fail with
414
+ # `google.rpc.Code.RESOURCE_EXHAUSTED`.
415
+ # Corresponds to the JSON property `slotCapacity`
416
+ # @return [Fixnum]
417
+ attr_accessor :slot_capacity
418
+
419
+ def initialize(**args)
420
+ update!(**args)
421
+ end
422
+
423
+ # Update properties of this object
424
+ def update!(**args)
425
+ @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
426
+ @name = args[:name] if args.key?(:name)
427
+ @slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
428
+ end
429
+ end
430
+
431
+ # The response for ReservationService.SearchAssignments.
432
+ class SearchAssignmentsResponse
433
+ include Google::Apis::Core::Hashable
434
+
435
+ # List of assignments visible to the user.
436
+ # Corresponds to the JSON property `assignments`
437
+ # @return [Array<Google::Apis::BigqueryreservationV1beta1::Assignment>]
438
+ attr_accessor :assignments
439
+
440
+ # Token to retrieve the next page of results, or empty if there are no
441
+ # more results in the list.
442
+ # Corresponds to the JSON property `nextPageToken`
443
+ # @return [String]
444
+ attr_accessor :next_page_token
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @assignments = args[:assignments] if args.key?(:assignments)
453
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
454
+ end
455
+ end
456
+
457
+ # The `Status` type defines a logical error model that is suitable for
458
+ # different programming environments, including REST APIs and RPC APIs. It is
459
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
460
+ # three pieces of data: error code, error message, and error details.
461
+ # You can find out more about this error model and how to work with it in the
462
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
463
+ class Status
464
+ include Google::Apis::Core::Hashable
465
+
466
+ # The status code, which should be an enum value of google.rpc.Code.
467
+ # Corresponds to the JSON property `code`
468
+ # @return [Fixnum]
469
+ attr_accessor :code
470
+
471
+ # A list of messages that carry the error details. There is a common set of
472
+ # message types for APIs to use.
473
+ # Corresponds to the JSON property `details`
474
+ # @return [Array<Hash<String,Object>>]
475
+ attr_accessor :details
476
+
477
+ # A developer-facing error message, which should be in English. Any
478
+ # user-facing error message should be localized and sent in the
479
+ # google.rpc.Status.details field, or localized by the client.
480
+ # Corresponds to the JSON property `message`
481
+ # @return [String]
482
+ attr_accessor :message
483
+
484
+ def initialize(**args)
485
+ update!(**args)
486
+ end
487
+
488
+ # Update properties of this object
489
+ def update!(**args)
490
+ @code = args[:code] if args.key?(:code)
491
+ @details = args[:details] if args.key?(:details)
492
+ @message = args[:message] if args.key?(:message)
493
+ end
494
+ end
495
+ end
496
+ end
497
+ end