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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/api_names.yaml +36326 -36213
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
- data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
- data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
- data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
- data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +12 -0
- data/generated/google/apis/content_v2/representations.rb +2 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
- data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
- data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +26 -0
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +38 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +4 -4
- data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
- data/generated/google/apis/genomics_v1/representations.rb +476 -476
- data/generated/google/apis/genomics_v1/service.rb +1038 -1038
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +82 -1
- data/generated/google/apis/gmail_v1/representations.rb +33 -0
- data/generated/google/apis/gmail_v1/service.rb +215 -5
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +446 -343
- data/generated/google/apis/iam_v1/representations.rb +112 -85
- data/generated/google/apis/iam_v1/service.rb +248 -192
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +15 -15
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +396 -396
- data/generated/google/apis/language_v1beta1/representations.rb +97 -97
- data/generated/google/apis/language_v1beta1/service.rb +42 -42
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
- data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
- data/generated/google/apis/logging_v2beta1/service.rb +214 -214
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +551 -551
- data/generated/google/apis/monitoring_v3/representations.rb +123 -123
- data/generated/google/apis/monitoring_v3/service.rb +80 -80
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1/classes.rb +391 -391
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +257 -257
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
- data/generated/google/apis/sheets_v4/representations.rb +861 -861
- data/generated/google/apis/sheets_v4/service.rb +191 -191
- data/generated/google/apis/slides_v1.rb +7 -7
- data/generated/google/apis/slides_v1/classes.rb +2726 -2555
- data/generated/google/apis/slides_v1/representations.rb +678 -607
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
- data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
- data/generated/google/apis/speech_v1beta1/service.rb +63 -63
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +4 -3
- data/generated/google/apis/vision_v1/classes.rb +925 -925
- data/generated/google/apis/vision_v1/representations.rb +134 -134
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +234 -1
- data/generated/google/apis/youtube_v3/representations.rb +83 -0
- data/generated/google/apis/youtube_v3/service.rb +55 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
- data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
- data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
- data/lib/google/apis/core/api_command.rb +11 -5
- data/lib/google/apis/core/base_service.rb +7 -5
- data/lib/google/apis/errors.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +28 -28
@@ -22,73 +22,73 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LanguageV1beta1
|
24
24
|
|
25
|
-
class
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
139
|
+
class AnalyzeSentimentResponse
|
140
140
|
# @private
|
141
141
|
class Representation < Google::Apis::Core::JsonRepresentation
|
142
142
|
property :language, as: 'language'
|
143
|
-
|
144
|
-
|
145
|
-
property :
|
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
|
150
|
+
class AnalyzeEntitiesResponse
|
158
151
|
# @private
|
159
152
|
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
-
property :
|
161
|
-
collection :
|
162
|
-
|
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
|
159
|
+
class AnalyzeSyntaxResponse
|
167
160
|
# @private
|
168
161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
-
property :
|
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
|
170
|
+
class Entity
|
176
171
|
# @private
|
177
172
|
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
-
|
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
|
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 :
|
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
|
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
|
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
|
225
|
+
class TextSpan
|
222
226
|
# @private
|
223
227
|
class Representation < Google::Apis::Core::JsonRepresentation
|
224
|
-
property :
|
225
|
-
|
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
|
233
|
+
class Token
|
233
234
|
# @private
|
234
235
|
class Representation < Google::Apis::Core::JsonRepresentation
|
235
|
-
property :
|
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 :
|
238
|
-
|
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
|
246
|
+
class Status
|
244
247
|
# @private
|
245
248
|
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
-
|
249
|
+
collection :details, as: 'details'
|
250
|
+
property :code, as: 'code'
|
251
|
+
property :message, as: 'message'
|
252
|
+
end
|
253
|
+
end
|
247
254
|
|
248
|
-
|
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
|
273
|
+
class Document
|
263
274
|
# @private
|
264
275
|
class Representation < Google::Apis::Core::JsonRepresentation
|
265
|
-
property :
|
266
|
-
property :
|
267
|
-
property :
|
268
|
-
property :
|
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
|
283
|
+
class Sentence
|
281
284
|
# @private
|
282
285
|
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
-
|
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
|
-
|
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
|
293
|
+
class AnalyzeEntitiesRequest
|
296
294
|
# @private
|
297
295
|
class Representation < Google::Apis::Core::JsonRepresentation
|
298
|
-
|
299
|
-
property :
|
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
|
311
|
+
class PartOfSpeech
|
317
312
|
# @private
|
318
313
|
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
-
property :
|
320
|
-
|
321
|
-
property :
|
322
|
-
|
323
|
-
property :
|
324
|
-
|
325
|
-
property :
|
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
|
329
|
+
class AnalyzeSyntaxRequest
|
330
330
|
# @private
|
331
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
332
|
-
|
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,
|
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,
|
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,
|
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
|
|