google-api-client 0.26.0 → 0.27.0

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
  5. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  7. data/generated/google/apis/androidenterprise_v1/classes.rb +78 -0
  8. data/generated/google/apis/androidenterprise_v1/representations.rb +34 -0
  9. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  10. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -11
  11. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
  12. data/generated/google/apis/bigtableadmin_v2.rb +58 -0
  13. data/generated/google/apis/bigtableadmin_v2/classes.rb +1661 -0
  14. data/generated/google/apis/bigtableadmin_v2/representations.rb +703 -0
  15. data/generated/google/apis/bigtableadmin_v2/service.rb +1181 -0
  16. data/generated/google/apis/cloudbuild_v1alpha1.rb +34 -0
  17. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1158 -0
  18. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +432 -0
  19. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +223 -0
  20. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  21. data/generated/google/apis/cloudfunctions_v1/service.rb +4 -2
  22. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  23. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +4 -2
  24. data/generated/google/apis/compute_alpha.rb +1 -1
  25. data/generated/google/apis/compute_alpha/classes.rb +3 -3
  26. data/generated/google/apis/compute_beta.rb +1 -1
  27. data/generated/google/apis/compute_beta/classes.rb +2 -2
  28. data/generated/google/apis/compute_v1.rb +1 -1
  29. data/generated/google/apis/compute_v1/classes.rb +2 -2
  30. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  31. data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
  32. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  33. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  34. data/generated/google/apis/dataproc_v1beta2/classes.rb +1 -1
  35. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  36. data/generated/google/apis/deploymentmanager_alpha/classes.rb +44 -36
  37. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1 -0
  38. data/generated/google/apis/deploymentmanager_alpha/service.rb +3 -3
  39. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  40. data/generated/google/apis/deploymentmanager_v2/classes.rb +36 -26
  41. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  42. data/generated/google/apis/deploymentmanager_v2/service.rb +3 -3
  43. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +44 -36
  45. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
  46. data/generated/google/apis/deploymentmanager_v2beta/service.rb +3 -3
  47. data/generated/google/apis/dialogflow_v2.rb +1 -1
  48. data/generated/google/apis/dialogflow_v2/classes.rb +3 -3
  49. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2beta1/classes.rb +3 -3
  51. data/generated/google/apis/dlp_v2.rb +1 -1
  52. data/generated/google/apis/dlp_v2/classes.rb +7 -2
  53. data/generated/google/apis/gmail_v1.rb +1 -1
  54. data/generated/google/apis/gmail_v1/classes.rb +1 -1
  55. data/generated/google/apis/jobs_v3.rb +1 -1
  56. data/generated/google/apis/jobs_v3/classes.rb +14 -0
  57. data/generated/google/apis/jobs_v3/representations.rb +1 -0
  58. data/generated/google/apis/ml_v1.rb +1 -1
  59. data/generated/google/apis/ml_v1/classes.rb +17 -10
  60. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  61. data/generated/google/apis/pagespeedonline_v5/classes.rb +45 -1
  62. data/generated/google/apis/pagespeedonline_v5/representations.rb +23 -1
  63. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  64. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +3 -1
  65. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  66. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -3
  67. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  68. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
  69. data/generated/google/apis/testing_v1.rb +1 -1
  70. data/generated/google/apis/testing_v1/classes.rb +140 -215
  71. data/generated/google/apis/testing_v1/service.rb +5 -7
  72. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  73. data/generated/google/apis/texttospeech_v1beta1/classes.rb +4 -0
  74. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  75. data/lib/google/apis/version.rb +1 -1
  76. metadata +10 -6
  77. data/generated/google/apis/replicapoolupdater_v1beta1.rb +0 -45
  78. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +0 -733
  79. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +0 -294
  80. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +0 -488
@@ -1,294 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module ReplicapoolupdaterV1beta1
24
-
25
- class InstanceUpdate
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- class Error
29
- class Representation < Google::Apis::Core::JsonRepresentation; end
30
-
31
- class Error
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- include Google::Apis::Core::JsonObjectSupport
38
- end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class InstanceUpdateList
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class Operation
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- class Error
53
- class Representation < Google::Apis::Core::JsonRepresentation; end
54
-
55
- class Error
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- include Google::Apis::Core::JsonObjectSupport
62
- end
63
-
64
- class Warning
65
- class Representation < Google::Apis::Core::JsonRepresentation; end
66
-
67
- class Datum
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- include Google::Apis::Core::JsonObjectSupport
74
- end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class OperationList
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class RollingUpdate
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- class Error
89
- class Representation < Google::Apis::Core::JsonRepresentation; end
90
-
91
- class Error
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- include Google::Apis::Core::JsonObjectSupport
98
- end
99
-
100
- class Policy
101
- class Representation < Google::Apis::Core::JsonRepresentation; end
102
-
103
- include Google::Apis::Core::JsonObjectSupport
104
- end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class RollingUpdateList
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
- class InstanceUpdate
116
- # @private
117
- class Representation < Google::Apis::Core::JsonRepresentation
118
- property :error, as: 'error', class: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error::Representation
119
-
120
- property :instance, as: 'instance'
121
- property :status, as: 'status'
122
- end
123
-
124
- class Error
125
- # @private
126
- class Representation < Google::Apis::Core::JsonRepresentation
127
- collection :errors, as: 'errors', class: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error::Error::Representation
128
-
129
- end
130
-
131
- class Error
132
- # @private
133
- class Representation < Google::Apis::Core::JsonRepresentation
134
- property :code, as: 'code'
135
- property :location, as: 'location'
136
- property :message, as: 'message'
137
- end
138
- end
139
- end
140
- end
141
-
142
- class InstanceUpdateList
143
- # @private
144
- class Representation < Google::Apis::Core::JsonRepresentation
145
- collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate, decorator: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Representation
146
-
147
- property :kind, as: 'kind'
148
- property :next_page_token, as: 'nextPageToken'
149
- property :self_link, as: 'selfLink'
150
- end
151
- end
152
-
153
- class Operation
154
- # @private
155
- class Representation < Google::Apis::Core::JsonRepresentation
156
- property :client_operation_id, as: 'clientOperationId'
157
- property :creation_timestamp, as: 'creationTimestamp'
158
- property :end_time, as: 'endTime'
159
- property :error, as: 'error', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error::Representation
160
-
161
- property :http_error_message, as: 'httpErrorMessage'
162
- property :http_error_status_code, as: 'httpErrorStatusCode'
163
- property :id, :numeric_string => true, as: 'id'
164
- property :insert_time, as: 'insertTime'
165
- property :kind, as: 'kind'
166
- property :name, as: 'name'
167
- property :operation_type, as: 'operationType'
168
- property :progress, as: 'progress'
169
- property :region, as: 'region'
170
- property :self_link, as: 'selfLink'
171
- property :start_time, as: 'startTime'
172
- property :status, as: 'status'
173
- property :status_message, as: 'statusMessage'
174
- property :target_id, :numeric_string => true, as: 'targetId'
175
- property :target_link, as: 'targetLink'
176
- property :user, as: 'user'
177
- collection :warnings, as: 'warnings', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning::Representation
178
-
179
- property :zone, as: 'zone'
180
- end
181
-
182
- class Error
183
- # @private
184
- class Representation < Google::Apis::Core::JsonRepresentation
185
- collection :errors, as: 'errors', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error::Error::Representation
186
-
187
- end
188
-
189
- class Error
190
- # @private
191
- class Representation < Google::Apis::Core::JsonRepresentation
192
- property :code, as: 'code'
193
- property :location, as: 'location'
194
- property :message, as: 'message'
195
- end
196
- end
197
- end
198
-
199
- class Warning
200
- # @private
201
- class Representation < Google::Apis::Core::JsonRepresentation
202
- property :code, as: 'code'
203
- collection :data, as: 'data', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning::Datum, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning::Datum::Representation
204
-
205
- property :message, as: 'message'
206
- end
207
-
208
- class Datum
209
- # @private
210
- class Representation < Google::Apis::Core::JsonRepresentation
211
- property :key, as: 'key'
212
- property :value, as: 'value'
213
- end
214
- end
215
- end
216
- end
217
-
218
- class OperationList
219
- # @private
220
- class Representation < Google::Apis::Core::JsonRepresentation
221
- property :id, as: 'id'
222
- collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
223
-
224
- property :kind, as: 'kind'
225
- property :next_page_token, as: 'nextPageToken'
226
- property :self_link, as: 'selfLink'
227
- end
228
- end
229
-
230
- class RollingUpdate
231
- # @private
232
- class Representation < Google::Apis::Core::JsonRepresentation
233
- property :action_type, as: 'actionType'
234
- property :creation_timestamp, as: 'creationTimestamp'
235
- property :description, as: 'description'
236
- property :error, as: 'error', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error::Representation
237
-
238
- property :id, as: 'id'
239
- property :instance_group, as: 'instanceGroup'
240
- property :instance_group_manager, as: 'instanceGroupManager'
241
- property :instance_template, as: 'instanceTemplate'
242
- property :kind, as: 'kind'
243
- property :old_instance_template, as: 'oldInstanceTemplate'
244
- property :policy, as: 'policy', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy::Representation
245
-
246
- property :progress, as: 'progress'
247
- property :self_link, as: 'selfLink'
248
- property :status, as: 'status'
249
- property :status_message, as: 'statusMessage'
250
- property :user, as: 'user'
251
- end
252
-
253
- class Error
254
- # @private
255
- class Representation < Google::Apis::Core::JsonRepresentation
256
- collection :errors, as: 'errors', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error::Error::Representation
257
-
258
- end
259
-
260
- class Error
261
- # @private
262
- class Representation < Google::Apis::Core::JsonRepresentation
263
- property :code, as: 'code'
264
- property :location, as: 'location'
265
- property :message, as: 'message'
266
- end
267
- end
268
- end
269
-
270
- class Policy
271
- # @private
272
- class Representation < Google::Apis::Core::JsonRepresentation
273
- property :auto_pause_after_instances, as: 'autoPauseAfterInstances'
274
- property :instance_startup_timeout_sec, as: 'instanceStartupTimeoutSec'
275
- property :max_num_concurrent_instances, as: 'maxNumConcurrentInstances'
276
- property :max_num_failed_instances, as: 'maxNumFailedInstances'
277
- property :min_instance_update_time_sec, as: 'minInstanceUpdateTimeSec'
278
- end
279
- end
280
- end
281
-
282
- class RollingUpdateList
283
- # @private
284
- class Representation < Google::Apis::Core::JsonRepresentation
285
- collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
286
-
287
- property :kind, as: 'kind'
288
- property :next_page_token, as: 'nextPageToken'
289
- property :self_link, as: 'selfLink'
290
- end
291
- end
292
- end
293
- end
294
- end
@@ -1,488 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module ReplicapoolupdaterV1beta1
23
- # Google Compute Engine Instance Group Updater API
24
- #
25
- # [Deprecated. Please use compute.instanceGroupManagers.update method.
26
- # replicapoolupdater API will be disabled after December 30th, 2016] Updates
27
- # groups of Compute Engine instances.
28
- #
29
- # @example
30
- # require 'google/apis/replicapoolupdater_v1beta1'
31
- #
32
- # Replicapoolupdater = Google::Apis::ReplicapoolupdaterV1beta1 # Alias the module
33
- # service = Replicapoolupdater::ReplicapoolupdaterService.new
34
- #
35
- # @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
36
- class ReplicapoolupdaterService < 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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
44
- # characters.
45
- attr_accessor :quota_user
46
-
47
- # @return [String]
48
- # Deprecated. Please use quotaUser instead.
49
- attr_accessor :user_ip
50
-
51
- def initialize
52
- super('https://www.googleapis.com/', 'replicapoolupdater/v1beta1/projects/')
53
- @batch_path = 'batch/replicapoolupdater/v1beta1'
54
- end
55
-
56
- # Cancels an update. The update must be PAUSED before it can be cancelled. This
57
- # has no effect if the update is already CANCELLED.
58
- # @param [String] project
59
- # The Google Developers Console project name.
60
- # @param [String] zone
61
- # The name of the zone in which the update's target resides.
62
- # @param [String] rolling_update
63
- # The name of the update.
64
- # @param [String] fields
65
- # Selector specifying which fields to include in a partial response.
66
- # @param [String] quota_user
67
- # An opaque string that represents a user for quota purposes. Must not exceed 40
68
- # characters.
69
- # @param [String] user_ip
70
- # Deprecated. Please use quotaUser instead.
71
- # @param [Google::Apis::RequestOptions] options
72
- # Request-specific options
73
- #
74
- # @yield [result, err] Result & error if block supplied
75
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
76
- # @yieldparam err [StandardError] error object if request failed
77
- #
78
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
79
- #
80
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
- # @raise [Google::Apis::AuthorizationError] Authorization is required
83
- def cancel_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
- command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel', options)
85
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
86
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
87
- command.params['project'] = project unless project.nil?
88
- command.params['zone'] = zone unless zone.nil?
89
- command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
90
- command.query['fields'] = fields unless fields.nil?
91
- command.query['quotaUser'] = quota_user unless quota_user.nil?
92
- command.query['userIp'] = user_ip unless user_ip.nil?
93
- execute_or_queue_command(command, &block)
94
- end
95
-
96
- # Returns information about an update.
97
- # @param [String] project
98
- # The Google Developers Console project name.
99
- # @param [String] zone
100
- # The name of the zone in which the update's target resides.
101
- # @param [String] rolling_update
102
- # The name of the update.
103
- # @param [String] fields
104
- # Selector specifying which fields to include in a partial response.
105
- # @param [String] quota_user
106
- # An opaque string that represents a user for quota purposes. Must not exceed 40
107
- # characters.
108
- # @param [String] user_ip
109
- # Deprecated. Please use quotaUser instead.
110
- # @param [Google::Apis::RequestOptions] options
111
- # Request-specific options
112
- #
113
- # @yield [result, err] Result & error if block supplied
114
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate] parsed result object
115
- # @yieldparam err [StandardError] error object if request failed
116
- #
117
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate]
118
- #
119
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
120
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
121
- # @raise [Google::Apis::AuthorizationError] Authorization is required
122
- def get_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
123
- command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}', options)
124
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
125
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate
126
- command.params['project'] = project unless project.nil?
127
- command.params['zone'] = zone unless zone.nil?
128
- command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
129
- command.query['fields'] = fields unless fields.nil?
130
- command.query['quotaUser'] = quota_user unless quota_user.nil?
131
- command.query['userIp'] = user_ip unless user_ip.nil?
132
- execute_or_queue_command(command, &block)
133
- end
134
-
135
- # Inserts and starts a new update.
136
- # @param [String] project
137
- # The Google Developers Console project name.
138
- # @param [String] zone
139
- # The name of the zone in which the update's target resides.
140
- # @param [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate] rolling_update_object
141
- # @param [String] fields
142
- # Selector specifying which fields to include in a partial response.
143
- # @param [String] quota_user
144
- # An opaque string that represents a user for quota purposes. Must not exceed 40
145
- # characters.
146
- # @param [String] user_ip
147
- # Deprecated. Please use quotaUser instead.
148
- # @param [Google::Apis::RequestOptions] options
149
- # Request-specific options
150
- #
151
- # @yield [result, err] Result & error if block supplied
152
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
153
- # @yieldparam err [StandardError] error object if request failed
154
- #
155
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
156
- #
157
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159
- # @raise [Google::Apis::AuthorizationError] Authorization is required
160
- def insert_rolling_update(project, zone, rolling_update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
161
- command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates', options)
162
- command.request_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
163
- command.request_object = rolling_update_object
164
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
165
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
166
- command.params['project'] = project unless project.nil?
167
- command.params['zone'] = zone unless zone.nil?
168
- command.query['fields'] = fields unless fields.nil?
169
- command.query['quotaUser'] = quota_user unless quota_user.nil?
170
- command.query['userIp'] = user_ip unless user_ip.nil?
171
- execute_or_queue_command(command, &block)
172
- end
173
-
174
- # Lists recent updates for a given managed instance group, in reverse
175
- # chronological order and paginated format.
176
- # @param [String] project
177
- # The Google Developers Console project name.
178
- # @param [String] zone
179
- # The name of the zone in which the update's target resides.
180
- # @param [String] filter
181
- # Optional. Filter expression for filtering listed resources.
182
- # @param [Fixnum] max_results
183
- # Optional. Maximum count of results to be returned. Maximum value is 500 and
184
- # default value is 500.
185
- # @param [String] page_token
186
- # Optional. Tag returned by a previous list request truncated by maxResults.
187
- # Used to continue a previous list request.
188
- # @param [String] fields
189
- # Selector specifying which fields to include in a partial response.
190
- # @param [String] quota_user
191
- # An opaque string that represents a user for quota purposes. Must not exceed 40
192
- # characters.
193
- # @param [String] user_ip
194
- # Deprecated. Please use quotaUser instead.
195
- # @param [Google::Apis::RequestOptions] options
196
- # Request-specific options
197
- #
198
- # @yield [result, err] Result & error if block supplied
199
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList] parsed result object
200
- # @yieldparam err [StandardError] error object if request failed
201
- #
202
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList]
203
- #
204
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
205
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
206
- # @raise [Google::Apis::AuthorizationError] Authorization is required
207
- def list_rolling_updates(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
208
- command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates', options)
209
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList::Representation
210
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList
211
- command.params['project'] = project unless project.nil?
212
- command.params['zone'] = zone unless zone.nil?
213
- command.query['filter'] = filter unless filter.nil?
214
- command.query['maxResults'] = max_results unless max_results.nil?
215
- command.query['pageToken'] = page_token unless page_token.nil?
216
- command.query['fields'] = fields unless fields.nil?
217
- command.query['quotaUser'] = quota_user unless quota_user.nil?
218
- command.query['userIp'] = user_ip unless user_ip.nil?
219
- execute_or_queue_command(command, &block)
220
- end
221
-
222
- # Lists the current status for each instance within a given update.
223
- # @param [String] project
224
- # The Google Developers Console project name.
225
- # @param [String] zone
226
- # The name of the zone in which the update's target resides.
227
- # @param [String] rolling_update
228
- # The name of the update.
229
- # @param [String] filter
230
- # Optional. Filter expression for filtering listed resources.
231
- # @param [Fixnum] max_results
232
- # Optional. Maximum count of results to be returned. Maximum value is 500 and
233
- # default value is 500.
234
- # @param [String] page_token
235
- # Optional. Tag returned by a previous list request truncated by maxResults.
236
- # Used to continue a previous list request.
237
- # @param [String] fields
238
- # Selector specifying which fields to include in a partial response.
239
- # @param [String] quota_user
240
- # An opaque string that represents a user for quota purposes. Must not exceed 40
241
- # characters.
242
- # @param [String] user_ip
243
- # Deprecated. Please use quotaUser instead.
244
- # @param [Google::Apis::RequestOptions] options
245
- # Request-specific options
246
- #
247
- # @yield [result, err] Result & error if block supplied
248
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList] parsed result object
249
- # @yieldparam err [StandardError] error object if request failed
250
- #
251
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList]
252
- #
253
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
254
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
255
- # @raise [Google::Apis::AuthorizationError] Authorization is required
256
- def list_instance_updates(project, zone, rolling_update, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
257
- command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', options)
258
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList::Representation
259
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList
260
- command.params['project'] = project unless project.nil?
261
- command.params['zone'] = zone unless zone.nil?
262
- command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
263
- command.query['filter'] = filter unless filter.nil?
264
- command.query['maxResults'] = max_results unless max_results.nil?
265
- command.query['pageToken'] = page_token unless page_token.nil?
266
- command.query['fields'] = fields unless fields.nil?
267
- command.query['quotaUser'] = quota_user unless quota_user.nil?
268
- command.query['userIp'] = user_ip unless user_ip.nil?
269
- execute_or_queue_command(command, &block)
270
- end
271
-
272
- # Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no effect
273
- # if invoked when the state of the update is PAUSED.
274
- # @param [String] project
275
- # The Google Developers Console project name.
276
- # @param [String] zone
277
- # The name of the zone in which the update's target resides.
278
- # @param [String] rolling_update
279
- # The name of the update.
280
- # @param [String] fields
281
- # Selector specifying which fields to include in a partial response.
282
- # @param [String] quota_user
283
- # An opaque string that represents a user for quota purposes. Must not exceed 40
284
- # characters.
285
- # @param [String] user_ip
286
- # Deprecated. Please use quotaUser instead.
287
- # @param [Google::Apis::RequestOptions] options
288
- # Request-specific options
289
- #
290
- # @yield [result, err] Result & error if block supplied
291
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
292
- # @yieldparam err [StandardError] error object if request failed
293
- #
294
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
295
- #
296
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
- # @raise [Google::Apis::AuthorizationError] Authorization is required
299
- def pause_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
300
- command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause', options)
301
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
302
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
303
- command.params['project'] = project unless project.nil?
304
- command.params['zone'] = zone unless zone.nil?
305
- command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
306
- command.query['fields'] = fields unless fields.nil?
307
- command.query['quotaUser'] = quota_user unless quota_user.nil?
308
- command.query['userIp'] = user_ip unless user_ip.nil?
309
- execute_or_queue_command(command, &block)
310
- end
311
-
312
- # Continues an update in PAUSED state. Has no effect if invoked when the state
313
- # of the update is ROLLED_OUT.
314
- # @param [String] project
315
- # The Google Developers Console project name.
316
- # @param [String] zone
317
- # The name of the zone in which the update's target resides.
318
- # @param [String] rolling_update
319
- # The name of the update.
320
- # @param [String] fields
321
- # Selector specifying which fields to include in a partial response.
322
- # @param [String] quota_user
323
- # An opaque string that represents a user for quota purposes. Must not exceed 40
324
- # characters.
325
- # @param [String] user_ip
326
- # Deprecated. Please use quotaUser instead.
327
- # @param [Google::Apis::RequestOptions] options
328
- # Request-specific options
329
- #
330
- # @yield [result, err] Result & error if block supplied
331
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
332
- # @yieldparam err [StandardError] error object if request failed
333
- #
334
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
335
- #
336
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
337
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
338
- # @raise [Google::Apis::AuthorizationError] Authorization is required
339
- def resume_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
340
- command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume', options)
341
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
342
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
343
- command.params['project'] = project unless project.nil?
344
- command.params['zone'] = zone unless zone.nil?
345
- command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
346
- command.query['fields'] = fields unless fields.nil?
347
- command.query['quotaUser'] = quota_user unless quota_user.nil?
348
- command.query['userIp'] = user_ip unless user_ip.nil?
349
- execute_or_queue_command(command, &block)
350
- end
351
-
352
- # Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect
353
- # if invoked when the state of the update is ROLLED_BACK.
354
- # @param [String] project
355
- # The Google Developers Console project name.
356
- # @param [String] zone
357
- # The name of the zone in which the update's target resides.
358
- # @param [String] rolling_update
359
- # The name of the update.
360
- # @param [String] fields
361
- # Selector specifying which fields to include in a partial response.
362
- # @param [String] quota_user
363
- # An opaque string that represents a user for quota purposes. Must not exceed 40
364
- # characters.
365
- # @param [String] user_ip
366
- # Deprecated. Please use quotaUser instead.
367
- # @param [Google::Apis::RequestOptions] options
368
- # Request-specific options
369
- #
370
- # @yield [result, err] Result & error if block supplied
371
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
372
- # @yieldparam err [StandardError] error object if request failed
373
- #
374
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
375
- #
376
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
- # @raise [Google::Apis::AuthorizationError] Authorization is required
379
- def rollback_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
380
- command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback', options)
381
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
382
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
383
- command.params['project'] = project unless project.nil?
384
- command.params['zone'] = zone unless zone.nil?
385
- command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
386
- command.query['fields'] = fields unless fields.nil?
387
- command.query['quotaUser'] = quota_user unless quota_user.nil?
388
- command.query['userIp'] = user_ip unless user_ip.nil?
389
- execute_or_queue_command(command, &block)
390
- end
391
-
392
- # Retrieves the specified zone-specific operation resource.
393
- # @param [String] project
394
- # Name of the project scoping this request.
395
- # @param [String] zone
396
- # Name of the zone scoping this request.
397
- # @param [String] operation
398
- # Name of the operation resource to return.
399
- # @param [String] fields
400
- # Selector specifying which fields to include in a partial response.
401
- # @param [String] quota_user
402
- # An opaque string that represents a user for quota purposes. Must not exceed 40
403
- # characters.
404
- # @param [String] user_ip
405
- # Deprecated. Please use quotaUser instead.
406
- # @param [Google::Apis::RequestOptions] options
407
- # Request-specific options
408
- #
409
- # @yield [result, err] Result & error if block supplied
410
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
411
- # @yieldparam err [StandardError] error object if request failed
412
- #
413
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
414
- #
415
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
- # @raise [Google::Apis::AuthorizationError] Authorization is required
418
- def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
419
- command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
420
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
421
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
422
- command.params['project'] = project unless project.nil?
423
- command.params['zone'] = zone unless zone.nil?
424
- command.params['operation'] = operation unless operation.nil?
425
- command.query['fields'] = fields unless fields.nil?
426
- command.query['quotaUser'] = quota_user unless quota_user.nil?
427
- command.query['userIp'] = user_ip unless user_ip.nil?
428
- execute_or_queue_command(command, &block)
429
- end
430
-
431
- # Retrieves the list of Operation resources contained within the specified zone.
432
- # @param [String] project
433
- # Name of the project scoping this request.
434
- # @param [String] zone
435
- # Name of the zone scoping this request.
436
- # @param [String] filter
437
- # Optional. Filter expression for filtering listed resources.
438
- # @param [Fixnum] max_results
439
- # Optional. Maximum count of results to be returned. Maximum value is 500 and
440
- # default value is 500.
441
- # @param [String] page_token
442
- # Optional. Tag returned by a previous list request truncated by maxResults.
443
- # Used to continue a previous list request.
444
- # @param [String] fields
445
- # Selector specifying which fields to include in a partial response.
446
- # @param [String] quota_user
447
- # An opaque string that represents a user for quota purposes. Must not exceed 40
448
- # characters.
449
- # @param [String] user_ip
450
- # Deprecated. Please use quotaUser instead.
451
- # @param [Google::Apis::RequestOptions] options
452
- # Request-specific options
453
- #
454
- # @yield [result, err] Result & error if block supplied
455
- # @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::OperationList] parsed result object
456
- # @yieldparam err [StandardError] error object if request failed
457
- #
458
- # @return [Google::Apis::ReplicapoolupdaterV1beta1::OperationList]
459
- #
460
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
- # @raise [Google::Apis::AuthorizationError] Authorization is required
463
- def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
464
- command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
465
- command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::OperationList::Representation
466
- command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::OperationList
467
- command.params['project'] = project unless project.nil?
468
- command.params['zone'] = zone unless zone.nil?
469
- command.query['filter'] = filter unless filter.nil?
470
- command.query['maxResults'] = max_results unless max_results.nil?
471
- command.query['pageToken'] = page_token unless page_token.nil?
472
- command.query['fields'] = fields unless fields.nil?
473
- command.query['quotaUser'] = quota_user unless quota_user.nil?
474
- command.query['userIp'] = user_ip unless user_ip.nil?
475
- execute_or_queue_command(command, &block)
476
- end
477
-
478
- protected
479
-
480
- def apply_command_defaults(command)
481
- command.query['key'] = key unless key.nil?
482
- command.query['quotaUser'] = quota_user unless quota_user.nil?
483
- command.query['userIp'] = user_ip unless user_ip.nil?
484
- end
485
- end
486
- end
487
- end
488
- end