google-apis-redis_v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-redis_v1beta1.rb +15 -0
- data/lib/google/apis/redis_v1beta1.rb +36 -0
- data/lib/google/apis/redis_v1beta1/classes.rb +783 -0
- data/lib/google/apis/redis_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/redis_v1beta1/representations.rb +352 -0
- data/lib/google/apis/redis_v1beta1/service.rb +666 -0
- metadata +77 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module RedisV1beta1
|
18
|
+
# Version of the google-apis-redis_v1beta1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20201210"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,352 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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 RedisV1beta1
|
24
|
+
|
25
|
+
class Empty
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ExportInstanceRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class FailoverInstanceRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GcsDestination
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GcsSource
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GoogleCloudCommonOperationMetadata
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class GoogleCloudRedisV1beta1LocationMetadata
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GoogleCloudRedisV1beta1ZoneMetadata
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ImportInstanceRequest
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class InputConfig
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class Instance
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class InstanceAuthString
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ListInstancesResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ListLocationsResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class ListOperationsResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Location
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class Operation
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class OutputConfig
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class Status
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class TlsCertificate
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class UpgradeInstanceRequest
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class Empty
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
class ExportInstanceRequest
|
158
|
+
# @private
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
property :output_config, as: 'outputConfig', class: Google::Apis::RedisV1beta1::OutputConfig, decorator: Google::Apis::RedisV1beta1::OutputConfig::Representation
|
161
|
+
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class FailoverInstanceRequest
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
property :data_protection_mode, as: 'dataProtectionMode'
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
class GcsDestination
|
173
|
+
# @private
|
174
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
+
property :uri, as: 'uri'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class GcsSource
|
180
|
+
# @private
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
+
property :uri, as: 'uri'
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
class GoogleCloudCommonOperationMetadata
|
187
|
+
# @private
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
189
|
+
property :api_version, as: 'apiVersion'
|
190
|
+
property :cancel_requested, as: 'cancelRequested'
|
191
|
+
property :create_time, as: 'createTime'
|
192
|
+
property :end_time, as: 'endTime'
|
193
|
+
property :status_detail, as: 'statusDetail'
|
194
|
+
property :target, as: 'target'
|
195
|
+
property :verb, as: 'verb'
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
class GoogleCloudRedisV1beta1LocationMetadata
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
hash :available_zones, as: 'availableZones', class: Google::Apis::RedisV1beta1::GoogleCloudRedisV1beta1ZoneMetadata, decorator: Google::Apis::RedisV1beta1::GoogleCloudRedisV1beta1ZoneMetadata::Representation
|
203
|
+
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
class GoogleCloudRedisV1beta1ZoneMetadata
|
208
|
+
# @private
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
class ImportInstanceRequest
|
214
|
+
# @private
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :input_config, as: 'inputConfig', class: Google::Apis::RedisV1beta1::InputConfig, decorator: Google::Apis::RedisV1beta1::InputConfig::Representation
|
217
|
+
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
class InputConfig
|
222
|
+
# @private
|
223
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
224
|
+
property :gcs_source, as: 'gcsSource', class: Google::Apis::RedisV1beta1::GcsSource, decorator: Google::Apis::RedisV1beta1::GcsSource::Representation
|
225
|
+
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
class Instance
|
230
|
+
# @private
|
231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
232
|
+
property :alternative_location_id, as: 'alternativeLocationId'
|
233
|
+
property :auth_enabled, as: 'authEnabled'
|
234
|
+
property :authorized_network, as: 'authorizedNetwork'
|
235
|
+
property :connect_mode, as: 'connectMode'
|
236
|
+
property :create_time, as: 'createTime'
|
237
|
+
property :current_location_id, as: 'currentLocationId'
|
238
|
+
property :display_name, as: 'displayName'
|
239
|
+
property :host, as: 'host'
|
240
|
+
hash :labels, as: 'labels'
|
241
|
+
property :location_id, as: 'locationId'
|
242
|
+
property :memory_size_gb, as: 'memorySizeGb'
|
243
|
+
property :name, as: 'name'
|
244
|
+
property :persistence_iam_identity, as: 'persistenceIamIdentity'
|
245
|
+
property :port, as: 'port'
|
246
|
+
hash :redis_configs, as: 'redisConfigs'
|
247
|
+
property :redis_version, as: 'redisVersion'
|
248
|
+
property :reserved_ip_range, as: 'reservedIpRange'
|
249
|
+
collection :server_ca_certs, as: 'serverCaCerts', class: Google::Apis::RedisV1beta1::TlsCertificate, decorator: Google::Apis::RedisV1beta1::TlsCertificate::Representation
|
250
|
+
|
251
|
+
property :state, as: 'state'
|
252
|
+
property :status_message, as: 'statusMessage'
|
253
|
+
property :tier, as: 'tier'
|
254
|
+
property :transit_encryption_mode, as: 'transitEncryptionMode'
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
class InstanceAuthString
|
259
|
+
# @private
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
+
property :auth_string, as: 'authString'
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
class ListInstancesResponse
|
266
|
+
# @private
|
267
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
268
|
+
collection :instances, as: 'instances', class: Google::Apis::RedisV1beta1::Instance, decorator: Google::Apis::RedisV1beta1::Instance::Representation
|
269
|
+
|
270
|
+
property :next_page_token, as: 'nextPageToken'
|
271
|
+
collection :unreachable, as: 'unreachable'
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
class ListLocationsResponse
|
276
|
+
# @private
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
278
|
+
collection :locations, as: 'locations', class: Google::Apis::RedisV1beta1::Location, decorator: Google::Apis::RedisV1beta1::Location::Representation
|
279
|
+
|
280
|
+
property :next_page_token, as: 'nextPageToken'
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
class ListOperationsResponse
|
285
|
+
# @private
|
286
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
287
|
+
property :next_page_token, as: 'nextPageToken'
|
288
|
+
collection :operations, as: 'operations', class: Google::Apis::RedisV1beta1::Operation, decorator: Google::Apis::RedisV1beta1::Operation::Representation
|
289
|
+
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
class Location
|
294
|
+
# @private
|
295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
296
|
+
property :display_name, as: 'displayName'
|
297
|
+
hash :labels, as: 'labels'
|
298
|
+
property :location_id, as: 'locationId'
|
299
|
+
hash :metadata, as: 'metadata'
|
300
|
+
property :name, as: 'name'
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
class Operation
|
305
|
+
# @private
|
306
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
307
|
+
property :done, as: 'done'
|
308
|
+
property :error, as: 'error', class: Google::Apis::RedisV1beta1::Status, decorator: Google::Apis::RedisV1beta1::Status::Representation
|
309
|
+
|
310
|
+
hash :metadata, as: 'metadata'
|
311
|
+
property :name, as: 'name'
|
312
|
+
hash :response, as: 'response'
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
class OutputConfig
|
317
|
+
# @private
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
+
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::RedisV1beta1::GcsDestination, decorator: Google::Apis::RedisV1beta1::GcsDestination::Representation
|
320
|
+
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
class Status
|
325
|
+
# @private
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
327
|
+
property :code, as: 'code'
|
328
|
+
collection :details, as: 'details'
|
329
|
+
property :message, as: 'message'
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
class TlsCertificate
|
334
|
+
# @private
|
335
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
336
|
+
property :cert, as: 'cert'
|
337
|
+
property :create_time, as: 'createTime'
|
338
|
+
property :expire_time, as: 'expireTime'
|
339
|
+
property :serial_number, as: 'serialNumber'
|
340
|
+
property :sha1_fingerprint, as: 'sha1Fingerprint'
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
class UpgradeInstanceRequest
|
345
|
+
# @private
|
346
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
347
|
+
property :redis_version, as: 'redisVersion'
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|
352
|
+
end
|
@@ -0,0 +1,666 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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 RedisV1beta1
|
23
|
+
# Google Cloud Memorystore for Redis API
|
24
|
+
#
|
25
|
+
# Creates and manages Redis instances on the Google Cloud Platform.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/redis_v1beta1'
|
29
|
+
#
|
30
|
+
# Redis = Google::Apis::RedisV1beta1 # Alias the module
|
31
|
+
# service = Redis::CloudRedisService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/memorystore/docs/redis/
|
34
|
+
class CloudRedisService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://redis.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-redis_v1beta1',
|
48
|
+
client_version: Google::Apis::RedisV1beta1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Gets information about a location.
|
53
|
+
# @param [String] name
|
54
|
+
# Resource name for the location.
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Location] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::RedisV1beta1::Location]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::RedisV1beta1::Location::Representation
|
75
|
+
command.response_class = Google::Apis::RedisV1beta1::Location
|
76
|
+
command.params['name'] = name unless name.nil?
|
77
|
+
command.query['fields'] = fields unless fields.nil?
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
execute_or_queue_command(command, &block)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Lists information about the supported locations for this service.
|
83
|
+
# @param [String] name
|
84
|
+
# The resource that owns the locations collection, if applicable.
|
85
|
+
# @param [String] filter
|
86
|
+
# The standard list filter.
|
87
|
+
# @param [Fixnum] page_size
|
88
|
+
# The standard list page size.
|
89
|
+
# @param [String] page_token
|
90
|
+
# The standard list page token.
|
91
|
+
# @param [String] fields
|
92
|
+
# Selector specifying which fields to include in a partial response.
|
93
|
+
# @param [String] quota_user
|
94
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
95
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
96
|
+
# @param [Google::Apis::RequestOptions] options
|
97
|
+
# Request-specific options
|
98
|
+
#
|
99
|
+
# @yield [result, err] Result & error if block supplied
|
100
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::ListLocationsResponse] parsed result object
|
101
|
+
# @yieldparam err [StandardError] error object if request failed
|
102
|
+
#
|
103
|
+
# @return [Google::Apis::RedisV1beta1::ListLocationsResponse]
|
104
|
+
#
|
105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
108
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
109
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
110
|
+
command.response_representation = Google::Apis::RedisV1beta1::ListLocationsResponse::Representation
|
111
|
+
command.response_class = Google::Apis::RedisV1beta1::ListLocationsResponse
|
112
|
+
command.params['name'] = name unless name.nil?
|
113
|
+
command.query['filter'] = filter unless filter.nil?
|
114
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
115
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
116
|
+
command.query['fields'] = fields unless fields.nil?
|
117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
118
|
+
execute_or_queue_command(command, &block)
|
119
|
+
end
|
120
|
+
|
121
|
+
# Creates a Redis instance based on the specified tier and memory size. By
|
122
|
+
# default, the instance is accessible from the project's [default network](https:
|
123
|
+
# //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and
|
124
|
+
# callers may check the returned operation to track its progress. Once the
|
125
|
+
# operation is completed the Redis instance will be fully functional. Completed
|
126
|
+
# longrunning.Operation will contain the new instance object in the response
|
127
|
+
# field. The returned operation is automatically deleted after a few hours, so
|
128
|
+
# there is no need to call DeleteOperation.
|
129
|
+
# @param [String] parent
|
130
|
+
# Required. The resource name of the instance location using the form: `projects/
|
131
|
+
# `project_id`/locations/`location_id`` where `location_id` refers to a GCP
|
132
|
+
# region.
|
133
|
+
# @param [Google::Apis::RedisV1beta1::Instance] instance_object
|
134
|
+
# @param [String] instance_id
|
135
|
+
# Required. The logical name of the Redis instance in the customer project with
|
136
|
+
# the following restrictions: * Must contain only lowercase letters, numbers,
|
137
|
+
# and hyphens. * Must start with a letter. * Must be between 1-40 characters. *
|
138
|
+
# Must end with a number or a letter. * Must be unique within the customer
|
139
|
+
# project / location
|
140
|
+
# @param [String] fields
|
141
|
+
# Selector specifying which fields to include in a partial response.
|
142
|
+
# @param [String] quota_user
|
143
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
144
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
145
|
+
# @param [Google::Apis::RequestOptions] options
|
146
|
+
# Request-specific options
|
147
|
+
#
|
148
|
+
# @yield [result, err] Result & error if block supplied
|
149
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
150
|
+
# @yieldparam err [StandardError] error object if request failed
|
151
|
+
#
|
152
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
153
|
+
#
|
154
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
155
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
156
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
157
|
+
def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
158
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/instances', options)
|
159
|
+
command.request_representation = Google::Apis::RedisV1beta1::Instance::Representation
|
160
|
+
command.request_object = instance_object
|
161
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
162
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
163
|
+
command.params['parent'] = parent unless parent.nil?
|
164
|
+
command.query['instanceId'] = instance_id unless instance_id.nil?
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
167
|
+
execute_or_queue_command(command, &block)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Deletes a specific Redis instance. Instance stops serving and data is deleted.
|
171
|
+
# @param [String] name
|
172
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
173
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
174
|
+
# a GCP region.
|
175
|
+
# @param [String] fields
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
177
|
+
# @param [String] quota_user
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
194
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
195
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
196
|
+
command.params['name'] = name unless name.nil?
|
197
|
+
command.query['fields'] = fields unless fields.nil?
|
198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
199
|
+
execute_or_queue_command(command, &block)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Export Redis instance data into a Redis RDB format file in Cloud Storage.
|
203
|
+
# Redis will continue serving during this operation. The returned operation is
|
204
|
+
# automatically deleted after a few hours, so there is no need to call
|
205
|
+
# DeleteOperation.
|
206
|
+
# @param [String] name
|
207
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
208
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
209
|
+
# a GCP region.
|
210
|
+
# @param [Google::Apis::RedisV1beta1::ExportInstanceRequest] export_instance_request_object
|
211
|
+
# @param [String] fields
|
212
|
+
# Selector specifying which fields to include in a partial response.
|
213
|
+
# @param [String] quota_user
|
214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
216
|
+
# @param [Google::Apis::RequestOptions] options
|
217
|
+
# Request-specific options
|
218
|
+
#
|
219
|
+
# @yield [result, err] Result & error if block supplied
|
220
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
221
|
+
# @yieldparam err [StandardError] error object if request failed
|
222
|
+
#
|
223
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
224
|
+
#
|
225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
228
|
+
def export_instance(name, export_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
229
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
|
230
|
+
command.request_representation = Google::Apis::RedisV1beta1::ExportInstanceRequest::Representation
|
231
|
+
command.request_object = export_instance_request_object
|
232
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
233
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
234
|
+
command.params['name'] = name unless name.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Initiates a failover of the primary node to current replica node for a
|
241
|
+
# specific STANDARD tier Cloud Memorystore for Redis instance.
|
242
|
+
# @param [String] name
|
243
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
244
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
245
|
+
# a GCP region.
|
246
|
+
# @param [Google::Apis::RedisV1beta1::FailoverInstanceRequest] failover_instance_request_object
|
247
|
+
# @param [String] fields
|
248
|
+
# Selector specifying which fields to include in a partial response.
|
249
|
+
# @param [String] quota_user
|
250
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
251
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
252
|
+
# @param [Google::Apis::RequestOptions] options
|
253
|
+
# Request-specific options
|
254
|
+
#
|
255
|
+
# @yield [result, err] Result & error if block supplied
|
256
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
257
|
+
# @yieldparam err [StandardError] error object if request failed
|
258
|
+
#
|
259
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
260
|
+
#
|
261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
264
|
+
def failover_instance(name, failover_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:failover', options)
|
266
|
+
command.request_representation = Google::Apis::RedisV1beta1::FailoverInstanceRequest::Representation
|
267
|
+
command.request_object = failover_instance_request_object
|
268
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
269
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
270
|
+
command.params['name'] = name unless name.nil?
|
271
|
+
command.query['fields'] = fields unless fields.nil?
|
272
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
273
|
+
execute_or_queue_command(command, &block)
|
274
|
+
end
|
275
|
+
|
276
|
+
# Gets the details of a specific Redis instance.
|
277
|
+
# @param [String] name
|
278
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
279
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
280
|
+
# a GCP region.
|
281
|
+
# @param [String] fields
|
282
|
+
# Selector specifying which fields to include in a partial response.
|
283
|
+
# @param [String] quota_user
|
284
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
285
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
286
|
+
# @param [Google::Apis::RequestOptions] options
|
287
|
+
# Request-specific options
|
288
|
+
#
|
289
|
+
# @yield [result, err] Result & error if block supplied
|
290
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Instance] parsed result object
|
291
|
+
# @yieldparam err [StandardError] error object if request failed
|
292
|
+
#
|
293
|
+
# @return [Google::Apis::RedisV1beta1::Instance]
|
294
|
+
#
|
295
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
296
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
297
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
298
|
+
def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
299
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
300
|
+
command.response_representation = Google::Apis::RedisV1beta1::Instance::Representation
|
301
|
+
command.response_class = Google::Apis::RedisV1beta1::Instance
|
302
|
+
command.params['name'] = name unless name.nil?
|
303
|
+
command.query['fields'] = fields unless fields.nil?
|
304
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
305
|
+
execute_or_queue_command(command, &block)
|
306
|
+
end
|
307
|
+
|
308
|
+
# Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
|
309
|
+
# instance the response will be empty. This information is not included in the
|
310
|
+
# details returned to GetInstance.
|
311
|
+
# @param [String] name
|
312
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
313
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
314
|
+
# a GCP region.
|
315
|
+
# @param [String] fields
|
316
|
+
# Selector specifying which fields to include in a partial response.
|
317
|
+
# @param [String] quota_user
|
318
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
319
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
320
|
+
# @param [Google::Apis::RequestOptions] options
|
321
|
+
# Request-specific options
|
322
|
+
#
|
323
|
+
# @yield [result, err] Result & error if block supplied
|
324
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::InstanceAuthString] parsed result object
|
325
|
+
# @yieldparam err [StandardError] error object if request failed
|
326
|
+
#
|
327
|
+
# @return [Google::Apis::RedisV1beta1::InstanceAuthString]
|
328
|
+
#
|
329
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
330
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
331
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
332
|
+
def get_project_location_instance_auth_string(name, fields: nil, quota_user: nil, options: nil, &block)
|
333
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/authString', options)
|
334
|
+
command.response_representation = Google::Apis::RedisV1beta1::InstanceAuthString::Representation
|
335
|
+
command.response_class = Google::Apis::RedisV1beta1::InstanceAuthString
|
336
|
+
command.params['name'] = name unless name.nil?
|
337
|
+
command.query['fields'] = fields unless fields.nil?
|
338
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
339
|
+
execute_or_queue_command(command, &block)
|
340
|
+
end
|
341
|
+
|
342
|
+
# Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
|
343
|
+
# Redis may stop serving during this operation. Instance state will be IMPORTING
|
344
|
+
# for entire operation. When complete, the instance will contain only data from
|
345
|
+
# the imported file. The returned operation is automatically deleted after a few
|
346
|
+
# hours, so there is no need to call DeleteOperation.
|
347
|
+
# @param [String] name
|
348
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
349
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
350
|
+
# a GCP region.
|
351
|
+
# @param [Google::Apis::RedisV1beta1::ImportInstanceRequest] import_instance_request_object
|
352
|
+
# @param [String] fields
|
353
|
+
# Selector specifying which fields to include in a partial response.
|
354
|
+
# @param [String] quota_user
|
355
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
356
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
357
|
+
# @param [Google::Apis::RequestOptions] options
|
358
|
+
# Request-specific options
|
359
|
+
#
|
360
|
+
# @yield [result, err] Result & error if block supplied
|
361
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
362
|
+
# @yieldparam err [StandardError] error object if request failed
|
363
|
+
#
|
364
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
365
|
+
#
|
366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
369
|
+
def import_instance(name, import_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
370
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:import', options)
|
371
|
+
command.request_representation = Google::Apis::RedisV1beta1::ImportInstanceRequest::Representation
|
372
|
+
command.request_object = import_instance_request_object
|
373
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
374
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
375
|
+
command.params['name'] = name unless name.nil?
|
376
|
+
command.query['fields'] = fields unless fields.nil?
|
377
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
378
|
+
execute_or_queue_command(command, &block)
|
379
|
+
end
|
380
|
+
|
381
|
+
# Lists all Redis instances owned by a project in either the specified location (
|
382
|
+
# region) or all locations. The location should have the following format: * `
|
383
|
+
# projects/`project_id`/locations/`location_id`` If `location_id` is specified
|
384
|
+
# as `-` (wildcard), then all regions available to the project are queried, and
|
385
|
+
# the results are aggregated.
|
386
|
+
# @param [String] parent
|
387
|
+
# Required. The resource name of the instance location using the form: `projects/
|
388
|
+
# `project_id`/locations/`location_id`` where `location_id` refers to a GCP
|
389
|
+
# region.
|
390
|
+
# @param [Fixnum] page_size
|
391
|
+
# The maximum number of items to return. If not specified, a default value of
|
392
|
+
# 1000 will be used by the service. Regardless of the page_size value, the
|
393
|
+
# response may include a partial list and a caller should only rely on response'
|
394
|
+
# s `next_page_token` to determine if there are more instances left to be
|
395
|
+
# queried.
|
396
|
+
# @param [String] page_token
|
397
|
+
# The `next_page_token` value returned from a previous ListInstances request, if
|
398
|
+
# any.
|
399
|
+
# @param [String] fields
|
400
|
+
# Selector specifying which fields to include in a partial response.
|
401
|
+
# @param [String] quota_user
|
402
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
403
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
404
|
+
# @param [Google::Apis::RequestOptions] options
|
405
|
+
# Request-specific options
|
406
|
+
#
|
407
|
+
# @yield [result, err] Result & error if block supplied
|
408
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::ListInstancesResponse] parsed result object
|
409
|
+
# @yieldparam err [StandardError] error object if request failed
|
410
|
+
#
|
411
|
+
# @return [Google::Apis::RedisV1beta1::ListInstancesResponse]
|
412
|
+
#
|
413
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
414
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
415
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
416
|
+
def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
417
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/instances', options)
|
418
|
+
command.response_representation = Google::Apis::RedisV1beta1::ListInstancesResponse::Representation
|
419
|
+
command.response_class = Google::Apis::RedisV1beta1::ListInstancesResponse
|
420
|
+
command.params['parent'] = parent unless parent.nil?
|
421
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
422
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
423
|
+
command.query['fields'] = fields unless fields.nil?
|
424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
425
|
+
execute_or_queue_command(command, &block)
|
426
|
+
end
|
427
|
+
|
428
|
+
# Updates the metadata and configuration of a specific Redis instance. Completed
|
429
|
+
# longrunning.Operation will contain the new instance object in the response
|
430
|
+
# field. The returned operation is automatically deleted after a few hours, so
|
431
|
+
# there is no need to call DeleteOperation.
|
432
|
+
# @param [String] name
|
433
|
+
# Required. Unique name of the resource in this scope including project and
|
434
|
+
# location using the form: `projects/`project_id`/locations/`location_id`/
|
435
|
+
# instances/`instance_id`` Note: Redis instances are managed and addressed at
|
436
|
+
# regional level so location_id here refers to a GCP region; however, users may
|
437
|
+
# choose which specific zone (or collection of zones for cross-zone instances)
|
438
|
+
# an instance should be provisioned in. Refer to location_id and
|
439
|
+
# alternative_location_id fields for more details.
|
440
|
+
# @param [Google::Apis::RedisV1beta1::Instance] instance_object
|
441
|
+
# @param [String] update_mask
|
442
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
443
|
+
# field. The elements of the repeated paths field may only include these fields
|
444
|
+
# from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig`
|
445
|
+
# @param [String] fields
|
446
|
+
# Selector specifying which fields to include in a partial response.
|
447
|
+
# @param [String] quota_user
|
448
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
449
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
450
|
+
# @param [Google::Apis::RequestOptions] options
|
451
|
+
# Request-specific options
|
452
|
+
#
|
453
|
+
# @yield [result, err] Result & error if block supplied
|
454
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
455
|
+
# @yieldparam err [StandardError] error object if request failed
|
456
|
+
#
|
457
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
458
|
+
#
|
459
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
460
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
461
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
462
|
+
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
463
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
464
|
+
command.request_representation = Google::Apis::RedisV1beta1::Instance::Representation
|
465
|
+
command.request_object = instance_object
|
466
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
467
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
468
|
+
command.params['name'] = name unless name.nil?
|
469
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
470
|
+
command.query['fields'] = fields unless fields.nil?
|
471
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
472
|
+
execute_or_queue_command(command, &block)
|
473
|
+
end
|
474
|
+
|
475
|
+
# Upgrades Redis instance to the newer Redis version specified in the request.
|
476
|
+
# @param [String] name
|
477
|
+
# Required. Redis instance resource name using the form: `projects/`project_id`/
|
478
|
+
# locations/`location_id`/instances/`instance_id`` where `location_id` refers to
|
479
|
+
# a GCP region.
|
480
|
+
# @param [Google::Apis::RedisV1beta1::UpgradeInstanceRequest] upgrade_instance_request_object
|
481
|
+
# @param [String] fields
|
482
|
+
# Selector specifying which fields to include in a partial response.
|
483
|
+
# @param [String] quota_user
|
484
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
485
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
486
|
+
# @param [Google::Apis::RequestOptions] options
|
487
|
+
# Request-specific options
|
488
|
+
#
|
489
|
+
# @yield [result, err] Result & error if block supplied
|
490
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
491
|
+
# @yieldparam err [StandardError] error object if request failed
|
492
|
+
#
|
493
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
494
|
+
#
|
495
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
496
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
497
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
498
|
+
def upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
499
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:upgrade', options)
|
500
|
+
command.request_representation = Google::Apis::RedisV1beta1::UpgradeInstanceRequest::Representation
|
501
|
+
command.request_object = upgrade_instance_request_object
|
502
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
503
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
504
|
+
command.params['name'] = name unless name.nil?
|
505
|
+
command.query['fields'] = fields unless fields.nil?
|
506
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
507
|
+
execute_or_queue_command(command, &block)
|
508
|
+
end
|
509
|
+
|
510
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
511
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
512
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
513
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
514
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
515
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
516
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
517
|
+
# corresponding to `Code.CANCELLED`.
|
518
|
+
# @param [String] name
|
519
|
+
# The name of the operation resource to be cancelled.
|
520
|
+
# @param [String] fields
|
521
|
+
# Selector specifying which fields to include in a partial response.
|
522
|
+
# @param [String] quota_user
|
523
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
524
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
525
|
+
# @param [Google::Apis::RequestOptions] options
|
526
|
+
# Request-specific options
|
527
|
+
#
|
528
|
+
# @yield [result, err] Result & error if block supplied
|
529
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Empty] parsed result object
|
530
|
+
# @yieldparam err [StandardError] error object if request failed
|
531
|
+
#
|
532
|
+
# @return [Google::Apis::RedisV1beta1::Empty]
|
533
|
+
#
|
534
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
535
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
536
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
537
|
+
def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
538
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
539
|
+
command.response_representation = Google::Apis::RedisV1beta1::Empty::Representation
|
540
|
+
command.response_class = Google::Apis::RedisV1beta1::Empty
|
541
|
+
command.params['name'] = name unless name.nil?
|
542
|
+
command.query['fields'] = fields unless fields.nil?
|
543
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
544
|
+
execute_or_queue_command(command, &block)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
548
|
+
# longer interested in the operation result. It does not cancel the operation.
|
549
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
550
|
+
# UNIMPLEMENTED`.
|
551
|
+
# @param [String] name
|
552
|
+
# The name of the operation resource to be deleted.
|
553
|
+
# @param [String] fields
|
554
|
+
# Selector specifying which fields to include in a partial response.
|
555
|
+
# @param [String] quota_user
|
556
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
557
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
558
|
+
# @param [Google::Apis::RequestOptions] options
|
559
|
+
# Request-specific options
|
560
|
+
#
|
561
|
+
# @yield [result, err] Result & error if block supplied
|
562
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Empty] parsed result object
|
563
|
+
# @yieldparam err [StandardError] error object if request failed
|
564
|
+
#
|
565
|
+
# @return [Google::Apis::RedisV1beta1::Empty]
|
566
|
+
#
|
567
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
568
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
569
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
570
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
571
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
572
|
+
command.response_representation = Google::Apis::RedisV1beta1::Empty::Representation
|
573
|
+
command.response_class = Google::Apis::RedisV1beta1::Empty
|
574
|
+
command.params['name'] = name unless name.nil?
|
575
|
+
command.query['fields'] = fields unless fields.nil?
|
576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
577
|
+
execute_or_queue_command(command, &block)
|
578
|
+
end
|
579
|
+
|
580
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
581
|
+
# to poll the operation result at intervals as recommended by the API service.
|
582
|
+
# @param [String] name
|
583
|
+
# The name of the operation resource.
|
584
|
+
# @param [String] fields
|
585
|
+
# Selector specifying which fields to include in a partial response.
|
586
|
+
# @param [String] quota_user
|
587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
589
|
+
# @param [Google::Apis::RequestOptions] options
|
590
|
+
# Request-specific options
|
591
|
+
#
|
592
|
+
# @yield [result, err] Result & error if block supplied
|
593
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
|
594
|
+
# @yieldparam err [StandardError] error object if request failed
|
595
|
+
#
|
596
|
+
# @return [Google::Apis::RedisV1beta1::Operation]
|
597
|
+
#
|
598
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
599
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
600
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
601
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
602
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
603
|
+
command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
|
604
|
+
command.response_class = Google::Apis::RedisV1beta1::Operation
|
605
|
+
command.params['name'] = name unless name.nil?
|
606
|
+
command.query['fields'] = fields unless fields.nil?
|
607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
608
|
+
execute_or_queue_command(command, &block)
|
609
|
+
end
|
610
|
+
|
611
|
+
# Lists operations that match the specified filter in the request. If the server
|
612
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
613
|
+
# binding allows API services to override the binding to use different resource
|
614
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
615
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
616
|
+
# service configuration. For backwards compatibility, the default name includes
|
617
|
+
# the operations collection id, however overriding users must ensure the name
|
618
|
+
# binding is the parent resource, without the operations collection id.
|
619
|
+
# @param [String] name
|
620
|
+
# The name of the operation's parent resource.
|
621
|
+
# @param [String] filter
|
622
|
+
# The standard list filter.
|
623
|
+
# @param [Fixnum] page_size
|
624
|
+
# The standard list page size.
|
625
|
+
# @param [String] page_token
|
626
|
+
# The standard list page token.
|
627
|
+
# @param [String] fields
|
628
|
+
# Selector specifying which fields to include in a partial response.
|
629
|
+
# @param [String] quota_user
|
630
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
631
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
632
|
+
# @param [Google::Apis::RequestOptions] options
|
633
|
+
# Request-specific options
|
634
|
+
#
|
635
|
+
# @yield [result, err] Result & error if block supplied
|
636
|
+
# @yieldparam result [Google::Apis::RedisV1beta1::ListOperationsResponse] parsed result object
|
637
|
+
# @yieldparam err [StandardError] error object if request failed
|
638
|
+
#
|
639
|
+
# @return [Google::Apis::RedisV1beta1::ListOperationsResponse]
|
640
|
+
#
|
641
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
642
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
643
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
644
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
645
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
646
|
+
command.response_representation = Google::Apis::RedisV1beta1::ListOperationsResponse::Representation
|
647
|
+
command.response_class = Google::Apis::RedisV1beta1::ListOperationsResponse
|
648
|
+
command.params['name'] = name unless name.nil?
|
649
|
+
command.query['filter'] = filter unless filter.nil?
|
650
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
651
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
652
|
+
command.query['fields'] = fields unless fields.nil?
|
653
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
654
|
+
execute_or_queue_command(command, &block)
|
655
|
+
end
|
656
|
+
|
657
|
+
protected
|
658
|
+
|
659
|
+
def apply_command_defaults(command)
|
660
|
+
command.query['key'] = key unless key.nil?
|
661
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
662
|
+
end
|
663
|
+
end
|
664
|
+
end
|
665
|
+
end
|
666
|
+
end
|