google-apis-redis_v1 0.14.0 → 0.18.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: 68947ed54637336310cd45608e63e16dfe280191773219b252f2d04eff0f0a64
4
- data.tar.gz: 49dc00c9aad62c9f39b6fc194b8242e1b4329425c8c13cb8ccd8ed034390c85a
3
+ metadata.gz: 33e5ff1c9e52a524060e6dcb69a3b89e23dc7ade43f583c867264639718b2040
4
+ data.tar.gz: d97d1564deb398cbbfd4f1996a69de7f05dac8ee4bd3c2534ab10a1efb1ddd5e
5
5
  SHA512:
6
- metadata.gz: e6ba42e81e9c9ad815b25fcb06d1fcb80bff098e57d89dc6adb8ef17a9e7344fab06f9b6fea645c204f638335aff932978fb1e628661fe95abdc083fad3c8146
7
- data.tar.gz: 5b30bdd0fa2657e6db07cb3709366884763621a5c73b52dfd02e9ed3a29bf4ff11cad6c7e045299a16a8832de3f7264dbf9034ad7b1588dae994fdab8e30a9be
6
+ metadata.gz: 035d262d030c38a90ef411a0dac366a1f64300aabfcd171488b351a8d2bbf6d249dd231b58d2689f702127e4f3712b5ce27a4e9e8219fabbdf150ccf6fb4c8b4
7
+ data.tar.gz: ce038f2c5a60a17808bea21b3eabaca97709733fe8105fd056f77550ea2028eedd483dd0a63425b9b4fca98866d0e0388e83a32500ed266190d70d2281a9ecd9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.18.0 (2021-11-13)
4
+
5
+ * Regenerated from discovery document revision 20211104
6
+
7
+ ### v0.17.0 (2021-10-30)
8
+
9
+ * Regenerated from discovery document revision 20211021
10
+
11
+ ### v0.16.0 (2021-10-20)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.15.0 (2021-10-10)
16
+
17
+ * Regenerated from discovery document revision 20210930
18
+
3
19
  ### v0.14.0 (2021-09-15)
4
20
 
5
21
  * Regenerated from discovery document revision 20210909
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 = 37
252
+ # A Google Cloud Redis instance.
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,26 @@ 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. Can only be specified when trying to create the
388
+ # instance.
389
+ # Corresponds to the JSON property `readReplicasMode`
390
+ # @return [String]
391
+ attr_accessor :read_replicas_mode
392
+
362
393
  # Optional. Redis configuration parameters, according to http://redis.io/topics/
363
394
  # config. Currently, the only supported parameters are: Redis version 3.2 and
364
395
  # newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer:
@@ -377,12 +408,21 @@ module Google
377
408
  # @return [String]
378
409
  attr_accessor :redis_version
379
410
 
411
+ # Optional. The number of replica nodes. The valid range for the Standard Tier
412
+ # with read replicas enabled is [1-5] and defaults to 2. If read replicas are
413
+ # not enabled for a Standard Tier instance, the only valid value is 1 and the
414
+ # default is 1. The valid value for basic tier is 0 and the default is also 0.
415
+ # Corresponds to the JSON property `replicaCount`
416
+ # @return [Fixnum]
417
+ attr_accessor :replica_count
418
+
380
419
  # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that
381
420
  # are reserved for this instance. Range must be unique and non-overlapping with
382
421
  # existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode,
383
422
  # the name of one allocated IP address ranges associated with this private
384
423
  # 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.
424
+ # 29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For
425
+ # READ_REPLICAS_ENABLED the default block size is /28.
386
426
  # Corresponds to the JSON property `reservedIpRange`
387
427
  # @return [String]
388
428
  attr_accessor :reserved_ip_range
@@ -434,10 +474,16 @@ module Google
434
474
  @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
435
475
  @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
436
476
  @name = args[:name] if args.key?(:name)
477
+ @nodes = args[:nodes] if args.key?(:nodes)
478
+ @persistence_config = args[:persistence_config] if args.key?(:persistence_config)
437
479
  @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
438
480
  @port = args[:port] if args.key?(:port)
481
+ @read_endpoint = args[:read_endpoint] if args.key?(:read_endpoint)
482
+ @read_endpoint_port = args[:read_endpoint_port] if args.key?(:read_endpoint_port)
483
+ @read_replicas_mode = args[:read_replicas_mode] if args.key?(:read_replicas_mode)
439
484
  @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
440
485
  @redis_version = args[:redis_version] if args.key?(:redis_version)
486
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
441
487
  @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
442
488
  @server_ca_certs = args[:server_ca_certs] if args.key?(:server_ca_certs)
443
489
  @state = args[:state] if args.key?(:state)
@@ -686,6 +732,31 @@ module Google
686
732
  end
687
733
  end
688
734
 
735
+ # Node specific properties.
736
+ class NodeInfo
737
+ include Google::Apis::Core::Hashable
738
+
739
+ # Output only. Node identifying string. e.g. 'node-0', 'node-1'
740
+ # Corresponds to the JSON property `id`
741
+ # @return [String]
742
+ attr_accessor :id
743
+
744
+ # Output only. Location of the node.
745
+ # Corresponds to the JSON property `zone`
746
+ # @return [String]
747
+ attr_accessor :zone
748
+
749
+ def initialize(**args)
750
+ update!(**args)
751
+ end
752
+
753
+ # Update properties of this object
754
+ def update!(**args)
755
+ @id = args[:id] if args.key?(:id)
756
+ @zone = args[:zone] if args.key?(:zone)
757
+ end
758
+ end
759
+
689
760
  # This resource represents a long-running operation that is the result of a
690
761
  # network API call.
691
762
  class Operation
@@ -771,6 +842,51 @@ module Google
771
842
  end
772
843
  end
773
844
 
845
+ # Configuration of the persistence functionality.
846
+ class PersistenceConfig
847
+ include Google::Apis::Core::Hashable
848
+
849
+ # Optional. Controls whether Persistence features are enabled. If not provided,
850
+ # the existing value will be used.
851
+ # Corresponds to the JSON property `persistenceMode`
852
+ # @return [String]
853
+ attr_accessor :persistence_mode
854
+
855
+ # Output only. The next time that a snapshot attempt is scheduled to occur.
856
+ # Corresponds to the JSON property `rdbNextSnapshotTime`
857
+ # @return [String]
858
+ attr_accessor :rdb_next_snapshot_time
859
+
860
+ # Optional. Period between RDB snapshots. Snapshots will be attempted every
861
+ # period starting from the provided snapshot start time. For example, a start
862
+ # time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until
863
+ # 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and
864
+ # 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used
865
+ # as default.
866
+ # Corresponds to the JSON property `rdbSnapshotPeriod`
867
+ # @return [String]
868
+ attr_accessor :rdb_snapshot_period
869
+
870
+ # Optional. Date and time that the first snapshot was/will be attempted, and to
871
+ # which future snapshots will be aligned. If not provided, the current time will
872
+ # be used.
873
+ # Corresponds to the JSON property `rdbSnapshotStartTime`
874
+ # @return [String]
875
+ attr_accessor :rdb_snapshot_start_time
876
+
877
+ def initialize(**args)
878
+ update!(**args)
879
+ end
880
+
881
+ # Update properties of this object
882
+ def update!(**args)
883
+ @persistence_mode = args[:persistence_mode] if args.key?(:persistence_mode)
884
+ @rdb_next_snapshot_time = args[:rdb_next_snapshot_time] if args.key?(:rdb_next_snapshot_time)
885
+ @rdb_snapshot_period = args[:rdb_snapshot_period] if args.key?(:rdb_snapshot_period)
886
+ @rdb_snapshot_start_time = args[:rdb_snapshot_start_time] if args.key?(:rdb_snapshot_start_time)
887
+ end
888
+ end
889
+
774
890
  # Request for RescheduleMaintenance.
775
891
  class RescheduleMaintenanceRequest
776
892
  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.14.0"
19
+ GEM_VERSION = "0.18.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 = "20210909"
25
+ REVISION = "20211104"
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.14.0
4
+ version: 0.18.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-09-20 00:00:00.000000000 Z
11
+ date: 2021-11-15 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.14.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.18.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: