google-api-client 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- 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 +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.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/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.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 +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- 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_partner_v1/classes.rb +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -22,316 +22,316 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LanguageV1beta1
|
24
24
|
|
25
|
-
class
|
25
|
+
class Token
|
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 TextSpan
|
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 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
|
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
|
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
|
55
|
+
class Sentence
|
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 Document
|
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 Sentiment
|
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 AnalyzeEntitiesRequest
|
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 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
|
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
|
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
|
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
|
103
|
+
class Entity
|
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 AnalyzeSyntaxResponse
|
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 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
|
121
|
+
class AnalyzeSentimentRequest
|
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
|
127
|
+
class AnnotateTextResponse
|
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 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
|
139
|
+
class Token
|
140
140
|
# @private
|
141
141
|
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
-
property :
|
143
|
-
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
142
|
+
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
|
144
143
|
|
144
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
145
|
+
|
146
|
+
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
|
147
|
+
|
148
|
+
property :lemma, as: 'lemma'
|
145
149
|
end
|
146
150
|
end
|
147
151
|
|
148
|
-
class
|
152
|
+
class TextSpan
|
149
153
|
# @private
|
150
154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
151
|
-
|
152
|
-
|
153
|
-
property :name, as: 'name'
|
154
|
-
property :type, as: 'type'
|
155
|
-
hash :metadata, as: 'metadata'
|
156
|
-
property :salience, as: 'salience'
|
155
|
+
property :content, as: 'content'
|
156
|
+
property :begin_offset, as: 'beginOffset'
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
160
|
-
class
|
160
|
+
class Status
|
161
161
|
# @private
|
162
162
|
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
-
collection :
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
property :language, as: 'language'
|
163
|
+
collection :details, as: 'details'
|
164
|
+
property :code, as: 'code'
|
165
|
+
property :message, as: 'message'
|
168
166
|
end
|
169
167
|
end
|
170
168
|
|
171
|
-
class
|
169
|
+
class EntityMention
|
172
170
|
# @private
|
173
171
|
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
-
property :
|
175
|
-
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
176
|
-
|
177
|
-
property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
|
172
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
178
173
|
|
174
|
+
property :type, as: 'type'
|
179
175
|
end
|
180
176
|
end
|
181
177
|
|
182
|
-
class
|
178
|
+
class Features
|
183
179
|
# @private
|
184
180
|
class Representation < Google::Apis::Core::JsonRepresentation
|
185
|
-
property :
|
186
|
-
property :
|
187
|
-
|
181
|
+
property :extract_syntax, as: 'extractSyntax'
|
182
|
+
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
183
|
+
property :extract_entities, as: 'extractEntities'
|
188
184
|
end
|
189
185
|
end
|
190
186
|
|
191
|
-
class
|
187
|
+
class Sentence
|
192
188
|
# @private
|
193
189
|
class Representation < Google::Apis::Core::JsonRepresentation
|
194
|
-
property :
|
195
|
-
|
196
|
-
property :language, as: 'language'
|
197
|
-
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
198
|
-
|
199
|
-
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
190
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
200
191
|
|
201
|
-
|
192
|
+
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
202
193
|
|
203
194
|
end
|
204
195
|
end
|
205
196
|
|
206
|
-
class
|
197
|
+
class Document
|
207
198
|
# @private
|
208
199
|
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
-
property :
|
210
|
-
property :
|
200
|
+
property :language, as: 'language'
|
201
|
+
property :type, as: 'type'
|
202
|
+
property :content, as: 'content'
|
203
|
+
property :gcs_content_uri, as: 'gcsContentUri'
|
211
204
|
end
|
212
205
|
end
|
213
206
|
|
214
|
-
class
|
207
|
+
class Sentiment
|
215
208
|
# @private
|
216
209
|
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
-
property :
|
218
|
-
property :
|
210
|
+
property :polarity, as: 'polarity'
|
211
|
+
property :score, as: 'score'
|
212
|
+
property :magnitude, as: 'magnitude'
|
219
213
|
end
|
220
214
|
end
|
221
215
|
|
222
|
-
class
|
216
|
+
class AnalyzeEntitiesRequest
|
223
217
|
# @private
|
224
218
|
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
-
property :
|
226
|
-
|
227
|
-
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
|
228
|
-
|
229
|
-
property :lemma, as: 'lemma'
|
230
|
-
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
|
219
|
+
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
231
220
|
|
221
|
+
property :encoding_type, as: 'encodingType'
|
232
222
|
end
|
233
223
|
end
|
234
224
|
|
235
|
-
class
|
225
|
+
class PartOfSpeech
|
236
226
|
# @private
|
237
227
|
class Representation < Google::Apis::Core::JsonRepresentation
|
238
|
-
property :
|
239
|
-
property :
|
240
|
-
|
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'
|
241
240
|
end
|
242
241
|
end
|
243
242
|
|
244
|
-
class
|
243
|
+
class AnalyzeSyntaxRequest
|
245
244
|
# @private
|
246
245
|
class Representation < Google::Apis::Core::JsonRepresentation
|
247
|
-
property :
|
248
|
-
property :
|
249
|
-
|
246
|
+
property :encoding_type, as: 'encodingType'
|
247
|
+
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
248
|
+
|
250
249
|
end
|
251
250
|
end
|
252
251
|
|
253
|
-
class
|
252
|
+
class AnalyzeSentimentResponse
|
254
253
|
# @private
|
255
254
|
class Representation < Google::Apis::Core::JsonRepresentation
|
256
|
-
property :
|
255
|
+
property :language, as: 'language'
|
256
|
+
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
257
|
+
|
258
|
+
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
257
259
|
|
258
|
-
property :type, as: 'type'
|
259
260
|
end
|
260
261
|
end
|
261
262
|
|
262
|
-
class
|
263
|
+
class AnalyzeEntitiesResponse
|
263
264
|
# @private
|
264
265
|
class Representation < Google::Apis::Core::JsonRepresentation
|
265
|
-
|
266
|
-
|
267
|
-
property :gcs_content_uri, as: 'gcsContentUri'
|
266
|
+
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
267
|
+
|
268
268
|
property :language, as: 'language'
|
269
269
|
end
|
270
270
|
end
|
271
271
|
|
272
|
-
class
|
272
|
+
class Entity
|
273
273
|
# @private
|
274
274
|
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
-
|
276
|
-
|
277
|
-
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
275
|
+
collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
|
278
276
|
|
277
|
+
property :name, as: 'name'
|
278
|
+
property :type, as: 'type'
|
279
|
+
hash :metadata, as: 'metadata'
|
280
|
+
property :salience, as: 'salience'
|
279
281
|
end
|
280
282
|
end
|
281
283
|
|
282
|
-
class
|
284
|
+
class AnalyzeSyntaxResponse
|
283
285
|
# @private
|
284
286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
285
|
-
|
287
|
+
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
286
288
|
|
287
|
-
|
288
|
-
end
|
289
|
-
end
|
289
|
+
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
290
290
|
|
291
|
-
|
292
|
-
# @private
|
293
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
-
property :polarity, as: 'polarity'
|
295
|
-
property :score, as: 'score'
|
296
|
-
property :magnitude, as: 'magnitude'
|
291
|
+
property :language, as: 'language'
|
297
292
|
end
|
298
293
|
end
|
299
294
|
|
300
|
-
class
|
295
|
+
class AnnotateTextRequest
|
301
296
|
# @private
|
302
297
|
class Representation < Google::Apis::Core::JsonRepresentation
|
303
|
-
property :
|
304
|
-
property :
|
305
|
-
|
306
|
-
property :
|
307
|
-
|
308
|
-
property :person, as: 'person'
|
309
|
-
property :proper, as: 'proper'
|
310
|
-
property :case, as: 'case'
|
311
|
-
property :tense, as: 'tense'
|
312
|
-
property :reciprocity, as: 'reciprocity'
|
313
|
-
property :form, as: 'form'
|
314
|
-
property :number, as: 'number'
|
298
|
+
property :encoding_type, as: 'encodingType'
|
299
|
+
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
300
|
+
|
301
|
+
property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation
|
302
|
+
|
315
303
|
end
|
316
304
|
end
|
317
305
|
|
318
|
-
class
|
306
|
+
class AnalyzeSentimentRequest
|
319
307
|
# @private
|
320
308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
+
property :encoding_type, as: 'encodingType'
|
321
310
|
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
322
311
|
|
323
|
-
property :encoding_type, as: 'encodingType'
|
324
312
|
end
|
325
313
|
end
|
326
314
|
|
327
|
-
class
|
315
|
+
class AnnotateTextResponse
|
328
316
|
# @private
|
329
317
|
class Representation < Google::Apis::Core::JsonRepresentation
|
330
|
-
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
331
|
-
|
332
318
|
property :language, as: 'language'
|
333
319
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
334
320
|
|
321
|
+
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
322
|
+
|
323
|
+
collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
|
324
|
+
|
325
|
+
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
326
|
+
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
class DependencyEdge
|
331
|
+
# @private
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
+
property :head_token_index, as: 'headTokenIndex'
|
334
|
+
property :label, as: 'label'
|
335
335
|
end
|
336
336
|
end
|
337
337
|
end
|
@@ -34,16 +34,16 @@ module Google
|
|
34
34
|
#
|
35
35
|
# @see https://cloud.google.com/natural-language/
|
36
36
|
class CloudNaturalLanguageService < Google::Apis::Core::BaseService
|
37
|
-
# @return [String]
|
38
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
39
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
40
|
-
attr_accessor :quota_user
|
41
|
-
|
42
37
|
# @return [String]
|
43
38
|
# API key. Your API key identifies your project and provides you with API access,
|
44
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
45
40
|
attr_accessor :key
|
46
41
|
|
42
|
+
# @return [String]
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
45
|
+
attr_accessor :quota_user
|
46
|
+
|
47
47
|
def initialize
|
48
48
|
super('https://language.googleapis.com/', '')
|
49
49
|
end
|
@@ -52,11 +52,11 @@ module Google
|
|
52
52
|
# tokenization along with part of speech tags, dependency trees, and other
|
53
53
|
# properties.
|
54
54
|
# @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
55
57
|
# @param [String] quota_user
|
56
58
|
# Available to use for quota purposes for server-side applications. Can be any
|
57
59
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
-
# @param [String] fields
|
59
|
-
# Selector specifying which fields to include in a partial response.
|
60
60
|
# @param [Google::Apis::RequestOptions] options
|
61
61
|
# Request-specific options
|
62
62
|
#
|
@@ -69,24 +69,24 @@ module Google
|
|
69
69
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
70
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
71
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
-
def analyze_document_syntax(analyze_syntax_request_object = nil,
|
72
|
+
def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
73
|
command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
|
74
74
|
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
|
75
75
|
command.request_object = analyze_syntax_request_object
|
76
76
|
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
|
77
77
|
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
|
78
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
78
|
command.query['fields'] = fields unless fields.nil?
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
80
|
execute_or_queue_command(command, &block)
|
81
81
|
end
|
82
82
|
|
83
83
|
# Analyzes the sentiment of the provided text.
|
84
84
|
# @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
85
|
+
# @param [String] fields
|
86
|
+
# Selector specifying which fields to include in a partial response.
|
85
87
|
# @param [String] quota_user
|
86
88
|
# Available to use for quota purposes for server-side applications. Can be any
|
87
89
|
# 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
90
|
# @param [Google::Apis::RequestOptions] options
|
91
91
|
# Request-specific options
|
92
92
|
#
|
@@ -99,25 +99,25 @@ module Google
|
|
99
99
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
100
100
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
101
101
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
102
|
-
def analyze_document_sentiment(analyze_sentiment_request_object = nil,
|
102
|
+
def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
103
103
|
command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
|
104
104
|
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
|
105
105
|
command.request_object = analyze_sentiment_request_object
|
106
106
|
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
|
107
107
|
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
|
108
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
109
108
|
command.query['fields'] = fields unless fields.nil?
|
109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
110
110
|
execute_or_queue_command(command, &block)
|
111
111
|
end
|
112
112
|
|
113
113
|
# A convenience method that provides all the features that analyzeSentiment,
|
114
114
|
# analyzeEntities, and analyzeSyntax provide in one call.
|
115
115
|
# @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object
|
116
|
+
# @param [String] fields
|
117
|
+
# Selector specifying which fields to include in a partial response.
|
116
118
|
# @param [String] quota_user
|
117
119
|
# Available to use for quota purposes for server-side applications. Can be any
|
118
120
|
# 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
121
|
# @param [Google::Apis::RequestOptions] options
|
122
122
|
# Request-specific options
|
123
123
|
#
|
@@ -130,25 +130,26 @@ module Google
|
|
130
130
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
131
131
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
132
132
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
133
|
-
def annotate_document_text(annotate_text_request_object = nil,
|
133
|
+
def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
134
134
|
command = make_simple_command(:post, 'v1beta1/documents:annotateText', options)
|
135
135
|
command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation
|
136
136
|
command.request_object = annotate_text_request_object
|
137
137
|
command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation
|
138
138
|
command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse
|
139
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
140
139
|
command.query['fields'] = fields unless fields.nil?
|
140
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
141
141
|
execute_or_queue_command(command, &block)
|
142
142
|
end
|
143
143
|
|
144
|
-
# Finds named entities (currently
|
145
|
-
# entity types, salience, mentions for each entity, and
|
144
|
+
# Finds named entities (currently proper names and common nouns) in the text
|
145
|
+
# along with entity types, salience, mentions for each entity, and
|
146
|
+
# other properties.
|
146
147
|
# @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
|
148
|
+
# @param [String] fields
|
149
|
+
# Selector specifying which fields to include in a partial response.
|
147
150
|
# @param [String] quota_user
|
148
151
|
# Available to use for quota purposes for server-side applications. Can be any
|
149
152
|
# 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
153
|
# @param [Google::Apis::RequestOptions] options
|
153
154
|
# Request-specific options
|
154
155
|
#
|
@@ -161,22 +162,22 @@ module Google
|
|
161
162
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
162
163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
163
164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
164
|
-
def analyze_document_entities(analyze_entities_request_object = nil,
|
165
|
+
def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
165
166
|
command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options)
|
166
167
|
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation
|
167
168
|
command.request_object = analyze_entities_request_object
|
168
169
|
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation
|
169
170
|
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
|
170
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
171
171
|
command.query['fields'] = fields unless fields.nil?
|
172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
172
173
|
execute_or_queue_command(command, &block)
|
173
174
|
end
|
174
175
|
|
175
176
|
protected
|
176
177
|
|
177
178
|
def apply_command_defaults(command)
|
178
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
179
179
|
command.query['key'] = key unless key.nil?
|
180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
181
|
end
|
181
182
|
end
|
182
183
|
end
|