google-api-client 0.9.25 → 0.9.26
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 +279 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
- data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
- data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
- data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
- data/generated/google/apis/genomics_v1/representations.rb +461 -526
- data/generated/google/apis/genomics_v1/service.rb +1203 -1105
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +230 -230
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +744 -744
- data/generated/google/apis/monitoring_v3/representations.rb +164 -164
- data/generated/google/apis/monitoring_v3/service.rb +335 -335
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1/classes.rb +325 -325
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +256 -256
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
- data/generated/google/apis/sheets_v4/representations.rb +833 -833
- data/generated/google/apis/sheets_v4/service.rb +184 -184
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
- data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
- data/generated/google/apis/speech_v1beta1/service.rb +71 -71
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +861 -859
- data/generated/google/apis/vision_v1/representations.rb +140 -140
- 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 +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
- data/lib/google/apis/version.rb +1 -1
- metadata +9 -1
|
@@ -22,49 +22,49 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module SpeechV1beta1
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class CancelOperationRequest
|
|
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 Operation
|
|
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 RecognitionConfig
|
|
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 SyncRecognizeRequest
|
|
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
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class SyncRecognizeResponse
|
|
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 Empty
|
|
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 SpeechContext
|
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
69
|
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -76,19 +76,19 @@ module Google
|
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class SpeechRecognitionAlternative
|
|
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 SpeechRecognitionResult
|
|
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 RecognitionAudio
|
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
93
|
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -100,20 +100,9 @@ module Google
|
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
class
|
|
104
|
-
# @private
|
|
105
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
106
|
-
property :code, as: 'code'
|
|
107
|
-
collection :details, as: 'details'
|
|
108
|
-
property :message, as: 'message'
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
class RecognitionAudio
|
|
103
|
+
class CancelOperationRequest
|
|
113
104
|
# @private
|
|
114
105
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
115
|
-
property :content, :base64 => true, as: 'content'
|
|
116
|
-
property :uri, as: 'uri'
|
|
117
106
|
end
|
|
118
107
|
end
|
|
119
108
|
|
|
@@ -122,58 +111,66 @@ module Google
|
|
|
122
111
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
123
112
|
property :error, as: 'error', class: Google::Apis::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation
|
|
124
113
|
|
|
125
|
-
property :done, as: 'done'
|
|
126
114
|
hash :metadata, as: 'metadata'
|
|
115
|
+
property :done, as: 'done'
|
|
127
116
|
hash :response, as: 'response'
|
|
128
117
|
property :name, as: 'name'
|
|
129
118
|
end
|
|
130
119
|
end
|
|
131
120
|
|
|
132
|
-
class SpeechRecognitionAlternative
|
|
133
|
-
# @private
|
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
135
|
-
property :transcript, as: 'transcript'
|
|
136
|
-
property :confidence, as: 'confidence'
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
class CancelOperationRequest
|
|
141
|
-
# @private
|
|
142
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
121
|
class RecognitionConfig
|
|
147
122
|
# @private
|
|
148
123
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
149
124
|
property :max_alternatives, as: 'maxAlternatives'
|
|
125
|
+
property :sample_rate, as: 'sampleRate'
|
|
150
126
|
property :language_code, as: 'languageCode'
|
|
151
127
|
property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation
|
|
152
128
|
|
|
153
129
|
property :encoding, as: 'encoding'
|
|
154
130
|
property :profanity_filter, as: 'profanityFilter'
|
|
155
|
-
property :sample_rate, as: 'sampleRate'
|
|
156
131
|
end
|
|
157
132
|
end
|
|
158
133
|
|
|
159
134
|
class SyncRecognizeRequest
|
|
160
135
|
# @private
|
|
161
136
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
137
|
+
property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
|
|
138
|
+
|
|
162
139
|
property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
|
|
163
140
|
|
|
164
|
-
|
|
141
|
+
end
|
|
142
|
+
end
|
|
165
143
|
|
|
144
|
+
class Status
|
|
145
|
+
# @private
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
147
|
+
collection :details, as: 'details'
|
|
148
|
+
property :code, as: 'code'
|
|
149
|
+
property :message, as: 'message'
|
|
166
150
|
end
|
|
167
151
|
end
|
|
168
152
|
|
|
169
|
-
class
|
|
153
|
+
class SyncRecognizeResponse
|
|
170
154
|
# @private
|
|
171
155
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
172
|
-
collection :
|
|
156
|
+
collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation
|
|
173
157
|
|
|
174
158
|
end
|
|
175
159
|
end
|
|
176
160
|
|
|
161
|
+
class Empty
|
|
162
|
+
# @private
|
|
163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
class SpeechContext
|
|
168
|
+
# @private
|
|
169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
170
|
+
collection :phrases, as: 'phrases'
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
177
174
|
class ListOperationsResponse
|
|
178
175
|
# @private
|
|
179
176
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -183,34 +180,37 @@ module Google
|
|
|
183
180
|
end
|
|
184
181
|
end
|
|
185
182
|
|
|
186
|
-
class
|
|
183
|
+
class SpeechRecognitionAlternative
|
|
187
184
|
# @private
|
|
188
185
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
186
|
+
property :confidence, as: 'confidence'
|
|
187
|
+
property :transcript, as: 'transcript'
|
|
189
188
|
end
|
|
190
189
|
end
|
|
191
190
|
|
|
192
|
-
class
|
|
191
|
+
class SpeechRecognitionResult
|
|
193
192
|
# @private
|
|
194
193
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
195
|
-
collection :
|
|
194
|
+
collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation
|
|
196
195
|
|
|
197
196
|
end
|
|
198
197
|
end
|
|
199
198
|
|
|
200
|
-
class
|
|
199
|
+
class RecognitionAudio
|
|
201
200
|
# @private
|
|
202
201
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
203
|
-
|
|
202
|
+
property :content, :base64 => true, as: 'content'
|
|
203
|
+
property :uri, as: 'uri'
|
|
204
204
|
end
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
class AsyncRecognizeRequest
|
|
208
208
|
# @private
|
|
209
209
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
210
|
-
property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
|
|
211
|
-
|
|
212
210
|
property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
|
|
213
211
|
|
|
212
|
+
property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation
|
|
213
|
+
|
|
214
214
|
end
|
|
215
215
|
end
|
|
216
216
|
end
|
|
@@ -46,38 +46,6 @@ module Google
|
|
|
46
46
|
super('https://speech.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
# Gets the latest state of a long-running operation. Clients can use this
|
|
50
|
-
# method to poll the operation result at intervals as recommended by the API
|
|
51
|
-
# service.
|
|
52
|
-
# @param [String] name
|
|
53
|
-
# The name of the operation resource.
|
|
54
|
-
# @param [String] quota_user
|
|
55
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
56
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
57
|
-
# @param [String] fields
|
|
58
|
-
# Selector specifying which fields to include in a partial response.
|
|
59
|
-
# @param [Google::Apis::RequestOptions] options
|
|
60
|
-
# Request-specific options
|
|
61
|
-
#
|
|
62
|
-
# @yield [result, err] Result & error if block supplied
|
|
63
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
|
|
64
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
65
|
-
#
|
|
66
|
-
# @return [Google::Apis::SpeechV1beta1::Operation]
|
|
67
|
-
#
|
|
68
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
69
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
70
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
71
|
-
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
72
|
-
command = make_simple_command(:get, 'v1beta1/operations/{+name}', options)
|
|
73
|
-
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
|
|
74
|
-
command.response_class = Google::Apis::SpeechV1beta1::Operation
|
|
75
|
-
command.params['name'] = name unless name.nil?
|
|
76
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
77
|
-
command.query['fields'] = fields unless fields.nil?
|
|
78
|
-
execute_or_queue_command(command, &block)
|
|
79
|
-
end
|
|
80
|
-
|
|
81
49
|
# Lists operations that match the specified filter in the request. If the
|
|
82
50
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
83
51
|
# NOTE: the `name` binding below allows API services to override the binding
|
|
@@ -90,11 +58,11 @@ module Google
|
|
|
90
58
|
# The name of the operation collection.
|
|
91
59
|
# @param [String] page_token
|
|
92
60
|
# The standard list page token.
|
|
61
|
+
# @param [String] fields
|
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
|
93
63
|
# @param [String] quota_user
|
|
94
64
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
95
65
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
96
|
-
# @param [String] fields
|
|
97
|
-
# Selector specifying which fields to include in a partial response.
|
|
98
66
|
# @param [Google::Apis::RequestOptions] options
|
|
99
67
|
# Request-specific options
|
|
100
68
|
#
|
|
@@ -107,7 +75,7 @@ module Google
|
|
|
107
75
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
108
76
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
109
77
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
110
|
-
def list_operations(page_size: nil, filter: nil, name: nil, page_token: nil,
|
|
78
|
+
def list_operations(page_size: nil, filter: nil, name: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
111
79
|
command = make_simple_command(:get, 'v1beta1/operations', options)
|
|
112
80
|
command.response_representation = Google::Apis::SpeechV1beta1::ListOperationsResponse::Representation
|
|
113
81
|
command.response_class = Google::Apis::SpeechV1beta1::ListOperationsResponse
|
|
@@ -115,41 +83,40 @@ module Google
|
|
|
115
83
|
command.query['filter'] = filter unless filter.nil?
|
|
116
84
|
command.query['name'] = name unless name.nil?
|
|
117
85
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
118
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
119
86
|
command.query['fields'] = fields unless fields.nil?
|
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
120
88
|
execute_or_queue_command(command, &block)
|
|
121
89
|
end
|
|
122
90
|
|
|
123
|
-
#
|
|
124
|
-
#
|
|
125
|
-
#
|
|
126
|
-
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
91
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
|
92
|
+
# method to poll the operation result at intervals as recommended by the API
|
|
93
|
+
# service.
|
|
127
94
|
# @param [String] name
|
|
128
|
-
# The name of the operation resource
|
|
95
|
+
# The name of the operation resource.
|
|
96
|
+
# @param [String] fields
|
|
97
|
+
# Selector specifying which fields to include in a partial response.
|
|
129
98
|
# @param [String] quota_user
|
|
130
99
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
131
100
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
132
|
-
# @param [String] fields
|
|
133
|
-
# Selector specifying which fields to include in a partial response.
|
|
134
101
|
# @param [Google::Apis::RequestOptions] options
|
|
135
102
|
# Request-specific options
|
|
136
103
|
#
|
|
137
104
|
# @yield [result, err] Result & error if block supplied
|
|
138
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::
|
|
105
|
+
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
|
|
139
106
|
# @yieldparam err [StandardError] error object if request failed
|
|
140
107
|
#
|
|
141
|
-
# @return [Google::Apis::SpeechV1beta1::
|
|
108
|
+
# @return [Google::Apis::SpeechV1beta1::Operation]
|
|
142
109
|
#
|
|
143
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
144
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
145
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
146
|
-
def
|
|
147
|
-
command = make_simple_command(:
|
|
148
|
-
command.response_representation = Google::Apis::SpeechV1beta1::
|
|
149
|
-
command.response_class = Google::Apis::SpeechV1beta1::
|
|
113
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
114
|
+
command = make_simple_command(:get, 'v1beta1/operations/{+name}', options)
|
|
115
|
+
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
|
|
116
|
+
command.response_class = Google::Apis::SpeechV1beta1::Operation
|
|
150
117
|
command.params['name'] = name unless name.nil?
|
|
151
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
152
118
|
command.query['fields'] = fields unless fields.nil?
|
|
119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
153
120
|
execute_or_queue_command(command, &block)
|
|
154
121
|
end
|
|
155
122
|
|
|
@@ -166,11 +133,11 @@ module Google
|
|
|
166
133
|
# @param [String] name
|
|
167
134
|
# The name of the operation resource to be cancelled.
|
|
168
135
|
# @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object
|
|
136
|
+
# @param [String] fields
|
|
137
|
+
# Selector specifying which fields to include in a partial response.
|
|
169
138
|
# @param [String] quota_user
|
|
170
139
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
171
140
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
172
|
-
# @param [String] fields
|
|
173
|
-
# Selector specifying which fields to include in a partial response.
|
|
174
141
|
# @param [Google::Apis::RequestOptions] options
|
|
175
142
|
# Request-specific options
|
|
176
143
|
#
|
|
@@ -183,46 +150,48 @@ module Google
|
|
|
183
150
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
184
151
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
185
152
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
186
|
-
def cancel_operation(name, cancel_operation_request_object = nil,
|
|
153
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
187
154
|
command = make_simple_command(:post, 'v1beta1/operations/{+name}:cancel', options)
|
|
188
155
|
command.request_representation = Google::Apis::SpeechV1beta1::CancelOperationRequest::Representation
|
|
189
156
|
command.request_object = cancel_operation_request_object
|
|
190
157
|
command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
|
|
191
158
|
command.response_class = Google::Apis::SpeechV1beta1::Empty
|
|
192
159
|
command.params['name'] = name unless name.nil?
|
|
193
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
194
160
|
command.query['fields'] = fields unless fields.nil?
|
|
161
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
195
162
|
execute_or_queue_command(command, &block)
|
|
196
163
|
end
|
|
197
164
|
|
|
198
|
-
#
|
|
199
|
-
#
|
|
200
|
-
#
|
|
165
|
+
# Deletes a long-running operation. This method indicates that the client is
|
|
166
|
+
# no longer interested in the operation result. It does not cancel the
|
|
167
|
+
# operation. If the server doesn't support this method, it returns
|
|
168
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
169
|
+
# @param [String] name
|
|
170
|
+
# The name of the operation resource to be deleted.
|
|
171
|
+
# @param [String] fields
|
|
172
|
+
# Selector specifying which fields to include in a partial response.
|
|
201
173
|
# @param [String] quota_user
|
|
202
174
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
203
175
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
204
|
-
# @param [String] fields
|
|
205
|
-
# Selector specifying which fields to include in a partial response.
|
|
206
176
|
# @param [Google::Apis::RequestOptions] options
|
|
207
177
|
# Request-specific options
|
|
208
178
|
#
|
|
209
179
|
# @yield [result, err] Result & error if block supplied
|
|
210
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::
|
|
180
|
+
# @yieldparam result [Google::Apis::SpeechV1beta1::Empty] parsed result object
|
|
211
181
|
# @yieldparam err [StandardError] error object if request failed
|
|
212
182
|
#
|
|
213
|
-
# @return [Google::Apis::SpeechV1beta1::
|
|
183
|
+
# @return [Google::Apis::SpeechV1beta1::Empty]
|
|
214
184
|
#
|
|
215
185
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
216
186
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
217
187
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
218
|
-
def
|
|
219
|
-
command = make_simple_command(:
|
|
220
|
-
command.
|
|
221
|
-
command.
|
|
222
|
-
command.
|
|
223
|
-
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
|
|
224
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
188
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
189
|
+
command = make_simple_command(:delete, 'v1beta1/operations/{+name}', options)
|
|
190
|
+
command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
|
|
191
|
+
command.response_class = Google::Apis::SpeechV1beta1::Empty
|
|
192
|
+
command.params['name'] = name unless name.nil?
|
|
225
193
|
command.query['fields'] = fields unless fields.nil?
|
|
194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
226
195
|
execute_or_queue_command(command, &block)
|
|
227
196
|
end
|
|
228
197
|
|
|
@@ -233,11 +202,11 @@ module Google
|
|
|
233
202
|
# `Operation.error` or an `Operation.response` which contains
|
|
234
203
|
# an `AsyncRecognizeResponse` message.
|
|
235
204
|
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
|
|
205
|
+
# @param [String] fields
|
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
|
236
207
|
# @param [String] quota_user
|
|
237
208
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
238
209
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
239
|
-
# @param [String] fields
|
|
240
|
-
# Selector specifying which fields to include in a partial response.
|
|
241
210
|
# @param [Google::Apis::RequestOptions] options
|
|
242
211
|
# Request-specific options
|
|
243
212
|
#
|
|
@@ -250,14 +219,45 @@ module Google
|
|
|
250
219
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
251
220
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
252
221
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
253
|
-
def async_recognize_speech(async_recognize_request_object = nil,
|
|
222
|
+
def async_recognize_speech(async_recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
254
223
|
command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
|
|
255
224
|
command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
|
|
256
225
|
command.request_object = async_recognize_request_object
|
|
257
226
|
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
|
|
258
227
|
command.response_class = Google::Apis::SpeechV1beta1::Operation
|
|
228
|
+
command.query['fields'] = fields unless fields.nil?
|
|
259
229
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
230
|
+
execute_or_queue_command(command, &block)
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Performs synchronous speech recognition: receive results after all audio
|
|
234
|
+
# has been sent and processed.
|
|
235
|
+
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
|
|
236
|
+
# @param [String] fields
|
|
237
|
+
# Selector specifying which fields to include in a partial response.
|
|
238
|
+
# @param [String] quota_user
|
|
239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
241
|
+
# @param [Google::Apis::RequestOptions] options
|
|
242
|
+
# Request-specific options
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, err] Result & error if block supplied
|
|
245
|
+
# @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object
|
|
246
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
247
|
+
#
|
|
248
|
+
# @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse]
|
|
249
|
+
#
|
|
250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
253
|
+
def sync_recognize_speech(sync_recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
254
|
+
command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
|
|
255
|
+
command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
|
|
256
|
+
command.request_object = sync_recognize_request_object
|
|
257
|
+
command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
|
|
258
|
+
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
|
|
260
259
|
command.query['fields'] = fields unless fields.nil?
|
|
260
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
261
261
|
execute_or_queue_command(command, &block)
|
|
262
262
|
end
|
|
263
263
|
|