google-cloud-alloy_db-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +2693 -0
  6. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/credentials.rb +47 -0
  7. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/operations.rb +768 -0
  8. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/paths.rb +149 -0
  9. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +2111 -0
  10. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/operations.rb +793 -0
  11. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/service_stub.rb +1238 -0
  12. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest.rb +54 -0
  13. data/lib/google/cloud/alloy_db/v1/alloy_db_admin.rb +56 -0
  14. data/lib/google/cloud/alloy_db/v1/bindings_override.rb +102 -0
  15. data/lib/google/cloud/alloy_db/v1/rest.rb +38 -0
  16. data/lib/google/cloud/alloy_db/v1/version.rb +8 -3
  17. data/lib/google/cloud/alloy_db/v1.rb +45 -0
  18. data/lib/google/cloud/alloydb/v1/resources_pb.rb +312 -0
  19. data/lib/google/cloud/alloydb/v1/service_pb.rb +237 -0
  20. data/lib/google/cloud/alloydb/v1/service_services_pb.rb +97 -0
  21. data/lib/google-cloud-alloy_db-v1.rb +21 -0
  22. data/proto_docs/README.md +4 -0
  23. data/proto_docs/google/api/client.rb +324 -0
  24. data/proto_docs/google/api/field_behavior.rb +71 -0
  25. data/proto_docs/google/api/launch_stage.rb +71 -0
  26. data/proto_docs/google/api/resource.rb +222 -0
  27. data/proto_docs/google/cloud/alloydb/v1/resources.rb +985 -0
  28. data/proto_docs/google/cloud/alloydb/v1/service.rb +815 -0
  29. data/proto_docs/google/longrunning/operations.rb +164 -0
  30. data/proto_docs/google/protobuf/any.rb +141 -0
  31. data/proto_docs/google/protobuf/duration.rb +98 -0
  32. data/proto_docs/google/protobuf/empty.rb +34 -0
  33. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  34. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  35. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  36. data/proto_docs/google/rpc/status.rb +48 -0
  37. data/proto_docs/google/type/dayofweek.rb +49 -0
  38. data/proto_docs/google/type/expr.rb +75 -0
  39. data/proto_docs/google/type/timeofday.rb +45 -0
  40. metadata +250 -12
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/alloy_db/v1/version"
24
+ require "google/cloud/alloy_db/v1/bindings_override"
25
+
26
+ require "google/cloud/alloy_db/v1/alloy_db_admin/credentials"
27
+ require "google/cloud/alloy_db/v1/alloy_db_admin/paths"
28
+ require "google/cloud/alloy_db/v1/alloy_db_admin/rest/operations"
29
+ require "google/cloud/alloy_db/v1/alloy_db_admin/rest/client"
30
+
31
+ module Google
32
+ module Cloud
33
+ module AlloyDB
34
+ module V1
35
+ ##
36
+ # Service describing handlers for resources
37
+ #
38
+ # To load this service and instantiate a REST client:
39
+ #
40
+ # require "google/cloud/alloy_db/v1/alloy_db_admin/rest"
41
+ # client = ::Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Rest::Client.new
42
+ #
43
+ module AlloyDBAdmin
44
+ # Client for the REST transport
45
+ module Rest
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
54
+ require "google/cloud/alloy_db/v1/alloy_db_admin/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/alloy_db/v1/version"
24
+
25
+ require "google/cloud/alloy_db/v1/alloy_db_admin/credentials"
26
+ require "google/cloud/alloy_db/v1/alloy_db_admin/paths"
27
+ require "google/cloud/alloy_db/v1/alloy_db_admin/operations"
28
+ require "google/cloud/alloy_db/v1/alloy_db_admin/client"
29
+ require "google/cloud/alloy_db/v1/alloy_db_admin/rest"
30
+
31
+ module Google
32
+ module Cloud
33
+ module AlloyDB
34
+ module V1
35
+ ##
36
+ # Service describing handlers for resources
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/cloud/alloy_db/v1/alloy_db_admin"
41
+ # client = ::Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/alloy_db/v1/alloy_db_admin/rest"
46
+ # client = ::Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Rest::Client.new
47
+ #
48
+ module AlloyDBAdmin
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ helper_path = ::File.join __dir__, "alloy_db_admin", "helpers.rb"
56
+ require "google/cloud/alloy_db/v1/alloy_db_admin/helpers" if ::File.file? helper_path
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module AlloyDB
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/alloy_db/v1/rest"
28
+ # client = ::Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "AlloyDB"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config
68
+ end
69
+ yield @configure if block_given?
70
+ @configure
71
+ end
72
+
73
+ ##
74
+ # @private
75
+ # Configuration class for the google.cloud.alloydb.v1 package.
76
+ #
77
+ # This class contains common configuration for all services
78
+ # of the google.cloud.alloydb.v1 package.
79
+ #
80
+ # This configuration is for internal use of the client library classes,
81
+ # and it is not intended that the end-users will read or change it.
82
+ #
83
+ class Configuration
84
+ extend ::Gapic::Config
85
+
86
+ # @private
87
+ # Overrides for http bindings for the RPC of the mixins for this package.
88
+ # Services in this package should use these when creating clients for the mixin services.
89
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
90
+ config_attr :bindings_override, {}, ::Hash, nil
91
+
92
+ # @private
93
+ def initialize parent_config = nil
94
+ @parent_config = parent_config unless parent_config.nil?
95
+
96
+ yield self if block_given?
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/alloy_db/v1/alloy_db_admin/rest"
20
+ require "google/cloud/alloy_db/v1/bindings_override"
21
+ require "google/cloud/alloy_db/v1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module AlloyDB
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/alloy_db/v1/rest"
32
+ # client = ::Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2023 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,11 +14,14 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Cloud
17
- module AlloyDb
22
+ module AlloyDB
18
23
  module V1
