google-api-client 0.30.0 → 0.30.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1/classes.rb +8 -74
  5. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  6. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +8 -74
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +50 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +16 -0
  10. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  11. data/generated/google/apis/cloudidentity_v1/classes.rb +8 -74
  12. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  13. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +8 -74
  14. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  15. data/generated/google/apis/cloudsearch_v1/classes.rb +11 -0
  16. data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
  17. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  18. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +9 -6
  19. data/generated/google/apis/compute_alpha.rb +1 -1
  20. data/generated/google/apis/compute_alpha/classes.rb +255 -155
  21. data/generated/google/apis/compute_alpha/representations.rb +4 -3
  22. data/generated/google/apis/compute_alpha/service.rb +11 -4
  23. data/generated/google/apis/compute_beta.rb +1 -1
  24. data/generated/google/apis/compute_beta/classes.rb +2818 -235
  25. data/generated/google/apis/compute_beta/representations.rb +957 -0
  26. data/generated/google/apis/compute_beta/service.rb +2371 -475
  27. data/generated/google/apis/compute_v1.rb +1 -1
  28. data/generated/google/apis/compute_v1/classes.rb +239 -92
  29. data/generated/google/apis/compute_v1/representations.rb +19 -0
  30. data/generated/google/apis/compute_v1/service.rb +4 -2
  31. data/generated/google/apis/container_v1beta1.rb +1 -1
  32. data/generated/google/apis/container_v1beta1/classes.rb +24 -0
  33. data/generated/google/apis/container_v1beta1/representations.rb +3 -0
  34. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  35. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  36. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -0
  37. data/generated/google/apis/content_v2.rb +1 -1
  38. data/generated/google/apis/content_v2/classes.rb +1 -1
  39. data/generated/google/apis/content_v2_1.rb +1 -1
  40. data/generated/google/apis/content_v2_1/classes.rb +1 -1
  41. data/generated/google/apis/dialogflow_v2.rb +1 -1
  42. data/generated/google/apis/dialogflow_v2/classes.rb +3 -4
  43. data/generated/google/apis/dlp_v2.rb +1 -1
  44. data/generated/google/apis/dlp_v2/classes.rb +44 -0
  45. data/generated/google/apis/dlp_v2/representations.rb +29 -0
  46. data/generated/google/apis/docs_v1.rb +1 -1
  47. data/generated/google/apis/docs_v1/classes.rb +0 -10
  48. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  49. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  50. data/generated/google/apis/healthcare_v1alpha2/classes.rb +7 -6
  51. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  52. data/generated/google/apis/healthcare_v1beta1/classes.rb +1 -1
  53. data/generated/google/apis/jobs_v2.rb +1 -1
  54. data/generated/google/apis/jobs_v2/classes.rb +2 -2
  55. data/generated/google/apis/jobs_v3.rb +1 -1
  56. data/generated/google/apis/jobs_v3/classes.rb +4 -3
  57. data/generated/google/apis/logging_v2.rb +1 -1
  58. data/generated/google/apis/logging_v2/classes.rb +4 -1
  59. data/generated/google/apis/ml_v1.rb +1 -1
  60. data/generated/google/apis/ml_v1/classes.rb +6 -0
  61. data/generated/google/apis/ml_v1/representations.rb +1 -0
  62. data/generated/google/apis/monitoring_v3.rb +1 -1
  63. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  64. data/generated/google/apis/redis_v1.rb +1 -1
  65. data/generated/google/apis/redis_v1/classes.rb +125 -0
  66. data/generated/google/apis/redis_v1/representations.rb +83 -0
  67. data/generated/google/apis/redis_v1/service.rb +78 -0
  68. data/generated/google/apis/redis_v1beta1.rb +1 -1
  69. data/generated/google/apis/redis_v1beta1/classes.rb +125 -0
  70. data/generated/google/apis/redis_v1beta1/representations.rb +83 -0
  71. data/generated/google/apis/redis_v1beta1/service.rb +78 -0
  72. data/generated/google/apis/securitycenter_v1.rb +1 -1
  73. data/generated/google/apis/securitycenter_v1/classes.rb +10 -76
  74. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  75. data/generated/google/apis/securitycenter_v1beta1/classes.rb +10 -76
  76. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  77. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -74
  78. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  79. data/generated/google/apis/servicenetworking_v1/classes.rb +8 -74
  80. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  81. data/generated/google/apis/servicenetworking_v1beta/classes.rb +8 -74
  82. data/generated/google/apis/serviceusage_v1.rb +1 -1
  83. data/generated/google/apis/serviceusage_v1/classes.rb +8 -74
  84. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  85. data/generated/google/apis/serviceusage_v1beta1/classes.rb +8 -74
  86. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  87. data/generated/google/apis/speech_v1p1beta1/classes.rb +13 -0
  88. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  89. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  90. data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -111
  91. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  92. data/generated/google/apis/toolresults_v1beta3/classes.rb +8 -74
  93. data/generated/google/apis/vision_v1.rb +1 -1
  94. data/generated/google/apis/vision_v1/classes.rb +36 -20
  95. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  96. data/generated/google/apis/vision_v1p1beta1/classes.rb +36 -20
  97. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  98. data/generated/google/apis/vision_v1p2beta1/classes.rb +36 -20
  99. data/lib/google/apis/version.rb +1 -1
  100. metadata +2 -2
