google-api-client 0.33.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +19 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +12 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +105 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +6 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +14 -15
- data/generated/google/apis/cloudasset_v1/service.rb +1 -2
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +14 -14
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
- data/generated/google/apis/cloudidentity_v1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +11 -8
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -1
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +5 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +5 -2
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +15 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +2 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +15 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +481 -126
- data/generated/google/apis/compute_alpha/representations.rb +107 -2
- data/generated/google/apis/compute_alpha/service.rb +1035 -640
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +986 -241
- data/generated/google/apis/compute_beta/representations.rb +284 -0
- data/generated/google/apis/compute_beta/service.rb +1242 -532
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +252 -99
- data/generated/google/apis/compute_v1/representations.rb +24 -0
- data/generated/google/apis/compute_v1/service.rb +749 -472
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +63 -0
- data/generated/google/apis/docs_v1/representations.rb +17 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +203 -8
- data/generated/google/apis/healthcare_v1beta1/representations.rb +101 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +100 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +1 -1
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +185 -0
- data/generated/google/apis/iap_v1/representations.rb +102 -0
- data/generated/google/apis/iap_v1/service.rb +72 -0
- data/generated/google/apis/{speech_v2beta.rb → lifesciences_v2beta.rb} +9 -8
- data/generated/google/apis/lifesciences_v2beta/classes.rb +1328 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
- data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
- data/generated/google/apis/monitoring_v1.rb +36 -0
- data/generated/google/apis/monitoring_v1/classes.rb +260 -0
- data/generated/google/apis/monitoring_v1/representations.rb +123 -0
- data/generated/google/apis/monitoring_v1/service.rb +64 -0
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +0 -7
- data/generated/google/apis/run_v1/service.rb +156 -94
- data/generated/google/apis/sql_v1beta4.rb +37 -0
- data/generated/google/apis/sql_v1beta4/classes.rb +2689 -0
- data/generated/google/apis/sql_v1beta4/representations.rb +1099 -0
- data/generated/google/apis/sql_v1beta4/service.rb +1660 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -6
- data/generated/google/apis/speech_v2beta/classes.rb +0 -355
- data/generated/google/apis/speech_v2beta/representations.rb +0 -152
- data/generated/google/apis/speech_v2beta/service.rb +0 -138
@@ -1,152 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module SpeechV2beta
|
24
|
-
|
25
|
-
class ListOperationsResponse
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class LongRunningRecognizeMetadata
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class LongRunningRecognizeResponse
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class Operation
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class SpeechRecognitionAlternative
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class SpeechRecognitionResult
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class Status
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class WordInfo
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class ListOperationsResponse
|
74
|
-
# @private
|
75
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
76
|
-
property :next_page_token, as: 'nextPageToken'
|
77
|
-
collection :operations, as: 'operations', class: Google::Apis::SpeechV2beta::Operation, decorator: Google::Apis::SpeechV2beta::Operation::Representation
|
78
|
-
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
class LongRunningRecognizeMetadata
|
83
|
-
# @private
|
84
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
85
|
-
property :last_update_time, as: 'lastUpdateTime'
|
86
|
-
property :progress_percent, as: 'progressPercent'
|
87
|
-
property :start_time, as: 'startTime'
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
class LongRunningRecognizeResponse
|
92
|
-
# @private
|
93
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
-
collection :results, as: 'results', class: Google::Apis::SpeechV2beta::SpeechRecognitionResult, decorator: Google::Apis::SpeechV2beta::SpeechRecognitionResult::Representation
|
95
|
-
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
class Operation
|
100
|
-
# @private
|
101
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
102
|
-
property :done, as: 'done'
|
103
|
-
property :error, as: 'error', class: Google::Apis::SpeechV2beta::Status, decorator: Google::Apis::SpeechV2beta::Status::Representation
|
104
|
-
|
105
|
-
hash :metadata, as: 'metadata'
|
106
|
-
property :name, as: 'name'
|
107
|
-
hash :response, as: 'response'
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
class SpeechRecognitionAlternative
|
112
|
-
# @private
|
113
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
114
|
-
property :confidence, as: 'confidence'
|
115
|
-
property :transcript, as: 'transcript'
|
116
|
-
collection :words, as: 'words', class: Google::Apis::SpeechV2beta::WordInfo, decorator: Google::Apis::SpeechV2beta::WordInfo::Representation
|
117
|
-
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
class SpeechRecognitionResult
|
122
|
-
# @private
|
123
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
-
collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV2beta::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV2beta::SpeechRecognitionAlternative::Representation
|
125
|
-
|
126
|
-
property :channel_tag, as: 'channelTag'
|
127
|
-
property :language_code, as: 'languageCode'
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
class Status
|
132
|
-
# @private
|
133
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
134
|
-
property :code, as: 'code'
|
135
|
-
collection :details, as: 'details'
|
136
|
-
property :message, as: 'message'
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
class WordInfo
|
141
|
-
# @private
|
142
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
143
|
-
property :confidence, as: 'confidence'
|
144
|
-
property :end_offset, as: 'endOffset'
|
145
|
-
property :speaker_tag, as: 'speakerTag'
|
146
|
-
property :start_offset, as: 'startOffset'
|
147
|
-
property :word, as: 'word'
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
151
|
-
end
|
152
|
-
end
|
@@ -1,138 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module SpeechV2beta
|
23
|
-
# Cloud Speech-to-Text API
|
24
|
-
#
|
25
|
-
# Converts audio to text by applying powerful neural network models.
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/speech_v2beta'
|
29
|
-
#
|
30
|
-
# Speech = Google::Apis::SpeechV2beta # Alias the module
|
31
|
-
# service = Speech::SpeechService.new
|
32
|
-
#
|
33
|
-
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
|
34
|
-
class SpeechService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
|
-
# @return [String]
|
41
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
-
attr_accessor :quota_user
|
44
|
-
|
45
|
-
def initialize
|
46
|
-
super('https://speech.googleapis.com/', '')
|
47
|
-
@batch_path = 'batch'
|
48
|
-
end
|
49
|
-
|
50
|
-
# Gets the latest state of a long-running operation. Clients can use this
|
51
|
-
# method to poll the operation result at intervals as recommended by the API
|
52
|
-
# service.
|
53
|
-
# @param [String] name
|
54
|
-
# The name of the operation resource.
|
55
|
-
# @param [String] fields
|
56
|
-
# Selector specifying which fields to include in a partial response.
|
57
|
-
# @param [String] quota_user
|
58
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
-
# @param [Google::Apis::RequestOptions] options
|
61
|
-
# Request-specific options
|
62
|
-
#
|
63
|
-
# @yield [result, err] Result & error if block supplied
|
64
|
-
# @yieldparam result [Google::Apis::SpeechV2beta::Operation] parsed result object
|
65
|
-
# @yieldparam err [StandardError] error object if request failed
|
66
|
-
#
|
67
|
-
# @return [Google::Apis::SpeechV2beta::Operation]
|
68
|
-
#
|
69
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
-
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
-
command = make_simple_command(:get, 'v2beta/{+name}', options)
|
74
|
-
command.response_representation = Google::Apis::SpeechV2beta::Operation::Representation
|
75
|
-
command.response_class = Google::Apis::SpeechV2beta::Operation
|
76
|
-
command.params['name'] = name unless name.nil?
|
77
|
-
command.query['fields'] = fields unless fields.nil?
|
78
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
-
execute_or_queue_command(command, &block)
|
80
|
-
end
|
81
|
-
|
82
|
-
# Lists operations that match the specified filter in the request. If the
|
83
|
-
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
84
|
-
# NOTE: the `name` binding allows API services to override the binding
|
85
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
86
|
-
# override the binding, API services can add a binding such as
|
87
|
-
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
88
|
-
# For backwards compatibility, the default name includes the operations
|
89
|
-
# collection id, however overriding users must ensure the name binding
|
90
|
-
# is the parent resource, without the operations collection id.
|
91
|
-
# @param [String] name
|
92
|
-
# The name of the operation's parent resource.
|
93
|
-
# @param [String] filter
|
94
|
-
# The standard list filter.
|
95
|
-
# @param [Fixnum] page_size
|
96
|
-
# The standard list page size.
|
97
|
-
# @param [String] page_token
|
98
|
-
# The standard list page token.
|
99
|
-
# @param [String] fields
|
100
|
-
# Selector specifying which fields to include in a partial response.
|
101
|
-
# @param [String] quota_user
|
102
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
-
# @param [Google::Apis::RequestOptions] options
|
105
|
-
# Request-specific options
|
106
|
-
#
|
107
|
-
# @yield [result, err] Result & error if block supplied
|
108
|
-
# @yieldparam result [Google::Apis::SpeechV2beta::ListOperationsResponse] parsed result object
|
109
|
-
# @yieldparam err [StandardError] error object if request failed
|
110
|
-
#
|
111
|
-
# @return [Google::Apis::SpeechV2beta::ListOperationsResponse]
|
112
|
-
#
|
113
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
-
command = make_simple_command(:get, 'v2beta/{+name}/operations', options)
|
118
|
-
command.response_representation = Google::Apis::SpeechV2beta::ListOperationsResponse::Representation
|
119
|
-
command.response_class = Google::Apis::SpeechV2beta::ListOperationsResponse
|
120
|
-
command.params['name'] = name unless name.nil?
|
121
|
-
command.query['filter'] = filter unless filter.nil?
|
122
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
123
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
124
|
-
command.query['fields'] = fields unless fields.nil?
|
125
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
126
|
-
execute_or_queue_command(command, &block)
|
127
|
-
end
|
128
|
-
|
129
|
-
protected
|
130
|
-
|
131
|
-
def apply_command_defaults(command)
|
132
|
-
command.query['key'] = key unless key.nil?
|
133
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
end
|
138
|
-
end
|