google-apis-redis_v1beta1 0.12.0 → 0.16.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: 3faefdbc9bdd7150296ffb87b54dbdc2a8d7dd101d356f02d8d3189eeb1d4198
4
- data.tar.gz: b1df596a41ae03a6a8a923e4a948fb39b2c7dba81d7ca837a4a997b9b20db62e
3
+ metadata.gz: 1570294f2f76d3e563d027484078ad50f1f90c6801038287a38fcebf1943ac82
4
+ data.tar.gz: 7d2ce3806f3f1c634e302f4b232a846dce48f718775064378f9e7f1c8d4f540c
5
5
  SHA512:
6
- metadata.gz: 7c56a00be26f0685285cc515de725886a169a9fd39fa582fc4c0bbf0f1936a1ba4a7bbcc7a8d14fc33afebc627689593916afcc45ade03b90e5fe8f093787927
7
- data.tar.gz: a737be2b1482f81b281aca0c213be5742cc4d1f894b625e1da87a28dd32ecadb232eddd6a637b7fd7738fee827f63851fa4cc0961bbc05b4f28372bb1e8ceb0a
6
+ metadata.gz: 494d797b205872957f1e628101d0be689b531ed6dbf18e6ca495f03d1eaef957c1159d451740c9d89099eb62a9b9b0432fc385911f2cba0caaff63539a2bcfc7
7
+ data.tar.gz: 16312bf0a9c0946fc9236619fd7808fb168cf146e7ed4178e9161603abd15219ffc3ebcf64d3596474cc527d435b4668f14972a304138838be465e2e30f28c61
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-redis_v1beta1
2
2
 
3
+ ### v0.16.0 (2021-11-13)
4
+
5
+ * Regenerated from discovery document revision 20211104
6
+
7
+ ### v0.15.0 (2021-10-30)
8
+
9
+ * Regenerated from discovery document revision 20211021
10
+
11
+ ### v0.14.0 (2021-10-20)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.13.0 (2021-10-10)
16
+
17
+ * Regenerated from discovery document revision 20210930
18
+
3
19
  ### v0.12.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
 
@@ -252,13 +252,15 @@ module Google
252
252
  end
253
253
  end
254
254
 
255
- # A Google Cloud Redis instance. next id = 37
255
+ # A Google Cloud Redis instance.
256
256
  class Instance
257
257
  include Google::Apis::Core::Hashable
258
258
 
259
- # Optional. Only applicable to STANDARD_HA tier which protects the instance
260
- # against zonal failures by provisioning it across two zones. If provided, it
261
- # must be a different zone from the one provided in location_id.
259
+ # Optional. If specified, at least one node will be provisioned in this zone in
260
+ # addition to the zone specified in location_id. Only applicable to standard
261
+ # tier. If provided, it must be a different zone from the one provided in [
262
+ # location_id]. Additional nodes beyond the first 2 will be placed in zones
263
+ # selected by the service.
262
264
  # Corresponds to the JSON property `alternativeLocationId`
263
265
  # @return [String]
264
266
  attr_accessor :alternative_location_id
@@ -289,10 +291,9 @@ module Google
289
291
  # @return [String]
290
292
  attr_accessor :create_time
291
293
 
292
- # Output only. The current zone where the Redis endpoint is placed. For Basic
293
- # Tier instances, this will always be the same as the location_id provided by
294
- # the user at creation time. For Standard Tier instances, this can be either
295
- # location_id or alternative_location_id and can change after a failover event.
294
+ # Output only. The current zone where the Redis primary node is located. In
295
+ # basic tier, this will always be the same as [location_id]. In standard tier,
296
+ # this can be the zone of any node in the instance.
296
297
  # Corresponds to the JSON property `currentLocationId`
297
298
  # @return [String]
298
299
  attr_accessor :current_location_id
@@ -315,9 +316,9 @@ module Google
315
316
 
316
317
  # Optional. The zone where the instance will be provisioned. If not provided,
317
318
  # the service will choose a zone from the specified region for the instance. For
318
- # standard tier, instances will be created across two zones for protection
319
- # against zonal failures. If [alternative_location_id] is also provided, it must
320
- # be different from [location_id].
319
+ # standard tier, additional nodes will be added across multiple zones for
320
+ # protection against zonal failures. If specified, at least one node will be
321
+ # provisioned in this zone.
321
322
  # Corresponds to the JSON property `locationId`
322
323
  # @return [String]
323
324
  attr_accessor :location_id
@@ -349,6 +350,16 @@ module Google
349
350
  # @return [String]
350
351
  attr_accessor :name
351
352
 
