google-api-client 0.9.pre1 → 0.9.pre2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +4 -3
  4. data/api_names.yaml +42 -0
  5. data/api_names_out.yaml +977 -651
  6. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  7. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -24
  11. data/generated/google/apis/androidenterprise_v1/service.rb +11 -6
  12. data/generated/google/apis/androidenterprise_v1.rb +2 -1
  13. data/generated/google/apis/appstate_v1.rb +1 -1
  14. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +34 -0
  16. data/generated/google/apis/bigquery_v2/representations.rb +14 -0
  17. data/generated/google/apis/bigquery_v2/service.rb +2 -2
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/calendar_v3/classes.rb +8 -0
  20. data/generated/google/apis/calendar_v3/representations.rb +1 -0
  21. data/generated/google/apis/calendar_v3.rb +1 -1
  22. data/generated/google/apis/civicinfo_v2/classes.rb +61 -0
  23. data/generated/google/apis/civicinfo_v2/representations.rb +8 -0
  24. data/generated/google/apis/civicinfo_v2.rb +1 -1
  25. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  26. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  27. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  28. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  29. data/generated/google/apis/cloudmonitoring_v2beta2.rb +4 -1
  30. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +20 -19
  31. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +34 -34
  32. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -5
  33. data/generated/google/apis/compute_v1/classes.rb +2638 -1136
  34. data/generated/google/apis/compute_v1/representations.rb +580 -0
  35. data/generated/google/apis/compute_v1/service.rb +2448 -305
  36. data/generated/google/apis/compute_v1.rb +1 -1
  37. data/generated/google/apis/container_v1/classes.rb +438 -0
  38. data/generated/google/apis/container_v1/representations.rb +163 -0
  39. data/generated/google/apis/container_v1/service.rb +346 -0
  40. data/generated/google/apis/container_v1.rb +35 -0
  41. data/generated/google/apis/container_v1beta1.rb +1 -1
  42. data/generated/google/apis/content_v2/service.rb +48 -12
  43. data/generated/google/apis/content_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +13 -9
  45. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +110 -15
  46. data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
  47. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  48. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  49. data/generated/google/apis/dns_v1/service.rb +4 -1
  50. data/generated/google/apis/dns_v1.rb +1 -1
  51. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2.rb +1 -1
  53. data/generated/google/apis/fitness_v1/classes.rb +65 -2
  54. data/generated/google/apis/fitness_v1/representations.rb +27 -0
  55. data/generated/google/apis/fitness_v1.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_v1.rb +1 -1
  58. data/generated/google/apis/genomics_v1/classes.rb +2287 -0
  59. data/generated/google/apis/genomics_v1/representations.rb +796 -0
  60. data/generated/google/apis/genomics_v1/service.rb +1520 -0
  61. data/generated/google/apis/genomics_v1.rb +47 -0
  62. data/generated/google/apis/genomics_v1beta2/service.rb +36 -0
  63. data/generated/google/apis/genomics_v1beta2.rb +1 -1
  64. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  65. data/generated/google/apis/mapsengine_v1.rb +1 -1
  66. data/generated/google/apis/oauth2_v2.rb +1 -1
  67. data/generated/google/apis/plus_domains_v1.rb +1 -1
  68. data/generated/google/apis/plus_v1.rb +1 -1
  69. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  70. data/generated/google/apis/pubsub_v1beta2/classes.rb +42 -42
  71. data/generated/google/apis/pubsub_v1beta2/service.rb +26 -22
  72. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  73. data/generated/google/apis/replicapool_v1beta2/classes.rb +10 -0
  74. data/generated/google/apis/replicapool_v1beta2/representations.rb +1 -0
  75. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  76. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +4 -2
  78. data/generated/google/apis/storage_v1.rb +1 -1
  79. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  80. data/generated/google/apis/youtube_v3/classes.rb +3 -3
  81. data/generated/google/apis/youtube_v3/representations.rb +1 -1
  82. data/generated/google/apis/youtube_v3/service.rb +78 -0
  83. data/generated/google/apis/youtube_v3.rb +1 -1
  84. data/google-api-client.gemspec +0 -1
  85. data/lib/google/api_client/auth/installed_app.rb +6 -4
  86. data/lib/google/api_client/auth/key_utils.rb +93 -0
  87. data/lib/google/apis/core/api_command.rb +12 -5
  88. data/lib/google/apis/core/http_command.rb +17 -7
  89. data/lib/google/apis/core/json_representation.rb +6 -2
  90. data/lib/google/apis/errors.rb +9 -2
  91. data/lib/google/apis/version.rb +1 -1
  92. data/script/generate +4 -3
  93. data/spec/google/apis/core/http_command_spec.rb +20 -0
  94. data/spec/google/apis/core/json_representation_spec.rb +1 -1
  95. metadata +15 -16
@@ -0,0 +1,346 @@
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 ContainerV1
23
+ # Google Container Engine API
24
+ #
25
+ # The Google Container Engine API is used for building and managing container
26
+ # based applications, powered by the open source Kubernetes technology.
27
+ #
28
+ # @example
29
+ # require 'google/apis/container_v1'
30
+ #
31
+ # Container = Google::Apis::ContainerV1 # Alias the module
32
+ # service = Container::ContainerService.new
33
+ #
34
+ # @see https://cloud.google.com/container-engine/
35
+ class ContainerService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://container.googleapis.com/', '')
48
+ end
49
+
50
+ # Lists all clusters owned by a project in either the specified zone or all
51
+ # zones.
52
+ # @param [String] project_id
53
+ # The Google Developers Console [project ID](https://console.developers.google.
54
+ # com/project) or [project number](https://developers.google.com/console/help/
55
+ # project-number)
56
+ # @param [String] zone
57
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
58
+ # which the cluster resides, or "-" for all zones.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::ContainerV1::ListClustersResponse]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
77
+ path = 'v1/projects/{projectId}/zones/{zone}/clusters'
78
+ command = make_simple_command(:get, path, options)
79
+ command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
80
+ command.response_class = Google::Apis::ContainerV1::ListClustersResponse
81
+ command.params['projectId'] = project_id unless project_id.nil?
82
+ command.params['zone'] = zone unless zone.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
88
+ # Gets a specific cluster.
89
+ # @param [String] project_id
90
+ # The Google Developers Console A [project ID](https://console.developers.google.
91
+ # com/project) or [project number](https://developers.google.com/console/help/
92
+ # project-number)
93
+ # @param [String] zone
94
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
95
+ # which the cluster resides.
96
+ # @param [String] cluster_id
97
+ # The name of the cluster to retrieve.
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::ContainerV1::Cluster] parsed result object
108
+ # @yieldparam err [StandardError] error object if request failed
109
+ #
110
+ # @return [Google::Apis::ContainerV1::Cluster]
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 get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
116
+ path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}'
117
+ command = make_simple_command(:get, path, options)
118
+ command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
119
+ command.response_class = Google::Apis::ContainerV1::Cluster
120
+ command.params['projectId'] = project_id unless project_id.nil?
121
+ command.params['zone'] = zone unless zone.nil?
122
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
123
+ command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ # Creates a cluster, consisting of the specified number and type of Google
129
+ # Compute Engine instances, plus a Kubernetes master endpoint. By default, the
130
+ # cluster is created in the project's [default network]('/compute/docs/
131
+ # networking#networks_1'). One firewall is added for the cluster. After cluster
132
+ # creation, the cluster creates routes for each node to allow the containers on
133
+ # that node to communicate with all other instances in the cluster. Finally, an
134
+ # entry is added to the project's global metadata indicating which CIDR range is
135
+ # being used by the cluster.
136
+ # @param [String] project_id
137
+ # The Google Developers Console [project ID](https://console.developers.google.
138
+ # com/project) or [project number](https://developers.google.com/console/help/
139
+ # project-number)
140
+ # @param [String] zone
141
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
142
+ # which the cluster resides.
143
+ # @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
144
+ # @param [String] fields
145
+ # Selector specifying which fields to include in a partial response.
146
+ # @param [String] quota_user
147
+ # Available to use for quota purposes for server-side applications. Can be any
148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
149
+ # @param [Google::Apis::RequestOptions] options
150
+ # Request-specific options
151
+ #
152
+ # @yield [result, err] Result & error if block supplied
153
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::ContainerV1::Operation]
157
+ #
158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
161
+ def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ path = 'v1/projects/{projectId}/zones/{zone}/clusters'
163
+ command = make_simple_command(:post, path, options)
164
+ command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
165
+ command.request_object = create_cluster_request_object
166
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
167
+ command.response_class = Google::Apis::ContainerV1::Operation
168
+ command.params['projectId'] = project_id unless project_id.nil?
169
+ command.params['zone'] = zone unless zone.nil?
170
+ command.query['fields'] = fields unless fields.nil?
171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
172
+ execute_or_queue_command(command, &block)
173
+ end
174
+
175
+ # Update settings of a specific cluster.
176
+ # @param [String] project_id
177
+ # The Google Developers Console [project ID](https://console.developers.google.
178
+ # com/project) or [project number](https://developers.google.com/console/help/
179
+ # project-number)
180
+ # @param [String] zone
181
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
182
+ # which the cluster resides.
183
+ # @param [String] cluster_id
184
+ # The name of the cluster to upgrade.
185
+ # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
186
+ # @param [String] fields
187
+ # Selector specifying which fields to include in a partial response.
188
+ # @param [String] quota_user
189
+ # Available to use for quota purposes for server-side applications. Can be any
190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [Google::Apis::RequestOptions] options
192
+ # Request-specific options
193
+ #
194
+ # @yield [result, err] Result & error if block supplied
195
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
196
+ # @yieldparam err [StandardError] error object if request failed
197
+ #
198
+ # @return [Google::Apis::ContainerV1::Operation]
199
+ #
200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
203
+ def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
204
+ path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}'
205
+ command = make_simple_command(:put, path, options)
206
+ command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
207
+ command.request_object = update_cluster_request_object
208
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
209
+ command.response_class = Google::Apis::ContainerV1::Operation
210
+ command.params['projectId'] = project_id unless project_id.nil?
211
+ command.params['zone'] = zone unless zone.nil?
212
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
213
+ command.query['fields'] = fields unless fields.nil?
214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
215
+ execute_or_queue_command(command, &block)
216
+ end
217
+
218
+ # Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
219
+ # Firewalls and routes that were configured during cluster creation are also
220
+ # deleted.
221
+ # @param [String] project_id
222
+ # The Google Developers Console [project ID](https://console.developers.google.
223
+ # com/project) or [project number](https://developers.google.com/console/help/
224
+ # project-number)
225
+ # @param [String] zone
226
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
227
+ # which the cluster resides.
228
+ # @param [String] cluster_id
229
+ # The name of the cluster to delete.
230
+ # @param [String] fields
231
+ # Selector specifying which fields to include in a partial response.
232
+ # @param [String] quota_user
233
+ # Available to use for quota purposes for server-side applications. Can be any
234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
235
+ # @param [Google::Apis::RequestOptions] options
236
+ # Request-specific options
237
+ #
238
+ # @yield [result, err] Result & error if block supplied
239
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
240
+ # @yieldparam err [StandardError] error object if request failed
241
+ #
242
+ # @return [Google::Apis::ContainerV1::Operation]
243
+ #
244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
247
+ def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
248
+ path = 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}'
249
+ command = make_simple_command(:delete, path, options)
250
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
251
+ command.response_class = Google::Apis::ContainerV1::Operation
252
+ command.params['projectId'] = project_id unless project_id.nil?
253
+ command.params['zone'] = zone unless zone.nil?
254
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
255
+ command.query['fields'] = fields unless fields.nil?
256
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
257
+ execute_or_queue_command(command, &block)
258
+ end
259
+
260
+ # Lists all operations in a project in a specific zone or all zones.
261
+ # @param [String] project_id
262
+ # The Google Developers Console [project ID](https://console.developers.google.
263
+ # com/project) or [project number](https://developers.google.com/console/help/
264
+ # project-number)
265
+ # @param [String] zone
266
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
267
+ # return operations for, or "-" for all zones.
268
+ # @param [String] fields
269
+ # Selector specifying which fields to include in a partial response.
270
+ # @param [String] quota_user
271
+ # Available to use for quota purposes for server-side applications. Can be any
272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
273
+ # @param [Google::Apis::RequestOptions] options
274
+ # Request-specific options
275
+ #
276
+ # @yield [result, err] Result & error if block supplied
277
+ # @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
278
+ # @yieldparam err [StandardError] error object if request failed
279
+ #
280
+ # @return [Google::Apis::ContainerV1::ListOperationsResponse]
281
+ #
282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
285
+ def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
286
+ path = 'v1/projects/{projectId}/zones/{zone}/operations'
287
+ command = make_simple_command(:get, path, options)
288
+ command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
289
+ command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
290
+ command.params['projectId'] = project_id unless project_id.nil?
291
+ command.params['zone'] = zone unless zone.nil?
292
+ command.query['fields'] = fields unless fields.nil?
293
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
294
+ execute_or_queue_command(command, &block)
295
+ end
296
+
297
+ # Gets the specified operation.
298
+ # @param [String] project_id
299
+ # The Google Developers Console [project ID](https://console.developers.google.
300
+ # com/project) or [project number](https://developers.google.com/console/help/
301
+ # project-number)
302
+ # @param [String] zone
303
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
304
+ # which the cluster resides.
305
+ # @param [String] operation_id
306
+ # The server-assigned `name` of the operation.
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
309
+ # @param [String] quota_user
310
+ # Available to use for quota purposes for server-side applications. Can be any
311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
312
+ # @param [Google::Apis::RequestOptions] options
313
+ # Request-specific options
314
+ #
315
+ # @yield [result, err] Result & error if block supplied
316
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
317
+ # @yieldparam err [StandardError] error object if request failed
318
+ #
319
+ # @return [Google::Apis::ContainerV1::Operation]
320
+ #
321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
324
+ def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
325
+ path = 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}'
326
+ command = make_simple_command(:get, path, options)
327
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
328
+ command.response_class = Google::Apis::ContainerV1::Operation
329
+ command.params['projectId'] = project_id unless project_id.nil?
330
+ command.params['zone'] = zone unless zone.nil?
331
+ command.params['operationId'] = operation_id unless operation_id.nil?
332
+ command.query['fields'] = fields unless fields.nil?
333
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
334
+ execute_or_queue_command(command, &block)
335
+ end
336
+
337
+ protected
338
+
339
+ def apply_command_defaults(command)
340
+ command.query['key'] = key unless key.nil?
341
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
342
+ end
343
+ end
344
+ end
345
+ end
346
+ end
@@ -0,0 +1,35 @@
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/container_v1/service.rb'
16
+ require 'google/apis/container_v1/classes.rb'
17
+ require 'google/apis/container_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Container Engine API
22
+ #
23
+ # The Google Container Engine API is used for building and managing container
24
+ # based applications, powered by the open source Kubernetes technology.
25
+ #
26
+ # @see https://cloud.google.com/container-engine/
27
+ module ContainerV1
28
+ VERSION = 'V1'
29
+ REVISION = '20150605'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+ end
34
+ end
35
+ end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/docs/v1beta1/
27
27
  module ContainerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20150617'
29
+ REVISION = '20150713'
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'
@@ -89,6 +89,8 @@ module Google
89
89
  # Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)
90
90
  # accounts in a single request.
91
91
  # @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object
92
+ # @param [Boolean] dry_run
93
+ # Flag to run the request in dry-run mode.
92
94
  # @param [String] fields
93
95
  # Selector specifying which fields to include in a partial response.
94
96
  # @param [String] quota_user
@@ -110,13 +112,14 @@ module Google
110
112
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
113
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
114
  # @raise [Google::Apis::AuthorizationError] Authorization is required
113
- def batch_account(batch_accounts_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
115
+ def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
114
116
  path = 'accounts/batch'
115
117
  command = make_simple_command(:post, path, options)
116
118
  command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation
117
119
  command.request_object = batch_accounts_request_object
118
120
  command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation
119
121
  command.response_class = Google::Apis::ContentV2::BatchAccountsResponse
122
+ command.query['dryRun'] = dry_run unless dry_run.nil?
120
123
  command.query['fields'] = fields unless fields.nil?
121
124
  command.query['quotaUser'] = quota_user unless quota_user.nil?
122
125
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -128,6 +131,8 @@ module Google
128
131
  # The ID of the managing account.
129
132
  # @param [String] account_id
130
133
  # The ID of the account.
134
+ # @param [Boolean] dry_run
135
+ # Flag to run the request in dry-run mode.
131
136
  # @param [String] fields
132
137
  # Selector specifying which fields to include in a partial response.
133
138
  # @param [String] quota_user
@@ -149,11 +154,12 @@ module Google
149
154
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
152
- def delete_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
157
+ def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
153
158
  path = '{merchantId}/accounts/{accountId}'
154
159
  command = make_simple_command(:delete, path, options)
155
160
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
156
161
  command.params['accountId'] = account_id unless account_id.nil?
162
+ command.query['dryRun'] = dry_run unless dry_run.nil?
157
163
  command.query['fields'] = fields unless fields.nil?
158
164
  command.query['quotaUser'] = quota_user unless quota_user.nil?
159
165
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -203,6 +209,8 @@ module Google
203
209
  # @param [String] merchant_id
204
210
  # The ID of the managing account.
205
211
  # @param [Google::Apis::ContentV2::Account] account_object
212
+ # @param [Boolean] dry_run
213
+ # Flag to run the request in dry-run mode.
206
214
  # @param [String] fields
207
215
  # Selector specifying which fields to include in a partial response.
208
216
  # @param [String] quota_user
@@ -224,7 +232,7 @@ module Google
224
232
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
233
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
234
  # @raise [Google::Apis::AuthorizationError] Authorization is required
227
- def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
235
+ def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
228
236
  path = '{merchantId}/accounts'
229
237
  command = make_simple_command(:post, path, options)
230
238
  command.request_representation = Google::Apis::ContentV2::Account::Representation
@@ -232,6 +240,7 @@ module Google
232
240
  command.response_representation = Google::Apis::ContentV2::Account::Representation
233
241
  command.response_class = Google::Apis::ContentV2::Account
234
242
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
243
+ command.query['dryRun'] = dry_run unless dry_run.nil?
235
244
  command.query['fields'] = fields unless fields.nil?
236
245
  command.query['quotaUser'] = quota_user unless quota_user.nil?
237
246
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -286,6 +295,8 @@ module Google
286
295
  # @param [String] account_id
287
296
  # The ID of the account.
288
297
  # @param [Google::Apis::ContentV2::Account] account_object
298
+ # @param [Boolean] dry_run
299
+ # Flag to run the request in dry-run mode.
289
300
  # @param [String] fields
290
301
  # Selector specifying which fields to include in a partial response.
291
302
  # @param [String] quota_user
@@ -307,7 +318,7 @@ module Google
307
318
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
319
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
320
  # @raise [Google::Apis::AuthorizationError] Authorization is required
310
- def patch_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
321
+ def patch_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
311
322
  path = '{merchantId}/accounts/{accountId}'
312
323
  command = make_simple_command(:patch, path, options)
313
324
  command.request_representation = Google::Apis::ContentV2::Account::Representation
@@ -316,6 +327,7 @@ module Google
316
327
  command.response_class = Google::Apis::ContentV2::Account
317
328
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
318
329
  command.params['accountId'] = account_id unless account_id.nil?
330
+ command.query['dryRun'] = dry_run unless dry_run.nil?
319
331
  command.query['fields'] = fields unless fields.nil?
320
332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
321
333
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -328,6 +340,8 @@ module Google
328
340
  # @param [String] account_id
329
341
  # The ID of the account.
330
342
  # @param [Google::Apis::ContentV2::Account] account_object
343
+ # @param [Boolean] dry_run
344
+ # Flag to run the request in dry-run mode.
331
345
  # @param [String] fields
332
346
  # Selector specifying which fields to include in a partial response.
333
347
  # @param [String] quota_user
@@ -349,7 +363,7 @@ module Google
349
363
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
364
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
365
  # @raise [Google::Apis::AuthorizationError] Authorization is required
352
- def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
366
+ def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
353
367
  path = '{merchantId}/accounts/{accountId}'
354
368
  command = make_simple_command(:put, path, options)
355
369
  command.request_representation = Google::Apis::ContentV2::Account::Representation
@@ -358,6 +372,7 @@ module Google
358
372
  command.response_class = Google::Apis::ContentV2::Account
359
373
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
360
374
  command.params['accountId'] = account_id unless account_id.nil?
375
+ command.query['dryRun'] = dry_run unless dry_run.nil?
361
376
  command.query['fields'] = fields unless fields.nil?
362
377
  command.query['quotaUser'] = quota_user unless quota_user.nil?
363
378
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -908,6 +923,8 @@ module Google
908
923
 
909
924
  #
910
925
  # @param [Google::Apis::ContentV2::BatchDatafeedsRequest] batch_datafeeds_request_object
926
+ # @param [Boolean] dry_run
927
+ # Flag to run the request in dry-run mode.
911
928
  # @param [String] fields
912
929
  # Selector specifying which fields to include in a partial response.
913
930
  # @param [String] quota_user
@@ -929,13 +946,14 @@ module Google
929
946
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
930
947
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
931
948
  # @raise [Google::Apis::AuthorizationError] Authorization is required
932
- def batch_datafeed(batch_datafeeds_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
949
+ def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
933
950
  path = 'datafeeds/batch'
934
951
  command = make_simple_command(:post, path, options)
935
952
  command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation
936
953
  command.request_object = batch_datafeeds_request_object
937
954
  command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation
938
955
  command.response_class = Google::Apis::ContentV2::BatchDatafeedsResponse
956
+ command.query['dryRun'] = dry_run unless dry_run.nil?
939
957
  command.query['fields'] = fields unless fields.nil?
940
958
  command.query['quotaUser'] = quota_user unless quota_user.nil?
941
959
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -945,6 +963,8 @@ module Google
945
963
  # Deletes a datafeed from your Merchant Center account.
946
964
  # @param [String] merchant_id
947
965
  # @param [String] datafeed_id
966
+ # @param [Boolean] dry_run
967
+ # Flag to run the request in dry-run mode.
948
968
  # @param [String] fields
949
969
  # Selector specifying which fields to include in a partial response.
950
970
  # @param [String] quota_user
@@ -966,11 +986,12 @@ module Google
966
986
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
967
987
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
968
988
  # @raise [Google::Apis::AuthorizationError] Authorization is required
969
- def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
989
+ def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
970
990
  path = '{merchantId}/datafeeds/{datafeedId}'
971
991
  command = make_simple_command(:delete, path, options)
972
992
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
973
993
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
994
+ command.query['dryRun'] = dry_run unless dry_run.nil?
974
995
  command.query['fields'] = fields unless fields.nil?
975
996
  command.query['quotaUser'] = quota_user unless quota_user.nil?
976
997
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1017,6 +1038,8 @@ module Google
1017
1038
  # Registers a datafeed with your Merchant Center account.
1018
1039
  # @param [String] merchant_id
1019
1040
  # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
1041
+ # @param [Boolean] dry_run
1042
+ # Flag to run the request in dry-run mode.
1020
1043
  # @param [String] fields
1021
1044
  # Selector specifying which fields to include in a partial response.
1022
1045
  # @param [String] quota_user
@@ -1038,7 +1061,7 @@ module Google
1038
1061
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1039
1062
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
1063
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
- def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1064
+ def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1042
1065
  path = '{merchantId}/datafeeds'
1043
1066
  command = make_simple_command(:post, path, options)
1044
1067
  command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
@@ -1046,6 +1069,7 @@ module Google
1046
1069
  command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
1047
1070
  command.response_class = Google::Apis::ContentV2::Datafeed
1048
1071
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1072
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1049
1073
  command.query['fields'] = fields unless fields.nil?
1050
1074
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1051
1075
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1099,6 +1123,8 @@ module Google
1099
1123
  # @param [String] merchant_id
1100
1124
  # @param [String] datafeed_id
1101
1125
  # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
1126
+ # @param [Boolean] dry_run
1127
+ # Flag to run the request in dry-run mode.
1102
1128
  # @param [String] fields
1103
1129
  # Selector specifying which fields to include in a partial response.
1104
1130
  # @param [String] quota_user
@@ -1120,7 +1146,7 @@ module Google
1120
1146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
1147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
1148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
- def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1149
+ def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1124
1150
  path = '{merchantId}/datafeeds/{datafeedId}'
1125
1151
  command = make_simple_command(:patch, path, options)
1126
1152
  command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
@@ -1129,6 +1155,7 @@ module Google
1129
1155
  command.response_class = Google::Apis::ContentV2::Datafeed
1130
1156
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1131
1157
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1158
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1132
1159
  command.query['fields'] = fields unless fields.nil?
1133
1160
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1134
1161
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1139,6 +1166,8 @@ module Google
1139
1166
  # @param [String] merchant_id
1140
1167
  # @param [String] datafeed_id
1141
1168
  # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
1169
+ # @param [Boolean] dry_run
1170
+ # Flag to run the request in dry-run mode.
1142
1171
  # @param [String] fields
1143
1172
  # Selector specifying which fields to include in a partial response.
1144
1173
  # @param [String] quota_user
@@ -1160,7 +1189,7 @@ module Google
1160
1189
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1161
1190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1162
1191
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1163
- def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1192
+ def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1164
1193
  path = '{merchantId}/datafeeds/{datafeedId}'
1165
1194
  command = make_simple_command(:put, path, options)
1166
1195
  command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
@@ -1169,6 +1198,7 @@ module Google
1169
1198
  command.response_class = Google::Apis::ContentV2::Datafeed
1170
1199
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1171
1200
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1201
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1172
1202
  command.query['fields'] = fields unless fields.nil?
1173
1203
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1174
1204
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1293,6 +1323,8 @@ module Google
1293
1323
  # Updates price and availability for multiple products or stores in a single
1294
1324
  # request.
1295
1325
  # @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
1326
+ # @param [Boolean] dry_run
1327
+ # Flag to run the request in dry-run mode.
1296
1328
  # @param [String] fields
1297
1329
  # Selector specifying which fields to include in a partial response.
1298
1330
  # @param [String] quota_user
@@ -1314,13 +1346,14 @@ module Google
1314
1346
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1315
1347
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1316
1348
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1317
- def batch_inventory(batch_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1349
+ def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1318
1350
  path = 'inventory/batch'
1319
1351
  command = make_simple_command(:post, path, options)
1320
1352
  command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation
1321
1353
  command.request_object = batch_inventory_request_object
1322
1354
  command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation
1323
1355
  command.response_class = Google::Apis::ContentV2::BatchInventoryResponse
1356
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1324
1357
  command.query['fields'] = fields unless fields.nil?
1325
1358
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1326
1359
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1336,6 +1369,8 @@ module Google
1336
1369
  # @param [String] product_id
1337
1370
  # The ID of the product for which to update price and availability.
1338
1371
  # @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object
1372
+ # @param [Boolean] dry_run
1373
+ # Flag to run the request in dry-run mode.
1339
1374
  # @param [String] fields
1340
1375
  # Selector specifying which fields to include in a partial response.
1341
1376
  # @param [String] quota_user
@@ -1357,7 +1392,7 @@ module Google
1357
1392
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1358
1393
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1359
1394
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1360
- def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1395
+ def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1361
1396
  path = '{merchantId}/inventory/{storeCode}/products/{productId}'
1362
1397
  command = make_simple_command(:post, path, options)
1363
1398
  command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation
@@ -1367,6 +1402,7 @@ module Google
1367
1402
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1368
1403
  command.params['storeCode'] = store_code unless store_code.nil?
1369
1404
  command.params['productId'] = product_id unless product_id.nil?
1405
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1370
1406
  command.query['fields'] = fields unless fields.nil?
1371
1407
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1372
1408
  command.query['userIp'] = user_ip unless user_ip.nil?