google-apis-redis_v1 0.17.0 → 0.21.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: c8f3bc03ff1b14f71dc7adb60b14954c23d9d538aa894e9c9bf9b6425d567b04
4
- data.tar.gz: d6791317d45c01a4d05cfb9c48150f3b7ef3cab0a4b5bf0605389225847727d3
3
+ metadata.gz: 379b9fb2dcff276ae97acdfac051264575fe20a36ab701da67bddc802494d2d4
4
+ data.tar.gz: bc37d2195b72fa4a8b39ca2f0a527b0f3a9bed68a10ac654bc06d81de7ed4b48
5
5
  SHA512:
6
- metadata.gz: eaf63fccdbef8e5624f2afe721d3fafc8066014a4f5d2ff13ae38481eac1c3b09f78e529e7c8bd5740f6897ac6604c5af448c8b7f1072c1e3ade0805add16ca8
7
- data.tar.gz: 2e6e05ddaf10b9cb720a73f982c4eca3229fbd4f49466db6a89ad1d52812151798f446ef0cc2bde3eb62fd59c202949a40da458629f2c7ce7c88992848766f9e
6
+ metadata.gz: 4b911737e2e8b1b87674cba76e9db3454f77d2e3a3d1c57cd7f1c3a55252b42141c0437accb89e3d5d45c74ec05b66207389d75437d88e90769bd2efcab30871
7
+ data.tar.gz: e611d06c1579a5758c162deeb53a6f4296933ba776bfda450be3b47fd715afec02d79b5710b9e3d3adff85c05ad931ef88aa2c36f676385e2f0c7ec0d836feb2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.21.0 (2022-01-17)
4
+
5
+ * Regenerated from discovery document revision 20220111
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.20.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.19.0 (2021-12-12)
13
+
14
+ * Regenerated from discovery document revision 20211202
15
+
16
+ ### v0.18.0 (2021-11-13)
17
+
18
+ * Regenerated from discovery document revision 20211104
19
+
3
20
  ### v0.17.0 (2021-10-30)
4
21
 
5
22
  * Regenerated from discovery document revision 20211021
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/redis_v1"
51
51
  client = Google::Apis::RedisV1::CloudRedisService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -22,6 +22,137 @@ module Google
22
22
  module Apis
23
23
  module RedisV1
24
24
 
25
+ # A cluster instance.
26
+ class Cluster
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Output only. UID of the cluster for use by Pantheon for analytics.
30
+ # Corresponds to the JSON property `clusterUid`
31
+ # @return [String]
32
+ attr_accessor :cluster_uid
33
+
34
+ # Output only. The timestamp associated with the cluster creation request.
35
+ # Corresponds to the JSON property `createTime`
36
+ # @return [String]
37
+ attr_accessor :create_time
38
+
39
+ # Input only. The KMS key reference that the customer provides when trying to
40
+ # create the instance.
41
+ # Corresponds to the JSON property `customerManagedKey`
42
+ # @return [String]
43
+ attr_accessor :customer_managed_key
44
+
45
+ # Optional. The number of replica nodes per shard. Valid range is [1-2] and
46
+ # defaults to 1.
47
+ # Corresponds to the JSON property `defaultReplicaCount`
48
+ # @return [Fixnum]
49
+ attr_accessor :default_replica_count
50
+
51
+ # Optional. An arbitrary and optional user-provided name for the cluster.
52
+ # Corresponds to the JSON property `displayName`
53
+ # @return [String]
54
+ attr_accessor :display_name
55
+
56
+ # Output only. Hostname or IP address and port pairs used to connect to the
57
+ # cluster.
58
+ # Corresponds to the JSON property `endpoints`
59
+ # @return [Array<Google::Apis::RedisV1::Endpoint>]
60
+ attr_accessor :endpoints
61
+
62
+ # Required. Unique name of the resource in this scope including project and
63
+ # location using the form: `projects/`project_id`/locations/`location_id`/
64
+ # clusters/`cluster_id``
65
+ # Corresponds to the JSON property `name`
66
+ # @return [String]
67
+ attr_accessor :name
68
+
69
+ # Contains private service connect specific options.
70
+ # Corresponds to the JSON property `privateServiceConnect`
71
+ # @return [Google::Apis::RedisV1::PrivateServiceConnect]
72
+ attr_accessor :private_service_connect
73
+
74
+ # Optional. Redis configuration parameters, according to http://redis.io/topics/
75
+ # config. Currently, the only supported parameters are: Redis version 6.x and
76
+ # newer: * lfu-decay-time * lfu-log-factor * maxmemory-policy
77
+ # Corresponds to the JSON property `redisConfigs`
78
+ # @return [Hash<String,String>]
79
+ attr_accessor :redis_configs
80
+
81
+ # Output only. The slots making up the cluster. Read-only. In future versions
82
+ # this will be writable to allow for heterogeneous clusters.
83
+ # Corresponds to the JSON property `slots`
84
+ # @return [Array<Google::Apis::RedisV1::ClusterSlots>]
85
+ attr_accessor :slots
86
+
87
+ # Output only. The current state of this cluster. Can be CREATING, READY,
88
+ # UPDATING, DELETING and SUSPENDED
89
+ # Corresponds to the JSON property `state`
90
+ # @return [String]
91
+ attr_accessor :state
92
+
93
+ # Optional. Redis memory size in GiB for the entire cluster. Defaults to 32.
94
+ # Corresponds to the JSON property `totalMemorySizeGb`
95
+ # @return [Fixnum]
96
+ attr_accessor :total_memory_size_gb
97
+
98
+ def initialize(**args)
99
+ update!(**args)
100
+ end
101
+
102
+ # Update properties of this object
103
+ def update!(**args)
104
+ @cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
105
+ @create_time = args[:create_time] if args.key?(:create_time)
106
+ @customer_managed_key = args[:customer_managed_key] if args.key?(:customer_managed_key)
107
+ @default_replica_count = args[:default_replica_count] if args.key?(:default_replica_count)
108
+ @display_name = args[:display_name] if args.key?(:display_name)
109
+ @endpoints = args[:endpoints] if args.key?(:endpoints)
110
+ @name = args[:name] if args.key?(:name)
111
+ @private_service_connect = args[:private_service_connect] if args.key?(:private_service_connect)
112
+ @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
113
+ @slots = args[:slots] if args.key?(:slots)
114
+ @state = args[:state] if args.key?(:state)
115
+ @total_memory_size_gb = args[:total_memory_size_gb] if args.key?(:total_memory_size_gb)
116
+ end
117
+ end
118
+
119
+ # A series of slots belonging to a cluster.
120
+ class ClusterSlots
121
+ include Google::Apis::Core::Hashable
122
+
123
+ # Output only. The end of the slots that make up this series.
124
+ # Corresponds to the JSON property `endSlotsExclusive`
125
+ # @return [Fixnum]
126
+ attr_accessor :end_slots_exclusive
127
+
128
+ # Output only. The total size of keyspace this series has.
129
+ # Corresponds to the JSON property `memorySizeGb`
130
+ # @return [Fixnum]
131
+ attr_accessor :memory_size_gb
132
+
133
+ # Output only. The number of replicas this series has.
134
+ # Corresponds to the JSON property `replicaCount`
135
+ # @return [Fixnum]
136
+ attr_accessor :replica_count
137
+
138
+ # Output only. The start of the slots that make up this series.
139
+ # Corresponds to the JSON property `startSlotsInclusive`
140
+ # @return [Fixnum]
141
+ attr_accessor :start_slots_inclusive
142
+
143
+ def initialize(**args)
144
+ update!(**args)
145
+ end
146
+
147
+ # Update properties of this object
148
+ def update!(**args)
149
+ @end_slots_exclusive = args[:end_slots_exclusive] if args.key?(:end_slots_exclusive)
150
+ @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
151
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
152
+ @start_slots_inclusive = args[:start_slots_inclusive] if args.key?(:start_slots_inclusive)
153
+ end
154
+ end
155
+
25
156
  # A generic empty message that you can re-use to avoid defining duplicated empty
26
157
  # messages in your APIs. A typical example is to use it as the request or the
27
158
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -39,6 +170,34 @@ module Google
39
170
  end
40
171
  end
41
172
 
173
+ # An endpoint exposed by a cluster. In the future we will add an enum to
174
+ # identify whether this endpoint is read/write or read-only when the feature is
175
+ # ready.
176
+ class Endpoint
177
+ include Google::Apis::Core::Hashable
178
+
179
+ # Output only. Hostname or IP address of the exposed Redis endpoint used by
180
+ # clients to connect to the service.
181
+ # Corresponds to the JSON property `host`
182
+ # @return [String]
183
+ attr_accessor :host
184
+
185
+ # Output only. The port number of the exposed Redis endpoint.
186
+ # Corresponds to the JSON property `port`
187
+ # @return [Fixnum]
188
+ attr_accessor :port
189
+
190
+ def initialize(**args)
191
+ update!(**args)
192
+ end
193
+
194
+ # Update properties of this object
195
+ def update!(**args)
196
+ @host = args[:host] if args.key?(:host)
197
+ @port = args[:port] if args.key?(:port)
198
+ end
199
+ end
200
+
42
201
  # Request for Export.
43
202
  class ExportInstanceRequest
44
203
  include Google::Apis::Core::Hashable
@@ -249,7 +408,7 @@ module Google
249
408
  end
250
409
  end
251
410
 
252
- # A Google Cloud Redis instance. next id = 38
411
+ # A Google Cloud Redis instance.
253
412
  class Instance
254
413
  include Google::Apis::Core::Hashable
255
414
 
@@ -384,7 +543,8 @@ module Google
384
543
  # @return [Fixnum]
385
544
  attr_accessor :read_endpoint_port
386
545
 
387
- # Optional. Read replica mode.
546
+ # Optional. Read replica mode. Can only be specified when trying to create the
547
+ # instance.
388
548
  # Corresponds to the JSON property `readReplicasMode`
389
549
  # @return [String]
390
550
  attr_accessor :read_replicas_mode
@@ -407,8 +567,10 @@ module Google
407
567
  # @return [String]
408
568
  attr_accessor :redis_version
409
569
 
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.
570
+ # Optional. The number of replica nodes. The valid range for the Standard Tier
571
+ # with read replicas enabled is [1-5] and defaults to 2. If read replicas are
572
+ # not enabled for a Standard Tier instance, the only valid value is 1 and the
573
+ # default is 1. The valid value for basic tier is 0 and the default is also 0.
412
574
  # Corresponds to the JSON property `replicaCount`
413
575
  # @return [Fixnum]
414
576
  attr_accessor :replica_count
@@ -424,6 +586,16 @@ module Google
424
586
  # @return [String]
425
587
  attr_accessor :reserved_ip_range
426
588
 
589
+ # Optional. Additional ip ranges for node placement, beyond those specified in
590
+ # reserved_ip_range. At most 1 secondary IP range is supported. The mask value
591
+ # must not exceed /28. Not supported for BASIC tier. Updates can only add new
592
+ # ranges, once added ranges cannot be changed or deleted. Values in this list
593
+ # cannot overlap with the reserved_ip_range. Not supported during instance
594
+ # creation.
595
+ # Corresponds to the JSON property `secondaryIpRange`
596
+ # @return [String]
597
+ attr_accessor :secondary_ip_range
598
+
427
599
  # Output only. List of server CA certificates for the instance.
428
600
  # Corresponds to the JSON property `serverCaCerts`
429
601
  # @return [Array<Google::Apis::RedisV1::TlsCertificate>]
@@ -482,6 +654,7 @@ module Google
482
654
  @redis_version = args[:redis_version] if args.key?(:redis_version)
483
655
  @replica_count = args[:replica_count] if args.key?(:replica_count)
484
656
  @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
657
+ @secondary_ip_range = args[:secondary_ip_range] if args.key?(:secondary_ip_range)
485
658
  @server_ca_certs = args[:server_ca_certs] if args.key?(:server_ca_certs)
486
659
  @state = args[:state] if args.key?(:state)
487
660
  @status_message = args[:status_message] if args.key?(:status_message)
@@ -884,6 +1057,33 @@ module Google
884
1057
  end
885
1058
  end
886
1059
 
1060
+ # Contains private service connect specific options.
1061
+ class PrivateServiceConnect
1062
+ include Google::Apis::Core::Hashable
1063
+
1064
+ # Output only. The address of the Private Service Connect (PSC) service that the
1065
+ # customer can use to connect this instance to their local network.
1066
+ # Corresponds to the JSON property `pscService`
1067
+ # @return [String]
1068
+ attr_accessor :psc_service
1069
+
1070
+ # Optional. The service route to connect using Private Service Connect. On
1071
+ # Instance creation, this will automatically connect this route to this instance.
1072
+ # Corresponds to the JSON property `pscServiceRoute`
1073
+ # @return [String]
1074
+ attr_accessor :psc_service_route
1075
+
1076
+ def initialize(**args)
1077
+ update!(**args)
1078
+ end
1079
+
1080
+ # Update properties of this object
1081
+ def update!(**args)
1082
+ @psc_service = args[:psc_service] if args.key?(:psc_service)
1083
+ @psc_service_route = args[:psc_service_route] if args.key?(:psc_service_route)
1084
+ end
1085
+ end
1086
+
887
1087
  # Request for RescheduleMaintenance.
888
1088
  class RescheduleMaintenanceRequest
889
1089
  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.17.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211021"
25
+ REVISION = "20220111"
26
26
  end
27
27
  end
28
28
  end
@@ -22,12 +22,30 @@ module Google
22
22
  module Apis
23
23
  module RedisV1
24
24
 
25
+ class Cluster
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ClusterSlots
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class Empty
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
28
40
  include Google::Apis::Core::JsonObjectSupport
29
41
  end
30
42
 
43
+ class Endpoint
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
31
49
  class ExportInstanceRequest
32
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
51
 
@@ -154,6 +172,12 @@ module Google
154
172
  include Google::Apis::Core::JsonObjectSupport
155
173
  end
156
174
 
175
+ class PrivateServiceConnect
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
157
181
  class RescheduleMaintenanceRequest
158
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
183
 
@@ -190,12 +214,51 @@ module Google
190
214
  include Google::Apis::Core::JsonObjectSupport
191
215
  end
192
216
 
217
+ class Cluster
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :cluster_uid, as: 'clusterUid'
221
+ property :create_time, as: 'createTime'
222
+ property :customer_managed_key, as: 'customerManagedKey'
223
+ property :default_replica_count, as: 'defaultReplicaCount'
224
+ property :display_name, as: 'displayName'
225
+ collection :endpoints, as: 'endpoints', class: Google::Apis::RedisV1::Endpoint, decorator: Google::Apis::RedisV1::Endpoint::Representation
226
+
227
+ property :name, as: 'name'
228
+ property :private_service_connect, as: 'privateServiceConnect', class: Google::Apis::RedisV1::PrivateServiceConnect, decorator: Google::Apis::RedisV1::PrivateServiceConnect::Representation
229
+
230
+ hash :redis_configs, as: 'redisConfigs'
231
+ collection :slots, as: 'slots', class: Google::Apis::RedisV1::ClusterSlots, decorator: Google::Apis::RedisV1::ClusterSlots::Representation
232
+
233
+ property :state, as: 'state'
234
+ property :total_memory_size_gb, as: 'totalMemorySizeGb'
235
+ end
236
+ end
237
+
238
+ class ClusterSlots
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ property :end_slots_exclusive, as: 'endSlotsExclusive'
242
+ property :memory_size_gb, as: 'memorySizeGb'
243
+ property :replica_count, as: 'replicaCount'
244
+ property :start_slots_inclusive, as: 'startSlotsInclusive'
245
+ end
246
+ end
247
+
193
248
  class Empty
194
249
  # @private
195
250
  class Representation < Google::Apis::Core::JsonRepresentation
196
251
  end
197
252
  end
198
253
 
254
+ class Endpoint
255
+ # @private
256
+ class Representation < Google::Apis::Core::JsonRepresentation
257
+ property :host, as: 'host'
258
+ property :port, as: 'port'
259
+ end
260
+ end
261
+
199
262
  class ExportInstanceRequest
200
263
  # @private
201
264
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -300,6 +363,7 @@ module Google
300
363
  property :redis_version, as: 'redisVersion'
301
364
  property :replica_count, as: 'replicaCount'
302
365
  property :reserved_ip_range, as: 'reservedIpRange'
366
+ property :secondary_ip_range, as: 'secondaryIpRange'
303
367
  collection :server_ca_certs, as: 'serverCaCerts', class: Google::Apis::RedisV1::TlsCertificate, decorator: Google::Apis::RedisV1::TlsCertificate::Representation
304
368
 
305
369
  property :state, as: 'state'
@@ -414,6 +478,14 @@ module Google
414
478
  end
415
479
  end
416
480
 
481
+ class PrivateServiceConnect
482
+ # @private
483
+ class Representation < Google::Apis::Core::JsonRepresentation
484
+ property :psc_service, as: 'pscService'
485
+ property :psc_service_route, as: 'pscServiceRoute'
486
+ end
487
+ end
488
+
417
489
  class RescheduleMaintenanceRequest
418
490
  # @private
419
491
  class Representation < Google::Apis::Core::JsonRepresentation
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.17.0
4
+ version: 0.21.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-11-01 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.21.0
62
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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Cloud Memorystore for Redis API V1