google-api-client 0.23.8 → 0.23.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +28 -28
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
  7. data/generated/google/apis/calendar_v3.rb +1 -1
  8. data/generated/google/apis/calendar_v3/classes.rb +16 -0
  9. data/generated/google/apis/calendar_v3/representations.rb +2 -0
  10. data/generated/google/apis/cloudkms_v1.rb +1 -1
  11. data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
  12. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  13. data/generated/google/apis/container_v1.rb +1 -1
  14. data/generated/google/apis/container_v1/classes.rb +1 -0
  15. data/generated/google/apis/container_v1beta1.rb +1 -1
  16. data/generated/google/apis/container_v1beta1/classes.rb +52 -1
  17. data/generated/google/apis/container_v1beta1/representations.rb +22 -0
  18. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  19. data/generated/google/apis/dfareporting_v2_8/classes.rb +63 -61
  20. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -1
  21. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  22. data/generated/google/apis/dfareporting_v3_0/classes.rb +63 -61
  23. data/generated/google/apis/dfareporting_v3_0/service.rb +1 -1
  24. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  25. data/generated/google/apis/dfareporting_v3_1/classes.rb +67 -65
  26. data/generated/google/apis/dfareporting_v3_1/service.rb +1 -1
  27. data/generated/google/apis/dfareporting_v3_2.rb +1 -1
  28. data/generated/google/apis/dfareporting_v3_2/classes.rb +70 -68
  29. data/generated/google/apis/dfareporting_v3_2/service.rb +5 -2
  30. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  31. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +11 -7
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v2/classes.rb +5 -3
  34. data/generated/google/apis/drive_v2/service.rb +1 -1
  35. data/generated/google/apis/drive_v3.rb +1 -1
  36. data/generated/google/apis/drive_v3/classes.rb +3 -1
  37. data/generated/google/apis/genomics_v1.rb +1 -1
  38. data/generated/google/apis/genomics_v1/classes.rb +14 -0
  39. data/generated/google/apis/genomics_v1/representations.rb +12 -0
  40. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  41. data/generated/google/apis/genomics_v1alpha2/classes.rb +14 -0
  42. data/generated/google/apis/genomics_v1alpha2/representations.rb +12 -0
  43. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  44. data/generated/google/apis/genomics_v2alpha1/classes.rb +16 -1
  45. data/generated/google/apis/genomics_v2alpha1/representations.rb +12 -0
  46. data/generated/google/apis/iam_v1.rb +1 -1
  47. data/generated/google/apis/iam_v1/classes.rb +12 -10
  48. data/generated/google/apis/iam_v1/service.rb +2 -1
  49. data/generated/google/apis/jobs_v2.rb +1 -1
  50. data/generated/google/apis/language_v1beta2.rb +1 -1
  51. data/generated/google/apis/language_v1beta2/classes.rb +6 -6
  52. data/generated/google/apis/logging_v2.rb +1 -1
  53. data/generated/google/apis/logging_v2/classes.rb +7 -2
  54. data/generated/google/apis/logging_v2beta1.rb +1 -1
  55. data/generated/google/apis/logging_v2beta1/classes.rb +7 -2
  56. data/generated/google/apis/manufacturers_v1.rb +1 -1
  57. data/generated/google/apis/manufacturers_v1/classes.rb +0 -30
  58. data/generated/google/apis/manufacturers_v1/representations.rb +0 -7
  59. data/generated/google/apis/manufacturers_v1/service.rb +0 -6
  60. data/generated/google/apis/ml_v1.rb +1 -1
  61. data/generated/google/apis/ml_v1/classes.rb +26 -4
  62. data/generated/google/apis/partners_v2.rb +1 -1
  63. data/generated/google/apis/partners_v2/classes.rb +14 -14
  64. data/generated/google/apis/pubsub_v1.rb +1 -1
  65. data/generated/google/apis/pubsub_v1/classes.rb +25 -15
  66. data/generated/google/apis/pubsub_v1/service.rb +47 -16
  67. data/generated/google/apis/{sqladmin_v1beta3.rb → redis_v1.rb} +10 -13
  68. data/generated/google/apis/redis_v1/classes.rb +597 -0
  69. data/generated/google/apis/redis_v1/representations.rb +207 -0
  70. data/generated/google/apis/redis_v1/service.rb +498 -0
  71. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  72. data/generated/google/apis/servicecontrol_v1/classes.rb +12 -2
  73. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  74. data/generated/google/apis/testing_v1.rb +1 -1
  75. data/generated/google/apis/testing_v1/classes.rb +4 -2
  76. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  77. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -3
  78. data/generated/google/apis/tpu_v1.rb +1 -1
  79. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  80. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  81. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  82. data/lib/google/apis/version.rb +1 -1
  83. metadata +6 -6
  84. data/generated/google/apis/sqladmin_v1beta3/classes.rb +0 -1632
  85. data/generated/google/apis/sqladmin_v1beta3/representations.rb +0 -733
  86. data/generated/google/apis/sqladmin_v1beta3/service.rb +0 -995
