google-api-client 0.19.7 → 0.19.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  5. data/generated/google/apis/androidmanagement_v1/classes.rb +54 -8
  6. data/generated/google/apis/androidmanagement_v1/representations.rb +6 -0
  7. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v1_1/classes.rb +2 -1
  9. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  10. data/generated/google/apis/androidpublisher_v2/classes.rb +8 -7
  11. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  12. data/generated/google/apis/appengine_v1.rb +1 -1
  13. data/generated/google/apis/appengine_v1/classes.rb +18 -16
  14. data/generated/google/apis/appengine_v1/service.rb +5 -5
  15. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  16. data/generated/google/apis/appengine_v1alpha/classes.rb +2 -2
  17. data/generated/google/apis/appengine_v1beta.rb +1 -1
  18. data/generated/google/apis/appengine_v1beta/classes.rb +25 -16
  19. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  20. data/generated/google/apis/appengine_v1beta/service.rb +5 -5
  21. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  22. data/generated/google/apis/appengine_v1beta4/classes.rb +2 -2
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +2 -2
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +42 -5
  27. data/generated/google/apis/bigquery_v2/representations.rb +18 -2
  28. data/generated/google/apis/cloudiot_v1.rb +1 -1
  29. data/generated/google/apis/cloudiot_v1/classes.rb +128 -59
  30. data/generated/google/apis/cloudiot_v1/representations.rb +31 -18
  31. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  32. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +4 -3
  33. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  34. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +4 -4
  35. data/generated/google/apis/compute_alpha.rb +1 -1
  36. data/generated/google/apis/compute_alpha/classes.rb +40 -14
  37. data/generated/google/apis/compute_alpha/representations.rb +5 -1
  38. data/generated/google/apis/compute_alpha/service.rb +131 -0
  39. data/generated/google/apis/compute_beta.rb +1 -1
  40. data/generated/google/apis/compute_beta/classes.rb +67 -10
  41. data/generated/google/apis/compute_beta/representations.rb +17 -0
  42. data/generated/google/apis/compute_beta/service.rb +52 -0
  43. data/generated/google/apis/compute_v1.rb +1 -1
  44. data/generated/google/apis/compute_v1/classes.rb +6 -5
  45. data/generated/google/apis/container_v1beta1.rb +1 -1
  46. data/generated/google/apis/container_v1beta1/classes.rb +44 -0
  47. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  48. data/generated/google/apis/container_v1beta1/service.rb +2 -2
  49. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  50. data/generated/google/apis/dataproc_v1beta2/service.rb +3 -1
  51. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  52. data/generated/google/apis/deploymentmanager_alpha/service.rb +4 -1
  53. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  54. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +102 -0
  55. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +49 -0
  56. data/generated/google/apis/deploymentmanager_v2beta/service.rb +4 -1
  57. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  58. data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -10
  59. data/generated/google/apis/dlp_v2beta2.rb +1 -1
  60. data/generated/google/apis/dlp_v2beta2/classes.rb +583 -0
  61. data/generated/google/apis/dlp_v2beta2/representations.rb +258 -0
  62. data/generated/google/apis/dlp_v2beta2/service.rb +181 -0
  63. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -0
  65. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  66. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +2 -2
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/logging_v2.rb +1 -1
  69. data/generated/google/apis/logging_v2/classes.rb +5 -3
  70. data/generated/google/apis/logging_v2beta1.rb +1 -1
  71. data/generated/google/apis/logging_v2beta1/classes.rb +5 -3
  72. data/generated/google/apis/manufacturers_v1.rb +1 -1
  73. data/generated/google/apis/manufacturers_v1/service.rb +13 -13
  74. data/generated/google/apis/ml_v1.rb +1 -1
  75. data/generated/google/apis/ml_v1/classes.rb +0 -142
  76. data/generated/google/apis/ml_v1/representations.rb +0 -26
  77. data/generated/google/apis/ml_v1/service.rb +3 -63
  78. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  79. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +3 -3
  80. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +18 -17
  81. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  82. data/generated/google/apis/safebrowsing_v4/classes.rb +2 -1
  83. data/generated/google/apis/serviceusage_v1.rb +42 -0
  84. data/generated/google/apis/serviceusage_v1/classes.rb +3862 -0
  85. data/generated/google/apis/serviceusage_v1/representations.rb +1186 -0
  86. data/generated/google/apis/serviceusage_v1/service.rb +406 -0
  87. data/generated/google/apis/slides_v1.rb +1 -1
  88. data/generated/google/apis/slides_v1/classes.rb +13 -0
  89. data/generated/google/apis/slides_v1/representations.rb +3 -0
  90. data/generated/google/apis/spanner_v1.rb +1 -1
  91. data/generated/google/apis/spanner_v1/classes.rb +3 -3
  92. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  93. data/lib/google/apis/version.rb +1 -1
  94. metadata +6 -2
