google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -0,0 +1,343 @@
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 BigquerydatatransferV1
24
+
25
+ class CheckValidCredsRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CheckValidCredsResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class DataSource
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class DataSourceParameter
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Empty
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class IsEnabledRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class IsEnabledResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListDataSourcesResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListLocationsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListTransferConfigsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListTransferLogsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListTransferRunsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Location
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ScheduleTransferRunsRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ScheduleTransferRunsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class SetEnabledRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class TransferConfig
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class TransferMessage
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class TransferRun
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class CheckValidCredsRequest
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ end
143
+ end
144
+
145
+ class CheckValidCredsResponse
146
+ # @private
147
+ class Representation < Google::Apis::Core::JsonRepresentation
148
+ property :has_valid_creds, as: 'hasValidCreds'
149
+ end
150
+ end
151
+
152
+ class DataSource
153
+ # @private
154
+ class Representation < Google::Apis::Core::JsonRepresentation
155
+ property :authorization_type, as: 'authorizationType'
156
+ property :client_id, as: 'clientId'
157
+ property :data_refresh_type, as: 'dataRefreshType'
158
+ property :data_source_id, as: 'dataSourceId'
159
+ property :default_data_refresh_window_days, as: 'defaultDataRefreshWindowDays'
160
+ property :default_schedule, as: 'defaultSchedule'
161
+ property :description, as: 'description'
162
+ property :display_name, as: 'displayName'
163
+ property :help_url, as: 'helpUrl'
164
+ property :manual_runs_disabled, as: 'manualRunsDisabled'
165
+ property :name, as: 'name'
166
+ collection :parameters, as: 'parameters', class: Google::Apis::BigquerydatatransferV1::DataSourceParameter, decorator: Google::Apis::BigquerydatatransferV1::DataSourceParameter::Representation
167
+
168
+ collection :scopes, as: 'scopes'
169
+ property :status_update_deadline_seconds, as: 'statusUpdateDeadlineSeconds'
170
+ property :supports_custom_schedule, as: 'supportsCustomSchedule'
171
+ property :supports_multiple_transfers, as: 'supportsMultipleTransfers'
172
+ property :transfer_type, as: 'transferType'
173
+ end
174
+ end
175
+
176
+ class DataSourceParameter
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ collection :allowed_values, as: 'allowedValues'
180
+ property :description, as: 'description'
181
+ property :display_name, as: 'displayName'
182
+ collection :fields, as: 'fields', class: Google::Apis::BigquerydatatransferV1::DataSourceParameter, decorator: Google::Apis::BigquerydatatransferV1::DataSourceParameter::Representation
183
+
184
+ property :immutable, as: 'immutable'
185
+ property :max_value, as: 'maxValue'
186
+ property :min_value, as: 'minValue'
187
+ property :param_id, as: 'paramId'
188
+ property :recurse, as: 'recurse'
189
+ property :repeated, as: 'repeated'
190
+ property :required, as: 'required'
191
+ property :type, as: 'type'
192
+ property :validation_description, as: 'validationDescription'
193
+ property :validation_help_url, as: 'validationHelpUrl'
194
+ property :validation_regex, as: 'validationRegex'
195
+ end
196
+ end
197
+
198
+ class Empty
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ end
202
+ end
203
+
204
+ class IsEnabledRequest
205
+ # @private
206
+ class Representation < Google::Apis::Core::JsonRepresentation
207
+ end
208
+ end
209
+
210
+ class IsEnabledResponse
211
+ # @private
212
+ class Representation < Google::Apis::Core::JsonRepresentation
213
+ property :enabled, as: 'enabled'
214
+ end
215
+ end
216
+
217
+ class ListDataSourcesResponse
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ collection :data_sources, as: 'dataSources', class: Google::Apis::BigquerydatatransferV1::DataSource, decorator: Google::Apis::BigquerydatatransferV1::DataSource::Representation
221
+
222
+ property :next_page_token, as: 'nextPageToken'
223
+ end
224
+ end
225
+
226
+ class ListLocationsResponse
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ collection :locations, as: 'locations', class: Google::Apis::BigquerydatatransferV1::Location, decorator: Google::Apis::BigquerydatatransferV1::Location::Representation
230
+
231
+ property :next_page_token, as: 'nextPageToken'
232
+ end
233
+ end
234
+
235
+ class ListTransferConfigsResponse
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :next_page_token, as: 'nextPageToken'
239
+ collection :transfer_configs, as: 'transferConfigs', class: Google::Apis::BigquerydatatransferV1::TransferConfig, decorator: Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
240
+
241
+ end
242
+ end
243
+
244
+ class ListTransferLogsResponse
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :next_page_token, as: 'nextPageToken'
248
+ collection :transfer_messages, as: 'transferMessages', class: Google::Apis::BigquerydatatransferV1::TransferMessage, decorator: Google::Apis::BigquerydatatransferV1::TransferMessage::Representation
249
+
250
+ end
251
+ end
252
+
253
+ class ListTransferRunsResponse
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :next_page_token, as: 'nextPageToken'
257
+ collection :transfer_runs, as: 'transferRuns', class: Google::Apis::BigquerydatatransferV1::TransferRun, decorator: Google::Apis::BigquerydatatransferV1::TransferRun::Representation
258
+
259
+ end
260
+ end
261
+
262
+ class Location
263
+ # @private
264
+ class Representation < Google::Apis::Core::JsonRepresentation
265
+ hash :labels, as: 'labels'
266
+ property :location_id, as: 'locationId'
267
+ hash :metadata, as: 'metadata'
268
+ property :name, as: 'name'
269
+ end
270
+ end
271
+
272
+ class ScheduleTransferRunsRequest
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :range_end_time, as: 'rangeEndTime'
276
+ property :range_start_time, as: 'rangeStartTime'
277
+ end
278
+ end
279
+
280
+ class ScheduleTransferRunsResponse
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ collection :created_runs, as: 'createdRuns', class: Google::Apis::BigquerydatatransferV1::TransferRun, decorator: Google::Apis::BigquerydatatransferV1::TransferRun::Representation
284
+
285
+ end
286
+ end
287
+
288
+ class SetEnabledRequest
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ property :enabled, as: 'enabled'
292
+ end
293
+ end
294
+
295
+ class TransferConfig
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :data_refresh_window_days, as: 'dataRefreshWindowDays'
299
+ property :data_source_id, as: 'dataSourceId'
300
+ property :dataset_region, as: 'datasetRegion'
301
+ property :destination_dataset_id, as: 'destinationDatasetId'
302
+ property :disabled, as: 'disabled'
303
+ property :display_name, as: 'displayName'
304
+ property :name, as: 'name'
305
+ property :next_run_time, as: 'nextRunTime'
306
+ hash :params, as: 'params'
307
+ property :schedule, as: 'schedule'
308
+ property :status, as: 'status'
309
+ property :update_time, as: 'updateTime'
310
+ property :user_id, :numeric_string => true, as: 'userId'
311
+ end
312
+ end
313
+
314
+ class TransferMessage
315
+ # @private
316
+ class Representation < Google::Apis::Core::JsonRepresentation
317
+ property :message_text, as: 'messageText'
318
+ property :message_time, as: 'messageTime'
319
+ property :severity, as: 'severity'
320
+ end
321
+ end
322
+
323
+ class TransferRun
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :data_source_id, as: 'dataSourceId'
327
+ property :dataset_region, as: 'datasetRegion'
328
+ property :destination_dataset_id, as: 'destinationDatasetId'
329
+ property :end_time, as: 'endTime'
330
+ property :name, as: 'name'
331
+ hash :params, as: 'params'
332
+ property :run_time, as: 'runTime'
333
+ property :schedule, as: 'schedule'
334
+ property :schedule_time, as: 'scheduleTime'
335
+ property :start_time, as: 'startTime'
336
+ property :status, as: 'status'
337
+ property :update_time, as: 'updateTime'
338
+ property :user_id, :numeric_string => true, as: 'userId'
339
+ end
340
+ end
341
+ end
342
+ end
343
+ end
@@ -0,0 +1,1317 @@
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module BigquerydatatransferV1
23
+ # BigQuery Data Transfer Service API
24
+ #
25
+ # Transfers data from partner SaaS applications to Google BigQuery on a
26
+ # scheduled, managed basis.
27
+ #
28
+ # @example
29
+ # require 'google/apis/bigquerydatatransfer_v1'
30
+ #
31
+ # Bigquerydatatransfer = Google::Apis::BigquerydatatransferV1 # Alias the module
32
+ # service = Bigquerydatatransfer::BigQueryDataTransferService.new
33
+ #
34
+ # @see https://cloud.google.com/bigquery/
35
+ class BigQueryDataTransferService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://bigquerydatatransfer.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Returns true if data transfer is enabled for a project.
52
+ # @param [String] name
53
+ # The name of the project resource in the form:
54
+ # `projects/`project_id``
55
+ # @param [Google::Apis::BigquerydatatransferV1::IsEnabledRequest] is_enabled_request_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::IsEnabledResponse] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::BigquerydatatransferV1::IsEnabledResponse]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def is_project_enabled(name, is_enabled_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/{+name}:isEnabled', options)
75
+ command.request_representation = Google::Apis::BigquerydatatransferV1::IsEnabledRequest::Representation
76
+ command.request_object = is_enabled_request_object
77
+ command.response_representation = Google::Apis::BigquerydatatransferV1::IsEnabledResponse::Representation
78
+ command.response_class = Google::Apis::BigquerydatatransferV1::IsEnabledResponse
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Enables or disables data transfer for a project. This
86
+ # method requires the additional scope of
87
+ # 'https://www.googleapis.com/auth/cloudplatformprojects'
88
+ # to manage the cloud project permissions.
89
+ # @param [String] name
90
+ # The name of the project resource in the form:
91
+ # `projects/`project_id``
92
+ # @param [Google::Apis::BigquerydatatransferV1::SetEnabledRequest] set_enabled_request_object
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def set_project_enabled(name, set_enabled_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:post, 'v1/{+name}:setEnabled', options)
112
+ command.request_representation = Google::Apis::BigquerydatatransferV1::SetEnabledRequest::Representation
113
+ command.request_object = set_enabled_request_object
114
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
115
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
122
+ # Returns true if valid credentials exist for the given data source and
123
+ # requesting user.
124
+ # @param [String] name
125
+ # The data source in the form:
126
+ # `projects/`project_id`/dataSources/`data_source_id``
127
+ # @param [Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest] check_valid_creds_request_object
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
130
+ # @param [String] quota_user
131
+ # Available to use for quota purposes for server-side applications. Can be any
132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def check_project_data_source_valid_creds(name, check_valid_creds_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:post, 'v1/{+name}:checkValidCreds', options)
147
+ command.request_representation = Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest::Representation
148
+ command.request_object = check_valid_creds_request_object
149
+ command.response_representation = Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse::Representation
150
+ command.response_class = Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse
151
+ command.params['name'] = name unless name.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # Retrieves a supported data source and returns its settings,
158
+ # which can be used for UI rendering.
159
+ # @param [String] name
160
+ # The field will contain name of the resource requested, for example:
161
+ # `projects/`project_id`/dataSources/`data_source_id``
162
+ # @param [String] fields
163
+ # Selector specifying which fields to include in a partial response.
164
+ # @param [String] quota_user
165
+ # Available to use for quota purposes for server-side applications. Can be any
166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [Google::Apis::RequestOptions] options
168
+ # Request-specific options
169
+ #
170
+ # @yield [result, err] Result & error if block supplied
171
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::DataSource] parsed result object
172
+ # @yieldparam err [StandardError] error object if request failed
173
+ #
174
+ # @return [Google::Apis::BigquerydatatransferV1::DataSource]
175
+ #
176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
179
+ def get_project_data_source(name, fields: nil, quota_user: nil, options: nil, &block)
180
+ command = make_simple_command(:get, 'v1/{+name}', options)
181
+ command.response_representation = Google::Apis::BigquerydatatransferV1::DataSource::Representation
182
+ command.response_class = Google::Apis::BigquerydatatransferV1::DataSource
183
+ command.params['name'] = name unless name.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
186
+ execute_or_queue_command(command, &block)
187
+ end
188
+
189
+ # Lists supported data sources and returns their settings,
190
+ # which can be used for UI rendering.
191
+ # @param [String] parent
192
+ # The BigQuery project id for which data sources should be returned.
193
+ # Must be in the form: `projects/`project_id``
194
+ # @param [Fixnum] page_size
195
+ # Page size. The default page size is the maximum value of 1000 results.
196
+ # @param [String] page_token
197
+ # Pagination token, which can be used to request a specific page
198
+ # of `ListDataSourcesRequest` list results. For multiple-page
199
+ # results, `ListDataSourcesResponse` outputs
200
+ # a `next_page` token, which can be used as the
201
+ # `page_token` value to request the next page of list results.
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
204
+ # @param [String] quota_user
205
+ # Available to use for quota purposes for server-side applications. Can be any
206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
207
+ # @param [Google::Apis::RequestOptions] options
208
+ # Request-specific options
209
+ #
210
+ # @yield [result, err] Result & error if block supplied
211
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse]
215
+ #
216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
219
+ def list_project_data_sources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
220
+ command = make_simple_command(:get, 'v1/{+parent}/dataSources', options)
221
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse::Representation
222
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse
223
+ command.params['parent'] = parent unless parent.nil?
224
+ command.query['pageSize'] = page_size unless page_size.nil?
225
+ command.query['pageToken'] = page_token unless page_token.nil?
226
+ command.query['fields'] = fields unless fields.nil?
227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
228
+ execute_or_queue_command(command, &block)
229
+ end
230
+
231
+ # Get information about a location.
232
+ # @param [String] name
233
+ # Resource name for the location.
234
+ # @param [String] fields
235
+ # Selector specifying which fields to include in a partial response.
236
+ # @param [String] quota_user
237
+ # Available to use for quota purposes for server-side applications. Can be any
238
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
239
+ # @param [Google::Apis::RequestOptions] options
240
+ # Request-specific options
241
+ #
242
+ # @yield [result, err] Result & error if block supplied
243
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Location] parsed result object
244
+ # @yieldparam err [StandardError] error object if request failed
245
+ #
246
+ # @return [Google::Apis::BigquerydatatransferV1::Location]
247
+ #
248
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
249
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
250
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
251
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
252
+ command = make_simple_command(:get, 'v1/{+name}', options)
253
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Location::Representation
254
+ command.response_class = Google::Apis::BigquerydatatransferV1::Location
255
+ command.params['name'] = name unless name.nil?
256
+ command.query['fields'] = fields unless fields.nil?
257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
258
+ execute_or_queue_command(command, &block)
259
+ end
260
+
261
+ # Returns true if data transfer is enabled for a project.
262
+ # @param [String] name
263
+ # The name of the project resource in the form:
264
+ # `projects/`project_id``
265
+ # @param [Google::Apis::BigquerydatatransferV1::IsEnabledRequest] is_enabled_request_object
266
+ # @param [String] fields
267
+ # Selector specifying which fields to include in a partial response.
268
+ # @param [String] quota_user
269
+ # Available to use for quota purposes for server-side applications. Can be any
270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
271
+ # @param [Google::Apis::RequestOptions] options
272
+ # Request-specific options
273
+ #
274
+ # @yield [result, err] Result & error if block supplied
275
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::IsEnabledResponse] parsed result object
276
+ # @yieldparam err [StandardError] error object if request failed
277
+ #
278
+ # @return [Google::Apis::BigquerydatatransferV1::IsEnabledResponse]
279
+ #
280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
283
+ def is_location_enabled(name, is_enabled_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
284
+ command = make_simple_command(:post, 'v1/{+name}:isEnabled', options)
285
+ command.request_representation = Google::Apis::BigquerydatatransferV1::IsEnabledRequest::Representation
286
+ command.request_object = is_enabled_request_object
287
+ command.response_representation = Google::Apis::BigquerydatatransferV1::IsEnabledResponse::Representation
288
+ command.response_class = Google::Apis::BigquerydatatransferV1::IsEnabledResponse
289
+ command.params['name'] = name unless name.nil?
290
+ command.query['fields'] = fields unless fields.nil?
291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
292
+ execute_or_queue_command(command, &block)
293
+ end
294
+
295
+ # Lists information about the supported locations for this service.
296
+ # @param [String] name
297
+ # The resource that owns the locations collection, if applicable.
298
+ # @param [String] filter
299
+ # The standard list filter.
300
+ # @param [Fixnum] page_size
301
+ # The standard list page size.
302
+ # @param [String] page_token
303
+ # The standard list page token.
304
+ # @param [String] fields
305
+ # Selector specifying which fields to include in a partial response.
306
+ # @param [String] quota_user
307
+ # Available to use for quota purposes for server-side applications. Can be any
308
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
309
+ # @param [Google::Apis::RequestOptions] options
310
+ # Request-specific options
311
+ #
312
+ # @yield [result, err] Result & error if block supplied
313
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListLocationsResponse] parsed result object
314
+ # @yieldparam err [StandardError] error object if request failed
315
+ #
316
+ # @return [Google::Apis::BigquerydatatransferV1::ListLocationsResponse]
317
+ #
318
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
319
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
320
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
321
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
322
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
323
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListLocationsResponse::Representation
324
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListLocationsResponse
325
+ command.params['name'] = name unless name.nil?
326
+ command.query['filter'] = filter unless filter.nil?
327
+ command.query['pageSize'] = page_size unless page_size.nil?
328
+ command.query['pageToken'] = page_token unless page_token.nil?
329
+ command.query['fields'] = fields unless fields.nil?
330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
331
+ execute_or_queue_command(command, &block)
332
+ end
333
+
334
+ # Enables or disables data transfer for a project. This
335
+ # method requires the additional scope of
336
+ # 'https://www.googleapis.com/auth/cloudplatformprojects'
337
+ # to manage the cloud project permissions.
338
+ # @param [String] name
339
+ # The name of the project resource in the form:
340
+ # `projects/`project_id``
341
+ # @param [Google::Apis::BigquerydatatransferV1::SetEnabledRequest] set_enabled_request_object
342
+ # @param [String] fields
343
+ # Selector specifying which fields to include in a partial response.
344
+ # @param [String] quota_user
345
+ # Available to use for quota purposes for server-side applications. Can be any
346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
347
+ # @param [Google::Apis::RequestOptions] options
348
+ # Request-specific options
349
+ #
350
+ # @yield [result, err] Result & error if block supplied
351
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
352
+ # @yieldparam err [StandardError] error object if request failed
353
+ #
354
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
355
+ #
356
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
359
+ def set_location_enabled(name, set_enabled_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
360
+ command = make_simple_command(:post, 'v1/{+name}:setEnabled', options)
361
+ command.request_representation = Google::Apis::BigquerydatatransferV1::SetEnabledRequest::Representation
362
+ command.request_object = set_enabled_request_object
363
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
364
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
365
+ command.params['name'] = name unless name.nil?
366
+ command.query['fields'] = fields unless fields.nil?
367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
368
+ execute_or_queue_command(command, &block)
369
+ end
370
+
371
+ # Returns true if valid credentials exist for the given data source and
372
+ # requesting user.
373
+ # @param [String] name
374
+ # The data source in the form:
375
+ # `projects/`project_id`/dataSources/`data_source_id``
376
+ # @param [Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest] check_valid_creds_request_object
377
+ # @param [String] fields
378
+ # Selector specifying which fields to include in a partial response.
379
+ # @param [String] quota_user
380
+ # Available to use for quota purposes for server-side applications. Can be any
381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
382
+ # @param [Google::Apis::RequestOptions] options
383
+ # Request-specific options
384
+ #
385
+ # @yield [result, err] Result & error if block supplied
386
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse] parsed result object
387
+ # @yieldparam err [StandardError] error object if request failed
388
+ #
389
+ # @return [Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse]
390
+ #
391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
394
+ def check_project_location_data_source_valid_creds(name, check_valid_creds_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
395
+ command = make_simple_command(:post, 'v1/{+name}:checkValidCreds', options)
396
+ command.request_representation = Google::Apis::BigquerydatatransferV1::CheckValidCredsRequest::Representation
397
+ command.request_object = check_valid_creds_request_object
398
+ command.response_representation = Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse::Representation
399
+ command.response_class = Google::Apis::BigquerydatatransferV1::CheckValidCredsResponse
400
+ command.params['name'] = name unless name.nil?
401
+ command.query['fields'] = fields unless fields.nil?
402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
403
+ execute_or_queue_command(command, &block)
404
+ end
405
+
406
+ # Retrieves a supported data source and returns its settings,
407
+ # which can be used for UI rendering.
408
+ # @param [String] name
409
+ # The field will contain name of the resource requested, for example:
410
+ # `projects/`project_id`/dataSources/`data_source_id``
411
+ # @param [String] fields
412
+ # Selector specifying which fields to include in a partial response.
413
+ # @param [String] quota_user
414
+ # Available to use for quota purposes for server-side applications. Can be any
415
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
416
+ # @param [Google::Apis::RequestOptions] options
417
+ # Request-specific options
418
+ #
419
+ # @yield [result, err] Result & error if block supplied
420
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::DataSource] parsed result object
421
+ # @yieldparam err [StandardError] error object if request failed
422
+ #
423
+ # @return [Google::Apis::BigquerydatatransferV1::DataSource]
424
+ #
425
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
426
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
427
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
428
+ def get_project_location_data_source(name, fields: nil, quota_user: nil, options: nil, &block)
429
+ command = make_simple_command(:get, 'v1/{+name}', options)
430
+ command.response_representation = Google::Apis::BigquerydatatransferV1::DataSource::Representation
431
+ command.response_class = Google::Apis::BigquerydatatransferV1::DataSource
432
+ command.params['name'] = name unless name.nil?
433
+ command.query['fields'] = fields unless fields.nil?
434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
435
+ execute_or_queue_command(command, &block)
436
+ end
437
+
438
+ # Lists supported data sources and returns their settings,
439
+ # which can be used for UI rendering.
440
+ # @param [String] parent
441
+ # The BigQuery project id for which data sources should be returned.
442
+ # Must be in the form: `projects/`project_id``
443
+ # @param [Fixnum] page_size
444
+ # Page size. The default page size is the maximum value of 1000 results.
445
+ # @param [String] page_token
446
+ # Pagination token, which can be used to request a specific page
447
+ # of `ListDataSourcesRequest` list results. For multiple-page
448
+ # results, `ListDataSourcesResponse` outputs
449
+ # a `next_page` token, which can be used as the
450
+ # `page_token` value to request the next page of list results.
451
+ # @param [String] fields
452
+ # Selector specifying which fields to include in a partial response.
453
+ # @param [String] quota_user
454
+ # Available to use for quota purposes for server-side applications. Can be any
455
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
456
+ # @param [Google::Apis::RequestOptions] options
457
+ # Request-specific options
458
+ #
459
+ # @yield [result, err] Result & error if block supplied
460
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse] parsed result object
461
+ # @yieldparam err [StandardError] error object if request failed
462
+ #
463
+ # @return [Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse]
464
+ #
465
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
466
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
467
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
468
+ def list_project_location_data_sources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
469
+ command = make_simple_command(:get, 'v1/{+parent}/dataSources', options)
470
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse::Representation
471
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListDataSourcesResponse
472
+ command.params['parent'] = parent unless parent.nil?
473
+ command.query['pageSize'] = page_size unless page_size.nil?
474
+ command.query['pageToken'] = page_token unless page_token.nil?
475
+ command.query['fields'] = fields unless fields.nil?
476
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
477
+ execute_or_queue_command(command, &block)
478
+ end
479
+
480
+ # Creates a new data transfer configuration.
481
+ # @param [String] parent
482
+ # The BigQuery project id where the transfer configuration should be created.
483
+ # Must be in the format /projects/`project_id`/locations/`location_id`
484
+ # or
485
+ # /projects/`project_id`/locations/-
486
+ # In case when '-' is specified as location_id, location is infered from
487
+ # the destination dataset region.
488
+ # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object
489
+ # @param [String] authorization_code
490
+ # Optional OAuth2 authorization code to use with this transfer configuration.
491
+ # This is required if new credentials are needed, as indicated by
492
+ # `CheckValidCreds`.
493
+ # In order to obtain authorization_code, please make a
494
+ # request to
495
+ # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
496
+ # datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
497
+ # * client_id should be OAuth client_id of BigQuery DTS API for the given
498
+ # data source returned by ListDataSources method.
499
+ # * data_source_scopes are the scopes returned by ListDataSources method.
500
+ # * redirect_uri is an optional parameter. If not specified, then
501
+ # authorization code is posted to the opener of authorization flow window.
502
+ # Otherwise it will be sent to the redirect uri. A special value of
503
+ # urn:ietf:wg:oauth:2.0:oob means that authorization code should be
504
+ # returned in the title bar of the browser, with the page text prompting
505
+ # the user to copy the code and paste it in the application.
506
+ # @param [String] fields
507
+ # Selector specifying which fields to include in a partial response.
508
+ # @param [String] quota_user
509
+ # Available to use for quota purposes for server-side applications. Can be any
510
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
511
+ # @param [Google::Apis::RequestOptions] options
512
+ # Request-specific options
513
+ #
514
+ # @yield [result, err] Result & error if block supplied
515
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferConfig] parsed result object
516
+ # @yieldparam err [StandardError] error object if request failed
517
+ #
518
+ # @return [Google::Apis::BigquerydatatransferV1::TransferConfig]
519
+ #
520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
523
+ def create_project_location_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, fields: nil, quota_user: nil, options: nil, &block)
524
+ command = make_simple_command(:post, 'v1/{+parent}/transferConfigs', options)
525
+ command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
526
+ command.request_object = transfer_config_object
527
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
528
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
529
+ command.params['parent'] = parent unless parent.nil?
530
+ command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
531
+ command.query['fields'] = fields unless fields.nil?
532
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
533
+ execute_or_queue_command(command, &block)
534
+ end
535
+
536
+ # Deletes a data transfer configuration,
537
+ # including any associated transfer runs and logs.
538
+ # @param [String] name
539
+ # The field will contain name of the resource requested, for example:
540
+ # `projects/`project_id`/transferConfigs/`config_id``
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
543
+ # @param [String] quota_user
544
+ # Available to use for quota purposes for server-side applications. Can be any
545
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
546
+ # @param [Google::Apis::RequestOptions] options
547
+ # Request-specific options
548
+ #
549
+ # @yield [result, err] Result & error if block supplied
550
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
551
+ # @yieldparam err [StandardError] error object if request failed
552
+ #
553
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
554
+ #
555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
558
+ def delete_project_location_transfer_config(name, fields: nil, quota_user: nil, options: nil, &block)
559
+ command = make_simple_command(:delete, 'v1/{+name}', options)
560
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
561
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
562
+ command.params['name'] = name unless name.nil?
563
+ command.query['fields'] = fields unless fields.nil?
564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
+ execute_or_queue_command(command, &block)
566
+ end
567
+
568
+ # Returns information about a data transfer config.
569
+ # @param [String] name
570
+ # The field will contain name of the resource requested, for example:
571
+ # `projects/`project_id`/transferConfigs/`config_id``
572
+ # @param [String] fields
573
+ # Selector specifying which fields to include in a partial response.
574
+ # @param [String] quota_user
575
+ # Available to use for quota purposes for server-side applications. Can be any
576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
577
+ # @param [Google::Apis::RequestOptions] options
578
+ # Request-specific options
579
+ #
580
+ # @yield [result, err] Result & error if block supplied
581
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferConfig] parsed result object
582
+ # @yieldparam err [StandardError] error object if request failed
583
+ #
584
+ # @return [Google::Apis::BigquerydatatransferV1::TransferConfig]
585
+ #
586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
589
+ def get_project_location_transfer_config(name, fields: nil, quota_user: nil, options: nil, &block)
590
+ command = make_simple_command(:get, 'v1/{+name}', options)
591
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
592
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
593
+ command.params['name'] = name unless name.nil?
594
+ command.query['fields'] = fields unless fields.nil?
595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ execute_or_queue_command(command, &block)
597
+ end
598
+
599
+ # Returns information about all data transfers in the project.
600
+ # @param [String] parent
601
+ # The BigQuery project id for which data sources
602
+ # should be returned: `projects/`project_id``.
603
+ # @param [Array<String>, String] data_source_ids
604
+ # When specified, only configurations of requested data sources are returned.
605
+ # @param [Fixnum] page_size
606
+ # Page size. The default page size is the maximum value of 1000 results.
607
+ # @param [String] page_token
608
+ # Pagination token, which can be used to request a specific page
609
+ # of `ListTransfersRequest` list results. For multiple-page
610
+ # results, `ListTransfersResponse` outputs
611
+ # a `next_page` token, which can be used as the
612
+ # `page_token` value to request the next page of list results.
613
+ # @param [String] fields
614
+ # Selector specifying which fields to include in a partial response.
615
+ # @param [String] quota_user
616
+ # Available to use for quota purposes for server-side applications. Can be any
617
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
618
+ # @param [Google::Apis::RequestOptions] options
619
+ # Request-specific options
620
+ #
621
+ # @yield [result, err] Result & error if block supplied
622
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse] parsed result object
623
+ # @yieldparam err [StandardError] error object if request failed
624
+ #
625
+ # @return [Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse]
626
+ #
627
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
628
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
629
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
630
+ def list_project_location_transfer_configs(parent, data_source_ids: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
631
+ command = make_simple_command(:get, 'v1/{+parent}/transferConfigs', options)
632
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse::Representation
633
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse
634
+ command.params['parent'] = parent unless parent.nil?
635
+ command.query['dataSourceIds'] = data_source_ids unless data_source_ids.nil?
636
+ command.query['pageSize'] = page_size unless page_size.nil?
637
+ command.query['pageToken'] = page_token unless page_token.nil?
638
+ command.query['fields'] = fields unless fields.nil?
639
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
640
+ execute_or_queue_command(command, &block)
641
+ end
642
+
643
+ # Updates a data transfer configuration.
644
+ # All fields must be set, even if they are not updated.
645
+ # @param [String] name
646
+ # The resource name of the transfer run.
647
+ # Transfer run names have the form
648
+ # `projects/`project_id`/transferConfigs/`config_id``.
649
+ # Where `config_id` is usually a uuid, even though it is not
650
+ # guaranteed or required. The name is ignored when creating a transfer run.
651
+ # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object
652
+ # @param [String] authorization_code
653
+ # Optional OAuth2 authorization code to use with this transfer configuration.
654
+ # If it is provided, the transfer configuration will be associated with the
655
+ # gaia id of the authorizing user.
656
+ # In order to obtain authorization_code, please make a
657
+ # request to
658
+ # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
659
+ # datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
660
+ # * client_id should be OAuth client_id of BigQuery DTS API for the given
661
+ # data source returned by ListDataSources method.
662
+ # * data_source_scopes are the scopes returned by ListDataSources method.
663
+ # * redirect_uri is an optional parameter. If not specified, then
664
+ # authorization code is posted to the opener of authorization flow window.
665
+ # Otherwise it will be sent to the redirect uri. A special value of
666
+ # urn:ietf:wg:oauth:2.0:oob means that authorization code should be
667
+ # returned in the title bar of the browser, with the page text prompting
668
+ # the user to copy the code and paste it in the application.
669
+ # @param [String] update_mask
670
+ # Required list of fields to be updated in this request.
671
+ # @param [String] fields
672
+ # Selector specifying which fields to include in a partial response.
673
+ # @param [String] quota_user
674
+ # Available to use for quota purposes for server-side applications. Can be any
675
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
676
+ # @param [Google::Apis::RequestOptions] options
677
+ # Request-specific options
678
+ #
679
+ # @yield [result, err] Result & error if block supplied
680
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferConfig] parsed result object
681
+ # @yieldparam err [StandardError] error object if request failed
682
+ #
683
+ # @return [Google::Apis::BigquerydatatransferV1::TransferConfig]
684
+ #
685
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
686
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
687
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
688
+ def patch_project_location_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
689
+ command = make_simple_command(:patch, 'v1/{+name}', options)
690
+ command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
691
+ command.request_object = transfer_config_object
692
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
693
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
694
+ command.params['name'] = name unless name.nil?
695
+ command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
696
+ command.query['updateMask'] = update_mask unless update_mask.nil?
697
+ command.query['fields'] = fields unless fields.nil?
698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
699
+ execute_or_queue_command(command, &block)
700
+ end
701
+
702
+ # Creates transfer runs for a time range [range_start_time, range_end_time].
703
+ # For each date - or whatever granularity the data source supports - in the
704
+ # range, one transfer run is created.
705
+ # Note that runs are created per UTC time in the time range.
706
+ # @param [String] parent
707
+ # Transfer configuration name in the form:
708
+ # `projects/`project_id`/transferConfigs/`config_id``.
709
+ # @param [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest] schedule_transfer_runs_request_object
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
712
+ # @param [String] quota_user
713
+ # Available to use for quota purposes for server-side applications. Can be any
714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
715
+ # @param [Google::Apis::RequestOptions] options
716
+ # Request-specific options
717
+ #
718
+ # @yield [result, err] Result & error if block supplied
719
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse] parsed result object
720
+ # @yieldparam err [StandardError] error object if request failed
721
+ #
722
+ # @return [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse]
723
+ #
724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
727
+ def schedule_project_location_transfer_config_runs(parent, schedule_transfer_runs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
728
+ command = make_simple_command(:post, 'v1/{+parent}:scheduleRuns', options)
729
+ command.request_representation = Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest::Representation
730
+ command.request_object = schedule_transfer_runs_request_object
731
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse::Representation
732
+ command.response_class = Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse
733
+ command.params['parent'] = parent unless parent.nil?
734
+ command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ execute_or_queue_command(command, &block)
737
+ end
738
+
739
+ # Deletes the specified transfer run.
740
+ # @param [String] name
741
+ # The field will contain name of the resource requested, for example:
742
+ # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
743
+ # @param [String] fields
744
+ # Selector specifying which fields to include in a partial response.
745
+ # @param [String] quota_user
746
+ # Available to use for quota purposes for server-side applications. Can be any
747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
748
+ # @param [Google::Apis::RequestOptions] options
749
+ # Request-specific options
750
+ #
751
+ # @yield [result, err] Result & error if block supplied
752
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
753
+ # @yieldparam err [StandardError] error object if request failed
754
+ #
755
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
756
+ #
757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
760
+ def delete_project_location_transfer_config_run(name, fields: nil, quota_user: nil, options: nil, &block)
761
+ command = make_simple_command(:delete, 'v1/{+name}', options)
762
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
763
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
764
+ command.params['name'] = name unless name.nil?
765
+ command.query['fields'] = fields unless fields.nil?
766
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
767
+ execute_or_queue_command(command, &block)
768
+ end
769
+
770
+ # Returns information about the particular transfer run.
771
+ # @param [String] name
772
+ # The field will contain name of the resource requested, for example:
773
+ # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
774
+ # @param [String] fields
775
+ # Selector specifying which fields to include in a partial response.
776
+ # @param [String] quota_user
777
+ # Available to use for quota purposes for server-side applications. Can be any
778
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
779
+ # @param [Google::Apis::RequestOptions] options
780
+ # Request-specific options
781
+ #
782
+ # @yield [result, err] Result & error if block supplied
783
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferRun] parsed result object
784
+ # @yieldparam err [StandardError] error object if request failed
785
+ #
786
+ # @return [Google::Apis::BigquerydatatransferV1::TransferRun]
787
+ #
788
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
789
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
790
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
791
+ def get_project_location_transfer_config_run(name, fields: nil, quota_user: nil, options: nil, &block)
792
+ command = make_simple_command(:get, 'v1/{+name}', options)
793
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferRun::Representation
794
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferRun
795
+ command.params['name'] = name unless name.nil?
796
+ command.query['fields'] = fields unless fields.nil?
797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
801
+ # Returns information about running and completed jobs.
802
+ # @param [String] parent
803
+ # Name of transfer configuration for which transfer runs should be retrieved.
804
+ # Format of transfer configuration resource name is:
805
+ # `projects/`project_id`/transferConfigs/`config_id``.
806
+ # @param [Fixnum] page_size
807
+ # Page size. The default page size is the maximum value of 1000 results.
808
+ # @param [String] page_token
809
+ # Pagination token, which can be used to request a specific page
810
+ # of `ListTransferRunsRequest` list results. For multiple-page
811
+ # results, `ListTransferRunsResponse` outputs
812
+ # a `next_page` token, which can be used as the
813
+ # `page_token` value to request the next page of list results.
814
+ # @param [String] run_attempt
815
+ # Indicates how run attempts are to be pulled.
816
+ # @param [Array<String>, String] statuses
817
+ # When specified, only transfer runs with requested statuses are returned.
818
+ # @param [String] fields
819
+ # Selector specifying which fields to include in a partial response.
820
+ # @param [String] quota_user
821
+ # Available to use for quota purposes for server-side applications. Can be any
822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
823
+ # @param [Google::Apis::RequestOptions] options
824
+ # Request-specific options
825
+ #
826
+ # @yield [result, err] Result & error if block supplied
827
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse] parsed result object
828
+ # @yieldparam err [StandardError] error object if request failed
829
+ #
830
+ # @return [Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse]
831
+ #
832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
835
+ def list_project_location_transfer_config_runs(parent, page_size: nil, page_token: nil, run_attempt: nil, statuses: nil, fields: nil, quota_user: nil, options: nil, &block)
836
+ command = make_simple_command(:get, 'v1/{+parent}/runs', options)
837
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse::Representation
838
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse
839
+ command.params['parent'] = parent unless parent.nil?
840
+ command.query['pageSize'] = page_size unless page_size.nil?
841
+ command.query['pageToken'] = page_token unless page_token.nil?
842
+ command.query['runAttempt'] = run_attempt unless run_attempt.nil?
843
+ command.query['statuses'] = statuses unless statuses.nil?
844
+ command.query['fields'] = fields unless fields.nil?
845
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
846
+ execute_or_queue_command(command, &block)
847
+ end
848
+
849
+ # Returns user facing log messages for the data transfer run.
850
+ # @param [String] parent
851
+ # Transfer run name in the form:
852
+ # `projects/`project_id`/transferConfigs/`config_Id`/runs/`run_id``.
853
+ # @param [Array<String>, String] message_types
854
+ # Message types to return. If not populated - INFO, WARNING and ERROR
855
+ # messages are returned.
856
+ # @param [Fixnum] page_size
857
+ # Page size. The default page size is the maximum value of 1000 results.
858
+ # @param [String] page_token
859
+ # Pagination token, which can be used to request a specific page
860
+ # of `ListTransferLogsRequest` list results. For multiple-page
861
+ # results, `ListTransferLogsResponse` outputs
862
+ # a `next_page` token, which can be used as the
863
+ # `page_token` value to request the next page of list results.
864
+ # @param [String] fields
865
+ # Selector specifying which fields to include in a partial response.
866
+ # @param [String] quota_user
867
+ # Available to use for quota purposes for server-side applications. Can be any
868
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
869
+ # @param [Google::Apis::RequestOptions] options
870
+ # Request-specific options
871
+ #
872
+ # @yield [result, err] Result & error if block supplied
873
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse] parsed result object
874
+ # @yieldparam err [StandardError] error object if request failed
875
+ #
876
+ # @return [Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse]
877
+ #
878
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
879
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
880
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
881
+ def list_project_location_transfer_config_run_transfer_logs(parent, message_types: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
882
+ command = make_simple_command(:get, 'v1/{+parent}/transferLogs', options)
883
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse::Representation
884
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse
885
+ command.params['parent'] = parent unless parent.nil?
886
+ command.query['messageTypes'] = message_types unless message_types.nil?
887
+ command.query['pageSize'] = page_size unless page_size.nil?
888
+ command.query['pageToken'] = page_token unless page_token.nil?
889
+ command.query['fields'] = fields unless fields.nil?
890
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
891
+ execute_or_queue_command(command, &block)
892
+ end
893
+
894
+ # Creates a new data transfer configuration.
895
+ # @param [String] parent
896
+ # The BigQuery project id where the transfer configuration should be created.
897
+ # Must be in the format /projects/`project_id`/locations/`location_id`
898
+ # or
899
+ # /projects/`project_id`/locations/-
900
+ # In case when '-' is specified as location_id, location is infered from
901
+ # the destination dataset region.
902
+ # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object
903
+ # @param [String] authorization_code
904
+ # Optional OAuth2 authorization code to use with this transfer configuration.
905
+ # This is required if new credentials are needed, as indicated by
906
+ # `CheckValidCreds`.
907
+ # In order to obtain authorization_code, please make a
908
+ # request to
909
+ # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
910
+ # datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
911
+ # * client_id should be OAuth client_id of BigQuery DTS API for the given
912
+ # data source returned by ListDataSources method.
913
+ # * data_source_scopes are the scopes returned by ListDataSources method.
914
+ # * redirect_uri is an optional parameter. If not specified, then
915
+ # authorization code is posted to the opener of authorization flow window.
916
+ # Otherwise it will be sent to the redirect uri. A special value of
917
+ # urn:ietf:wg:oauth:2.0:oob means that authorization code should be
918
+ # returned in the title bar of the browser, with the page text prompting
919
+ # the user to copy the code and paste it in the application.
920
+ # @param [String] fields
921
+ # Selector specifying which fields to include in a partial response.
922
+ # @param [String] quota_user
923
+ # Available to use for quota purposes for server-side applications. Can be any
924
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
925
+ # @param [Google::Apis::RequestOptions] options
926
+ # Request-specific options
927
+ #
928
+ # @yield [result, err] Result & error if block supplied
929
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferConfig] parsed result object
930
+ # @yieldparam err [StandardError] error object if request failed
931
+ #
932
+ # @return [Google::Apis::BigquerydatatransferV1::TransferConfig]
933
+ #
934
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
935
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
936
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
937
+ def create_project_transfer_config(parent, transfer_config_object = nil, authorization_code: nil, fields: nil, quota_user: nil, options: nil, &block)
938
+ command = make_simple_command(:post, 'v1/{+parent}/transferConfigs', options)
939
+ command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
940
+ command.request_object = transfer_config_object
941
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
942
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
943
+ command.params['parent'] = parent unless parent.nil?
944
+ command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
945
+ command.query['fields'] = fields unless fields.nil?
946
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
947
+ execute_or_queue_command(command, &block)
948
+ end
949
+
950
+ # Deletes a data transfer configuration,
951
+ # including any associated transfer runs and logs.
952
+ # @param [String] name
953
+ # The field will contain name of the resource requested, for example:
954
+ # `projects/`project_id`/transferConfigs/`config_id``
955
+ # @param [String] fields
956
+ # Selector specifying which fields to include in a partial response.
957
+ # @param [String] quota_user
958
+ # Available to use for quota purposes for server-side applications. Can be any
959
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
960
+ # @param [Google::Apis::RequestOptions] options
961
+ # Request-specific options
962
+ #
963
+ # @yield [result, err] Result & error if block supplied
964
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
965
+ # @yieldparam err [StandardError] error object if request failed
966
+ #
967
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
968
+ #
969
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
970
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
971
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
972
+ def delete_project_transfer_config(name, fields: nil, quota_user: nil, options: nil, &block)
973
+ command = make_simple_command(:delete, 'v1/{+name}', options)
974
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
975
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
976
+ command.params['name'] = name unless name.nil?
977
+ command.query['fields'] = fields unless fields.nil?
978
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
979
+ execute_or_queue_command(command, &block)
980
+ end
981
+
982
+ # Returns information about a data transfer config.
983
+ # @param [String] name
984
+ # The field will contain name of the resource requested, for example:
985
+ # `projects/`project_id`/transferConfigs/`config_id``
986
+ # @param [String] fields
987
+ # Selector specifying which fields to include in a partial response.
988
+ # @param [String] quota_user
989
+ # Available to use for quota purposes for server-side applications. Can be any
990
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
991
+ # @param [Google::Apis::RequestOptions] options
992
+ # Request-specific options
993
+ #
994
+ # @yield [result, err] Result & error if block supplied
995
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferConfig] parsed result object
996
+ # @yieldparam err [StandardError] error object if request failed
997
+ #
998
+ # @return [Google::Apis::BigquerydatatransferV1::TransferConfig]
999
+ #
1000
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1001
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1002
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1003
+ def get_project_transfer_config(name, fields: nil, quota_user: nil, options: nil, &block)
1004
+ command = make_simple_command(:get, 'v1/{+name}', options)
1005
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
1006
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
1007
+ command.params['name'] = name unless name.nil?
1008
+ command.query['fields'] = fields unless fields.nil?
1009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1010
+ execute_or_queue_command(command, &block)
1011
+ end
1012
+
1013
+ # Returns information about all data transfers in the project.
1014
+ # @param [String] parent
1015
+ # The BigQuery project id for which data sources
1016
+ # should be returned: `projects/`project_id``.
1017
+ # @param [Array<String>, String] data_source_ids
1018
+ # When specified, only configurations of requested data sources are returned.
1019
+ # @param [Fixnum] page_size
1020
+ # Page size. The default page size is the maximum value of 1000 results.
1021
+ # @param [String] page_token
1022
+ # Pagination token, which can be used to request a specific page
1023
+ # of `ListTransfersRequest` list results. For multiple-page
1024
+ # results, `ListTransfersResponse` outputs
1025
+ # a `next_page` token, which can be used as the
1026
+ # `page_token` value to request the next page of list results.
1027
+ # @param [String] fields
1028
+ # Selector specifying which fields to include in a partial response.
1029
+ # @param [String] quota_user
1030
+ # Available to use for quota purposes for server-side applications. Can be any
1031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1032
+ # @param [Google::Apis::RequestOptions] options
1033
+ # Request-specific options
1034
+ #
1035
+ # @yield [result, err] Result & error if block supplied
1036
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse] parsed result object
1037
+ # @yieldparam err [StandardError] error object if request failed
1038
+ #
1039
+ # @return [Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse]
1040
+ #
1041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1044
+ def list_project_transfer_configs(parent, data_source_ids: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1045
+ command = make_simple_command(:get, 'v1/{+parent}/transferConfigs', options)
1046
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse::Representation
1047
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListTransferConfigsResponse
1048
+ command.params['parent'] = parent unless parent.nil?
1049
+ command.query['dataSourceIds'] = data_source_ids unless data_source_ids.nil?
1050
+ command.query['pageSize'] = page_size unless page_size.nil?
1051
+ command.query['pageToken'] = page_token unless page_token.nil?
1052
+ command.query['fields'] = fields unless fields.nil?
1053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1054
+ execute_or_queue_command(command, &block)
1055
+ end
1056
+
1057
+ # Updates a data transfer configuration.
1058
+ # All fields must be set, even if they are not updated.
1059
+ # @param [String] name
1060
+ # The resource name of the transfer run.
1061
+ # Transfer run names have the form
1062
+ # `projects/`project_id`/transferConfigs/`config_id``.
1063
+ # Where `config_id` is usually a uuid, even though it is not
1064
+ # guaranteed or required. The name is ignored when creating a transfer run.
1065
+ # @param [Google::Apis::BigquerydatatransferV1::TransferConfig] transfer_config_object
1066
+ # @param [String] authorization_code
1067
+ # Optional OAuth2 authorization code to use with this transfer configuration.
1068
+ # If it is provided, the transfer configuration will be associated with the
1069
+ # gaia id of the authorizing user.
1070
+ # In order to obtain authorization_code, please make a
1071
+ # request to
1072
+ # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
1073
+ # datatransferapiclientid>&scope=<data_source_scopes>&redirect_uri=<redirect_uri>
1074
+ # * client_id should be OAuth client_id of BigQuery DTS API for the given
1075
+ # data source returned by ListDataSources method.
1076
+ # * data_source_scopes are the scopes returned by ListDataSources method.
1077
+ # * redirect_uri is an optional parameter. If not specified, then
1078
+ # authorization code is posted to the opener of authorization flow window.
1079
+ # Otherwise it will be sent to the redirect uri. A special value of
1080
+ # urn:ietf:wg:oauth:2.0:oob means that authorization code should be
1081
+ # returned in the title bar of the browser, with the page text prompting
1082
+ # the user to copy the code and paste it in the application.
1083
+ # @param [String] update_mask
1084
+ # Required list of fields to be updated in this request.
1085
+ # @param [String] fields
1086
+ # Selector specifying which fields to include in a partial response.
1087
+ # @param [String] quota_user
1088
+ # Available to use for quota purposes for server-side applications. Can be any
1089
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1090
+ # @param [Google::Apis::RequestOptions] options
1091
+ # Request-specific options
1092
+ #
1093
+ # @yield [result, err] Result & error if block supplied
1094
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferConfig] parsed result object
1095
+ # @yieldparam err [StandardError] error object if request failed
1096
+ #
1097
+ # @return [Google::Apis::BigquerydatatransferV1::TransferConfig]
1098
+ #
1099
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1100
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1101
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1102
+ def patch_project_transfer_config(name, transfer_config_object = nil, authorization_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1103
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1104
+ command.request_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
1105
+ command.request_object = transfer_config_object
1106
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferConfig::Representation
1107
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferConfig
1108
+ command.params['name'] = name unless name.nil?
1109
+ command.query['authorizationCode'] = authorization_code unless authorization_code.nil?
1110
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1111
+ command.query['fields'] = fields unless fields.nil?
1112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1113
+ execute_or_queue_command(command, &block)
1114
+ end
1115
+
1116
+ # Creates transfer runs for a time range [range_start_time, range_end_time].
1117
+ # For each date - or whatever granularity the data source supports - in the
1118
+ # range, one transfer run is created.
1119
+ # Note that runs are created per UTC time in the time range.
1120
+ # @param [String] parent
1121
+ # Transfer configuration name in the form:
1122
+ # `projects/`project_id`/transferConfigs/`config_id``.
1123
+ # @param [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest] schedule_transfer_runs_request_object
1124
+ # @param [String] fields
1125
+ # Selector specifying which fields to include in a partial response.
1126
+ # @param [String] quota_user
1127
+ # Available to use for quota purposes for server-side applications. Can be any
1128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1129
+ # @param [Google::Apis::RequestOptions] options
1130
+ # Request-specific options
1131
+ #
1132
+ # @yield [result, err] Result & error if block supplied
1133
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse] parsed result object
1134
+ # @yieldparam err [StandardError] error object if request failed
1135
+ #
1136
+ # @return [Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse]
1137
+ #
1138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
+ def schedule_project_transfer_config_runs(parent, schedule_transfer_runs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1142
+ command = make_simple_command(:post, 'v1/{+parent}:scheduleRuns', options)
1143
+ command.request_representation = Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsRequest::Representation
1144
+ command.request_object = schedule_transfer_runs_request_object
1145
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse::Representation
1146
+ command.response_class = Google::Apis::BigquerydatatransferV1::ScheduleTransferRunsResponse
1147
+ command.params['parent'] = parent unless parent.nil?
1148
+ command.query['fields'] = fields unless fields.nil?
1149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
+ execute_or_queue_command(command, &block)
1151
+ end
1152
+
1153
+ # Deletes the specified transfer run.
1154
+ # @param [String] name
1155
+ # The field will contain name of the resource requested, for example:
1156
+ # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
1157
+ # @param [String] fields
1158
+ # Selector specifying which fields to include in a partial response.
1159
+ # @param [String] quota_user
1160
+ # Available to use for quota purposes for server-side applications. Can be any
1161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1162
+ # @param [Google::Apis::RequestOptions] options
1163
+ # Request-specific options
1164
+ #
1165
+ # @yield [result, err] Result & error if block supplied
1166
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::Empty] parsed result object
1167
+ # @yieldparam err [StandardError] error object if request failed
1168
+ #
1169
+ # @return [Google::Apis::BigquerydatatransferV1::Empty]
1170
+ #
1171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1174
+ def delete_project_transfer_config_run(name, fields: nil, quota_user: nil, options: nil, &block)
1175
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1176
+ command.response_representation = Google::Apis::BigquerydatatransferV1::Empty::Representation
1177
+ command.response_class = Google::Apis::BigquerydatatransferV1::Empty
1178
+ command.params['name'] = name unless name.nil?
1179
+ command.query['fields'] = fields unless fields.nil?
1180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1181
+ execute_or_queue_command(command, &block)
1182
+ end
1183
+
1184
+ # Returns information about the particular transfer run.
1185
+ # @param [String] name
1186
+ # The field will contain name of the resource requested, for example:
1187
+ # `projects/`project_id`/transferConfigs/`config_id`/runs/`run_id``
1188
+ # @param [String] fields
1189
+ # Selector specifying which fields to include in a partial response.
1190
+ # @param [String] quota_user
1191
+ # Available to use for quota purposes for server-side applications. Can be any
1192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1193
+ # @param [Google::Apis::RequestOptions] options
1194
+ # Request-specific options
1195
+ #
1196
+ # @yield [result, err] Result & error if block supplied
1197
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::TransferRun] parsed result object
1198
+ # @yieldparam err [StandardError] error object if request failed
1199
+ #
1200
+ # @return [Google::Apis::BigquerydatatransferV1::TransferRun]
1201
+ #
1202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1205
+ def get_project_transfer_config_run(name, fields: nil, quota_user: nil, options: nil, &block)
1206
+ command = make_simple_command(:get, 'v1/{+name}', options)
1207
+ command.response_representation = Google::Apis::BigquerydatatransferV1::TransferRun::Representation
1208
+ command.response_class = Google::Apis::BigquerydatatransferV1::TransferRun
1209
+ command.params['name'] = name unless name.nil?
1210
+ command.query['fields'] = fields unless fields.nil?
1211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1212
+ execute_or_queue_command(command, &block)
1213
+ end
1214
+
1215
+ # Returns information about running and completed jobs.
1216
+ # @param [String] parent
1217
+ # Name of transfer configuration for which transfer runs should be retrieved.
1218
+ # Format of transfer configuration resource name is:
1219
+ # `projects/`project_id`/transferConfigs/`config_id``.
1220
+ # @param [Fixnum] page_size
1221
+ # Page size. The default page size is the maximum value of 1000 results.
1222
+ # @param [String] page_token
1223
+ # Pagination token, which can be used to request a specific page
1224
+ # of `ListTransferRunsRequest` list results. For multiple-page
1225
+ # results, `ListTransferRunsResponse` outputs
1226
+ # a `next_page` token, which can be used as the
1227
+ # `page_token` value to request the next page of list results.
1228
+ # @param [String] run_attempt
1229
+ # Indicates how run attempts are to be pulled.
1230
+ # @param [Array<String>, String] statuses
1231
+ # When specified, only transfer runs with requested statuses are returned.
1232
+ # @param [String] fields
1233
+ # Selector specifying which fields to include in a partial response.
1234
+ # @param [String] quota_user
1235
+ # Available to use for quota purposes for server-side applications. Can be any
1236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1237
+ # @param [Google::Apis::RequestOptions] options
1238
+ # Request-specific options
1239
+ #
1240
+ # @yield [result, err] Result & error if block supplied
1241
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse] parsed result object
1242
+ # @yieldparam err [StandardError] error object if request failed
1243
+ #
1244
+ # @return [Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse]
1245
+ #
1246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1249
+ def list_project_transfer_config_runs(parent, page_size: nil, page_token: nil, run_attempt: nil, statuses: nil, fields: nil, quota_user: nil, options: nil, &block)
1250
+ command = make_simple_command(:get, 'v1/{+parent}/runs', options)
1251
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse::Representation
1252
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListTransferRunsResponse
1253
+ command.params['parent'] = parent unless parent.nil?
1254
+ command.query['pageSize'] = page_size unless page_size.nil?
1255
+ command.query['pageToken'] = page_token unless page_token.nil?
1256
+ command.query['runAttempt'] = run_attempt unless run_attempt.nil?
1257
+ command.query['statuses'] = statuses unless statuses.nil?
1258
+ command.query['fields'] = fields unless fields.nil?
1259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1260
+ execute_or_queue_command(command, &block)
1261
+ end
1262
+
1263
+ # Returns user facing log messages for the data transfer run.
1264
+ # @param [String] parent
1265
+ # Transfer run name in the form:
1266
+ # `projects/`project_id`/transferConfigs/`config_Id`/runs/`run_id``.
1267
+ # @param [Array<String>, String] message_types
1268
+ # Message types to return. If not populated - INFO, WARNING and ERROR
1269
+ # messages are returned.
1270
+ # @param [Fixnum] page_size
1271
+ # Page size. The default page size is the maximum value of 1000 results.
1272
+ # @param [String] page_token
1273
+ # Pagination token, which can be used to request a specific page
1274
+ # of `ListTransferLogsRequest` list results. For multiple-page
1275
+ # results, `ListTransferLogsResponse` outputs
1276
+ # a `next_page` token, which can be used as the
1277
+ # `page_token` value to request the next page of list results.
1278
+ # @param [String] fields
1279
+ # Selector specifying which fields to include in a partial response.
1280
+ # @param [String] quota_user
1281
+ # Available to use for quota purposes for server-side applications. Can be any
1282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1283
+ # @param [Google::Apis::RequestOptions] options
1284
+ # Request-specific options
1285
+ #
1286
+ # @yield [result, err] Result & error if block supplied
1287
+ # @yieldparam result [Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse] parsed result object
1288
+ # @yieldparam err [StandardError] error object if request failed
1289
+ #
1290
+ # @return [Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse]
1291
+ #
1292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1295
+ def list_project_transfer_config_run_transfer_logs(parent, message_types: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1296
+ command = make_simple_command(:get, 'v1/{+parent}/transferLogs', options)
1297
+ command.response_representation = Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse::Representation
1298
+ command.response_class = Google::Apis::BigquerydatatransferV1::ListTransferLogsResponse
1299
+ command.params['parent'] = parent unless parent.nil?
1300
+ command.query['messageTypes'] = message_types unless message_types.nil?
1301
+ command.query['pageSize'] = page_size unless page_size.nil?
1302
+ command.query['pageToken'] = page_token unless page_token.nil?
1303
+ command.query['fields'] = fields unless fields.nil?
1304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1305
+ execute_or_queue_command(command, &block)
1306
+ end
1307
+
1308
+ protected
1309
+
1310
+ def apply_command_defaults(command)
1311
+ command.query['key'] = key unless key.nil?
1312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1313
+ end
1314
+ end
1315
+ end
1316
+ end
1317
+ end