google-apis-redis_v1 0.13.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e74f91f65bfb7e8c1f5a13e9977ab2daa56d2742a257f163e79290910b2485f
4
- data.tar.gz: 4e10f6242685387c382237fa0a1bc9e4b2ff5cae71e1c6fd8531342aa2f07801
3
+ metadata.gz: c8f3bc03ff1b14f71dc7adb60b14954c23d9d538aa894e9c9bf9b6425d567b04
4
+ data.tar.gz: d6791317d45c01a4d05cfb9c48150f3b7ef3cab0a4b5bf0605389225847727d3
5
5
  SHA512:
6
- metadata.gz: 2d99d5df2c0de9d676692d22282e8a63c439e848137c64672f40ae9ee01ec05d93555a4b026e3b4e42b2af4f4b5d43bdbfbc1569c30454612f11073fe814f913
7
- data.tar.gz: 576e352111113bac09514aae0340ba10645357e9788d243da3562ec4c958baf94b2ff7ccceaac34f7e61c4e61ace526faec6f607920fab5a2c1a98924c791e9d
6
+ metadata.gz: eaf63fccdbef8e5624f2afe721d3fafc8066014a4f5d2ff13ae38481eac1c3b09f78e529e7c8bd5740f6897ac6604c5af448c8b7f1072c1e3ade0805add16ca8
7
+ data.tar.gz: 2e6e05ddaf10b9cb720a73f982c4eca3229fbd4f49466db6a89ad1d52812151798f446ef0cc2bde3eb62fd59c202949a40da458629f2c7ce7c88992848766f9e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.17.0 (2021-10-30)
4
+
5
+ * Regenerated from discovery document revision 20211021
6
+
7
+ ### v0.16.0 (2021-10-20)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.15.0 (2021-10-10)
12
+
13
+ * Regenerated from discovery document revision 20210930
14
+
15
+ ### v0.14.0 (2021-09-15)
16
+
17
+ * Regenerated from discovery document revision 20210909
18
+
3
19
  ### v0.13.0 (2021-08-18)
4
20
 
5
21
  * Regenerated from discovery document revision 20210813
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Redis service in particular.)
67
67
 
@@ -249,13 +249,15 @@ module Google
249
249
  end
250
250
  end
251
251
 
252
- # A Google Cloud Redis instance. next id = 36
252
+ # A Google Cloud Redis instance. next id = 38
253
253
  class Instance
254
254
  include Google::Apis::Core::Hashable
255
255
 
256
- # Optional. Only applicable to STANDARD_HA tier which protects the instance
257
- # against zonal failures by provisioning it across two zones. If provided, it
258
- # must be a different zone from the one provided in location_id.
256
+ # Optional. If specified, at least one node will be provisioned in this zone in
257
+ # addition to the zone specified in location_id. Only applicable to standard
258
+ # tier. If provided, it must be a different zone from the one provided in [
259
+ # location_id]. Additional nodes beyond the first 2 will be placed in zones
260
+ # selected by the service.
259
261
  # Corresponds to the JSON property `alternativeLocationId`
260
262
  # @return [String]
261
263
  attr_accessor :alternative_location_id
@@ -286,10 +288,9 @@ module Google
286
288
  # @return [String]
287
289
  attr_accessor :create_time
288
290
 
289
- # Output only. The current zone where the Redis endpoint is placed. For Basic
290
- # Tier instances, this will always be the same as the location_id provided by
291
- # the user at creation time. For Standard Tier instances, this can be either
292
- # location_id or alternative_location_id and can change after a failover event.
291
+ # Output only. The current zone where the Redis primary node is located. In
292
+ # basic tier, this will always be the same as [location_id]. In standard tier,
293
+ # this can be the zone of any node in the instance.
293
294
  # Corresponds to the JSON property `currentLocationId`
294
295
  # @return [String]
295
296
  attr_accessor :current_location_id
@@ -312,9 +313,9 @@ module Google
312
313
 
313
314
  # Optional. The zone where the instance will be provisioned. If not provided,
314
315
  # the service will choose a zone from the specified region for the instance. For
315
- # standard tier, instances will be created across two zones for protection
316
- # against zonal failures. If [alternative_location_id] is also provided, it must
317
- # be different from [location_id].
316
+ # standard tier, additional nodes will be added across multiple zones for
317
+ # protection against zonal failures. If specified, at least one node will be
318
+ # provisioned in this zone.
318
319
  # Corresponds to the JSON property `locationId`
319
320
  # @return [String]
320
321
  attr_accessor :location_id
@@ -346,6 +347,16 @@ module Google
346
347
  # @return [String]
347
348
  attr_accessor :name
348
349
 
350
+ # Output only. Info per node.
351
+ # Corresponds to the JSON property `nodes`
352
+ # @return [Array<Google::Apis::RedisV1::NodeInfo>]
353
+ attr_accessor :nodes
354
+
355
+ # Configuration of the persistence functionality.
356
+ # Corresponds to the JSON property `persistenceConfig`
357
+ # @return [Google::Apis::RedisV1::PersistenceConfig]
358
+ attr_accessor :persistence_config
359
+
349
360
  # Output only. Cloud IAM identity used by import / export operations to transfer