353
+ # Output only. Info per node.
354
+ # Corresponds to the JSON property `nodes`
355
+ # @return [Array<Google::Apis::RedisV1beta1::NodeInfo>]
356
+ attr_accessor :nodes
357
+
358
+ # Configuration of the persistence functionality.
359
+ # Corresponds to the JSON property `persistenceConfig`
360
+ # @return [Google::Apis::RedisV1beta1::PersistenceConfig]
361
+ attr_accessor :persistence_config
362
+
352
363
  # Output only. Cloud IAM identity used by import / export operations to transfer
353
364
  # data to/from Cloud Storage. Format is "serviceAccount:". The value may change
354
365
  # over time for a given instance so should be checked before each import/export
@@ -362,6 +373,26 @@ module Google
362
373
  # @return [Fixnum]
363
374
  attr_accessor :port
364
375
 
376
+ # Output only. Hostname or IP address of the exposed readonly Redis endpoint.
377
+ # Standard tier only. Targets all healthy replica nodes in instance. Replication
378
+ # is asynchronous and replica nodes will exhibit some lag behind the primary.
379
+ # Write requests must target 'host'.
380
+ # Corresponds to the JSON property `readEndpoint`
381
+ # @return [String]
382
+ attr_accessor :read_endpoint
383
+
384
+ # Output only. The port number of the exposed readonly redis endpoint. Standard
385
+ # tier only. Write requests should target 'port'.
386
+ # Corresponds to the JSON property `readEndpointPort`
387
+ # @return [Fixnum]
388
+ attr_accessor :read_endpoint_port
389
+
390
+ # Optional. Read replica mode. Can only be specified when trying to create the
391
+ # instance.
392
+ # Corresponds to the JSON property `readReplicasMode`
393
+ # @return [String]
394
+ attr_accessor :read_replicas_mode
395
+
365
396
  # Optional. Redis configuration parameters, according to http://redis.io/topics/
366
397
  # config. Currently, the only supported parameters are: Redis version 3.2 and
367
398
  # newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer:
@@ -380,12 +411,21 @@ module Google
380
411
  # @return [String]
381
412
  attr_accessor :redis_version
382
413
 
414
+ # Optional. The number of replica nodes. The valid range for the Standard Tier
415
+ # with read replicas enabled is [1-5] and defaults to 2. If read replicas are
416
+ # not enabled for a Standard Tier instance, the only valid value is 1 and the
417
+ # default is 1. The valid value for basic tier is 0 and the default is also 0.
418
+ # Corresponds to the JSON property `replicaCount`
419
+ # @return [Fixnum]
420
+ attr_accessor :replica_count
421
+
383
422
  # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that
384
423
  # are reserved for this instance. Range must be unique and non-overlapping with
385
424
  # existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode,
386
425
  # the name of one allocated IP address ranges associated with this private
387
426
  # service access connection. If not provided, the service will choose an unused /
388
- # 29 block, for example, 10.0.0.0/29 or 192.168.0.0/29.
427
+ # 29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For
428
+ # READ_REPLICAS_ENABLED the default block size is /28.
389
429
  # Corresponds to the JSON property `reservedIpRange`
390
430
  # @return [String]
391
431
  attr_accessor :reserved_ip_range
@@ -437,10 +477,16 @@ module Google
437
477
  @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
438
478
  @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
439
479
  @name = args[:name] if args.key?(:name)
480
+ @nodes = args[:nodes] if args.key?(:nodes)
481
+ @persistence_config = args[:persistence_config] if args.key?(:persistence_config)
440
482
  @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
441
483
  @port = args[:port] if args.key?(:port)
484
+ @read_endpoint = args[:read_endpoint] if args.key?(:read_endpoint)
485
+ @read_endpoint_port = args[:read_endpoint_port] if args.key?(:read_endpoint_port)
486
+ @read_replicas_mode = args[:read_replicas_mode] if args.key?(:read_replicas_mode)
442
487
  @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
443
488
  @redis_version = args[:redis_version] if args.key?(:redis_version)
489
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
444
490
  @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
445
491
  @server_ca_certs = args[:server_ca_certs] if args.key?(:server_ca_certs)
446
492
  @state = args[:state] if args.key?(:state)
@@ -664,8 +710,8 @@ module Google
664
710
  # @return [String]
665
711
  attr_accessor :end_time
666
712
 
667
- # Output only. The time deadline any schedule start time cannot go beyond,
668
- # including reschedule.
713
+ # Output only. The deadline that the maintenance schedule start time can not go
714
+ # beyond, including reschedule.
669
715
  # Corresponds to the JSON property `scheduleDeadlineTime`
670
716
  # @return [String]
671
717
  attr_accessor :schedule_deadline_time
@@ -689,6 +735,31 @@ module Google
689
735
  end
690
736
  end
691
737
 
738
+ # Node specific properties.
739
+ class NodeInfo
740
+ include Google::Apis::Core::Hashable
741
+
742
+ # Output only. Node identifying string. e.g. 'node-0', 'node-1'
743
+ # Corresponds to the JSON property `id`
744
+ # @return [String]
745
+ attr_accessor :id
746
+
747
+ # Output only. Location of the node.
748
+ # Corresponds to the JSON property `zone`
749
+ # @return [String]
750
+ attr_accessor :zone
751
+
752
+ def initialize(**args)
753
+ update!(**args)
754
+ end
755
+
756
+ # Update properties of this object
757
+ def update!(**args)
758
+ @id = args[:id] if args.key?(:id)
759
+ @zone = args[:zone] if args.key?(:zone)
760
+ end
761
+ end
762
+
692
763
  # This resource represents a long-running operation that is the result of a
693
764
  # network API call.
694
765
  class Operation
@@ -774,6 +845,51 @@ module Google
774
845
  end
775
846
  end
776
847
 
848
+ # Configuration of the persistence functionality.
849
+ class PersistenceConfig
850
+ include Google::Apis::Core::Hashable
851
+
852
+ # Optional. Controls whether Persistence features are enabled. If not provided,
853
+ # the existing value will be used.
854
+ # Corresponds to the JSON property `persistenceMode`
855
+ # @return [String]
856
+ attr_accessor :persistence_mode
857
+
858
+ # Output only. The next time that a snapshot attempt is scheduled to occur.
859
+ # Corresponds to the JSON property `rdbNextSnapshotTime`
860
+ # @return [String]
861
+ attr_accessor :rdb_next_snapshot_time
862
+
863
+ # Optional. Period between RDB snapshots. Snapshots will be attempted every
864
+ # period starting from the provided snapshot start time. For example, a start
865
+ # time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until
866
+ # 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and
867
+ # 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used
868
+ # as default.
869
+ # Corresponds to the JSON property `rdbSnapshotPeriod`
870
+ # @return [String]
871
+ attr_accessor :rdb_snapshot_period
872
+
873
+ # Optional. Date and time that the first snapshot was/will be attempted, and to
874
+ # which future snapshots will be aligned. If not provided, the current time will
875
+ # be used.
876
+ # Corresponds to the JSON property `rdbSnapshotStartTime`
877
+ # @return [String]
878
+ attr_accessor :rdb_snapshot_start_time
879
+
880
+ def initialize(**args)
881
+ update!(**args)
882
+ end
883
+
884
+ # Update properties of this object
885
+ def update!(**args)
886
+ @persistence_mode = args[:persistence_mode] if args.key?(:persistence_mode)
887
+ @rdb_next_snapshot_time = args[:rdb_next_snapshot_time] if args.key?(:rdb_next_snapshot_time)
888
+ @rdb_snapshot_period = args[:rdb_snapshot_period] if args.key?(:rdb_snapshot_period)
889
+ @rdb_snapshot_start_time = args[:rdb_snapshot_start_time] if args.key?(:rdb_snapshot_start_time)
890
+ end
891
+ end
892
+
777
893
  # Request for RescheduleMaintenance.
778
894
  class RescheduleMaintenanceRequest
779
895
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RedisV1beta1
18
18
  # Version of the google-apis-redis_v1beta1 gem
19
- GEM_VERSION = "0.12.0"
19
+ GEM_VERSION = "0.16.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::RedisV1beta1::NodeInfo, decorator: Google::Apis::RedisV1beta1::NodeInfo::Representation
291
+
292
+ property :persistence_config, as: 'persistenceConfig', class: Google::Apis::RedisV1beta1::PersistenceConfig, decorator: Google::Apis::RedisV1beta1::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::RedisV1beta1::TlsCertificate, decorator: Google::Apis::RedisV1beta1::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
@@ -126,10 +126,10 @@ module Google
126
126
  # default, the instance is accessible from the project's [default network](https:
127
127
  # //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and
128
128
  # callers may check the returned operation to track its progress. Once the
129
- # operation is completed the Redis instance will be fully functional. Completed
130
- # longrunning.Operation will contain the new instance object in the response
131
- # field. The returned operation is automatically deleted after a few hours, so
132
- # there is no need to call DeleteOperation.
129
+ # operation is completed the Redis instance will be fully functional. The
130
+ # completed longrunning.Operation will contain the new instance object in the
131
+ # response field. The returned operation is automatically deleted after a few
132
+ # hours, so there is no need to call DeleteOperation.
133
133
  # @param [String] parent
134
134
  # Required. The resource name of the instance location using the form: `projects/
135
135
  # `project_id`/locations/`location_id`` where `location_id` refers to a GCP
@@ -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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.16.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
@@ -58,9 +58,9 @@ licenses:
58
58
  - Apache-2.0
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1beta1/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1beta1/v0.12.0
63
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-redis_v1beta1
61
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1beta1/CHANGELOG.md
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1beta1/v0.16.0
63
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1beta1
64
64
  post_install_message:
65
65
  rdoc_options: []
66
66
  require_paths: