google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -312,15 +312,19 @@ module Google
312
312
  # @private
313
313
  class Representation < Google::Apis::Core::JsonRepresentation
314
314
  property :app_id, as: 'appId'
315
+ property :auth_flow_type, as: 'authFlowType'
315
316
  property :client_id, as: 'clientId'
316
317
  property :context, as: 'context'
317
318
  property :continue_uri, as: 'continueUri'
319
+ hash :custom_parameter, as: 'customParameter'
320
+ property :hosted_domain, as: 'hostedDomain'
318
321
  property :identifier, as: 'identifier'
319
322
  property :oauth_consumer_key, as: 'oauthConsumerKey'
320
323
  property :oauth_scope, as: 'oauthScope'
321
324
  property :openid_realm, as: 'openidRealm'
322
325
  property :ota_app, as: 'otaApp'
323
326
  property :provider_id, as: 'providerId'
327
+ property :session_id, as: 'sessionId'
324
328
  end
325
329
  end
326
330
 
@@ -339,6 +343,7 @@ module Google
339
343
  property :delegated_project_number, as: 'delegatedProjectNumber'
340
344
  property :max_results, as: 'maxResults'
341
345
  property :next_page_token, as: 'nextPageToken'
346
+ property :target_project_id, as: 'targetProjectId'
342
347
  end
343
348
  end
344
349
 
@@ -360,6 +365,7 @@ module Google
360
365
  collection :authorized_domains, as: 'authorizedDomains'
361
366
  property :change_email_template, as: 'changeEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
362
367
 
368
+ property :dynamic_links_domain, as: 'dynamicLinksDomain'
363
369
  property :enable_anonymous_user, as: 'enableAnonymousUser'
364
370
  collection :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV3::IdpConfig, decorator: Google::Apis::IdentitytoolkitV3::IdpConfig::Representation
365
371
 
@@ -389,6 +395,7 @@ module Google
389
395
  class Representation < Google::Apis::Core::JsonRepresentation
390
396
  property :captcha_challenge, as: 'captchaChallenge'
391
397
  property :captcha_response, as: 'captchaResponse'
398
+ property :created_at, as: 'createdAt'
392
399
  property :delegated_project_number, as: 'delegatedProjectNumber'
393
400
  collection :delete_attribute, as: 'deleteAttribute'
394
401
  collection :delete_provider, as: 'deleteProvider'
@@ -398,6 +405,7 @@ module Google
398
405
  property :email_verified, as: 'emailVerified'
399
406
  property :id_token, as: 'idToken'
400
407
  property :instance_id, as: 'instanceId'
408
+ property :last_login_at, as: 'lastLoginAt'
401
409
  property :local_id, as: 'localId'
402
410
  property :oob_code, as: 'oobCode'
403
411
  property :password, as: 'password'
@@ -458,23 +466,30 @@ module Google
458
466
  class Representation < Google::Apis::Core::JsonRepresentation
459
467
  property :captcha_challenge, as: 'captchaChallenge'
460
468
  property :captcha_response, as: 'captchaResponse'
469
+ property :disabled, as: 'disabled'
461
470
  property :display_name, as: 'displayName'
462
471
  property :email, as: 'email'
472
+ property :email_verified, as: 'emailVerified'
463
473
  property :id_token, as: 'idToken'
464
474
  property :instance_id, as: 'instanceId'
475
+ property :local_id, as: 'localId'
465
476
  property :password, as: 'password'
477
+ property :photo_url, as: 'photoUrl'
466
478
  end
467
479
  end
468
480
 
469
481
  class UploadAccountRequest
470
482
  # @private
471
483
  class Representation < Google::Apis::Core::JsonRepresentation
484
+ property :allow_overwrite, as: 'allowOverwrite'
472
485
  property :delegated_project_number, as: 'delegatedProjectNumber'
473
486
  property :hash_algorithm, as: 'hashAlgorithm'
474
487
  property :memory_cost, as: 'memoryCost'
475
488
  property :rounds, as: 'rounds'
476
489
  property :salt_separator, :base64 => true, as: 'saltSeparator'
490
+ property :sanity_check, as: 'sanityCheck'
477
491
  property :signer_key, :base64 => true, as: 'signerKey'
492
+ property :target_project_id, as: 'targetProjectId'
478
493
  collection :users, as: 'users', class: Google::Apis::IdentitytoolkitV3::UserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::Representation
479
494
 
480
495
  end
@@ -483,12 +498,14 @@ module Google
483
498
  class VerifyAssertionRequest
484
499
  # @private
485
500
  class Representation < Google::Apis::Core::JsonRepresentation
501
+ property :auto_create, as: 'autoCreate'
486
502
  property :delegated_project_number, as: 'delegatedProjectNumber'
487
503
  property :id_token, as: 'idToken'
488
504
  property :instance_id, as: 'instanceId'
489
505
  property :pending_id_token, as: 'pendingIdToken'
490
506
  property :post_body, as: 'postBody'
491
507
  property :request_uri, as: 'requestUri'
508
+ property :return_idp_credential, as: 'returnIdpCredential'
492
509
  property :return_refresh_token, as: 'returnRefreshToken'
493
510
  property :return_secure_token, as: 'returnSecureToken'
494
511
  property :session_id, as: 'sessionId'
@@ -528,15 +545,23 @@ module Google
528
545
  property :experiment_percent, as: 'experimentPercent'
529
546
  property :provider, as: 'provider'
530
547
  property :secret, as: 'secret'
548
+ collection :whitelisted_audiences, as: 'whitelistedAudiences'
531
549
  end
532
550
  end
533
551
 
534
552
  class Relyingparty
535
553
  # @private
536
554
  class Representation < Google::Apis::Core::JsonRepresentation
555
+ property :android_install_app, as: 'androidInstallApp'
556
+ property :android_minimum_version, as: 'androidMinimumVersion'
557
+ property :android_package_name, as: 'androidPackageName'
558
+ property :can_handle_code_in_app, as: 'canHandleCodeInApp'
537
559
  property :captcha_resp, as: 'captchaResp'
538
560
  property :challenge, as: 'challenge'
561
+ property :continue_url, as: 'continueUrl'
539
562
  property :email, as: 'email'
563
+ property :i_os_app_store_id, as: 'iOSAppStoreId'
564
+ property :i_os_bundle_id, as: 'iOSBundleId'
540
565
  property :id_token, as: 'idToken'
541
566
  property :kind, as: 'kind'
542
567
  property :new_email, as: 'newEmail'
@@ -550,6 +575,8 @@ module Google
550
575
  class Representation < Google::Apis::Core::JsonRepresentation
551
576
  property :email, as: 'email'
552
577
  property :kind, as: 'kind'
578
+ property :new_email, as: 'newEmail'
579
+ property :request_type, as: 'requestType'
553
580
  end
554
581
  end
555
582
 
@@ -558,6 +585,7 @@ module Google
558
585
  class Representation < Google::Apis::Core::JsonRepresentation
559
586
  property :display_name, as: 'displayName'
560
587
  property :email, as: 'email'
588
+ property :email_verified, as: 'emailVerified'
561
589
  property :expires_in, as: 'expiresIn'
562
590
  property :id_token, as: 'idToken'
563
591
  property :kind, as: 'kind'
@@ -614,17 +642,22 @@ module Google
614
642
  class UserInfo
615
643
  # @private
616
644
  class Representation < Google::Apis::Core::JsonRepresentation
645
+ property :created_at, as: 'createdAt'
646
+ property :custom_auth, as: 'customAuth'
617
647
  property :disabled, as: 'disabled'
618
648
  property :display_name, as: 'displayName'
619
649
  property :email, as: 'email'
620
650
  property :email_verified, as: 'emailVerified'
651
+ property :last_login_at, as: 'lastLoginAt'
621
652
  property :local_id, as: 'localId'
622
653
  property :password_hash, :base64 => true, as: 'passwordHash'
623
654
  property :password_updated_at, as: 'passwordUpdatedAt'
624
655
  property :photo_url, as: 'photoUrl'
625
656
  collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo::Representation
626
657
 
658
+ property :raw_password, as: 'rawPassword'
627
659
  property :salt, :base64 => true, as: 'salt'
660
+ property :screen_name, as: 'screenName'
628
661
  property :valid_since, as: 'validSince'
629
662
  property :version, as: 'version'
630
663
  end
@@ -638,6 +671,7 @@ module Google
638
671
  property :photo_url, as: 'photoUrl'
639
672
  property :provider_id, as: 'providerId'
640
673
  property :raw_id, as: 'rawId'
674
+ property :screen_name, as: 'screenName'
641
675
  end
642
676
  end
643
677
  end
@@ -654,12 +688,14 @@ module Google
654
688
  property :email, as: 'email'
655
689
  property :email_recycled, as: 'emailRecycled'
656
690
  property :email_verified, as: 'emailVerified'
691
+ property :error_message, as: 'errorMessage'
657
692
  property :expires_in, as: 'expiresIn'
658
693
  property :federated_id, as: 'federatedId'
659
694
  property :first_name, as: 'firstName'
660
695
  property :full_name, as: 'fullName'
661
696
  property :id_token, as: 'idToken'
662
697
  property :input_email, as: 'inputEmail'
698
+ property :is_new_user, as: 'isNewUser'
663
699
  property :kind, as: 'kind'
664
700
  property :language, as: 'language'
665
701
  property :last_name, as: 'lastName'
@@ -677,7 +713,9 @@ module Google
677
713
  property :original_email, as: 'originalEmail'
678
714
  property :photo_url, as: 'photoUrl'
679
715
  property :provider_id, as: 'providerId'
716
+ property :raw_user_info, as: 'rawUserInfo'
680
717
  property :refresh_token, as: 'refreshToken'
718
+ property :screen_name, as: 'screenName'
681
719
  property :time_zone, as: 'timeZone'
682
720
  collection :verified_provider, as: 'verifiedProvider'
683
721
  end
@@ -20,13 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Knowledge Graph Search API
22
22
  #
23
- # Knowledge Graph Search API allows developers to search the Google Knowledge
24
- # Graph for entities.
23
+ # Searches the Google Knowledge Graph for entities.
25
24
  #
26
25
  # @see https://developers.google.com/knowledge-graph/
27
26
  module KgsearchV1
28
27
  VERSION = 'V1'
29
- REVISION = '20151215'
28
+ REVISION = '20170109'
30
29
  end
31
30
  end
32
31
  end
@@ -22,36 +22,36 @@ module Google
22
22
  module Apis
23
23
  module KgsearchV1
24
24
 
25
- # Response message includes the context and a list of matching results which
26
- # contain the detail of associated entities.
25
+ # Response message includes the context and a list of matching results
26
+ # which contain the detail of associated entities.
27
27
  class SearchResponse
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # The local context applicable for the response. See more details at http://www.
31
- # w3.org/TR/json-ld/#context-definitions.
32
- # Corresponds to the JSON property `context`
30
+ # The local context applicable for the response. See more details at
31
+ # http://www.w3.org/TR/json-ld/#context-definitions.
32
+ # Corresponds to the JSON property `@context`
33
33
  # @return [Object]