@@ -0,0 +1,406 @@
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 ServiceusageV1
23
+ # Service Usage API
24
+ #
25
+ # Enables services that service consumers want to use on Google Cloud Platform,
26
+ # lists the available or enabled services, or disables services that service
27
+ # consumers no longer use.
28
+ #
29
+ # @example
30
+ # require 'google/apis/serviceusage_v1'
31
+ #
32
+ # Serviceusage = Google::Apis::ServiceusageV1 # Alias the module
33
+ # service = Serviceusage::ServiceUsageService.new
34
+ #
35
+ # @see https://cloud.google.com/service-usage/
36
+ class ServiceUsageService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://serviceusage.googleapis.com/', '')
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Starts asynchronous cancellation on a long-running operation. The server
53
+ # makes a best effort to cancel the operation, but success is not
54
+ # guaranteed. If the server doesn't support this method, it returns
55
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
56
+ # Operations.GetOperation or
57
+ # other methods to check whether the cancellation succeeded or whether the
58
+ # operation completed despite cancellation. On successful cancellation,
59
+ # the operation is not deleted; instead, it becomes an operation with
60
+ # an Operation.error value with a google.rpc.Status.code of 1,
61
+ # corresponding to `Code.CANCELLED`.
62
+ # @param [String] name
63
+ # The name of the operation resource to be cancelled.
64
+ # @param [Google::Apis::ServiceusageV1::CancelOperationRequest] cancel_operation_request_object
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
67
+ # @param [String] quota_user
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::ServiceusageV1::Empty] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::ServiceusageV1::Empty]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
84
+ command.request_representation = Google::Apis::ServiceusageV1::CancelOperationRequest::Representation
85
+ command.request_object = cancel_operation_request_object
86
+ command.response_representation = Google::Apis::ServiceusageV1::Empty::Representation
87
+ command.response_class = Google::Apis::ServiceusageV1::Empty
88
+ command.params['name'] = name unless name.nil?
89
+ command.query['fields'] = fields unless fields.nil?
90
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
94
+ # Deletes a long-running operation. This method indicates that the client is
95
+ # no longer interested in the operation result. It does not cancel the
96
+ # operation. If the server doesn't support this method, it returns
97
+ # `google.rpc.Code.UNIMPLEMENTED`.
98
+ # @param [String] name
99
+ # The name of the operation resource to be deleted.
100
+ # @param [String] fields
101
+ # Selector specifying which fields to include in a partial response.
102
+ # @param [String] quota_user
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [Google::Apis::ServiceusageV1::Empty] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::ServiceusageV1::Empty]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
118
+ command = make_simple_command(:delete, 'v1/{+name}', options)
119
+ command.response_representation = Google::Apis::ServiceusageV1::Empty::Representation
120
+ command.response_class = Google::Apis::ServiceusageV1::Empty
121
+ command.params['name'] = name unless name.nil?
122
+ command.query['fields'] = fields unless fields.nil?
123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ execute_or_queue_command(command, &block)
125
+ end
126
+
127
+ # Gets the latest state of a long-running operation. Clients can use this
128
+ # method to poll the operation result at intervals as recommended by the API
129
+ # service.
130
+ # @param [String] name
131
+ # The name of the operation resource.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::ServiceusageV1::Operation] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::ServiceusageV1::Operation]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:get, 'v1/{+name}', options)
151
+ command.response_representation = Google::Apis::ServiceusageV1::Operation::Representation
152
+ command.response_class = Google::Apis::ServiceusageV1::Operation
153
+ command.params['name'] = name unless name.nil?
154
+ command.query['fields'] = fields unless fields.nil?
155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
156
+ execute_or_queue_command(command, &block)
157
+ end
158
+
159
+ # Lists operations that match the specified filter in the request. If the
160
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
161
+ # NOTE: the `name` binding allows API services to override the binding
162
+ # to use different resource name schemes, such as `users/*/operations`. To
163
+ # override the binding, API services can add a binding such as
164
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
165
+ # For backwards compatibility, the default name includes the operations
166
+ # collection id, however overriding users must ensure the name binding
167
+ # is the parent resource, without the operations collection id.
168
+ # @param [String] filter
169
+ # The standard list filter.
170
+ # @param [String] name
171
+ # The name of the operation's parent resource.
172
+ # @param [Fixnum] page_size
173
+ # The standard list page size.
174
+ # @param [String] page_token
175
+ # The standard list page token.
176
+ # @param [String] fields
177
+ # Selector specifying which fields to include in a partial response.
178
+ # @param [String] quota_user
179
+ # Available to use for quota purposes for server-side applications. Can be any
180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
181
+ # @param [Google::Apis::RequestOptions] options
182
+ # Request-specific options
183
+ #
184
+ # @yield [result, err] Result & error if block supplied
185
+ # @yieldparam result [Google::Apis::ServiceusageV1::ListOperationsResponse] parsed result object
186
+ # @yieldparam err [StandardError] error object if request failed
187
+ #
188
+ # @return [Google::Apis::ServiceusageV1::ListOperationsResponse]
189
+ #
190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
193
+ def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
194
+ command = make_simple_command(:get, 'v1/operations', options)
195
+ command.response_representation = Google::Apis::ServiceusageV1::ListOperationsResponse::Representation
196
+ command.response_class = Google::Apis::ServiceusageV1::ListOperationsResponse
197
+ command.query['filter'] = filter unless filter.nil?
198
+ command.query['name'] = name unless name.nil?
199
+ command.query['pageSize'] = page_size unless page_size.nil?
200
+ command.query['pageToken'] = page_token unless page_token.nil?
201
+ command.query['fields'] = fields unless fields.nil?
202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
203
+ execute_or_queue_command(command, &block)
204
+ end
205
+
206
+ # Disable a service so it can no longer be used with a
207
+ # project. This prevents unintended usage that may cause unexpected billing
208
+ # charges or security leaks.
209
+ # It is not valid to call the disable method on a service that is not
210
+ # currently enabled. Callers will receive a FAILED_PRECONDITION status if
211
+ # the target service is not currently enabled.
212
+ # Operation<response: google.protobuf.Empty>
213
+ # @param [String] name
214
+ # Name of the consumer and service to disable the service on.
215
+ # The enable and disable methods currently only support projects.
216
+ # An example name would be:
217
+ # projects/123/services/serviceusage.googleapis.com
218
+ # @param [Google::Apis::ServiceusageV1::DisableServiceRequest] disable_service_request_object
219
+ # @param [String] fields
220
+ # Selector specifying which fields to include in a partial response.
221
+ # @param [String] quota_user
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
224
+ # @param [Google::Apis::RequestOptions] options
225
+ # Request-specific options
226
+ #
227
+ # @yield [result, err] Result & error if block supplied
228
+ # @yieldparam result [Google::Apis::ServiceusageV1::Operation] parsed result object
229
+ # @yieldparam err [StandardError] error object if request failed
230
+ #
231
+ # @return [Google::Apis::ServiceusageV1::Operation]
232
+ #
233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
236
+ def disable_service(name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
237
+ command = make_simple_command(:post, 'v1/{+name}:disable', options)
238
+ command.request_representation = Google::Apis::ServiceusageV1::DisableServiceRequest::Representation
239
+ command.request_object = disable_service_request_object
240
+ command.response_representation = Google::Apis::ServiceusageV1::Operation::Representation
241
+ command.response_class = Google::Apis::ServiceusageV1::Operation
242
+ command.params['name'] = name unless name.nil?
243
+ command.query['fields'] = fields unless fields.nil?
244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
245
+ execute_or_queue_command(command, &block)
246
+ end
247
+
248
+ # Enable a service so it can be used with a project.
249
+ # See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
250
+ # more information.
251
+ # Operation<response: google.protobuf.Empty>
252
+ # @param [String] name
253
+ # Name of the consumer and service to enable the service on.
254
+ # The enable and disable methods currently only support projects.
255
+ # Enabling a service requires that the service is public or is shared with
256
+ # the user enabling the service.
257
+ # An example name would be:
258
+ # projects/123/services/serviceusage.googleapis.com
259
+ # @param [Google::Apis::ServiceusageV1::EnableServiceRequest] enable_service_request_object
260
+ # @param [String] fields
261
+ # Selector specifying which fields to include in a partial response.
262
+ # @param [String] quota_user
263
+ # Available to use for quota purposes for server-side applications. Can be any
264
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
265
+ # @param [Google::Apis::RequestOptions] options
266
+ # Request-specific options
267
+ #
268
+ # @yield [result, err] Result & error if block supplied
269
+ # @yieldparam result [Google::Apis::ServiceusageV1::Operation] parsed result object
270
+ # @yieldparam err [StandardError] error object if request failed
271
+ #
272
+ # @return [Google::Apis::ServiceusageV1::Operation]
273
+ #
274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
277
+ def enable_service(name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
278
+ command = make_simple_command(:post, 'v1/{+name}:enable', options)
279
+ command.request_representation = Google::Apis::ServiceusageV1::EnableServiceRequest::Representation
280
+ command.request_object = enable_service_request_object
281
+ command.response_representation = Google::Apis::ServiceusageV1::Operation::Representation
282
+ command.response_class = Google::Apis::ServiceusageV1::Operation
283
+ command.params['name'] = name unless name.nil?
284
+ command.query['fields'] = fields unless fields.nil?
285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ execute_or_queue_command(command, &block)
287
+ end
288
+
289
+ # Returns the service definition and EnabledState for a given service.
290
+ # @param [String] name
291
+ # Name of the consumer and service to get the ConsumerState for.
292
+ # An example name would be:
293
+ # projects/123/services/serviceusage.googleapis.com
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # @param [Google::Apis::RequestOptions] options
300
+ # Request-specific options
301
+ #
302
+ # @yield [result, err] Result & error if block supplied
303
+ # @yieldparam result [Google::Apis::ServiceusageV1::ServiceState] parsed result object
304
+ # @yieldparam err [StandardError] error object if request failed
305
+ #
306
+ # @return [Google::Apis::ServiceusageV1::ServiceState]
307
+ #
308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
311
+ def get_service(name, fields: nil, quota_user: nil, options: nil, &block)
312
+ command = make_simple_command(:get, 'v1/{+name}', options)
313
+ command.response_representation = Google::Apis::ServiceusageV1::ServiceState::Representation
314
+ command.response_class = Google::Apis::ServiceusageV1::ServiceState
315
+ command.params['name'] = name unless name.nil?
316
+ command.query['fields'] = fields unless fields.nil?
317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
318
+ execute_or_queue_command(command, &block)
319
+ end
320
+
321
+ # List enabled services.
322
+ # @param [String] parent
323
+ # Parent to search for services on.
324
+ # An example name would be:
325
+ # projects/123
326
+ # @param [Fixnum] page_size
327
+ # Requested size of the next page of data.
328
+ # @param [String] page_token
329
+ # Token identifying which result to start with; returned by a previous list
330
+ # call.
331
+ # @param [String] fields
332
+ # Selector specifying which fields to include in a partial response.
333
+ # @param [String] quota_user
334
+ # Available to use for quota purposes for server-side applications. Can be any
335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
336
+ # @param [Google::Apis::RequestOptions] options
337
+ # Request-specific options
338
+ #
339
+ # @yield [result, err] Result & error if block supplied
340
+ # @yieldparam result [Google::Apis::ServiceusageV1::ListEnabledServicesResponse] parsed result object
341
+ # @yieldparam err [StandardError] error object if request failed
342
+ #
343
+ # @return [Google::Apis::ServiceusageV1::ListEnabledServicesResponse]
344
+ #
345
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
348
+ def list_service_enabled(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
349
+ command = make_simple_command(:get, 'v1/{+parent}/services:enabled', options)
350
+ command.response_representation = Google::Apis::ServiceusageV1::ListEnabledServicesResponse::Representation
351
+ command.response_class = Google::Apis::ServiceusageV1::ListEnabledServicesResponse
352
+ command.params['parent'] = parent unless parent.nil?
353
+ command.query['pageSize'] = page_size unless page_size.nil?
354
+ command.query['pageToken'] = page_token unless page_token.nil?
355
+ command.query['fields'] = fields unless fields.nil?
356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
357
+ execute_or_queue_command(command, &block)
358
+ end
359
+
360
+ # Search available services.
361
+ # When no filter is specified, returns all accessible services. This includes
362
+ # public services and services for which the calling user has the
363
+ # "servicemanagement.services.bind" permission.
364
+ # @param [Fixnum] page_size
365
+ # Requested size of the next page of data.
366
+ # @param [String] page_token
367
+ # Token identifying which result to start with; returned by a previous search
368
+ # call.
369
+ # @param [String] fields
370
+ # Selector specifying which fields to include in a partial response.
371
+ # @param [String] quota_user
372
+ # Available to use for quota purposes for server-side applications. Can be any
373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
374
+ # @param [Google::Apis::RequestOptions] options
375
+ # Request-specific options
376
+ #
377
+ # @yield [result, err] Result & error if block supplied
378
+ # @yieldparam result [Google::Apis::ServiceusageV1::SearchServicesResponse] parsed result object
379
+ # @yieldparam err [StandardError] error object if request failed
380
+ #
381
+ # @return [Google::Apis::ServiceusageV1::SearchServicesResponse]
382
+ #
383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
386
+ def search_services(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
387
+ command = make_simple_command(:get, 'v1/services:search', options)
388
+ command.response_representation = Google::Apis::ServiceusageV1::SearchServicesResponse::Representation
389
+ command.response_class = Google::Apis::ServiceusageV1::SearchServicesResponse
390
+ command.query['pageSize'] = page_size unless page_size.nil?
391
+ command.query['pageToken'] = page_token unless page_token.nil?
392
+ command.query['fields'] = fields unless fields.nil?
393
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
394
+ execute_or_queue_command(command, &block)
395
+ end
396
+
397
+ protected
398
+
399
+ def apply_command_defaults(command)
400
+ command.query['key'] = key unless key.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ end
403
+ end
404
+ end
405
+ end
406
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/slides/
26
26
  module SlidesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180201'
28
+ REVISION = '20180208'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -170,6 +170,11 @@ module Google
170
170
  # @return [Array<Google::Apis::SlidesV1::Response>]
171
171
  attr_accessor :replies
172
172
 
173
+ # Provides control over how write requests are executed.
174
+ # Corresponds to the JSON property `writeControl`
175
+ # @return [Google::Apis::SlidesV1::WriteControl]
176
+ attr_accessor :write_control
177
+
173
178
  def initialize(**args)
174
179
  update!(**args)
175
180
  end
@@ -178,6 +183,7 @@ module Google
178
183
  def update!(**args)
179
184
  @presentation_id = args[:presentation_id] if args.key?(:presentation_id)
180
185
  @replies = args[:replies] if args.key?(:replies)
186
+ @write_control = args[:write_control] if args.key?(:write_control)
181
187
  end
182
188
  end
183
189
 
@@ -1189,6 +1195,12 @@ module Google
1189
1195
  # @return [Google::Apis::SlidesV1::ImageProperties]
1190
1196
  attr_accessor :image_properties
1191
1197
 
1198
+ # The source URL is the URL used to insert the image. The source URL can be
1199
+ # empty.
1200
+ # Corresponds to the JSON property `sourceUrl`
1201
+ # @return [String]
1202
+ attr_accessor :source_url
1203
+
1192
1204
  def initialize(**args)
1193
1205
  update!(**args)
1194
1206
  end
@@ -1197,6 +1209,7 @@ module Google
1197
1209
  def update!(**args)
1198
1210
  @content_url = args[:content_url] if args.key?(:content_url)
1199
1211
  @image_properties = args[:image_properties] if args.key?(:image_properties)
1212
+ @source_url = args[:source_url] if args.key?(:source_url)
1200
1213
  end
1201
1214
  end
1202
1215