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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -22,49 +22,49 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1beta1
24
24
 
25
- class Status
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 RecognitionAudio
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 Operation
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 SpeechRecognitionAlternative
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 CancelOperationRequest
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 RecognitionConfig
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 SyncRecognizeRequest
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 SpeechRecognitionResult
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 Empty
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 SyncRecognizeResponse
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 SpeechContext
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 Status
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
- property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation
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 SpeechRecognitionResult
153
+ class SyncRecognizeResponse
170
154
  # @private
171
155
  class Representation < Google::Apis::Core::JsonRepresentation
172
- collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation
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 Empty
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 SyncRecognizeResponse
191
+ class SpeechRecognitionResult
193
192
  # @private
194
193
  class Representation < Google::Apis::Core::JsonRepresentation
195
- collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation
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 SpeechContext
199
+ class RecognitionAudio
201
200
  # @private
202
201
  class Representation < Google::Apis::Core::JsonRepresentation
203
- collection :phrases, as: 'phrases'
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, quota_user: nil, fields: nil, options: nil, &block)
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
- # Deletes a long-running operation. This method indicates that the client is
124
- # no longer interested in the operation result. It does not cancel the
125
- # operation. If the server doesn't support this method, it returns
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 to be deleted.
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::Empty] parsed result object
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::Empty]
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 delete_operation(name, quota_user: nil, fields: nil, options: nil, &block)
147
- command = make_simple_command(:delete, 'v1beta1/operations/{+name}', options)
148
- command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
149
- command.response_class = Google::Apis::SpeechV1beta1::Empty
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, quota_user: nil, fields: nil, options: nil, &block)
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
- # Performs synchronous speech recognition: receive results after all audio
199
- # has been sent and processed.
200
- # @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
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::SyncRecognizeResponse] parsed result object
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::SyncRecognizeResponse]
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 sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
219
- command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
220
- command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
221
- command.request_object = sync_recognize_request_object
222
- command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
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, quota_user: nil, fields: nil, options: nil, &block)
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