@@ -12,27 +12,24 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'google/apis/sqladmin_v1beta3/service.rb'
16
- require 'google/apis/sqladmin_v1beta3/classes.rb'
17
- require 'google/apis/sqladmin_v1beta3/representations.rb'
15
+ require 'google/apis/redis_v1/service.rb'
16
+ require 'google/apis/redis_v1/classes.rb'
17
+ require 'google/apis/redis_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Cloud SQL Admin API
21
+ # Google Cloud Memorystore for Redis API
22
22
  #
23
- # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your
24
- # instances programmatically.
23
+ # The Google Cloud Memorystore for Redis API is used for creating and managing
24
+ # Redis instances on the Google Cloud Platform.
25
25
  #
26
- # @see https://cloud.google.com/sql/docs/reference/latest
27
- module SqladminV1beta3
28
- VERSION = 'V1beta3'
29
- REVISION = '20180727'
26
+ # @see https://cloud.google.com/memorystore/docs/redis/
27
+ module RedisV1
28
+ VERSION = 'V1'
29
+ REVISION = '20180906'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
-
34
- # Manage your Google SQL Service instances
35
- AUTH_SQLSERVICE_ADMIN = 'https://www.googleapis.com/auth/sqlservice.admin'
36
33
  end
37
34
  end
38
35
  end
@@ -0,0 +1,597 @@
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 RedisV1
24
+
25
+ # A generic empty message that you can re-use to avoid defining duplicated
26
+ # empty messages in your APIs. A typical example is to use it as the request
27
+ # or the response type of an API method. For instance:
28
+ # service Foo `
29
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
+ # `
31
+ # The JSON representation for `Empty` is empty JSON object ````.
32
+ class Empty
33
+ include Google::Apis::Core::Hashable
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ end
42
+ end
43
+
44
+ # This location metadata represents additional configuration options for a
45
+ # given location where a Redis instance may be created. All fields are output
46
+ # only. It is returned as content of the
47
+ # `google.cloud.location.Location.metadata` field.
48
+ class GoogleCloudRedisV1LocationMetadata
49
+ include Google::Apis::Core::Hashable
50
+
51
+ # Output only. The set of available zones in the location. The map is keyed
52
+ # by the lowercase ID of each zone, as defined by GCE. These keys can be
53
+ # specified in `location_id` or `alternative_location_id` fields when
54
+ # creating a Redis instance.
55
+ # Corresponds to the JSON property `availableZones`
56
+ # @return [Hash<String,Google::Apis::RedisV1::GoogleCloudRedisV1ZoneMetadata>]
57
+ attr_accessor :available_zones
58
+
59
+ def initialize(**args)
60
+ update!(**args)
61
+ end
62
+
63
+ # Update properties of this object
64
+ def update!(**args)
65
+ @available_zones = args[:available_zones] if args.key?(:available_zones)
66
+ end
67
+ end
68
+
69
+ # Represents the v1 metadata of the long-running operation.
70
+ class GoogleCloudRedisV1OperationMetadata
71
+ include Google::Apis::Core::Hashable
72
+
73
+ # API version.
74
+ # Corresponds to the JSON property `apiVersion`
75
+ # @return [String]
76
+ attr_accessor :api_version
77
+
78
+ # Specifies if cancellation was requested for the operaiton.
79
+ # Corresponds to the JSON property `cancelRequested`
80
+ # @return [Boolean]
81
+ attr_accessor :cancel_requested
82
+ alias_method :cancel_requested?, :cancel_requested
83
+
84
+ # Creation timestamp.
85
+ # Corresponds to the JSON property `createTime`
86
+ # @return [String]
87
+ attr_accessor :create_time
88
+
89
+ # End timestamp.
90
+ # Corresponds to the JSON property `endTime`
91
+ # @return [String]
92
+ attr_accessor :end_time
93
+
94
+ # Operation status details.
95
+ # Corresponds to the JSON property `statusDetail`
96
+ # @return [String]
97
+ attr_accessor :status_detail
98
+
99
+ # Operation target.
100
+ # Corresponds to the JSON property `target`
101
+ # @return [String]
102
+ attr_accessor :target
103
+
104
+ # Operation verb.
105
+ # Corresponds to the JSON property `verb`
106
+ # @return [String]
107
+ attr_accessor :verb
108
+
109
+ def initialize(**args)
110
+ update!(**args)
111
+ end
112
+
113
+ # Update properties of this object
114
+ def update!(**args)
115
+ @api_version = args[:api_version] if args.key?(:api_version)
116
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
117
+ @create_time = args[:create_time] if args.key?(:create_time)
118
+ @end_time = args[:end_time] if args.key?(:end_time)
119
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
120
+ @target = args[:target] if args.key?(:target)
121
+ @verb = args[:verb] if args.key?(:verb)
122
+ end
123
+ end
124
+
125
+ # Defines specific information for a particular zone. Currently empty and
126
+ # reserved for future use only.
127
+ class GoogleCloudRedisV1ZoneMetadata
128
+ include Google::Apis::Core::Hashable
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ end
137
+ end
138
+
139
+ # A Google Cloud Redis instance.
140
+ class Instance
141
+ include Google::Apis::Core::Hashable
142
+
143
+ # Optional. Only applicable to STANDARD_HA tier which protects the instance
144
+ # against zonal failures by provisioning it across two zones. If provided, it
145
+ # must be a different zone from the one provided in [location_id].
146
+ # Corresponds to the JSON property `alternativeLocationId`
147
+ # @return [String]
148
+ attr_accessor :alternative_location_id
149
+
150
+ # Optional. The full name of the Google Compute Engine
151
+ # [network](/compute/docs/networks-and-firewalls#networks) to which the
152
+ # instance is connected. If left unspecified, the `default` network
153
+ # will be used.
154
+ # Corresponds to the JSON property `authorizedNetwork`
155
+ # @return [String]
156
+ attr_accessor :authorized_network
157
+
158
+ # Output only. The time the instance was created.
159
+ # Corresponds to the JSON property `createTime`
160
+ # @return [String]
161
+ attr_accessor :create_time
162
+
163
+ # Output only. The current zone where the Redis endpoint is placed. For Basic
164
+ # Tier instances, this will always be the same as the [location_id]
165
+ # provided by the user at creation time. For Standard Tier instances,
166
+ # this can be either [location_id] or [alternative_location_id] and can
167
+ # change after a failover event.
168
+ # Corresponds to the JSON property `currentLocationId`
169
+ # @return [String]
170
+ attr_accessor :current_location_id
171
+
172
+ # An arbitrary and optional user-provided name for the instance.
173
+ # Corresponds to the JSON property `displayName`
174
+ # @return [String]
175
+ attr_accessor :display_name
176
+
177
+ # Output only. Hostname or IP address of the exposed Redis endpoint used by
178
+ # clients to connect to the service.
179
+ # Corresponds to the JSON property `host`
180
+ # @return [String]
181
+ attr_accessor :host
182
+
183
+ # Resource labels to represent user provided metadata
184
+ # Corresponds to the JSON property `labels`
185
+ # @return [Hash<String,String>]
186
+ attr_accessor :labels
187
+
188
+ # Optional. The zone where the instance will be provisioned. If not provided,
189
+ # the service will choose a zone for the instance. For STANDARD_HA tier,
190
+ # instances will be created across two zones for protection against zonal
191
+ # failures. If [alternative_location_id] is also provided, it must be
192
+ # different from [location_id].
193
+ # Corresponds to the JSON property `locationId`
194
+ # @return [String]
195
+ attr_accessor :location_id
196
+
197
+ # Required. Redis memory size in GiB.
198
+ # Corresponds to the JSON property `memorySizeGb`
199
+ # @return [Fixnum]
200
+ attr_accessor :memory_size_gb
201
+
202
+ # Required. Unique name of the resource in this scope including project and
203
+ # location using the form:
204
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
205
+ # Note: Redis instances are managed and addressed at regional level so
206
+ # location_id here refers to a GCP region; however, users may choose which
207
+ # specific zone (or collection of zones for cross-zone instances) an instance
208
+ # should be provisioned in. Refer to [location_id] and
209
+ # [alternative_location_id] fields for more details.
210
+ # Corresponds to the JSON property `name`
211
+ # @return [String]
212
+ attr_accessor :name
213
+
214
+ # Output only. The port number of the exposed Redis endpoint.
215
+ # Corresponds to the JSON property `port`
216
+ # @return [Fixnum]
217
+ attr_accessor :port
218
+
219
+ # Optional. Redis configuration parameters, according to
220
+ # http://redis.io/topics/config. Currently, the only supported parameters
221
+ # are:
222
+ # * maxmemory-policy
223
+ # * notify-keyspace-events
224
+ # Corresponds to the JSON property `redisConfigs`
225
+ # @return [Hash<String,String>]
226
+ attr_accessor :redis_configs
227
+
228
+ # Optional. The version of Redis software.
229
+ # If not provided, latest supported version will be used. Updating the
230
+ # version will perform an upgrade/downgrade to the new version. Currently,
231
+ # the supported values are `REDIS_3_2` for Redis 3.2.
232
+ # Corresponds to the JSON property `redisVersion`
233
+ # @return [String]
234
+ attr_accessor :redis_version
235
+
236
+ # Optional. The CIDR range of internal addresses that are reserved for this
237
+ # instance. If not provided, the service will choose an unused /29 block,
238
+ # for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
239
+ # and non-overlapping with existing subnets in an authorized network.
240
+ # Corresponds to the JSON property `reservedIpRange`
241
+ # @return [String]
242
+ attr_accessor :reserved_ip_range
243
+
244
+ # Output only. The current state of this instance.
245
+ # Corresponds to the JSON property `state`
246
+ # @return [String]
247
+ attr_accessor :state
248
+
249
+ # Output only. Additional information about the current status of this
250
+ # instance, if available.
251
+ # Corresponds to the JSON property `statusMessage`
252
+ # @return [String]
253
+ attr_accessor :status_message
254
+
255
+ # Required. The service tier of the instance.
256
+ # Corresponds to the JSON property `tier`
257
+ # @return [String]
258
+ attr_accessor :tier
259
+
260
+ def initialize(**args)
261
+ update!(**args)
262
+ end
263
+
264
+ # Update properties of this object
265
+ def update!(**args)
266
+ @alternative_location_id = args[:alternative_location_id] if args.key?(:alternative_location_id)
267
+ @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
268
+ @create_time = args[:create_time] if args.key?(:create_time)
269
+ @current_location_id = args[:current_location_id] if args.key?(:current_location_id)
270
+ @display_name = args[:display_name] if args.key?(:display_name)
271
+ @host = args[:host] if args.key?(:host)
272
+ @labels = args[:labels] if args.key?(:labels)
273
+ @location_id = args[:location_id] if args.key?(:location_id)
274
+ @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
275
+ @name = args[:name] if args.key?(:name)
276
+ @port = args[:port] if args.key?(:port)
277
+ @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
278
+ @redis_version = args[:redis_version] if args.key?(:redis_version)
279
+ @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
280
+ @state = args[:state] if args.key?(:state)
281
+ @status_message = args[:status_message] if args.key?(:status_message)
282
+ @tier = args[:tier] if args.key?(:tier)
283
+ end
284
+ end
285
+
286
+ # Response for ListInstances.
287
+ class ListInstancesResponse
288
+ include Google::Apis::Core::Hashable
289
+
290
+ # A list of Redis instances in the project in the specified location,
291
+ # or across all locations.
292
+ # If the `location_id` in the parent field of the request is "-", all regions
293
+ # available to the project are queried, and the results aggregated.
294
+ # If in such an aggregated query a location is unavailable, a dummy Redis
295
+ # entry is included in the response with the "name" field set to a value of
296
+ # the form projects/`project_id`/locations/`location_id`/instances/- and the
297
+ # "status" field set to ERROR and "status_message" field set to "location not
298
+ # available for ListInstances".
299
+ # Corresponds to the JSON property `instances`
300
+ # @return [Array<Google::Apis::RedisV1::Instance>]
301
+ attr_accessor :instances
302
+
303
+ # Token to retrieve the next page of results, or empty if there are no more
304
+ # results in the list.
305
+ # Corresponds to the JSON property `nextPageToken`
306
+ # @return [String]
307
+ attr_accessor :next_page_token
308
+
309
+ def initialize(**args)
310
+ update!(**args)
311
+ end
312
+
313
+ # Update properties of this object
314
+ def update!(**args)
315
+ @instances = args[:instances] if args.key?(:instances)
316
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
317
+ end
318
+ end
319
+
320
+ # The response message for Locations.ListLocations.
321
+ class ListLocationsResponse
322
+ include Google::Apis::Core::Hashable
323
+
324
+ # A list of locations that matches the specified filter in the request.
325
+ # Corresponds to the JSON property `locations`
326
+ # @return [Array<Google::Apis::RedisV1::Location>]
327
+ attr_accessor :locations
328
+
329
+ # The standard List next-page token.
330
+ # Corresponds to the JSON property `nextPageToken`
331
+ # @return [String]
332
+ attr_accessor :next_page_token
333
+
334
+ def initialize(**args)
335
+ update!(**args)
336
+ end
337
+
338
+ # Update properties of this object
339
+ def update!(**args)
340
+ @locations = args[:locations] if args.key?(:locations)
341
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
342
+ end
343
+ end
344
+
345
+ # The response message for Operations.ListOperations.
346
+ class ListOperationsResponse
347
+ include Google::Apis::Core::Hashable
348
+
349
+ # The standard List next-page token.
350
+ # Corresponds to the JSON property `nextPageToken`
351
+ # @return [String]
352
+ attr_accessor :next_page_token
353
+
354
+ # A list of operations that matches the specified filter in the request.
355
+ # Corresponds to the JSON property `operations`
356
+ # @return [Array<Google::Apis::RedisV1::Operation>]
357
+ attr_accessor :operations
358
+
359
+ def initialize(**args)
360
+ update!(**args)
361
+ end
362
+
363
+ # Update properties of this object
364
+ def update!(**args)
365
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
366
+ @operations = args[:operations] if args.key?(:operations)
367
+ end
368
+ end
369
+
370
+ # A resource that represents Google Cloud Platform location.
371
+ class Location
372
+ include Google::Apis::Core::Hashable
373
+
374
+ # The friendly name for this location, typically a nearby city name.
375
+ # For example, "Tokyo".
376
+ # Corresponds to the JSON property `displayName`
377
+ # @return [String]
378
+ attr_accessor :display_name
379
+
380
+ # Cross-service attributes for the location. For example
381
+ # `"cloud.googleapis.com/region": "us-east1"`
382
+ # Corresponds to the JSON property `labels`
383
+ # @return [Hash<String,String>]
384
+ attr_accessor :labels
385
+
386
+ # Resource ID for the region. For example: "us-east1".
387
+ # Corresponds to the JSON property `locationId`
388
+ # @return [String]
389
+ attr_accessor :location_id
390
+
391
+ # Output only. The set of available zones in the location. The map is keyed by
392
+ # the lowercase ID of each zone, as defined by Compute Engine. These keys can be
393
+ # specified in `location_id` or `alternative_location_id` fields when creating a
394
+ # Redis instance.
395
+ # Corresponds to the JSON property `metadata`
396
+ # @return [Hash<String,Object>]
397
+ attr_accessor :metadata
398
+
399
+ # Full resource name for the region. For example: "projects/example-project/
400
+ # locations/us-east1".
401
+ # Corresponds to the JSON property `name`
402
+ # @return [String]
403
+ attr_accessor :name
404
+
405
+ def initialize(**args)
406
+ update!(**args)
407
+ end
408
+
409
+ # Update properties of this object
410
+ def update!(**args)
411
+ @display_name = args[:display_name] if args.key?(:display_name)
412
+ @labels = args[:labels] if args.key?(:labels)
413
+ @location_id = args[:location_id] if args.key?(:location_id)
414
+ @metadata = args[:metadata] if args.key?(:metadata)
415
+ @name = args[:name] if args.key?(:name)
416
+ end
417
+ end
418
+
419
+ # This resource represents a long-running operation that is the result of a
420
+ # network API call.
421
+ class Operation
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # If the value is `false`, it means the operation is still in progress.
425
+ # If `true`, the operation is completed, and either `error` or `response` is
426
+ # available.
427
+ # Corresponds to the JSON property `done`
428
+ # @return [Boolean]
429
+ attr_accessor :done
430
+ alias_method :done?, :done
431
+
432
+ # The `Status` type defines a logical error model that is suitable for different
433
+ # programming environments, including REST APIs and RPC APIs. It is used by
434
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
435
+ # - Simple to use and understand for most users
436
+ # - Flexible enough to meet unexpected needs
437
+ # # Overview
438
+ # The `Status` message contains three pieces of data: error code, error message,
439
+ # and error details. The error code should be an enum value of
440
+ # google.rpc.Code, but it may accept additional error codes if needed. The
441
+ # error message should be a developer-facing English message that helps
442
+ # developers *understand* and *resolve* the error. If a localized user-facing
443
+ # error message is needed, put the localized message in the error details or
444
+ # localize it in the client. The optional error details may contain arbitrary
445
+ # information about the error. There is a predefined set of error detail types
446
+ # in the package `google.rpc` that can be used for common error conditions.
447
+ # # Language mapping
448
+ # The `Status` message is the logical representation of the error model, but it
449
+ # is not necessarily the actual wire format. When the `Status` message is
450
+ # exposed in different client libraries and different wire protocols, it can be
451
+ # mapped differently. For example, it will likely be mapped to some exceptions
452
+ # in Java, but more likely mapped to some error codes in C.
453
+ # # Other uses
454
+ # The error model and the `Status` message can be used in a variety of
455
+ # environments, either with or without APIs, to provide a
456
+ # consistent developer experience across different environments.
457
+ # Example uses of this error model include:
458
+ # - Partial errors. If a service needs to return partial errors to the client,
459
+ # it may embed the `Status` in the normal response to indicate the partial
460
+ # errors.
461
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
462
+ # have a `Status` message for error reporting.
463
+ # - Batch operations. If a client uses batch request and batch response, the
464
+ # `Status` message should be used directly inside batch response, one for
465
+ # each error sub-response.
466
+ # - Asynchronous operations. If an API call embeds asynchronous operation
467
+ # results in its response, the status of those operations should be
468
+ # represented directly using the `Status` message.
469
+ # - Logging. If some API errors are stored in logs, the message `Status` could
470
+ # be used directly after any stripping needed for security/privacy reasons.
471
+ # Corresponds to the JSON property `error`
472
+ # @return [Google::Apis::RedisV1::Status]
473
+ attr_accessor :error
474
+
475
+ # `
476
+ # `createTime`: The time the operation was created.
477
+ # `endTime`: The time the operation finished running.
478
+ # `target`: Server-defined resource path for the target of the operation.
479
+ # `verb`: Name of the verb executed by the operation.
480
+ # `statusDetail`: Human-readable status of the operation, if any.
481
+ # `cancelRequested`: Identifies whether the user has requested cancellation of
482
+ # the operation. Operations that have successfully been cancelled have Operation.
483
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
484
+ # CANCELLED`.
485
+ # `apiVersion`: API version used to start the operation.
486
+ # `
487
+ # Corresponds to the JSON property `metadata`
488
+ # @return [Hash<String,Object>]
489
+ attr_accessor :metadata
490
+
491
+ # The server-assigned name, which is only unique within the same service that
492
+ # originally returns it. If you use the default HTTP mapping, the
493
+ # `name` should have the format of `operations/some/unique/name`.
494
+ # Corresponds to the JSON property `name`
495
+ # @return [String]
496
+ attr_accessor :name
497
+
498
+ # The normal response of the operation in case of success. If the original
499
+ # method returns no data on success, such as `Delete`, the response is
500
+ # `google.protobuf.Empty`. If the original method is standard
501
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
502
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
503
+ # is the original method name. For example, if the original method name
504
+ # is `TakeSnapshot()`, the inferred response type is
505
+ # `TakeSnapshotResponse`.
506
+ # Corresponds to the JSON property `response`
507
+ # @return [Hash<String,Object>]
508
+ attr_accessor :response
509
+
510
+ def initialize(**args)
511
+ update!(**args)
512
+ end
513
+
514
+ # Update properties of this object
515
+ def update!(**args)
516
+ @done = args[:done] if args.key?(:done)
517
+ @error = args[:error] if args.key?(:error)
518
+ @metadata = args[:metadata] if args.key?(:metadata)
519
+ @name = args[:name] if args.key?(:name)
520
+ @response = args[:response] if args.key?(:response)
521
+ end
522
+ end
523
+
524
+ # The `Status` type defines a logical error model that is suitable for different
525
+ # programming environments, including REST APIs and RPC APIs. It is used by
526
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
527
+ # - Simple to use and understand for most users
528
+ # - Flexible enough to meet unexpected needs
529
+ # # Overview
530
+ # The `Status` message contains three pieces of data: error code, error message,
531
+ # and error details. The error code should be an enum value of
532
+ # google.rpc.Code, but it may accept additional error codes if needed. The
533
+ # error message should be a developer-facing English message that helps
534
+ # developers *understand* and *resolve* the error. If a localized user-facing
535
+ # error message is needed, put the localized message in the error details or
536
+ # localize it in the client. The optional error details may contain arbitrary
537
+ # information about the error. There is a predefined set of error detail types
538
+ # in the package `google.rpc` that can be used for common error conditions.
539
+ # # Language mapping
540
+ # The `Status` message is the logical representation of the error model, but it
541
+ # is not necessarily the actual wire format. When the `Status` message is
542
+ # exposed in different client libraries and different wire protocols, it can be
543
+ # mapped differently. For example, it will likely be mapped to some exceptions
544
+ # in Java, but more likely mapped to some error codes in C.
545
+ # # Other uses
546
+ # The error model and the `Status` message can be used in a variety of
547
+ # environments, either with or without APIs, to provide a
548
+ # consistent developer experience across different environments.
549
+ # Example uses of this error model include:
550
+ # - Partial errors. If a service needs to return partial errors to the client,
551
+ # it may embed the `Status` in the normal response to indicate the partial
552
+ # errors.
553
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
554
+ # have a `Status` message for error reporting.
555
+ # - Batch operations. If a client uses batch request and batch response, the
556
+ # `Status` message should be used directly inside batch response, one for
557
+ # each error sub-response.
558
+ # - Asynchronous operations. If an API call embeds asynchronous operation
559
+ # results in its response, the status of those operations should be
560
+ # represented directly using the `Status` message.
561
+ # - Logging. If some API errors are stored in logs, the message `Status` could
562
+ # be used directly after any stripping needed for security/privacy reasons.
563
+ class Status
564
+ include Google::Apis::Core::Hashable
565
+
566
+ # The status code, which should be an enum value of google.rpc.Code.
567
+ # Corresponds to the JSON property `code`
568
+ # @return [Fixnum]
569
+ attr_accessor :code
570
+
571
+ # A list of messages that carry the error details. There is a common set of
572
+ # message types for APIs to use.
573
+ # Corresponds to the JSON property `details`
574
+ # @return [Array<Hash<String,Object>>]
575
+ attr_accessor :details
576
+
577
+ # A developer-facing error message, which should be in English. Any
578
+ # user-facing error message should be localized and sent in the
579
+ # google.rpc.Status.details field, or localized by the client.
580
+ # Corresponds to the JSON property `message`
581
+ # @return [String]
582
+ attr_accessor :message
583
+
584
+ def initialize(**args)
585
+ update!(**args)
586
+ end
587
+
588
+ # Update properties of this object
589
+ def update!(**args)
590
+ @code = args[:code] if args.key?(:code)
591
+ @details = args[:details] if args.key?(:details)
592
+ @message = args[:message] if args.key?(:message)
593
+ end
594
+ end
595
+ end
596
+ end
597
+ end