google-api-client 0.9.26 → 0.9.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +36326 -36213
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/calendar_v3.rb +1 -1
  14. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  15. data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
  16. data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
  17. data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
  18. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  19. data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
  20. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  21. data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
  22. data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
  23. data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
  24. data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
  25. data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
  26. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  28. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
  29. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
  30. data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
  31. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
  33. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
  34. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
  35. data/generated/google/apis/content_v2.rb +1 -1
  36. data/generated/google/apis/content_v2/classes.rb +12 -0
  37. data/generated/google/apis/content_v2/representations.rb +2 -0
  38. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  39. data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
  40. data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
  41. data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
  42. data/generated/google/apis/datastore_v1.rb +1 -1
  43. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
  45. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  46. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
  47. data/generated/google/apis/dns_v1.rb +1 -1
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  50. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  51. data/generated/google/apis/drive_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2/classes.rb +26 -0
  53. data/generated/google/apis/drive_v2/representations.rb +14 -0
  54. data/generated/google/apis/drive_v2/service.rb +38 -2
  55. data/generated/google/apis/drive_v3.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_management_v1management.rb +1 -1
  58. data/generated/google/apis/games_v1.rb +1 -1
  59. data/generated/google/apis/genomics_v1.rb +4 -4
  60. data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
  61. data/generated/google/apis/genomics_v1/representations.rb +476 -476
  62. data/generated/google/apis/genomics_v1/service.rb +1038 -1038
  63. data/generated/google/apis/gmail_v1.rb +1 -1
  64. data/generated/google/apis/gmail_v1/classes.rb +82 -1
  65. data/generated/google/apis/gmail_v1/representations.rb +33 -0
  66. data/generated/google/apis/gmail_v1/service.rb +215 -5
  67. data/generated/google/apis/iam_v1.rb +1 -1
  68. data/generated/google/apis/iam_v1/classes.rb +446 -343
  69. data/generated/google/apis/iam_v1/representations.rb +112 -85
  70. data/generated/google/apis/iam_v1/service.rb +248 -192
  71. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  72. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  73. data/generated/google/apis/kgsearch_v1/service.rb +15 -15
  74. data/generated/google/apis/language_v1beta1.rb +1 -1
  75. data/generated/google/apis/language_v1beta1/classes.rb +396 -396
  76. data/generated/google/apis/language_v1beta1/representations.rb +97 -97
  77. data/generated/google/apis/language_v1beta1/service.rb +42 -42
  78. data/generated/google/apis/logging_v2beta1.rb +1 -1
  79. data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
  80. data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
  81. data/generated/google/apis/logging_v2beta1/service.rb +214 -214
  82. data/generated/google/apis/monitoring_v3.rb +4 -4
  83. data/generated/google/apis/monitoring_v3/classes.rb +551 -551
  84. data/generated/google/apis/monitoring_v3/representations.rb +123 -123
  85. data/generated/google/apis/monitoring_v3/service.rb +80 -80
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/pubsub_v1.rb +3 -3
  89. data/generated/google/apis/pubsub_v1/classes.rb +391 -391
  90. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  91. data/generated/google/apis/pubsub_v1/service.rb +257 -257
  92. data/generated/google/apis/sheets_v4.rb +1 -1
  93. data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
  94. data/generated/google/apis/sheets_v4/representations.rb +861 -861
  95. data/generated/google/apis/sheets_v4/service.rb +191 -191
  96. data/generated/google/apis/slides_v1.rb +7 -7
  97. data/generated/google/apis/slides_v1/classes.rb +2726 -2555
  98. data/generated/google/apis/slides_v1/representations.rb +678 -607
  99. data/generated/google/apis/slides_v1/service.rb +16 -16
  100. data/generated/google/apis/speech_v1beta1.rb +1 -1
  101. data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
  102. data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
  103. data/generated/google/apis/speech_v1beta1/service.rb +63 -63
  104. data/generated/google/apis/storage_v1.rb +1 -1
  105. data/generated/google/apis/storage_v1/classes.rb +4 -3
  106. data/generated/google/apis/vision_v1/classes.rb +925 -925
  107. data/generated/google/apis/vision_v1/representations.rb +134 -134
  108. data/generated/google/apis/vision_v1/service.rb +4 -4
  109. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  110. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  111. data/generated/google/apis/youtube_v3.rb +1 -1
  112. data/generated/google/apis/youtube_v3/classes.rb +234 -1
  113. data/generated/google/apis/youtube_v3/representations.rb +83 -0
  114. data/generated/google/apis/youtube_v3/service.rb +55 -0
  115. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  116. data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
  117. data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
  118. data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
  119. data/lib/google/apis/core/api_command.rb +11 -5
  120. data/lib/google/apis/core/base_service.rb +7 -5
  121. data/lib/google/apis/errors.rb +4 -0
  122. data/lib/google/apis/version.rb +1 -1
  123. metadata +28 -28
@@ -22,73 +22,73 @@ module Google
22
22
  module Apis
23
23
  module LanguageV1beta1
24
24
 
25
- class Document
25
+ class AnalyzeSentimentResponse
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 TextSpan
31
+ class AnalyzeEntitiesResponse
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 Status
37
+ class AnalyzeSyntaxResponse
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 AnalyzeEntitiesRequest
43
+ class Entity
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 EntityMention
49
+ class AnnotateTextRequest
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 AnalyzeSentimentRequest
55
+ class AnnotateTextResponse
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 AnalyzeSentimentResponse
61
+ class AnalyzeSentimentRequest
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 AnalyzeSyntaxRequest
67
+ class DependencyEdge
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 DependencyEdge
73
+ class TextSpan
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 AnalyzeSyntaxResponse
79
+ class Token
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 AnnotateTextRequest
85
+ class Status
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 Sentence
91
+ class EntityMention
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
@@ -100,19 +100,19 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class PartOfSpeech
103
+ class Document
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 AnnotateTextResponse
109
+ class Sentence
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 Entity
115
+ class AnalyzeEntitiesRequest
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
@@ -124,89 +124,93 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class Token
127
+ class PartOfSpeech
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 AnalyzeEntitiesResponse
133
+ class AnalyzeSyntaxRequest
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 Document
139
+ class AnalyzeSentimentResponse
140
140
  # @private
141
141
  class Representation < Google::Apis::Core::JsonRepresentation
142
142
  property :language, as: 'language'
143
- property :gcs_content_uri, as: 'gcsContentUri'
144
- property :type, as: 'type'
145
- property :content, as: 'content'
146
- end
147
- end
143
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
144
+
145
+ property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
148
146
 
149
- class TextSpan
150
- # @private
151
- class Representation < Google::Apis::Core::JsonRepresentation
152
- property :begin_offset, as: 'beginOffset'
153
- property :content, as: 'content'
154
147
  end
155
148
  end
156
149
 
157
- class Status
150
+ class AnalyzeEntitiesResponse
158
151
  # @private
159
152
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :code, as: 'code'
161
- collection :details, as: 'details'
162
- property :message, as: 'message'
153
+ property :language, as: 'language'
154
+ collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
155
+
163
156
  end
164
157
  end
165
158
 
166
- class AnalyzeEntitiesRequest
159
+ class AnalyzeSyntaxResponse
167
160
  # @private
168
161
  class Representation < Google::Apis::Core::JsonRepresentation
169
- property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
162
+ property :language, as: 'language'
163
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
164
+
165
+ collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
170
166
 
171
- property :encoding_type, as: 'encodingType'
172
167
  end
173
168
  end
174
169
 
175
- class EntityMention
170
+ class Entity
176
171
  # @private
177
172
  class Representation < Google::Apis::Core::JsonRepresentation
178
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
173
+ collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
179
174
 
175
+ property :name, as: 'name'
180
176
  property :type, as: 'type'
177
+ hash :metadata, as: 'metadata'
178
+ property :salience, as: 'salience'
181
179
  end
182
180
  end
183
181
 
184
- class AnalyzeSentimentRequest
182
+ class AnnotateTextRequest
185
183
  # @private
186
184
  class Representation < Google::Apis::Core::JsonRepresentation
185
+ property :encoding_type, as: 'encodingType'
187
186
  property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
188
187
 
189
- property :encoding_type, as: 'encodingType'
188
+ property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
189
+
190
190
  end
191
191
  end
192
192
 
193
- class AnalyzeSentimentResponse
193
+ class AnnotateTextResponse
194
194
  # @private
195
195
  class Representation < Google::Apis::Core::JsonRepresentation
196
- property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
197
-
198
196
  property :language, as: 'language'
199
197
  collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
200
198
 
199
+ collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
200
+
201
+ collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
202
+
203
+ property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
204
+
201
205
  end
202
206
  end
203
207
 
204
- class AnalyzeSyntaxRequest
208
+ class AnalyzeSentimentRequest
205
209
  # @private
206
210
  class Representation < Google::Apis::Core::JsonRepresentation
211
+ property :encoding_type, as: 'encodingType'
207
212
  property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
208
213
 
209
- property :encoding_type, as: 'encodingType'
210
214
  end
211
215
  end
212
216
 
@@ -218,120 +222,116 @@ module Google
218
222
  end
219
223
  end
220
224
 
221
- class AnalyzeSyntaxResponse
225
+ class TextSpan
222
226
  # @private
223
227
  class Representation < Google::Apis::Core::JsonRepresentation
224
- property :language, as: 'language'
225
- collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
226
-
227
- collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
228
-
228
+ property :begin_offset, as: 'beginOffset'
229
+ property :content, as: 'content'
229
230
  end
230
231
  end
231
232
 
232
- class AnnotateTextRequest
233
+ class Token
233
234
  # @private
234
235
  class Representation < Google::Apis::Core::JsonRepresentation
235
- property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
236
+ property :lemma, as: 'lemma'
237
+ property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
236
238
 
237
- property :encoding_type, as: 'encodingType'
238
- property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
239
+ property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
240
+
241
+ property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
239
242
 
240
243
  end
241
244
  end
242
245
 
243
- class Sentence
246
+ class Status
244
247
  # @private
245
248
  class Representation < Google::Apis::Core::JsonRepresentation
246
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
249
+ collection :details, as: 'details'
250
+ property :code, as: 'code'
251
+ property :message, as: 'message'
252
+ end
253
+ end
247
254
 
248
- property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
255
+ class EntityMention
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
249
259
 
260
+ property :type, as: 'type'
250
261
  end
251
262
  end
252
263
 
253
264
  class Features
254
265
  # @private
255
266
  class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :extract_syntax, as: 'extractSyntax'
256
268
  property :extract_document_sentiment, as: 'extractDocumentSentiment'
257
269
  property :extract_entities, as: 'extractEntities'
258
- property :extract_syntax, as: 'extractSyntax'
259
270
  end
260
271
  end
261
272
 
262
- class PartOfSpeech
273
+ class Document
263
274
  # @private
264
275
  class Representation < Google::Apis::Core::JsonRepresentation
265
- property :aspect, as: 'aspect'
266
- property :gender, as: 'gender'
267
- property :person, as: 'person'
268
- property :case, as: 'case'
269
- property :form, as: 'form'
270
- property :tense, as: 'tense'
271
- property :proper, as: 'proper'
272
- property :mood, as: 'mood'
273
- property :tag, as: 'tag'
274
- property :number, as: 'number'
275
- property :reciprocity, as: 'reciprocity'
276
- property :voice, as: 'voice'
276
+ property :gcs_content_uri, as: 'gcsContentUri'
277
+ property :language, as: 'language'
278
+ property :type, as: 'type'
279
+ property :content, as: 'content'
277
280
  end
278
281
  end
279
282
 
280
- class AnnotateTextResponse
283
+ class Sentence
281
284
  # @private
282
285
  class Representation < Google::Apis::Core::JsonRepresentation
283
- collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
284
-
285
- property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
286
-
287
- property :language, as: 'language'
288
- collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
286
+ property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
289
287
 
290
- collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
288
+ property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
291
289
 
292
290
  end
293
291
  end
294
292
 
295
- class Entity
293
+ class AnalyzeEntitiesRequest
296
294
  # @private
297
295
  class Representation < Google::Apis::Core::JsonRepresentation
298
- hash :metadata, as: 'metadata'
299
- property :salience, as: 'salience'
300
- property :type, as: 'type'
301
- collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
296
+ property :encoding_type, as: 'encodingType'
297
+ property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
302
298
 
303
- property :name, as: 'name'
304
299
  end
305
300
  end
306
301
 
307
302
  class Sentiment
308
303
  # @private
309
304
  class Representation < Google::Apis::Core::JsonRepresentation
310
- property :score, as: 'score'
311
305
  property :polarity, as: 'polarity'
306
+ property :score, as: 'score'
312
307
  property :magnitude, as: 'magnitude'
313
308
  end
314
309
  end
315
310
 
316
- class Token
311
+ class PartOfSpeech
317
312
  # @private
318
313
  class Representation < Google::Apis::Core::JsonRepresentation
319
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
320
-
321
- property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
322
-
323
- property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
324
-
325
- property :lemma, as: 'lemma'
314
+ property :case, as: 'case'
315
+ property :tense, as: 'tense'
316
+ property :reciprocity, as: 'reciprocity'
317
+ property :form, as: 'form'
318
+ property :number, as: 'number'
319
+ property :voice, as: 'voice'
320
+ property :aspect, as: 'aspect'
321
+ property :mood, as: 'mood'
322
+ property :tag, as: 'tag'
323
+ property :gender, as: 'gender'
324
+ property :person, as: 'person'
325
+ property :proper, as: 'proper'
326
326
  end
327
327
  end
328
328
 
329
- class AnalyzeEntitiesResponse
329
+ class AnalyzeSyntaxRequest
330
330
  # @private
331
331
  class Representation < Google::Apis::Core::JsonRepresentation
332
- collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
332
+ property :encoding_type, as: 'encodingType'
333
+ property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
333
334
 
334
- property :language, as: 'language'
335
335
  end
336
336
  end
337
337
  end
@@ -50,11 +50,11 @@ module Google
50
50
 
51
51
  # Analyzes the sentiment of the provided text.
52
52
  # @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
53
55
  # @param [String] quota_user
54
56
  # Available to use for quota purposes for server-side applications. Can be any
55
57
  # arbitrary string assigned to a user, but should not exceed 40 characters.
56
- # @param [String] fields
57
- # Selector specifying which fields to include in a partial response.
58
58
  # @param [Google::Apis::RequestOptions] options
59
59
  # Request-specific options
60
60
  #
@@ -67,57 +67,25 @@ module Google
67
67
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
68
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
69
  # @raise [Google::Apis::AuthorizationError] Authorization is required
70
- def analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
70
+ def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
71
71
  command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
72
72
  command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
73
73
  command.request_object = analyze_sentiment_request_object
74
74
  command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
75
75
  command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
76
- command.query['quotaUser'] = quota_user unless quota_user.nil?
77
76
  command.query['fields'] = fields unless fields.nil?
78
- execute_or_queue_command(command, &block)
79
- end
80
-
81
- # Analyzes the syntax of the text and provides sentence boundaries and
82
- # tokenization along with part of speech tags, dependency trees, and other
83
- # properties.
84
- # @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
85
- # @param [String] quota_user
86
- # Available to use for quota purposes for server-side applications. Can be any
87
- # arbitrary string assigned to a user, but should not exceed 40 characters.
88
- # @param [String] fields
89
- # Selector specifying which fields to include in a partial response.
90
- # @param [Google::Apis::RequestOptions] options
91
- # Request-specific options
92
- #
93
- # @yield [result, err] Result & error if block supplied
94
- # @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse] parsed result object
95
- # @yieldparam err [StandardError] error object if request failed
96
- #
97
- # @return [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse]
98
- #
99
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
- # @raise [Google::Apis::AuthorizationError] Authorization is required
102
- def analyze_document_syntax(analyze_syntax_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
103
- command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
104
- command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
105
- command.request_object = analyze_syntax_request_object
106
- command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
107
- command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
108
77
  command.query['quotaUser'] = quota_user unless quota_user.nil?
109
- command.query['fields'] = fields unless fields.nil?
110
78
  execute_or_queue_command(command, &block)
111
79
  end
112
80
 
113
81
  # A convenience method that provides all the features that analyzeSentiment,
114
82
  # analyzeEntities, and analyzeSyntax provide in one call.
115
83
  # @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object
84
+ # @param [String] fields
85
+ # Selector specifying which fields to include in a partial response.
116
86
  # @param [String] quota_user
117
87
  # Available to use for quota purposes for server-side applications. Can be any
118
88
  # arbitrary string assigned to a user, but should not exceed 40 characters.
119
- # @param [String] fields
120
- # Selector specifying which fields to include in a partial response.
121
89
  # @param [Google::Apis::RequestOptions] options
122
90
  # Request-specific options
123
91
  #
@@ -130,25 +98,25 @@ module Google
130
98
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
131
99
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
132
100
  # @raise [Google::Apis::AuthorizationError] Authorization is required
133
- def annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
101
+ def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
134
102
  command = make_simple_command(:post, 'v1beta1/documents:annotateText', options)
135
103
  command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation
136
104
  command.request_object = annotate_text_request_object
137
105
  command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation
138
106
  command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse
139
- command.query['quotaUser'] = quota_user unless quota_user.nil?
140
107
  command.query['fields'] = fields unless fields.nil?
108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
141
109
  execute_or_queue_command(command, &block)
142
110
  end
143
111
 
144
112
  # Finds named entities (currently finds proper names) in the text,
145
113
  # entity types, salience, mentions for each entity, and other properties.
146
114
  # @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
115
+ # @param [String] fields
116
+ # Selector specifying which fields to include in a partial response.
147
117
  # @param [String] quota_user
148
118
  # Available to use for quota purposes for server-side applications. Can be any
149
119
  # arbitrary string assigned to a user, but should not exceed 40 characters.
150
- # @param [String] fields
151
- # Selector specifying which fields to include in a partial response.
152
120
  # @param [Google::Apis::RequestOptions] options
153
121
  # Request-specific options
154
122
  #
@@ -161,14 +129,46 @@ module Google
161
129
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
130
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
131
  # @raise [Google::Apis::AuthorizationError] Authorization is required
164
- def analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
132
+ def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
165
133
  command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options)
166
134
  command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation
167
135
  command.request_object = analyze_entities_request_object
168
136
  command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation
169
137
  command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
138
+ command.query['fields'] = fields unless fields.nil?
170
139
  command.query['quotaUser'] = quota_user unless quota_user.nil?
140
+ execute_or_queue_command(command, &block)
141
+ end
142
+
143
+ # Analyzes the syntax of the text and provides sentence boundaries and
144
+ # tokenization along with part of speech tags, dependency trees, and other
145
+ # properties.
146
+ # @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
147
+ # @param [String] fields
148
+ # Selector specifying which fields to include in a partial response.
149
+ # @param [String] quota_user
150
+ # Available to use for quota purposes for server-side applications. Can be any
151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
152
+ # @param [Google::Apis::RequestOptions] options
153
+ # Request-specific options
154
+ #
155
+ # @yield [result, err] Result & error if block supplied
156
+ # @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse] parsed result object
157
+ # @yieldparam err [StandardError] error object if request failed
158
+ #
159
+ # @return [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse]
160
+ #
161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
164
+ def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
165
+ command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
166
+ command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
167
+ command.request_object = analyze_syntax_request_object
168
+ command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
169
+ command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
171
170
  command.query['fields'] = fields unless fields.nil?
171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
172
172
  execute_or_queue_command(command, &block)
173
173
  end
174
174