google-api-client 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -49,11 +49,11 @@ module Google
|
|
|
49
49
|
# Gets the latest version of the specified presentation.
|
|
50
50
|
# @param [String] presentation_id
|
|
51
51
|
# The ID of the presentation to retrieve.
|
|
52
|
+
# @param [String] fields
|
|
53
|
+
# Selector specifying which fields to include in a partial response.
|
|
52
54
|
# @param [String] quota_user
|
|
53
55
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
54
56
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
55
|
-
# @param [String] fields
|
|
56
|
-
# Selector specifying which fields to include in a partial response.
|
|
57
57
|
# @param [Google::Apis::RequestOptions] options
|
|
58
58
|
# Request-specific options
|
|
59
59
|
#
|
|
@@ -66,13 +66,13 @@ module Google
|
|
|
66
66
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67
67
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
68
68
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
69
|
-
def get_presentation(presentation_id,
|
|
69
|
+
def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
70
70
|
command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
|
|
71
71
|
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
|
72
72
|
command.response_class = Google::Apis::SlidesV1::Presentation
|
|
73
73
|
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
|
74
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
75
74
|
command.query['fields'] = fields unless fields.nil?
|
|
75
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
76
76
|
execute_or_queue_command(command, &block)
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -80,11 +80,11 @@ module Google
|
|
|
80
80
|
# fields in the request are ignored.
|
|
81
81
|
# Returns the created presentation.
|
|
82
82
|
# @param [Google::Apis::SlidesV1::Presentation] presentation_object
|
|
83
|
+
# @param [String] fields
|
|
84
|
+
# Selector specifying which fields to include in a partial response.
|
|
83
85
|
# @param [String] quota_user
|
|
84
86
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
85
87
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
86
|
-
# @param [String] fields
|
|
87
|
-
# Selector specifying which fields to include in a partial response.
|
|
88
88
|
# @param [Google::Apis::RequestOptions] options
|
|
89
89
|
# Request-specific options
|
|
90
90
|
#
|
|
@@ -97,14 +97,14 @@ module Google
|
|
|
97
97
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
98
98
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
99
99
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
100
|
-
def create_presentation(presentation_object = nil,
|
|
100
|
+
def create_presentation(presentation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
101
101
|
command = make_simple_command(:post, 'v1/presentations', options)
|
|
102
102
|
command.request_representation = Google::Apis::SlidesV1::Presentation::Representation
|
|
103
103
|
command.request_object = presentation_object
|
|
104
104
|
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
|
105
105
|
command.response_class = Google::Apis::SlidesV1::Presentation
|
|
106
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
107
106
|
command.query['fields'] = fields unless fields.nil?
|
|
107
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
108
108
|
execute_or_queue_command(command, &block)
|
|
109
109
|
end
|
|
110
110
|
|
|
@@ -128,11 +128,11 @@ module Google
|
|
|
128
128
|
# @param [String] presentation_id
|
|
129
129
|
# The presentation to apply the updates to.
|
|
130
130
|
# @param [Google::Apis::SlidesV1::BatchUpdatePresentationRequest] batch_update_presentation_request_object
|
|
131
|
+
# @param [String] fields
|
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
|
131
133
|
# @param [String] quota_user
|
|
132
134
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
133
135
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
134
|
-
# @param [String] fields
|
|
135
|
-
# Selector specifying which fields to include in a partial response.
|
|
136
136
|
# @param [Google::Apis::RequestOptions] options
|
|
137
137
|
# Request-specific options
|
|
138
138
|
#
|
|
@@ -145,15 +145,58 @@ module Google
|
|
|
145
145
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
146
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
147
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
148
|
-
def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil,
|
|
148
|
+
def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
149
149
|
command = make_simple_command(:post, 'v1/presentations/{presentationId}:batchUpdate', options)
|
|
150
150
|
command.request_representation = Google::Apis::SlidesV1::BatchUpdatePresentationRequest::Representation
|
|
151
151
|
command.request_object = batch_update_presentation_request_object
|
|
152
152
|
command.response_representation = Google::Apis::SlidesV1::BatchUpdatePresentationResponse::Representation
|
|
153
153
|
command.response_class = Google::Apis::SlidesV1::BatchUpdatePresentationResponse
|
|
154
154
|
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
|
155
156
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
157
|
+
execute_or_queue_command(command, &block)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Generates a thumbnail of the latest version of the specified page in the
|
|
161
|
+
# presentation and returns a URL to the thumbnail image.
|
|
162
|
+
# @param [String] presentation_id
|
|
163
|
+
# The ID of the presentation to retrieve.
|
|
164
|
+
# @param [String] page_object_id
|
|
165
|
+
# The object ID of the page whose thumbnail to retrieve.
|
|
166
|
+
# @param [String] thumbnail_properties_mime_type
|
|
167
|
+
# The optional mime type of the thumbnail image.
|
|
168
|
+
# If you don't specify the mime type, the default mime type will be PNG.
|
|
169
|
+
# @param [String] thumbnail_properties_thumbnail_size
|
|
170
|
+
# The optional thumbnail image size.
|
|
171
|
+
# If you don't specify the size, the server chooses a default size of the
|
|
172
|
+
# image.
|
|
173
|
+
# @param [String] fields
|
|
174
|
+
# Selector specifying which fields to include in a partial response.
|
|
175
|
+
# @param [String] quota_user
|
|
176
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
177
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
178
|
+
# @param [Google::Apis::RequestOptions] options
|
|
179
|
+
# Request-specific options
|
|
180
|
+
#
|
|
181
|
+
# @yield [result, err] Result & error if block supplied
|
|
182
|
+
# @yieldparam result [Google::Apis::SlidesV1::Thumbnail] parsed result object
|
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
184
|
+
#
|
|
185
|
+
# @return [Google::Apis::SlidesV1::Thumbnail]
|
|
186
|
+
#
|
|
187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
190
|
+
def get_presentation_page_thumbnail(presentation_id, page_object_id, thumbnail_properties_mime_type: nil, thumbnail_properties_thumbnail_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
191
|
+
command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail', options)
|
|
192
|
+
command.response_representation = Google::Apis::SlidesV1::Thumbnail::Representation
|
|
193
|
+
command.response_class = Google::Apis::SlidesV1::Thumbnail
|
|
194
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
|
195
|
+
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
|
196
|
+
command.query['thumbnailProperties.mimeType'] = thumbnail_properties_mime_type unless thumbnail_properties_mime_type.nil?
|
|
197
|
+
command.query['thumbnailProperties.thumbnailSize'] = thumbnail_properties_thumbnail_size unless thumbnail_properties_thumbnail_size.nil?
|
|
156
198
|
command.query['fields'] = fields unless fields.nil?
|
|
199
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
157
200
|
execute_or_queue_command(command, &block)
|
|
158
201
|
end
|
|
159
202
|
|
|
@@ -162,11 +205,11 @@ module Google
|
|
|
162
205
|
# The ID of the presentation to retrieve.
|
|
163
206
|
# @param [String] page_object_id
|
|
164
207
|
# The object ID of the page to retrieve.
|
|
208
|
+
# @param [String] fields
|
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
|
165
210
|
# @param [String] quota_user
|
|
166
211
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
167
212
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
168
|
-
# @param [String] fields
|
|
169
|
-
# Selector specifying which fields to include in a partial response.
|
|
170
213
|
# @param [Google::Apis::RequestOptions] options
|
|
171
214
|
# Request-specific options
|
|
172
215
|
#
|
|
@@ -179,14 +222,14 @@ module Google
|
|
|
179
222
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
180
223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
181
224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
182
|
-
def get_presentation_page(presentation_id, page_object_id,
|
|
225
|
+
def get_presentation_page(presentation_id, page_object_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
183
226
|
command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
|
|
184
227
|
command.response_representation = Google::Apis::SlidesV1::Page::Representation
|
|
185
228
|
command.response_class = Google::Apis::SlidesV1::Page
|
|
186
229
|
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
|
187
230
|
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
|
188
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
189
231
|
command.query['fields'] = fields unless fields.nil?
|
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
190
233
|
execute_or_queue_command(command, &block)
|
|
191
234
|
end
|
|
192
235
|
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/speech/
|
|
26
26
|
module SpeechV1beta1
|
|
27
27
|
VERSION = 'V1beta1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170323'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -22,6 +22,171 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module SpeechV1beta1
|
|
24
24
|
|
|
25
|
+
# Alternative hypotheses (a.k.a. n-best list).
|
|
26
|
+
class SpeechRecognitionAlternative
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
|
|
30
|
+
# indicates an estimated greater likelihood that the recognized words are
|
|
31
|
+
# correct. This field is typically provided only for the top hypothesis, and
|
|
32
|
+
# only for `is_final=true` results. Clients should not rely on the
|
|
33
|
+
# `confidence` field as it is not guaranteed to be accurate, or even set, in
|
|
34
|
+
# any of the results.
|
|
35
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
|
36
|
+
# Corresponds to the JSON property `confidence`
|
|
37
|
+
# @return [Float]
|
|
38
|
+
attr_accessor :confidence
|
|
39
|
+
|
|
40
|
+
# *Output-only* Transcript text representing the words that the user spoke.
|
|
41
|
+
# Corresponds to the JSON property `transcript`
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :transcript
|
|
44
|
+
|
|
45
|
+
def initialize(**args)
|
|
46
|
+
update!(**args)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Update properties of this object
|
|
50
|
+
def update!(**args)
|
|
51
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
52
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
|
57
|
+
# in the results.
|
|
58
|
+
class SpeechContext
|
|
59
|
+
include Google::Apis::Core::Hashable
|
|
60
|
+
|
|
61
|
+
# *Optional* A list of strings containing words and phrases "hints" so that
|
|
62
|
+
# the speech recognition is more likely to recognize them. This can be used
|
|
63
|
+
# to improve the accuracy for specific words and phrases, for example, if
|
|
64
|
+
# specific commands are typically spoken by the user. This can also be used
|
|
65
|
+
# to add additional words to the vocabulary of the recognizer. See
|
|
66
|
+
# [usage limits](https://cloud.google.com/speech/limits#content).
|
|
67
|
+
# Corresponds to the JSON property `phrases`
|
|
68
|
+
# @return [Array<String>]
|
|
69
|
+
attr_accessor :phrases
|
|
70
|
+
|
|
71
|
+
def initialize(**args)
|
|
72
|
+
update!(**args)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Update properties of this object
|
|
76
|
+
def update!(**args)
|
|
77
|
+
@phrases = args[:phrases] if args.key?(:phrases)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# The response message for Operations.ListOperations.
|
|
82
|
+
class ListOperationsResponse
|
|
83
|
+
include Google::Apis::Core::Hashable
|
|
84
|
+
|
|
85
|
+
# The standard List next-page token.
|
|
86
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
87
|
+
# @return [String]
|
|
88
|
+
attr_accessor :next_page_token
|
|
89
|
+
|
|
90
|
+
# A list of operations that matches the specified filter in the request.
|
|
91
|
+
# Corresponds to the JSON property `operations`
|
|
92
|
+
# @return [Array<Google::Apis::SpeechV1beta1::Operation>]
|
|
93
|
+
attr_accessor :operations
|
|
94
|
+
|
|
95
|
+
def initialize(**args)
|
|
96
|
+
update!(**args)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Update properties of this object
|
|
100
|
+
def update!(**args)
|
|
101
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
102
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# A speech recognition result corresponding to a portion of the audio.
|
|
107
|
+
class SpeechRecognitionResult
|
|
108
|
+
include Google::Apis::Core::Hashable
|
|
109
|
+
|
|
110
|
+
# *Output-only* May contain one or more recognition hypotheses (up to the
|
|
111
|
+
# maximum specified in `max_alternatives`).
|
|
112
|
+
# Corresponds to the JSON property `alternatives`
|
|
113
|
+
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative>]
|
|
114
|
+
attr_accessor :alternatives
|
|
115
|
+
|
|
116
|
+
def initialize(**args)
|
|
117
|
+
update!(**args)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Update properties of this object
|
|
121
|
+
def update!(**args)
|
|
122
|
+
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# The top-level message sent by the client for the `AsyncRecognize` method.
|
|
127
|
+
class AsyncRecognizeRequest
|
|
128
|
+
include Google::Apis::Core::Hashable
|
|
129
|
+
|
|
130
|
+
# Provides information to the recognizer that specifies how to process the
|
|
131
|
+
# request.
|
|
132
|
+
# Corresponds to the JSON property `config`
|
|
133
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
|
134
|
+
attr_accessor :config
|
|
135
|
+
|
|
136
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
|
137
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
|
138
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
|
139
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
|
140
|
+
# Corresponds to the JSON property `audio`
|
|
141
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
|
142
|
+
attr_accessor :audio
|
|
143
|
+
|
|
144
|
+
def initialize(**args)
|
|
145
|
+
update!(**args)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Update properties of this object
|
|
149
|
+
def update!(**args)
|
|
150
|
+
@config = args[:config] if args.key?(:config)
|
|
151
|
+
@audio = args[:audio] if args.key?(:audio)
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
|
156
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
|
157
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
|
158
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
|
159
|
+
class RecognitionAudio
|
|
160
|
+
include Google::Apis::Core::Hashable
|
|
161
|
+
|
|
162
|
+
# The audio data bytes encoded as specified in
|
|
163
|
+
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
|
164
|
+
# pure binary representation, whereas JSON representations use base64.
|
|
165
|
+
# Corresponds to the JSON property `content`
|
|
166
|
+
# @return [String]
|
|
167
|
+
attr_accessor :content
|
|
168
|
+
|
|
169
|
+
# URI that points to a file that contains audio data bytes as specified in
|
|
170
|
+
# `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
|
|
171
|
+
# supported, which must be specified in the following format:
|
|
172
|
+
# `gs://bucket_name/object_name` (other URI formats return
|
|
173
|
+
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
|
174
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
|
175
|
+
# Corresponds to the JSON property `uri`
|
|
176
|
+
# @return [String]
|
|
177
|
+
attr_accessor :uri
|
|
178
|
+
|
|
179
|
+
def initialize(**args)
|
|
180
|
+
update!(**args)
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Update properties of this object
|
|
184
|
+
def update!(**args)
|
|
185
|
+
@content = args[:content] if args.key?(:content)
|
|
186
|
+
@uri = args[:uri] if args.key?(:uri)
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
25
190
|
# This resource represents a long-running operation that is the result of a
|
|
26
191
|
# network API call.
|
|
27
192
|
class Operation
|
|
@@ -216,28 +381,6 @@ module Google
|
|
|
216
381
|
end
|
|
217
382
|
end
|
|
218
383
|
|
|
219
|
-
# The only message returned to the client by `SyncRecognize`. method. It
|
|
220
|
-
# contains the result as zero or more sequential `SpeechRecognitionResult`
|
|
221
|
-
# messages.
|
|
222
|
-
class SyncRecognizeResponse
|
|
223
|
-
include Google::Apis::Core::Hashable
|
|
224
|
-
|
|
225
|
-
# *Output-only* Sequential list of transcription results corresponding to
|
|
226
|
-
# sequential portions of audio.
|
|
227
|
-
# Corresponds to the JSON property `results`
|
|
228
|
-
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
|
|
229
|
-
attr_accessor :results
|
|
230
|
-
|
|
231
|
-
def initialize(**args)
|
|
232
|
-
update!(**args)
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
# Update properties of this object
|
|
236
|
-
def update!(**args)
|
|
237
|
-
@results = args[:results] if args.key?(:results)
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
|
|
241
384
|
# The `Status` type defines a logical error model that is suitable for different
|
|
242
385
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
243
386
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
@@ -280,13 +423,6 @@ module Google
|
|
|
280
423
|
class Status
|
|
281
424
|
include Google::Apis::Core::Hashable
|
|
282
425
|
|
|
283
|
-
# A developer-facing error message, which should be in English. Any
|
|
284
|
-
# user-facing error message should be localized and sent in the
|
|
285
|
-
# google.rpc.Status.details field, or localized by the client.
|
|
286
|
-
# Corresponds to the JSON property `message`
|
|
287
|
-
# @return [String]
|
|
288
|
-
attr_accessor :message
|
|
289
|
-
|
|
290
426
|
# A list of messages that carry the error details. There will be a
|
|
291
427
|
# common set of message types for APIs to use.
|
|
292
428
|
# Corresponds to the JSON property `details`
|
|
@@ -298,127 +434,12 @@ module Google
|
|
|
298
434
|
# @return [Fixnum]
|
|
299
435
|
attr_accessor :code
|
|
300
436
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
# Update properties of this object
|
|
306
|
-
def update!(**args)
|
|
307
|
-
@message = args[:message] if args.key?(:message)
|
|
308
|
-
@details = args[:details] if args.key?(:details)
|
|
309
|
-
@code = args[:code] if args.key?(:code)
|
|
310
|
-
end
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
314
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
|
315
|
-
# or the response type of an API method. For instance:
|
|
316
|
-
# service Foo `
|
|
317
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
318
|
-
# `
|
|
319
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
320
|
-
class Empty
|
|
321
|
-
include Google::Apis::Core::Hashable
|
|
322
|
-
|
|
323
|
-
def initialize(**args)
|
|
324
|
-
update!(**args)
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
# Update properties of this object
|
|
328
|
-
def update!(**args)
|
|
329
|
-
end
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
# Alternative hypotheses (a.k.a. n-best list).
|
|
333
|
-
class SpeechRecognitionAlternative
|
|
334
|
-
include Google::Apis::Core::Hashable
|
|
335
|
-
|
|
336
|
-
# *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
|
|
337
|
-
# indicates an estimated greater likelihood that the recognized words are
|
|
338
|
-
# correct. This field is typically provided only for the top hypothesis, and
|
|
339
|
-
# only for `is_final=true` results. Clients should not rely on the
|
|
340
|
-
# `confidence` field as it is not guaranteed to be accurate, or even set, in
|
|
341
|
-
# any of the results.
|
|
342
|
-
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
|
343
|
-
# Corresponds to the JSON property `confidence`
|
|
344
|
-
# @return [Float]
|
|
345
|
-
attr_accessor :confidence
|
|
346
|
-
|
|
347
|
-
# *Output-only* Transcript text representing the words that the user spoke.
|
|
348
|
-
# Corresponds to the JSON property `transcript`
|
|
349
|
-
# @return [String]
|
|
350
|
-
attr_accessor :transcript
|
|
351
|
-
|
|
352
|
-
def initialize(**args)
|
|
353
|
-
update!(**args)
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
# Update properties of this object
|
|
357
|
-
def update!(**args)
|
|
358
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
|
359
|
-
@transcript = args[:transcript] if args.key?(:transcript)
|
|
360
|
-
end
|
|
361
|
-
end
|
|
362
|
-
|
|
363
|
-
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
|
364
|
-
# in the results.
|
|
365
|
-
class SpeechContext
|
|
366
|
-
include Google::Apis::Core::Hashable
|
|
367
|
-
|
|
368
|
-
# *Optional* A list of strings containing words and phrases "hints" so that
|
|
369
|
-
# the speech recognition is more likely to recognize them. This can be used
|
|
370
|
-
# to improve the accuracy for specific words and phrases, for example, if
|
|
371
|
-
# specific commands are typically spoken by the user. This can also be used
|
|
372
|
-
# to add additional words to the vocabulary of the recognizer. See
|
|
373
|
-
# [usage limits](https://cloud.google.com/speech/limits#content).
|
|
374
|
-
# Corresponds to the JSON property `phrases`
|
|
375
|
-
# @return [Array<String>]
|
|
376
|
-
attr_accessor :phrases
|
|
377
|
-
|
|
378
|
-
def initialize(**args)
|
|
379
|
-
update!(**args)
|
|
380
|
-
end
|
|
381
|
-
|
|
382
|
-
# Update properties of this object
|
|
383
|
-
def update!(**args)
|
|
384
|
-
@phrases = args[:phrases] if args.key?(:phrases)
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
|
-
|
|
388
|
-
# The response message for Operations.ListOperations.
|
|
389
|
-
class ListOperationsResponse
|
|
390
|
-
include Google::Apis::Core::Hashable
|
|
391
|
-
|
|
392
|
-
# The standard List next-page token.
|
|
393
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
437
|
+
# A developer-facing error message, which should be in English. Any
|
|
438
|
+
# user-facing error message should be localized and sent in the
|
|
439
|
+
# google.rpc.Status.details field, or localized by the client.
|
|
440
|
+
# Corresponds to the JSON property `message`
|
|
394
441
|
# @return [String]
|
|
395
|
-
attr_accessor :
|
|
396
|
-
|
|
397
|
-
# A list of operations that matches the specified filter in the request.
|
|
398
|
-
# Corresponds to the JSON property `operations`
|
|
399
|
-
# @return [Array<Google::Apis::SpeechV1beta1::Operation>]
|
|
400
|
-
attr_accessor :operations
|
|
401
|
-
|
|
402
|
-
def initialize(**args)
|
|
403
|
-
update!(**args)
|
|
404
|
-
end
|
|
405
|
-
|
|
406
|
-
# Update properties of this object
|
|
407
|
-
def update!(**args)
|
|
408
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
409
|
-
@operations = args[:operations] if args.key?(:operations)
|
|
410
|
-
end
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
# A speech recognition result corresponding to a portion of the audio.
|
|
414
|
-
class SpeechRecognitionResult
|
|
415
|
-
include Google::Apis::Core::Hashable
|
|
416
|
-
|
|
417
|
-
# *Output-only* May contain one or more recognition hypotheses (up to the
|
|
418
|
-
# maximum specified in `max_alternatives`).
|
|
419
|
-
# Corresponds to the JSON property `alternatives`
|
|
420
|
-
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative>]
|
|
421
|
-
attr_accessor :alternatives
|
|
442
|
+
attr_accessor :message
|
|
422
443
|
|
|
423
444
|
def initialize(**args)
|
|
424
445
|
update!(**args)
|
|
@@ -426,33 +447,23 @@ module Google
|
|
|
426
447
|
|
|
427
448
|
# Update properties of this object
|
|
428
449
|
def update!(**args)
|
|
429
|
-
@
|
|
450
|
+
@details = args[:details] if args.key?(:details)
|
|
451
|
+
@code = args[:code] if args.key?(:code)
|
|
452
|
+
@message = args[:message] if args.key?(:message)
|
|
430
453
|
end
|
|
431
454
|
end
|
|
432
455
|
|
|
433
|
-
#
|
|
434
|
-
#
|
|
435
|
-
#
|
|
436
|
-
|
|
437
|
-
class RecognitionAudio
|
|
456
|
+
# The only message returned to the client by `SyncRecognize`. method. It
|
|
457
|
+
# contains the result as zero or more sequential `SpeechRecognitionResult`
|
|
458
|
+
# messages.
|
|
459
|
+
class SyncRecognizeResponse
|
|
438
460
|
include Google::Apis::Core::Hashable
|
|
439
461
|
|
|
440
|
-
#
|
|
441
|
-
#
|
|
442
|
-
#
|
|
443
|
-
#
|
|
444
|
-
|
|
445
|
-
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
|
446
|
-
# Corresponds to the JSON property `uri`
|
|
447
|
-
# @return [String]
|
|
448
|
-
attr_accessor :uri
|
|
449
|
-
|
|
450
|
-
# The audio data bytes encoded as specified in
|
|
451
|
-
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
|
452
|
-
# pure binary representation, whereas JSON representations use base64.
|
|
453
|
-
# Corresponds to the JSON property `content`
|
|
454
|
-
# @return [String]
|
|
455
|
-
attr_accessor :content
|
|
462
|
+
# *Output-only* Sequential list of transcription results corresponding to
|
|
463
|
+
# sequential portions of audio.
|
|
464
|
+
# Corresponds to the JSON property `results`
|
|
465
|
+
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
|
|
466
|
+
attr_accessor :results
|
|
456
467
|
|
|
457
468
|
def initialize(**args)
|
|
458
469
|
update!(**args)
|
|
@@ -460,37 +471,26 @@ module Google
|
|
|
460
471
|
|
|
461
472
|
# Update properties of this object
|
|
462
473
|
def update!(**args)
|
|
463
|
-
@
|
|
464
|
-
@content = args[:content] if args.key?(:content)
|
|
474
|
+
@results = args[:results] if args.key?(:results)
|
|
465
475
|
end
|
|
466
476
|
end
|
|
467
477
|
|
|
468
|
-
#
|
|
469
|
-
|
|
478
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
479
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
480
|
+
# or the response type of an API method. For instance:
|
|
481
|
+
# service Foo `
|
|
482
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
483
|
+
# `
|
|
484
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
485
|
+
class Empty
|
|
470
486
|
include Google::Apis::Core::Hashable
|
|
471
487
|
|
|
472
|
-
# Provides information to the recognizer that specifies how to process the
|
|
473
|
-
# request.
|
|
474
|
-
# Corresponds to the JSON property `config`
|
|
475
|
-
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
|
476
|
-
attr_accessor :config
|
|
477
|
-
|
|
478
|
-
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
|
479
|
-
# Either `content` or `uri` must be supplied. Supplying both or neither
|
|
480
|
-
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
|
481
|
-
# [audio limits](https://cloud.google.com/speech/limits#content).
|
|
482
|
-
# Corresponds to the JSON property `audio`
|
|
483
|
-
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
|
484
|
-
attr_accessor :audio
|
|
485
|
-
|
|
486
488
|
def initialize(**args)
|
|
487
489
|
update!(**args)
|
|
488
490
|
end
|
|
489
491
|
|
|
490
492
|
# Update properties of this object
|
|
491
493
|
def update!(**args)
|
|
492
|
-
@config = args[:config] if args.key?(:config)
|
|
493
|
-
@audio = args[:audio] if args.key?(:audio)
|
|
494
494
|
end
|
|
495
495
|
end
|
|
496
496
|
end
|