google-api-client 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -27,11 +27,6 @@ module Google
27
27
  class SearchResponse
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # The schema type of top-level JSON-LD object, e.g. ItemList.
31
- # Corresponds to the JSON property `@type`
32
- # @return [Object]
33
- attr_accessor :_type
34
-
35
30
  # The local context applicable for the response. See more details at
36
31
  # http://www.w3.org/TR/json-ld/#context-definitions.
37
32
  # Corresponds to the JSON property `@context`
@@ -43,15 +38,20 @@ module Google
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
- @_type = args[:_type] if args.key?(:_type)
53
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 :_type, as: '@type'
35
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
@@ -50,6 +50,12 @@ module Google
50
50
  # Searches Knowledge Graph for entities that match the constraints.
51
51
  # A list of matched entities will be returned in response, which will be in
52
52
  # JSON-LD format and compatible with http://schema.org
53
+ # @param [Fixnum] limit
54
+ # Limits the number of entities to be returned.
55
+ # @param [Boolean] prefix
56
+ # Enables prefix match against names and aliases of entities
57
+ # @param [String] query
58
+ # The literal query string for search.
53
59
  # @param [Array<String>, String] types
54
60
  # Restricts returned entities with these types, e.g. Person
55
61
  # (as defined in http://schema.org/Person). If multiple types are specified,
@@ -63,12 +69,6 @@ module Google
63
69
  # The list of entity id to be used for search instead of query string.
64
70
  # To specify multiple ids in the HTTP request, repeat the parameter in the
65
71
  # URL as in ...?ids=A&ids=B
66
- # @param [Fixnum] limit
67
- # Limits the number of entities to be returned.
68
- # @param [Boolean] prefix
69
- # Enables prefix match against names and aliases of entities
70
- # @param [String] query
71
- # The literal query string for search.
72
72
  # @param [String] fields
73
73
  # Selector specifying which fields to include in a partial response.
74
74
  # @param [String] quota_user
@@ -86,17 +86,17 @@ module Google
86
86
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
87
87
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
88
88
  # @raise [Google::Apis::AuthorizationError] Authorization is required
89
- def search_entities(types: nil, indent: nil, languages: nil, ids: nil, limit: nil, prefix: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
89
+ def search_entities(limit: nil, prefix: nil, query: nil, types: nil, indent: nil, languages: nil, ids: nil, fields: nil, quota_user: nil, options: nil, &block)
90
90
  command = make_simple_command(:get, 'v1/entities:search', options)
91
91
  command.response_representation = Google::Apis::KgsearchV1::SearchResponse::Representation
92
92
  command.response_class = Google::Apis::KgsearchV1::SearchResponse
93
+ command.query['limit'] = limit unless limit.nil?
94
+ command.query['prefix'] = prefix unless prefix.nil?
95
+ command.query['query'] = query unless query.nil?
93
96
  command.query['types'] = types unless types.nil?
94
97
  command.query['indent'] = indent unless indent.nil?
95
98
  command.query['languages'] = languages unless languages.nil?
96
99
  command.query['ids'] = ids unless ids.nil?
97
- command.query['limit'] = limit unless limit.nil?
98
- command.query['prefix'] = prefix unless prefix.nil?
99
- command.query['query'] = query unless query.nil?
100
100
  command.query['fields'] = fields unless fields.nil?
101
101
  command.query['quotaUser'] = quota_user unless quota_user.nil?
102
102
  execute_or_queue_command(command, &block)
@@ -22,6 +22,197 @@ module Google
22
22
  module Apis
23
23
  module LanguageV1
24
24
 
25
+ # All available features for sentiment, syntax, and semantic analysis.
26
+ # Setting each one to true will enable that specific analysis for the input.
27
+ class Features
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Extract entities.
31
+ # Corresponds to the JSON property `extractEntities`
32
+ # @return [Boolean]
33
+ attr_accessor :extract_entities
34
+ alias_method :extract_entities?, :extract_entities
35
+
36
+ # Extract syntax information.
37
+ # Corresponds to the JSON property `extractSyntax`
38
+ # @return [Boolean]
39
+ attr_accessor :extract_syntax
40
+ alias_method :extract_syntax?, :extract_syntax
41
+
42
+ # Extract document-level sentiment.
43
+ # Corresponds to the JSON property `extractDocumentSentiment`
44
+ # @return [Boolean]
45
+ attr_accessor :extract_document_sentiment
46
+ alias_method :extract_document_sentiment?, :extract_document_sentiment
47
+
48
+ def initialize(**args)
49
+ update!(**args)
50
+ end
51
+
52
+ # Update properties of this object
53
+ def update!(**args)
54
+ @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
55
+ @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
56
+ @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
57
+ end
58
+ end
59
+
60
+ # Represents a mention for an entity in the text. Currently, proper noun
61
+ # mentions are supported.
62
+ class EntityMention
63
+ include Google::Apis::Core::Hashable
64
+
65
+ # Represents an output piece of text.
66
+ # Corresponds to the JSON property `text`
67
+ # @return [Google::Apis::LanguageV1::TextSpan]
68
+ attr_accessor :text
69
+
70
+ # The type of the entity mention.
71
+ # Corresponds to the JSON property `type`
72
+ # @return [String]
73
+ attr_accessor :type
74
+
75
+ def initialize(**args)
76
+ update!(**args)
77
+ end
78
+
79
+ # Update properties of this object
80
+ def update!(**args)
81
+ @text = args[:text] if args.key?(:text)
82
+ @type = args[:type] if args.key?(:type)
83
+ end
84
+ end
85
+
86
+ # Represents a sentence in the input document.
87
+ class Sentence
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # Represents an output piece of text.
91
+ # Corresponds to the JSON property `text`
92
+ # @return [Google::Apis::LanguageV1::TextSpan]
93
+ attr_accessor :text
94
+
95
+ # Represents the feeling associated with the entire text or entities in
96
+ # the text.
97
+ # Corresponds to the JSON property `sentiment`
98
+ # @return [Google::Apis::LanguageV1::Sentiment]
99
+ attr_accessor :sentiment
100
+
101
+ def initialize(**args)
102
+ update!(**args)
103
+ end
104
+
105
+ # Update properties of this object
106
+ def update!(**args)
107
+ @text = args[:text] if args.key?(:text)
108
+ @sentiment = args[:sentiment] if args.key?(:sentiment)
109
+ end
110
+ end
111
+
112
+ # ################################################################ #
113
+ # Represents the input to API methods.
114
+ class Document
115
+ include Google::Apis::Core::Hashable
116
+
117
+ # The language of the document (if not specified, the language is
118
+ # automatically detected). Both ISO and BCP-47 language codes are
119
+ # accepted.<br>
120
+ # [Language Support](/natural-language/docs/languages)
121
+ # lists currently supported languages for each API method.
122
+ # If the language (either specified by the caller or automatically detected)
123
+ # is not supported by the called API method, an `INVALID_ARGUMENT` error
124
+ # is returned.
125
+ # Corresponds to the JSON property `language`
126
+ # @return [String]
127
+ attr_accessor :language
128
+
129
+ # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
130
+ # returns an `INVALID_ARGUMENT` error.
131
+ # Corresponds to the JSON property `type`
132
+ # @return [String]
133
+ attr_accessor :type
134
+
135
+ # The content of the input in string format.
136
+ # Corresponds to the JSON property `content`
137
+ # @return [String]
138
+ attr_accessor :content
139
+
140
+ # The Google Cloud Storage URI where the file content is located.
141
+ # This URI must be of the form: gs://bucket_name/object_name. For more
142
+ # details, see https://cloud.google.com/storage/docs/reference-uris.
143
+ # NOTE: Cloud Storage object versioning is not supported.
144
+ # Corresponds to the JSON property `gcsContentUri`
145
+ # @return [String]
146
+ attr_accessor :gcs_content_uri
147
+
148
+ def initialize(**args)
149
+ update!(**args)
150
+ end
151
+
152
+ # Update properties of this object
153
+ def update!(**args)
154
+ @language = args[:language] if args.key?(:language)
155
+ @type = args[:type] if args.key?(:type)
156
+ @content = args[:content] if args.key?(:content)
157
+ @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
158
+ end
159
+ end
160
+
161
+ # The entity analysis request message.
162
+ class AnalyzeEntitiesRequest
163
+ include Google::Apis::Core::Hashable
164
+
165
+ # The encoding type used by the API to calculate offsets.
166
+ # Corresponds to the JSON property `encodingType`
167
+ # @return [String]
168
+ attr_accessor :encoding_type
169
+
170
+ # ################################################################ #
171
+ # Represents the input to API methods.
172
+ # Corresponds to the JSON property `document`
173
+ # @return [Google::Apis::LanguageV1::Document]
174
+ attr_accessor :document
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
183
+ @document = args[:document] if args.key?(:document)
184
+ end
185
+ end
186
+
187
+ # Represents the feeling associated with the entire text or entities in
188
+ # the text.
189
+ class Sentiment
190
+ include Google::Apis::Core::Hashable
191
+
192
+ # Sentiment score between -1.0 (negative sentiment) and 1.0
193
+ # (positive sentiment).
194
+ # Corresponds to the JSON property `score`
195
+ # @return [Float]
196
+ attr_accessor :score
197
+
198
+ # A non-negative number in the [0, +inf) range, which represents
199
+ # the absolute magnitude of sentiment regardless of score (positive or
200
+ # negative).
201
+ # Corresponds to the JSON property `magnitude`
202
+ # @return [Float]
203
+ attr_accessor :magnitude
204
+
205
+ def initialize(**args)
206
+ update!(**args)
207
+ end
208
+
209
+ # Update properties of this object
210
+ def update!(**args)
211
+ @score = args[:score] if args.key?(:score)
212
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
213
+ end
214
+ end
215
+
25
216
  # Represents part of speech information for a token. Parts of speech
26
217
  # are as defined in
27
218
  # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
@@ -286,6 +477,12 @@ module Google
286
477
  class AnnotateTextRequest
287
478
  include Google::Apis::Core::Hashable
288
479
 
480
+ # All available features for sentiment, syntax, and semantic analysis.
481
+ # Setting each one to true will enable that specific analysis for the input.
482
+ # Corresponds to the JSON property `features`
483
+ # @return [Google::Apis::LanguageV1::Features]
484
+ attr_accessor :features
485
+
289
486
  # The encoding type used by the API to calculate offsets.
290
487
  # Corresponds to the JSON property `encodingType`
291
488
  # @return [String]
@@ -297,21 +494,15 @@ module Google
297
494
  # @return [Google::Apis::LanguageV1::Document]
298
495
  attr_accessor :document
299
496
 
300
- # All available features for sentiment, syntax, and semantic analysis.
301
- # Setting each one to true will enable that specific analysis for the input.
302
- # Corresponds to the JSON property `features`
303
- # @return [Google::Apis::LanguageV1::Features]
304
- attr_accessor :features
305
-
306
497
  def initialize(**args)
307
498
  update!(**args)
308
499
  end
309
500
 
310
501
  # Update properties of this object
311
502
  def update!(**args)
503
+ @features = args[:features] if args.key?(:features)
312
504
  @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
313
505
  @document = args[:document] if args.key?(:document)
314
- @features = args[:features] if args.key?(:features)
315
506
  end
316
507
  end
317
508
 
@@ -319,6 +510,20 @@ module Google
319
510
  class AnnotateTextResponse
320
511
  include Google::Apis::Core::Hashable
321
512
 
513
+ # Tokens, along with their syntactic information, in the input document.
514
+ # Populated if the user enables
515
+ # AnnotateTextRequest.Features.extract_syntax.
516
+ # Corresponds to the JSON property `tokens`
517
+ # @return [Array<Google::Apis::LanguageV1::Token>]
518
+ attr_accessor :tokens
519
+
520
+ # Entities, along with their semantic information, in the input document.
521
+ # Populated if the user enables
522
+ # AnnotateTextRequest.Features.extract_entities.
523
+ # Corresponds to the JSON property `entities`
524
+ # @return [Array<Google::Apis::LanguageV1::Entity>]
525
+ attr_accessor :entities
526
+
322
527
  # Represents the feeling associated with the entire text or entities in
323
528
  # the text.
324
529
  # Corresponds to the JSON property `documentSentiment`
@@ -338,31 +543,17 @@ module Google
338
543
  # @return [Array<Google::Apis::LanguageV1::Sentence>]
339
544
  attr_accessor :sentences
340
545
 
341
- # Tokens, along with their syntactic information, in the input document.
342
- # Populated if the user enables
343
- # AnnotateTextRequest.Features.extract_syntax.
344
- # Corresponds to the JSON property `tokens`
345
- # @return [Array<Google::Apis::LanguageV1::Token>]
346
- attr_accessor :tokens
347
-
348
- # Entities, along with their semantic information, in the input document.
349
- # Populated if the user enables
350
- # AnnotateTextRequest.Features.extract_entities.
351
- # Corresponds to the JSON property `entities`
352
- # @return [Array<Google::Apis::LanguageV1::Entity>]
353
- attr_accessor :entities
354
-
355
546
  def initialize(**args)
356
547
  update!(**args)
357
548
  end
358
549
 
359
550
  # Update properties of this object
360
551
  def update!(**args)
552
+ @tokens = args[:tokens] if args.key?(:tokens)
553
+ @entities = args[:entities] if args.key?(:entities)
361
554
  @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment)
362
555
  @language = args[:language] if args.key?(:language)
363
556
  @sentences = args[:sentences] if args.key?(:sentences)
364
- @tokens = args[:tokens] if args.key?(:tokens)
365
- @entities = args[:entities] if args.key?(:entities)
366
557
  end
367
558
  end
368
559
 
@@ -468,25 +659,25 @@ module Google
468
659
  class TextSpan
469
660
  include Google::Apis::Core::Hashable
470
661
 
662
+ # The content of the output text.
663
+ # Corresponds to the JSON property `content`
664
+ # @return [String]
665
+ attr_accessor :content
666
+
471
667
  # The API calculates the beginning offset of the content in the original
472
668
  # document according to the EncodingType specified in the API request.
473
669
  # Corresponds to the JSON property `beginOffset`
474
670
  # @return [Fixnum]
475
671
  attr_accessor :begin_offset
476
672
 
477
- # The content of the output text.
478
- # Corresponds to the JSON property `content`
479
- # @return [String]
480
- attr_accessor :content
481
-
482
673
  def initialize(**args)
483
674
  update!(**args)
484
675
  end
485
676
 
486
677
  # Update properties of this object
487
678
  def update!(**args)
488
- @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
489
679
  @content = args[:content] if args.key?(:content)
680
+ @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
490
681
  end
491
682
  end
492
683
 
@@ -561,197 +752,6 @@ module Google
561
752
  @details = args[:details] if args.key?(:details)
562
753
  end
563
754
  end
564
-
565
- # Represents a mention for an entity in the text. Currently, proper noun
566
- # mentions are supported.
567
- class EntityMention
568
- include Google::Apis::Core::Hashable
569
-
570
- # Represents an output piece of text.
571
- # Corresponds to the JSON property `text`
572
- # @return [Google::Apis::LanguageV1::TextSpan]
573
- attr_accessor :text
574
-
575
- # The type of the entity mention.
576
- # Corresponds to the JSON property `type`
577
- # @return [String]
578
- attr_accessor :type
579
-
580
- def initialize(**args)
581
- update!(**args)
582
- end
583
-
584
- # Update properties of this object
585
- def update!(**args)
586
- @text = args[:text] if args.key?(:text)
587
- @type = args[:type] if args.key?(:type)
588
- end
589
- end
590
-
591
- # All available features for sentiment, syntax, and semantic analysis.
592
- # Setting each one to true will enable that specific analysis for the input.
593
- class Features
594
- include Google::Apis::Core::Hashable
595
-
596
- # Extract syntax information.
597
- # Corresponds to the JSON property `extractSyntax`
598
- # @return [Boolean]
599
- attr_accessor :extract_syntax
600
- alias_method :extract_syntax?, :extract_syntax
601
-
602
- # Extract document-level sentiment.
603
- # Corresponds to the JSON property `extractDocumentSentiment`
604
- # @return [Boolean]
605
- attr_accessor :extract_document_sentiment
606
- alias_method :extract_document_sentiment?, :extract_document_sentiment
607
-
608
- # Extract entities.
609
- # Corresponds to the JSON property `extractEntities`
610
- # @return [Boolean]
611
- attr_accessor :extract_entities
612
- alias_method :extract_entities?, :extract_entities
613
-
614
- def initialize(**args)
615
- update!(**args)
616
- end
617
-
618
- # Update properties of this object
619
- def update!(**args)
620
- @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
621
- @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
622
- @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
623
- end
624
- end
625
-
626
- # ################################################################ #
627
- # Represents the input to API methods.
628
- class Document
629
- include Google::Apis::Core::Hashable
630
-
631
- # Required. If the type is not set or is `TYPE_UNSPECIFIED`,
632
- # returns an `INVALID_ARGUMENT` error.
633
- # Corresponds to the JSON property `type`
634
- # @return [String]
635
- attr_accessor :type
636
-
637
- # The content of the input in string format.
638
- # Corresponds to the JSON property `content`
639
- # @return [String]
640
- attr_accessor :content
641
-
642
- # The Google Cloud Storage URI where the file content is located.
643
- # This URI must be of the form: gs://bucket_name/object_name. For more
644
- # details, see https://cloud.google.com/storage/docs/reference-uris.
645
- # NOTE: Cloud Storage object versioning is not supported.
646
- # Corresponds to the JSON property `gcsContentUri`
647
- # @return [String]
648
- attr_accessor :gcs_content_uri
649
-
650
- # The language of the document (if not specified, the language is
651
- # automatically detected). Both ISO and BCP-47 language codes are
652
- # accepted.<br>
653
- # [Language Support](/natural-language/docs/languages)
654
- # lists currently supported languages for each API method.
655
- # If the language (either specified by the caller or automatically detected)
656
- # is not supported by the called API method, an `INVALID_ARGUMENT` error
657
- # is returned.
658
- # Corresponds to the JSON property `language`
659
- # @return [String]
660
- attr_accessor :language
661
-
662
- def initialize(**args)
663
- update!(**args)
664
- end
665
-
666
- # Update properties of this object
667
- def update!(**args)
668
- @type = args[:type] if args.key?(:type)
669
- @content = args[:content] if args.key?(:content)
670
- @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri)
671
- @language = args[:language] if args.key?(:language)
672
- end
673
- end
674
-
675
- # Represents a sentence in the input document.
676
- class Sentence
677
- include Google::Apis::Core::Hashable
678
-
679
- # Represents an output piece of text.
680
- # Corresponds to the JSON property `text`
681
- # @return [Google::Apis::LanguageV1::TextSpan]
682
- attr_accessor :text
683
-
684
- # Represents the feeling associated with the entire text or entities in
685
- # the text.
686
- # Corresponds to the JSON property `sentiment`
687
- # @return [Google::Apis::LanguageV1::Sentiment]
688
- attr_accessor :sentiment
689
-
690
- def initialize(**args)
691
- update!(**args)
692
- end
693
-
694
- # Update properties of this object
695
- def update!(**args)
696
- @text = args[:text] if args.key?(:text)
697
- @sentiment = args[:sentiment] if args.key?(:sentiment)
698
- end
699
- end
700
-
701
- # The entity analysis request message.
702
- class AnalyzeEntitiesRequest
703
- include Google::Apis::Core::Hashable
704
-
705
- # ################################################################ #
706
- # Represents the input to API methods.
707
- # Corresponds to the JSON property `document`
708
- # @return [Google::Apis::LanguageV1::Document]
709
- attr_accessor :document
710
-
711
- # The encoding type used by the API to calculate offsets.
712
- # Corresponds to the JSON property `encodingType`
713
- # @return [String]
714
- attr_accessor :encoding_type
715
-
716
- def initialize(**args)
717
- update!(**args)
718
- end
719
-
720
- # Update properties of this object
721
- def update!(**args)
722
- @document = args[:document] if args.key?(:document)
723
- @encoding_type = args[:encoding_type] if args.key?(:encoding_type)
724
- end
725
- end
726
-
727
- # Represents the feeling associated with the entire text or entities in
728
- # the text.
729
- class Sentiment
730
- include Google::Apis::Core::Hashable
731
-
732
- # A non-negative number in the [0, +inf) range, which represents
733
- # the absolute magnitude of sentiment regardless of score (positive or
734
- # negative).
735
- # Corresponds to the JSON property `magnitude`
736
- # @return [Float]
737
- attr_accessor :magnitude
738
-
739
- # Sentiment score between -1.0 (negative sentiment) and 1.0
740
- # (positive sentiment).
741
- # Corresponds to the JSON property `score`
742
- # @return [Float]
743
- attr_accessor :score
744
-
745
- def initialize(**args)
746
- update!(**args)
747
- end
748
-
749
- # Update properties of this object
750
- def update!(**args)
751
- @magnitude = args[:magnitude] if args.key?(:magnitude)
752
- @score = args[:score] if args.key?(:score)
753
- end
754
- end
755
755
  end
756
756
  end
757
757
  end