google-apis-redis_v1beta1 0.34.0 → 0.36.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: 0e21f48b1bdcef39308949247e8f12212bbecda0f905a3d7014be94541b6167c
4
- data.tar.gz: dd1a5c73e28810ef9d3654c9d997106f18c99d46d47e363eb9a46ecd7127e1fe
3
+ metadata.gz: eb1ca41e90f9d92cbe6e5b25f3630b57213f791c83bfe3d590faac52a3aebc75
4
+ data.tar.gz: cb3c96e5a12c915f737503fe4a549f622ceef3e4a420d2f5f32218dc728f5372
5
5
  SHA512:
6
- metadata.gz: 47a42550a382f41cfb1bd64da0b1aebb379dff405508a3fd237d3aa8ad834f5a89398a30a1658f5576d386f96c0acfe596441c80a4f339c4f0b9d53d6bd603c2
7
- data.tar.gz: 3a6a21e02d093c1aa1007c58b3370d93eb0bbe40e03908cf3216c8ced7f1277aac75a993a39d472d6130495e3e19fc5ee43a2e09ee9412d859f030b6cf81a7a5
6
+ metadata.gz: da3985ecf458f3880b8ed1c9f568e77628aa858330f97042b2bb240b0f361ff9582d4080812225616e4b147541afb89953f60e888449cb859e1cb0e0eab905c1
7
+ data.tar.gz: 6ce4fb2fd0c76700d876ab181602687f9e4829a2825383fb3ac7c6374c77eb9cd5de2aea9a4a252fbf75fa157744f1454320c32ed62dd94abd49a0a4b25c85b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-redis_v1beta1
2
2
 
3
+ ### v0.36.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230804
6
+
7
+ ### v0.35.0 (2023-05-07)
8
+
9
+ * Regenerated from discovery document revision 20230428
10
+
3
11
  ### v0.34.0 (2023-04-23)
4
12
 
5
13
  * Regenerated from discovery document revision 20230418
@@ -22,6 +22,177 @@ module Google
22
22
  module Apis
23
23
  module RedisV1beta1
24
24
 
25
+ #
26
+ class CertChain
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The certificates that form the CA chain, from leaf to root order.
30
+ # Corresponds to the JSON property `certificates`
31
+ # @return [Array<String>]
32
+ attr_accessor :certificates
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @certificates = args[:certificates] if args.key?(:certificates)
41
+ end
42
+ end
43
+
44
+ # Redis cluster certificate authority
45
+ class CertificateAuthority
46
+ include Google::Apis::Core::Hashable
47
+
48
+ #
49
+ # Corresponds to the JSON property `managedServerCa`
50
+ # @return [Google::Apis::RedisV1beta1::ManagedCertificateAuthority]
51
+ attr_accessor :managed_server_ca
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @managed_server_ca = args[:managed_server_ca] if args.key?(:managed_server_ca)
60
+ end
61
+ end
62
+
63
+ # A cluster instance.
64
+ class Cluster
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # Optional. The authorization mode of the Redis cluster. If not provided, auth
68
+ # feature is disabled for the cluster.
69
+ # Corresponds to the JSON property `authorizationMode`
70
+ # @return [String]
71
+ attr_accessor :authorization_mode
72
+
73
+ # Output only. The timestamp associated with the cluster creation request.
74
+ # Corresponds to the JSON property `createTime`
75
+ # @return [String]
76
+ attr_accessor :create_time
77
+
78
+ # Output only. Endpoints created on each given network, for Redis clients to
79
+ # connect to the cluster. Currently only one discovery endpoint is supported.
80
+ # Corresponds to the JSON property `discoveryEndpoints`
81
+ # @return [Array<Google::Apis::RedisV1beta1::DiscoveryEndpoint>]
82
+ attr_accessor :discovery_endpoints
83
+
84
+ # Required. Unique name of the resource in this scope including project and
85
+ # location using the form: `projects/`project_id`/locations/`location_id`/
86
+ # clusters/`cluster_id``
87
+ # Corresponds to the JSON property `name`
88
+ # @return [String]
89
+ attr_accessor :name
90
+
91
+ # Required. Each PscConfig configures the consumer network where IPs will be
92
+ # designated to the cluster for client access through Private Service Connect
93
+ # Automation. Currently, only one PscConfig is supported.
94
+ # Corresponds to the JSON property `pscConfigs`
95
+ # @return [Array<Google::Apis::RedisV1beta1::PscConfig>]
96
+ attr_accessor :psc_configs
97
+
98
+ # Output only. PSC connections for discovery of the cluster topology and
99
+ # accessing the cluster.
100
+ # Corresponds to the JSON property `pscConnections`
101
+ # @return [Array<Google::Apis::RedisV1beta1::PscConnection>]
102
+ attr_accessor :psc_connections
103
+
104
+ # Optional. The number of replica nodes per shard.
105
+ # Corresponds to the JSON property `replicaCount`
106
+ # @return [Fixnum]
107
+ attr_accessor :replica_count
108
+
109
+ # Required. Number of shards for the Redis cluster.
110
+ # Corresponds to the JSON property `shardCount`
111
+ # @return [Fixnum]
112
+ attr_accessor :shard_count
113
+
114
+ # Output only. Redis memory size in GB for the entire cluster.
115
+ # Corresponds to the JSON property `sizeGb`
116
+ # @return [Fixnum]
117
+ attr_accessor :size_gb
118
+
119
+ # Output only. The current state of this cluster. Can be CREATING, READY,
120
+ # UPDATING, DELETING and SUSPENDED
121
+ # Corresponds to the JSON property `state`
122
+ # @return [String]
123
+ attr_accessor :state
124
+
125
+ # Represents additional information about the state of the cluster.
126
+ # Corresponds to the JSON property `stateInfo`
127
+ # @return [Google::Apis::RedisV1beta1::StateInfo]
128
+ attr_accessor :state_info
129
+
130
+ # Optional. The in-transit encryption for the Redis cluster. If not provided,
131
+ # encryption is disabled for the cluster.
132
+ # Corresponds to the JSON property `transitEncryptionMode`
133
+ # @return [String]
134
+ attr_accessor :transit_encryption_mode
135
+
136
+ # Output only. System assigned, unique identifier for the cluster.
137
+ # Corresponds to the JSON property `uid`
138
+ # @return [String]
139
+ attr_accessor :uid
140
+
141
+ def initialize(**args)
142
+ update!(**args)
143
+ end
144
+
145
+ # Update properties of this object
146
+ def update!(**args)
147
+ @authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
148
+ @create_time = args[:create_time] if args.key?(:create_time)
149
+ @discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
150
+ @name = args[:name] if args.key?(:name)
151
+ @psc_configs = args[:psc_configs] if args.key?(:psc_configs)
152
+ @psc_connections = args[:psc_connections] if args.key?(:psc_connections)
153
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
154
+ @shard_count = args[:shard_count] if args.key?(:shard_count)
155
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
156
+ @state = args[:state] if args.key?(:state)
157
+ @state_info = args[:state_info] if args.key?(:state_info)
158
+ @transit_encryption_mode = args[:transit_encryption_mode] if args.key?(:transit_encryption_mode)
159
+ @uid = args[:uid] if args.key?(:uid)
160
+ end
161
+ end
162
+
163
+ # Endpoints on each network, for Redis clients to connect to the cluster.
164
+ class DiscoveryEndpoint
165
+ include Google::Apis::Core::Hashable
166
+
167
+ # Output only. Address of the exposed Redis endpoint used by clients to connect
168
+ # to the service. The address could be either IP or hostname.
169
+ # Corresponds to the JSON property `address`
170
+ # @return [String]
171
+ attr_accessor :address
172
+
173
+ # Output only. The port number of the exposed Redis endpoint.
174
+ # Corresponds to the JSON property `port`
175
+ # @return [Fixnum]
176
+ attr_accessor :port
177
+
178
+ # Output only. Customer configuration for where the endpoint is created and
179
+ # accessed from.
180
+ # Corresponds to the JSON property `pscConfig`
181
+ # @return [Google::Apis::RedisV1beta1::PscConfig]
182
+ attr_accessor :psc_config
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @address = args[:address] if args.key?(:address)
191
+ @port = args[:port] if args.key?(:port)
192
+ @psc_config = args[:psc_config] if args.key?(:psc_config)
193
+ end
194
+ end
195
+
25
196
  # A generic empty message that you can re-use to avoid defining duplicated empty
26
197
  # messages in your APIs. A typical example is to use it as the request or the
27
198
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -550,6 +721,45 @@ module Google
550
721
  end
551
722
  end
552
723
 
724
+ # Response for ListClusters.
725
+ class ListClustersResponse
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # A list of Redis clusters in the project in the specified location, or across
729
+ # all locations. If the `location_id` in the parent field of the request is "-",
730
+ # all regions available to the project are queried, and the results aggregated.
731
+ # If in such an aggregated query a location is unavailable, a placeholder Redis
732
+ # entry is included in the response with the `name` field set to a value of the
733
+ # form `projects/`project_id`/locations/`location_id`/clusters/`- and the `
734
+ # status` field set to ERROR and `status_message` field set to "location not
735
+ # available for ListClusters".
736
+ # Corresponds to the JSON property `clusters`
737
+ # @return [Array<Google::Apis::RedisV1beta1::Cluster>]
738
+ attr_accessor :clusters
739
+
740
+ # Token to retrieve the next page of results, or empty if there are no more
741
+ # results in the list.
742
+ # Corresponds to the JSON property `nextPageToken`
743
+ # @return [String]
744
+ attr_accessor :next_page_token
745
+
746
+ # Locations that could not be reached.
747
+ # Corresponds to the JSON property `unreachable`
748
+ # @return [Array<String>]
749
+ attr_accessor :unreachable
750
+
751
+ def initialize(**args)
752
+ update!(**args)
753
+ end
754
+
755
+ # Update properties of this object
756
+ def update!(**args)
757
+ @clusters = args[:clusters] if args.key?(:clusters)
758
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
759
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
760
+ end
761
+ end
762
+
553
763
  # Response for ListInstances.