34
- attr_accessor :context
35
-
36
- # The schema type of top-level JSON-LD object, e.g. ItemList.
37
- # Corresponds to the JSON property `type`
38
- # @return [Object]
39
- attr_accessor :type
34
+ attr_accessor :_context
40
35
 
41
36
  # The item list of search results.
42
37
  # Corresponds to the JSON property `itemListElement`
43
38
  # @return [Array<Object>]
44
39
  attr_accessor :item_list_element
45
40
 
41
+ # The schema type of top-level JSON-LD object, e.g. ItemList.
42
+ # Corresponds to the JSON property `@type`
43
+ # @return [Object]
44
+ attr_accessor :_type
45
+
46
46
  def initialize(**args)
47
47
  update!(**args)
48
48
  end
49
49
 
50
50
  # Update properties of this object
51
51
  def update!(**args)
52
- @context = args[:context] if args.key?(:context)
53
- @type = args[:type] if args.key?(:type)
52
+ @_context = args[:_context] if args.key?(:_context)
54
53
  @item_list_element = args[:item_list_element] if args.key?(:item_list_element)
54
+ @_type = args[:_type] if args.key?(:_type)
55
55
  end
56
56
  end
57
57
  end
@@ -31,9 +31,9 @@ module Google
31
31
  class SearchResponse
32
32
  # @private
33
33
  class Representation < Google::Apis::Core::JsonRepresentation
34
- property :context, as: 'context'
35
- property :type, as: 'type'
34
+ property :_context, as: '@context'
36
35
  collection :item_list_element, as: 'itemListElement'
36
+ property :_type, as: '@type'
37
37
  end
38
38
  end
39
39
  end
@@ -22,8 +22,7 @@ module Google
22
22
  module KgsearchV1
23
23
  # Knowledge Graph Search API
24
24
  #
25
- # Knowledge Graph Search API allows developers to search the Google Knowledge
26
- # Graph for entities.
25
+ # Searches the Google Knowledge Graph for entities.
27
26
  #
28
27
  # @example
29
28
  # require 'google/apis/kgsearch_v1'
@@ -47,30 +46,33 @@ module Google
47
46
  super('https://kgsearch.googleapis.com/', '')
48
47
  end
49
48
 
50
- # Searches Knowledge Graph for entities that match the constraints. A list of
51
- # matched entities will be returned in response, which will be in JSON-LD format
52
- # and compatible with http://schema.org
53
- # @param [String] query
54
- # The literal query string for search.
49
+ # Searches Knowledge Graph for entities that match the constraints.
50
+ # A list of matched entities will be returned in response, which will be in
51
+ # JSON-LD format and compatible with http://schema.org
52
+ # @param [Array<String>, String] languages
53
+ # The list of language codes (defined in ISO 693) to run the query with,
54
+ # e.g. 'en'.
55
55
  # @param [Array<String>, String] ids
56
56
  # The list of entity id to be used for search instead of query string.
57
- # @param [Array<String>, String] languages
58
- # The list of language codes (defined in ISO 693) to run the query with, e.g. '
59
- # en'.
57
+ # To specify multiple ids in the HTTP request, repeat the parameter in the
58
+ # URL as in ...?ids=A&ids=B
59
+ # @param [Fixnum] limit
60
+ # Limits the number of entities to be returned.
61
+ # @param [Boolean] prefix
62
+ # Enables prefix match against names and aliases of entities
63
+ # @param [String] query
64
+ # The literal query string for search.
60
65
  # @param [Array<String>, String] types
61
- # Restricts returned entities with these types, e.g. Person (as defined in http:/
62
- # /schema.org/Person).
66
+ # Restricts returned entities with these types, e.g. Person
67
+ # (as defined in http://schema.org/Person). If multiple types are specified,
68
+ # returned entities will contain one or more of these types.
63
69
  # @param [Boolean] indent
64
70
  # Enables indenting of json results.
65
- # @param [Boolean] prefix
66
- # Enables prefix match against names and aliases of entities
67
- # @param [Fixnum] limit
68
- # Limits the number of entities to be returned.
69
- # @param [String] fields
70
- # Selector specifying which fields to include in a partial response.
71
71
  # @param [String] quota_user
72
72
  # Available to use for quota purposes for server-side applications. Can be any
73
73
  # arbitrary string assigned to a user, but should not exceed 40 characters.
74
+ # @param [String] fields
75
+ # Selector specifying which fields to include in a partial response.
74
76
  # @param [Google::Apis::RequestOptions] options
75
77
  # Request-specific options
76
78
  #
@@ -83,19 +85,19 @@ module Google
83
85
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
84
86
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
85
87
  # @raise [Google::Apis::AuthorizationError] Authorization is required
86
- def search_entities(query: nil, ids: nil, languages: nil, types: nil, indent: nil, prefix: nil, limit: nil, fields: nil, quota_user: nil, options: nil, &block)
88
+ def search_entities(languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, types: nil, indent: nil, quota_user: nil, fields: nil, options: nil, &block)
87
89
  command = make_simple_command(:get, 'v1/entities:search', options)
88
90
  command.response_representation = Google::Apis::KgsearchV1::SearchResponse::Representation
89
91
  command.response_class = Google::Apis::KgsearchV1::SearchResponse
90
- command.query['query'] = query unless query.nil?
91
- command.query['ids'] = ids unless ids.nil?
92
92
  command.query['languages'] = languages unless languages.nil?
93
+ command.query['ids'] = ids unless ids.nil?
94
+ command.query['limit'] = limit unless limit.nil?
95
+ command.query['prefix'] = prefix unless prefix.nil?
96
+ command.query['query'] = query unless query.nil?
93
97
  command.query['types'] = types unless types.nil?
94
98
  command.query['indent'] = indent unless indent.nil?
95
- command.query['prefix'] = prefix unless prefix.nil?
96
- command.query['limit'] = limit unless limit.nil?
97
- command.query['fields'] = fields unless fields.nil?
98
99
  command.query['quotaUser'] = quota_user unless quota_user.nil?
100
+ command.query['fields'] = fields unless fields.nil?
99
101
  execute_or_queue_command(command, &block)
100
102
  end
101
103
 
@@ -0,0 +1,36 @@
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/language_v1beta1/service.rb'
16
+ require 'google/apis/language_v1beta1/classes.rb'
17
+ require 'google/apis/language_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Natural Language API
22
+ #
23
+ # Google Cloud Natural Language API provides natural language understanding
24
+ # technologies to developers. Examples include sentiment analysis, entity
25
+ # recognition, and text annotations.
26
+ #
27
+ # @see https://cloud.google.com/natural-language/
28
+ module LanguageV1beta1
29
+ VERSION = 'V1beta1'
30
+ REVISION = '20170320'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,757 @@
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 LanguageV1beta1
24
+
25
+ # Represents the smallest syntactic building block of the text.
26
+ class Token
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents part of speech information for a token.
30
+ # Corresponds to the JSON property `partOfSpeech`
31
+ # @return [Google::Apis::LanguageV1beta1::PartOfSpeech]
32
+ attr_accessor :part_of_speech
33
+
34
+ # Represents an output piece of text.
35
+ # Corresponds to the JSON property `text`
36
+ # @return [Google::Apis::LanguageV1beta1::TextSpan]
37
+ attr_accessor :text
38
+
39
+ # Represents dependency parse tree information for a token.
40
+ # Corresponds to the JSON property `dependencyEdge`
41
+ # @return [Google::Apis::LanguageV1beta1::DependencyEdge]
42
+ attr_accessor :dependency_edge
43
+
44
+ # [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
45
+ # Corresponds to the JSON property `lemma`
46
+ # @return [String]
47
+ attr_accessor :lemma
48
+
49
+ def initialize(**args)
50
+ update!(**args)
51
+ end
52
+
53
+ # Update properties of this object
54
+ def update!(**args)
55
+ @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
56
+ @text = args[:text] if args.key?(:text)
57
+ @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge)
58
+ @lemma = args[:lemma] if args.key?(:lemma)
59
+ end
60
+ end
61
+
62
+ # Represents an output piece of text.
63
+ class TextSpan
64
+ include Google::Apis::Core::Hashable
65
+
66
+ # The content of the output text.
67
+ # Corresponds to the JSON property `content`
68
+ # @return [String]
69
+ attr_accessor :content
70
+
71
+ # The API calculates the beginning offset of the content in the original
72
+ # document according to the EncodingType specified in the API request.
73
+ # Corresponds to the JSON property `beginOffset`
74
+ # @return [Fixnum]
75
+ attr_accessor :begin_offset
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @content = args[:content] if args.key?(:content)
84
+ @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
85
+ end
86
+ end
87
+
88
+ # The `Status` type defines a logical error model that is suitable for different
89
+ # programming environments, including REST APIs and RPC APIs. It is used by
90
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
91
+ # - Simple to use and understand for most users
92
+ # - Flexible enough to meet unexpected needs
93
+ # # Overview
94
+ # The `Status` message contains three pieces of data: error code, error message,
95
+ # and error details. The error code should be an enum value of
96
+ # google.rpc.Code, but it may accept additional error codes if needed. The
97
+ # error message should be a developer-facing English message that helps
98
+ # developers *understand* and *resolve* the error. If a localized user-facing
99
+ # error message is needed, put the localized message in the error details or
100
+ # localize it in the client. The optional error details may contain arbitrary
101
+ # information about the error. There is a predefined set of error detail types
102
+ # in the package `google.rpc` which can be used for common error conditions.
103
+ # # Language mapping
104
+ # The `Status` message is the logical representation of the error model, but it
105
+ # is not necessarily the actual wire format. When the `Status` message is
106
+ # exposed in different client libraries and different wire protocols, it can be
107
+ # mapped differently. For example, it will likely be mapped to some exceptions
108
+ # in Java, but more likely mapped to some error codes in C.
109
+ # # Other uses
110
+ # The error model and the `Status` message can be used in a variety of
111
+ # environments, either with or without APIs, to provide a
112
+ # consistent developer experience across different environments.
113
+ # Example uses of this error model include:
114
+ # - Partial errors. If a service needs to return partial errors to the client,
115
+ # it may embed the `Status` in the normal response to indicate the partial
116
+ # errors.
117
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
118
+ # have a `Status` message for error reporting purpose.
119
+ # - Batch operations. If a client uses batch request and batch response, the
120
+ # `Status` message should be used directly inside batch response, one for
121
+ # each error sub-response.
122
+ # - Asynchronous operations. If an API call embeds asynchronous operation
123
+ # results in its response, the status of those operations should be
124
+ # represented directly using the `Status` message.
125
+ # - Logging. If some API errors are stored in logs, the message `Status` could
126
+ # be used directly after any stripping needed for security/privacy reasons.
127
+ class Status
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # A list of messages that carry the error details. There will be a
131
+ # common set of message types for APIs to use.
132
+ # Corresponds to the JSON property `details`
133
+ # @return [Array<Hash<String,Object>>]
134
+ attr_accessor :details
135
+
136
+ # The status code, which should be an enum value of google.rpc.Code.
137
+ # Corresponds to the JSON property `code`
138
+ # @return [Fixnum]
139
+ attr_accessor :code
140
+
141
+ # A developer-facing error message, which should be in English. Any
142
+ # user-facing error message should be localized and sent in the
143
+ # google.rpc.Status.details field, or localized by the client.
144
+ # Corresponds to the JSON property `message`
145
+ # @return [String]
146
+ attr_accessor :message
147
+
148
+ def initialize(**args)
149
+ update!(**args)
150
+ end
151
+
152
+ # Update properties of this object
153
+ def update!(**args)
154
+ @details = args[:details] if args.key?(:details)
155
+ @code = args[:code] if args.key?(:code)
156
+ @message = args[:message] if args.key?(:message)
157
+ end
158
+ end
159
+
160
+ # Represents a mention for an entity in the text. Currently, proper noun
161
+ # mentions are supported.
162
+ class EntityMention
163
+ include Google::Apis::Core::Hashable
164
+
165
+ # Represents an output piece of text.
166
+ # Corresponds to the JSON property `text`
167
+ # @return [Google::Apis::LanguageV1beta1::TextSpan]
168
+ attr_accessor :text
169
+
170
+ # The type of the entity mention.
171
+ # Corresponds to the JSON property `type`
172
+ # @return [String]
173
+ attr_accessor :type
174
+
175
+ def initialize(**args)
176
+ update!(**args)
177
+ end
178
+
179
+ # Update properties of this object
180
+ def update!(**args)
181
+ @text = args[:text] if args.key?(:text)
182
+ @type = args[:type] if args.key?(:type)
183
+ end
184
+ end
185
+
186
+ # All available features for sentiment, syntax, and semantic analysis.
187
+ # Setting each one to true will enable that specific analysis for the input.
188
+ class Features
189
+ include Google::Apis::Core::Hashable
190
+
191
+ # Extract syntax information.
192
+ # Corresponds to the JSON property `extractSyntax`
193
+ # @return [Boolean]
194
+ attr_accessor :extract_syntax
195
+ alias_method :extract_syntax?, :extract_syntax
196
+
197
+ # Extract document-level sentiment.
198
+ # Corresponds to the JSON property `extractDocumentSentiment`
199
+ # @return [Boolean]
200
+ attr_accessor :extract_document_sentiment
201
+ alias_method :extract_document_sentiment?, :extract_document_sentiment
202
+
203
+ # Extract entities.
204
+ # Corresponds to the JSON property `extractEntities`
205
+ # @return [Boolean]
206
+ attr_accessor :extract_entities
207
+ alias_method :extract_entities?, :extract_entities
208
+
209
+ def initialize(**args)
210
+ update!(**args)
211
+ end
212
+
213
+ # Update properties of this object
214
+ def update!(**args)
215
+ @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
216
+ @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
217
+ @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
218
+ end
219
+ end
220
+
221
+ # Represents a sentence in the input document.
222
+ class Sentence
223
+ include Google::Apis::Core::Hashable
224
+
225
+ # Represents an output piece of text.
226
+ # Corresponds to the JSON property `text`
227
+ # @return [Google::Apis::LanguageV1beta1::TextSpan]
228
+ attr_accessor :text
229
+
230
+ # Represents the feeling associated with the entire text or entities in
231
+ # the text.
232
+ # Corresponds to the JSON property `sentiment`
233
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
234
+ attr_accessor :sentiment
235
+
236
+ def initialize(**args)
237
+ update!(**args)
238
+ end
239
+
240
+ # Update properties of this object
241
+ def update!(**args)
242
+ @text = args[:text] if args.key?(:text)
243
+ @sentiment = args[:sentiment] if args.key?(:sentiment)
244
+ end
245
+ end
246
+
247
+ # ################################################################ #
248
+ # Represents the input to API methods.
249
+ class Document
250
+ include Google::Apis::Core::Hashable
251
+
252
+ # The language of the document (if not specified, the language is
253
+ # automatically detected). Both ISO and BCP-47 language codes are
254
+ # accepted.<br>
255
+ # **Current Language Restrictions:**
256
+ # * Only English, Spanish, and Japanese textual content are supported.
257
+ # If the language (either specified by the caller or automatically detected)
258
+ # is not supported by the called API method, an `INVALID_ARGUMENT` error
259
+ # is returned.
260
+ # Corresponds to the JSON property `language`
261
+ # @return [String]
262
+ attr_accessor :language
263
+
264
+ # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
265
+ # returns an `INVALID_ARGUMENT` error.
266
+ # Corresponds to the JSON property `type`
267
+ # @return [String]
268
+ attr_accessor :type
269
+
270
+ # The content of the input in string format.
271
+ # Corresponds to the JSON property `content`
272
+ # @return [String]
273
+ attr_accessor :content
274
+
275
+ # The Google Cloud Storage URI where the file content is located.
276
+ # This URI must be of the form: gs://bucket_name/object_name. For more
277
+ # details, see https://cloud.google.com/storage/docs/reference-uris.
278
+ # NOTE: Cloud Storage object versioning is not supported.
279
+ # Corresponds to the JSON property `gcsContentUri`
280
+ # @return [String]
281
+ attr_accessor :gcs_content_uri
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @language = args[:language] if args.key?(:language)
290
+ @type = args[:type] if args.key?(:type)
291
+ @content = args[:content] if args.key?(:content)
292
+ @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
293
+ end
294
+ end
295
+
296
+ # Represents the feeling associated with the entire text or entities in
297
+ # the text.
298
+ class Sentiment
299
+ include Google::Apis::Core::Hashable
300
+
301
+ # DEPRECATED FIELD - This field is being deprecated in
302
+ # favor of score. Please refer to our documentation at
303
+ # https://cloud.google.com/natural-language/docs for more information.
304
+ # Corresponds to the JSON property `polarity`
305
+ # @return [Float]
306
+ attr_accessor :polarity
307
+
308
+ # Sentiment score between -1.0 (negative sentiment) and 1.0
309
+ # (positive sentiment).
310
+ # Corresponds to the JSON property `score`
311
+ # @return [Float]
312
+ attr_accessor :score
313
+
314
+ # A non-negative number in the [0, +inf) range, which represents
315
+ # the absolute magnitude of sentiment regardless of score (positive or
316
+ # negative).
317
+ # Corresponds to the JSON property `magnitude`
318
+ # @return [Float]
319
+ attr_accessor :magnitude
320
+
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
324
+
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @polarity = args[:polarity] if args.key?(:polarity)
328
+ @score = args[:score] if args.key?(:score)
329
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
330
+ end
331
+ end
332
+
333
+ # The entity analysis request message.
334
+ class AnalyzeEntitiesRequest
335
+ include Google::Apis::Core::Hashable
336
+
337
+ # ################################################################ #
338
+ # Represents the input to API methods.
339
+ # Corresponds to the JSON property `document`
340
+ # @return [Google::Apis::LanguageV1beta1::Document]
341
+ attr_accessor :document
342
+
343
+ # The encoding type used by the API to calculate offsets.
344
+ # Corresponds to the JSON property `encodingType`
345
+ # @return [String]
346
+ attr_accessor :encoding_type
347
+
348
+ def initialize(**args)
349
+ update!(**args)
350
+ end
351
+
352
+ # Update properties of this object
353
+ def update!(**args)
354
+ @document = args[:document] if args.key?(:document)
355
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
356
+ end
357
+ end
358
+
359
+ # Represents part of speech information for a token.
360
+ class PartOfSpeech
361
+ include Google::Apis::Core::Hashable
362
+
363
+ # The grammatical form.
364
+ # Corresponds to the JSON property `form`
365
+ # @return [String]
366
+ attr_accessor :form
367
+
368
+ # The grammatical number.
369
+ # Corresponds to the JSON property `number`
370
+ # @return [String]
371
+ attr_accessor :number
372
+
373
+ # The grammatical voice.
374
+ # Corresponds to the JSON property `voice`
375
+ # @return [String]
376
+ attr_accessor :voice
377
+
378
+ # The grammatical aspect.
379
+ # Corresponds to the JSON property `aspect`
380
+ # @return [String]
381
+ attr_accessor :aspect
382
+
383
+ # The grammatical mood.
384
+ # Corresponds to the JSON property `mood`
385
+ # @return [String]
386
+ attr_accessor :mood
387
+
388
+ # The part of speech tag.
389
+ # Corresponds to the JSON property `tag`
390
+ # @return [String]
391
+ attr_accessor :tag
392
+
393
+ # The grammatical gender.
394
+ # Corresponds to the JSON property `gender`
395
+ # @return [String]
396
+ attr_accessor :gender
397
+
398
+ # The grammatical person.
399
+ # Corresponds to the JSON property `person`
400
+ # @return [String]
401
+ attr_accessor :person
402
+
403
+ # The grammatical properness.
404
+ # Corresponds to the JSON property `proper`
405
+ # @return [String]
406
+ attr_accessor :proper
407
+
408
+ # The grammatical case.
409
+ # Corresponds to the JSON property `case`
410
+ # @return [String]
411
+ attr_accessor :case
412
+
413
+ # The grammatical tense.
414
+ # Corresponds to the JSON property `tense`
415
+ # @return [String]
416
+ attr_accessor :tense
417
+
418
+ # The grammatical reciprocity.
419
+ # Corresponds to the JSON property `reciprocity`
420
+ # @return [String]
421
+ attr_accessor :reciprocity
422
+
423
+ def initialize(**args)
424
+ update!(**args)
425
+ end
426
+
427
+ # Update properties of this object
428
+ def update!(**args)
429
+ @form = args[:form] if args.key?(:form)
430
+ @number = args[:number] if args.key?(:number)
431
+ @voice = args[:voice] if args.key?(:voice)
432
+ @aspect = args[:aspect] if args.key?(:aspect)
433
+ @mood = args[:mood] if args.key?(:mood)
434
+ @tag = args[:tag] if args.key?(:tag)
435
+ @gender = args[:gender] if args.key?(:gender)
436
+ @person = args[:person] if args.key?(:person)
437
+ @proper = args[:proper] if args.key?(:proper)
438
+ @case = args[:case] if args.key?(:case)
439
+ @tense = args[:tense] if args.key?(:tense)
440
+ @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
441
+ end
442
+ end
443
+
444
+ # The syntax analysis request message.
445
+ class AnalyzeSyntaxRequest
446
+ include Google::Apis::Core::Hashable
447
+
448
+ # The encoding type used by the API to calculate offsets.
449
+ # Corresponds to the JSON property `encodingType`
450
+ # @return [String]
451
+ attr_accessor :encoding_type
452
+
453
+ # ################################################################ #
454
+ # Represents the input to API methods.
455
+ # Corresponds to the JSON property `document`
456
+ # @return [Google::Apis::LanguageV1beta1::Document]
457
+ attr_accessor :document
458
+
459
+ def initialize(**args)
460
+ update!(**args)
461
+ end
462
+
463
+ # Update properties of this object
464
+ def update!(**args)
465
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
466
+ @document = args[:document] if args.key?(:document)
467
+ end
468
+ end
469
+
470
+ # The sentiment analysis response message.
471
+ class AnalyzeSentimentResponse
472
+ include Google::Apis::Core::Hashable
473
+
474
+ # The language of the text, which will be the same as the language specified
475
+ # in the request or, if not specified, the automatically-detected language.
476
+ # Corresponds to the JSON property `language`
477
+ # @return [String]
478
+ attr_accessor :language
479
+
480
+ # The sentiment for all the sentences in the document.
481
+ # Corresponds to the JSON property `sentences`
482
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
483
+ attr_accessor :sentences
484
+
485
+ # Represents the feeling associated with the entire text or entities in
486
+ # the text.
487
+ # Corresponds to the JSON property `documentSentiment`
488
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
489
+ attr_accessor :document_sentiment
490
+
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
494
+
495
+ # Update properties of this object
496
+ def update!(**args)
497
+ @language = args[:language] if args.key?(:language)
498
+ @sentences = args[:sentences] if args.key?(:sentences)
499
+ @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
500
+ end
501
+ end
502
+
503
+ # The entity analysis response message.
504
+ class AnalyzeEntitiesResponse
505
+ include Google::Apis::Core::Hashable
506
+
507
+ # The recognized entities in the input document.
508
+ # Corresponds to the JSON property `entities`
509
+ # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
510
+ attr_accessor :entities
511
+
512
+ # The language of the text, which will be the same as the language specified
513
+ # in the request or, if not specified, the automatically-detected language.
514
+ # See Document.language field for more details.
515
+ # Corresponds to the JSON property `language`
516
+ # @return [String]
517
+ attr_accessor :language
518
+
519
+ def initialize(**args)
520
+ update!(**args)
521
+ end
522
+
523
+ # Update properties of this object
524
+ def update!(**args)
525
+ @entities = args[:entities] if args.key?(:entities)
526
+ @language = args[:language] if args.key?(:language)
527
+ end
528
+ end
529
+
530
+ # Represents a phrase in the text that is a known entity, such as
531
+ # a person, an organization, or location. The API associates information, such
532
+ # as salience and mentions, with entities.
533
+ class Entity
534
+ include Google::Apis::Core::Hashable
535
+
536
+ # The mentions of this entity in the input document. The API currently
537
+ # supports proper noun mentions.
538
+ # Corresponds to the JSON property `mentions`
539
+ # @return [Array<Google::Apis::LanguageV1beta1::EntityMention>]
540
+ attr_accessor :mentions
541
+
542
+ # The representative name for the entity.
543
+ # Corresponds to the JSON property `name`
544
+ # @return [String]
545
+ attr_accessor :name
546
+
547
+ # The entity type.
548
+ # Corresponds to the JSON property `type`
549
+ # @return [String]
550
+ attr_accessor :type
551
+
552
+ # Metadata associated with the entity.
553
+ # Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
554
+ # available. The associated keys are "wikipedia_url" and "mid", respectively.
555
+ # Corresponds to the JSON property `metadata`
556
+ # @return [Hash<String,String>]
557
+ attr_accessor :metadata
558
+
559
+ # The salience score associated with the entity in the [0, 1.0] range.
560
+ # The salience score for an entity provides information about the
561
+ # importance or centrality of that entity to the entire document text.
562
+ # Scores closer to 0 are less salient, while scores closer to 1.0 are highly
563
+ # salient.
564
+ # Corresponds to the JSON property `salience`
565
+ # @return [Float]
566
+ attr_accessor :salience
567
+
568
+ def initialize(**args)
569
+ update!(**args)
570
+ end
571
+
572
+ # Update properties of this object
573
+ def update!(**args)
574
+ @mentions = args[:mentions] if args.key?(:mentions)
575
+ @name = args[:name] if args.key?(:name)
576
+ @type = args[:type] if args.key?(:type)
577
+ @metadata = args[:metadata] if args.key?(:metadata)
578
+ @salience = args[:salience] if args.key?(:salience)
579
+ end
580
+ end
581
+
582
+ # The syntax analysis response message.
583
+ class AnalyzeSyntaxResponse
584
+ include Google::Apis::Core::Hashable
585
+
586
+ # Sentences in the input document.
587
+ # Corresponds to the JSON property `sentences`
588
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
589
+ attr_accessor :sentences
590
+
591
+ # Tokens, along with their syntactic information, in the input document.
592
+ # Corresponds to the JSON property `tokens`
593
+ # @return [Array<Google::Apis::LanguageV1beta1::Token>]
594
+ attr_accessor :tokens
595
+
596
+ # The language of the text, which will be the same as the language specified
597
+ # in the request or, if not specified, the automatically-detected language.
598
+ # See Document.language field for more details.
599
+ # Corresponds to the JSON property `language`
600
+ # @return [String]
601
+ attr_accessor :language
602
+
603
+ def initialize(**args)
604
+ update!(**args)
605
+ end
606
+
607
+ # Update properties of this object
608
+ def update!(**args)
609
+ @sentences = args[:sentences] if args.key?(:sentences)
610
+ @tokens = args[:tokens] if args.key?(:tokens)
611
+ @language = args[:language] if args.key?(:language)
612
+ end
613
+ end
614
+
615
+ # The request message for the text annotation API, which can perform multiple
616
+ # analysis types (sentiment, entities, and syntax) in one call.
617
+ class AnnotateTextRequest
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # The encoding type used by the API to calculate offsets.
621
+ # Corresponds to the JSON property `encodingType`
622
+ # @return [String]
623
+ attr_accessor :encoding_type
624
+
625
+ # ################################################################ #
626
+ # Represents the input to API methods.
627
+ # Corresponds to the JSON property `document`
628
+ # @return [Google::Apis::LanguageV1beta1::Document]
629
+ attr_accessor :document
630
+
631
+ # All available features for sentiment, syntax, and semantic analysis.
632
+ # Setting each one to true will enable that specific analysis for the input.
633
+ # Corresponds to the JSON property `features`
634
+ # @return [Google::Apis::LanguageV1beta1::Features]
635
+ attr_accessor :features
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
644
+ @document = args[:document] if args.key?(:document)
645
+ @features = args[:features] if args.key?(:features)
646
+ end
647
+ end
648
+
649
+ # The sentiment analysis request message.
650
+ class AnalyzeSentimentRequest
651
+ include Google::Apis::Core::Hashable
652
+
653
+ # The encoding type used by the API to calculate sentence offsets for the
654
+ # sentence sentiment.
655
+ # Corresponds to the JSON property `encodingType`
656
+ # @return [String]
657
+ attr_accessor :encoding_type
658
+
659
+ # ################################################################ #
660
+ # Represents the input to API methods.
661
+ # Corresponds to the JSON property `document`
662
+ # @return [Google::Apis::LanguageV1beta1::Document]
663
+ attr_accessor :document
664
+
665
+ def initialize(**args)
666
+ update!(**args)
667
+ end
668
+
669
+ # Update properties of this object
670
+ def update!(**args)
671
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
672
+ @document = args[:document] if args.key?(:document)
673
+ end
674
+ end
675
+
676
+ # The text annotations response message.
677
+ class AnnotateTextResponse
678
+ include Google::Apis::Core::Hashable
679
+
680
+ # The language of the text, which will be the same as the language specified
681
+ # in the request or, if not specified, the automatically-detected language.
682
+ # See Document.language field for more details.
683
+ # Corresponds to the JSON property `language`
684
+ # @return [String]
685
+ attr_accessor :language
686
+
687
+ # Sentences in the input document. Populated if the user enables
688
+ # AnnotateTextRequest.Features.extract_syntax.
689
+ # Corresponds to the JSON property `sentences`
690
+ # @return [Array<Google::Apis::LanguageV1beta1::Sentence>]
691
+ attr_accessor :sentences
692
+
693
+ # Tokens, along with their syntactic information, in the input document.
694
+ # Populated if the user enables
695
+ # AnnotateTextRequest.Features.extract_syntax.
696
+ # Corresponds to the JSON property `tokens`
697
+ # @return [Array<Google::Apis::LanguageV1beta1::Token>]
698
+ attr_accessor :tokens
699
+
700
+ # Entities, along with their semantic information, in the input document.
701
+ # Populated if the user enables
702
+ # AnnotateTextRequest.Features.extract_entities.
703
+ # Corresponds to the JSON property `entities`
704
+ # @return [Array<Google::Apis::LanguageV1beta1::Entity>]
705
+ attr_accessor :entities
706
+
707
+ # Represents the feeling associated with the entire text or entities in
708
+ # the text.
709
+ # Corresponds to the JSON property `documentSentiment`
710
+ # @return [Google::Apis::LanguageV1beta1::Sentiment]
711
+ attr_accessor :document_sentiment
712
+
713
+ def initialize(**args)
714
+ update!(**args)
715
+ end
716
+
717
+ # Update properties of this object
718
+ def update!(**args)
719
+ @language = args[:language] if args.key?(:language)
720
+ @sentences = args[:sentences] if args.key?(:sentences)
721
+ @tokens = args[:tokens] if args.key?(:tokens)
722
+ @entities = args[:entities] if args.key?(:entities)
723
+ @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
724
+ end
725
+ end
726
+
727
+ # Represents dependency parse tree information for a token.
728
+ class DependencyEdge
729
+ include Google::Apis::Core::Hashable
730
+
731
+ # Represents the head of this token in the dependency tree.
732
+ # This is the index of the token which has an arc going to this token.
733
+ # The index is the position of the token in the array of tokens returned
734
+ # by the API method. If this token is a root token, then the
735
+ # `head_token_index` is its own index.
736
+ # Corresponds to the JSON property `headTokenIndex`
737
+ # @return [Fixnum]
738
+ attr_accessor :head_token_index
739
+
740
+ # The parse label for the token.
741
+ # Corresponds to the JSON property `label`
742
+ # @return [String]
743
+ attr_accessor :label
744
+
745
+ def initialize(**args)
746
+ update!(**args)
747
+ end
748
+
749
+ # Update properties of this object
750
+ def update!(**args)
751
+ @head_token_index = args[:head_token_index] if args.key?(:head_token_index)
752
+ @label = args[:label] if args.key?(:label)
753
+ end
754
+ end
755
+ end
756
+ end
757
+ end