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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -22,316 +22,316 @@ module Google
22
22
  module Apis
23
23
  module LanguageV1beta1
24
24
 
25
- class AnalyzeEntitiesResponse
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 Entity
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 AnalyzeSyntaxResponse
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 AnnotateTextRequest
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 AnalyzeSentimentRequest
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 AnnotateTextResponse
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 DependencyEdge
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 TextSpan
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 Token
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 Status
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 Features
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 EntityMention
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 Document
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 Sentence
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 AnalyzeEntitiesRequest
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 Sentiment
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 PartOfSpeech
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 AnalyzeSyntaxRequest
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 AnalyzeSentimentResponse
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 AnalyzeEntitiesResponse
139
+ class Token
140
140
  # @private
141
141
  class Representation < Google::Apis::Core::JsonRepresentation
142
- property :language, as: 'language'
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 Entity
152
+ class TextSpan
149
153
  # @private
150
154
  class Representation < Google::Apis::Core::JsonRepresentation
151
- collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation
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 AnalyzeSyntaxResponse
160
+ class Status
161
161
  # @private
162
162
  class Representation < Google::Apis::Core::JsonRepresentation
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
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 AnnotateTextRequest
169
+ class EntityMention
172
170
  # @private
173
171
  class Representation < Google::Apis::Core::JsonRepresentation
174
- property :encoding_type, as: 'encodingType'
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 AnalyzeSentimentRequest
178
+ class Features
183
179
  # @private
184
180
  class Representation < Google::Apis::Core::JsonRepresentation
185
- property :encoding_type, as: 'encodingType'
186
- property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
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 AnnotateTextResponse
187
+ class Sentence
192
188
  # @private
193
189
  class Representation < Google::Apis::Core::JsonRepresentation
194
- property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
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
- collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation
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 DependencyEdge
197
+ class Document
207
198
  # @private
208
199
  class Representation < Google::Apis::Core::JsonRepresentation
209
- property :label, as: 'label'
210
- property :head_token_index, as: 'headTokenIndex'
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 TextSpan
207
+ class Sentiment
215
208
  # @private
216
209
  class Representation < Google::Apis::Core::JsonRepresentation
217
- property :begin_offset, as: 'beginOffset'
218
- property :content, as: 'content'
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 Token
216
+ class AnalyzeEntitiesRequest
223
217
  # @private
224
218
  class Representation < Google::Apis::Core::JsonRepresentation
225
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
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 Status
225
+ class PartOfSpeech
236
226
  # @private
237
227
  class Representation < Google::Apis::Core::JsonRepresentation
238
- property :code, as: 'code'
239
- property :message, as: 'message'
240
- collection :details, as: 'details'
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 Features
243
+ class AnalyzeSyntaxRequest
245
244
  # @private
246
245
  class Representation < Google::Apis::Core::JsonRepresentation
247
- property :extract_syntax, as: 'extractSyntax'
248
- property :extract_document_sentiment, as: 'extractDocumentSentiment'
249
- property :extract_entities, as: 'extractEntities'
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 EntityMention
252
+ class AnalyzeSentimentResponse
254
253
  # @private
255
254
  class Representation < Google::Apis::Core::JsonRepresentation
256
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
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 Document
263
+ class AnalyzeEntitiesResponse
263
264
  # @private
264
265
  class Representation < Google::Apis::Core::JsonRepresentation
265
- property :type, as: 'type'
266
- property :content, as: 'content'
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 Sentence
272
+ class Entity
273
273
  # @private
274
274
  class Representation < Google::Apis::Core::JsonRepresentation
275
- property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
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 AnalyzeEntitiesRequest
284
+ class AnalyzeSyntaxResponse
283
285
  # @private
284
286
  class Representation < Google::Apis::Core::JsonRepresentation
285
- property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
287
+ collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
286
288
 
287
- property :encoding_type, as: 'encodingType'
288
- end
289
- end
289
+ collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
290
290
 
291
- class Sentiment
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 PartOfSpeech
295
+ class AnnotateTextRequest
301
296
  # @private
302
297
  class Representation < Google::Apis::Core::JsonRepresentation
303
- property :voice, as: 'voice'
304
- property :aspect, as: 'aspect'
305
- property :mood, as: 'mood'
306
- property :tag, as: 'tag'
307
- property :gender, as: 'gender'
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 AnalyzeSyntaxRequest
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 AnalyzeSentimentResponse
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, quota_user: nil, fields: nil, options: nil, &block)
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, quota_user: nil, fields: nil, options: nil, &block)
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, quota_user: nil, fields: nil, options: nil, &block)
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 finds proper names) in the text,
145
- # entity types, salience, mentions for each entity, and other properties.
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, quota_user: nil, fields: nil, options: nil, &block)
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