google-api-client 0.19.3 → 0.19.4
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 +39 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +212 -0
- data/generated/google/apis/analytics_v3/representations.rb +77 -0
- data/generated/google/apis/analytics_v3/service.rb +35 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +2 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -98
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -46
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -229
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +28 -49
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +12 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +12 -14
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +10 -3
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -69
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -20
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +37 -20
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +161 -13
- data/generated/google/apis/compute_alpha/representations.rb +55 -1
- data/generated/google/apis/compute_alpha/service.rb +3 -4
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +102 -12
- data/generated/google/apis/compute_beta/representations.rb +14 -1
- data/generated/google/apis/compute_beta/service.rb +102 -4
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +12 -5
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/compute_v1/service.rb +3 -4
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +10 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +10 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +428 -0
- data/generated/google/apis/content_v2/representations.rb +169 -0
- data/generated/google/apis/content_v2/service.rb +128 -1
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +428 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +169 -0
- data/generated/google/apis/content_v2sandbox/service.rb +127 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +3 -2
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +6 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +3 -3
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +0 -136
- data/generated/google/apis/ml_v1/representations.rb +0 -33
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +6 -6
- data/generated/google/apis/monitoring_v3/service.rb +2 -2
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +1 -9
- data/generated/google/apis/oslogin_v1/representations.rb +0 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -9
- data/generated/google/apis/oslogin_v1alpha/representations.rb +0 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -9
- data/generated/google/apis/oslogin_v1beta/representations.rb +0 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +5 -2
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -146
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -34
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -10
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +0 -65
- data/generated/google/apis/speech_v1/representations.rb +0 -40
- data/generated/google/apis/speech_v1/service.rb +0 -122
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -44
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -27
- data/generated/google/apis/speech_v1beta1/service.rb +0 -119
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -1368,15 +1368,6 @@ module Google
|
|
|
1368
1368
|
# @return [String]
|
|
1369
1369
|
attr_accessor :put
|
|
1370
1370
|
|
|
1371
|
-
# The name of the response field whose value is mapped to the HTTP body of
|
|
1372
|
-
# response. Other response fields are ignored. This field is optional. When
|
|
1373
|
-
# not set, the response message will be used as HTTP body of response.
|
|
1374
|
-
# NOTE: the referred field must be not a repeated field and must be present
|
|
1375
|
-
# at the top-level of response message type.
|
|
1376
|
-
# Corresponds to the JSON property `responseBody`
|
|
1377
|
-
# @return [String]
|
|
1378
|
-
attr_accessor :response_body
|
|
1379
|
-
|
|
1380
1371
|
# Selects methods to which this rule applies.
|
|
1381
1372
|
# Refer to selector for syntax details.
|
|
1382
1373
|
# Corresponds to the JSON property `selector`
|
|
@@ -1399,7 +1390,6 @@ module Google
|
|
|
1399
1390
|
@patch = args[:patch] if args.key?(:patch)
|
|
1400
1391
|
@post = args[:post] if args.key?(:post)
|
|
1401
1392
|
@put = args[:put] if args.key?(:put)
|
|
1402
|
-
@response_body = args[:response_body] if args.key?(:response_body)
|
|
1403
1393
|
@selector = args[:selector] if args.key?(:selector)
|
|
1404
1394
|
end
|
|
1405
1395
|
end
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/speech/
|
|
26
26
|
module SpeechV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180116'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -22,63 +22,6 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module SpeechV1
|
|
24
24
|
|
|
25
|
-
# The request message for Operations.CancelOperation.
|
|
26
|
-
class CancelOperationRequest
|
|
27
|
-
include Google::Apis::Core::Hashable
|
|
28
|
-
|
|
29
|
-
def initialize(**args)
|
|
30
|
-
update!(**args)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Update properties of this object
|
|
34
|
-
def update!(**args)
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
39
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
|
40
|
-
# or the response type of an API method. For instance:
|
|
41
|
-
# service Foo `
|
|
42
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
43
|
-
# `
|
|
44
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
45
|
-
class Empty
|
|
46
|
-
include Google::Apis::Core::Hashable
|
|
47
|
-
|
|
48
|
-
def initialize(**args)
|
|
49
|
-
update!(**args)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Update properties of this object
|
|
53
|
-
def update!(**args)
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# The response message for Operations.ListOperations.
|
|
58
|
-
class ListOperationsResponse
|
|
59
|
-
include Google::Apis::Core::Hashable
|
|
60
|
-
|
|
61
|
-
# The standard List next-page token.
|
|
62
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
63
|
-
# @return [String]
|
|
64
|
-
attr_accessor :next_page_token
|
|
65
|
-
|
|
66
|
-
# A list of operations that matches the specified filter in the request.
|
|
67
|
-
# Corresponds to the JSON property `operations`
|
|
68
|
-
# @return [Array<Google::Apis::SpeechV1::Operation>]
|
|
69
|
-
attr_accessor :operations
|
|
70
|
-
|
|
71
|
-
def initialize(**args)
|
|
72
|
-
update!(**args)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# Update properties of this object
|
|
76
|
-
def update!(**args)
|
|
77
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
78
|
-
@operations = args[:operations] if args.key?(:operations)
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
|
|
82
25
|
# The top-level message sent by the client for the `LongRunningRecognize`
|
|
83
26
|
# method.
|
|
84
27
|
class LongRunningRecognizeRequest
|
|
@@ -444,13 +387,6 @@ module Google
|
|
|
444
387
|
# @return [Array<Google::Apis::SpeechV1::SpeechRecognitionAlternative>]
|
|
445
388
|
attr_accessor :alternatives
|
|
446
389
|
|
|
447
|
-
# For multi-channel audio, this is the channel number corresponding to the
|
|
448
|
-
# recognized result for the audio from that channel.
|
|
449
|
-
# For audio_channel_count = N, its output values can range from '0' to 'N-1'.
|
|
450
|
-
# Corresponds to the JSON property `channelTag`
|
|
451
|
-
# @return [Fixnum]
|
|
452
|
-
attr_accessor :channel_tag
|
|
453
|
-
|
|
454
390
|
def initialize(**args)
|
|
455
391
|
update!(**args)
|
|
456
392
|
end
|
|
@@ -458,7 +394,6 @@ module Google
|
|
|
458
394
|
# Update properties of this object
|
|
459
395
|
def update!(**args)
|
|
460
396
|
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
|
461
|
-
@channel_tag = args[:channel_tag] if args.key?(:channel_tag)
|
|
462
397
|
end
|
|
463
398
|
end
|
|
464
399
|
|
|
@@ -22,24 +22,6 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module SpeechV1
|
|
24
24
|
|
|
25
|
-
class CancelOperationRequest
|
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
-
|
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
class Empty
|
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
-
|
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
class ListOperationsResponse
|
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
-
|
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
-
end
|
|
42
|
-
|
|
43
25
|
class LongRunningRecognizeRequest
|
|
44
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
27
|
|
|
@@ -106,27 +88,6 @@ module Google
|
|
|
106
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
107
89
|
end
|
|
108
90
|
|
|
109
|
-
class CancelOperationRequest
|
|
110
|
-
# @private
|
|
111
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
class Empty
|
|
116
|
-
# @private
|
|
117
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
class ListOperationsResponse
|
|
122
|
-
# @private
|
|
123
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
124
|
-
property :next_page_token, as: 'nextPageToken'
|
|
125
|
-
collection :operations, as: 'operations', class: Google::Apis::SpeechV1::Operation, decorator: Google::Apis::SpeechV1::Operation::Representation
|
|
126
|
-
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
|
|
130
91
|
class LongRunningRecognizeRequest
|
|
131
92
|
# @private
|
|
132
93
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -211,7 +172,6 @@ module Google
|
|
|
211
172
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
212
173
|
collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1::SpeechRecognitionAlternative::Representation
|
|
213
174
|
|
|
214
|
-
property :channel_tag, as: 'channelTag'
|
|
215
175
|
end
|
|
216
176
|
end
|
|
217
177
|
|
|
@@ -47,81 +47,6 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
# Starts asynchronous cancellation on a long-running operation. The server
|
|
51
|
-
# makes a best effort to cancel the operation, but success is not
|
|
52
|
-
# guaranteed. If the server doesn't support this method, it returns
|
|
53
|
-
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
54
|
-
# Operations.GetOperation or
|
|
55
|
-
# other methods to check whether the cancellation succeeded or whether the
|
|
56
|
-
# operation completed despite cancellation. On successful cancellation,
|
|
57
|
-
# the operation is not deleted; instead, it becomes an operation with
|
|
58
|
-
# an Operation.error value with a google.rpc.Status.code of 1,
|
|
59
|
-
# corresponding to `Code.CANCELLED`.
|
|
60
|
-
# @param [String] name
|
|
61
|
-
# The name of the operation resource to be cancelled.
|
|
62
|
-
# @param [Google::Apis::SpeechV1::CancelOperationRequest] cancel_operation_request_object
|
|
63
|
-
# @param [String] fields
|
|
64
|
-
# Selector specifying which fields to include in a partial response.
|
|
65
|
-
# @param [String] quota_user
|
|
66
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
67
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
68
|
-
# @param [Google::Apis::RequestOptions] options
|
|
69
|
-
# Request-specific options
|
|
70
|
-
#
|
|
71
|
-
# @yield [result, err] Result & error if block supplied
|
|
72
|
-
# @yieldparam result [Google::Apis::SpeechV1::Empty] parsed result object
|
|
73
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
74
|
-
#
|
|
75
|
-
# @return [Google::Apis::SpeechV1::Empty]
|
|
76
|
-
#
|
|
77
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
78
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
79
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
80
|
-
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
81
|
-
command = make_simple_command(:post, 'v1/operations/{+name}:cancel', options)
|
|
82
|
-
command.request_representation = Google::Apis::SpeechV1::CancelOperationRequest::Representation
|
|
83
|
-
command.request_object = cancel_operation_request_object
|
|
84
|
-
command.response_representation = Google::Apis::SpeechV1::Empty::Representation
|
|
85
|
-
command.response_class = Google::Apis::SpeechV1::Empty
|
|
86
|
-
command.params['name'] = name unless name.nil?
|
|
87
|
-
command.query['fields'] = fields unless fields.nil?
|
|
88
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
89
|
-
execute_or_queue_command(command, &block)
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
# Deletes a long-running operation. This method indicates that the client is
|
|
93
|
-
# no longer interested in the operation result. It does not cancel the
|
|
94
|
-
# operation. If the server doesn't support this method, it returns
|
|
95
|
-
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
96
|
-
# @param [String] name
|
|
97
|
-
# The name of the operation resource to be deleted.
|
|
98
|
-
# @param [String] fields
|
|
99
|
-
# Selector specifying which fields to include in a partial response.
|
|
100
|
-
# @param [String] quota_user
|
|
101
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
102
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
103
|
-
# @param [Google::Apis::RequestOptions] options
|
|
104
|
-
# Request-specific options
|
|
105
|
-
#
|
|
106
|
-
# @yield [result, err] Result & error if block supplied
|
|
107
|
-
# @yieldparam result [Google::Apis::SpeechV1::Empty] parsed result object
|
|
108
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
109
|
-
#
|
|
110
|
-
# @return [Google::Apis::SpeechV1::Empty]
|
|
111
|
-
#
|
|
112
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
113
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
114
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
115
|
-
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
116
|
-
command = make_simple_command(:delete, 'v1/operations/{+name}', options)
|
|
117
|
-
command.response_representation = Google::Apis::SpeechV1::Empty::Representation
|
|
118
|
-
command.response_class = Google::Apis::SpeechV1::Empty
|
|
119
|
-
command.params['name'] = name unless name.nil?
|
|
120
|
-
command.query['fields'] = fields unless fields.nil?
|
|
121
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
122
|
-
execute_or_queue_command(command, &block)
|
|
123
|
-
end
|
|
124
|
-
|
|
125
50
|
# Gets the latest state of a long-running operation. Clients can use this
|
|
126
51
|
# method to poll the operation result at intervals as recommended by the API
|
|
127
52
|
# service.
|
|
@@ -154,53 +79,6 @@ module Google
|
|
|
154
79
|
execute_or_queue_command(command, &block)
|
|
155
80
|
end
|
|
156
81
|
|
|
157
|
-
# Lists operations that match the specified filter in the request. If the
|
|
158
|
-
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
159
|
-
# NOTE: the `name` binding allows API services to override the binding
|
|
160
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
|
161
|
-
# override the binding, API services can add a binding such as
|
|
162
|
-
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
|
163
|
-
# For backwards compatibility, the default name includes the operations
|
|
164
|
-
# collection id, however overriding users must ensure the name binding
|
|
165
|
-
# is the parent resource, without the operations collection id.
|
|
166
|
-
# @param [String] filter
|
|
167
|
-
# The standard list filter.
|
|
168
|
-
# @param [String] name
|
|
169
|
-
# The name of the operation's parent resource.
|
|
170
|
-
# @param [Fixnum] page_size
|
|
171
|
-
# The standard list page size.
|
|
172
|
-
# @param [String] page_token
|
|
173
|
-
# The standard list page token.
|
|
174
|
-
# @param [String] fields
|
|
175
|
-
# Selector specifying which fields to include in a partial response.
|
|
176
|
-
# @param [String] quota_user
|
|
177
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
178
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
179
|
-
# @param [Google::Apis::RequestOptions] options
|
|
180
|
-
# Request-specific options
|
|
181
|
-
#
|
|
182
|
-
# @yield [result, err] Result & error if block supplied
|
|
183
|
-
# @yieldparam result [Google::Apis::SpeechV1::ListOperationsResponse] parsed result object
|
|
184
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
185
|
-
#
|
|
186
|
-
# @return [Google::Apis::SpeechV1::ListOperationsResponse]
|
|
187
|
-
#
|
|
188
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
189
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
190
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
191
|
-
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
192
|
-
command = make_simple_command(:get, 'v1/operations', options)
|
|
193
|
-
command.response_representation = Google::Apis::SpeechV1::ListOperationsResponse::Representation
|
|
194
|
-
command.response_class = Google::Apis::SpeechV1::ListOperationsResponse
|
|
195
|
-
command.query['filter'] = filter unless filter.nil?
|
|
196
|
-
command.query['name'] = name unless name.nil?
|
|
197
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
198
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
199
|
-
command.query['fields'] = fields unless fields.nil?
|
|
200
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
201
|
-
execute_or_queue_command(command, &block)
|
|
202
|
-
end
|
|
203
|
-
|
|
204
82
|
# Performs asynchronous speech recognition: receive results via the
|
|
205
83
|
# google.longrunning.Operations interface. Returns either an
|
|
206
84
|
# `Operation.error` or an `Operation.response` which contains
|
|
@@ -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 = '20180116'
|
|
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'
|
|
@@ -51,50 +51,6 @@ module Google
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
55
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
|
56
|
-
# or the response type of an API method. For instance:
|
|
57
|
-
# service Foo `
|
|
58
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
59
|
-
# `
|
|
60
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
61
|
-
class Empty
|
|
62
|
-
include Google::Apis::Core::Hashable
|
|
63
|
-
|
|
64
|
-
def initialize(**args)
|
|
65
|
-
update!(**args)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# Update properties of this object
|
|
69
|
-
def update!(**args)
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
# The response message for Operations.ListOperations.
|
|
74
|
-
class ListOperationsResponse
|
|
75
|
-
include Google::Apis::Core::Hashable
|
|
76
|
-
|
|
77
|
-
# The standard List next-page token.
|
|
78
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
79
|
-
# @return [String]
|
|
80
|
-
attr_accessor :next_page_token
|
|
81
|
-
|
|
82
|
-
# A list of operations that matches the specified filter in the request.
|
|
83
|
-
# Corresponds to the JSON property `operations`
|
|
84
|
-
# @return [Array<Google::Apis::SpeechV1beta1::Operation>]
|
|
85
|
-
attr_accessor :operations
|
|
86
|
-
|
|
87
|
-
def initialize(**args)
|
|
88
|
-
update!(**args)
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
# Update properties of this object
|
|
92
|
-
def update!(**args)
|
|
93
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
94
|
-
@operations = args[:operations] if args.key?(:operations)
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
|
|
98
54
|
# This resource represents a long-running operation that is the result of a
|
|
99
55
|
# network API call.
|
|
100
56
|
class Operation
|
|
@@ -28,18 +28,6 @@ module Google
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
class Empty
|
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
-
|
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
class ListOperationsResponse
|
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
-
|
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
-
end
|
|
42
|
-
|
|
43
31
|
class Operation
|
|
44
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
33
|
|
|
@@ -104,21 +92,6 @@ module Google
|
|
|
104
92
|
end
|
|
105
93
|
end
|
|
106
94
|
|
|
107
|
-
class Empty
|
|
108
|
-
# @private
|
|
109
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
class ListOperationsResponse
|
|
114
|
-
# @private
|
|
115
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
116
|
-
property :next_page_token, as: 'nextPageToken'
|
|
117
|
-
collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation
|
|
118
|
-
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
|
|
122
95
|
class Operation
|
|
123
96
|
# @private
|
|
124
97
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -47,78 +47,6 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
# Starts asynchronous cancellation on a long-running operation. The server
|
|
51
|
-
# makes a best effort to cancel the operation, but success is not
|
|
52
|
-
# guaranteed. If the server doesn't support this method, it returns
|
|
53
|
-
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
54
|
-
# Operations.GetOperation or
|
|
55
|
-
# other methods to check whether the cancellation succeeded or whether the
|
|
56
|
-
# operation completed despite cancellation. On successful cancellation,
|
|
57
|
-
# the operation is not deleted; instead, it becomes an operation with
|
|
58
|
-
# an Operation.error value with a google.rpc.Status.code of 1,
|
|
59
|
-
# corresponding to `Code.CANCELLED`.
|
|
60
|
-
# @param [String] name
|
|
61
|
-
# The name of the operation resource to be cancelled.
|
|
62
|
-
# @param [String] fields
|
|
63
|
-
# Selector specifying which fields to include in a partial response.
|
|
64
|
-
# @param [String] quota_user
|
|
65
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
66
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67
|
-
# @param [Google::Apis::RequestOptions] options
|
|
68
|
-
# Request-specific options
|
|
69
|
-
#
|
|
70
|
-
# @yield [result, err] Result & error if block supplied
|
|
71
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::Empty] parsed result object
|
|
72
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
-
#
|
|
74
|
-
# @return [Google::Apis::SpeechV1beta1::Empty]
|
|
75
|
-
#
|
|
76
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
-
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
-
command = make_simple_command(:post, 'v1beta1/operations/{+name}:cancel', options)
|
|
81
|
-
command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
|
|
82
|
-
command.response_class = Google::Apis::SpeechV1beta1::Empty
|
|
83
|
-
command.params['name'] = name unless name.nil?
|
|
84
|
-
command.query['fields'] = fields unless fields.nil?
|
|
85
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
86
|
-
execute_or_queue_command(command, &block)
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Deletes a long-running operation. This method indicates that the client is
|
|
90
|
-
# no longer interested in the operation result. It does not cancel the
|
|
91
|
-
# operation. If the server doesn't support this method, it returns
|
|
92
|
-
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
93
|
-
# @param [String] name
|
|
94
|
-
# The name of the operation resource to be deleted.
|
|
95
|
-
# @param [String] fields
|
|
96
|
-
# Selector specifying which fields to include in a partial response.
|
|
97
|
-
# @param [String] quota_user
|
|
98
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
99
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
100
|
-
# @param [Google::Apis::RequestOptions] options
|
|
101
|
-
# Request-specific options
|
|
102
|
-
#
|
|
103
|
-
# @yield [result, err] Result & error if block supplied
|
|
104
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::Empty] parsed result object
|
|
105
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
106
|
-
#
|
|
107
|
-
# @return [Google::Apis::SpeechV1beta1::Empty]
|
|
108
|
-
#
|
|
109
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
110
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
111
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
112
|
-
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
113
|
-
command = make_simple_command(:delete, 'v1beta1/operations/{+name}', options)
|
|
114
|
-
command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
|
|
115
|
-
command.response_class = Google::Apis::SpeechV1beta1::Empty
|
|
116
|
-
command.params['name'] = name unless name.nil?
|
|
117
|
-
command.query['fields'] = fields unless fields.nil?
|
|
118
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
119
|
-
execute_or_queue_command(command, &block)
|
|
120
|
-
end
|
|
121
|
-
|
|
122
50
|
# Gets the latest state of a long-running operation. Clients can use this
|
|
123
51
|
# method to poll the operation result at intervals as recommended by the API
|
|
124
52
|
# service.
|
|
@@ -151,53 +79,6 @@ module Google
|
|
|
151
79
|
execute_or_queue_command(command, &block)
|
|
152
80
|
end
|
|
153
81
|
|
|
154
|
-
# Lists operations that match the specified filter in the request. If the
|
|
155
|
-
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
156
|
-
# NOTE: the `name` binding allows API services to override the binding
|
|
157
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
|
158
|
-
# override the binding, API services can add a binding such as
|
|
159
|
-
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
|
160
|
-
# For backwards compatibility, the default name includes the operations
|
|
161
|
-
# collection id, however overriding users must ensure the name binding
|
|
162
|
-
# is the parent resource, without the operations collection id.
|
|
163
|
-
# @param [String] filter
|
|
164
|
-
# The standard list filter.
|
|
165
|
-
# @param [String] name
|
|
166
|
-
# The name of the operation's parent resource.
|
|
167
|
-
# @param [Fixnum] page_size
|
|
168
|
-
# The standard list page size.
|
|
169
|
-
# @param [String] page_token
|
|
170
|
-
# The standard list page token.
|
|
171
|
-
# @param [String] fields
|
|
172
|
-
# Selector specifying which fields to include in a partial response.
|
|
173
|
-
# @param [String] quota_user
|
|
174
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
175
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
176
|
-
# @param [Google::Apis::RequestOptions] options
|
|
177
|
-
# Request-specific options
|
|
178
|
-
#
|
|
179
|
-
# @yield [result, err] Result & error if block supplied
|
|
180
|
-
# @yieldparam result [Google::Apis::SpeechV1beta1::ListOperationsResponse] parsed result object
|
|
181
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
182
|
-
#
|
|
183
|
-
# @return [Google::Apis::SpeechV1beta1::ListOperationsResponse]
|
|
184
|
-
#
|
|
185
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
186
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
187
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
188
|
-
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
189
|
-
command = make_simple_command(:get, 'v1beta1/operations', options)
|
|
190
|
-
command.response_representation = Google::Apis::SpeechV1beta1::ListOperationsResponse::Representation
|
|
191
|
-
command.response_class = Google::Apis::SpeechV1beta1::ListOperationsResponse
|
|
192
|
-
command.query['filter'] = filter unless filter.nil?
|
|
193
|
-
command.query['name'] = name unless name.nil?
|
|
194
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
195
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
196
|
-
command.query['fields'] = fields unless fields.nil?
|
|
197
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
198
|
-
execute_or_queue_command(command, &block)
|
|
199
|
-
end
|
|
200
|
-
|
|
201
82
|
# Performs asynchronous speech recognition: receive results via the
|
|
202
83
|
# [google.longrunning.Operations]
|
|
203
84
|
# (/speech/reference/rest/v1beta1/operations#Operation)
|