554
764
  class ListInstancesResponse
555
765
  include Google::Apis::Core::Hashable
@@ -639,7 +849,7 @@ module Google
639
849
  end
640
850
  end
641
851
 
642
- # A resource that represents Google Cloud location.
852
+ # A resource that represents a Google Cloud location.
643
853
  class Location
644
854
  include Google::Apis::Core::Hashable
645
855
 
@@ -770,6 +980,25 @@ module Google
770
980
  end
771
981
  end
772
982
 
983
+ #
984
+ class ManagedCertificateAuthority
985
+ include Google::Apis::Core::Hashable
986
+
987
+ # The PEM encoded CA certificate chains for redis managed server authentication
988
+ # Corresponds to the JSON property `caCerts`
989
+ # @return [Array<Google::Apis::RedisV1beta1::CertChain>]
990
+ attr_accessor :ca_certs
991
+
992
+ def initialize(**args)
993
+ update!(**args)
994
+ end
995
+
996
+ # Update properties of this object
997
+ def update!(**args)
998
+ @ca_certs = args[:ca_certs] if args.key?(:ca_certs)
999
+ end
1000
+ end
1001
+
773
1002
  # Node specific properties.
774
1003
  class NodeInfo
775
1004
  include Google::Apis::Core::Hashable
@@ -836,13 +1065,13 @@ module Google
836
1065
  # @return [String]
837
1066
  attr_accessor :name
838
1067
 
839
- # The normal response of the operation in case of success. If the original
840
- # method returns no data on success, such as `Delete`, the response is `google.
841
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
842
- # the response should be the resource. For other methods, the response should
843
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
844
- # example, if the original method name is `TakeSnapshot()`, the inferred
845
- # response type is `TakeSnapshotResponse`.
1068
+ # The normal, successful response of the operation. If the original method
1069
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1070
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1071
+ # response should be the resource. For other methods, the response should have
1072
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1073
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1074
+ # `TakeSnapshotResponse`.
846
1075
  # Corresponds to the JSON property `response`
847
1076
  # @return [Hash<String,Object>]
848
1077
  attr_accessor :response
@@ -861,6 +1090,65 @@ module Google
861
1090
  end
862
1091
  end
863
1092
 
1093
+ # Pre-defined metadata fields.
1094
+ class OperationMetadata
1095
+ include Google::Apis::Core::Hashable
1096
+
1097
+ # Output only. API version used to start the operation.
1098
+ # Corresponds to the JSON property `apiVersion`
1099
+ # @return [String]
1100
+ attr_accessor :api_version
1101
+
1102
+ # Output only. The time the operation was created.
1103
+ # Corresponds to the JSON property `createTime`
1104
+ # @return [String]
1105
+ attr_accessor :create_time
1106
+
1107
+ # Output only. The time the operation finished running.
1108
+ # Corresponds to the JSON property `endTime`
1109
+ # @return [String]
1110
+ attr_accessor :end_time
1111
+
1112
+ # Output only. Identifies whether the user has requested cancellation of the
1113
+ # operation. Operations that have successfully been cancelled have Operation.
1114
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1115
+ # CANCELLED`.
1116
+ # Corresponds to the JSON property `requestedCancellation`
1117
+ # @return [Boolean]
1118
+ attr_accessor :requested_cancellation
1119
+ alias_method :requested_cancellation?, :requested_cancellation
1120
+
1121
+ # Output only. Human-readable status of the operation, if any.
1122
+ # Corresponds to the JSON property `statusMessage`
1123
+ # @return [String]
1124
+ attr_accessor :status_message
1125
+
1126
+ # Output only. Server-defined resource path for the target of the operation.
1127
+ # Corresponds to the JSON property `target`
1128
+ # @return [String]
1129
+ attr_accessor :target
1130
+
1131
+ # Output only. Name of the verb executed by the operation.
1132
+ # Corresponds to the JSON property `verb`
1133
+ # @return [String]
1134
+ attr_accessor :verb
1135
+
1136
+ def initialize(**args)
1137
+ update!(**args)
1138
+ end
1139
+
1140
+ # Update properties of this object
1141
+ def update!(**args)
1142
+ @api_version = args[:api_version] if args.key?(:api_version)
1143
+ @create_time = args[:create_time] if args.key?(:create_time)
1144
+ @end_time = args[:end_time] if args.key?(:end_time)
1145
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
1146
+ @status_message = args[:status_message] if args.key?(:status_message)
1147
+ @target = args[:target] if args.key?(:target)
1148
+ @verb = args[:verb] if args.key?(:verb)
1149
+ end
1150
+ end
1151
+
864
1152
  # The output content
865
1153
  class OutputConfig
866
1154
  include Google::Apis::Core::Hashable
@@ -925,6 +1213,74 @@ module Google
925
1213
  end
926
1214
  end
927
1215
 
1216
+ #
1217
+ class PscConfig
1218
+ include Google::Apis::Core::Hashable
1219
+
1220
+ # Required. The consumer network where the IP address of the discovery endpoint
1221
+ # will be reserved, in the form of projects/`network_host_project`/global/
1222
+ # networks/`network_id`.
1223
+ # Corresponds to the JSON property `network`
1224
+ # @return [String]
1225
+ attr_accessor :network
1226
+
1227
+ def initialize(**args)
1228
+ update!(**args)
1229
+ end
1230
+
1231
+ # Update properties of this object
1232
+ def update!(**args)
1233
+ @network = args[:network] if args.key?(:network)
1234
+ end
1235
+ end
1236
+
1237
+ # Details of consumer resources in a PSC connection.
1238
+ class PscConnection
1239
+ include Google::Apis::Core::Hashable
1240
+
1241
+ # Output only. The IP allocated on the consumer network for the PSC forwarding
1242
+ # rule.
1243
+ # Corresponds to the JSON property `address`
1244
+ # @return [String]
1245
+ attr_accessor :address
1246
+
1247
+ # Output only. The URI of the consumer side forwarding rule. Example: projects/`
1248
+ # projectNumOrId`/regions/us-east1/forwardingRules/`resourceId`.
1249
+ # Corresponds to the JSON property `forwardingRule`
1250
+ # @return [String]
1251
+ attr_accessor :forwarding_rule
1252
+
1253
+ # The consumer network where the IP address resides, in the form of projects/`
1254
+ # project_id`/global/networks/`network_id`.
1255
+ # Corresponds to the JSON property `network`
1256
+ # @return [String]
1257
+ attr_accessor :network
1258
+
1259
+ # The consumer project_id where the forwarding rule is created from.
1260
+ # Corresponds to the JSON property `projectId`
1261
+ # @return [String]
1262
+ attr_accessor :project_id
1263
+
1264
+ # Output only. The PSC connection id of the forwarding rule connected to the
1265
+ # service attachment.
1266
+ # Corresponds to the JSON property `pscConnectionId`
1267
+ # @return [String]
1268
+ attr_accessor :psc_connection_id
1269
+
1270
+ def initialize(**args)
1271
+ update!(**args)
1272
+ end
1273
+
1274
+ # Update properties of this object
1275
+ def update!(**args)
1276
+ @address = args[:address] if args.key?(:address)
1277
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
1278
+ @network = args[:network] if args.key?(:network)
1279
+ @project_id = args[:project_id] if args.key?(:project_id)
1280
+ @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
1281
+ end
1282
+ end
1283
+
928
1284
  # Operation metadata returned by the CLH during resource state reconciliation.
929
1285
  class ReconciliationOperationMetadata
930
1286
  include Google::Apis::Core::Hashable
@@ -979,6 +1335,25 @@ module Google
979
1335
  end
980
1336
  end
981
1337
 
1338
+ # Represents additional information about the state of the cluster.
1339
+ class StateInfo
1340
+ include Google::Apis::Core::Hashable
1341
+
1342
+ # Represents information about an updating cluster.
1343
+ # Corresponds to the JSON property `updateInfo`
1344
+ # @return [Google::Apis::RedisV1beta1::UpdateInfo]
1345
+ attr_accessor :update_info
1346
+
1347
+ def initialize(**args)
1348
+ update!(**args)
1349
+ end
1350
+
1351
+ # Update properties of this object
1352
+ def update!(**args)
1353
+ @update_info = args[:update_info] if args.key?(:update_info)
1354
+ end
1355
+ end
1356
+
982
1357
  # The `Status` type defines a logical error model that is suitable for different
983
1358
  # programming environments, including REST APIs and RPC APIs. It is used by [
984
1359
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1104,6 +1479,31 @@ module Google
1104
1479
  end
1105
1480
  end
1106
1481
 
1482
+ # Represents information about an updating cluster.
1483
+ class UpdateInfo
1484
+ include Google::Apis::Core::Hashable
1485
+
1486
+ # Target number of replica nodes per shard.
1487
+ # Corresponds to the JSON property `targetReplicaCount`
1488
+ # @return [Fixnum]
1489
+ attr_accessor :target_replica_count
1490
+
1491
+ # Target number of shards for redis cluster
1492
+ # Corresponds to the JSON property `targetShardCount`
1493
+ # @return [Fixnum]
1494
+ attr_accessor :target_shard_count
1495
+
1496
+ def initialize(**args)
1497
+ update!(**args)
1498
+ end
1499
+
1500
+ # Update properties of this object
1501
+ def update!(**args)
1502
+ @target_replica_count = args[:target_replica_count] if args.key?(:target_replica_count)
1503
+ @target_shard_count = args[:target_shard_count] if args.key?(:target_shard_count)
1504
+ end
1505
+ end
1506
+
1107
1507
  # Request for UpgradeInstance.
1108
1508
  class UpgradeInstanceRequest
1109
1509
  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.34.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230418"
25
+ REVISION = "20230804"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,30 @@ module Google
22
22
  module Apis
23
23
  module RedisV1beta1
24
24
 
25
+ class CertChain
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CertificateAuthority
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Cluster
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class DiscoveryEndpoint
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
25
49
  class Empty
26
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
51
 
@@ -94,6 +118,12 @@ module Google
94
118
  include Google::Apis::Core::JsonObjectSupport
95
119
  end
96
120
 
121
+ class ListClustersResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
97
127
  class ListInstancesResponse
98
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
129
 
@@ -130,6 +160,12 @@ module Google
130
160
  include Google::Apis::Core::JsonObjectSupport
131
161
  end
132
162
 
163
+ class ManagedCertificateAuthority
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
133
169
  class NodeInfo
134
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
171
 
@@ -142,6 +178,12 @@ module Google
142
178
  include Google::Apis::Core::JsonObjectSupport
143
179
  end
144
180
 
181
+ class OperationMetadata
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
145
187
  class OutputConfig
146
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
189
 
@@ -154,6 +196,18 @@ module Google
154
196
  include Google::Apis::Core::JsonObjectSupport
155
197
  end
156
198
 
199
+ class PscConfig
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class PscConnection
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
157
211
  class ReconciliationOperationMetadata
158
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
213
 
@@ -166,6 +220,12 @@ module Google
166
220
  include Google::Apis::Core::JsonObjectSupport
167
221
  end
168
222
 
223
+ class StateInfo
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
169
229
  class Status
170
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
231
 
@@ -184,6 +244,12 @@ module Google
184
244
  include Google::Apis::Core::JsonObjectSupport
185
245
  end
186
246
 
247
+ class UpdateInfo
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
187
253
  class UpgradeInstanceRequest
188
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
255
 
@@ -196,6 +262,54 @@ module Google
196
262
  include Google::Apis::Core::JsonObjectSupport
197
263
  end
198
264
 
265
+ class CertChain
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ collection :certificates, as: 'certificates'
269
+ end
270
+ end
271
+
272
+ class CertificateAuthority
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :managed_server_ca, as: 'managedServerCa', class: Google::Apis::RedisV1beta1::ManagedCertificateAuthority, decorator: Google::Apis::RedisV1beta1::ManagedCertificateAuthority::Representation
276
+
277
+ end
278
+ end
279
+
280
+ class Cluster
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ property :authorization_mode, as: 'authorizationMode'
284
+ property :create_time, as: 'createTime'
285
+ collection :discovery_endpoints, as: 'discoveryEndpoints', class: Google::Apis::RedisV1beta1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1beta1::DiscoveryEndpoint::Representation
286
+
287
+ property :name, as: 'name'
288
+ collection :psc_configs, as: 'pscConfigs', class: Google::Apis::RedisV1beta1::PscConfig, decorator: Google::Apis::RedisV1beta1::PscConfig::Representation
289
+
290
+ collection :psc_connections, as: 'pscConnections', class: Google::Apis::RedisV1beta1::PscConnection, decorator: Google::Apis::RedisV1beta1::PscConnection::Representation
291
+
292
+ property :replica_count, as: 'replicaCount'
293
+ property :shard_count, as: 'shardCount'
294
+ property :size_gb, as: 'sizeGb'
295
+ property :state, as: 'state'
296
+ property :state_info, as: 'stateInfo', class: Google::Apis::RedisV1beta1::StateInfo, decorator: Google::Apis::RedisV1beta1::StateInfo::Representation
297
+
298
+ property :transit_encryption_mode, as: 'transitEncryptionMode'
299
+ property :uid, as: 'uid'
300
+ end
301
+ end
302
+
303
+ class DiscoveryEndpoint
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ property :address, as: 'address'
307
+ property :port, as: 'port'
308
+ property :psc_config, as: 'pscConfig', class: Google::Apis::RedisV1beta1::PscConfig, decorator: Google::Apis::RedisV1beta1::PscConfig::Representation
309
+
310
+ end
311
+ end
312
+
199
313
  class Empty
200
314
  # @private
201
315
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -327,6 +441,16 @@ module Google
327
441
  end
328
442
  end
329
443
 
