google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -84,8 +84,7 @@ module Google
84
84
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
85
85
  # @raise [Google::Apis::AuthorizationError] Authorization is required
86
86
  def get_advertiser(role, role_id, advertiser_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
87
- path = '{role}/{roleId}/advertiser'
88
- command = make_simple_command(:get, path, options)
87
+ command = make_simple_command(:get, '{role}/{roleId}/advertiser', options)
89
88
  command.response_representation = Google::Apis::GanV1beta1::Advertiser::Representation
90
89
  command.response_class = Google::Apis::GanV1beta1::Advertiser
91
90
  command.params['role'] = role unless role.nil?
@@ -149,8 +148,7 @@ module Google
149
148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
151
150
  def list_advertisers(role, role_id, advertiser_category: nil, max_results: nil, min_ninety_day_epc: nil, min_payout_rank: nil, min_seven_day_epc: nil, page_token: nil, relationship_status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
152
- path = '{role}/{roleId}/advertisers'
153
- command = make_simple_command(:get, path, options)
151
+ command = make_simple_command(:get, '{role}/{roleId}/advertisers', options)
154
152
  command.response_representation = Google::Apis::GanV1beta1::Advertisers::Representation
155
153
  command.response_class = Google::Apis::GanV1beta1::Advertisers
156
154
  command.params['role'] = role unless role.nil?
@@ -198,8 +196,7 @@ module Google
198
196
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
199
197
  # @raise [Google::Apis::AuthorizationError] Authorization is required
200
198
  def list_cc_offers(publisher, advertiser: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
201
- path = 'publishers/{publisher}/ccOffers'
202
- command = make_simple_command(:get, path, options)
199
+ command = make_simple_command(:get, 'publishers/{publisher}/ccOffers', options)
203
200
  command.response_representation = Google::Apis::GanV1beta1::CcOffers::Representation
204
201
  command.response_class = Google::Apis::GanV1beta1::CcOffers
205
202
  command.params['publisher'] = publisher unless publisher.nil?
@@ -287,8 +284,7 @@ module Google
287
284
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
288
285
  # @raise [Google::Apis::AuthorizationError] Authorization is required
289
286
  def list_events(role, role_id, advertiser_id: nil, charge_type: nil, event_date_max: nil, event_date_min: nil, link_id: nil, max_results: nil, member_id: nil, modify_date_max: nil, modify_date_min: nil, order_id: nil, page_token: nil, product_category: nil, publisher_id: nil, sku: nil, status: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
290
- path = '{role}/{roleId}/events'
291
- command = make_simple_command(:get, path, options)
287
+ command = make_simple_command(:get, '{role}/{roleId}/events', options)
292
288
  command.response_representation = Google::Apis::GanV1beta1::Events::Representation
293
289
  command.response_class = Google::Apis::GanV1beta1::Events
294
290
  command.params['role'] = role unless role.nil?
@@ -347,8 +343,7 @@ module Google
347
343
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
344
  # @raise [Google::Apis::AuthorizationError] Authorization is required
349
345
  def get_link(role, role_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
350
- path = '{role}/{roleId}/link/{linkId}'
351
- command = make_simple_command(:get, path, options)
346
+ command = make_simple_command(:get, '{role}/{roleId}/link/{linkId}', options)
352
347
  command.response_representation = Google::Apis::GanV1beta1::Link::Representation
353
348
  command.response_class = Google::Apis::GanV1beta1::Link
354
349
  command.params['role'] = role unless role.nil?
@@ -388,8 +383,7 @@ module Google
388
383
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
389
384
  # @raise [Google::Apis::AuthorizationError] Authorization is required
390
385
  def insert_link(role, role_id, link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
391
- path = '{role}/{roleId}/link'
392
- command = make_simple_command(:post, path, options)
386
+ command = make_simple_command(:post, '{role}/{roleId}/link', options)
393
387
  command.request_representation = Google::Apis::GanV1beta1::Link::Representation
394
388
  command.request_object = link_object
395
389
  command.response_representation = Google::Apis::GanV1beta1::Link::Representation
@@ -456,8 +450,7 @@ module Google
456
450
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
457
451
  # @raise [Google::Apis::AuthorizationError] Authorization is required
458
452
  def list_links(role, role_id, advertiser_id: nil, asset_size: nil, authorship: nil, create_date_max: nil, create_date_min: nil, link_type: nil, max_results: nil, page_token: nil, promotion_type: nil, relationship_status: nil, search_text: nil, start_date_max: nil, start_date_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
459
- path = '{role}/{roleId}/links'
460
- command = make_simple_command(:get, path, options)
453
+ command = make_simple_command(:get, '{role}/{roleId}/links', options)
461
454
  command.response_representation = Google::Apis::GanV1beta1::Links::Representation
462
455
  command.response_class = Google::Apis::GanV1beta1::Links
463
456
  command.params['role'] = role unless role.nil?
@@ -513,8 +506,7 @@ module Google
513
506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
514
507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
515
508
  def get_publisher(role, role_id, publisher_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
516
- path = '{role}/{roleId}/publisher'
517
- command = make_simple_command(:get, path, options)
509
+ command = make_simple_command(:get, '{role}/{roleId}/publisher', options)
518
510
  command.response_representation = Google::Apis::GanV1beta1::Publisher::Representation
519
511
  command.response_class = Google::Apis::GanV1beta1::Publisher
520
512
  command.params['role'] = role unless role.nil?
@@ -578,8 +570,7 @@ module Google
578
570
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
579
571
  # @raise [Google::Apis::AuthorizationError] Authorization is required
580
572
  def list_publishers(role, role_id, max_results: nil, min_ninety_day_epc: nil, min_payout_rank: nil, min_seven_day_epc: nil, page_token: nil, publisher_category: nil, relationship_status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
581
- path = '{role}/{roleId}/publishers'
582
- command = make_simple_command(:get, path, options)
573
+ command = make_simple_command(:get, '{role}/{roleId}/publishers', options)
583
574
  command.response_representation = Google::Apis::GanV1beta1::Publishers::Representation
584
575
  command.response_class = Google::Apis::GanV1beta1::Publishers
585
576
  command.params['role'] = role unless role.nil?
@@ -655,8 +646,7 @@ module Google
655
646
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
656
647
  # @raise [Google::Apis::AuthorizationError] Authorization is required
657
648
  def get_report(role, role_id, report_type, advertiser_id: nil, calculate_totals: nil, end_date: nil, event_type: nil, link_id: nil, max_results: nil, order_id: nil, publisher_id: nil, start_date: nil, start_index: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
658
- path = '{role}/{roleId}/report/{reportType}'
659
- command = make_simple_command(:get, path, options)
649
+ command = make_simple_command(:get, '{role}/{roleId}/report/{reportType}', options)
660
650
  command.response_representation = Google::Apis::GanV1beta1::Report::Representation
661
651
  command.response_class = Google::Apis::GanV1beta1::Report
662
652
  command.params['role'] = role unless role.nil?
@@ -20,13 +20,15 @@ module Google
20
20
  module Apis
21
21
  # Genomics API
22
22
  #
23
- # An API to store, process, explore, and share DNA sequence reads, reference-
24
- # based alignments, and variant calls.
23
+ # An API to store, process, explore, and share genomic data. It supports
24
+ # reference-based alignements, genetic variants, and reference genomes. This API
25
+ # provides an implementation of the Global Alliance for Genomics and Health (
26
+ # GA4GH) v0.5.1 API as well as several extensions.
25
27
  #
26
28
  # @see
27
29
  module GenomicsV1
28
30
  VERSION = 'V1'
29
- REVISION = '20150723'
31
+ REVISION = '20151215'
30
32
 
31
33
  # View and manage your data in Google BigQuery
32
34
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -49,7 +49,9 @@ module Google
49
49
  end
50
50
  end
51
51
 
52
- # A Dataset is a collection of genomic data.
52
+ # A Dataset is a collection of genomic data. For more genomics resource
53
+ # definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/
54
+ # genomics/fundamentals-of-google-genomics)
53
55
  class Dataset
54
56
  include Google::Apis::Core::Hashable
55
57
 
@@ -116,6 +118,175 @@ module Google
116
118
  end
117
119
  end
118
120
 
121
+ # Request message for `SetIamPolicy` method.
122
+ class SetIamPolicyRequest
123
+ include Google::Apis::Core::Hashable
124
+
125
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
126
+ # access control policies for Cloud Platform resources. A `Policy` consists of a
127
+ # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
128
+ # the members can be user accounts, Google groups, Google domains, and service
129
+ # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
130
+ # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
131
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
132
+ # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
133
+ # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
134
+ # IAM developer's guide](https://cloud.google.com/iam).
135
+ # Corresponds to the JSON property `policy`
136
+ # @return [Google::Apis::GenomicsV1::Policy]
137
+ attr_accessor :policy
138
+
139
+ def initialize(**args)
140
+ update!(**args)
141
+ end
142
+
143
+ # Update properties of this object
144
+ def update!(**args)
145
+ @policy = args[:policy] unless args[:policy].nil?
146
+ end
147
+ end
148
+
149
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
150
+ # access control policies for Cloud Platform resources. A `Policy` consists of a
151
+ # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
152
+ # the members can be user accounts, Google groups, Google domains, and service
153
+ # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
154
+ # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
155
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
156
+ # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
157
+ # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
158
+ # IAM developer's guide](https://cloud.google.com/iam).
159
+ class Policy
160
+ include Google::Apis::Core::Hashable
161
+
162
+ # Version of the `Policy`. The default version is 0.
163
+ # Corresponds to the JSON property `version`
164
+ # @return [Fixnum]
165
+ attr_accessor :version
166
+
167
+ # Associates a list of `members` to a `role`. Multiple `bindings` must not be
168
+ # specified for the same `role`. `bindings` with no members will result in an
169
+ # error.
170
+ # Corresponds to the JSON property `bindings`
171
+ # @return [Array<Google::Apis::GenomicsV1::Binding>]
172
+ attr_accessor :bindings
173
+
174
+ # `etag` is used for optimistic concurrency control as a way to help prevent
175
+ # simultaneous updates of a policy from overwriting each other. It is strongly
176
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
177
+ # to perform policy updates in order to avoid race conditions: An `etag` is
178
+ # returned in the response to `getIamPolicy`, and systems are expected to put
179
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
180
+ # applied to the same version of the policy. If no `etag` is provided in the
181
+ # call to `setIamPolicy`, then the existing policy is overwritten blindly.
182
+ # Corresponds to the JSON property `etag`
183
+ # @return [String]
184
+ attr_accessor :etag
185
+
186
+ def initialize(**args)
187
+ update!(**args)
188
+ end
189
+
190
+ # Update properties of this object
191
+ def update!(**args)
192
+ @version = args[:version] unless args[:version].nil?
193
+ @bindings = args[:bindings] unless args[:bindings].nil?
194
+ @etag = args[:etag] unless args[:etag].nil?
195
+ end
196
+ end
197
+
198
+ # Associates `members` with a `role`.
199
+ class Binding
200
+ include Google::Apis::Core::Hashable
201
+
202
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
203
+ # , or `roles/owner`. Required
204
+ # Corresponds to the JSON property `role`
205
+ # @return [String]
206
+ attr_accessor :role
207
+
208
+ # Specifies the identities requesting access for a Cloud Platform resource. `
209
+ # members` can have the following values: * `allUsers`: A special identifier
210
+ # that represents anyone who is on the internet; with or without a Google
211
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
212
+ # anyone who is authenticated with a Google account or a service account. * `
213
+ # user:`emailid``: An email address that represents a specific Google account.
214
+ # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
215
+ # emailid``: An email address that represents a service account. For example, `
216
+ # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
217
+ # address that represents a Google group. For example, `admins@example.com`. * `
218
+ # domain:`domain``: A Google Apps domain name that represents all the users of
219
+ # that domain. For example, `google.com` or `example.com`.
220
+ # Corresponds to the JSON property `members`
221
+ # @return [Array<String>]
222
+ attr_accessor :members
223
+
224
+ def initialize(**args)
225
+ update!(**args)
226
+ end
227
+
228
+ # Update properties of this object
229
+ def update!(**args)
230
+ @role = args[:role] unless args[:role].nil?
231
+ @members = args[:members] unless args[:members].nil?
232
+ end
233
+ end
234
+
235
+ # Request message for `GetIamPolicy` method.
236
+ class GetIamPolicyRequest
237
+ include Google::Apis::Core::Hashable
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ end
246
+ end
247
+
248
+ # Request message for `TestIamPermissions` method.
249
+ class TestIamPermissionsRequest
250
+ include Google::Apis::Core::Hashable
251
+
252
+ # REQUIRED: The set of permissions to check for the 'resource'. Permissions with
253
+ # wildcards (such as '*' or 'storage.*') are not allowed. Allowed permissions
254
+ # are: * `genomics.datasets.create` * `genomics.datasets.delete` * `genomics.
255
+ # datasets.get` * `genomics.datasets.list` * `genomics.datasets.update` * `
256
+ # genomics.datasets.getIamPolicy` * `genomics.datasets.setIamPolicy`
257
+ # Corresponds to the JSON property `permissions`
258
+ # @return [Array<String>]
259
+ attr_accessor :permissions
260
+
261
+ def initialize(**args)
262
+ update!(**args)
263
+ end
264
+
265
+ # Update properties of this object
266
+ def update!(**args)
267
+ @permissions = args[:permissions] unless args[:permissions].nil?
268
+ end
269
+ end
270
+
271
+ # Response message for `TestIamPermissions` method.
272
+ class TestIamPermissionsResponse
273
+ include Google::Apis::Core::Hashable
274
+
275
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
276
+ # Corresponds to the JSON property `permissions`
277
+ # @return [Array<String>]
278
+ attr_accessor :permissions
279
+
280
+ def initialize(**args)
281
+ update!(**args)
282
+ end
283
+
284
+ # Update properties of this object
285
+ def update!(**args)
286
+ @permissions = args[:permissions] unless args[:permissions].nil?
287
+ end
288
+ end
289
+
119
290
  # This resource represents a long-running operation that is the result of a
120
291
  # network API call.
121
292
  class Operation
@@ -128,14 +299,13 @@ module Google
128
299
  # @return [String]
129
300
  attr_accessor :name
130
301
 
131
- # An [OperationMetadata][google.genomics.v1.OperationMetadata] object. This will
132
- # always be returned with the [Operation][google.longrunning.Operation].
302
+ # An OperationMetadata object. This will always be returned with the Operation.
133
303
  # Corresponds to the JSON property `metadata`
134
304
  # @return [Hash<String,Object>]
135
305
  attr_accessor :metadata
136
306
 
137
307
  # If the value is `false`, it means the operation is still in progress. If true,
138
- # the operation is completed and the `result` is available.
308
+ # the operation is completed, and either `error` or `response` is available.
139
309
  # Corresponds to the JSON property `done`
140
310
  # @return [Boolean]
141
311
  attr_accessor :done
@@ -146,42 +316,40 @@ module Google
146
316
  # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
147
317
  # use and understand for most users - Flexible enough to meet unexpected needs #
148
318
  # Overview The `Status` message contains three pieces of data: error code, error
149
- # message, and error details. The error code should be an enum value of [google.
150
- # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed.
151
- # The error message should be a developer-facing English message that helps
152
- # developers *understand* and *resolve* the error. If a localized user-facing
153
- # error message is needed, put the localized message in the error details or
154
- # localize it in the client. The optional error details may contain arbitrary
155
- # information about the error. There is a predefined set of error detail types
156
- # in the package `google.rpc` which can be used for common error conditions. #
157
- # Language mapping The `Status` message is the logical representation of the
158
- # error model, but it is not necessarily the actual wire format. When the `
159
- # Status` message is exposed in different client libraries and different wire
160
- # protocols, it can be mapped differently. For example, it will likely be mapped
161
- # to some exceptions in Java, but more likely mapped to some error codes in C. #
162
- # Other uses The error model and the `Status` message can be used in a variety
163
- # of environments, either with or without APIs, to provide a consistent
164
- # developer experience across different environments. Example uses of this error
165
- # model include: - Partial errors. If a service needs to return partial errors
166
- # to the client, it may embed the `Status` in the normal response to indicate
167
- # the partial errors. - Workflow errors. A typical workflow has multiple steps.
168
- # Each step may have a `Status` message for error reporting purpose. - Batch
169
- # operations. If a client uses batch request and batch response, the `Status`
170
- # message should be used directly inside batch response, one for each error sub-
171
- # response. - Asynchronous operations. If an API call embeds asynchronous
172
- # operation results in its response, the status of those operations should be
173
- # represented directly using the `Status` message. - Logging. If some API errors
174
- # are stored in logs, the message `Status` could be used directly after any
175
- # stripping needed for security/privacy reasons.
319
+ # message, and error details. The error code should be an enum value of google.
320
+ # rpc.Code, but it may accept additional error codes if needed. The error
321
+ # message should be a developer-facing English message that helps developers *
322
+ # understand* and *resolve* the error. If a localized user-facing error message
323
+ # is needed, put the localized message in the error details or localize it in
324
+ # the client. The optional error details may contain arbitrary information about
325
+ # the error. There is a predefined set of error detail types in the package `
326
+ # google.rpc` which can be used for common error conditions. # Language mapping
327
+ # The `Status` message is the logical representation of the error model, but it
328
+ # is not necessarily the actual wire format. When the `Status` message is
329
+ # exposed in different client libraries and different wire protocols, it can be
330
+ # mapped differently. For example, it will likely be mapped to some exceptions
331
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
332
+ # error model and the `Status` message can be used in a variety of environments,
333
+ # either with or without APIs, to provide a consistent developer experience
334
+ # across different environments. Example uses of this error model include: -
335
+ # Partial errors. If a service needs to return partial errors to the client, it
336
+ # may embed the `Status` in the normal response to indicate the partial errors. -
337
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
338
+ # Status` message for error reporting purpose. - Batch operations. If a client
339
+ # uses batch request and batch response, the `Status` message should be used
340
+ # directly inside batch response, one for each error sub-response. -
341
+ # Asynchronous operations. If an API call embeds asynchronous operation results
342
+ # in its response, the status of those operations should be represented directly
343
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
344
+ # the message `Status` could be used directly after any stripping needed for
345
+ # security/privacy reasons.
176
346
  # Corresponds to the JSON property `error`
177
347
  # @return [Google::Apis::GenomicsV1::Status]
178
348
  attr_accessor :error
179
349
 
180
- # If importing [ReadGroupSets][google.genomics.v1.ReadGroupSet], an [
181
- # ImportReadGroupSetsResponse][google.genomics.v1.ImportReadGroupSetsResponse]
182
- # is returned. If importing [Variants][google.genomics.v1.Variant], an [
183
- # ImportVariantsResponse][google.genomics.v1.ImportVariantsResponse] is returned.
184
- # For exports, an empty response is returned.
350
+ # If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
351
+ # importing Variants, an ImportVariantsResponse is returned. For exports, an
352
+ # empty response is returned.
185
353
  # Corresponds to the JSON property `response`
186
354
  # @return [Hash<String,Object>]
187
355
  attr_accessor :response
@@ -205,45 +373,44 @@ module Google
205
373
  # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
206
374
  # use and understand for most users - Flexible enough to meet unexpected needs #
207
375
  # Overview The `Status` message contains three pieces of data: error code, error
208
- # message, and error details. The error code should be an enum value of [google.
209
- # rpc.Code][google.rpc.Code], but it may accept additional error codes if needed.
210
- # The error message should be a developer-facing English message that helps
211
- # developers *understand* and *resolve* the error. If a localized user-facing
212
- # error message is needed, put the localized message in the error details or
213
- # localize it in the client. The optional error details may contain arbitrary
214
- # information about the error. There is a predefined set of error detail types
215
- # in the package `google.rpc` which can be used for common error conditions. #
216
- # Language mapping The `Status` message is the logical representation of the
217
- # error model, but it is not necessarily the actual wire format. When the `
218
- # Status` message is exposed in different client libraries and different wire
219
- # protocols, it can be mapped differently. For example, it will likely be mapped
220
- # to some exceptions in Java, but more likely mapped to some error codes in C. #
221
- # Other uses The error model and the `Status` message can be used in a variety
222
- # of environments, either with or without APIs, to provide a consistent
223
- # developer experience across different environments. Example uses of this error
224
- # model include: - Partial errors. If a service needs to return partial errors
225
- # to the client, it may embed the `Status` in the normal response to indicate
226
- # the partial errors. - Workflow errors. A typical workflow has multiple steps.
227
- # Each step may have a `Status` message for error reporting purpose. - Batch
228
- # operations. If a client uses batch request and batch response, the `Status`
229
- # message should be used directly inside batch response, one for each error sub-
230
- # response. - Asynchronous operations. If an API call embeds asynchronous
231
- # operation results in its response, the status of those operations should be
232
- # represented directly using the `Status` message. - Logging. If some API errors
233
- # are stored in logs, the message `Status` could be used directly after any
234
- # stripping needed for security/privacy reasons.
376
+ # message, and error details. The error code should be an enum value of google.
377
+ # rpc.Code, but it may accept additional error codes if needed. The error
378
+ # message should be a developer-facing English message that helps developers *
379
+ # understand* and *resolve* the error. If a localized user-facing error message
380
+ # is needed, put the localized message in the error details or localize it in
381
+ # the client. The optional error details may contain arbitrary information about
382
+ # the error. There is a predefined set of error detail types in the package `
383
+ # google.rpc` which can be used for common error conditions. # Language mapping
384
+ # The `Status` message is the logical representation of the error model, but it
385
+ # is not necessarily the actual wire format. When the `Status` message is
386
+ # exposed in different client libraries and different wire protocols, it can be
387
+ # mapped differently. For example, it will likely be mapped to some exceptions
388
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
389
+ # error model and the `Status` message can be used in a variety of environments,
390
+ # either with or without APIs, to provide a consistent developer experience
391
+ # across different environments. Example uses of this error model include: -
392
+ # Partial errors. If a service needs to return partial errors to the client, it
393
+ # may embed the `Status` in the normal response to indicate the partial errors. -
394
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
395
+ # Status` message for error reporting purpose. - Batch operations. If a client
396
+ # uses batch request and batch response, the `Status` message should be used
397
+ # directly inside batch response, one for each error sub-response. -
398
+ # Asynchronous operations. If an API call embeds asynchronous operation results
399
+ # in its response, the status of those operations should be represented directly
400
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
401
+ # the message `Status` could be used directly after any stripping needed for
402
+ # security/privacy reasons.
235
403
  class Status
236
404
  include Google::Apis::Core::Hashable
237
405
 
238
- # The status code, which should be an enum value of [google.rpc.Code][google.rpc.
239
- # Code].
406
+ # The status code, which should be an enum value of google.rpc.Code.
240
407
  # Corresponds to the JSON property `code`
241
408
  # @return [Fixnum]
242
409
  attr_accessor :code
243
410
 
244
411
  # A developer-facing error message, which should be in English. Any user-facing
245
- # error message should be localized and sent in the [google.rpc.Status.details][
246
- # google.rpc.Status.details] field, or localized by the client.
412
+ # error message should be localized and sent in the google.rpc.Status.details
413
+ # field, or localized by the client.
247
414
  # Corresponds to the JSON property `message`
248
415
  # @return [String]
249
416
  attr_accessor :message
@@ -266,8 +433,7 @@ module Google
266
433
  end
267
434
  end
268
435
 
269
- # The response message for [Operations.ListOperations][google.longrunning.
270
- # Operations.ListOperations].
436
+ # The response message for Operations.ListOperations.
271
437
  class ListOperationsResponse
272
438
  include Google::Apis::Core::Hashable
273
439
 
@@ -292,8 +458,7 @@ module Google
292
458
  end
293
459
  end
294
460
 
295
- # The request message for [Operations.CancelOperation][google.longrunning.
296
- # Operations.CancelOperation].
461
+ # The request message for Operations.CancelOperation.
297
462
  class CancelOperationRequest
298
463
  include Google::Apis::Core::Hashable
299
464
 
@@ -324,7 +489,8 @@ module Google
324
489
  # @return [String]
325
490
  attr_accessor :reference_set_id
326
491
 
327
- # A list of URIs pointing at BAM files in Google Cloud Storage.
492
+ # A list of URIs pointing at [BAM files](https://samtools.github.io/hts-specs/
493
+ # SAMv1.pdf) in Google Cloud Storage.
328
494
  # Corresponds to the JSON property `sourceUris`
329
495
  # @return [Array<String>]
330
496
  attr_accessor :source_uris
@@ -352,7 +518,8 @@ module Google
352
518
  class ExportReadGroupSetRequest
353
519
  include Google::Apis::Core::Hashable
354
520
 
355
- # Required. The Google Developers Console project ID that owns this export.
521
+ # Required. The Google Developers Console project ID that owns this export. The
522
+ # caller must have WRITE access to this project.
356
523
  # Corresponds to the JSON property `projectId`
357
524
  # @return [String]
358
525
  attr_accessor :project_id
@@ -406,8 +573,8 @@ module Google
406
573
  # @return [String]
407
574
  attr_accessor :page_token
408
575
 
409
- # Specifies number of results to return in a single page. If unspecified, it
410
- # will default to 256. The maximum value is 1024.
576
+ # The maximum number of results to return in a single page. If unspecified,
577
+ # defaults to 256. The maximum value is 1024.
411
578
  # Corresponds to the JSON property `pageSize`
412
579
  # @return [Fixnum]
413
580
  attr_accessor :page_size
@@ -456,7 +623,9 @@ module Google
456
623
  # of reads produced by a sequencer. A read group set typically models reads
457
624
  # corresponding to one sample, sequenced one way, and aligned one way. * A read
458
625
  # group set belongs to one dataset. * A read group belongs to one read group set.
459
- # * A read belongs to one read group.
626
+ # * A read belongs to one read group. For more genomics resource definitions,
627
+ # see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/
628
+ # fundamentals-of-google-genomics)
460
629
  class ReadGroupSet
461
630
  include Google::Apis::Core::Hashable
462
631
 
@@ -465,12 +634,12 @@ module Google
465
634
  # @return [String]
466
635
  attr_accessor :id
467
636
 
468
- # The dataset ID.
637
+ # The dataset to which this read group set belongs.
469
638
  # Corresponds to the JSON property `datasetId`
470
639
  # @return [String]
471
640
  attr_accessor :dataset_id
472
641
 
473
- # The reference set the reads in this read group set are aligned to.
642
+ # The reference set to which the reads in this read group set are aligned.
474
643
  # Corresponds to the JSON property `referenceSetId`
475
644
  # @return [String]
476
645
  attr_accessor :reference_set_id
@@ -518,13 +687,12 @@ module Google
518
687
  include Google::Apis::Core::Hashable
519
688
 
520
689
  # The server-generated read group ID, unique for all read groups. Note: This is
521
- # different than the `@RG ID` field in the SAM spec. For that value, see the `
522
- # name` field.
690
+ # different than the @RG ID field in the SAM spec. For that value, see name.
523
691
  # Corresponds to the JSON property `id`
524
692
  # @return [String]
525
693
  attr_accessor :id
526
694
 
527
- # The ID of the dataset this read group belongs to.
695
+ # The dataset to which this read group belongs.
528
696
  # Corresponds to the JSON property `datasetId`
529
697
  # @return [String]
530
698
  attr_accessor :dataset_id
@@ -539,9 +707,7 @@ module Google
539
707
  # @return [String]
540
708
  attr_accessor :description
541
709
 
542
- # The sample this read group's data was generated from. Note: This is not an
543
- # actual ID within this repository, but rather an identifier for a sample which
544
- # may be meaningful to some external system.
710
+ # A client-supplied sample identifier for the reads in this read group.
545
711
  # Corresponds to the JSON property `sampleId`
546
712
  # @return [String]
547
713
  attr_accessor :sample_id
@@ -564,8 +730,7 @@ module Google
564
730
  # @return [Array<Google::Apis::GenomicsV1::Program>]
565
731
  attr_accessor :programs
566
732
 
567
- # The reference set the reads in this read group are aligned to. Required if
568
- # there are any read alignments.
733
+ # The reference set the reads in this read group are aligned to.
569
734
  # Corresponds to the JSON property `referenceSetId`
570
735
  # @return [String]
571
736
  attr_accessor :reference_set_id
@@ -599,16 +764,17 @@ module Google
599
764
  class Experiment
600
765
  include Google::Apis::Core::Hashable
601
766
 
602
- # The library used as part of this experiment. Note: This is not an actual ID
603
- # within this repository, but rather an identifier for a library which may be
604
- # meaningful to some external system.
767
+ # A client-supplied library identifier; a library is a collection of DNA
768
+ # fragments which have been prepared for sequencing from a sample. This field is
769
+ # important for quality control as error or bias can be introduced during sample
770
+ # preparation.
605
771
  # Corresponds to the JSON property `libraryId`
606
772
  # @return [String]
607
773
  attr_accessor :library_id
608
774
 
609
- # The platform unit used as part of this experiment e.g. flowcell-barcode.lane
610
- # for Illumina or slide for SOLiD. Corresponds to the @RG PU field in the SAM
611
- # spec.
775
+ # The platform unit used as part of this experiment, for example flowcell-
776
+ # barcode.lane for Illumina or slide for SOLiD. Corresponds to the @RG PU field
777
+ # in the SAM spec.
612
778
  # Corresponds to the JSON property `platformUnit`
613
779
  # @return [String]
614
780
  attr_accessor :platform_unit
@@ -619,7 +785,7 @@ module Google
619
785
  attr_accessor :sequencing_center
620
786
 
621
787
  # The instrument model used as part of this experiment. This maps to sequencing
622
- # technology in BAM.
788
+ # technology in the SAM spec.
623
789
  # Corresponds to the JSON property `instrumentModel`
624
790
  # @return [String]
625
791
  attr_accessor :instrument_model
@@ -652,7 +818,8 @@ module Google
652
818
  # @return [String]
653
819
  attr_accessor :id
654
820
 
655
- # The name of the program.
821
+ # The display name of the program. This is typically the colloquial name of the
822
+ # tool used, for example 'bwa' or 'picard'.
656
823
  # Corresponds to the JSON property `name`
657
824
  # @return [String]
658
825
  attr_accessor :name
@@ -797,8 +964,9 @@ module Google
797
964
  # @return [Array<String>]
798
965
  attr_accessor :read_group_ids
799
966
 
800
- # The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to *,
801
- # only unmapped reads are returned.
967
+ # The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to `*`,
968
+ # only unmapped reads are returned. If unspecified, all reads (mapped and
969
+ # unmapped) are returned.
802
970
  # Corresponds to the JSON property `referenceName`
803
971
  # @return [String]
804
972
  attr_accessor :reference_name
@@ -822,8 +990,8 @@ module Google
822
990
  # @return [String]
823
991
  attr_accessor :page_token
824
992
 
825
- # Specifies number of results to return in a single page. If unspecified, it
826
- # will default to 256. The maximum value is 2048.
993
+ # The maximum number of results to return in a single page. If unspecified,
994
+ # defaults to 256. The maximum value is 2048.
827
995
  # Corresponds to the JSON property `pageSize`
828
996
  # @return [Fixnum]
829
997
  attr_accessor :page_size
@@ -850,7 +1018,7 @@ module Google
850
1018
 
851
1019
  # The list of matching alignments sorted by mapped genomic coordinate, if any,
852
1020
  # ascending in position within the same reference. Unmapped reads, which have no
853
- # position, are returned last and are further sorted in ascending lexicographic
1021
+ # position, are returned contiguously and are sorted in ascending lexicographic
854
1022
  # order by fragment name.
855
1023
  # Corresponds to the JSON property `alignments`
856
1024
  # @return [Array<Google::Apis::GenomicsV1::Read>]
@@ -874,17 +1042,31 @@ module Google
874
1042
  end
875
1043
  end
876
1044
 
877
- # A read alignment describes a linear alignment of a string of DNA to a [
878
- # reference sequence][google.genomics.v1.Reference], in addition to metadata
879
- # about the fragment (the molecule of DNA sequenced) and the read (the bases
880
- # which were read by the sequencer). A read is equivalent to a line in a SAM
881
- # file. A read belongs to exactly one read group and exactly one [read group set]
882
- # [google.genomics.v1.ReadGroupSet]. ### Generating a reference-aligned sequence
883
- # string When interacting with mapped reads, it's often useful to produce a
884
- # string representing the local alignment of the read to reference. The
885
- # following pseudocode demonstrates one way of doing this: out = "" offset = 0
886
- # for c in read.alignment.cigar ` switch c.operation ` case "ALIGNMENT_MATCH", "
887
- # SEQUENCE_MATCH", "SEQUENCE_MISMATCH": out += read.alignedSequence[offset:
1045
+ # A read alignment describes a linear alignment of a string of DNA to a
1046
+ # reference sequence, in addition to metadata about the fragment (the molecule
1047
+ # of DNA sequenced) and the read (the bases which were read by the sequencer). A
1048
+ # read is equivalent to a line in a SAM file. A read belongs to exactly one read
1049
+ # group and exactly one read group set. For more genomics resource definitions,
1050
+ # see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/
1051
+ # fundamentals-of-google-genomics) ### Reverse-stranded reads Mapped reads (
1052
+ # reads having a non-null `alignment`) can be aligned to either the forward or
1053
+ # the reverse strand of their associated reference. Strandedness of a mapped
1054
+ # read is encoded by `alignment.position.reverseStrand`. If we consider the
1055
+ # reference to be a forward-stranded coordinate space of `[0, reference.length)`
1056
+ # with `0` as the left-most position and `reference.length` as the right-most
1057
+ # position, reads are always aligned left to right. That is, `alignment.position.
1058
+ # position` always refers to the left-most reference coordinate and `alignment.
1059
+ # cigar` describes the alignment of this read to the reference from left to
1060
+ # right. All per-base fields such as `alignedSequence` and `alignedQuality`
1061
+ # share this same left-to-right orientation; this is true of reads which are
1062
+ # aligned to either strand. For reverse-stranded reads, this means that `
1063
+ # alignedSequence` is the reverse complement of the bases that were originally
1064
+ # reported by the sequencing machine. ### Generating a reference-aligned
1065
+ # sequence string When interacting with mapped reads, it's often useful to
1066
+ # produce a string representing the local alignment of the read to reference.
1067
+ # The following pseudocode demonstrates one way of doing this: out = "" offset =
1068
+ # 0 for c in read.alignment.cigar ` switch c.operation ` case "ALIGNMENT_MATCH",
1069
+ # "SEQUENCE_MATCH", "SEQUENCE_MISMATCH": out += read.alignedSequence[offset:
888
1070
  # offset+c.operationLength] offset += c.operationLength break case "CLIP_SOFT", "
889
1071
  # INSERT": offset += c.operationLength break case "PAD": out += repeat("*", c.
890
1072
  # operationLength) break case "DELETE": out += repeat("-", c.operationLength)
@@ -905,14 +1087,15 @@ module Google
905
1087
  # @return [String]
906
1088
  attr_accessor :id
907
1089
 
908
- # The ID of the read group this read belongs to. (Every read must belong to
909
- # exactly one read group.)
1090
+ # The ID of the read group this read belongs to. A read belongs to exactly one
1091
+ # read group. This is a server-generated ID which is distinct from SAM's RG tag (
1092
+ # for that value, see ReadGroup.name).
910
1093
  # Corresponds to the JSON property `readGroupId`
911
1094
  # @return [String]
912
1095
  attr_accessor :read_group_id
913
1096
 
914
- # The ID of the read group set this read belongs to. (Every read must belong to
915
- # exactly one read group set.)
1097
+ # The ID of the read group set this read belongs to. A read belongs to exactly
1098
+ # one read group set.
916
1099
  # Corresponds to the JSON property `readGroupSetId`
917
1100
  # @return [String]
918
1101
  attr_accessor :read_group_set_id
@@ -923,13 +1106,13 @@ module Google
923
1106
  attr_accessor :fragment_name
924
1107
 
925
1108
  # The orientation and the distance between reads from the fragment are
926
- # consistent with the sequencing protocol (SAM flag 0x2)
1109
+ # consistent with the sequencing protocol (SAM flag 0x2).
927
1110
  # Corresponds to the JSON property `properPlacement`
928
1111
  # @return [Boolean]
929
1112
  attr_accessor :proper_placement
930
1113
  alias_method :proper_placement?, :proper_placement
931
1114
 
932
- # The fragment is a PCR or optical duplicate (SAM flag 0x400)
1115
+ # The fragment is a PCR or optical duplicate (SAM flag 0x400).
933
1116
  # Corresponds to the JSON property `duplicateFragment`
934
1117
  # @return [Boolean]
935
1118
  attr_accessor :duplicate_fragment
@@ -951,7 +1134,8 @@ module Google
951
1134
  # @return [Fixnum]
952
1135
  attr_accessor :number_reads
953
1136
 
954
- # SAM flag 0x200
1137
+ # Whether this read did not pass filters, such as platform or vendor quality
1138
+ # controls (SAM flag 0x200).
955
1139
  # Corresponds to the JSON property `failedVendorQualityChecks`
956
1140
  # @return [Boolean]
957
1141
  attr_accessor :failed_vendor_quality_checks
@@ -989,22 +1173,22 @@ module Google
989
1173
  attr_accessor :supplementary_alignment
990
1174
  alias_method :supplementary_alignment?, :supplementary_alignment
991
1175
 
992
- # The bases of the read sequence contained in this alignment record, *without
993
- # CIGAR operations applied*. `alignedSequence` and `alignedQuality` may be
994
- # shorter than the full read sequence and quality. This will occur if the
995
- # alignment is part of a chimeric alignment, or if the read was trimmed. When
996
- # this occurs, the CIGAR for this read will begin/end with a hard clip operator
997
- # that will indicate the length of the excised sequence.
1176
+ # The bases of the read sequence contained in this alignment record, **without
1177
+ # CIGAR operations applied** (equivalent to SEQ in SAM). `alignedSequence` and `
1178
+ # alignedQuality` may be shorter than the full read sequence and quality. This
1179
+ # will occur if the alignment is part of a chimeric alignment, or if the read
1180
+ # was trimmed. When this occurs, the CIGAR for this read will begin/end with a
1181
+ # hard clip operator that will indicate the length of the excised sequence.
998
1182
  # Corresponds to the JSON property `alignedSequence`
999
1183
  # @return [String]
1000
1184
  attr_accessor :aligned_sequence
1001
1185
 
1002
- # The quality of the read sequence contained in this alignment record. `
1003
- # alignedSequence` and `alignedQuality` may be shorter than the full read
1004
- # sequence and quality. This will occur if the alignment is part of a chimeric
1005
- # alignment, or if the read was trimmed. When this occurs, the CIGAR for this
1006
- # read will begin/end with a hard clip operator that will indicate the length of
1007
- # the excised sequence.
1186
+ # The quality of the read sequence contained in this alignment record (
1187
+ # equivalent to QUAL in SAM). `alignedSequence` and `alignedQuality` may be
1188
+ # shorter than the full read sequence and quality. This will occur if the
1189
+ # alignment is part of a chimeric alignment, or if the read was trimmed. When
1190
+ # this occurs, the CIGAR for this read will begin/end with a hard clip operator
1191
+ # that will indicate the length of the excised sequence.
1008
1192
  # Corresponds to the JSON property `alignedQuality`
1009
1193
  # @return [Array<Fixnum>]
1010
1194
  attr_accessor :aligned_quality
@@ -1063,7 +1247,8 @@ module Google
1063
1247
  attr_accessor :position
1064
1248
 
1065
1249
  # The mapping quality of this alignment. Represents how likely the read maps to
1066
- # this position as opposed to other locations.
1250
+ # this position as opposed to other locations. Specifically, this is -10 log10
1251
+ # Pr(mapping position is wrong), rounded to the nearest integer.
1067
1252
  # Corresponds to the JSON property `mappingQuality`
1068
1253
  # @return [Fixnum]
1069
1254
  attr_accessor :mapping_quality
@@ -1155,21 +1340,84 @@ module Google
1155
1340
  end
1156
1341
  end
1157
1342
 
1343
+ # The stream reads request.
1344
+ class StreamReadsRequest
1345
+ include Google::Apis::Core::Hashable
1346
+
1347
+ # The Google Developers Console project ID or number which will be billed for
1348
+ # this access. The caller must have WRITE access to this project. Required.
1349
+ # Corresponds to the JSON property `projectId`
1350
+ # @return [String]
1351
+ attr_accessor :project_id
1352
+
1353
+ # The ID of the read group set from which to stream reads.
1354
+ # Corresponds to the JSON property `readGroupSetId`
1355
+ # @return [String]
1356
+ attr_accessor :read_group_set_id
1357
+
1358
+ # The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to *,
1359
+ # only unmapped reads are returned.
1360
+ # Corresponds to the JSON property `referenceName`
1361
+ # @return [String]
1362
+ attr_accessor :reference_name
1363
+
1364
+ # The start position of the range on the reference, 0-based inclusive. If
1365
+ # specified, `referenceName` must also be specified.
1366
+ # Corresponds to the JSON property `start`
1367
+ # @return [String]
1368
+ attr_accessor :start
1369
+
1370
+ # The end position of the range on the reference, 0-based exclusive. If
1371
+ # specified, `referenceName` must also be specified.
1372
+ # Corresponds to the JSON property `end`
1373
+ # @return [String]
1374
+ attr_accessor :end
1375
+
1376
+ def initialize(**args)
1377
+ update!(**args)
1378
+ end
1379
+
1380
+ # Update properties of this object
1381
+ def update!(**args)
1382
+ @project_id = args[:project_id] unless args[:project_id].nil?
1383
+ @read_group_set_id = args[:read_group_set_id] unless args[:read_group_set_id].nil?
1384
+ @reference_name = args[:reference_name] unless args[:reference_name].nil?
1385
+ @start = args[:start] unless args[:start].nil?
1386
+ @end = args[:end] unless args[:end].nil?
1387
+ end
1388
+ end
1389
+
1390
+ #
1391
+ class StreamReadsResponse
1392
+ include Google::Apis::Core::Hashable
1393
+
1394
+ #
1395
+ # Corresponds to the JSON property `alignments`
1396
+ # @return [Array<Google::Apis::GenomicsV1::Read>]
1397
+ attr_accessor :alignments
1398
+
1399
+ def initialize(**args)
1400
+ update!(**args)
1401
+ end
1402
+
1403
+ # Update properties of this object
1404
+ def update!(**args)
1405
+ @alignments = args[:alignments] unless args[:alignments].nil?
1406
+ end
1407
+ end
1408
+
1158
1409
  #
1159
1410
  class SearchReferenceSetsRequest
1160
1411
  include Google::Apis::Core::Hashable
1161
1412
 
1162
- # If present, return references for which the `md5checksum` matches. See `
1163
- # ReferenceSet.md5checksum` for details.
1413
+ # If present, return reference sets for which the md5checksum matches exactly.
1164
1414
  # Corresponds to the JSON property `md5checksums`
1165
1415
  # @return [Array<String>]
1166
1416
  attr_accessor :md5checksums
1167
1417
 
1168
- # If present, return references for which the accession matches any of these
1169
- # strings. Best to give a version number, for example `GCF_000001405.26`. If
1170
- # only the main accession number is given then all records with that main
1171
- # accession will be returned, whichever version. Note that different versions
1172
- # will have different sequences.
1418
+ # If present, return reference sets for which a prefix of any of
1419
+ # sourceAccessions match any of these strings. Accession numbers typically have
1420
+ # a main number and a version, for example `NC_000001.11`.
1173
1421
  # Corresponds to the JSON property `accessions`
1174
1422
  # @return [Array<String>]
1175
1423
  attr_accessor :accessions
@@ -1187,7 +1435,8 @@ module Google
1187
1435
  # @return [String]
1188
1436
  attr_accessor :page_token
1189
1437
 
1190
- # Specifies the maximum number of results to return in a single page.
1438
+ # The maximum number of results to return in a single page. If unspecified,
1439
+ # defaults to 1024. The maximum value is 4096.
1191
1440
  # Corresponds to the JSON property `pageSize`
1192
1441
  # @return [Fixnum]
1193
1442
  attr_accessor :page_size
@@ -1237,7 +1486,9 @@ module Google
1237
1486
  # assembly for a species, such as `GRCh38` which is representative of the human
1238
1487
  # genome. A reference set defines a common coordinate space for comparing
1239
1488
  # reference-aligned experimental data. A reference set contains 1 or more
1240
- # references.
1489
+ # references. For more genomics resource definitions, see [Fundamentals of
1490
+ # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
1491
+ # genomics)
1241
1492
  class ReferenceSet
1242
1493
  include Google::Apis::Core::Hashable
1243
1494
 
@@ -1261,11 +1512,11 @@ module Google
1261
1512
  # @return [String]
1262
1513
  attr_accessor :md5checksum
1263
1514
 
1264
- # ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) indicating the
1265
- # species which this assembly is intended to model. Note that contained
1266
- # references may specify a different `ncbiTaxonId`, as assemblies may contain
1267
- # reference sequences which do not belong to the modeled species, e.g. EBV in a
1268
- # human reference genome.
1515
+ # ID from http://www.ncbi.nlm.nih.gov/taxonomy (for example, 9606 for human)
1516
+ # indicating the species which this reference set is intended to model. Note
1517
+ # that contained references may specify a different `ncbiTaxonId`, as assemblies
1518
+ # may contain reference sequences which do not belong to the modeled species,
1519
+ # for example EBV in a human reference genome.
1269
1520
  # Corresponds to the JSON property `ncbiTaxonId`
1270
1521
  # @return [Fixnum]
1271
1522
  attr_accessor :ncbi_taxon_id
@@ -1312,17 +1563,14 @@ module Google
1312
1563
  class SearchReferencesRequest
1313
1564
  include Google::Apis::Core::Hashable
1314
1565
 
1315
- # If present, return references for which the `md5checksum` matches. See `
1316
- # Reference.md5checksum` for construction details.
1566
+ # If present, return references for which the md5checksum matches exactly.
1317
1567
  # Corresponds to the JSON property `md5checksums`
1318
1568
  # @return [Array<String>]
1319
1569
  attr_accessor :md5checksums
1320
1570
 
1321
- # If present, return references for which the accession matches this string.
1322
- # Best to give a version number, for example `GCF_000001405.26`. If only the
1323
- # main accession number is given then all records with that main accession will
1324
- # be returned, whichever version. Note that different versions will have
1325
- # different sequences.
1571
+ # If present, return references for which a prefix of any of sourceAccessions
1572
+ # match any of these strings. Accession numbers typically have a main number and
1573
+ # a version, for example `GCF_000001405.26`.
1326
1574
  # Corresponds to the JSON property `accessions`
1327
1575
  # @return [Array<String>]
1328
1576
  attr_accessor :accessions
@@ -1339,7 +1587,8 @@ module Google
1339
1587
  # @return [String]
1340
1588
  attr_accessor :page_token
1341
1589
 
1342
- # Specifies the maximum number of results to return in a single page.
1590
+ # The maximum number of results to return in a single page. If unspecified,
1591
+ # defaults to 1024. The maximum value is 4096.
1343
1592
  # Corresponds to the JSON property `pageSize`
1344
1593
  # @return [Fixnum]
1345
1594
  attr_accessor :page_size
@@ -1388,7 +1637,9 @@ module Google
1388
1637
  # A reference is a canonical assembled DNA sequence, intended to act as a
1389
1638
  # reference coordinate space for other genomic annotations. A single reference
1390
1639
  # might represent the human chromosome 1 or mitochandrial DNA, for instance. A
1391
- # reference belongs to one or more reference sets.
1640
+ # reference belongs to one or more reference sets. For more genomics resource
1641
+ # definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/
1642
+ # genomics/fundamentals-of-google-genomics)
1392
1643
  class Reference
1393
1644
  include Google::Apis::Core::Hashable
1394
1645
 
@@ -1414,8 +1665,8 @@ module Google
1414
1665
  # @return [String]
1415
1666
  attr_accessor :name
1416
1667
 
1417
- # The URI from which the sequence was obtained. Specifies a FASTA format file/
1418
- # string with one name, sequence pair.
1668
+ # The URI from which the sequence was obtained. Typically specifies a FASTA
1669
+ # format file.
1419
1670
  # Corresponds to the JSON property `sourceUri`
1420
1671
  # @return [String]
1421
1672
  attr_accessor :source_uri
@@ -1426,8 +1677,7 @@ module Google
1426
1677
  # @return [Array<String>]
1427
1678
  attr_accessor :source_accessions
1428
1679
 
1429
- # ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) if not
1430
- # specified by the containing reference set.
1680
+ # ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human.
1431
1681
  # Corresponds to the JSON property `ncbiTaxonId`
1432
1682
  # @return [Fixnum]
1433
1683
  attr_accessor :ncbi_taxon_id
@@ -1530,7 +1780,9 @@ module Google
1530
1780
  end
1531
1781
 
1532
1782
  # A variant set is a collection of call sets and variants. It contains summary
1533
- # statistics of those contents. A variant set belongs to a dataset.
1783
+ # statistics of those contents. A variant set belongs to a dataset. For more
1784
+ # genomics resource definitions, see [Fundamentals of Google Genomics](https://
1785
+ # cloud.google.com/genomics/fundamentals-of-google-genomics)
1534
1786
  class VariantSet
1535
1787
  include Google::Apis::Core::Hashable
1536
1788
 
@@ -1544,6 +1796,18 @@ module Google
1544
1796
  # @return [String]
1545
1797
  attr_accessor :id
1546
1798
 
1799
+ # The reference set to which the variant set is mapped. The reference set
1800
+ # describes the alignment provenance of the variant set, while the `
1801
+ # referenceBounds` describe the shape of the actual variant data. The reference
1802
+ # set's reference names are a superset of those found in the `referenceBounds`.
1803
+ # For example, given a variant set that is mapped to the GRCh38 reference set
1804
+ # and contains a single variant on reference 'X', `referenceBounds` would
1805
+ # contain only an entry for 'X', while the associated reference set enumerates
1806
+ # all possible references: '1', '2', 'X', 'Y', 'MT', etc.
1807
+ # Corresponds to the JSON property `referenceSetId`
1808
+ # @return [String]
1809
+ attr_accessor :reference_set_id
1810
+
1547
1811
  # A list of all references used by the variants in a variant set with associated
1548
1812
  # coordinate upper bounds for each one.
1549
1813
  # Corresponds to the JSON property `referenceBounds`
@@ -1563,6 +1827,7 @@ module Google
1563
1827
  def update!(**args)
1564
1828
  @dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
1565
1829
  @id = args[:id] unless args[:id].nil?
1830
+ @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil?
1566
1831
  @reference_bounds = args[:reference_bounds] unless args[:reference_bounds].nil?
1567
1832
  @metadata = args[:metadata] unless args[:metadata].nil?
1568
1833
  end
@@ -1573,7 +1838,7 @@ module Google
1573
1838
  class ReferenceBound
1574
1839
  include Google::Apis::Core::Hashable
1575
1840
 
1576
- # The reference the bound is associate with.
1841
+ # The name of the reference associated with this ReferenceBound.
1577
1842
  # Corresponds to the JSON property `referenceName`
1578
1843
  # @return [String]
1579
1844
  attr_accessor :reference_name
@@ -1626,7 +1891,7 @@ module Google
1626
1891
  # The number of values that can be included in a field described by this
1627
1892
  # metadata.
1628
1893
  # Corresponds to the JSON property `number`
1629
- # @return [Fixnum]
1894
+ # @return [String]
1630
1895
  attr_accessor :number
1631
1896
 
1632
1897
  # A textual description of this metadata.
@@ -1721,7 +1986,8 @@ module Google
1721
1986
  # @return [String]
1722
1987
  attr_accessor :page_token
1723
1988
 
1724
- # The maximum number of variant sets to return in a request.
1989
+ # The maximum number of results to return in a single page. If unspecified,
1990
+ # defaults to 1024.
1725
1991
  # Corresponds to the JSON property `pageSize`
1726
1992
  # @return [Fixnum]
1727
1993
  attr_accessor :page_size
@@ -1813,14 +2079,16 @@ module Google
1813
2079
  # @return [String]
1814
2080
  attr_accessor :page_token
1815
2081
 
1816
- # The maximum number of variants to return. If unspecified, defaults to 5000.
2082
+ # The maximum number of variants to return in a single page. If unspecified,
2083
+ # defaults to 5000. The maximum value is 10000.
1817
2084
  # Corresponds to the JSON property `pageSize`
1818
2085
  # @return [Fixnum]
1819
2086
  attr_accessor :page_size
1820
2087
 
1821
- # The maximum number of calls to return. However, at least one variant will
1822
- # always be returned, even if it has more calls than this limit. If unspecified,
1823
- # defaults to 5000.
2088
+ # The maximum number of calls to return in a single page. Note that this limit
2089
+ # may be exceeded; at least one variant is always returned per page, even if it
2090
+ # has more calls than this limit. If unspecified, defaults to 5000. The maximum
2091
+ # value is 10000.
1824
2092
  # Corresponds to the JSON property `maxCalls`
1825
2093
  # @return [Fixnum]
1826
2094
  attr_accessor :max_calls
@@ -1872,11 +2140,12 @@ module Google
1872
2140
 
1873
2141
  # A variant represents a change in DNA sequence relative to a reference sequence.
1874
2142
  # For example, a variant could represent a SNP or an insertion. Variants belong
1875
- # to a variant set. Each of the calls on a variant represent a determination of
1876
- # genotype with respect to that variant. For example, a call might assign
1877
- # probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named
1878
- # NA12345. A call belongs to a call set, which contains related calls typically
1879
- # from one sample.
2143
+ # to a variant set. For more genomics resource definitions, see [Fundamentals of
2144
+ # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
2145
+ # genomics) Each of the calls on a variant represent a determination of genotype
2146
+ # with respect to that variant. For example, a call might assign probability of
2147
+ # 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call
2148
+ # belongs to a call set, which contains related calls typically from one sample.
1880
2149
  class Variant
1881
2150
  include Google::Apis::Core::Hashable
1882
2151
 
@@ -2043,31 +2312,6 @@ module Google
2043
2312
  end
2044
2313
  end
2045
2314
 
2046
- #
2047
- class MergeVariantsRequest
2048
- include Google::Apis::Core::Hashable
2049
-
2050
- # The destination variant set.
2051
- # Corresponds to the JSON property `variantSetId`
2052
- # @return [String]
2053
- attr_accessor :variant_set_id
2054
-
2055
- # The variants to be merged with existing variants.
2056
- # Corresponds to the JSON property `variants`
2057
- # @return [Array<Google::Apis::GenomicsV1::Variant>]
2058
- attr_accessor :variants
2059
-
2060
- def initialize(**args)
2061
- update!(**args)
2062
- end
2063
-
2064
- # Update properties of this object
2065
- def update!(**args)
2066
- @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil?
2067
- @variants = args[:variants] unless args[:variants].nil?
2068
- end
2069
- end
2070
-
2071
2315
  # The call set search request.
2072
2316
  class SearchCallSetsRequest
2073
2317
  include Google::Apis::Core::Hashable
@@ -2090,7 +2334,8 @@ module Google
2090
2334
  # @return [String]
2091
2335
  attr_accessor :page_token
2092
2336
 
2093
- # The maximum number of call sets to return. If unspecified, defaults to 1000.
2337
+ # The maximum number of results to return in a single page. If unspecified,
2338
+ # defaults to 1024.
2094
2339
  # Corresponds to the JSON property `pageSize`
2095
2340
  # @return [Fixnum]
2096
2341
  attr_accessor :page_size
@@ -2136,7 +2381,9 @@ module Google
2136
2381
  end
2137
2382
 
2138
2383
  # A call set is a collection of variant calls, typically for one sample. It
2139
- # belongs to a variant set.
2384
+ # belongs to a variant set. For more genomics resource definitions, see [
2385
+ # Fundamentals of Google Genomics](https://cloud.google.com/genomics/
2386
+ # fundamentals-of-google-genomics)
2140
2387
  class CallSet
2141
2388
  include Google::Apis::Core::Hashable
2142
2389
 
@@ -2189,6 +2436,78 @@ module Google
2189
2436
  end
2190
2437
  end
2191
2438
 
2439
+ # The stream variants request.
2440
+ class StreamVariantsRequest
2441
+ include Google::Apis::Core::Hashable
2442
+
2443
+ # The Google Developers Console project ID or number which will be billed for
2444
+ # this access. The caller must have WRITE access to this project. Required.
2445
+ # Corresponds to the JSON property `projectId`
2446
+ # @return [String]
2447
+ attr_accessor :project_id
2448
+
2449
+ # The variant set ID from which to stream variants.
2450
+ # Corresponds to the JSON property `variantSetId`
2451
+ # @return [String]
2452
+ attr_accessor :variant_set_id
2453
+
2454
+ # Only return variant calls which belong to call sets with these IDs. Leaving
2455
+ # this blank returns all variant calls.
2456
+ # Corresponds to the JSON property `callSetIds`
2457
+ # @return [Array<String>]
2458
+ attr_accessor :call_set_ids
2459
+
2460
+ # Required. Only return variants in this reference sequence.
2461
+ # Corresponds to the JSON property `referenceName`
2462
+ # @return [String]
2463
+ attr_accessor :reference_name
2464
+
2465
+ # The beginning of the window (0-based, inclusive) for which overlapping
2466
+ # variants should be returned.
2467
+ # Corresponds to the JSON property `start`
2468
+ # @return [String]
2469
+ attr_accessor :start
2470
+
2471
+ # The end of the window (0-based, exclusive) for which overlapping variants
2472
+ # should be returned.
2473
+ # Corresponds to the JSON property `end`
2474
+ # @return [String]
2475
+ attr_accessor :end
2476
+
2477
+ def initialize(**args)
2478
+ update!(**args)
2479
+ end
2480
+
2481
+ # Update properties of this object
2482
+ def update!(**args)
2483
+ @project_id = args[:project_id] unless args[:project_id].nil?
2484
+ @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil?
2485
+ @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil?
2486
+ @reference_name = args[:reference_name] unless args[:reference_name].nil?
2487
+ @start = args[:start] unless args[:start].nil?
2488
+ @end = args[:end] unless args[:end].nil?
2489
+ end
2490
+ end
2491
+
2492
+ #
2493
+ class StreamVariantsResponse
2494
+ include Google::Apis::Core::Hashable
2495
+
2496
+ #
2497
+ # Corresponds to the JSON property `variants`
2498
+ # @return [Array<Google::Apis::GenomicsV1::Variant>]
2499
+ attr_accessor :variants
2500
+
2501
+ def initialize(**args)
2502
+ update!(**args)
2503
+ end
2504
+
2505
+ # Update properties of this object
2506
+ def update!(**args)
2507
+ @variants = args[:variants] unless args[:variants].nil?
2508
+ end
2509
+ end
2510
+
2192
2511
  # The read group set import response.
2193
2512
  class ImportReadGroupSetsResponse
2194
2513
  include Google::Apis::Core::Hashable
@@ -2212,7 +2531,7 @@ module Google
2212
2531
  class ImportVariantsResponse
2213
2532
  include Google::Apis::Core::Hashable
2214
2533
 
2215
- # IDs of the call sets that were created.
2534
+ # IDs of the call sets created during the import.
2216
2535
  # Corresponds to the JSON property `callSetIds`
2217
2536
  # @return [Array<String>]
2218
2537
  attr_accessor :call_set_ids
@@ -2227,7 +2546,7 @@ module Google
2227
2546
  end
2228
2547
  end
2229
2548
 
2230
- # Metadata describing an [Operation][google.longrunning.Operation].
2549
+ # Metadata describing an Operation.
2231
2550
  class OperationMetadata
2232
2551
  include Google::Apis::Core::Hashable
2233
2552
 
@@ -2267,7 +2586,7 @@ module Google
2267
2586
  end
2268
2587
  end
2269
2588
 
2270
- # An event that occurred during an [Operation][google.longrunning.Operation].
2589
+ # An event that occurred during an Operation.
2271
2590
  class OperationEvent
2272
2591
  include Google::Apis::Core::Hashable
2273
2592