google-cloud-alloy_db-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +4 -2
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/operations.rb +3 -1
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +4 -2
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/operations.rb +7 -5
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/service_stub.rb +20 -20
- data/lib/google/cloud/alloy_db/v1/version.rb +1 -1
- data/lib/google/cloud/alloydb/v1/resources_pb.rb +28 -251
- data/lib/google/cloud/alloydb/v1/service_pb.rb +28 -179
- data/proto_docs/google/api/client.rb +58 -1
- data/proto_docs/google/cloud/alloydb/v1/resources.rb +4 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b46ab23ff999c7d0b1e05c327a2f66f54d71362151d37007da11ee6080f55651
|
4
|
+
data.tar.gz: 1047b256037f2286d7990835a4ecf7f08664e20d4539ecc686bfc29a46a68de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f17eb9e106fcff44a91cf13e12487685d898cb2cc3f5e6a38ad99a86dadafddcc813972ef28911be2abae55981e960385c09655fedc7507fccaf8d5cf2bb2c96
|
7
|
+
data.tar.gz: 7d4090d3a05de598bc1eafe4470fcfeb6083b17aa2f3fc02ebdc8619db9c098979921cd0a3a238e2ae67ec2c2400d3d760de5bc94397c4ae479cd6519c3c1cd6
|
@@ -162,7 +162,7 @@ module Google
|
|
162
162
|
credentials = @config.credentials
|
163
163
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
164
164
|
# but only if the default endpoint does not have a region prefix.
|
165
|
-
enable_self_signed_jwt = @config.endpoint ==
|
165
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
166
166
|
!@config.endpoint.split(".").first.include?("-")
|
167
167
|
credentials ||= Credentials.default scope: @config.scope,
|
168
168
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -2484,7 +2484,9 @@ module Google
|
|
2484
2484
|
class Configuration
|
2485
2485
|
extend ::Gapic::Config
|
2486
2486
|
|
2487
|
-
|
2487
|
+
DEFAULT_ENDPOINT = "alloydb.googleapis.com"
|
2488
|
+
|
2489
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2488
2490
|
config_attr :credentials, nil do |value|
|
2489
2491
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2490
2492
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "alloydb.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -158,7 +158,7 @@ module Google
|
|
158
158
|
credentials = @config.credentials
|
159
159
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
160
160
|
# but only if the default endpoint does not have a region prefix.
|
161
|
-
enable_self_signed_jwt = @config.endpoint ==
|
161
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
162
162
|
!@config.endpoint.split(".").first.include?("-")
|
163
163
|
credentials ||= Credentials.default scope: @config.scope,
|
164
164
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1897,7 +1897,9 @@ module Google
|
|
1897
1897
|
class Configuration
|
1898
1898
|
extend ::Gapic::Config
|
1899
1899
|
|
1900
|
-
|
1900
|
+
DEFAULT_ENDPOINT = "alloydb.googleapis.com"
|
1901
|
+
|
1902
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1901
1903
|
config_attr :credentials, nil do |value|
|
1902
1904
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1903
1905
|
allowed.any? { |klass| klass === value }
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "alloydb.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_clusters_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_cluster_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_cluster_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_cluster_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_cluster_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_restore_cluster_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_instance_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_instances_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_instance_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_failover_instance_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_restart_instance_request request_pb
|
555
555
|
query_string_params = if query_string_params.any?
|
556
|
-
query_string_params.to_h { |p| p.split
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
557
557
|
else
|
558
558
|
{}
|
559
559
|
end
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
|
593
593
|
query_string_params = if query_string_params.any?
|
594
|
-
query_string_params.to_h { |p| p.split
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
end
|
@@ -629,7 +629,7 @@ module Google
|
|
629
629
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
|
631
631
|
query_string_params = if query_string_params.any?
|
632
|
-
query_string_params.to_h { |p| p.split
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
633
|
else
|
634
634
|
{}
|
635
635
|
end
|
@@ -667,7 +667,7 @@ module Google
|
|
667
667
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_request request_pb
|
669
669
|
query_string_params = if query_string_params.any?
|
670
|
-
query_string_params.to_h { |p| p.split
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
671
|
else
|
672
672
|
{}
|
673
673
|
end
|
@@ -705,7 +705,7 @@ module Google
|
|
705
705
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
|
707
707
|
query_string_params = if query_string_params.any?
|
708
|
-
query_string_params.to_h { |p| p.split
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
709
|
else
|
710
710
|
{}
|
711
711
|
end
|
@@ -743,7 +743,7 @@ module Google
|
|
743
743
|
|
744
744
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
|
745
745
|
query_string_params = if query_string_params.any?
|
746
|
-
query_string_params.to_h { |p| p.split
|
746
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
747
747
|
else
|
748
748
|
{}
|
749
749
|
end
|
@@ -781,7 +781,7 @@ module Google
|
|
781
781
|
|
782
782
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_supported_database_flags_request request_pb
|
783
783
|
query_string_params = if query_string_params.any?
|
784
|
-
query_string_params.to_h { |p| p.split
|
784
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
785
785
|
else
|
786
786
|
{}
|
787
787
|
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
|
-
|
15
|
-
add_file("google/cloud/alloydb/v1/resources.proto", :syntax => :proto3) do
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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\"\xb8\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\"e\n\x07SslMode\x12\x18\n\x14SSL_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSSL_MODE_ALLOW\x10\x01\x12\x14\n\x10SSL_MODE_REQUIRE\x10\x02\x12\x16\n\x12SSL_MODE_VERIFY_CA\x10\x03\"<\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\"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\"\xc2\x0e\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\x36\n\nssl_config\x18\x12 \x01(\x0b\x32\".google.cloud.alloydb.v1.SslConfig\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\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*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*^\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\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
|
@@ -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/service.proto
|
3
4
|
|
@@ -14,187 +15,35 @@ require 'google/protobuf/field_mask_pb'
|
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
15
16
|
require 'google/rpc/status_pb'
|
16
17
|
|
17
|
-
|
18
|
-
add_file("google/cloud/alloydb/v1/service.proto", :syntax => :proto3) do
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
43
|
-
optional :cluster, :message, 2, "google.cloud.alloydb.v1.Cluster"
|
44
|
-
optional :request_id, :string, 3
|
45
|
-
optional :validate_only, :bool, 4
|
46
|
-
optional :allow_missing, :bool, 5
|
47
|
-
end
|
48
|
-
add_message "google.cloud.alloydb.v1.DeleteClusterRequest" do
|
49
|
-
optional :name, :string, 1
|
50
|
-
optional :request_id, :string, 2
|
51
|
-
optional :etag, :string, 3
|
52
|
-
optional :validate_only, :bool, 4
|
53
|
-
optional :force, :bool, 5
|
54
|
-
end
|
55
|
-
add_message "google.cloud.alloydb.v1.RestoreClusterRequest" do
|
56
|
-
optional :parent, :string, 1
|
57
|
-
optional :cluster_id, :string, 2
|
58
|
-
optional :cluster, :message, 3, "google.cloud.alloydb.v1.Cluster"
|
59
|
-
optional :request_id, :string, 5
|
60
|
-
optional :validate_only, :bool, 6
|
61
|
-
oneof :source do
|
62
|
-
optional :backup_source, :message, 4, "google.cloud.alloydb.v1.BackupSource"
|
63
|
-
end
|
64
|
-
end
|
65
|
-
add_message "google.cloud.alloydb.v1.ListInstancesRequest" do
|
66
|
-
optional :parent, :string, 1
|
67
|
-
optional :page_size, :int32, 2
|
68
|
-
optional :page_token, :string, 3
|
69
|
-
optional :filter, :string, 4
|
70
|
-
optional :order_by, :string, 5
|
71
|
-
end
|
72
|
-
add_message "google.cloud.alloydb.v1.ListInstancesResponse" do
|
73
|
-
repeated :instances, :message, 1, "google.cloud.alloydb.v1.Instance"
|
74
|
-
optional :next_page_token, :string, 2
|
75
|
-
repeated :unreachable, :string, 3
|
76
|
-
end
|
77
|
-
add_message "google.cloud.alloydb.v1.GetInstanceRequest" do
|
78
|
-
optional :name, :string, 1
|
79
|
-
optional :view, :enum, 2, "google.cloud.alloydb.v1.InstanceView"
|
80
|
-
end
|
81
|
-
add_message "google.cloud.alloydb.v1.CreateInstanceRequest" do
|
82
|
-
optional :parent, :string, 1
|
83
|
-
optional :instance_id, :string, 2
|
84
|
-
optional :instance, :message, 3, "google.cloud.alloydb.v1.Instance"
|
85
|
-
optional :request_id, :string, 4
|
86
|
-
optional :validate_only, :bool, 5
|
87
|
-
end
|
88
|
-
add_message "google.cloud.alloydb.v1.CreateInstanceRequests" do
|
89
|
-
repeated :create_instance_requests, :message, 1, "google.cloud.alloydb.v1.CreateInstanceRequest"
|
90
|
-
end
|
91
|
-
add_message "google.cloud.alloydb.v1.BatchCreateInstancesRequest" do
|
92
|
-
optional :parent, :string, 1
|
93
|
-
optional :requests, :message, 2, "google.cloud.alloydb.v1.CreateInstanceRequests"
|
94
|
-
optional :request_id, :string, 3
|
95
|
-
end
|
96
|
-
add_message "google.cloud.alloydb.v1.BatchCreateInstancesResponse" do
|
97
|
-
repeated :instances, :message, 1, "google.cloud.alloydb.v1.Instance"
|
98
|
-
end
|
99
|
-
add_message "google.cloud.alloydb.v1.BatchCreateInstancesMetadata" do
|
100
|
-
repeated :instance_targets, :string, 1
|
101
|
-
map :instance_statuses, :string, :message, 2, "google.cloud.alloydb.v1.BatchCreateInstanceStatus"
|
102
|
-
end
|
103
|
-
add_message "google.cloud.alloydb.v1.BatchCreateInstanceStatus" do
|
104
|
-
optional :state, :enum, 1, "google.cloud.alloydb.v1.BatchCreateInstanceStatus.State"
|
105
|
-
optional :error_msg, :string, 2
|
106
|
-
optional :error, :message, 4, "google.rpc.Status"
|
107
|
-
optional :type, :enum, 3, "google.cloud.alloydb.v1.Instance.InstanceType"
|
108
|
-
end
|
109
|
-
add_enum "google.cloud.alloydb.v1.BatchCreateInstanceStatus.State" do
|
110
|
-
value :STATE_UNSPECIFIED, 0
|
111
|
-
value :PENDING_CREATE, 1
|
112
|
-
value :READY, 2
|
113
|
-
value :CREATING, 3
|
114
|
-
value :DELETING, 4
|
115
|
-
value :FAILED, 5
|
116
|
-
value :ROLLED_BACK, 6
|
117
|
-
end
|
118
|
-
add_message "google.cloud.alloydb.v1.UpdateInstanceRequest" do
|
119
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
120
|
-
optional :instance, :message, 2, "google.cloud.alloydb.v1.Instance"
|
121
|
-
optional :request_id, :string, 3
|
122
|
-
optional :validate_only, :bool, 4
|
123
|
-
optional :allow_missing, :bool, 5
|
124
|
-
end
|
125
|
-
add_message "google.cloud.alloydb.v1.DeleteInstanceRequest" do
|
126
|
-
optional :name, :string, 1
|
127
|
-
optional :request_id, :string, 2
|
128
|
-
optional :etag, :string, 3
|
129
|
-
optional :validate_only, :bool, 4
|
130
|
-
end
|
131
|
-
add_message "google.cloud.alloydb.v1.FailoverInstanceRequest" do
|
132
|
-
optional :name, :string, 1
|
133
|
-
optional :request_id, :string, 2
|
134
|
-
optional :validate_only, :bool, 3
|
135
|
-
end
|
136
|
-
add_message "google.cloud.alloydb.v1.RestartInstanceRequest" do
|
137
|
-
optional :name, :string, 1
|
138
|
-
optional :request_id, :string, 2
|
139
|
-
optional :validate_only, :bool, 3
|
140
|
-
end
|
141
|
-
add_message "google.cloud.alloydb.v1.ListBackupsRequest" do
|
142
|
-
optional :parent, :string, 1
|
143
|
-
optional :page_size, :int32, 2
|
144
|
-
optional :page_token, :string, 3
|
145
|
-
optional :filter, :string, 4
|
146
|
-
optional :order_by, :string, 5
|
147
|
-
end
|
148
|
-
add_message "google.cloud.alloydb.v1.ListBackupsResponse" do
|
149
|
-
repeated :backups, :message, 1, "google.cloud.alloydb.v1.Backup"
|
150
|
-
optional :next_page_token, :string, 2
|
151
|
-
repeated :unreachable, :string, 3
|
152
|
-
end
|
153
|
-
add_message "google.cloud.alloydb.v1.GetBackupRequest" do
|
154
|
-
optional :name, :string, 1
|
155
|
-
end
|
156
|
-
add_message "google.cloud.alloydb.v1.CreateBackupRequest" do
|
157
|
-
optional :parent, :string, 1
|
158
|
-
optional :backup_id, :string, 2
|
159
|
-
optional :backup, :message, 3, "google.cloud.alloydb.v1.Backup"
|
160
|
-
optional :request_id, :string, 4
|
161
|
-
optional :validate_only, :bool, 5
|
162
|
-
end
|
163
|
-
add_message "google.cloud.alloydb.v1.UpdateBackupRequest" do
|
164
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
165
|
-
optional :backup, :message, 2, "google.cloud.alloydb.v1.Backup"
|
166
|
-
optional :request_id, :string, 3
|
167
|
-
optional :validate_only, :bool, 4
|
168
|
-
optional :allow_missing, :bool, 5
|
169
|
-
end
|
170
|
-
add_message "google.cloud.alloydb.v1.DeleteBackupRequest" do
|
171
|
-
optional :name, :string, 1
|
172
|
-
optional :request_id, :string, 2
|
173
|
-
optional :validate_only, :bool, 3
|
174
|
-
optional :etag, :string, 4
|
175
|
-
end
|
176
|
-
add_message "google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest" do
|
177
|
-
optional :parent, :string, 1
|
178
|
-
optional :page_size, :int32, 2
|
179
|
-
optional :page_token, :string, 3
|
180
|
-
end
|
181
|
-
add_message "google.cloud.alloydb.v1.ListSupportedDatabaseFlagsResponse" do
|
182
|
-
repeated :supported_database_flags, :message, 1, "google.cloud.alloydb.v1.SupportedDatabaseFlag"
|
183
|
-
optional :next_page_token, :string, 2
|
184
|
-
end
|
185
|
-
add_message "google.cloud.alloydb.v1.OperationMetadata" do
|
186
|
-
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
187
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
188
|
-
optional :target, :string, 3
|
189
|
-
optional :verb, :string, 4
|
190
|
-
optional :status_message, :string, 5
|
191
|
-
optional :requested_cancellation, :bool, 6
|
192
|
-
optional :api_version, :string, 7
|
193
|
-
oneof :request_specific do
|
194
|
-
optional :batch_create_instances_metadata, :message, 8, "google.cloud.alloydb.v1.BatchCreateInstancesMetadata"
|
195
|
-
end
|
18
|
+
|
19
|
+
descriptor_data = "\n%google/cloud/alloydb/v1/service.proto\x12\x17google.cloud.alloydb.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/alloydb/v1/resources.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xa5\x01\n\x13ListClustersRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x61lloydb.googleapis.com/Cluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"x\n\x14ListClustersResponse\x12\x32\n\x08\x63lusters\x18\x01 \x03(\x0b\x32 .google.cloud.alloydb.v1.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"I\n\x11GetClusterRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61lloydb.googleapis.com/Cluster\"\xd4\x01\n\x14\x43reateClusterRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x61lloydb.googleapis.com/Cluster\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x07\x63luster\x18\x03 \x01(\x0b\x32 .google.cloud.alloydb.v1.ClusterB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xd5\x01\n\x14UpdateClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x36\n\x07\x63luster\x18\x02 \x01(\x0b\x32 .google.cloud.alloydb.v1.ClusterB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x14\x44\x65leteClusterRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61lloydb.googleapis.com/Cluster\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x9f\x02\n\x15RestoreClusterRequest\x12>\n\rbackup_source\x18\x04 \x01(\x0b\x32%.google.cloud.alloydb.v1.BackupSourceH\x00\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x61lloydb.googleapis.com/Cluster\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x07\x63luster\x18\x03 \x01(\x0b\x32 .google.cloud.alloydb.v1.ClusterB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x42\x08\n\x06source\"\xa7\x01\n\x14ListInstancesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x61lloydb.googleapis.com/Instance\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"{\n\x15ListInstancesResponse\x12\x34\n\tinstances\x18\x01 \x03(\x0b\x32!.google.cloud.alloydb.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x80\x01\n\x12GetInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61lloydb.googleapis.com/Instance\x12\x33\n\x04view\x18\x02 \x01(\x0e\x32%.google.cloud.alloydb.v1.InstanceView\"\xd9\x01\n\x15\x43reateInstanceRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x61lloydb.googleapis.com/Instance\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x08instance\x18\x03 \x01(\x0b\x32!.google.cloud.alloydb.v1.InstanceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"o\n\x16\x43reateInstanceRequests\x12U\n\x18\x63reate_instance_requests\x18\x01 \x03(\x0b\x32..google.cloud.alloydb.v1.CreateInstanceRequestB\x03\xe0\x41\x02\"\xb7\x01\n\x1b\x42\x61tchCreateInstancesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x61lloydb.googleapis.com/Instance\x12\x46\n\x08requests\x18\x02 \x01(\x0b\x32/.google.cloud.alloydb.v1.CreateInstanceRequestsB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"T\n\x1c\x42\x61tchCreateInstancesResponse\x12\x34\n\tinstances\x18\x01 \x03(\x0b\x32!.google.cloud.alloydb.v1.Instance\"\x8d\x02\n\x1c\x42\x61tchCreateInstancesMetadata\x12\x18\n\x10instance_targets\x18\x01 \x03(\t\x12\x66\n\x11instance_statuses\x18\x02 \x03(\x0b\x32K.google.cloud.alloydb.v1.BatchCreateInstancesMetadata.InstanceStatusesEntry\x1ak\n\x15InstanceStatusesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.cloud.alloydb.v1.BatchCreateInstanceStatus:\x02\x38\x01\"\xd0\x02\n\x19\x42\x61tchCreateInstanceStatus\x12G\n\x05state\x18\x01 \x01(\x0e\x32\x38.google.cloud.alloydb.v1.BatchCreateInstanceStatus.State\x12\x11\n\terror_msg\x18\x02 \x01(\t\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12<\n\x04type\x18\x03 \x01(\x0e\x32..google.cloud.alloydb.v1.Instance.InstanceType\"v\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x12\n\x0ePENDING_CREATE\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x43REATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0f\n\x0bROLLED_BACK\x10\x06\"\xd8\x01\n\x15UpdateInstanceRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x38\n\x08instance\x18\x02 \x01(\x0b\x32!.google.cloud.alloydb.v1.InstanceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x96\x01\n\x15\x44\x65leteInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61lloydb.googleapis.com/Instance\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x85\x01\n\x17\x46\x61iloverInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61lloydb.googleapis.com/Instance\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x84\x01\n\x16RestartInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61lloydb.googleapis.com/Instance\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x94\x01\n\x12ListBackupsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x61lloydb.googleapis.com/Backup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"u\n\x13ListBackupsResponse\x12\x30\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32\x1f.google.cloud.alloydb.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"G\n\x10GetBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61lloydb.googleapis.com/Backup\"\xcf\x01\n\x13\x43reateBackupRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x61lloydb.googleapis.com/Backup\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32\x1f.google.cloud.alloydb.v1.BackupB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x01\n\x13UpdateBackupRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x34\n\x06\x62\x61\x63kup\x18\x02 \x01(\x0b\x32\x1f.google.cloud.alloydb.v1.BackupB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x92\x01\n\x13\x44\x65leteBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61lloydb.googleapis.com/Backup\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n!ListSupportedDatabaseFlagsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,alloydb.googleapis.com/SupportedDatabaseFlag\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8f\x01\n\"ListSupportedDatabaseFlagsResponse\x12P\n\x18supported_database_flags\x18\x01 \x03(\x0b\x32..google.cloud.alloydb.v1.SupportedDatabaseFlag\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xfb\x02\n\x11OperationMetadata\x12\x65\n\x1f\x62\x61tch_create_instances_metadata\x18\x08 \x01(\x0b\x32\x35.google.cloud.alloydb.v1.BatchCreateInstancesMetadataB\x03\xe0\x41\x03H\x00\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42\x12\n\x10request_specific2\xbd \n\x0c\x41lloyDBAdmin\x12\xaa\x01\n\x0cListClusters\x12,.google.cloud.alloydb.v1.ListClustersRequest\x1a-.google.cloud.alloydb.v1.ListClustersResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/clusters\xda\x41\x06parent\x12\x97\x01\n\nGetCluster\x12*.google.cloud.alloydb.v1.GetClusterRequest\x1a .google.cloud.alloydb.v1.Cluster\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/clusters/*}\xda\x41\x04name\x12\xd7\x01\n\rCreateCluster\x12-.google.cloud.alloydb.v1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/clusters:\x07\x63luster\xda\x41\x19parent,cluster,cluster_id\xca\x41\x1c\n\x07\x43luster\x12\x11OperationMetadata\x12\xd9\x01\n\rUpdateCluster\x12-.google.cloud.alloydb.v1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02?24/v1/{cluster.name=projects/*/locations/*/clusters/*}:\x07\x63luster\xda\x41\x13\x63luster,update_mask\xca\x41\x1c\n\x07\x43luster\x12\x11OperationMetadata\x12\xc7\x01\n\rDeleteCluster\x12-.google.cloud.alloydb.v1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"h\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/clusters/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xbf\x01\n\x0eRestoreCluster\x12..google.cloud.alloydb.v1.RestoreClusterRequest\x1a\x1d.google.longrunning.Operation\"^\x82\xd3\xe4\x93\x02\x39\"4/v1/{parent=projects/*/locations/*}/clusters:restore:\x01*\xca\x41\x1c\n\x07\x43luster\x12\x11OperationMetadata\x12\xb9\x01\n\rListInstances\x12-.google.cloud.alloydb.v1.ListInstancesRequest\x1a..google.cloud.alloydb.v1.ListInstancesResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/clusters/*}/instances\xda\x41\x06parent\x12\xa6\x01\n\x0bGetInstance\x12+.google.cloud.alloydb.v1.GetInstanceRequest\x1a!.google.cloud.alloydb.v1.Instance\"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/clusters/*/instances/*}\xda\x41\x04name\x12\xea\x01\n\x0e\x43reateInstance\x12..google.cloud.alloydb.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\x82\xd3\xe4\x93\x02\x44\"8/v1/{parent=projects/*/locations/*/clusters/*}/instances:\x08instance\xda\x41\x1bparent,instance,instance_id\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xf8\x01\n\x14\x42\x61tchCreateInstances\x12\x34.google.cloud.alloydb.v1.BatchCreateInstancesRequest\x1a\x1d.google.longrunning.Operation\"\x8a\x01\x82\xd3\xe4\x93\x02P\"D/v1/{parent=projects/*/locations/*/clusters/*}/instances:batchCreate:\x08requests\xca\x41\x31\n\x1c\x42\x61tchCreateInstancesResponse\x12\x11OperationMetadata\x12\xec\x01\n\x0eUpdateInstance\x12..google.cloud.alloydb.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x8a\x01\x82\xd3\xe4\x93\x02M2A/v1/{instance.name=projects/*/locations/*/clusters/*/instances/*}:\x08instance\xda\x41\x14instance,update_mask\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xd5\x01\n\x0e\x44\x65leteInstance\x12..google.cloud.alloydb.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"t\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/clusters/*/instances/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xd8\x01\n\x10\x46\x61iloverInstance\x12\x30.google.cloud.alloydb.v1.FailoverInstanceRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/clusters/*/instances/*}:failover:\x01*\xda\x41\x04name\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xd5\x01\n\x0fRestartInstance\x12/.google.cloud.alloydb.v1.RestartInstanceRequest\x1a\x1d.google.longrunning.Operation\"r\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/clusters/*/instances/*}:restart:\x01*\xda\x41\x04name\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\x12\xa6\x01\n\x0bListBackups\x12+.google.cloud.alloydb.v1.ListBackupsRequest\x1a,.google.cloud.alloydb.v1.ListBackupsResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/backups\xda\x41\x06parent\x12\x93\x01\n\tGetBackup\x12).google.cloud.alloydb.v1.GetBackupRequest\x1a\x1f.google.cloud.alloydb.v1.Backup\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/backups/*}\xda\x41\x04name\x12\xd0\x01\n\x0c\x43reateBackup\x12,.google.cloud.alloydb.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/backups:\x06\x62\x61\x63kup\xda\x41\x17parent,backup,backup_id\xca\x41\x1b\n\x06\x42\x61\x63kup\x12\x11OperationMetadata\x12\xd2\x01\n\x0cUpdateBackup\x12,.google.cloud.alloydb.v1.UpdateBackupRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02<22/v1/{backup.name=projects/*/locations/*/backups/*}:\x06\x62\x61\x63kup\xda\x41\x12\x62\x61\x63kup,update_mask\xca\x41\x1b\n\x06\x42\x61\x63kup\x12\x11OperationMetadata\x12\xc4\x01\n\x0c\x44\x65leteBackup\x12,.google.cloud.alloydb.v1.DeleteBackupRequest\x1a\x1d.google.longrunning.Operation\"g\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/backups/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xe2\x01\n\x1aListSupportedDatabaseFlags\x12:.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest\x1a;.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*}/supportedDatabaseFlags\xda\x41\x06parent\x1aJ\xca\x41\x16\x61lloydb.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb5\x01\n\x1b\x63om.google.cloud.alloydb.v1B\x0cServiceProtoP\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::V1b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.cloud.alloydb.v1.Cluster", "google/cloud/alloydb/v1/resources.proto"],
|
35
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
37
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
38
|
+
]
|
39
|
+
imports.each do |type_name, expected_filename|
|
40
|
+
import_file = pool.lookup(type_name).file_descriptor
|
41
|
+
if import_file.name != expected_filename
|
42
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
196
43
|
end
|
197
44
|
end
|
45
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
46
|
+
warn "This will become an error in the next major version."
|
198
47
|
end
|
199
48
|
|
200
49
|
module Google
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
# long-running operation pattern.
|
84
84
|
# @!attribute [rw] new_issue_uri
|
85
85
|
# @return [::String]
|
86
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
87
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
88
88
|
# @!attribute [rw] documentation_uri
|
89
89
|
# @return [::String]
|
@@ -209,9 +209,57 @@ module Google
|
|
209
209
|
# @!attribute [rw] common
|
210
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
211
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
212
242
|
class DotnetSettings
|
213
243
|
include ::Google::Protobuf::MessageExts
|
214
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
215
263
|
end
|
216
264
|
|
217
265
|
# Settings for Ruby client libraries.
|
@@ -305,6 +353,15 @@ module Google
|
|
305
353
|
|
306
354
|
# Street View Org.
|
307
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
308
365
|
end
|
309
366
|
|
310
367
|
# To where should client libraries be published?
|
@@ -716,10 +716,10 @@ module Google
|
|
716
716
|
end
|
717
717
|
|
718
718
|
# The Availability type of an instance. Potential values:
|
719
|
-
#
|
720
|
-
#
|
721
|
-
#
|
722
|
-
#
|
719
|
+
# - ZONAL: The instance serves data from only one zone. Outages in that
|
720
|
+
# zone affect instance availability.
|
721
|
+
# - REGIONAL: The instance can serve data from more than one zone in a
|
722
|
+
# region (it is highly available).
|
723
723
|
module AvailabilityType
|
724
724
|
# This is an unknown Availability type.
|
725
725
|
AVAILABILITY_TYPE_UNSPECIFIED = 0
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-alloy_db-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.19.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|