@@ -201,6 +201,44 @@ module Google
201
201
  execute_or_queue_command(command, &block)
202
202
  end
203
203
 
204
+ # Export Redis instance data into a Redis RDB format file in GCS.
205
+ # Redis will continue serving during this operation.
206
+ # The returned operation is automatically deleted after a few hours, so
207
+ # there is no need to call DeleteOperation.
208
+ # @param [String] name
209
+ # Required. Redis instance resource name using the form:
210
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
211
+ # where `location_id` refers to a GCP region.
212
+ # @param [Google::Apis::RedisV1::ExportInstanceRequest] export_instance_request_object
213
+ # @param [String] fields
214
+ # Selector specifying which fields to include in a partial response.
215
+ # @param [String] quota_user
216
+ # Available to use for quota purposes for server-side applications. Can be any
217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
218
+ # @param [Google::Apis::RequestOptions] options
219
+ # Request-specific options
220
+ #
221
+ # @yield [result, err] Result & error if block supplied
222
+ # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
223
+ # @yieldparam err [StandardError] error object if request failed
224
+ #
225
+ # @return [Google::Apis::RedisV1::Operation]
226
+ #
227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
230
+ def export_instance(name, export_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
231
+ command = make_simple_command(:post, 'v1/{+name}:export', options)
232
+ command.request_representation = Google::Apis::RedisV1::ExportInstanceRequest::Representation
233
+ command.request_object = export_instance_request_object
234
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
235
+ command.response_class = Google::Apis::RedisV1::Operation
236
+ command.params['name'] = name unless name.nil?
237
+ command.query['fields'] = fields unless fields.nil?
238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ execute_or_queue_command(command, &block)
240
+ end
241
+
204
242
  # Initiates a failover of the master node to current replica node for a
205
243
  # specific STANDARD tier Cloud Memorystore for Redis instance.
206
244
  # @param [String] name
@@ -269,6 +307,46 @@ module Google
269
307
  execute_or_queue_command(command, &block)
270
308
  end
271
309
 
310
+ # Import a Redis RDB snapshot file from GCS into a Redis instance.
311
+ # Redis may stop serving during this operation. Instance state will be
312
+ # IMPORTING for entire operation. When complete, the instance will contain
313
+ # only data from the imported file.
314
+ # The returned operation is automatically deleted after a few hours, so
315
+ # there is no need to call DeleteOperation.
316
+ # @param [String] name
317
+ # Required. Redis instance resource name using the form:
318
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
319
+ # where `location_id` refers to a GCP region.
320
+ # @param [Google::Apis::RedisV1::ImportInstanceRequest] import_instance_request_object
321
+ # @param [String] fields
322
+ # Selector specifying which fields to include in a partial response.
323
+ # @param [String] quota_user
324
+ # Available to use for quota purposes for server-side applications. Can be any
325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
326
+ # @param [Google::Apis::RequestOptions] options
327
+ # Request-specific options
328
+ #
329
+ # @yield [result, err] Result & error if block supplied
330
+ # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
331
+ # @yieldparam err [StandardError] error object if request failed
332
+ #
333
+ # @return [Google::Apis::RedisV1::Operation]
334
+ #
335
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
336
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
337
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
338
+ def import_instance(name, import_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
339
+ command = make_simple_command(:post, 'v1/{+name}:import', options)
340
+ command.request_representation = Google::Apis::RedisV1::ImportInstanceRequest::Representation
341
+ command.request_object = import_instance_request_object
342
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
343
+ command.response_class = Google::Apis::RedisV1::Operation
344
+ command.params['name'] = name unless name.nil?
345
+ command.query['fields'] = fields unless fields.nil?
346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
347
+ execute_or_queue_command(command, &block)
348
+ end
349
+
272
350
  # Lists all Redis instances owned by a project in either the specified
273
351
  # location (region) or all locations.
274
352
  # The location should have the following format:
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/memorystore/docs/redis/
26
26
  module RedisV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20190524'
28
+ REVISION = '20190531'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -41,6 +41,64 @@ module Google
41
41
  end
42
42
  end
43
43
 
44
+ # Request for Export.
45
+ class ExportInstanceRequest
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # The output content
49
+ # Corresponds to the JSON property `outputConfig`
50
+ # @return [Google::Apis::RedisV1beta1::OutputConfig]
51
+ attr_accessor :output_config
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @output_config = args[:output_config] if args.key?(:output_config)
60
+ end
61
+ end
62
+
63
+ # The GCS location for the output content
64
+ class GcsDestination
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # Required. Data destination URI (e.g.
68
+ # 'gs://my_bucket/my_object'). Existing files will be overwritten.
69
+ # Corresponds to the JSON property `uri`
70
+ # @return [String]
71
+ attr_accessor :uri
72
+
73
+ def initialize(**args)
74
+ update!(**args)
75
+ end
76
+
77
+ # Update properties of this object
78
+ def update!(**args)
79
+ @uri = args[:uri] if args.key?(:uri)
80
+ end
81
+ end
82
+
83
+ # The GCS location for the input content
84
+ class GcsSource
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
88
+ # Corresponds to the JSON property `uri`
89
+ # @return [String]
90
+ attr_accessor :uri
91
+
92
+ def initialize(**args)
93
+ update!(**args)
94
+ end
95
+
96
+ # Update properties of this object
97
+ def update!(**args)
98
+ @uri = args[:uri] if args.key?(:uri)
99
+ end
100
+ end
101
+
44
102
  # Represents the metadata of the long-running operation.
45
103
  class GoogleCloudCommonOperationMetadata
46
104
  include Google::Apis::Core::Hashable
@@ -139,6 +197,44 @@ module Google
139
197
  end
140
198
  end
141
199
 
200
+ # Request for Import.
201
+ class ImportInstanceRequest
202
+ include Google::Apis::Core::Hashable
203
+
204
+ # The input content
205
+ # Corresponds to the JSON property `inputConfig`
206
+ # @return [Google::Apis::RedisV1beta1::InputConfig]
207
+ attr_accessor :input_config
208
+
209
+ def initialize(**args)
210
+ update!(**args)
211
+ end
212
+
213
+ # Update properties of this object
214
+ def update!(**args)
215
+ @input_config = args[:input_config] if args.key?(:input_config)
216
+ end
217
+ end
218
+
219
+ # The input content
220
+ class InputConfig
221
+ include Google::Apis::Core::Hashable
222
+
223
+ # The GCS location for the input content
224
+ # Corresponds to the JSON property `gcsSource`
225
+ # @return [Google::Apis::RedisV1beta1::GcsSource]
226
+ attr_accessor :gcs_source
227
+
228
+ def initialize(**args)
229
+ update!(**args)
230
+ end
231
+
232
+ # Update properties of this object
233
+ def update!(**args)
234
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
235
+ end
236
+ end
237
+
142
238
  # A Google Cloud Redis instance.
143
239
  class Instance
144
240
  include Google::Apis::Core::Hashable
@@ -214,6 +310,15 @@ module Google
214
310
  # @return [String]
215
311
  attr_accessor :name
216
312
 
313
+ # Output only. Cloud IAM identity used by import / export operations to
314
+ # transfer data to/from Cloud Storage. Format is
315
+ # "serviceAccount:<service_account_email>". The value may change over time
316
+ # for a given instance so should be checked before each import/export
317
+ # operation.
318
+ # Corresponds to the JSON property `persistenceIamIdentity`
319
+ # @return [String]
320
+ attr_accessor :persistence_iam_identity
321
+
217
322
  # Output only. The port number of the exposed Redis endpoint.
218
323
  # Corresponds to the JSON property `port`
219
324
  # @return [Fixnum]
@@ -283,6 +388,7 @@ module Google
283
388
  @location_id = args[:location_id] if args.key?(:location_id)
284
389
  @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
285
390
  @name = args[:name] if args.key?(:name)
391
+ @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
286
392
  @port = args[:port] if args.key?(:port)
287
393
  @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
288
394
  @redis_version = args[:redis_version] if args.key?(:redis_version)
@@ -537,6 +643,25 @@ module Google
537
643
  end
538
644
  end
539
645
 
646
+ # The output content
647
+ class OutputConfig
648
+ include Google::Apis::Core::Hashable
649
+
650
+ # The GCS location for the output content
651
+ # Corresponds to the JSON property `gcsDestination`
652
+ # @return [Google::Apis::RedisV1beta1::GcsDestination]
653
+ attr_accessor :gcs_destination
654
+
655
+ def initialize(**args)
656
+ update!(**args)
657
+ end
658
+
659
+ # Update properties of this object
660
+ def update!(**args)
661
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
662
+ end
663
+ end
664
+
540
665
  # The `Status` type defines a logical error model that is suitable for
541
666
  # different programming environments, including REST APIs and RPC APIs. It is
542
667
  # used by [gRPC](https://github.com/grpc). The error model is designed to be:
@@ -28,6 +28,24 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class ExportInstanceRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GcsDestination
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GcsSource
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
31
49
  class GoogleCloudCommonOperationMetadata
32
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
51
 
@@ -46,6 +64,18 @@ module Google
46
64
  include Google::Apis::Core::JsonObjectSupport
47
65
  end
48
66
 
67
+ class ImportInstanceRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class InputConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
49
79
  class Instance
50
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
81
 
@@ -82,6 +112,12 @@ module Google
82
112
  include Google::Apis::Core::JsonObjectSupport
83
113
  end
84
114
 
115
+ class OutputConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
85
121
  class Status
86
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
123
 
@@ -94,6 +130,28 @@ module Google
94
130
  end
95
131
  end
96
132
 
133
+ class ExportInstanceRequest
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ property :output_config, as: 'outputConfig', class: Google::Apis::RedisV1beta1::OutputConfig, decorator: Google::Apis::RedisV1beta1::OutputConfig::Representation
137
+
138
+ end
139
+ end
140
+
141
+ class GcsDestination
142
+ # @private
143
+ class Representation < Google::Apis::Core::JsonRepresentation
144
+ property :uri, as: 'uri'
145
+ end
146
+ end
147
+
148
+ class GcsSource
149
+ # @private
150
+ class Representation < Google::Apis::Core::JsonRepresentation
151
+ property :uri, as: 'uri'
152
+ end
153
+ end
154
+
97
155
  class GoogleCloudCommonOperationMetadata
98
156
  # @private
99
157
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -121,6 +179,22 @@ module Google
121
179
  end
122
180
  end
123
181
 
182
+ class ImportInstanceRequest
183
+ # @private
184
+ class Representation < Google::Apis::Core::JsonRepresentation
185
+ property :input_config, as: 'inputConfig', class: Google::Apis::RedisV1beta1::InputConfig, decorator: Google::Apis::RedisV1beta1::InputConfig::Representation
186
+
187
+ end
188
+ end
189
+
190
+ class InputConfig
191
+ # @private
192
+ class Representation < Google::Apis::Core::JsonRepresentation
193
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::RedisV1beta1::GcsSource, decorator: Google::Apis::RedisV1beta1::GcsSource::Representation
194
+
195
+ end
196
+ end
197
+
124
198
  class Instance
125
199
  # @private
126
200
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -134,6 +208,7 @@ module Google
134
208
  property :location_id, as: 'locationId'
135
209
  property :memory_size_gb, as: 'memorySizeGb'
136
210
  property :name, as: 'name'
211
+ property :persistence_iam_identity, as: 'persistenceIamIdentity'
137
212
  property :port, as: 'port'
138
213
  hash :redis_configs, as: 'redisConfigs'
139
214
  property :redis_version, as: 'redisVersion'
@@ -195,6 +270,14 @@ module Google
195
270
  end
196
271
  end
197
272
 
273
+ class OutputConfig
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::RedisV1beta1::GcsDestination, decorator: Google::Apis::RedisV1beta1::GcsDestination::Representation
277
+
278
+ end
279
+ end
280
+
198
281
  class Status
199
282
  # @private
200
283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -201,6 +201,44 @@ module Google
201
201
  execute_or_queue_command(command, &block)
202
202
  end
203
203
 
204
+ # Export Redis instance data into a Redis RDB format file in GCS.
205
+ # Redis will continue serving during this operation.
206
+ # The returned operation is automatically deleted after a few hours, so
207
+ # there is no need to call DeleteOperation.
208
+ # @param [String] name
209
+ # Required. Redis instance resource name using the form:
210
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
211
+ # where `location_id` refers to a GCP region.
212
+ # @param [Google::Apis::RedisV1beta1::ExportInstanceRequest] export_instance_request_object
213
+ # @param [String] fields
214
+ # Selector specifying which fields to include in a partial response.
215
+ # @param [String] quota_user
216
+ # Available to use for quota purposes for server-side applications. Can be any
217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
218
+ # @param [Google::Apis::RequestOptions] options
219
+ # Request-specific options
220
+ #
221
+ # @yield [result, err] Result & error if block supplied
222
+ # @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
223
+ # @yieldparam err [StandardError] error object if request failed
224
+ #
225
+ # @return [Google::Apis::RedisV1beta1::Operation]
226
+ #
227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
230
+ def export_instance(name, export_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
231
+ command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
232
+ command.request_representation = Google::Apis::RedisV1beta1::ExportInstanceRequest::Representation
233
+ command.request_object = export_instance_request_object
234
+ command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
235
+ command.response_class = Google::Apis::RedisV1beta1::Operation
236
+ command.params['name'] = name unless name.nil?
237
+ command.query['fields'] = fields unless fields.nil?
238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ execute_or_queue_command(command, &block)
240
+ end
241
+
204
242
  # Gets the details of a specific Redis instance.
205
243
  # @param [String] name
206
244
  # Required. Redis instance resource name using the form:
@@ -233,6 +271,46 @@ module Google
233
271
  execute_or_queue_command(command, &block)
234
272
  end
235
273
 
274
+ # Import a Redis RDB snapshot file from GCS into a Redis instance.
275
+ # Redis may stop serving during this operation. Instance state will be
276
+ # IMPORTING for entire operation. When complete, the instance will contain
277
+ # only data from the imported file.
278
+ # The returned operation is automatically deleted after a few hours, so
279
+ # there is no need to call DeleteOperation.
280
+ # @param [String] name
281
+ # Required. Redis instance resource name using the form:
282
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
283
+ # where `location_id` refers to a GCP region.
284
+ # @param [Google::Apis::RedisV1beta1::ImportInstanceRequest] import_instance_request_object
285
+ # @param [String] fields
286
+ # Selector specifying which fields to include in a partial response.
287
+ # @param [String] quota_user
288
+ # Available to use for quota purposes for server-side applications. Can be any
289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
290
+ # @param [Google::Apis::RequestOptions] options
291
+ # Request-specific options
292
+ #
293
+ # @yield [result, err] Result & error if block supplied
294
+ # @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
295
+ # @yieldparam err [StandardError] error object if request failed
296
+ #
297
+ # @return [Google::Apis::RedisV1beta1::Operation]
298
+ #
299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
302
+ def import_instance(name, import_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
303
+ command = make_simple_command(:post, 'v1beta1/{+name}:import', options)
304
+ command.request_representation = Google::Apis::RedisV1beta1::ImportInstanceRequest::Representation
305
+ command.request_object = import_instance_request_object
306
+ command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
307
+ command.response_class = Google::Apis::RedisV1beta1::Operation
308
+ command.params['name'] = name unless name.nil?
309
+ command.query['fields'] = fields unless fields.nil?
310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
311
+ execute_or_queue_command(command, &block)
312
+ end
313
+
236
314
  # Lists all Redis instances owned by a project in either the specified
237
315
  # location (region) or all locations.
238
316
  # The location should have the following format: