google-apis-alloydb_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1096 @@
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 AlloydbV1
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 CancelOperationRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ClientConnectionConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CloudControl2SharedOperationsReconciliationOperationMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Cluster
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ConnectionInfo
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ContinuousBackupConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ContinuousBackupInfo
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ContinuousBackupSource
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Empty
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class EncryptionConfig
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class EncryptionInfo
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class FailoverInstanceRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GenerateClientCertificateRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GenerateClientCertificateResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleCloudLocationListLocationsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudLocationLocation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleTypeTimeOfDay
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class InjectFaultRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Instance
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class IntegerRestrictions
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ListBackupsResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ListClustersResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ListInstancesResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ListOperationsResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ListSupportedDatabaseFlagsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class ListUsersResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class MachineConfig
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class MigrationSource
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class NetworkConfig
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class Node
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class Operation
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class OperationMetadata
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class PrimaryConfig
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class PromoteClusterRequest
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class QuantityBasedExpiry
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class QuantityBasedRetention
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class QueryInsightsInstanceConfig
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class ReadPoolConfig
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class RestartInstanceRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class RestoreClusterRequest
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class SecondaryConfig
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class SslConfig
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class Status
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class StorageDatabasecenterPartnerapiV1mainBackupConfiguration
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class StorageDatabasecenterPartnerapiV1mainBackupRun
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class StorageDatabasecenterPartnerapiV1mainCompliance
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class StorageDatabasecenterPartnerapiV1mainOperationError
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class StorageDatabasecenterPartnerapiV1mainRetentionSettings
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class StorageDatabasecenterProtoCommonProduct
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
367
+ class StringRestrictions
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class SupportedDatabaseFlag
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class TimeBasedRetention
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::AlloydbV1::EncryptionConfig, decorator: Google::Apis::AlloydbV1::EncryptionConfig::Representation
409
+
410
+ hash :labels, as: 'labels'
411
+ property :location, as: 'location'
412
+ property :quantity_based_retention, as: 'quantityBasedRetention', class: Google::Apis::AlloydbV1::QuantityBasedRetention, decorator: Google::Apis::AlloydbV1::QuantityBasedRetention::Representation
413
+
414
+ property :time_based_retention, as: 'timeBasedRetention', class: Google::Apis::AlloydbV1::TimeBasedRetention, decorator: Google::Apis::AlloydbV1::TimeBasedRetention::Representation
415
+
416
+ property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::AlloydbV1::WeeklySchedule, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::EncryptionConfig, decorator: Google::Apis::AlloydbV1::EncryptionConfig::Representation
433
+
434
+ property :encryption_info, as: 'encryptionInfo', class: Google::Apis::AlloydbV1::EncryptionInfo, decorator: Google::Apis::AlloydbV1::EncryptionInfo::Representation
435
+
436
+ property :etag, as: 'etag'
437
+ property :expiry_quantity, as: 'expiryQuantity', class: Google::Apis::AlloydbV1::QuantityBasedExpiry, decorator: Google::Apis::AlloydbV1::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 CancelOperationRequest
460
+ # @private
461
+ class Representation < Google::Apis::Core::JsonRepresentation
462
+ end
463
+ end
464
+
465
+ class ClientConnectionConfig
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ property :require_connectors, as: 'requireConnectors'
469
+ property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1::SslConfig, decorator: Google::Apis::AlloydbV1::SslConfig::Representation
470
+
471
+ end
472
+ end
473
+
474
+ class CloudControl2SharedOperationsReconciliationOperationMetadata
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :delete_resource, as: 'deleteResource'
478
+ property :exclusive_action, as: 'exclusiveAction'
479
+ end
480
+ end
481
+
482
+ class Cluster
483
+ # @private
484
+ class Representation < Google::Apis::Core::JsonRepresentation
485
+ hash :annotations, as: 'annotations'
486
+ property :automated_backup_policy, as: 'automatedBackupPolicy', class: Google::Apis::AlloydbV1::AutomatedBackupPolicy, decorator: Google::Apis::AlloydbV1::AutomatedBackupPolicy::Representation
487
+
488
+ property :backup_source, as: 'backupSource', class: Google::Apis::AlloydbV1::BackupSource, decorator: Google::Apis::AlloydbV1::BackupSource::Representation
489
+
490
+ property :cluster_type, as: 'clusterType'
491
+ property :continuous_backup_config, as: 'continuousBackupConfig', class: Google::Apis::AlloydbV1::ContinuousBackupConfig, decorator: Google::Apis::AlloydbV1::ContinuousBackupConfig::Representation
492
+
493
+ property :continuous_backup_info, as: 'continuousBackupInfo', class: Google::Apis::AlloydbV1::ContinuousBackupInfo, decorator: Google::Apis::AlloydbV1::ContinuousBackupInfo::Representation
494
+
495
+ property :create_time, as: 'createTime'
496
+ property :database_version, as: 'databaseVersion'
497
+ property :delete_time, as: 'deleteTime'
498
+ property :display_name, as: 'displayName'
499
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::AlloydbV1::EncryptionConfig, decorator: Google::Apis::AlloydbV1::EncryptionConfig::Representation
500
+
501
+ property :encryption_info, as: 'encryptionInfo', class: Google::Apis::AlloydbV1::EncryptionInfo, decorator: Google::Apis::AlloydbV1::EncryptionInfo::Representation
502
+
503
+ property :etag, as: 'etag'
504
+ property :initial_user, as: 'initialUser', class: Google::Apis::AlloydbV1::UserPassword, decorator: Google::Apis::AlloydbV1::UserPassword::Representation
505
+
506
+ hash :labels, as: 'labels'
507
+ property :migration_source, as: 'migrationSource', class: Google::Apis::AlloydbV1::MigrationSource, decorator: Google::Apis::AlloydbV1::MigrationSource::Representation
508
+
509
+ property :name, as: 'name'
510
+ property :network, as: 'network'
511
+ property :network_config, as: 'networkConfig', class: Google::Apis::AlloydbV1::NetworkConfig, decorator: Google::Apis::AlloydbV1::NetworkConfig::Representation
512
+
513
+ property :primary_config, as: 'primaryConfig', class: Google::Apis::AlloydbV1::PrimaryConfig, decorator: Google::Apis::AlloydbV1::PrimaryConfig::Representation
514
+
515
+ property :reconciling, as: 'reconciling'
516
+ property :secondary_config, as: 'secondaryConfig', class: Google::Apis::AlloydbV1::SecondaryConfig, decorator: Google::Apis::AlloydbV1::SecondaryConfig::Representation
517
+
518
+ property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1::SslConfig, decorator: Google::Apis::AlloydbV1::SslConfig::Representation
519
+
520
+ property :state, as: 'state'
521
+ property :uid, as: 'uid'
522
+ property :update_time, as: 'updateTime'
523
+ end
524
+ end
525
+
526
+ class ConnectionInfo
527
+ # @private
528
+ class Representation < Google::Apis::Core::JsonRepresentation
529
+ property :instance_uid, as: 'instanceUid'
530
+ property :ip_address, as: 'ipAddress'
531
+ property :name, as: 'name'
532
+ end
533
+ end
534
+
535
+ class ContinuousBackupConfig
536
+ # @private
537
+ class Representation < Google::Apis::Core::JsonRepresentation
538
+ property :enabled, as: 'enabled'
539
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::AlloydbV1::EncryptionConfig, decorator: Google::Apis::AlloydbV1::EncryptionConfig::Representation
540
+
541
+ property :recovery_window_days, as: 'recoveryWindowDays'
542
+ end
543
+ end
544
+
545
+ class ContinuousBackupInfo
546
+ # @private
547
+ class Representation < Google::Apis::Core::JsonRepresentation
548
+ property :earliest_restorable_time, as: 'earliestRestorableTime'
549
+ property :enabled_time, as: 'enabledTime'
550
+ property :encryption_info, as: 'encryptionInfo', class: Google::Apis::AlloydbV1::EncryptionInfo, decorator: Google::Apis::AlloydbV1::EncryptionInfo::Representation
551
+
552
+ collection :schedule, as: 'schedule'
553
+ end
554
+ end
555
+
556
+ class ContinuousBackupSource
557
+ # @private
558
+ class Representation < Google::Apis::Core::JsonRepresentation
559
+ property :cluster, as: 'cluster'
560
+ property :point_in_time, as: 'pointInTime'
561
+ end
562
+ end
563
+
564
+ class Empty
565
+ # @private
566
+ class Representation < Google::Apis::Core::JsonRepresentation
567
+ end
568
+ end
569
+
570
+ class EncryptionConfig
571
+ # @private
572
+ class Representation < Google::Apis::Core::JsonRepresentation
573
+ property :kms_key_name, as: 'kmsKeyName'
574
+ end
575
+ end
576
+
577
+ class EncryptionInfo
578
+ # @private
579
+ class Representation < Google::Apis::Core::JsonRepresentation
580
+ property :encryption_type, as: 'encryptionType'
581
+ collection :kms_key_versions, as: 'kmsKeyVersions'
582
+ end
583
+ end
584
+
585
+ class FailoverInstanceRequest
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ property :request_id, as: 'requestId'
589
+ property :validate_only, as: 'validateOnly'
590
+ end
591
+ end
592
+
593
+ class GenerateClientCertificateRequest
594
+ # @private
595
+ class Representation < Google::Apis::Core::JsonRepresentation
596
+ property :cert_duration, as: 'certDuration'
597
+ property :public_key, as: 'publicKey'
598
+ property :request_id, as: 'requestId'
599
+ end
600
+ end
601
+
602
+ class GenerateClientCertificateResponse
603
+ # @private
604
+ class Representation < Google::Apis::Core::JsonRepresentation
605
+ property :ca_cert, as: 'caCert'
606
+ collection :pem_certificate_chain, as: 'pemCertificateChain'
607
+ end
608
+ end
609
+
610
+ class GoogleCloudLocationListLocationsResponse
611
+ # @private
612
+ class Representation < Google::Apis::Core::JsonRepresentation
613
+ collection :locations, as: 'locations', class: Google::Apis::AlloydbV1::GoogleCloudLocationLocation, decorator: Google::Apis::AlloydbV1::GoogleCloudLocationLocation::Representation
614
+
615
+ property :next_page_token, as: 'nextPageToken'
616
+ end
617
+ end
618
+
619
+ class GoogleCloudLocationLocation
620
+ # @private
621
+ class Representation < Google::Apis::Core::JsonRepresentation
622
+ property :display_name, as: 'displayName'
623
+ hash :labels, as: 'labels'
624
+ property :location_id, as: 'locationId'
625
+ hash :metadata, as: 'metadata'
626
+ property :name, as: 'name'
627
+ end
628
+ end
629
+
630
+ class GoogleTypeTimeOfDay
631
+ # @private
632
+ class Representation < Google::Apis::Core::JsonRepresentation
633
+ property :hours, as: 'hours'
634
+ property :minutes, as: 'minutes'
635
+ property :nanos, as: 'nanos'
636
+ property :seconds, as: 'seconds'
637
+ end
638
+ end
639
+
640
+ class InjectFaultRequest
641
+ # @private
642
+ class Representation < Google::Apis::Core::JsonRepresentation
643
+ property :fault_type, as: 'faultType'
644
+ property :request_id, as: 'requestId'
645
+ property :validate_only, as: 'validateOnly'
646
+ end
647
+ end
648
+
649
+ class Instance
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ hash :annotations, as: 'annotations'
653
+ property :availability_type, as: 'availabilityType'
654
+ property :client_connection_config, as: 'clientConnectionConfig', class: Google::Apis::AlloydbV1::ClientConnectionConfig, decorator: Google::Apis::AlloydbV1::ClientConnectionConfig::Representation
655
+
656
+ property :create_time, as: 'createTime'
657
+ hash :database_flags, as: 'databaseFlags'
658
+ property :delete_time, as: 'deleteTime'
659
+ property :display_name, as: 'displayName'
660
+ property :etag, as: 'etag'
661
+ property :gce_zone, as: 'gceZone'
662
+ property :instance_type, as: 'instanceType'
663
+ property :ip_address, as: 'ipAddress'
664
+ hash :labels, as: 'labels'
665
+ property :machine_config, as: 'machineConfig', class: Google::Apis::AlloydbV1::MachineConfig, decorator: Google::Apis::AlloydbV1::MachineConfig::Representation
666
+
667
+ property :name, as: 'name'
668
+ collection :nodes, as: 'nodes', class: Google::Apis::AlloydbV1::Node, decorator: Google::Apis::AlloydbV1::Node::Representation
669
+
670
+ property :query_insights_config, as: 'queryInsightsConfig', class: Google::Apis::AlloydbV1::QueryInsightsInstanceConfig, decorator: Google::Apis::AlloydbV1::QueryInsightsInstanceConfig::Representation
671
+
672
+ property :read_pool_config, as: 'readPoolConfig', class: Google::Apis::AlloydbV1::ReadPoolConfig, decorator: Google::Apis::AlloydbV1::ReadPoolConfig::Representation
673
+
674
+ property :reconciling, as: 'reconciling'
675
+ property :state, as: 'state'
676
+ property :uid, as: 'uid'
677
+ property :update_time, as: 'updateTime'
678
+ property :writable_node, as: 'writableNode', class: Google::Apis::AlloydbV1::Node, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::Backup, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::Cluster, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::Instance, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::Operation, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::SupportedDatabaseFlag, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::User, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::Status, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::BackupSource, decorator: Google::Apis::AlloydbV1::BackupSource::Representation
868
+
869
+ property :cluster, as: 'cluster', class: Google::Apis::AlloydbV1::Cluster, decorator: Google::Apis::AlloydbV1::Cluster::Representation
870
+
871
+ property :cluster_id, as: 'clusterId'
872
+ property :continuous_backup_source, as: 'continuousBackupSource', class: Google::Apis::AlloydbV1::ContinuousBackupSource, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::StorageDatabasecenterPartnerapiV1mainRetentionSettings, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::StorageDatabasecenterPartnerapiV1mainOperationError, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData::Representation
947
+
948
+ property :resource_id, as: 'resourceId', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::Representation
949
+
950
+ property :resource_metadata, as: 'resourceMetadata', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata, decorator: Google::Apis::AlloydbV1::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::AlloydbV1::StorageDatabasecenterPartnerapiV1mainCompliance, decorator: Google::Apis::AlloydbV1::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 :state, as: 'state'
971
+ end
972
+ end
973
+
974
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
975
+ # @private
976
+ class Representation < Google::Apis::Core::JsonRepresentation
977
+ property :provider, as: 'provider'
978
+ property :provider_description, as: 'providerDescription'
979
+ property :resource_type, as: 'resourceType'
980
+ property :unique_id, as: 'uniqueId'
981
+ end
982
+ end
983
+
984
+ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
985
+ # @private
986
+ class Representation < Google::Apis::Core::JsonRepresentation
987
+ property :availability_configuration, as: 'availabilityConfiguration', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration::Representation
988
+
989
+ property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainBackupConfiguration, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainBackupConfiguration::Representation
990
+
991
+ property :backup_run, as: 'backupRun', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainBackupRun, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainBackupRun::Representation
992
+
993
+ property :creation_time, as: 'creationTime'
994
+ property :current_state, as: 'currentState'
995
+ hash :custom_metadata, as: 'customMetadata'
996
+ property :expected_state, as: 'expectedState'
997
+ property :id, as: 'id', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::Representation
998
+
999
+ property :instance_type, as: 'instanceType'
1000
+ property :location, as: 'location'
1001
+ property :primary_resource_id, as: 'primaryResourceId', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::Representation
1002
+
1003
+ property :product, as: 'product', class: Google::Apis::AlloydbV1::StorageDatabasecenterProtoCommonProduct, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterProtoCommonProduct::Representation
1004
+
1005
+ property :resource_container, as: 'resourceContainer'
1006
+ property :resource_name, as: 'resourceName'
1007
+ property :updation_time, as: 'updationTime'
1008
+ hash :user_labels, as: 'userLabels'
1009
+ end
1010
+ end
1011
+
1012
+ class StorageDatabasecenterPartnerapiV1mainOperationError
1013
+ # @private
1014
+ class Representation < Google::Apis::Core::JsonRepresentation
1015
+ property :code, as: 'code'
1016
+ property :message, as: 'message'
1017
+ end
1018
+ end
1019
+
1020
+ class StorageDatabasecenterPartnerapiV1mainRetentionSettings
1021
+ # @private
1022
+ class Representation < Google::Apis::Core::JsonRepresentation
1023
+ property :quantity_based_retention, as: 'quantityBasedRetention'
1024
+ property :retention_unit, as: 'retentionUnit'
1025
+ property :time_based_retention, as: 'timeBasedRetention'
1026
+ end
1027
+ end
1028
+
1029
+ class StorageDatabasecenterProtoCommonProduct
1030
+ # @private
1031
+ class Representation < Google::Apis::Core::JsonRepresentation
1032
+ property :engine, as: 'engine'
1033
+ property :type, as: 'type'
1034
+ property :version, as: 'version'
1035
+ end
1036
+ end
1037
+
1038
+ class StringRestrictions
1039
+ # @private
1040
+ class Representation < Google::Apis::Core::JsonRepresentation
1041
+ collection :allowed_values, as: 'allowedValues'
1042
+ end
1043
+ end
1044
+
1045
+ class SupportedDatabaseFlag
1046
+ # @private
1047
+ class Representation < Google::Apis::Core::JsonRepresentation
1048
+ property :accepts_multiple_values, as: 'acceptsMultipleValues'
1049
+ property :flag_name, as: 'flagName'
1050
+ property :integer_restrictions, as: 'integerRestrictions', class: Google::Apis::AlloydbV1::IntegerRestrictions, decorator: Google::Apis::AlloydbV1::IntegerRestrictions::Representation
1051
+
1052
+ property :name, as: 'name'
1053
+ property :requires_db_restart, as: 'requiresDbRestart'
1054
+ property :string_restrictions, as: 'stringRestrictions', class: Google::Apis::AlloydbV1::StringRestrictions, decorator: Google::Apis::AlloydbV1::StringRestrictions::Representation
1055
+
1056
+ collection :supported_db_versions, as: 'supportedDbVersions'
1057
+ property :value_type, as: 'valueType'
1058
+ end
1059
+ end
1060
+
1061
+ class TimeBasedRetention
1062
+ # @private
1063
+ class Representation < Google::Apis::Core::JsonRepresentation
1064
+ property :retention_period, as: 'retentionPeriod'
1065
+ end
1066
+ end
1067
+
1068
+ class User
1069
+ # @private
1070
+ class Representation < Google::Apis::Core::JsonRepresentation
1071
+ collection :database_roles, as: 'databaseRoles'
1072
+ property :name, as: 'name'
1073
+ property :password, as: 'password'
1074
+ property :user_type, as: 'userType'
1075
+ end
1076
+ end
1077
+
1078
+ class UserPassword
1079
+ # @private
1080
+ class Representation < Google::Apis::Core::JsonRepresentation
1081
+ property :password, as: 'password'
1082
+ property :user, as: 'user'
1083
+ end
1084
+ end
1085
+
1086
+ class WeeklySchedule
1087
+ # @private
1088
+ class Representation < Google::Apis::Core::JsonRepresentation
1089
+ collection :days_of_week, as: 'daysOfWeek'
1090
+ collection :start_times, as: 'startTimes', class: Google::Apis::AlloydbV1::GoogleTypeTimeOfDay, decorator: Google::Apis::AlloydbV1::GoogleTypeTimeOfDay::Representation
1091
+
1092
+ end
1093
+ end
1094
+ end
1095
+ end
1096
+ end