google-apis-redis_v1beta1 0.11.0 → 0.15.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: b8d03bafc7e1fe2e48be980e870f06b75e2ea9ed3b0be749ae52a2e619e8db16
4
- data.tar.gz: 76251a26f20e79ea3423804b2f11fa2be9da1d01e3afd08d994a32d1d05520b3
3
+ metadata.gz: 616e9f829560dcce86862d660d60d7774e4706f5b253e10bf4b5f04a8f71b242
4
+ data.tar.gz: 14372dbddad5a490e0b894333c8da93ea63ee17e40f2e76f7f27ae72c7252690
5
5
  SHA512:
6
- metadata.gz: 70f8060478c2efeb34040fdf79bec1b2c27796e7af6974f2985d7345897a9cbd0c94fda5b04d72cce7132c670276997a49c469722e2afebc91f9b046a3dc9e3b
7
- data.tar.gz: bb7007e01dc49c1879fb2e70c24018db5dcc61ea22a9a15480cc62515485d6f7f7d692d92df64e499ded8fed61dc3a0319215165e4c0c1fe298f37777f6c1ff8
6
+ metadata.gz: 1d0b953d813950061e0da0edbcf9d47f74754796167aa6dee118aa11ba1ec1645d8463a82941b64dbf5077ad4bd45b97ed6dd72826090657bd037b98f85ac1dc
7
+ data.tar.gz: 48dd16854b377778ba8e2212e5faa41eea99b8c48b02f1cd46d441db48157d6457118ae2b791c383f338df0cdb47e67965aaf420580fd5a286ace46299efa2de
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-redis_v1beta1
2
2
 
3
+ ### v0.15.0 (2021-10-30)
4
+
5
+ * Regenerated from discovery document revision 20211021
6
+
7
+ ### v0.14.0 (2021-10-20)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.13.0 (2021-10-10)
12
+
13
+ * Regenerated from discovery document revision 20210930
14
+
15
+ ### v0.12.0 (2021-09-15)
16
+
17
+ * Regenerated from discovery document revision 20210909
18
+
3
19
  ### v0.11.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
 
@@ -252,13 +252,15 @@ module Google
252
252
  end
253
253
  end
254
254
 
255
- # A Google Cloud Redis instance. next id = 36
255
+ # A Google Cloud Redis instance. next id = 38
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,25 @@ 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.
391
+ # Corresponds to the JSON property `readReplicasMode`
392
+ # @return [String]
393
+ attr_accessor :read_replicas_mode
394
+
365
395
  # Optional. Redis configuration parameters, according to http://redis.io/topics/
366
396
  # config. Currently, the only supported parameters are: Redis version 3.2 and
367
397
  # newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer:
@@ -380,12 +410,19 @@ module Google
380
410
  # @return [String]
381
411
  attr_accessor :redis_version
382
412
 
413
+ # Optional. The number of replica nodes. Valid range for standard tier is [1-5]
414
+ # and defaults to 2. Valid value for basic tier is 0 and defaults to 0.
415
+ # Corresponds to the JSON property `replicaCount`
416
+ # @return [Fixnum]
417
+ attr_accessor :replica_count
418
+
383
419
  # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that
384
420
  # are reserved for this instance. Range must be unique and non-overlapping with
385
421
  # existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode,
386
422
  # the name of one allocated IP address ranges associated with this private
387
423
  # 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.
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.
389
426
  # Corresponds to the JSON property `reservedIpRange`
390
427
  # @return [String]
391
428
  attr_accessor :reserved_ip_range
@@ -437,10 +474,16 @@ module Google
437
474
  @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
438
475
  @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
439
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)
440
479
  @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
441
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)
442
484
  @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
443
485
  @redis_version = args[:redis_version] if args.key?(:redis_version)
486
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
444
487
  @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
445
488
  @server_ca_certs = args[:server_ca_certs] if args.key?(:server_ca_certs)
446
489
  @state = args[:state] if args.key?(:state)
@@ -664,8 +707,8 @@ module Google
664
707
  # @return [String]
665
708
  attr_accessor :end_time
666
709
 
667
- # Output only. The time deadline any schedule start time cannot go beyond,
668
- # including reschedule.
710
+ # Output only. The deadline that the maintenance schedule start time can not go
711
+ # beyond, including reschedule.
669
712
  # Corresponds to the JSON property `scheduleDeadlineTime`
670
713
  # @return [String]
671
714
  attr_accessor :schedule_deadline_time
@@ -689,6 +732,31 @@ module Google
689
732
  end
690
733
  end
691
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
+
692
760
  # This resource represents a long-running operation that is the result of a
693
761
  # network API call.
694
762
  class Operation
@@ -774,6 +842,51 @@ module Google
774
842
  end
775
843
  end
776
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
+
777
890
  # Request for RescheduleMaintenance.
778
891
  class RescheduleMaintenanceRequest
779
892
  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.11.0"
19
+ GEM_VERSION = "0.15.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::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.11.0
4
+ version: 0.15.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
@@ -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.11.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.15.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: