google-api-client 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
- 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 +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- 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 +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- 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/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- 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 +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
@@ -22,185 +22,126 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LanguageV1beta1
|
24
24
|
|
25
|
-
class
|
25
|
+
class AnalyzeEntitiesRequest
|
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 Sentiment
|
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 PartOfSpeech
|
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 AnalyzeSyntaxRequest
|
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 AnalyzeSentimentResponse
|
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 AnalyzeEntitiesResponse
|
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 Entity
|
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 AnalyzeSyntaxResponse
|
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 AnnotateTextRequest
|
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 AnnotateTextResponse
|
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 AnalyzeSentimentRequest
|
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 DependencyEdge
|
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 Token
|
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 TextSpan
|
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 Status
|
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 EntityMention
|
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 Features
|
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 Sentence
|
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 Document
|
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
|
140
|
-
# @private
|
141
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
-
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
|
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'
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
class TextSpan
|
153
|
-
# @private
|
154
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
155
|
-
property :content, as: 'content'
|
156
|
-
property :begin_offset, as: 'beginOffset'
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
class Status
|
161
|
-
# @private
|
162
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
-
collection :details, as: 'details'
|
164
|
-
property :code, as: 'code'
|
165
|
-
property :message, as: 'message'
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
class EntityMention
|
170
|
-
# @private
|
171
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
172
|
-
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
173
|
-
|
174
|
-
property :type, as: 'type'
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
class Features
|
179
|
-
# @private
|
180
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
181
|
-
property :extract_syntax, as: 'extractSyntax'
|
182
|
-
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
183
|
-
property :extract_entities, as: 'extractEntities'
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
|
-
class Sentence
|
139
|
+
class AnalyzeEntitiesRequest
|
188
140
|
# @private
|
189
141
|
class Representation < Google::Apis::Core::JsonRepresentation
|
190
|
-
property :
|
191
|
-
|
192
|
-
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
193
|
-
|
194
|
-
end
|
195
|
-
end
|
142
|
+
property :encoding_type, as: 'encodingType'
|
143
|
+
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
196
144
|
|
197
|
-
class Document
|
198
|
-
# @private
|
199
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
-
property :language, as: 'language'
|
201
|
-
property :type, as: 'type'
|
202
|
-
property :content, as: 'content'
|
203
|
-
property :gcs_content_uri, as: 'gcsContentUri'
|
204
145
|
end
|
205
146
|
end
|
206
147
|
|
@@ -213,15 +154,6 @@ module Google
|
|
213
154
|
end
|
214
155
|
end
|
215
156
|
|
216
|
-
class AnalyzeEntitiesRequest
|
217
|
-
# @private
|
218
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
-
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
220
|
-
|
221
|
-
property :encoding_type, as: 'encodingType'
|
222
|
-
end
|
223
|
-
end
|
224
|
-
|
225
157
|
class PartOfSpeech
|
226
158
|
# @private
|
227
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -243,20 +175,20 @@ module Google
|
|
243
175
|
class AnalyzeSyntaxRequest
|
244
176
|
# @private
|
245
177
|
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
-
property :encoding_type, as: 'encodingType'
|
247
178
|
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
248
179
|
|
180
|
+
property :encoding_type, as: 'encodingType'
|
249
181
|
end
|
250
182
|
end
|
251
183
|
|
252
184
|
class AnalyzeSentimentResponse
|
253
185
|
# @private
|
254
186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
255
|
-
property :language, as: 'language'
|
256
187
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
257
188
|
|
258
189
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
259
190
|
|
191
|
+
property :language, as: 'language'
|
260
192
|
end
|
261
193
|
end
|
262
194
|
|
@@ -284,11 +216,11 @@ module Google
|
|
284
216
|
class AnalyzeSyntaxResponse
|
285
217
|
# @private
|
286
218
|
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
+
property :language, as: 'language'
|
287
220
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
288
221
|
|
289
222
|
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
290
223
|
|
291
|
-
property :language, as: 'language'
|
292
224
|
end
|
293
225
|
end
|
294
226
|
|
@@ -303,19 +235,9 @@ module Google
|
|
303
235
|
end
|
304
236
|
end
|
305
237
|
|
306
|
-
class AnalyzeSentimentRequest
|
307
|
-
# @private
|
308
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
-
property :encoding_type, as: 'encodingType'
|
310
|
-
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
311
|
-
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
238
|
class AnnotateTextResponse
|
316
239
|
# @private
|
317
240
|
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
-
property :language, as: 'language'
|
319
241
|
collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation
|
320
242
|
|
321
243
|
collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation
|
@@ -324,6 +246,16 @@ module Google
|
|
324
246
|
|
325
247
|
property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
326
248
|
|
249
|
+
property :language, as: 'language'
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
class AnalyzeSentimentRequest
|
254
|
+
# @private
|
255
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
256
|
+
property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation
|
257
|
+
|
258
|
+
property :encoding_type, as: 'encodingType'
|
327
259
|
end
|
328
260
|
end
|
329
261
|
|
@@ -334,6 +266,74 @@ module Google
|
|
334
266
|
property :label, as: 'label'
|
335
267
|
end
|
336
268
|
end
|
269
|
+
|
270
|
+
class Token
|
271
|
+
# @private
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
273
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
274
|
+
|
275
|
+
property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation
|
276
|
+
|
277
|
+
property :lemma, as: 'lemma'
|
278
|
+
property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation
|
279
|
+
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
class TextSpan
|
284
|
+
# @private
|
285
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
286
|
+
property :begin_offset, as: 'beginOffset'
|
287
|
+
property :content, as: 'content'
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
class Status
|
292
|
+
# @private
|
293
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
+
property :code, as: 'code'
|
295
|
+
property :message, as: 'message'
|
296
|
+
collection :details, as: 'details'
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
class EntityMention
|
301
|
+
# @private
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
303
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
304
|
+
|
305
|
+
property :type, as: 'type'
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
class Features
|
310
|
+
# @private
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
312
|
+
property :extract_entities, as: 'extractEntities'
|
313
|
+
property :extract_syntax, as: 'extractSyntax'
|
314
|
+
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
class Sentence
|
319
|
+
# @private
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
321
|
+
property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation
|
322
|
+
|
323
|
+
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation
|
324
|
+
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
class Document
|
329
|
+
# @private
|
330
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
+
property :type, as: 'type'
|
332
|
+
property :content, as: 'content'
|
333
|
+
property :gcs_content_uri, as: 'gcsContentUri'
|
334
|
+
property :language, as: 'language'
|
335
|
+
end
|
336
|
+
end
|
337
337
|
end
|
338
338
|
end
|
339
339
|
end
|
@@ -48,10 +48,9 @@ module Google
|
|
48
48
|
super('https://language.googleapis.com/', '')
|
49
49
|
end
|
50
50
|
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
# @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
|
51
|
+
# A convenience method that provides all the features that analyzeSentiment,
|
52
|
+
# analyzeEntities, and analyzeSyntax provide in one call.
|
53
|
+
# @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object
|
55
54
|
# @param [String] fields
|
56
55
|
# Selector specifying which fields to include in a partial response.
|
57
56
|
# @param [String] quota_user
|
@@ -61,27 +60,29 @@ module Google
|
|
61
60
|
# Request-specific options
|
62
61
|
#
|
63
62
|
# @yield [result, err] Result & error if block supplied
|
64
|
-
# @yieldparam result [Google::Apis::LanguageV1beta1::
|
63
|
+
# @yieldparam result [Google::Apis::LanguageV1beta1::AnnotateTextResponse] parsed result object
|
65
64
|
# @yieldparam err [StandardError] error object if request failed
|
66
65
|
#
|
67
|
-
# @return [Google::Apis::LanguageV1beta1::
|
66
|
+
# @return [Google::Apis::LanguageV1beta1::AnnotateTextResponse]
|
68
67
|
#
|
69
68
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
69
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
70
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
-
def
|
73
|
-
command = make_simple_command(:post, 'v1beta1/documents:
|
74
|
-
command.request_representation = Google::Apis::LanguageV1beta1::
|
75
|
-
command.request_object =
|
76
|
-
command.response_representation = Google::Apis::LanguageV1beta1::
|
77
|
-
command.response_class = Google::Apis::LanguageV1beta1::
|
71
|
+
def annotate_document_text(annotate_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
72
|
+
command = make_simple_command(:post, 'v1beta1/documents:annotateText', options)
|
73
|
+
command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation
|
74
|
+
command.request_object = annotate_text_request_object
|
75
|
+
command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation
|
76
|
+
command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse
|
78
77
|
command.query['fields'] = fields unless fields.nil?
|
79
78
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
79
|
execute_or_queue_command(command, &block)
|
81
80
|
end
|
82
81
|
|
83
|
-
#
|
84
|
-
#
|
82
|
+
# Finds named entities (currently proper names and common nouns) in the text
|
83
|
+
# along with entity types, salience, mentions for each entity, and
|
84
|
+
# other properties.
|
85
|
+
# @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
|
85
86
|
# @param [String] fields
|
86
87
|
# Selector specifying which fields to include in a partial response.
|
87
88
|
# @param [String] quota_user
|
@@ -91,28 +92,29 @@ module Google
|
|
91
92
|
# Request-specific options
|
92
93
|
#
|
93
94
|
# @yield [result, err] Result & error if block supplied
|
94
|
-
# @yieldparam result [Google::Apis::LanguageV1beta1::
|
95
|
+
# @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse] parsed result object
|
95
96
|
# @yieldparam err [StandardError] error object if request failed
|
96
97
|
#
|
97
|
-
# @return [Google::Apis::LanguageV1beta1::
|
98
|
+
# @return [Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse]
|
98
99
|
#
|
99
100
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
100
101
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
101
102
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
102
|
-
def
|
103
|
-
command = make_simple_command(:post, 'v1beta1/documents:
|
104
|
-
command.request_representation = Google::Apis::LanguageV1beta1::
|
105
|
-
command.request_object =
|
106
|
-
command.response_representation = Google::Apis::LanguageV1beta1::
|
107
|
-
command.response_class = Google::Apis::LanguageV1beta1::
|
103
|
+
def analyze_document_entities(analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
104
|
+
command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options)
|
105
|
+
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation
|
106
|
+
command.request_object = analyze_entities_request_object
|
107
|
+
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation
|
108
|
+
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse
|
108
109
|
command.query['fields'] = fields unless fields.nil?
|
109
110
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
110
111
|
execute_or_queue_command(command, &block)
|
111
112
|
end
|
112
113
|
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
114
|
+
# Analyzes the syntax of the text and provides sentence boundaries and
|
115
|
+
# tokenization along with part of speech tags, dependency trees, and other
|
116
|
+
# properties.
|
117
|
+
# @param [Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest] analyze_syntax_request_object
|
116
118
|
# @param [String] fields
|
117
119
|
# Selector specifying which fields to include in a partial response.
|
118
120
|
# @param [String] quota_user
|
@@ -122,29 +124,27 @@ module Google
|
|
122
124
|
# Request-specific options
|
123
125
|
#
|
124
126
|
# @yield [result, err] Result & error if block supplied
|
125
|
-
# @yieldparam result [Google::Apis::LanguageV1beta1::
|
127
|
+
# @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse] parsed result object
|
126
128
|
# @yieldparam err [StandardError] error object if request failed
|
127
129
|
#
|
128
|
-
# @return [Google::Apis::LanguageV1beta1::
|
130
|
+
# @return [Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse]
|
129
131
|
#
|
130
132
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
131
133
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
132
134
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
133
|
-
def
|
134
|
-
command = make_simple_command(:post, 'v1beta1/documents:
|
135
|
-
command.request_representation = Google::Apis::LanguageV1beta1::
|
136
|
-
command.request_object =
|
137
|
-
command.response_representation = Google::Apis::LanguageV1beta1::
|
138
|
-
command.response_class = Google::Apis::LanguageV1beta1::
|
135
|
+
def analyze_document_syntax(analyze_syntax_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
136
|
+
command = make_simple_command(:post, 'v1beta1/documents:analyzeSyntax', options)
|
137
|
+
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxRequest::Representation
|
138
|
+
command.request_object = analyze_syntax_request_object
|
139
|
+
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse::Representation
|
140
|
+
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
|
139
141
|
command.query['fields'] = fields unless fields.nil?
|
140
142
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
141
143
|
execute_or_queue_command(command, &block)
|
142
144
|
end
|
143
145
|
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# other properties.
|
147
|
-
# @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object
|
146
|
+
# Analyzes the sentiment of the provided text.
|
147
|
+
# @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
148
148
|
# @param [String] fields
|
149
149
|
# Selector specifying which fields to include in a partial response.
|
150
150
|
# @param [String] quota_user
|
@@ -154,20 +154,20 @@ module Google
|
|
154
154
|
# Request-specific options
|
155
155
|
#
|
156
156
|
# @yield [result, err] Result & error if block supplied
|
157
|
-
# @yieldparam result [Google::Apis::LanguageV1beta1::
|
157
|
+
# @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object
|
158
158
|
# @yieldparam err [StandardError] error object if request failed
|
159
159
|
#
|
160
|
-
# @return [Google::Apis::LanguageV1beta1::
|
160
|
+
# @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse]
|
161
161
|
#
|
162
162
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
163
163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
164
164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
165
|
-
def
|
166
|
-
command = make_simple_command(:post, 'v1beta1/documents:
|
167
|
-
command.request_representation = Google::Apis::LanguageV1beta1::
|
168
|
-
command.request_object =
|
169
|
-
command.response_representation = Google::Apis::LanguageV1beta1::
|
170
|
-
command.response_class = Google::Apis::LanguageV1beta1::
|
165
|
+
def analyze_document_sentiment(analyze_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
166
|
+
command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options)
|
167
|
+
command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation
|
168
|
+
command.request_object = analyze_sentiment_request_object
|
169
|
+
command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation
|
170
|
+
command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse
|
171
171
|
command.query['fields'] = fields unless fields.nil?
|
172
172
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
173
173
|
execute_or_queue_command(command, &block)
|