google-api-client 0.10.0 → 0.10.1
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 +4 -0
- data/README.md +1 -1
- data/api_names.yaml +37747 -36512
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- 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/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
- data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- 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 +34 -8
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -5
- data/generated/google/apis/classroom_v1.rb +25 -22
- data/generated/google/apis/classroom_v1/classes.rb +910 -1001
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1064 -1272
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
- data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
- data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
- data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
- data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
- 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 +677 -456
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +813 -82
- data/generated/google/apis/compute_beta/representations.rb +305 -0
- data/generated/google/apis/compute_beta/service.rb +971 -180
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +147 -21
- data/generated/google/apis/compute_v1/representations.rb +38 -0
- data/generated/google/apis/compute_v1/service.rb +347 -65
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
- data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
- data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
- data/generated/google/apis/dataproc_v1/representations.rb +220 -204
- data/generated/google/apis/dataproc_v1/service.rb +299 -299
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +688 -688
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.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 +487 -15
- data/generated/google/apis/drive_v2/representations.rb +120 -0
- data/generated/google/apis/drive_v2/service.rb +355 -38
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +416 -14
- data/generated/google/apis/drive_v3/representations.rb +99 -0
- data/generated/google/apis/drive_v3/service.rb +315 -28
- 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 +2301 -2301
- data/generated/google/apis/genomics_v1/representations.rb +239 -239
- data/generated/google/apis/genomics_v1/service.rb +599 -599
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +18 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- 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 +96 -96
- data/generated/google/apis/iam_v1/service.rb +150 -150
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +235 -235
- data/generated/google/apis/language_v1beta1/representations.rb +73 -73
- data/generated/google/apis/language_v1beta1/service.rb +49 -49
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
- data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
- data/generated/google/apis/logging_v2beta1/service.rb +315 -316
- data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
- data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
- data/generated/google/apis/manufacturers_v1/service.rb +32 -32
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +229 -229
- data/generated/google/apis/monitoring_v3/representations.rb +45 -45
- data/generated/google/apis/monitoring_v3/service.rb +141 -141
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1837 -483
- data/generated/google/apis/partners_v2/representations.rb +614 -157
- data/generated/google/apis/partners_v2/service.rb +881 -150
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +517 -465
- data/generated/google/apis/people_v1/representations.rb +138 -107
- data/generated/google/apis/people_v1/service.rb +56 -49
- 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 +529 -458
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +203 -203
- data/generated/google/apis/pubsub_v1/representations.rb +65 -65
- data/generated/google/apis/pubsub_v1/service.rb +226 -217
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +213 -61
- data/generated/google/apis/reseller_v1/representations.rb +27 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +95 -95
- data/generated/google/apis/script_v1/representations.rb +25 -25
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
- data/generated/google/apis/sheets_v4/representations.rb +853 -837
- data/generated/google/apis/sheets_v4/service.rb +32 -32
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +804 -748
- data/generated/google/apis/slides_v1/representations.rb +204 -187
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
- data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
- data/generated/google/apis/speech_v1beta1/service.rb +66 -66
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +10 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1393 -865
- data/generated/google/apis/vision_v1/representations.rb +367 -102
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -30
|
@@ -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.
|
|
54
52
|
# @param [String] quota_user
|
|
55
53
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
56
54
|
# 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, quota_user: nil, fields: 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['fields'] = fields unless fields.nil?
|
|
75
74
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
75
|
+
command.query['fields'] = fields unless fields.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.
|
|
85
83
|
# @param [String] quota_user
|
|
86
84
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
87
85
|
# 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, quota_user: nil, fields: 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['fields'] = fields unless fields.nil?
|
|
107
106
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
107
|
+
command.query['fields'] = fields unless fields.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.
|
|
133
131
|
# @param [String] quota_user
|
|
134
132
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
135
133
|
# 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,15 @@ 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, quota_user: nil, fields: 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?
|
|
156
155
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
156
|
+
command.query['fields'] = fields unless fields.nil?
|
|
157
157
|
execute_or_queue_command(command, &block)
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -162,11 +162,11 @@ module Google
|
|
|
162
162
|
# The ID of the presentation to retrieve.
|
|
163
163
|
# @param [String] page_object_id
|
|
164
164
|
# The object ID of the page to retrieve.
|
|
165
|
-
# @param [String] fields
|
|
166
|
-
# Selector specifying which fields to include in a partial response.
|
|
167
165
|
# @param [String] quota_user
|
|
168
166
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
169
167
|
# 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
170
|
# @param [Google::Apis::RequestOptions] options
|
|
171
171
|
# Request-specific options
|
|
172
172
|
#
|
|
@@ -179,14 +179,14 @@ module Google
|
|
|
179
179
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
180
180
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
181
181
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
182
|
-
def get_presentation_page(presentation_id, page_object_id,
|
|
182
|
+
def get_presentation_page(presentation_id, page_object_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
183
183
|
command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
|
|
184
184
|
command.response_representation = Google::Apis::SlidesV1::Page::Representation
|
|
185
185
|
command.response_class = Google::Apis::SlidesV1::Page
|
|
186
186
|
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
|
187
187
|
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
|
188
|
-
command.query['fields'] = fields unless fields.nil?
|
|
189
188
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
189
|
+
command.query['fields'] = fields unless fields.nil?
|
|
190
190
|
execute_or_queue_command(command, &block)
|
|
191
191
|
end
|
|
192
192
|
|
|
@@ -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 = '20170303'
|
|
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'
|
|
@@ -216,6 +216,28 @@ module Google
|
|
|
216
216
|
end
|
|
217
217
|
end
|
|
218
218
|
|
|
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
|
+
|
|
219
241
|
# The `Status` type defines a logical error model that is suitable for different
|
|
220
242
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
221
243
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
@@ -288,28 +310,6 @@ module Google
|
|
|
288
310
|
end
|
|
289
311
|
end
|
|
290
312
|
|
|
291
|
-
# The only message returned to the client by `SyncRecognize`. method. It
|
|
292
|
-
# contains the result as zero or more sequential `SpeechRecognitionResult`
|
|
293
|
-
# messages.
|
|
294
|
-
class SyncRecognizeResponse
|
|
295
|
-
include Google::Apis::Core::Hashable
|
|
296
|
-
|
|
297
|
-
# *Output-only* Sequential list of transcription results corresponding to
|
|
298
|
-
# sequential portions of audio.
|
|
299
|
-
# Corresponds to the JSON property `results`
|
|
300
|
-
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
|
|
301
|
-
attr_accessor :results
|
|
302
|
-
|
|
303
|
-
def initialize(**args)
|
|
304
|
-
update!(**args)
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
# Update properties of this object
|
|
308
|
-
def update!(**args)
|
|
309
|
-
@results = args[:results] if args.key?(:results)
|
|
310
|
-
end
|
|
311
|
-
end
|
|
312
|
-
|
|
313
313
|
# A generic empty message that you can re-use to avoid defining duplicated
|
|
314
314
|
# empty messages in your APIs. A typical example is to use it as the request
|
|
315
315
|
# or the response type of an API method. For instance:
|
|
@@ -430,6 +430,41 @@ module Google
|
|
|
430
430
|
end
|
|
431
431
|
end
|
|
432
432
|
|
|
433
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
|
434
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
|
435
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
|
436
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
|
437
|
+
class RecognitionAudio
|
|
438
|
+
include Google::Apis::Core::Hashable
|
|
439
|
+
|
|
440
|
+
# URI that points to a file that contains audio data bytes as specified in
|
|
441
|
+
# `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
|
|
442
|
+
# supported, which must be specified in the following format:
|
|
443
|
+
# `gs://bucket_name/object_name` (other URI formats return
|
|
444
|
+
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
|
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
|
|
456
|
+
|
|
457
|
+
def initialize(**args)
|
|
458
|
+
update!(**args)
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Update properties of this object
|
|
462
|
+
def update!(**args)
|
|
463
|
+
@uri = args[:uri] if args.key?(:uri)
|
|
464
|
+
@content = args[:content] if args.key?(:content)
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
|
|
433
468
|
# The top-level message sent by the client for the `AsyncRecognize` method.
|
|
434
469
|
class AsyncRecognizeRequest
|
|
435
470
|
include Google::Apis::Core::Hashable
|
|
@@ -458,41 +493,6 @@ module Google
|
|
|
458
493
|
@audio = args[:audio] if args.key?(:audio)
|
|
459
494
|
end
|
|
460
495
|
end
|
|
461
|
-
|
|
462
|
-
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
|
463
|
-
# Either `content` or `uri` must be supplied. Supplying both or neither
|
|
464
|
-
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
|
465
|
-
# [audio limits](https://cloud.google.com/speech/limits#content).
|
|
466
|
-
class RecognitionAudio
|
|
467
|
-
include Google::Apis::Core::Hashable
|
|
468
|
-
|
|
469
|
-
# The audio data bytes encoded as specified in
|
|
470
|
-
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
|
471
|
-
# pure binary representation, whereas JSON representations use base64.
|
|
472
|
-
# Corresponds to the JSON property `content`
|
|
473
|
-
# @return [String]
|
|
474
|
-
attr_accessor :content
|
|
475
|
-
|
|
476
|
-
# URI that points to a file that contains audio data bytes as specified in
|
|
477
|
-
# `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
|
|
478
|
-
# supported, which must be specified in the following format:
|
|
479
|
-
# `gs://bucket_name/object_name` (other URI formats return
|
|
480
|
-
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
|
481
|
-
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
|
482
|
-
# Corresponds to the JSON property `uri`
|
|
483
|
-
# @return [String]
|
|
484
|
-
attr_accessor :uri
|
|
485
|
-
|
|
486
|
-
def initialize(**args)
|
|
487
|
-
update!(**args)
|
|
488
|
-
end
|
|
489
|
-
|
|
490
|
-
# Update properties of this object
|
|
491
|
-
def update!(**args)
|
|
492
|
-
@content = args[:content] if args.key?(:content)
|
|
493
|
-
@uri = args[:uri] if args.key?(:uri)
|
|
494
|
-
end
|
|
495
|
-
end
|
|
496
496
|
end
|
|
497
497
|
end
|
|
498
498
|
end
|
|
@@ -40,13 +40,13 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class SyncRecognizeResponse
|
|
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 Status
|
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
51
|
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -82,13 +82,13 @@ module Google
|
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
class
|
|
85
|
+
class RecognitionAudio
|
|
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 AsyncRecognizeRequest
|
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
93
|
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -129,20 +129,20 @@ module Google
|
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
class
|
|
132
|
+
class SyncRecognizeResponse
|
|
133
133
|
# @private
|
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
property :code, as: 'code'
|
|
135
|
+
collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation
|
|
136
|
+
|
|
138
137
|
end
|
|
139
138
|
end
|
|
140
139
|
|
|
141
|
-
class
|
|
140
|
+
class Status
|
|
142
141
|
# @private
|
|
143
142
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
property :message, as: 'message'
|
|
144
|
+
collection :details, as: 'details'
|
|
145
|
+
property :code, as: 'code'
|
|
146
146
|
end
|
|
147
147
|
end
|
|
148
148
|
|
|
@@ -184,21 +184,21 @@ module Google
|
|
|
184
184
|
end
|
|
185
185
|
end
|
|
186
186
|
|
|
187
|
-
class
|
|
187
|
+
class RecognitionAudio
|
|
188
188
|
# @private
|
|
189
189
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
190
|
-
property :
|
|
191
|
-
|
|
192
|
-
property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
|
|
193
|
-
|
|
190
|
+
property :uri, as: 'uri'
|
|
191
|
+
property :content, :base64 => true, as: 'content'
|
|
194
192
|
end
|
|
195
193
|
end
|
|
196
194
|
|
|
197
|
-
class
|
|
195
|
+
class AsyncRecognizeRequest
|
|
198
196
|
# @private
|
|
199
197
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
200
|
-
property :
|
|
201
|
-
|
|
198
|
+
property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
|
|
199
|
+
|
|
200
|
+
property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
|
|
201
|
+
|
|
202
202
|
end
|
|
203
203
|
end
|
|
204
204
|
end
|
|
@@ -46,6 +46,72 @@ module Google
|
|
|
46
46
|
super('https://speech.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
# Performs synchronous speech recognition: receive results after all audio
|
|
50
|
+
# has been sent and processed.
|
|
51
|
+
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
|
|
52
|
+
# @param [String] quota_user
|
|
53
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
54
|
+
# 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
|
+
# @param [Google::Apis::RequestOptions] options
|
|
58
|
+
# Request-specific options
|
|
59
|
+
#
|
|
60
|
+
# @yield [result, err] Result & error if block supplied
|
|
61
|
+
# @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object
|
|
62
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
63
|
+
#
|
|
64
|
+
# @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse]
|
|
65
|
+
#
|
|
66
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
68
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
69
|
+
def sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
70
|
+
command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
|
|
71
|
+
command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
|
|
72
|
+
command.request_object = sync_recognize_request_object
|
|
73
|
+
command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
|
|
74
|
+
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
|
|
75
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
76
|
+
command.query['fields'] = fields unless fields.nil?
|
|
77
|
+
execute_or_queue_command(command, &block)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Performs asynchronous speech recognition: receive results via the
|
|
81
|
+
# [google.longrunning.Operations]
|
|
82
|
+
# (/speech/reference/rest/v1beta1/operations#Operation)
|
|
83
|
+
# interface. Returns either an
|
|
84
|
+
# `Operation.error` or an `Operation.response` which contains
|
|
85
|
+
# an `AsyncRecognizeResponse` message.
|
|
86
|
+
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
|
|
87
|
+
# @param [String] quota_user
|
|
88
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
89
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
90
|
+
# @param [String] fields
|
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
|
92
|
+
# @param [Google::Apis::RequestOptions] options
|
|
93
|
+
# Request-specific options
|
|
94
|
+
#
|
|
95
|
+
# @yield [result, err] Result & error if block supplied
|
|
96
|
+
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
|
|
97
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
98
|
+
#
|
|
99
|
+
# @return [Google::Apis::SpeechV1beta1::Operation]
|
|
100
|
+
#
|
|
101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
104
|
+
def async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
105
|
+
command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
|
|
106
|
+
command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
|
|
107
|
+
command.request_object = async_recognize_request_object
|
|
108
|
+
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
|
|
109
|
+
command.response_class = Google::Apis::SpeechV1beta1::Operation
|
|
110
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
111
|
+
command.query['fields'] = fields unless fields.nil?
|
|
112
|
+
execute_or_queue_command(command, &block)
|
|
113
|
+
end
|
|
114
|
+
|
|
49
115
|
# Starts asynchronous cancellation on a long-running operation. The server
|
|
50
116
|
# makes a best effort to cancel the operation, but success is not
|
|
51
117
|
# guaranteed. If the server doesn't support this method, it returns
|
|
@@ -191,72 +257,6 @@ module Google
|
|
|
191
257
|
command.query['fields'] = fields unless fields.nil?
|
|
192
258
|
execute_or_queue_command(command, &block)
|
|
193
259
|
end
|
|
194
|
-
|
|
195
|
-
# Performs synchronous speech recognition: receive results after all audio
|
|
196
|
-
# has been sent and processed.
|
|
197
|
-
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
|
|
198
|
-
# @param [String] quota_user
|
|
199
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
200
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
201
|
-
# @param [String] fields
|
|
202
|
-
# Selector specifying which fields to include in a partial response.
|
|
203
|
-
# @param [Google::Apis::RequestOptions] options
|
|
204
|
-
# Request-specific options
|
|
205
|
-
#
|
|
206
|
-
# @yield [result, err] Result & error if block supplied
|
|
207
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object
|
|
208
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
209
|
-
#
|
|
210
|
-
# @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse]
|
|
211
|
-
#
|
|
212
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
213
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
214
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
215
|
-
def sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
216
|
-
command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
|
|
217
|
-
command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
|
|
218
|
-
command.request_object = sync_recognize_request_object
|
|
219
|
-
command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
|
|
220
|
-
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
|
|
221
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
222
|
-
command.query['fields'] = fields unless fields.nil?
|
|
223
|
-
execute_or_queue_command(command, &block)
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
# Performs asynchronous speech recognition: receive results via the
|
|
227
|
-
# [google.longrunning.Operations]
|
|
228
|
-
# (/speech/reference/rest/v1beta1/operations#Operation)
|
|
229
|
-
# interface. Returns either an
|
|
230
|
-
# `Operation.error` or an `Operation.response` which contains
|
|
231
|
-
# an `AsyncRecognizeResponse` message.
|
|
232
|
-
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
|
|
233
|
-
# @param [String] quota_user
|
|
234
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
235
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
236
|
-
# @param [String] fields
|
|
237
|
-
# Selector specifying which fields to include in a partial response.
|
|
238
|
-
# @param [Google::Apis::RequestOptions] options
|
|
239
|
-
# Request-specific options
|
|
240
|
-
#
|
|
241
|
-
# @yield [result, err] Result & error if block supplied
|
|
242
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
|
|
243
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
244
|
-
#
|
|
245
|
-
# @return [Google::Apis::SpeechV1beta1::Operation]
|
|
246
|
-
#
|
|
247
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
248
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
249
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
250
|
-
def async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
251
|
-
command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
|
|
252
|
-
command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
|
|
253
|
-
command.request_object = async_recognize_request_object
|
|
254
|
-
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
|
|
255
|
-
command.response_class = Google::Apis::SpeechV1beta1::Operation
|
|
256
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
257
|
-
command.query['fields'] = fields unless fields.nil?
|
|
258
|
-
execute_or_queue_command(command, &block)
|
|
259
|
-
end
|
|
260
260
|
|
|
261
261
|
protected
|
|
262
262
|
|