19
- VERSION = "0.a"
24
+ VERSION = "0.1.0"
20
25
  end
21
26
  end
22
27
  end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/alloy_db/v1/alloy_db_admin"
20
+ require "google/cloud/alloy_db/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module AlloyDB
25
+ ##
26
+ # API client module.
27
+ #
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
+ #
30
+ # require "google/cloud/alloy_db/v1"
31
+ # client = ::Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Client.new
32
+ #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/cloud/alloy_db/v1"
36
+ # client = ::Google::Cloud::AlloyDB::V1::AlloyDBAdmin::Rest::Client.new
37
+ #
38
+ module V1
39
+ end
40
+ end
41
+ end
42
+ end
43
+
44
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
45
+ require "google/cloud/alloy_db/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,312 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/alloydb/v1/resources.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/duration_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/protobuf/wrappers_pb'
11
+ require 'google/type/dayofweek_pb'
12
+ require 'google/type/timeofday_pb'
13
+
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
265
+ end
266
+ end
267
+ end
268
+
269
+ module Google
270
+ module Cloud
271
+ module AlloyDB
272
+ module V1
273
+ UserPassword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.UserPassword").msgclass
274
+ MigrationSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.MigrationSource").msgclass
275
+ MigrationSource::MigrationSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.MigrationSource.MigrationSourceType").enummodule
276
+ EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.EncryptionConfig").msgclass
277
+ EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.EncryptionInfo").msgclass
278
+ EncryptionInfo::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.EncryptionInfo.Type").enummodule
279
+ SslConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SslConfig").msgclass
280
+ SslConfig::SslMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SslConfig.SslMode").enummodule
281
+ SslConfig::CaSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SslConfig.CaSource").enummodule
282
+ AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.AutomatedBackupPolicy").msgclass
283
+ AutomatedBackupPolicy::WeeklySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule").msgclass
284
+ AutomatedBackupPolicy::TimeBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention").msgclass
285
+ AutomatedBackupPolicy::QuantityBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention").msgclass
286
+ BackupSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.BackupSource").msgclass
287
+ Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster").msgclass
288
+ Cluster::SecondaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster.SecondaryConfig").msgclass
289
+ Cluster::PrimaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster.PrimaryConfig").msgclass
290
+ Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster.State").enummodule
291
+ Cluster::ClusterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Cluster.ClusterType").enummodule
292
+ Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance").msgclass
293
+ Instance::MachineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance.MachineConfig").msgclass
294
+ Instance::Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance.Node").msgclass
295
+ Instance::QueryInsightsInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig").msgclass
296
+ Instance::ReadPoolConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance.ReadPoolConfig").msgclass
297
+ Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance.State").enummodule
298
+ Instance::InstanceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance.InstanceType").enummodule
299
+ Instance::AvailabilityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Instance.AvailabilityType").enummodule
300
+ Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Backup").msgclass
301
+ Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Backup.State").enummodule
302
+ Backup::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.Backup.Type").enummodule
303
+ SupportedDatabaseFlag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SupportedDatabaseFlag").msgclass
304
+ SupportedDatabaseFlag::StringRestrictions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions").msgclass
305
+ SupportedDatabaseFlag::IntegerRestrictions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions").msgclass
306
+ 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
308
+ InstanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.InstanceView").enummodule
309
+ end
310
+ end
311
+ end
312
+ end