google-api-client 0.9.19 → 0.9.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/api_names.yaml +2 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +20 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +9 -7
- data/generated/google/apis/androidenterprise_v1/service.rb +7 -1
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +86 -25
- data/generated/google/apis/appengine_v1beta5/representations.rb +31 -12
- data/generated/google/apis/appengine_v1beta5/service.rb +33 -33
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +27 -18
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +243 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +64 -0
- data/generated/google/apis/classroom_v1/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +443 -13
- data/generated/google/apis/compute_beta/representations.rb +155 -0
- data/generated/google/apis/compute_beta/service.rb +383 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +43 -13
- data/generated/google/apis/compute_v1/representations.rb +13 -0
- data/generated/google/apis/compute_v1/service.rb +89 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +48 -0
- data/generated/google/apis/content_v2/representations.rb +18 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +44 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +18 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +367 -7
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +213 -68
- data/generated/google/apis/dataproc_v1/representations.rb +38 -0
- data/generated/google/apis/dataproc_v1/service.rb +78 -48
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +3 -3
- data/generated/google/apis/deploymentmanager_v2/service.rb +55 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +4 -3
- data/generated/google/apis/dfareporting_v2_6/service.rb +48 -29
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +7 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +9 -2
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -1
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/classes.rb +8 -10
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +39 -6
- data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +3 -2
- data/generated/google/apis/language_v1beta1/service.rb +2 -2
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +22 -18
- data/generated/google/apis/logging_v2beta1/service.rb +17 -3
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +26 -24
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +771 -75
- data/generated/google/apis/sheets_v4/representations.rb +125 -10
- data/generated/google/apis/sheets_v4/service.rb +39 -2
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +3926 -0
- data/generated/google/apis/slides_v1/representations.rb +1722 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/service.rb +25 -25
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +20 -19
- data/generated/google/apis/youtube_v3/representations.rb +3 -4
- data/generated/google/apis/youtube_v3/service.rb +35 -3
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -0,0 +1,202 @@
|
|
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 SlidesV1
|
23
|
+
# Google Slides API
|
24
|
+
#
|
25
|
+
# An API for creating and editing Google Slides presentations.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/slides_v1'
|
29
|
+
#
|
30
|
+
# Slides = Google::Apis::SlidesV1 # Alias the module
|
31
|
+
# service = Slides::SlidesService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/slides/
|
34
|
+
class SlidesService < 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://slides.googleapis.com/', '')
|
47
|
+
end
|
48
|
+
|
49
|
+
# Gets the latest version of the specified presentation.
|
50
|
+
# @param [String] presentation_id
|
51
|
+
# The ID of the presentation to retrieve.
|
52
|
+
# @param [String] quota_user
|
53
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
54
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [Google::Apis::RequestOptions] options
|
58
|
+
# Request-specific options
|
59
|
+
#
|
60
|
+
# @yield [result, err] Result & error if block supplied
|
61
|
+
# @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
|
62
|
+
# @yieldparam err [StandardError] error object if request failed
|
63
|
+
#
|
64
|
+
# @return [Google::Apis::SlidesV1::Presentation]
|
65
|
+
#
|
66
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
67
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
68
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
69
|
+
def get_presentation(presentation_id, quota_user: nil, fields: nil, options: nil, &block)
|
70
|
+
command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
|
71
|
+
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
72
|
+
command.response_class = Google::Apis::SlidesV1::Presentation
|
73
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
74
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
76
|
+
execute_or_queue_command(command, &block)
|
77
|
+
end
|
78
|
+
|
79
|
+
# Creates a new presentation using the title given in the request. Other
|
80
|
+
# fields in the request are ignored.
|
81
|
+
# Returns the created presentation.
|
82
|
+
# @param [Google::Apis::SlidesV1::Presentation] presentation_object
|
83
|
+
# @param [String] quota_user
|
84
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
85
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
86
|
+
# @param [String] fields
|
87
|
+
# Selector specifying which fields to include in a partial response.
|
88
|
+
# @param [Google::Apis::RequestOptions] options
|
89
|
+
# Request-specific options
|
90
|
+
#
|
91
|
+
# @yield [result, err] Result & error if block supplied
|
92
|
+
# @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
|
93
|
+
# @yieldparam err [StandardError] error object if request failed
|
94
|
+
#
|
95
|
+
# @return [Google::Apis::SlidesV1::Presentation]
|
96
|
+
#
|
97
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
98
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
99
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
100
|
+
def create_presentation(presentation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
101
|
+
command = make_simple_command(:post, 'v1/presentations', options)
|
102
|
+
command.request_representation = Google::Apis::SlidesV1::Presentation::Representation
|
103
|
+
command.request_object = presentation_object
|
104
|
+
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
105
|
+
command.response_class = Google::Apis::SlidesV1::Presentation
|
106
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
107
|
+
command.query['fields'] = fields unless fields.nil?
|
108
|
+
execute_or_queue_command(command, &block)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Applies one or more updates to the presentation.
|
112
|
+
# Each request is validated before
|
113
|
+
# being applied. If any request is not valid then the entire request will
|
114
|
+
# fail and nothing will be applied.
|
115
|
+
# Some requests have replies to
|
116
|
+
# give you some information about how they are applied. Other requests do
|
117
|
+
# not need to return information; these each return an empty reply.
|
118
|
+
# The order of replies matches that of the requests.
|
119
|
+
# For example, suppose you call batchUpdate with four updates, and only the
|
120
|
+
# third one returns information. The response would have two empty replies,
|
121
|
+
# the reply to the third request, and another empty reply, in that order.
|
122
|
+
# Because other users may be editing the presentation, it is not guaranteed
|
123
|
+
# that the presentation will exactly reflect your changes: your changes may
|
124
|
+
# be altered with respect to collaborator changes. If there are no
|
125
|
+
# collaborators, the presentation should reflect your changes. In any case,
|
126
|
+
# it is guaranteed that the updates in your request will be applied together
|
127
|
+
# atomically.
|
128
|
+
# @param [String] presentation_id
|
129
|
+
# The presentation to apply the updates to.
|
130
|
+
# @param [Google::Apis::SlidesV1::BatchUpdatePresentationRequest] batch_update_presentation_request_object
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::SlidesV1::BatchUpdatePresentationResponse] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::SlidesV1::BatchUpdatePresentationResponse]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:post, 'v1/presentations/{presentationId}:batchUpdate', options)
|
150
|
+
command.request_representation = Google::Apis::SlidesV1::BatchUpdatePresentationRequest::Representation
|
151
|
+
command.request_object = batch_update_presentation_request_object
|
152
|
+
command.response_representation = Google::Apis::SlidesV1::BatchUpdatePresentationResponse::Representation
|
153
|
+
command.response_class = Google::Apis::SlidesV1::BatchUpdatePresentationResponse
|
154
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
156
|
+
command.query['fields'] = fields unless fields.nil?
|
157
|
+
execute_or_queue_command(command, &block)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Gets the latest version of the specified page in the presentation.
|
161
|
+
# @param [String] presentation_id
|
162
|
+
# The ID of the presentation to retrieve.
|
163
|
+
# @param [String] page_object_id
|
164
|
+
# The object ID of the page to retrieve.
|
165
|
+
# @param [String] quota_user
|
166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
168
|
+
# @param [String] fields
|
169
|
+
# Selector specifying which fields to include in a partial response.
|
170
|
+
# @param [Google::Apis::RequestOptions] options
|
171
|
+
# Request-specific options
|
172
|
+
#
|
173
|
+
# @yield [result, err] Result & error if block supplied
|
174
|
+
# @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object
|
175
|
+
# @yieldparam err [StandardError] error object if request failed
|
176
|
+
#
|
177
|
+
# @return [Google::Apis::SlidesV1::Page]
|
178
|
+
#
|
179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
182
|
+
def get_presentation_page(presentation_id, page_object_id, quota_user: nil, fields: nil, options: nil, &block)
|
183
|
+
command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
|
184
|
+
command.response_representation = Google::Apis::SlidesV1::Page::Representation
|
185
|
+
command.response_class = Google::Apis::SlidesV1::Page
|
186
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
187
|
+
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
|
+
command.query['fields'] = fields unless fields.nil?
|
190
|
+
execute_or_queue_command(command, &block)
|
191
|
+
end
|
192
|
+
|
193
|
+
protected
|
194
|
+
|
195
|
+
def apply_command_defaults(command)
|
196
|
+
command.query['key'] = key unless key.nil?
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|
@@ -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 = '20161031'
|
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'
|
@@ -120,19 +120,12 @@ module Google
|
|
120
120
|
execute_or_queue_command(command, &block)
|
121
121
|
end
|
122
122
|
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# `google.rpc.Code.UNIMPLEMENTED`.
|
127
|
-
# Operations.GetOperation or
|
128
|
-
# other methods to check whether the cancellation succeeded or whether the
|
129
|
-
# operation completed despite cancellation. On successful cancellation,
|
130
|
-
# the operation is not deleted; instead, it becomes an operation with
|
131
|
-
# an Operation.error value with a google.rpc.Status.code of 1,
|
132
|
-
# corresponding to `Code.CANCELLED`.
|
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`.
|
133
127
|
# @param [String] name
|
134
|
-
# The name of the operation resource to be
|
135
|
-
# @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object
|
128
|
+
# The name of the operation resource to be deleted.
|
136
129
|
# @param [String] quota_user
|
137
130
|
# Available to use for quota purposes for server-side applications. Can be any
|
138
131
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -150,10 +143,8 @@ module Google
|
|
150
143
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
151
144
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
152
145
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
153
|
-
def
|
154
|
-
command = make_simple_command(:
|
155
|
-
command.request_representation = Google::Apis::SpeechV1beta1::CancelOperationRequest::Representation
|
156
|
-
command.request_object = cancel_operation_request_object
|
146
|
+
def delete_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:delete, 'v1beta1/operations/{+name}', options)
|
157
148
|
command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
|
158
149
|
command.response_class = Google::Apis::SpeechV1beta1::Empty
|
159
150
|
command.params['name'] = name unless name.nil?
|
@@ -162,12 +153,19 @@ module Google
|
|
162
153
|
execute_or_queue_command(command, &block)
|
163
154
|
end
|
164
155
|
|
165
|
-
#
|
166
|
-
#
|
167
|
-
#
|
168
|
-
# `google.rpc.Code.UNIMPLEMENTED`.
|
156
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
157
|
+
# makes a best effort to cancel the operation, but success is not
|
158
|
+
# guaranteed. If the server doesn't support this method, it returns
|
159
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
160
|
+
# Operations.GetOperation or
|
161
|
+
# other methods to check whether the cancellation succeeded or whether the
|
162
|
+
# operation completed despite cancellation. On successful cancellation,
|
163
|
+
# the operation is not deleted; instead, it becomes an operation with
|
164
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
165
|
+
# corresponding to `Code.CANCELLED`.
|
169
166
|
# @param [String] name
|
170
|
-
# The name of the operation resource to be
|
167
|
+
# The name of the operation resource to be cancelled.
|
168
|
+
# @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object
|
171
169
|
# @param [String] quota_user
|
172
170
|
# Available to use for quota purposes for server-side applications. Can be any
|
173
171
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -185,8 +183,10 @@ module Google
|
|
185
183
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
186
184
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
185
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
|
-
def
|
189
|
-
command = make_simple_command(:
|
186
|
+
def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:post, 'v1beta1/operations/{+name}:cancel', options)
|
188
|
+
command.request_representation = Google::Apis::SpeechV1beta1::CancelOperationRequest::Representation
|
189
|
+
command.request_object = cancel_operation_request_object
|
190
190
|
command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation
|
191
191
|
command.response_class = Google::Apis::SpeechV1beta1::Empty
|
192
192
|
command.params['name'] = name unless name.nil?
|
@@ -195,7 +195,7 @@ module Google
|
|
195
195
|
execute_or_queue_command(command, &block)
|
196
196
|
end
|
197
197
|
|
198
|
-
#
|
198
|
+
# Performs synchronous speech recognition: receive results after all audio
|
199
199
|
# has been sent and processed.
|
200
200
|
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
|
201
201
|
# @param [String] quota_user
|
@@ -226,7 +226,7 @@ module Google
|
|
226
226
|
execute_or_queue_command(command, &block)
|
227
227
|
end
|
228
228
|
|
229
|
-
#
|
229
|
+
# Performs asynchronous speech recognition: receive results via the
|
230
230
|
# google.longrunning.Operations interface. Returns either an
|
231
231
|
# `Operation.error` or an `Operation.response` which contains
|
232
232
|
# an `AsyncRecognizeResponse` message.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/sql/docs/reference/latest
|
27
27
|
module SqladminV1beta4
|
28
28
|
VERSION = 'V1beta4'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20161028'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/storage/docs/json_api/
|
26
26
|
module StorageV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20161027'
|
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'
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/vision/
|
28
28
|
module VisionV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20161031'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# @return [Google::Apis::VisionV1::Image]
|
55
55
|
attr_accessor :image
|
56
56
|
|
57
|
-
# Image context.
|
57
|
+
# Image context and/or feature-specific parameters.
|
58
58
|
# Corresponds to the JSON property `imageContext`
|
59
59
|
# @return [Google::Apis::VisionV1::ImageContext]
|
60
60
|
attr_accessor :image_context
|
@@ -658,7 +658,7 @@ module Google
|
|
658
658
|
end
|
659
659
|
end
|
660
660
|
|
661
|
-
# Image context.
|
661
|
+
# Image context and/or feature-specific parameters.
|
662
662
|
class ImageContext
|
663
663
|
include Google::Apis::Core::Hashable
|
664
664
|
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see http://developers.google.com/youtube/analytics/
|
26
26
|
module YoutubeAnalyticsV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20161105'
|
29
29
|
|
30
30
|
# Manage your YouTube account
|
31
31
|
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/youtube/partner/
|
26
26
|
module YoutubePartnerV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20161101'
|
29
29
|
|
30
30
|
# View and manage your assets and associated content on YouTube
|
31
31
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
@@ -1100,12 +1100,6 @@ module Google
|
|
1100
1100
|
class ChannelContentDetails
|
1101
1101
|
include Google::Apis::Core::Hashable
|
1102
1102
|
|
1103
|
-
# The googlePlusUserId object identifies the Google+ profile ID associated with
|
1104
|
-
# this channel.
|
1105
|
-
# Corresponds to the JSON property `googlePlusUserId`
|
1106
|
-
# @return [String]
|
1107
|
-
attr_accessor :google_plus_user_id
|
1108
|
-
|
1109
1103
|
#
|
1110
1104
|
# Corresponds to the JSON property `relatedPlaylists`
|
1111
1105
|
# @return [Google::Apis::YoutubeV3::ChannelContentDetails::RelatedPlaylists]
|
@@ -1117,7 +1111,6 @@ module Google
|
|
1117
1111
|
|
1118
1112
|
# Update properties of this object
|
1119
1113
|
def update!(**args)
|
1120
|
-
@google_plus_user_id = args[:google_plus_user_id] if args.key?(:google_plus_user_id)
|
1121
1114
|
@related_playlists = args[:related_playlists] if args.key?(:related_playlists)
|
1122
1115
|
end
|
1123
1116
|
|
@@ -2005,11 +1998,6 @@ module Google
|
|
2005
1998
|
# @return [String]
|
2006
1999
|
attr_accessor :author_display_name
|
2007
2000
|
|
2008
|
-
# Link to the author's Google+ profile, if any.
|
2009
|
-
# Corresponds to the JSON property `authorGoogleplusProfileUrl`
|
2010
|
-
# @return [String]
|
2011
|
-
attr_accessor :author_googleplus_profile_url
|
2012
|
-
|
2013
2001
|
# The URL for the avatar of the user who posted the comment.
|
2014
2002
|
# Corresponds to the JSON property `authorProfileImageUrl`
|
2015
2003
|
# @return [String]
|
@@ -2092,7 +2080,6 @@ module Google
|
|
2092
2080
|
@author_channel_id = args[:author_channel_id] if args.key?(:author_channel_id)
|
2093
2081
|
@author_channel_url = args[:author_channel_url] if args.key?(:author_channel_url)
|
2094
2082
|
@author_display_name = args[:author_display_name] if args.key?(:author_display_name)
|
2095
|
-
@author_googleplus_profile_url = args[:author_googleplus_profile_url] if args.key?(:author_googleplus_profile_url)
|
2096
2083
|
@author_profile_image_url = args[:author_profile_image_url] if args.key?(:author_profile_image_url)
|
2097
2084
|
@can_rate = args[:can_rate] if args.key?(:can_rate)
|
2098
2085
|
@channel_id = args[:channel_id] if args.key?(:channel_id)
|
@@ -7311,6 +7298,13 @@ module Google
|
|
7311
7298
|
# @return [String]
|
7312
7299
|
attr_accessor :duration
|
7313
7300
|
|
7301
|
+
# Indicates whether the video uploader has provided a custom thumbnail image for
|
7302
|
+
# the video. This property is only visible to the video uploader.
|
7303
|
+
# Corresponds to the JSON property `hasCustomThumbnail`
|
7304
|
+
# @return [Boolean]
|
7305
|
+
attr_accessor :has_custom_thumbnail
|
7306
|
+
alias_method :has_custom_thumbnail?, :has_custom_thumbnail
|
7307
|
+
|
7314
7308
|
# The value of is_license_content indicates whether the video is licensed
|
7315
7309
|
# content.
|
7316
7310
|
# Corresponds to the JSON property `licensedContent`
|
@@ -7340,6 +7334,7 @@ module Google
|
|
7340
7334
|
@definition = args[:definition] if args.key?(:definition)
|
7341
7335
|
@dimension = args[:dimension] if args.key?(:dimension)
|
7342
7336
|
@duration = args[:duration] if args.key?(:duration)
|
7337
|
+
@has_custom_thumbnail = args[:has_custom_thumbnail] if args.key?(:has_custom_thumbnail)
|
7343
7338
|
@licensed_content = args[:licensed_content] if args.key?(:licensed_content)
|
7344
7339
|
@projection = args[:projection] if args.key?(:projection)
|
7345
7340
|
@region_restriction = args[:region_restriction] if args.key?(:region_restriction)
|
@@ -7434,11 +7429,6 @@ module Google
|
|
7434
7429
|
# @return [String]
|
7435
7430
|
attr_accessor :file_type
|
7436
7431
|
|
7437
|
-
# Geographical coordinates of a point, in WGS84.
|
7438
|
-
# Corresponds to the JSON property `recordingLocation`
|
7439
|
-
# @return [Google::Apis::YoutubeV3::GeoPoint]
|
7440
|
-
attr_accessor :recording_location
|
7441
|
-
|
7442
7432
|
# A list of video streams contained in the uploaded video file. Each item in the
|
7443
7433
|
# list contains detailed metadata about a video stream.
|
7444
7434
|
# Corresponds to the JSON property `videoStreams`
|
@@ -7459,7 +7449,6 @@ module Google
|
|
7459
7449
|
@file_name = args[:file_name] if args.key?(:file_name)
|
7460
7450
|
@file_size = args[:file_size] if args.key?(:file_size)
|
7461
7451
|
@file_type = args[:file_type] if args.key?(:file_type)
|
7462
|
-
@recording_location = args[:recording_location] if args.key?(:recording_location)
|
7463
7452
|
@video_streams = args[:video_streams] if args.key?(:video_streams)
|
7464
7453
|
end
|
7465
7454
|
end
|
@@ -7796,18 +7785,30 @@ module Google
|
|
7796
7785
|
class VideoPlayer
|
7797
7786
|
include Google::Apis::Core::Hashable
|
7798
7787
|
|
7788
|
+
#
|
7789
|
+
# Corresponds to the JSON property `embedHeight`
|
7790
|
+
# @return [String]
|
7791
|
+
attr_accessor :embed_height
|
7792
|
+
|
7799
7793
|
# An <iframe> tag that embeds a player that will play the video.
|
7800
7794
|
# Corresponds to the JSON property `embedHtml`
|
7801
7795
|
# @return [String]
|
7802
7796
|
attr_accessor :embed_html
|
7803
7797
|
|
7798
|
+
# The embed width
|
7799
|
+
# Corresponds to the JSON property `embedWidth`
|
7800
|
+
# @return [String]
|
7801
|
+
attr_accessor :embed_width
|
7802
|
+
|
7804
7803
|
def initialize(**args)
|
7805
7804
|
update!(**args)
|
7806
7805
|
end
|
7807
7806
|
|
7808
7807
|
# Update properties of this object
|
7809
7808
|
def update!(**args)
|
7809
|
+
@embed_height = args[:embed_height] if args.key?(:embed_height)
|
7810
7810
|
@embed_html = args[:embed_html] if args.key?(:embed_html)
|
7811
|
+
@embed_width = args[:embed_width] if args.key?(:embed_width)
|
7811
7812
|
end
|
7812
7813
|
end
|
7813
7814
|
|