444
+ class ListClustersResponse
445
+ # @private
446
+ class Representation < Google::Apis::Core::JsonRepresentation
447
+ collection :clusters, as: 'clusters', class: Google::Apis::RedisV1beta1::Cluster, decorator: Google::Apis::RedisV1beta1::Cluster::Representation
448
+
449
+ property :next_page_token, as: 'nextPageToken'
450
+ collection :unreachable, as: 'unreachable'
451
+ end
452
+ end
453
+
330
454
  class ListInstancesResponse
331
455
  # @private
332
456
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -387,6 +511,14 @@ module Google
387
511
  end
388
512
  end
389
513
 
514
+ class ManagedCertificateAuthority
515
+ # @private
516
+ class Representation < Google::Apis::Core::JsonRepresentation
517
+ collection :ca_certs, as: 'caCerts', class: Google::Apis::RedisV1beta1::CertChain, decorator: Google::Apis::RedisV1beta1::CertChain::Representation
518
+
519
+ end
520
+ end
521
+
390
522
  class NodeInfo
391
523
  # @private
392
524
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -407,6 +539,19 @@ module Google
407
539
  end
408
540
  end
409
541
 
542
+ class OperationMetadata
543
+ # @private
544
+ class Representation < Google::Apis::Core::JsonRepresentation
545
+ property :api_version, as: 'apiVersion'
546
+ property :create_time, as: 'createTime'
547
+ property :end_time, as: 'endTime'
548
+ property :requested_cancellation, as: 'requestedCancellation'
549
+ property :status_message, as: 'statusMessage'
550
+ property :target, as: 'target'
551
+ property :verb, as: 'verb'
552
+ end
553
+ end
554
+
410
555
  class OutputConfig
411
556
  # @private
412
557
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -425,6 +570,24 @@ module Google
425
570
  end
426
571
  end
427
572
 
573
+ class PscConfig
574
+ # @private
575
+ class Representation < Google::Apis::Core::JsonRepresentation
576
+ property :network, as: 'network'
577
+ end
578
+ end
579
+
580
+ class PscConnection
581
+ # @private
582
+ class Representation < Google::Apis::Core::JsonRepresentation
583
+ property :address, as: 'address'
584
+ property :forwarding_rule, as: 'forwardingRule'
585
+ property :network, as: 'network'
586
+ property :project_id, as: 'projectId'
587
+ property :psc_connection_id, as: 'pscConnectionId'
588
+ end
589
+ end
590
+
428
591
  class ReconciliationOperationMetadata
429
592
  # @private
430
593
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -441,6 +604,14 @@ module Google
441
604
  end
442
605
  end
443
606
 
607
+ class StateInfo
608
+ # @private
609
+ class Representation < Google::Apis::Core::JsonRepresentation
610
+ property :update_info, as: 'updateInfo', class: Google::Apis::RedisV1beta1::UpdateInfo, decorator: Google::Apis::RedisV1beta1::UpdateInfo::Representation
611
+
612
+ end
613
+ end
614
+
444
615
  class Status
445
616
  # @private
446
617
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -471,6 +642,14 @@ module Google
471
642
  end
472
643
  end
473
644
 
645
+ class UpdateInfo
646
+ # @private
647
+ class Representation < Google::Apis::Core::JsonRepresentation
648
+ property :target_replica_count, as: 'targetReplicaCount'
649
+ property :target_shard_count, as: 'targetShardCount'
650
+ end
651
+ end
652
+
474
653
  class UpgradeInstanceRequest
475
654
  # @private
476
655
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,6 +122,248 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Creates a Redis cluster based on the specified tier and memory size. The
126
+ # creation is executed asynchronously and callers may check the returned
127
+ # operation to track its progress. Once the operation is completed the Redis
128
+ # cluster will be fully functional. The completed longrunning.Operation will
129
+ # contain the new cluster object in the response field. The returned operation
130
+ # is automatically deleted after a few hours, so there is no need to call
131
+ # DeleteOperation.
132
+ # @param [String] parent
133
+ # Required. The resource name of the cluster location using the form: `projects/`
134
+ # project_id`/locations/`location_id`` where `location_id` refers to a GCP
135
+ # region.
136
+ # @param [Google::Apis::RedisV1beta1::Cluster] cluster_object
137
+ # @param [String] cluster_id
138
+ # Required. The logical name of the Redis cluster in the customer project with
139
+ # the following restrictions: * Must contain only lowercase letters, numbers,
140
+ # and hyphens. * Must start with a letter. * Must be between 1-63 characters. *
141
+ # Must end with a number or a letter. * Must be unique within the customer
142
+ # project / location
143
+ # @param [String] request_id
144
+ # Idempotent request UUID.
145
+ # @param [String] fields
146
+ # Selector specifying which fields to include in a partial response.
147
+ # @param [String] quota_user
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
150
+ # @param [Google::Apis::RequestOptions] options
151
+ # Request-specific options
152
+ #
153
+ # @yield [result, err] Result & error if block supplied
154
+ # @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::RedisV1beta1::Operation]
158
+ #
159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
162
+ def create_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:post, 'v1beta1/{+parent}/clusters', options)
164
+ command.request_representation = Google::Apis::RedisV1beta1::Cluster::Representation
165
+ command.request_object = cluster_object
166
+ command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
167
+ command.response_class = Google::Apis::RedisV1beta1::Operation
168
+ command.params['parent'] = parent unless parent.nil?
169
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
170
+ command.query['requestId'] = request_id unless request_id.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Deletes a specific Redis cluster. Cluster stops serving and data is deleted.
177
+ # @param [String] name
178
+ # Required. Redis cluster resource name using the form: `projects/`project_id`/
179
+ # locations/`location_id`/clusters/`cluster_id`` where `location_id` refers to a
180
+ # GCP region.
181
+ # @param [String] request_id
182
+ # Idempotent request UUID.
183
+ # @param [String] fields
184
+ # Selector specifying which fields to include in a partial response.
185
+ # @param [String] quota_user
186
+ # Available to use for quota purposes for server-side applications. Can be any
187
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
188
+ # @param [Google::Apis::RequestOptions] options
189
+ # Request-specific options
190
+ #
191
+ # @yield [result, err] Result & error if block supplied
192
+ # @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
193
+ # @yieldparam err [StandardError] error object if request failed
194
+ #
195
+ # @return [Google::Apis::RedisV1beta1::Operation]
196
+ #
197
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
198
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
199
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
200
+ def delete_project_location_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
201
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
202
+ command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
203
+ command.response_class = Google::Apis::RedisV1beta1::Operation
204
+ command.params['name'] = name unless name.nil?
205
+ command.query['requestId'] = request_id unless request_id.nil?
206
+ command.query['fields'] = fields unless fields.nil?
207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
208
+ execute_or_queue_command(command, &block)
209
+ end
210
+
211
+ # Gets the details of a specific Redis cluster.
212
+ # @param [String] name
213
+ # Required. Redis cluster resource name using the form: `projects/`project_id`/
214
+ # locations/`location_id`/clusters/`cluster_id`` where `location_id` refers to a
215
+ # GCP region.
216
+ # @param [String] fields
217
+ # Selector specifying which fields to include in a partial response.
218
+ # @param [String] quota_user
219
+ # Available to use for quota purposes for server-side applications. Can be any
220
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
221
+ # @param [Google::Apis::RequestOptions] options
222
+ # Request-specific options
223
+ #
224
+ # @yield [result, err] Result & error if block supplied
225
+ # @yieldparam result [Google::Apis::RedisV1beta1::Cluster] parsed result object
226
+ # @yieldparam err [StandardError] error object if request failed
227
+ #
228
+ # @return [Google::Apis::RedisV1beta1::Cluster]
229
+ #
230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
233
+ def get_project_location_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
234
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
235
+ command.response_representation = Google::Apis::RedisV1beta1::Cluster::Representation
236
+ command.response_class = Google::Apis::RedisV1beta1::Cluster
237
+ command.params['name'] = name unless name.nil?
238
+ command.query['fields'] = fields unless fields.nil?
239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
240
+ execute_or_queue_command(command, &block)
241
+ end
242
+
243
+ # Gets the details of certificate authority information for Redis cluster.
244
+ # @param [String] name
245
+ # Required. Redis cluster certificate authority resource name using the form: `
246
+ # projects/`project_id`/locations/`location_id`/clusters/`cluster_id`/
247
+ # certificateAuthority` where `location_id` refers to a GCP region.
248
+ # @param [String] fields
249
+ # Selector specifying which fields to include in a partial response.
250
+ # @param [String] quota_user
251
+ # Available to use for quota purposes for server-side applications. Can be any
252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
253
+ # @param [Google::Apis::RequestOptions] options
254
+ # Request-specific options
255
+ #
256
+ # @yield [result, err] Result & error if block supplied
257
+ # @yieldparam result [Google::Apis::RedisV1beta1::CertificateAuthority] parsed result object
258
+ # @yieldparam err [StandardError] error object if request failed
259
+ #
260
+ # @return [Google::Apis::RedisV1beta1::CertificateAuthority]
261
+ #
262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
265
+ def get_project_location_cluster_certificate_authority(name, fields: nil, quota_user: nil, options: nil, &block)
266
+ command = make_simple_command(:get, 'v1beta1/{+name}/certificateAuthority', options)
267
+ command.response_representation = Google::Apis::RedisV1beta1::CertificateAuthority::Representation
268
+ command.response_class = Google::Apis::RedisV1beta1::CertificateAuthority
269
+ command.params['name'] = name unless name.nil?
270
+ command.query['fields'] = fields unless fields.nil?
271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
272
+ execute_or_queue_command(command, &block)
273
+ end
274
+
275
+ # Lists all Redis clusters owned by a project in either the specified location (
276
+ # region) or all locations. The location should have the following format: * `
277
+ # projects/`project_id`/locations/`location_id`` If `location_id` is specified
278
+ # as `-` (wildcard), then all regions available to the project are queried, and
279
+ # the results are aggregated.
280
+ # @param [String] parent
281
+ # Required. The resource name of the cluster location using the form: `projects/`
282
+ # project_id`/locations/`location_id`` where `location_id` refers to a GCP
283
+ # region.
284
+ # @param [Fixnum] page_size
285
+ # The maximum number of items to return. If not specified, a default value of
286
+ # 1000 will be used by the service. Regardless of the page_size value, the
287
+ # response may include a partial list and a caller should only rely on response'
288
+ # s `next_page_token` to determine if there are more clusters left to be queried.
289
+ # @param [String] page_token
290
+ # The `next_page_token` value returned from a previous ListClusters request, if
291
+ # any.
292
+ # @param [String] fields
293
+ # Selector specifying which fields to include in a partial response.
294
+ # @param [String] quota_user
295
+ # Available to use for quota purposes for server-side applications. Can be any
296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
297
+ # @param [Google::Apis::RequestOptions] options
298
+ # Request-specific options
299
+ #
300
+ # @yield [result, err] Result & error if block supplied
301
+ # @yieldparam result [Google::Apis::RedisV1beta1::ListClustersResponse] parsed result object
302
+ # @yieldparam err [StandardError] error object if request failed
303
+ #
304
+ # @return [Google::Apis::RedisV1beta1::ListClustersResponse]
305
+ #
306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
309
+ def list_project_location_clusters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
310
+ command = make_simple_command(:get, 'v1beta1/{+parent}/clusters', options)
311
+ command.response_representation = Google::Apis::RedisV1beta1::ListClustersResponse::Representation
312
+ command.response_class = Google::Apis::RedisV1beta1::ListClustersResponse
313
+ command.params['parent'] = parent unless parent.nil?
314
+ command.query['pageSize'] = page_size unless page_size.nil?
315
+ command.query['pageToken'] = page_token unless page_token.nil?
316
+ command.query['fields'] = fields unless fields.nil?
317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
318
+ execute_or_queue_command(command, &block)
319
+ end
320
+
321
+ # Updates the metadata and configuration of a specific Redis cluster. Completed
322
+ # longrunning.Operation will contain the new cluster object in the response
323
+ # field. The returned operation is automatically deleted after a few hours, so
324
+ # there is no need to call DeleteOperation.
325
+ # @param [String] name
326
+ # Required. Unique name of the resource in this scope including project and
327
+ # location using the form: `projects/`project_id`/locations/`location_id`/
328
+ # clusters/`cluster_id``
329
+ # @param [Google::Apis::RedisV1beta1::Cluster] cluster_object
330
+ # @param [String] request_id
331
+ # Idempotent request UUID.
332
+ # @param [String] update_mask
333
+ # Required. Mask of fields to update. At least one path must be supplied in this
334
+ # field. The elements of the repeated paths field may only include these fields
335
+ # from Cluster: * `size_gb` * `replica_count`
336
+ # @param [String] fields
337
+ # Selector specifying which fields to include in a partial response.
338
+ # @param [String] quota_user
339
+ # Available to use for quota purposes for server-side applications. Can be any
340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
341
+ # @param [Google::Apis::RequestOptions] options
342
+ # Request-specific options
343
+ #
344
+ # @yield [result, err] Result & error if block supplied
345
+ # @yieldparam result [Google::Apis::RedisV1beta1::Operation] parsed result object
346
+ # @yieldparam err [StandardError] error object if request failed
347
+ #
348
+ # @return [Google::Apis::RedisV1beta1::Operation]
349
+ #
350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
353
+ def patch_project_location_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
354
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
355
+ command.request_representation = Google::Apis::RedisV1beta1::Cluster::Representation
356
+ command.request_object = cluster_object
357
+ command.response_representation = Google::Apis::RedisV1beta1::Operation::Representation
358
+ command.response_class = Google::Apis::RedisV1beta1::Operation
359
+ command.params['name'] = name unless name.nil?
360
+ command.query['requestId'] = request_id unless request_id.nil?
361
+ command.query['updateMask'] = update_mask unless update_mask.nil?
362
+ command.query['fields'] = fields unless fields.nil?
363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
364
+ execute_or_queue_command(command, &block)
365
+ end
366
+
125
367
  # Creates a Redis instance based on the specified tier and memory size. By
126
368
  # default, the instance is accessible from the project's [default network](https:
127
369
  # //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and
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.34.0
4
+ version: 0.36.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: 2023-04-23 00:00:00.000000000 Z
11
+ date: 2023-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -59,7 +59,7 @@ licenses:
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
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.34.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1beta1/v0.36.0
63
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: []