google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -22,316 +22,316 @@ module Google
22
22
  module Apis
23
23
  module LanguageV1beta1
24
24
 
25
- class PartOfSpeech
25
+ class TextSpan
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class AnalyzeSyntaxRequest
31
+ class Token
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class AnalyzeSentimentResponse
37
+ class Status
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class AnalyzeEntitiesResponse
43
+ class EntityMention
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class AnalyzeSyntaxResponse
49
+ class Features
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Entity
55
+ class Document
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class AnnotateTextRequest
61
+ class Sentence
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class AnnotateTextResponse
67
+ class AnalyzeEntitiesRequest
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class AnalyzeSentimentRequest
73
+ class Sentiment
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class DependencyEdge
79
+ class PartOfSpeech
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class TextSpan
85
+ class AnalyzeSyntaxRequest
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class Token
91
+ class AnalyzeSentimentResponse
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class Status
97
+ class AnalyzeEntitiesResponse
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class EntityMention
103
+ class AnalyzeSyntaxResponse
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class Features
109
+ class Entity
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class Document
115
+ class AnnotateTextRequest
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class Sentence
121
+ class AnnotateTextResponse
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class AnalyzeEntitiesRequest
127
+ class AnalyzeSentimentRequest
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class Sentiment
133
+ class DependencyEdge
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class PartOfSpeech
139
+ class TextSpan
140
140
  # @private
141
141
  class Representation < Google::Apis::Core::JsonRepresentation
142
- property :form, as: 'form'
143
- property :number, as: 'number'
144
- property :voice, as: 'voice'
145
- property :aspect, as: 'aspect'
146
- property :mood, as: 'mood'
147
- property :tag, as: 'tag'
148
- property :gender, as: 'gender'
149
- property :person, as: 'person'
150
- property :proper, as: 'proper'
151
- property :case, as: 'case'
152
- property :tense, as: 'tense'
153
- property :reciprocity, as: 'reciprocity'
142
+ property :begin_offset, as: 'beginOffset'
143
+ property :content, as: 'content'
154
144
  end
155
145
  end
156
146
 
157
- class AnalyzeSyntaxRequest
147
+ class Token
158
148
  # @private
159
149
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
150
+ property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
151
+
152
+ property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
153
+
154
+ property :lemma, as: 'lemma'
155
+ property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
161
156
 
162
- property :encoding_type, as: 'encodingType'
163
157
  end
164
158
  end
165
159
 
166
- class AnalyzeSentimentResponse
160
+ class Status
167
161
  # @private
168
162
  class Representation < Google::Apis::Core::JsonRepresentation
169
- property :language, as: 'language'
170
- collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
171
-
172
- property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
173
-
163
+ collection :details, as: 'details'
164
+ property :code, as: 'code'
165
+ property :message, as: 'message'
174
166
  end
175
167
  end
176
168
 
177
- class AnalyzeEntitiesResponse
169
+ class EntityMention
178
170
  # @private
179
171
  class Representation < Google::Apis::Core::JsonRepresentation
180
- property :language, as: 'language'
181
- collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
172
+ property :type, as: 'type'
173
+ property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
182
174
 
183
175
  end
184
176
  end
185
177
 
186
- class AnalyzeSyntaxResponse
178
+ class Features
187
179
  # @private
188
180
  class Representation < Google::Apis::Core::JsonRepresentation
189
- property :language, as: 'language'
190
- collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
191
-
192
- collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
193
-
181
+ property :extract_entities, as: 'extractEntities'
182
+ property :extract_document_sentiment, as: 'extractDocumentSentiment'
183
+ property :extract_syntax, as: 'extractSyntax'
194
184
  end
195
185
  end
196
186
 
197
- class Entity
187
+ class Document
198
188
  # @private
199
189
  class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :gcs_content_uri, as: 'gcsContentUri'
191
+ property :language, as: 'language'
192
+ property :content, as: 'content'
200
193
  property :type, as: 'type'
201
- hash :metadata, as: 'metadata'
202
- property :salience, as: 'salience'
203
- collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
204
-
205
- property :name, as: 'name'
206
194
  end
207
195
  end
208
196
 
209
- class AnnotateTextRequest
197
+ class Sentence
210
198
  # @private
211
199
  class Representation < Google::Apis::Core::JsonRepresentation
212
- property :encoding_type, as: 'encodingType'
213
- property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
200
+ property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
214
201
 
215
- property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
202
+ property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
216
203
 
217
204
  end
218
205
  end
219
206
 
220
- class AnnotateTextResponse
207
+ class AnalyzeEntitiesRequest
221
208
  # @private
222
209
  class Representation < Google::Apis::Core::JsonRepresentation
223
- property :language, as: 'language'
224
- collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
225
-
226
- collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
227
-
228
- collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
229
-
230
- property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
210
+ property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
231
211
 
212
+ property :encoding_type, as: 'encodingType'
232
213
  end
233
214
  end
234
215
 
235
- class AnalyzeSentimentRequest
216
+ class Sentiment
236
217
  # @private
237
218
  class Representation < Google::Apis::Core::JsonRepresentation
238
- property :encoding_type, as: 'encodingType'
239
- property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
240
-
219
+ property :score, as: 'score'
220
+ property :polarity, as: 'polarity'
221
+ property :magnitude, as: 'magnitude'
241
222
  end
242
223
  end
243
224
 
244
- class DependencyEdge
225
+ class PartOfSpeech
245
226
  # @private
246
227
  class Representation < Google::Apis::Core::JsonRepresentation
247
- property :label, as: 'label'
248
- property :head_token_index, as: 'headTokenIndex'
228
+ property :form, as: 'form'
229
+ property :number, as: 'number'
230
+ property :voice, as: 'voice'
231
+ property :aspect, as: 'aspect'
232
+ property :mood, as: 'mood'
233
+ property :tag, as: 'tag'
234
+ property :gender, as: 'gender'
235
+ property :person, as: 'person'
236
+ property :proper, as: 'proper'
237
+ property :case, as: 'case'
238
+ property :tense, as: 'tense'
239
+ property :reciprocity, as: 'reciprocity'
249
240
  end
250
241
  end
251
242
 
252
- class TextSpan
243
+ class AnalyzeSyntaxRequest
253
244
  # @private
254
245
  class Representation < Google::Apis::Core::JsonRepresentation
255
- property :begin_offset, as: 'beginOffset'
256
- property :content, as: 'content'
246
+ property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
247
+
248
+ property :encoding_type, as: 'encodingType'
257
249
  end
258
250
  end
259
251
 
260
- class Token
252
+ class AnalyzeSentimentResponse
261
253
  # @private
262
254
  class Representation < Google::Apis::Core::JsonRepresentation
263
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
264
-
265
- property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
255
+ property :language, as: 'language'
256
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
266
257
 
267
- property :lemma, as: 'lemma'
268
- property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
258
+ property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
269
259
 
270
260
  end
271
261
  end
272
262
 
273
- class Status
263
+ class AnalyzeEntitiesResponse
274
264
  # @private
275
265
  class Representation < Google::Apis::Core::JsonRepresentation
276
- property :message, as: 'message'
277
- collection :details, as: 'details'
278
- property :code, as: 'code'
266
+ property :language, as: 'language'
267
+ collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
268
+
279
269
  end
280
270
  end
281
271
 
282
- class EntityMention
272
+ class AnalyzeSyntaxResponse
283
273
  # @private
284
274
  class Representation < Google::Apis::Core::JsonRepresentation
285
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
275
+ property :language, as: 'language'
276
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
277
+
278
+ collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
286
279
 
287
- property :type, as: 'type'
288
280
  end
289
281
  end
290
282
 
291
- class Features
283
+ class Entity
292
284
  # @private
293
285
  class Representation < Google::Apis::Core::JsonRepresentation
294
- property :extract_entities, as: 'extractEntities'
295
- property :extract_syntax, as: 'extractSyntax'
296
- property :extract_document_sentiment, as: 'extractDocumentSentiment'
286
+ property :name, as: 'name'
287
+ property :salience, as: 'salience'
288
+ hash :metadata, as: 'metadata'
289
+ property :type, as: 'type'
290
+ collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
291
+
297
292
  end
298
293
  end
299
294
 
300
- class Document
295
+ class AnnotateTextRequest
301
296
  # @private
302
297
  class Representation < Google::Apis::Core::JsonRepresentation
303
- property :gcs_content_uri, as: 'gcsContentUri'
304
- property :language, as: 'language'
305
- property :type, as: 'type'
306
- property :content, as: 'content'
298
+ property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
299
+
300
+ property :encoding_type, as: 'encodingType'
301
+ property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
302
+
307
303
  end
308
304
  end
309
305
 
310
- class Sentence
306
+ class AnnotateTextResponse
311
307
  # @private
312
308
  class Representation < Google::Apis::Core::JsonRepresentation
313
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
309
+ collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
314
310
 
315
- property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
311
+ property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
312
+
313
+ property :language, as: 'language'
314
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
315
+
316
+ collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
316
317
 
317
318
  end
318
319
  end
319
320
 
320
- class AnalyzeEntitiesRequest
321
+ class AnalyzeSentimentRequest
321
322
  # @private
322
323
  class Representation < Google::Apis::Core::JsonRepresentation
323
- property :encoding_type, as: 'encodingType'
324
324
  property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
325
325
 
326
+ property :encoding_type, as: 'encodingType'
326
327
  end
327
328
  end
328
329
 
329
- class Sentiment
330
+ class DependencyEdge
330
331
  # @private
331
332
  class Representation < Google::Apis::Core::JsonRepresentation
332
- property :polarity, as: 'polarity'
333
- property :score, as: 'score'
334
- property :magnitude, as: 'magnitude'
333
+ property :label, as: 'label'
334
+ property :head_token_index, as: 'headTokenIndex'
335
335
  end
336
336
  end
337
337
  end
@@ -49,13 +49,45 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Analyzes the sentiment of the provided text.
53
- # @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
52
+ # Analyzes the syntax of the text and provides sentence boundaries and
53
+ # tokenization along with part of speech tags, dependency trees, and other
54
+ # properties.
55
+ # @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54
59
  # @param [String] fields
55
60
  # Selector specifying which fields to include in a partial response.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
75
+ command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
76
+ command.request_object = analyze_syntax_request_object
77
+ command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
78
+ command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Analyzes the sentiment of the provided text.
85
+ # @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
56
86
  # @param [String] quota_user
57
87
  # Available to use for quota purposes for server-side applications. Can be any
58
88
  # arbitrary string assigned to a user, but should not exceed 40 characters.
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
59
91
  # @param [Google::Apis::RequestOptions] options
60
92
  # Request-specific options
61
93
  #
@@ -68,25 +100,25 @@ module Google
68
100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
103
+ def analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
72
104
  command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
73
105
  command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
74
106
  command.request_object = analyze_sentiment_request_object
75
107
  command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
76
108
  command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
77
- command.query['fields'] = fields unless fields.nil?
78
109
  command.query['quotaUser'] = quota_user unless quota_user.nil?
110
+ command.query['fields'] = fields unless fields.nil?
79
111
  execute_or_queue_command(command, &block)
80
112
  end
81
113
 
82
114
  # A convenience method that provides all the features that analyzeSentiment,
83
115
  # analyzeEntities, and analyzeSyntax provide in one call.
84
116
  # @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object
85
- # @param [String] fields
86
- # Selector specifying which fields to include in a partial response.
87
117
  # @param [String] quota_user
88
118
  # Available to use for quota purposes for server-side applications. Can be any
89
119
  # arbitrary string assigned to a user, but should not exceed 40 characters.
120
+ # @param [String] fields
121
+ # Selector specifying which fields to include in a partial response.
90
122
  # @param [Google::Apis::RequestOptions] options
91
123
  # Request-specific options
92
124
  #
@@ -99,14 +131,14 @@ module Google
99
131
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100
132
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
133
  # @raise [Google::Apis::AuthorizationError] Authorization is required
102
- def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
134
+ def annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
103
135
  command = make_simple_command(:post, 'v1beta1/documents:annotateText', options)
104
136
  command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation
105
137
  command.request_object = annotate_text_request_object
106
138
  command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation
107
139
  command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse
108
- command.query['fields'] = fields unless fields.nil?
109
140
  command.query['quotaUser'] = quota_user unless quota_user.nil?
141
+ command.query['fields'] = fields unless fields.nil?
110
142
  execute_or_queue_command(command, &block)
111
143
  end
112
144
 
@@ -114,11 +146,11 @@ module Google
114
146
  # along with entity types, salience, mentions for each entity, and
115
147
  # other properties.
116
148
  # @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
117
- # @param [String] fields
118
- # Selector specifying which fields to include in a partial response.
119
149
  # @param [String] quota_user
120
150
  # Available to use for quota purposes for server-side applications. Can be any
121
151
  # arbitrary string assigned to a user, but should not exceed 40 characters.
152
+ # @param [String] fields
153
+ # Selector specifying which fields to include in a partial response.
122
154
  # @param [Google::Apis::RequestOptions] options
123
155
  # Request-specific options
124
156
  #
@@ -131,46 +163,14 @@ module Google
131
163
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
132
164
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
133
165
  # @raise [Google::Apis::AuthorizationError] Authorization is required
134
- def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
166
+ def analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
135
167
  command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options)
136
168
  command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation
137
169
  command.request_object = analyze_entities_request_object
138
170
  command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation
139
171
  command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
140
- command.query['fields'] = fields unless fields.nil?
141
172
  command.query['quotaUser'] = quota_user unless quota_user.nil?
142
- execute_or_queue_command(command, &block)
143
- end
144
-
145
- # Analyzes the syntax of the text and provides sentence boundaries and
146
- # tokenization along with part of speech tags, dependency trees, and other
147
- # properties.
148
- # @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
149
- # @param [String] fields
150
- # Selector specifying which fields to include in a partial response.
151
- # @param [String] quota_user
152
- # Available to use for quota purposes for server-side applications. Can be any
153
- # arbitrary string assigned to a user, but should not exceed 40 characters.
154
- # @param [Google::Apis::RequestOptions] options
155
- # Request-specific options
156
- #
157
- # @yield [result, err] Result & error if block supplied
158
- # @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse] parsed result object
159
- # @yieldparam err [StandardError] error object if request failed
160
- #
161
- # @return [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse]
162
- #
163
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
164
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
165
- # @raise [Google::Apis::AuthorizationError] Authorization is required
166
- def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
167
- command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
168
- command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
169
- command.request_object = analyze_syntax_request_object
170
- command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
171
- command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
172
173
  command.query['fields'] = fields unless fields.nil?
173
- command.query['quotaUser'] = quota_user unless quota_user.nil?
174
174
  execute_or_queue_command(command, &block)
175
175
  end
176
176