350
361
  # data to/from Cloud Storage. Format is "serviceAccount:". The value may change
351
362
  # over time for a given instance so should be checked before each import/export
@@ -359,6 +370,25 @@ module Google
359
370
  # @return [Fixnum]
360
371
  attr_accessor :port
361
372
 
373
+ # Output only. Hostname or IP address of the exposed readonly Redis endpoint.
374
+ # Standard tier only. Targets all healthy replica nodes in instance. Replication
375
+ # is asynchronous and replica nodes will exhibit some lag behind the primary.
376
+ # Write requests must target 'host'.
377
+ # Corresponds to the JSON property `readEndpoint`
378
+ # @return [String]
379
+ attr_accessor :read_endpoint
380
+
381
+ # Output only. The port number of the exposed readonly redis endpoint. Standard
382
+ # tier only. Write requests should target 'port'.
383
+ # Corresponds to the JSON property `readEndpointPort`
384
+ # @return [Fixnum]
385
+ attr_accessor :read_endpoint_port
386
+
387
+ # Optional. Read replica mode.
388
+ # Corresponds to the JSON property `readReplicasMode`
389
+ # @return [String]
390
+ attr_accessor :read_replicas_mode
391
+
362
392
  # Optional. Redis configuration parameters, according to http://redis.io/topics/
363
393
  # config. Currently, the only supported parameters are: Redis version 3.2 and
364
394
  # newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer:
@@ -377,12 +407,19 @@ module Google
377
407
  # @return [String]
378
408
  attr_accessor :redis_version
379
409
 
410
+ # Optional. The number of replica nodes. Valid range for standard tier is [1-5]
411
+ # and defaults to 2. Valid value for basic tier is 0 and defaults to 0.
412
+ # Corresponds to the JSON property `replicaCount`
413
+ # @return [Fixnum]
414
+ attr_accessor :replica_count
415
+
380
416
  # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that
381
417
  # are reserved for this instance. Range must be unique and non-overlapping with
382
418
  # existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode,
383
419
  # the name of one allocated IP address ranges associated with this private
384
420
  # service access connection. If not provided, the service will choose an unused /
385
- # 29 block, for example, 10.0.0.0/29 or 192.168.0.0/29.
421
+ # 29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For
422
+ # READ_REPLICAS_ENABLED the default block size is /28.
386
423
  # Corresponds to the JSON property `reservedIpRange`
387
424
  # @return [String]
388
425
  attr_accessor :reserved_ip_range
@@ -434,10 +471,16 @@ module Google
434
471
  @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
435
472
  @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
436
473
  @name = args[:name] if args.key?(:name)
474
+ @nodes = args[:nodes] if args.key?(:nodes)
475
+ @persistence_config = args[:persistence_config] if args.key?(:persistence_config)
437
476
  @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
438
477
  @port = args[:port] if args.key?(:port)
478
+ @read_endpoint = args[:read_endpoint] if args.key?(:read_endpoint)
479
+ @read_endpoint_port = args[:read_endpoint_port] if args.key?(:read_endpoint_port)
480
+ @read_replicas_mode = args[:read_replicas_mode] if args.key?(:read_replicas_mode)
439
481
  @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
440
482
  @redis_version = args[:redis_version] if args.key?(:redis_version)
483
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
441
484
  @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
442
485
  @server_ca_certs = args[:server_ca_certs] if args.key?(:server_ca_certs)
443
486
  @state = args[:state] if args.key?(:state)
@@ -686,6 +729,31 @@ module Google
686
729
  end
687
730
  end
688
731
 
732
+ # Node specific properties.
733
+ class NodeInfo
734
+ include Google::Apis::Core::Hashable
735
+
736
+ # Output only. Node identifying string. e.g. 'node-0', 'node-1'
737
+ # Corresponds to the JSON property `id`
738
+ # @return [String]
739
+ attr_accessor :id
740
+
741
+ # Output only. Location of the node.
742
+ # Corresponds to the JSON property `zone`
743
+ # @return [String]
744
+ attr_accessor :zone
745
+
746
+ def initialize(**args)
747
+ update!(**args)
748
+ end
749
+
750
+ # Update properties of this object
751
+ def update!(**args)
752
+ @id = args[:id] if args.key?(:id)
753
+ @zone = args[:zone] if args.key?(:zone)
754
+ end
755
+ end
756
+
689
757
  # This resource represents a long-running operation that is the result of a
690
758
  # network API call.
691
759
  class Operation
@@ -771,6 +839,51 @@ module Google
771
839
  end
772
840
  end
773
841
 
842
+ # Configuration of the persistence functionality.
843
+ class PersistenceConfig
844
+ include Google::Apis::Core::Hashable
845
+
846
+ # Optional. Controls whether Persistence features are enabled. If not provided,
847
+ # the existing value will be used.
848
+ # Corresponds to the JSON property `persistenceMode`
849
+ # @return [String]
850
+ attr_accessor :persistence_mode
851
+
852
+ # Output only. The next time that a snapshot attempt is scheduled to occur.
853
+ # Corresponds to the JSON property `rdbNextSnapshotTime`
854
+ # @return [String]
855
+ attr_accessor :rdb_next_snapshot_time
856
+
857
+ # Optional. Period between RDB snapshots. Snapshots will be attempted every
858
+ # period starting from the provided snapshot start time. For example, a start
859
+ # time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until
860
+ # 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and
861
+ # 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used
862
+ # as default.
863
+ # Corresponds to the JSON property `rdbSnapshotPeriod`
864
+ # @return [String]
865
+ attr_accessor :rdb_snapshot_period
866
+
867
+ # Optional. Date and time that the first snapshot was/will be attempted, and to
868
+ # which future snapshots will be aligned. If not provided, the current time will
869
+ # be used.
870
+ # Corresponds to the JSON property `rdbSnapshotStartTime`
871
+ # @return [String]
872
+ attr_accessor :rdb_snapshot_start_time
873
+
874
+ def initialize(**args)
875
+ update!(**args)
876
+ end
877
+
878
+ # Update properties of this object
879
+ def update!(**args)
880
+ @persistence_mode = args[:persistence_mode] if args.key?(:persistence_mode)
881
+ @rdb_next_snapshot_time = args[:rdb_next_snapshot_time] if args.key?(:rdb_next_snapshot_time)
882
+ @rdb_snapshot_period = args[:rdb_snapshot_period] if args.key?(:rdb_snapshot_period)
883
+ @rdb_snapshot_start_time = args[:rdb_snapshot_start_time] if args.key?(:rdb_snapshot_start_time)
884
+ end
885
+ end
886
+
774
887
  # Request for RescheduleMaintenance.
775
888
  class RescheduleMaintenanceRequest
776
889
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RedisV1
18
18
  # Version of the google-apis-redis_v1 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210813"
25
+ REVISION = "20211021"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class NodeInfo
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class Operation
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -142,6 +148,12 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class PersistenceConfig
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
145
157
  class RescheduleMaintenanceRequest
146
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
159
 
@@ -275,10 +287,18 @@ module Google
275
287
 
276
288
  property :memory_size_gb, as: 'memorySizeGb'
277
289
  property :name, as: 'name'
290
+ collection :nodes, as: 'nodes', class: Google::Apis::RedisV1::NodeInfo, decorator: Google::Apis::RedisV1::NodeInfo::Representation
291
+
292
+ property :persistence_config, as: 'persistenceConfig', class: Google::Apis::RedisV1::PersistenceConfig, decorator: Google::Apis::RedisV1::PersistenceConfig::Representation
293
+
278
294
  property :persistence_iam_identity, as: 'persistenceIamIdentity'
279
295
  property :port, as: 'port'
296
+ property :read_endpoint, as: 'readEndpoint'
297
+ property :read_endpoint_port, as: 'readEndpointPort'
298
+ property :read_replicas_mode, as: 'readReplicasMode'
280
299
  hash :redis_configs, as: 'redisConfigs'
281
300
  property :redis_version, as: 'redisVersion'
301
+ property :replica_count, as: 'replicaCount'
282
302
  property :reserved_ip_range, as: 'reservedIpRange'
283
303
  collection :server_ca_certs, as: 'serverCaCerts', class: Google::Apis::RedisV1::TlsCertificate, decorator: Google::Apis::RedisV1::TlsCertificate::Representation
284
304
 
@@ -356,6 +376,14 @@ module Google
356
376
  end
357
377
  end
358
378
 
379
+ class NodeInfo
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :id, as: 'id'
383
+ property :zone, as: 'zone'
384
+ end
385
+ end
386
+
359
387
  class Operation
360
388
  # @private
361
389
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -376,6 +404,16 @@ module Google
376
404
  end
377
405
  end
378
406
 
407
+ class PersistenceConfig
408
+ # @private
409
+ class Representation < Google::Apis::Core::JsonRepresentation
410
+ property :persistence_mode, as: 'persistenceMode'
411
+ property :rdb_next_snapshot_time, as: 'rdbNextSnapshotTime'
412
+ property :rdb_snapshot_period, as: 'rdbSnapshotPeriod'
413
+ property :rdb_snapshot_start_time, as: 'rdbSnapshotStartTime'
414
+ end
415
+ end
416
+
379
417
  class RescheduleMaintenanceRequest
380
418
  # @private
381
419
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -445,7 +445,8 @@ module Google
445
445
  # @param [String] update_mask
446
446
  # Required. Mask of fields to update. At least one path must be supplied in this
447
447
  # field. The elements of the repeated paths field may only include these fields
448
- # from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig`
448
+ # from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `
449
+ # replica_count`
449
450
  # @param [String] fields
450
451
  # Selector specifying which fields to include in a partial response.
451
452
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-redis_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-23 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.13.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.17.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: