google-apis-alloydb_v1beta 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1104 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module AlloydbV1beta
24
+
25
+ class AutomatedBackupPolicy
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Backup
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class BackupSource
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ClientConnectionConfig
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CloudControl2SharedOperationsReconciliationOperationMetadata
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Cluster
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ConnectionInfo
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ContinuousBackupConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ContinuousBackupInfo
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ContinuousBackupSource
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Empty
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class EncryptionConfig
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class EncryptionInfo
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class FailoverInstanceRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GenerateClientCertificateRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GenerateClientCertificateResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleCloudLocationListLocationsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleCloudLocationLocation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleTypeTimeOfDay
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class InjectFaultRequest
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Instance
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class IntegerRestrictions
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ListBackupsResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ListClustersResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ListInstancesResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ListOperationsResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ListSupportedDatabaseFlagsResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ListUsersResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class MachineConfig
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class MigrationSource
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class NetworkConfig
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class Node
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class Operation
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class OperationMetadata
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class PrimaryConfig
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class PromoteClusterRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class QuantityBasedExpiry
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class QuantityBasedRetention
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class QueryInsightsInstanceConfig
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class ReadPoolConfig
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class RestartInstanceRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class RestoreClusterRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class SecondaryConfig
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class SslConfig
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class Status
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class StorageDatabasecenterPartnerapiV1mainBackupConfiguration
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class StorageDatabasecenterPartnerapiV1mainBackupRun
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class StorageDatabasecenterPartnerapiV1mainCompliance
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class StorageDatabasecenterPartnerapiV1mainOperationError
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class StorageDatabasecenterPartnerapiV1mainRetentionSettings
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class StorageDatabasecenterProtoCommonProduct
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class StringRestrictions
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
367
+ class SupportedDatabaseFlag
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class TimeBasedRetention
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class UpdatePolicy
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class User
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class UserPassword
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
397
+ class WeeklySchedule
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
403
+ class AutomatedBackupPolicy
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :backup_window, as: 'backupWindow'
407
+ property :enabled, as: 'enabled'
408
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::AlloydbV1beta::EncryptionConfig, decorator: Google::Apis::AlloydbV1beta::EncryptionConfig::Representation
409
+
410
+ hash :labels, as: 'labels'
411
+ property :location, as: 'location'
412
+ property :quantity_based_retention, as: 'quantityBasedRetention', class: Google::Apis::AlloydbV1beta::QuantityBasedRetention, decorator: Google::Apis::AlloydbV1beta::QuantityBasedRetention::Representation
413
+
414
+ property :time_based_retention, as: 'timeBasedRetention', class: Google::Apis::AlloydbV1beta::TimeBasedRetention, decorator: Google::Apis::AlloydbV1beta::TimeBasedRetention::Representation
415
+
416
+ property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::AlloydbV1beta::WeeklySchedule, decorator: Google::Apis::AlloydbV1beta::WeeklySchedule::Representation
417
+
418
+ end
419
+ end
420
+
421
+ class Backup
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ hash :annotations, as: 'annotations'
425
+ property :cluster_name, as: 'clusterName'
426
+ property :cluster_uid, as: 'clusterUid'
427
+ property :create_time, as: 'createTime'
428
+ property :database_version, as: 'databaseVersion'
429
+ property :delete_time, as: 'deleteTime'
430
+ property :description, as: 'description'
431
+ property :display_name, as: 'displayName'
432
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::AlloydbV1beta::EncryptionConfig, decorator: Google::Apis::AlloydbV1beta::EncryptionConfig::Representation
433
+
434
+ property :encryption_info, as: 'encryptionInfo', class: Google::Apis::AlloydbV1beta::EncryptionInfo, decorator: Google::Apis::AlloydbV1beta::EncryptionInfo::Representation
435
+
436
+ property :etag, as: 'etag'
437
+ property :expiry_quantity, as: 'expiryQuantity', class: Google::Apis::AlloydbV1beta::QuantityBasedExpiry, decorator: Google::Apis::AlloydbV1beta::QuantityBasedExpiry::Representation
438
+
439
+ property :expiry_time, as: 'expiryTime'
440
+ hash :labels, as: 'labels'
441
+ property :name, as: 'name'
442
+ property :reconciling, as: 'reconciling'
443
+ property :size_bytes, :numeric_string => true, as: 'sizeBytes'
444
+ property :state, as: 'state'
445
+ property :type, as: 'type'
446
+ property :uid, as: 'uid'
447
+ property :update_time, as: 'updateTime'
448
+ end
449
+ end
450
+
451
+ class BackupSource
452
+ # @private
453
+ class Representation < Google::Apis::Core::JsonRepresentation
454
+ property :backup_name, as: 'backupName'
455
+ property :backup_uid, as: 'backupUid'
456
+ end
457
+ end
458
+
459
+ class ClientConnectionConfig
460
+ # @private
461
+ class Representation < Google::Apis::Core::JsonRepresentation
462
+ property :require_connectors, as: 'requireConnectors'
463
+ property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1beta::SslConfig, decorator: Google::Apis::AlloydbV1beta::SslConfig::Representation
464
+
465
+ end
466
+ end
467
+
468
+ class CloudControl2SharedOperationsReconciliationOperationMetadata
469
+ # @private
470
+ class Representation < Google::Apis::Core::JsonRepresentation
471
+ property :delete_resource, as: 'deleteResource'
472
+ property :exclusive_action, as: 'exclusiveAction'
473
+ end
474
+ end
475
+
476
+ class Cluster
477
+ # @private
478
+ class Representation < Google::Apis::Core::JsonRepresentation
479
+ hash :annotations, as: 'annotations'
480
+ property :automated_backup_policy, as: 'automatedBackupPolicy', class: Google::Apis::AlloydbV1beta::AutomatedBackupPolicy, decorator: Google::Apis::AlloydbV1beta::AutomatedBackupPolicy::Representation
481
+
482
+ property :backup_source, as: 'backupSource', class: Google::Apis::AlloydbV1beta::BackupSource, decorator: Google::Apis::AlloydbV1beta::BackupSource::Representation
483
+
484
+ property :cluster_type, as: 'clusterType'
485
+ property :continuous_backup_config, as: 'continuousBackupConfig', class: Google::Apis::AlloydbV1beta::ContinuousBackupConfig, decorator: Google::Apis::AlloydbV1beta::ContinuousBackupConfig::Representation
486
+
487
+ property :continuous_backup_info, as: 'continuousBackupInfo', class: Google::Apis::AlloydbV1beta::ContinuousBackupInfo, decorator: Google::Apis::AlloydbV1beta::ContinuousBackupInfo::Representation
488
+
489
+ property :create_time, as: 'createTime'
490
+ property :database_version, as: 'databaseVersion'
491
+ property :delete_time, as: 'deleteTime'
492
+ property :display_name, as: 'displayName'
493
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::AlloydbV1beta::EncryptionConfig, decorator: Google::Apis::AlloydbV1beta::EncryptionConfig::Representation
494
+
495
+ property :encryption_info, as: 'encryptionInfo', class: Google::Apis::AlloydbV1beta::EncryptionInfo, decorator: Google::Apis::AlloydbV1beta::EncryptionInfo::Representation
496
+
497
+ property :etag, as: 'etag'
498
+ property :initial_user, as: 'initialUser', class: Google::Apis::AlloydbV1beta::UserPassword, decorator: Google::Apis::AlloydbV1beta::UserPassword::Representation
499
+
500
+ hash :labels, as: 'labels'
501
+ property :migration_source, as: 'migrationSource', class: Google::Apis::AlloydbV1beta::MigrationSource, decorator: Google::Apis::AlloydbV1beta::MigrationSource::Representation
502
+
503
+ property :name, as: 'name'
504
+ property :network, as: 'network'
505
+ property :network_config, as: 'networkConfig', class: Google::Apis::AlloydbV1beta::NetworkConfig, decorator: Google::Apis::AlloydbV1beta::NetworkConfig::Representation
506
+
507
+ property :primary_config, as: 'primaryConfig', class: Google::Apis::AlloydbV1beta::PrimaryConfig, decorator: Google::Apis::AlloydbV1beta::PrimaryConfig::Representation
508
+
509
+ property :reconciling, as: 'reconciling'
510
+ property :secondary_config, as: 'secondaryConfig', class: Google::Apis::AlloydbV1beta::SecondaryConfig, decorator: Google::Apis::AlloydbV1beta::SecondaryConfig::Representation
511
+
512
+ property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1beta::SslConfig, decorator: Google::Apis::AlloydbV1beta::SslConfig::Representation
513
+
514
+ property :state, as: 'state'
515
+ property :uid, as: 'uid'
516
+ property :update_time, as: 'updateTime'
517
+ end
518
+ end
519
+
520
+ class ConnectionInfo
521
+ # @private
522
+ class Representation < Google::Apis::Core::JsonRepresentation
523
+ property :instance_uid, as: 'instanceUid'
524
+ property :ip_address, as: 'ipAddress'
525
+ property :name, as: 'name'
526
+ collection :pem_certificate_chain, as: 'pemCertificateChain'
527
+ end
528
+ end
529
+
530
+ class ContinuousBackupConfig
531
+ # @private
532
+ class Representation < Google::Apis::Core::JsonRepresentation
533
+ property :enabled, as: 'enabled'
534
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::AlloydbV1beta::EncryptionConfig, decorator: Google::Apis::AlloydbV1beta::EncryptionConfig::Representation
535
+
536
+ property :recovery_window_days, as: 'recoveryWindowDays'
537
+ end
538
+ end
539
+
540
+ class ContinuousBackupInfo
541
+ # @private
542
+ class Representation < Google::Apis::Core::JsonRepresentation
543
+ property :earliest_restorable_time, as: 'earliestRestorableTime'
544
+ property :enabled_time, as: 'enabledTime'
545
+ property :encryption_info, as: 'encryptionInfo', class: Google::Apis::AlloydbV1beta::EncryptionInfo, decorator: Google::Apis::AlloydbV1beta::EncryptionInfo::Representation
546
+
547
+ collection :schedule, as: 'schedule'
548
+ end
549
+ end
550
+
551
+ class ContinuousBackupSource
552
+ # @private
553
+ class Representation < Google::Apis::Core::JsonRepresentation
554
+ property :cluster, as: 'cluster'
555
+ property :point_in_time, as: 'pointInTime'
556
+ end
557
+ end
558
+
559
+ class Empty
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ end
563
+ end
564
+
565
+ class EncryptionConfig
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :kms_key_name, as: 'kmsKeyName'
569
+ end
570
+ end
571
+
572
+ class EncryptionInfo
573
+ # @private
574
+ class Representation < Google::Apis::Core::JsonRepresentation
575
+ property :encryption_type, as: 'encryptionType'
576
+ collection :kms_key_versions, as: 'kmsKeyVersions'
577
+ end
578
+ end
579
+
580
+ class FailoverInstanceRequest
581
+ # @private
582
+ class Representation < Google::Apis::Core::JsonRepresentation
583
+ property :request_id, as: 'requestId'
584
+ property :validate_only, as: 'validateOnly'
585
+ end
586
+ end
587
+
588
+ class GenerateClientCertificateRequest
589
+ # @private
590
+ class Representation < Google::Apis::Core::JsonRepresentation
591
+ property :cert_duration, as: 'certDuration'
592
+ property :pem_csr, as: 'pemCsr'
593
+ property :public_key, as: 'publicKey'
594
+ property :request_id, as: 'requestId'
595
+ property :use_metadata_exchange, as: 'useMetadataExchange'
596
+ end
597
+ end
598
+
599
+ class GenerateClientCertificateResponse
600
+ # @private
601
+ class Representation < Google::Apis::Core::JsonRepresentation
602
+ property :ca_cert, as: 'caCert'
603
+ property :pem_certificate, as: 'pemCertificate'
604
+ collection :pem_certificate_chain, as: 'pemCertificateChain'
605
+ end
606
+ end
607
+
608
+ class GoogleCloudLocationListLocationsResponse
609
+ # @private
610
+ class Representation < Google::Apis::Core::JsonRepresentation
611
+ collection :locations, as: 'locations', class: Google::Apis::AlloydbV1beta::GoogleCloudLocationLocation, decorator: Google::Apis::AlloydbV1beta::GoogleCloudLocationLocation::Representation
612
+
613
+ property :next_page_token, as: 'nextPageToken'
614
+ end
615
+ end
616
+
617
+ class GoogleCloudLocationLocation
618
+ # @private
619
+ class Representation < Google::Apis::Core::JsonRepresentation
620
+ property :display_name, as: 'displayName'
621
+ hash :labels, as: 'labels'
622
+ property :location_id, as: 'locationId'
623
+ hash :metadata, as: 'metadata'
624
+ property :name, as: 'name'
625
+ end
626
+ end
627
+
628
+ class GoogleTypeTimeOfDay
629
+ # @private
630
+ class Representation < Google::Apis::Core::JsonRepresentation
631
+ property :hours, as: 'hours'
632
+ property :minutes, as: 'minutes'
633
+ property :nanos, as: 'nanos'
634
+ property :seconds, as: 'seconds'
635
+ end
636
+ end
637
+
638
+ class InjectFaultRequest
639
+ # @private
640
+ class Representation < Google::Apis::Core::JsonRepresentation
641
+ property :fault_type, as: 'faultType'
642
+ property :request_id, as: 'requestId'
643
+ property :validate_only, as: 'validateOnly'
644
+ end
645
+ end
646
+
647
+ class Instance
648
+ # @private
649
+ class Representation < Google::Apis::Core::JsonRepresentation
650
+ hash :annotations, as: 'annotations'
651
+ property :availability_type, as: 'availabilityType'
652
+ property :client_connection_config, as: 'clientConnectionConfig', class: Google::Apis::AlloydbV1beta::ClientConnectionConfig, decorator: Google::Apis::AlloydbV1beta::ClientConnectionConfig::Representation
653
+
654
+ property :create_time, as: 'createTime'
655
+ hash :database_flags, as: 'databaseFlags'
656
+ property :delete_time, as: 'deleteTime'
657
+ property :display_name, as: 'displayName'
658
+ property :etag, as: 'etag'
659
+ property :gce_zone, as: 'gceZone'
660
+ property :instance_type, as: 'instanceType'
661
+ property :ip_address, as: 'ipAddress'
662
+ hash :labels, as: 'labels'
663
+ property :machine_config, as: 'machineConfig', class: Google::Apis::AlloydbV1beta::MachineConfig, decorator: Google::Apis::AlloydbV1beta::MachineConfig::Representation
664
+
665
+ property :name, as: 'name'
666
+ collection :nodes, as: 'nodes', class: Google::Apis::AlloydbV1beta::Node, decorator: Google::Apis::AlloydbV1beta::Node::Representation
667
+
668
+ property :query_insights_config, as: 'queryInsightsConfig', class: Google::Apis::AlloydbV1beta::QueryInsightsInstanceConfig, decorator: Google::Apis::AlloydbV1beta::QueryInsightsInstanceConfig::Representation
669
+
670
+ property :read_pool_config, as: 'readPoolConfig', class: Google::Apis::AlloydbV1beta::ReadPoolConfig, decorator: Google::Apis::AlloydbV1beta::ReadPoolConfig::Representation
671
+
672
+ property :reconciling, as: 'reconciling'
673
+ property :state, as: 'state'
674
+ property :uid, as: 'uid'
675
+ property :update_policy, as: 'updatePolicy', class: Google::Apis::AlloydbV1beta::UpdatePolicy, decorator: Google::Apis::AlloydbV1beta::UpdatePolicy::Representation
676
+
677
+ property :update_time, as: 'updateTime'
678
+ property :writable_node, as: 'writableNode', class: Google::Apis::AlloydbV1beta::Node, decorator: Google::Apis::AlloydbV1beta::Node::Representation
679
+
680
+ end
681
+ end
682
+
683
+ class IntegerRestrictions
684
+ # @private
685
+ class Representation < Google::Apis::Core::JsonRepresentation
686
+ property :max_value, :numeric_string => true, as: 'maxValue'
687
+ property :min_value, :numeric_string => true, as: 'minValue'
688
+ end
689
+ end
690
+
691
+ class ListBackupsResponse
692
+ # @private
693
+ class Representation < Google::Apis::Core::JsonRepresentation
694
+ collection :backups, as: 'backups', class: Google::Apis::AlloydbV1beta::Backup, decorator: Google::Apis::AlloydbV1beta::Backup::Representation
695
+
696
+ property :next_page_token, as: 'nextPageToken'
697
+ collection :unreachable, as: 'unreachable'
698
+ end
699
+ end
700
+
701
+ class ListClustersResponse
702
+ # @private
703
+ class Representation < Google::Apis::Core::JsonRepresentation
704
+ collection :clusters, as: 'clusters', class: Google::Apis::AlloydbV1beta::Cluster, decorator: Google::Apis::AlloydbV1beta::Cluster::Representation
705
+
706
+ property :next_page_token, as: 'nextPageToken'
707
+ collection :unreachable, as: 'unreachable'
708
+ end
709
+ end
710
+
711
+ class ListInstancesResponse
712
+ # @private
713
+ class Representation < Google::Apis::Core::JsonRepresentation
714
+ collection :instances, as: 'instances', class: Google::Apis::AlloydbV1beta::Instance, decorator: Google::Apis::AlloydbV1beta::Instance::Representation
715
+
716
+ property :next_page_token, as: 'nextPageToken'
717
+ collection :unreachable, as: 'unreachable'
718
+ end
719
+ end
720
+
721
+ class ListOperationsResponse
722
+ # @private
723
+ class Representation < Google::Apis::Core::JsonRepresentation
724
+ property :next_page_token, as: 'nextPageToken'
725
+ collection :operations, as: 'operations', class: Google::Apis::AlloydbV1beta::Operation, decorator: Google::Apis::AlloydbV1beta::Operation::Representation
726
+
727
+ end
728
+ end
729
+
730
+ class ListSupportedDatabaseFlagsResponse
731
+ # @private
732
+ class Representation < Google::Apis::Core::JsonRepresentation
733
+ property :next_page_token, as: 'nextPageToken'
734
+ collection :supported_database_flags, as: 'supportedDatabaseFlags', class: Google::Apis::AlloydbV1beta::SupportedDatabaseFlag, decorator: Google::Apis::AlloydbV1beta::SupportedDatabaseFlag::Representation
735
+
736
+ end
737
+ end
738
+
739
+ class ListUsersResponse
740
+ # @private
741
+ class Representation < Google::Apis::Core::JsonRepresentation
742
+ property :next_page_token, as: 'nextPageToken'
743
+ collection :unreachable, as: 'unreachable'
744
+ collection :users, as: 'users', class: Google::Apis::AlloydbV1beta::User, decorator: Google::Apis::AlloydbV1beta::User::Representation
745
+
746
+ end
747
+ end
748
+
749
+ class MachineConfig
750
+ # @private
751
+ class Representation < Google::Apis::Core::JsonRepresentation
752
+ property :cpu_count, as: 'cpuCount'
753
+ end
754
+ end
755
+
756
+ class MigrationSource
757
+ # @private
758
+ class Representation < Google::Apis::Core::JsonRepresentation
759
+ property :host_port, as: 'hostPort'
760
+ property :reference_id, as: 'referenceId'
761
+ property :source_type, as: 'sourceType'
762
+ end
763
+ end
764
+
765
+ class NetworkConfig
766
+ # @private
767
+ class Representation < Google::Apis::Core::JsonRepresentation
768
+ property :allocated_ip_range, as: 'allocatedIpRange'
769
+ property :network, as: 'network'
770
+ end
771
+ end
772
+
773
+ class Node
774
+ # @private
775
+ class Representation < Google::Apis::Core::JsonRepresentation
776
+ property :id, as: 'id'
777
+ property :ip, as: 'ip'
778
+ property :state, as: 'state'
779
+ property :zone_id, as: 'zoneId'
780
+ end
781
+ end
782
+
783
+ class Operation
784
+ # @private
785
+ class Representation < Google::Apis::Core::JsonRepresentation
786
+ property :done, as: 'done'
787
+ property :error, as: 'error', class: Google::Apis::AlloydbV1beta::Status, decorator: Google::Apis::AlloydbV1beta::Status::Representation
788
+
789
+ hash :metadata, as: 'metadata'
790
+ property :name, as: 'name'
791
+ hash :response, as: 'response'
792
+ end
793
+ end
794
+
795
+ class OperationMetadata
796
+ # @private
797
+ class Representation < Google::Apis::Core::JsonRepresentation
798
+ property :api_version, as: 'apiVersion'
799
+ property :create_time, as: 'createTime'
800
+ property :end_time, as: 'endTime'
801
+ property :requested_cancellation, as: 'requestedCancellation'
802
+ property :status_message, as: 'statusMessage'
803
+ property :target, as: 'target'
804
+ property :verb, as: 'verb'
805
+ end
806
+ end
807
+
808
+ class PrimaryConfig
809
+ # @private
810
+ class Representation < Google::Apis::Core::JsonRepresentation
811
+ collection :secondary_cluster_names, as: 'secondaryClusterNames'
812
+ end
813
+ end
814
+
815
+ class PromoteClusterRequest
816
+ # @private
817
+ class Representation < Google::Apis::Core::JsonRepresentation
818
+ property :etag, as: 'etag'
819
+ property :request_id, as: 'requestId'
820
+ property :validate_only, as: 'validateOnly'
821
+ end
822
+ end
823
+
824
+ class QuantityBasedExpiry
825
+ # @private
826
+ class Representation < Google::Apis::Core::JsonRepresentation
827
+ property :retention_count, as: 'retentionCount'
828
+ property :total_retention_count, as: 'totalRetentionCount'
829
+ end
830
+ end
831
+
832
+ class QuantityBasedRetention
833
+ # @private
834
+ class Representation < Google::Apis::Core::JsonRepresentation
835
+ property :count, as: 'count'
836
+ end
837
+ end
838
+
839
+ class QueryInsightsInstanceConfig
840
+ # @private
841
+ class Representation < Google::Apis::Core::JsonRepresentation
842
+ property :query_plans_per_minute, as: 'queryPlansPerMinute'
843
+ property :query_string_length, as: 'queryStringLength'
844
+ property :record_application_tags, as: 'recordApplicationTags'
845
+ property :record_client_address, as: 'recordClientAddress'
846
+ end
847
+ end
848
+
849
+ class ReadPoolConfig
850
+ # @private
851
+ class Representation < Google::Apis::Core::JsonRepresentation
852
+ property :node_count, as: 'nodeCount'
853
+ end
854
+ end
855
+
856
+ class RestartInstanceRequest
857
+ # @private
858
+ class Representation < Google::Apis::Core::JsonRepresentation
859
+ property :request_id, as: 'requestId'
860
+ property :validate_only, as: 'validateOnly'
861
+ end
862
+ end
863
+
864
+ class RestoreClusterRequest
865
+ # @private
866
+ class Representation < Google::Apis::Core::JsonRepresentation
867
+ property :backup_source, as: 'backupSource', class: Google::Apis::AlloydbV1beta::BackupSource, decorator: Google::Apis::AlloydbV1beta::BackupSource::Representation
868
+
869
+ property :cluster, as: 'cluster', class: Google::Apis::AlloydbV1beta::Cluster, decorator: Google::Apis::AlloydbV1beta::Cluster::Representation
870
+
871
+ property :cluster_id, as: 'clusterId'
872
+ property :continuous_backup_source, as: 'continuousBackupSource', class: Google::Apis::AlloydbV1beta::ContinuousBackupSource, decorator: Google::Apis::AlloydbV1beta::ContinuousBackupSource::Representation
873
+
874
+ property :request_id, as: 'requestId'
875
+ property :validate_only, as: 'validateOnly'
876
+ end
877
+ end
878
+
879
+ class SecondaryConfig
880
+ # @private
881
+ class Representation < Google::Apis::Core::JsonRepresentation
882
+ property :primary_cluster_name, as: 'primaryClusterName'
883
+ end
884
+ end
885
+
886
+ class SslConfig
887
+ # @private
888
+ class Representation < Google::Apis::Core::JsonRepresentation
889
+ property :ca_source, as: 'caSource'
890
+ property :ssl_mode, as: 'sslMode'
891
+ end
892
+ end
893
+
894
+ class Status
895
+ # @private
896
+ class Representation < Google::Apis::Core::JsonRepresentation
897
+ property :code, as: 'code'
898
+ collection :details, as: 'details'
899
+ property :message, as: 'message'
900
+ end
901
+ end
902
+
903
+ class StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
904
+ # @private
905
+ class Representation < Google::Apis::Core::JsonRepresentation
906
+ property :availability_type, as: 'availabilityType'
907
+ property :external_replica_configured, as: 'externalReplicaConfigured'
908
+ property :promotable_replica_configured, as: 'promotableReplicaConfigured'
909
+ end
910
+ end
911
+
912
+ class StorageDatabasecenterPartnerapiV1mainBackupConfiguration
913
+ # @private
914
+ class Representation < Google::Apis::Core::JsonRepresentation
915
+ property :automated_backup_enabled, as: 'automatedBackupEnabled'
916
+ property :backup_retention_settings, as: 'backupRetentionSettings', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainRetentionSettings, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainRetentionSettings::Representation
917
+
918
+ property :point_in_time_recovery_enabled, as: 'pointInTimeRecoveryEnabled'
919
+ end
920
+ end
921
+
922
+ class StorageDatabasecenterPartnerapiV1mainBackupRun
923
+ # @private
924
+ class Representation < Google::Apis::Core::JsonRepresentation
925
+ property :end_time, as: 'endTime'
926
+ property :error, as: 'error', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainOperationError, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainOperationError::Representation
927
+
928
+ property :start_time, as: 'startTime'
929
+ property :status, as: 'status'
930
+ end
931
+ end
932
+
933
+ class StorageDatabasecenterPartnerapiV1mainCompliance
934
+ # @private
935
+ class Representation < Google::Apis::Core::JsonRepresentation
936
+ property :standard, as: 'standard'
937
+ property :version, as: 'version'
938
+ end
939
+ end
940
+
941
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed
942
+ # @private
943
+ class Representation < Google::Apis::Core::JsonRepresentation
944
+ property :feed_timestamp, as: 'feedTimestamp'
945
+ property :feed_type, as: 'feedType'
946
+ property :resource_health_signal_data, as: 'resourceHealthSignalData', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData::Representation
947
+
948
+ property :resource_id, as: 'resourceId', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::Representation
949
+
950
+ property :resource_metadata, as: 'resourceMetadata', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata::Representation
951
+
952
+ end
953
+ end
954
+
955
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData
956
+ # @private
957
+ class Representation < Google::Apis::Core::JsonRepresentation
958
+ hash :additional_metadata, as: 'additionalMetadata'
959
+ collection :compliance, as: 'compliance', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainCompliance, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainCompliance::Representation
960
+
961
+ property :description, as: 'description'
962
+ property :event_time, as: 'eventTime'
963
+ property :external_uri, as: 'externalUri'
964
+ property :name, as: 'name'
965
+ property :provider, as: 'provider'
966
+ property :resource_container, as: 'resourceContainer'
967
+ property :resource_name, as: 'resourceName'
968
+ property :signal_class, as: 'signalClass'
969
+ property :signal_id, as: 'signalId'
970
+ property :signal_type, as: 'signalType'
971
+ property :state, as: 'state'
972
+ end
973
+ end
974
+
975
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
976
+ # @private
977
+ class Representation < Google::Apis::Core::JsonRepresentation
978
+ property :provider, as: 'provider'
979
+ property :provider_description, as: 'providerDescription'
980
+ property :resource_type, as: 'resourceType'
981
+ property :unique_id, as: 'uniqueId'
982
+ end
983
+ end
984
+
985
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
986
+ # @private
987
+ class Representation < Google::Apis::Core::JsonRepresentation
988
+ property :availability_configuration, as: 'availabilityConfiguration', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration::Representation
989
+
990
+ property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainBackupConfiguration, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainBackupConfiguration::Representation
991
+
992
+ property :backup_run, as: 'backupRun', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainBackupRun, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainBackupRun::Representation
993
+
994
+ property :creation_time, as: 'creationTime'
995
+ property :current_state, as: 'currentState'
996
+ hash :custom_metadata, as: 'customMetadata'
997
+ property :expected_state, as: 'expectedState'
998
+ property :id, as: 'id', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::Representation
999
+
1000
+ property :instance_type, as: 'instanceType'
1001
+ property :location, as: 'location'
1002
+ property :primary_resource_id, as: 'primaryResourceId', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::Representation
1003
+
1004
+ property :product, as: 'product', class: Google::Apis::AlloydbV1beta::StorageDatabasecenterProtoCommonProduct, decorator: Google::Apis::AlloydbV1beta::StorageDatabasecenterProtoCommonProduct::Representation
1005
+
1006
+ property :resource_container, as: 'resourceContainer'
1007
+ property :resource_name, as: 'resourceName'
1008
+ property :updation_time, as: 'updationTime'
1009
+ hash :user_labels, as: 'userLabels'
1010
+ end
1011
+ end
1012
+
1013
+ class StorageDatabasecenterPartnerapiV1mainOperationError
1014
+ # @private
1015
+ class Representation < Google::Apis::Core::JsonRepresentation
1016
+ property :code, as: 'code'
1017
+ property :message, as: 'message'
1018
+ end
1019
+ end
1020
+
1021
+ class StorageDatabasecenterPartnerapiV1mainRetentionSettings
1022
+ # @private
1023
+ class Representation < Google::Apis::Core::JsonRepresentation
1024
+ property :quantity_based_retention, as: 'quantityBasedRetention'
1025
+ property :retention_unit, as: 'retentionUnit'
1026
+ property :time_based_retention, as: 'timeBasedRetention'
1027
+ end
1028
+ end
1029
+
1030
+ class StorageDatabasecenterProtoCommonProduct
1031
+ # @private
1032
+ class Representation < Google::Apis::Core::JsonRepresentation
1033
+ property :engine, as: 'engine'
1034
+ property :type, as: 'type'
1035
+ property :version, as: 'version'
1036
+ end
1037
+ end
1038
+
1039
+ class StringRestrictions
1040
+ # @private
1041
+ class Representation < Google::Apis::Core::JsonRepresentation
1042
+ collection :allowed_values, as: 'allowedValues'
1043
+ end
1044
+ end
1045
+
1046
+ class SupportedDatabaseFlag
1047
+ # @private
1048
+ class Representation < Google::Apis::Core::JsonRepresentation
1049
+ property :accepts_multiple_values, as: 'acceptsMultipleValues'
1050
+ property :flag_name, as: 'flagName'
1051
+ property :integer_restrictions, as: 'integerRestrictions', class: Google::Apis::AlloydbV1beta::IntegerRestrictions, decorator: Google::Apis::AlloydbV1beta::IntegerRestrictions::Representation
1052
+
1053
+ property :name, as: 'name'
1054
+ property :requires_db_restart, as: 'requiresDbRestart'
1055
+ property :string_restrictions, as: 'stringRestrictions', class: Google::Apis::AlloydbV1beta::StringRestrictions, decorator: Google::Apis::AlloydbV1beta::StringRestrictions::Representation
1056
+
1057
+ collection :supported_db_versions, as: 'supportedDbVersions'
1058
+ property :value_type, as: 'valueType'
1059
+ end
1060
+ end
1061
+
1062
+ class TimeBasedRetention
1063
+ # @private
1064
+ class Representation < Google::Apis::Core::JsonRepresentation
1065
+ property :retention_period, as: 'retentionPeriod'
1066
+ end
1067
+ end
1068
+
1069
+ class UpdatePolicy
1070
+ # @private
1071
+ class Representation < Google::Apis::Core::JsonRepresentation
1072
+ property :mode, as: 'mode'
1073
+ end
1074
+ end
1075
+
1076
+ class User
1077
+ # @private
1078
+ class Representation < Google::Apis::Core::JsonRepresentation
1079
+ collection :database_roles, as: 'databaseRoles'
1080
+ property :name, as: 'name'
1081
+ property :password, as: 'password'
1082
+ property :user_type, as: 'userType'
1083
+ end
1084
+ end
1085
+
1086
+ class UserPassword
1087
+ # @private
1088
+ class Representation < Google::Apis::Core::JsonRepresentation
1089
+ property :password, as: 'password'
1090
+ property :user, as: 'user'
1091
+ end
1092
+ end
1093
+
1094
+ class WeeklySchedule
1095
+ # @private
1096
+ class Representation < Google::Apis::Core::JsonRepresentation
1097
+ collection :days_of_week, as: 'daysOfWeek'
1098
+ collection :start_times, as: 'startTimes', class: Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay, decorator: Google::Apis::AlloydbV1beta::GoogleTypeTimeOfDay::Representation
1099
+
1100
+ end
1101
+ end
1102
+ end
1103
+ end
1104
+ end