google-cloud-alloy_db-v1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AlloyDB
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/alloydb/v1/resources.proto
3
4
 
@@ -11,259 +12,35 @@ require 'google/protobuf/wrappers_pb'
11
12
  require 'google/type/dayofweek_pb'
12
13
  require 'google/type/timeofday_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/alloydb/v1/resources.proto", :syntax => :proto3) do
16
- add_message "google.cloud.alloydb.v1.UserPassword" do
17
- optional :user, :string, 1
18
- optional :password, :string, 2
19
- end
20
- add_message "google.cloud.alloydb.v1.MigrationSource" do
21
- optional :host_port, :string, 1
22
- optional :reference_id, :string, 2
23
- optional :source_type, :enum, 3, "google.cloud.alloydb.v1.MigrationSource.MigrationSourceType"
24
- end
25
- add_enum "google.cloud.alloydb.v1.MigrationSource.MigrationSourceType" do
26
- value :MIGRATION_SOURCE_TYPE_UNSPECIFIED, 0
27
- value :DMS, 1
28
- end
29
- add_message "google.cloud.alloydb.v1.EncryptionConfig" do
30
- optional :kms_key_name, :string, 1
31
- end
32
- add_message "google.cloud.alloydb.v1.EncryptionInfo" do
33
- optional :encryption_type, :enum, 1, "google.cloud.alloydb.v1.EncryptionInfo.Type"
34
- repeated :kms_key_versions, :string, 2
35
- end
36
- add_enum "google.cloud.alloydb.v1.EncryptionInfo.Type" do
37
- value :TYPE_UNSPECIFIED, 0
38
- value :GOOGLE_DEFAULT_ENCRYPTION, 1
39
- value :CUSTOMER_MANAGED_ENCRYPTION, 2
40
- end
41
- add_message "google.cloud.alloydb.v1.SslConfig" do
42
- optional :ssl_mode, :enum, 1, "google.cloud.alloydb.v1.SslConfig.SslMode"
43
- optional :ca_source, :enum, 2, "google.cloud.alloydb.v1.SslConfig.CaSource"
44
- end
45
- add_enum "google.cloud.alloydb.v1.SslConfig.SslMode" do
46
- value :SSL_MODE_UNSPECIFIED, 0
47
- value :SSL_MODE_ALLOW, 1
48
- value :SSL_MODE_REQUIRE, 2
49
- value :SSL_MODE_VERIFY_CA, 3
50
- end
51
- add_enum "google.cloud.alloydb.v1.SslConfig.CaSource" do
52
- value :CA_SOURCE_UNSPECIFIED, 0
53
- value :CA_SOURCE_MANAGED, 1
54
- end
55
- add_message "google.cloud.alloydb.v1.AutomatedBackupPolicy" do
56
- proto3_optional :enabled, :bool, 1
57
- optional :backup_window, :message, 3, "google.protobuf.Duration"
58
- optional :encryption_config, :message, 8, "google.cloud.alloydb.v1.EncryptionConfig"
59
- optional :location, :string, 6
60
- map :labels, :string, :string, 7
61
- oneof :schedule do
62
- optional :weekly_schedule, :message, 2, "google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule"
63
- end
64
- oneof :retention do
65
- optional :time_based_retention, :message, 4, "google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention"
66
- optional :quantity_based_retention, :message, 5, "google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention"
67
- end
68
- end
69
- add_message "google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule" do
70
- repeated :start_times, :message, 1, "google.type.TimeOfDay"
71
- repeated :days_of_week, :enum, 2, "google.type.DayOfWeek"
72
- end
73
- add_message "google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention" do
74
- optional :retention_period, :message, 1, "google.protobuf.Duration"
75
- end
76
- add_message "google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention" do
77
- optional :count, :int32, 1
78
- end
79
- add_message "google.cloud.alloydb.v1.BackupSource" do
80
- optional :backup_uid, :string, 2
81
- optional :backup_name, :string, 1
82
- end
83
- add_message "google.cloud.alloydb.v1.Cluster" do
84
- optional :name, :string, 1
85
- optional :display_name, :string, 2
86
- optional :uid, :string, 3
87
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
88
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
89
- optional :delete_time, :message, 6, "google.protobuf.Timestamp"
90
- map :labels, :string, :string, 7
91
- optional :state, :enum, 8, "google.cloud.alloydb.v1.Cluster.State"
92
- optional :cluster_type, :enum, 24, "google.cloud.alloydb.v1.Cluster.ClusterType"
93
- optional :database_version, :enum, 9, "google.cloud.alloydb.v1.DatabaseVersion"
94
- optional :network, :string, 10
95
- optional :etag, :string, 11
96
- map :annotations, :string, :string, 12
97
- optional :reconciling, :bool, 13
98
- optional :initial_user, :message, 14, "google.cloud.alloydb.v1.UserPassword"
99
- optional :automated_backup_policy, :message, 17, "google.cloud.alloydb.v1.AutomatedBackupPolicy"
100
- optional :ssl_config, :message, 18, "google.cloud.alloydb.v1.SslConfig"
101
- optional :encryption_config, :message, 19, "google.cloud.alloydb.v1.EncryptionConfig"
102
- optional :encryption_info, :message, 20, "google.cloud.alloydb.v1.EncryptionInfo"
103
- optional :secondary_config, :message, 22, "google.cloud.alloydb.v1.Cluster.SecondaryConfig"
104
- optional :primary_config, :message, 23, "google.cloud.alloydb.v1.Cluster.PrimaryConfig"
105
- oneof :source do
106
- optional :backup_source, :message, 15, "google.cloud.alloydb.v1.BackupSource"
107
- optional :migration_source, :message, 16, "google.cloud.alloydb.v1.MigrationSource"
108
- end
109
- end
110
- add_message "google.cloud.alloydb.v1.Cluster.SecondaryConfig" do
111
- optional :primary_cluster_name, :string, 1
112
- end
113
- add_message "google.cloud.alloydb.v1.Cluster.PrimaryConfig" do
114
- repeated :secondary_cluster_names, :string, 1
115
- end
116
- add_enum "google.cloud.alloydb.v1.Cluster.State" do
117
- value :STATE_UNSPECIFIED, 0
118
- value :READY, 1
119
- value :STOPPED, 2
120
- value :EMPTY, 3
121
- value :CREATING, 4
122
- value :DELETING, 5
123
- value :FAILED, 6
124
- value :BOOTSTRAPPING, 7
125
- value :MAINTENANCE, 8
126
- value :PROMOTING, 9
127
- end
128
- add_enum "google.cloud.alloydb.v1.Cluster.ClusterType" do
129
- value :CLUSTER_TYPE_UNSPECIFIED, 0
130
- value :PRIMARY, 1
131
- value :SECONDARY, 2
132
- end
133
- add_message "google.cloud.alloydb.v1.Instance" do
134
- optional :name, :string, 1
135
- optional :display_name, :string, 2
136
- optional :uid, :string, 3
137
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
138
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
139
- optional :delete_time, :message, 6, "google.protobuf.Timestamp"
140
- map :labels, :string, :string, 7
141
- optional :state, :enum, 8, "google.cloud.alloydb.v1.Instance.State"
142
- optional :instance_type, :enum, 9, "google.cloud.alloydb.v1.Instance.InstanceType"
143
- optional :machine_config, :message, 10, "google.cloud.alloydb.v1.Instance.MachineConfig"
144
- optional :availability_type, :enum, 11, "google.cloud.alloydb.v1.Instance.AvailabilityType"
145
- optional :gce_zone, :string, 12
146
- map :database_flags, :string, :string, 13
147
- optional :writable_node, :message, 19, "google.cloud.alloydb.v1.Instance.Node"
148
- repeated :nodes, :message, 20, "google.cloud.alloydb.v1.Instance.Node"
149
- optional :query_insights_config, :message, 21, "google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig"
150
- optional :read_pool_config, :message, 14, "google.cloud.alloydb.v1.Instance.ReadPoolConfig"
151
- optional :ip_address, :string, 15
152
- optional :reconciling, :bool, 16
153
- optional :etag, :string, 17
154
- map :annotations, :string, :string, 18
155
- end
156
- add_message "google.cloud.alloydb.v1.Instance.MachineConfig" do
157
- optional :cpu_count, :int32, 1
158
- end
159
- add_message "google.cloud.alloydb.v1.Instance.Node" do
160
- optional :zone_id, :string, 1
161
- optional :id, :string, 2
162
- optional :ip, :string, 3
163
- optional :state, :string, 4
164
- end
165
- add_message "google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig" do
166
- proto3_optional :record_application_tags, :bool, 2
167
- proto3_optional :record_client_address, :bool, 3
168
- optional :query_string_length, :uint32, 4
169
- proto3_optional :query_plans_per_minute, :uint32, 5
170
- end
171
- add_message "google.cloud.alloydb.v1.Instance.ReadPoolConfig" do
172
- optional :node_count, :int32, 1
173
- end
174
- add_enum "google.cloud.alloydb.v1.Instance.State" do
175
- value :STATE_UNSPECIFIED, 0
176
- value :READY, 1
177
- value :STOPPED, 2
178
- value :CREATING, 3
179
- value :DELETING, 4
180
- value :MAINTENANCE, 5
181
- value :FAILED, 6
182
- value :BOOTSTRAPPING, 8
183
- value :PROMOTING, 9
184
- end
185
- add_enum "google.cloud.alloydb.v1.Instance.InstanceType" do
186
- value :INSTANCE_TYPE_UNSPECIFIED, 0
187
- value :PRIMARY, 1
188
- value :READ_POOL, 2
189
- value :SECONDARY, 3
190
- end
191
- add_enum "google.cloud.alloydb.v1.Instance.AvailabilityType" do
192
- value :AVAILABILITY_TYPE_UNSPECIFIED, 0
193
- value :ZONAL, 1
194
- value :REGIONAL, 2
195
- end
196
- add_message "google.cloud.alloydb.v1.Backup" do
197
- optional :name, :string, 1
198
- optional :display_name, :string, 2
199
- optional :uid, :string, 3
200
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
201
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
202
- optional :delete_time, :message, 15, "google.protobuf.Timestamp"
203
- map :labels, :string, :string, 6
204
- optional :state, :enum, 7, "google.cloud.alloydb.v1.Backup.State"
205
- optional :type, :enum, 8, "google.cloud.alloydb.v1.Backup.Type"
206
- optional :description, :string, 9
207
- optional :cluster_uid, :string, 18
208
- optional :cluster_name, :string, 10
209
- optional :reconciling, :bool, 11
210
- optional :encryption_config, :message, 12, "google.cloud.alloydb.v1.EncryptionConfig"
211
- optional :encryption_info, :message, 13, "google.cloud.alloydb.v1.EncryptionInfo"
212
- optional :etag, :string, 14
213
- map :annotations, :string, :string, 16
214
- optional :size_bytes, :int64, 17
215
- optional :expiry_time, :message, 19, "google.protobuf.Timestamp"
216
- end
217
- add_enum "google.cloud.alloydb.v1.Backup.State" do
218
- value :STATE_UNSPECIFIED, 0
219
- value :READY, 1
220
- value :CREATING, 2
221
- value :FAILED, 3
222
- value :DELETING, 4
223
- end
224
- add_enum "google.cloud.alloydb.v1.Backup.Type" do
225
- value :TYPE_UNSPECIFIED, 0
226
- value :ON_DEMAND, 1
227
- value :AUTOMATED, 2
228
- value :CONTINUOUS, 3
229
- end
230
- add_message "google.cloud.alloydb.v1.SupportedDatabaseFlag" do
231
- optional :name, :string, 1
232
- optional :flag_name, :string, 2
233
- optional :value_type, :enum, 3, "google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType"
234
- optional :accepts_multiple_values, :bool, 4
235
- repeated :supported_db_versions, :enum, 5, "google.cloud.alloydb.v1.DatabaseVersion"
236
- optional :requires_db_restart, :bool, 6
237
- oneof :restrictions do
238
- optional :string_restrictions, :message, 7, "google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions"
239
- optional :integer_restrictions, :message, 8, "google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions"
240
- end
241
- end
242
- add_message "google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions" do
243
- repeated :allowed_values, :string, 1
244
- end
245
- add_message "google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions" do
246
- optional :min_value, :message, 1, "google.protobuf.Int64Value"
247
- optional :max_value, :message, 2, "google.protobuf.Int64Value"
248
- end
249
- add_enum "google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType" do
250
- value :VALUE_TYPE_UNSPECIFIED, 0
251
- value :STRING, 1
252
- value :INTEGER, 2
253
- value :FLOAT, 3
254
- value :NONE, 4
255
- end
256
- add_enum "google.cloud.alloydb.v1.DatabaseVersion" do
257
- value :DATABASE_VERSION_UNSPECIFIED, 0
258
- value :POSTGRES_13, 1
259
- value :POSTGRES_14, 2
260
- end
261
- add_enum "google.cloud.alloydb.v1.InstanceView" do
262
- value :INSTANCE_VIEW_UNSPECIFIED, 0
263
- value :INSTANCE_VIEW_BASIC, 1
264
- value :INSTANCE_VIEW_FULL, 2
15
+
16
+ descriptor_data = "\n\'google/cloud/alloydb/v1/resources.proto\x12\x17google.cloud.alloydb.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\".\n\x0cUserPassword\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\xe3\x01\n\x0fMigrationSource\x12\x16\n\thost_port\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0creference_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12V\n\x0bsource_type\x18\x03 \x01(\x0e\x32<.google.cloud.alloydb.v1.MigrationSource.MigrationSourceTypeB\x03\xe0\x41\x03\"E\n\x13MigrationSourceType\x12%\n!MIGRATION_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x44MS\x10\x01\"(\n\x10\x45ncryptionConfig\x12\x14\n\x0ckms_key_name\x18\x01 \x01(\t\"\x86\x02\n\x0e\x45ncryptionInfo\x12J\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32,.google.cloud.alloydb.v1.EncryptionInfo.TypeB\x03\xe0\x41\x03\x12J\n\x10kms_key_versions\x18\x02 \x03(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xfe\x02\n\tSslConfig\x12\x41\n\x08ssl_mode\x18\x01 \x01(\x0e\x32*.google.cloud.alloydb.v1.SslConfig.SslModeB\x03\xe0\x41\x01\x12\x43\n\tca_source\x18\x02 \x01(\x0e\x32+.google.cloud.alloydb.v1.SslConfig.CaSourceB\x03\xe0\x41\x01\"\xaa\x01\n\x07SslMode\x12\x18\n\x14SSL_MODE_UNSPECIFIED\x10\x00\x12\x16\n\x0eSSL_MODE_ALLOW\x10\x01\x1a\x02\x08\x01\x12\x18\n\x10SSL_MODE_REQUIRE\x10\x02\x1a\x02\x08\x01\x12\x1a\n\x12SSL_MODE_VERIFY_CA\x10\x03\x1a\x02\x08\x01\x12#\n\x1f\x41LLOW_UNENCRYPTED_AND_ENCRYPTED\x10\x04\x12\x12\n\x0e\x45NCRYPTED_ONLY\x10\x05\"<\n\x08\x43\x61Source\x12\x19\n\x15\x43\x41_SOURCE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43\x41_SOURCE_MANAGED\x10\x01\"\xe5\x06\n\x15\x41utomatedBackupPolicy\x12X\n\x0fweekly_schedule\x18\x02 \x01(\x0b\x32=.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklyScheduleH\x00\x12\x61\n\x14time_based_retention\x18\x04 \x01(\x0b\x32\x41.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionH\x01\x12i\n\x18quantity_based_retention\x18\x05 \x01(\x0b\x32\x45.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetentionH\x01\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08H\x02\x88\x01\x01\x12\x30\n\rbackup_window\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12I\n\x11\x65ncryption_config\x18\x08 \x01(\x0b\x32).google.cloud.alloydb.v1.EncryptionConfigB\x03\xe0\x41\x01\x12\x10\n\x08location\x18\x06 \x01(\t\x12J\n\x06labels\x18\x07 \x03(\x0b\x32:.google.cloud.alloydb.v1.AutomatedBackupPolicy.LabelsEntry\x1ak\n\x0eWeeklySchedule\x12+\n\x0bstart_times\x18\x01 \x03(\x0b\x32\x16.google.type.TimeOfDay\x12,\n\x0c\x64\x61ys_of_week\x18\x02 \x03(\x0e\x32\x16.google.type.DayOfWeek\x1aI\n\x12TimeBasedRetention\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\'\n\x16QuantityBasedRetention\x12\r\n\x05\x63ount\x18\x01 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08scheduleB\x0b\n\tretentionB\n\n\x08_enabled\"\x9e\x01\n\x16\x43ontinuousBackupConfig\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x1c\n\x14recovery_window_days\x18\x04 \x01(\x05\x12\x44\n\x11\x65ncryption_config\x18\x03 \x01(\x0b\x32).google.cloud.alloydb.v1.EncryptionConfigB\n\n\x08_enabled\"\x86\x02\n\x14\x43ontinuousBackupInfo\x12\x45\n\x0f\x65ncryption_info\x18\x01 \x01(\x0b\x32\'.google.cloud.alloydb.v1.EncryptionInfoB\x03\xe0\x41\x03\x12\x35\n\x0c\x65nabled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12-\n\x08schedule\x18\x03 \x03(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x03\x12\x41\n\x18\x65\x61rliest_restorable_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"c\n\x0c\x42\x61\x63kupSource\x12\x17\n\nbackup_uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12:\n\x0b\x62\x61\x63kup_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61lloydb.googleapis.com/Backup\"f\n\x16\x43ontinuousBackupSource\x12\x14\n\x07\x63luster\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\rpoint_in_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xf2\x0f\n\x07\x43luster\x12\x43\n\rbackup_source\x18\x0f \x01(\x0b\x32%.google.cloud.alloydb.v1.BackupSourceB\x03\xe0\x41\x03H\x00\x12I\n\x10migration_source\x18\x10 \x01(\x0b\x32(.google.cloud.alloydb.v1.MigrationSourceB\x03\xe0\x41\x03H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x06labels\x18\x07 \x03(\x0b\x32,.google.cloud.alloydb.v1.Cluster.LabelsEntry\x12:\n\x05state\x18\x08 \x01(\x0e\x32&.google.cloud.alloydb.v1.Cluster.StateB\x03\xe0\x41\x03\x12G\n\x0c\x63luster_type\x18\x18 \x01(\x0e\x32,.google.cloud.alloydb.v1.Cluster.ClusterTypeB\x03\xe0\x41\x03\x12G\n\x10\x64\x61tabase_version\x18\t \x01(\x0e\x32(.google.cloud.alloydb.v1.DatabaseVersionB\x03\xe0\x41\x03\x12\x37\n\x07network\x18\n \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x0c\n\x04\x65tag\x18\x0b \x01(\t\x12\x46\n\x0b\x61nnotations\x18\x0c \x03(\x0b\x32\x31.google.cloud.alloydb.v1.Cluster.AnnotationsEntry\x12\x18\n\x0breconciling\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x12@\n\x0cinitial_user\x18\x0e \x01(\x0b\x32%.google.cloud.alloydb.v1.UserPasswordB\x03\xe0\x41\x04\x12O\n\x17\x61utomated_backup_policy\x18\x11 \x01(\x0b\x32..google.cloud.alloydb.v1.AutomatedBackupPolicy\x12:\n\nssl_config\x18\x12 \x01(\x0b\x32\".google.cloud.alloydb.v1.SslConfigB\x02\x18\x01\x12I\n\x11\x65ncryption_config\x18\x13 \x01(\x0b\x32).google.cloud.alloydb.v1.EncryptionConfigB\x03\xe0\x41\x01\x12\x45\n\x0f\x65ncryption_info\x18\x14 \x01(\x0b\x32\'.google.cloud.alloydb.v1.EncryptionInfoB\x03\xe0\x41\x03\x12V\n\x18\x63ontinuous_backup_config\x18\x1b \x01(\x0b\x32/.google.cloud.alloydb.v1.ContinuousBackupConfigB\x03\xe0\x41\x01\x12R\n\x16\x63ontinuous_backup_info\x18\x1c \x01(\x0b\x32-.google.cloud.alloydb.v1.ContinuousBackupInfoB\x03\xe0\x41\x03\x12J\n\x10secondary_config\x18\x16 \x01(\x0b\x32\x30.google.cloud.alloydb.v1.Cluster.SecondaryConfig\x12K\n\x0eprimary_config\x18\x17 \x01(\x0b\x32..google.cloud.alloydb.v1.Cluster.PrimaryConfigB\x03\xe0\x41\x03\x1a/\n\x0fSecondaryConfig\x12\x1c\n\x14primary_cluster_name\x18\x01 \x01(\t\x1a\x35\n\rPrimaryConfig\x12$\n\x17secondary_cluster_names\x18\x01 \x03(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9c\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\t\n\x05\x45MPTY\x10\x03\x12\x0c\n\x08\x43REATING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x11\n\rBOOTSTRAPPING\x10\x07\x12\x0f\n\x0bMAINTENANCE\x10\x08\x12\r\n\tPROMOTING\x10\t\"G\n\x0b\x43lusterType\x12\x1c\n\x18\x43LUSTER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\r\n\tSECONDARY\x10\x02:b\xea\x41_\n\x1e\x61lloydb.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}R\x01\x01\x42\x08\n\x06source\"\xb3\x10\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x07 \x03(\x0b\x32-.google.cloud.alloydb.v1.Instance.LabelsEntry\x12;\n\x05state\x18\x08 \x01(\x0e\x32\'.google.cloud.alloydb.v1.Instance.StateB\x03\xe0\x41\x03\x12J\n\rinstance_type\x18\t \x01(\x0e\x32..google.cloud.alloydb.v1.Instance.InstanceTypeB\x03\xe0\x41\x02\x12G\n\x0emachine_config\x18\n \x01(\x0b\x32/.google.cloud.alloydb.v1.Instance.MachineConfig\x12M\n\x11\x61vailability_type\x18\x0b \x01(\x0e\x32\x32.google.cloud.alloydb.v1.Instance.AvailabilityType\x12\x10\n\x08gce_zone\x18\x0c \x01(\t\x12L\n\x0e\x64\x61tabase_flags\x18\r \x03(\x0b\x32\x34.google.cloud.alloydb.v1.Instance.DatabaseFlagsEntry\x12\x42\n\rwritable_node\x18\x13 \x01(\x0b\x32&.google.cloud.alloydb.v1.Instance.NodeB\x03\xe0\x41\x03\x12:\n\x05nodes\x18\x14 \x03(\x0b\x32&.google.cloud.alloydb.v1.Instance.NodeB\x03\xe0\x41\x03\x12\\\n\x15query_insights_config\x18\x15 \x01(\x0b\x32=.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\x12J\n\x10read_pool_config\x18\x0e \x01(\x0b\x32\x30.google.cloud.alloydb.v1.Instance.ReadPoolConfig\x12\x17\n\nip_address\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x11 \x01(\t\x12G\n\x0b\x61nnotations\x18\x12 \x03(\x0b\x32\x32.google.cloud.alloydb.v1.Instance.AnnotationsEntry\x1a\"\n\rMachineConfig\x12\x11\n\tcpu_count\x18\x01 \x01(\x05\x1a>\n\x04Node\x12\x0f\n\x07zone_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\n\n\x02ip\x18\x03 \x01(\t\x12\r\n\x05state\x18\x04 \x01(\t\x1a\xfa\x01\n\x1bQueryInsightsInstanceConfig\x12$\n\x17record_application_tags\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\"\n\x15record_client_address\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x13query_string_length\x18\x04 \x01(\r\x12#\n\x16query_plans_per_minute\x18\x05 \x01(\rH\x02\x88\x01\x01\x42\x1a\n\x18_record_application_tagsB\x18\n\x16_record_client_addressB\x19\n\x17_query_plans_per_minute\x1a$\n\x0eReadPoolConfig\x12\x12\n\nnode_count\x18\x01 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12\x44\x61tabaseFlagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x91\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\x0c\n\x08\x43REATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0f\n\x0bMAINTENANCE\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x11\n\rBOOTSTRAPPING\x10\x08\x12\r\n\tPROMOTING\x10\t\"X\n\x0cInstanceType\x12\x1d\n\x19INSTANCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\r\n\tREAD_POOL\x10\x02\x12\r\n\tSECONDARY\x10\x03\"N\n\x10\x41vailabilityType\x12!\n\x1d\x41VAILABILITY_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05ZONAL\x10\x01\x12\x0c\n\x08REGIONAL\x10\x02:x\xea\x41u\n\x1f\x61lloydb.googleapis.com/Instance\x12Oprojects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}R\x01\x01\"\xb1\t\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12;\n\x06labels\x18\x06 \x03(\x0b\x32+.google.cloud.alloydb.v1.Backup.LabelsEntry\x12\x39\n\x05state\x18\x07 \x01(\x0e\x32%.google.cloud.alloydb.v1.Backup.StateB\x03\xe0\x41\x03\x12\x32\n\x04type\x18\x08 \x01(\x0e\x32$.google.cloud.alloydb.v1.Backup.Type\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12\x18\n\x0b\x63luster_uid\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12<\n\x0c\x63luster_name\x18\n \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61lloydb.googleapis.com/Cluster\x12\x18\n\x0breconciling\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03\x12I\n\x11\x65ncryption_config\x18\x0c \x01(\x0b\x32).google.cloud.alloydb.v1.EncryptionConfigB\x03\xe0\x41\x01\x12\x45\n\x0f\x65ncryption_info\x18\r \x01(\x0b\x32\'.google.cloud.alloydb.v1.EncryptionInfoB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12\x45\n\x0b\x61nnotations\x18\x10 \x03(\x0b\x32\x30.google.cloud.alloydb.v1.Backup.AnnotationsEntry\x12\x17\n\nsize_bytes\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpiry_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tON_DEMAND\x10\x01\x12\r\n\tAUTOMATED\x10\x02\x12\x0e\n\nCONTINUOUS\x10\x03:_\xea\x41\\\n\x1d\x61lloydb.googleapis.com/Backup\x12\x38projects/{project}/locations/{location}/backups/{backup}R\x01\x01\"\xc8\x06\n\x15SupportedDatabaseFlag\x12`\n\x13string_restrictions\x18\x07 \x01(\x0b\x32\x41.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictionsH\x00\x12\x62\n\x14integer_restrictions\x18\x08 \x01(\x0b\x32\x42.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictionsH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tflag_name\x18\x02 \x01(\t\x12L\n\nvalue_type\x18\x03 \x01(\x0e\x32\x38.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType\x12\x1f\n\x17\x61\x63\x63\x65pts_multiple_values\x18\x04 \x01(\x08\x12G\n\x15supported_db_versions\x18\x05 \x03(\x0e\x32(.google.cloud.alloydb.v1.DatabaseVersion\x12\x1b\n\x13requires_db_restart\x18\x06 \x01(\x08\x1a,\n\x12StringRestrictions\x12\x16\n\x0e\x61llowed_values\x18\x01 \x03(\t\x1au\n\x13IntegerRestrictions\x12.\n\tmin_value\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12.\n\tmax_value\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"U\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x0b\n\x07INTEGER\x10\x02\x12\t\n\x05\x46LOAT\x10\x03\x12\x08\n\x04NONE\x10\x04:g\xea\x41\x64\n,alloydb.googleapis.com/SupportedDatabaseFlag\x12\x34projects/{project}/locations/{location}/flags/{flag}B\x0e\n\x0crestrictions\"\xce\x02\n\x04User\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08password\x18\x02 \x01(\tB\x03\xe0\x41\x04\x12\x1b\n\x0e\x64\x61tabase_roles\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12>\n\tuser_type\x18\x05 \x01(\x0e\x32&.google.cloud.alloydb.v1.User.UserTypeB\x03\xe0\x41\x01\"Q\n\x08UserType\x12\x19\n\x15USER_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41LLOYDB_BUILT_IN\x10\x01\x12\x14\n\x10\x41LLOYDB_IAM_USER\x10\x02:l\xea\x41i\n\x1b\x61lloydb.googleapis.com/User\x12Gprojects/{project}/locations/{location}/clusters/{cluster}/users/{user}R\x01\x01*^\n\x0cInstanceView\x12\x1d\n\x19INSTANCE_VIEW_UNSPECIFIED\x10\x00\x12\x17\n\x13INSTANCE_VIEW_BASIC\x10\x01\x12\x16\n\x12INSTANCE_VIEW_FULL\x10\x02*g\n\x0b\x43lusterView\x12\x1c\n\x18\x43LUSTER_VIEW_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43LUSTER_VIEW_BASIC\x10\x01\x12\"\n\x1e\x43LUSTER_VIEW_CONTINUOUS_BACKUP\x10\x02*Y\n\x0f\x44\x61tabaseVersion\x12 \n\x1c\x44\x41TABASE_VERSION_UNSPECIFIED\x10\x00\x12\x13\n\x0bPOSTGRES_13\x10\x01\x1a\x02\x08\x01\x12\x0f\n\x0bPOSTGRES_14\x10\x02\x42\xb2\x03\n\x1b\x63om.google.cloud.alloydb.v1B\x0eResourcesProtoP\x01Z5cloud.google.com/go/alloydb/apiv1/alloydbpb;alloydbpb\xaa\x02\x17Google.Cloud.AlloyDb.V1\xca\x02\x17Google\\Cloud\\AlloyDb\\V1\xea\x02\x1aGoogle::Cloud::AlloyDB::V1\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}b\x06proto3"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
32
+ ["google.type.TimeOfDay", "google/type/timeofday.proto"],
33
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
+ ["google.protobuf.Int64Value", "google/protobuf/wrappers.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
265
40
  end
266
41
  end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
267
44
  end
268
45
 
269
46
  module Google
@@ -283,7 +60,10 @@ module Google
283
60
  AutomatedBackupPolicy::WeeklySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule").msgclass
284
61
  AutomatedBackupPolicy::TimeBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention").msgclass
285
62
  AutomatedBackupPolicy::QuantityBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention").msgclass
63
+ ContinuousBackupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ContinuousBackupConfig").msgclass
64
+ ContinuousBackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ContinuousBackupInfo").msgclass
286
65
  BackupSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.BackupSource").msgclass
66
+ ContinuousBackupSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ContinuousBackupSource").msgclass
287
67
  Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster").msgclass
288
68
  Cluster::SecondaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster.SecondaryConfig").msgclass
289
69
  Cluster::PrimaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster.PrimaryConfig").msgclass
@@ -304,8 +84,11 @@ module Google
304
84
  SupportedDatabaseFlag::StringRestrictions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions").msgclass
305
85
  SupportedDatabaseFlag::IntegerRestrictions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions").msgclass
306
86
  SupportedDatabaseFlag::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType").enummodule
307
- DatabaseVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.DatabaseVersion").enummodule
87
+ User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.User").msgclass
88
+ User::UserType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.User.UserType").enummodule
308
89
  InstanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.InstanceView").enummodule
90
+ ClusterView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ClusterView").enummodule
91
+ DatabaseVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.DatabaseVersion").enummodule
309
92
  end
310
93
  end
311
94
  end