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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/v1beta/alloy_db_admin/client.rb +3304 -0
  6. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/credentials.rb +47 -0
  7. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/operations.rb +768 -0
  8. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/paths.rb +149 -0
  9. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/client.rb +2586 -0
  10. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/operations.rb +792 -0
  11. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/service_stub.rb +1537 -0
  12. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest.rb +54 -0
  13. data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin.rb +56 -0
  14. data/lib/google/cloud/alloy_db/v1beta/bindings_override.rb +102 -0
  15. data/lib/google/cloud/alloy_db/v1beta/rest.rb +38 -0
  16. data/lib/google/cloud/alloy_db/v1beta/version.rb +8 -3
  17. data/lib/google/cloud/alloy_db/v1beta.rb +45 -0
  18. data/lib/google/cloud/alloydb/v1beta/resources_pb.rb +338 -0
  19. data/lib/google/cloud/alloydb/v1beta/service_pb.rb +279 -0
  20. data/lib/google/cloud/alloydb/v1beta/service_services_pb.rb +115 -0
  21. data/lib/google-cloud-alloy_db-v1beta.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/v1beta/resources.rb +1068 -0
  28. data/proto_docs/google/cloud/alloydb/v1beta/service.rb +998 -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/v1beta/version"
24
+ require "google/cloud/alloy_db/v1beta/bindings_override"
25
+
26
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/credentials"
27
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/paths"
28
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/rest/operations"
29
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/rest/client"
30
+
31
+ module Google
32
+ module Cloud
33
+ module AlloyDB
34
+ module V1beta
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/v1beta/alloy_db_admin/rest"
41
+ # client = ::Google::Cloud::AlloyDB::V1beta::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/v1beta/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/v1beta/version"
24
+
25
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/credentials"
26
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/paths"
27
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/operations"
28
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/client"
29
+ require "google/cloud/alloy_db/v1beta/alloy_db_admin/rest"
30
+
31
+ module Google
32
+ module Cloud
33
+ module AlloyDB
34
+ module V1beta
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/v1beta/alloy_db_admin"
41
+ # client = ::Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/alloy_db/v1beta/alloy_db_admin/rest"
46
+ # client = ::Google::Cloud::AlloyDB::V1beta::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/v1beta/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/v1beta/rest"
28
+ # client = ::Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
29
+ #
30
+ module V1beta
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: "/v1beta/{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: "/v1beta/{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.v1beta package.
76
+ #
77
+ # This class contains common configuration for all services
78
+ # of the google.cloud.alloydb.v1beta 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/v1beta/alloy_db_admin/rest"
20
+ require "google/cloud/alloy_db/v1beta/bindings_override"
21
+ require "google/cloud/alloy_db/v1beta/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/v1beta/rest"
32
+ # client = ::Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
33
+ #
34
+ module V1beta
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 V1beta
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/v1beta/alloy_db_admin"
20
+ require "google/cloud/alloy_db/v1beta/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/v1beta"
31
+ # client = ::Google::Cloud::AlloyDB::V1beta::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/v1beta"
36
+ # client = ::Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
37
+ #
38
+ module V1beta
39
+ end
40
+ end
41
+ end
42
+ end
43
+
44
+ helper_path = ::File.join __dir__, "v1beta", "_helpers.rb"
45
+ require "google/cloud/alloy_db/v1beta/_helpers" if ::File.file? helper_path
@@ -0,0 +1,338 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/alloydb/v1beta/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/v1beta/resources.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.alloydb.v1beta.UserPassword" do
17
+ optional :user, :string, 1
18
+ optional :password, :string, 2
19
+ end
20
+ add_message "google.cloud.alloydb.v1beta.MigrationSource" do
21
+ optional :host_port, :string, 1
22
+ optional :reference_id, :string, 2
23
+ optional :source_type, :enum, 3, "google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType"
24
+ end
25
+ add_enum "google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType" do
26
+ value :MIGRATION_SOURCE_TYPE_UNSPECIFIED, 0
27
+ value :DMS, 1
28
+ end
29
+ add_message "google.cloud.alloydb.v1beta.EncryptionConfig" do
30
+ optional :kms_key_name, :string, 1
31
+ end
32
+ add_message "google.cloud.alloydb.v1beta.EncryptionInfo" do
33
+ optional :encryption_type, :enum, 1, "google.cloud.alloydb.v1beta.EncryptionInfo.Type"
34
+ repeated :kms_key_versions, :string, 2
35
+ end
36
+ add_enum "google.cloud.alloydb.v1beta.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.v1beta.SslConfig" do
42
+ optional :ssl_mode, :enum, 1, "google.cloud.alloydb.v1beta.SslConfig.SslMode"
43
+ optional :ca_source, :enum, 2, "google.cloud.alloydb.v1beta.SslConfig.CaSource"
44
+ end
45
+ add_enum "google.cloud.alloydb.v1beta.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.v1beta.SslConfig.CaSource" do
52
+ value :CA_SOURCE_UNSPECIFIED, 0
53
+ value :CA_SOURCE_MANAGED, 1
54
+ end
55
+ add_message "google.cloud.alloydb.v1beta.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.v1beta.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.v1beta.AutomatedBackupPolicy.WeeklySchedule"
63
+ end
64
+ oneof :retention do
65
+ optional :time_based_retention, :message, 4, "google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention"
66
+ optional :quantity_based_retention, :message, 5, "google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention"
67
+ end
68
+ end
69
+ add_message "google.cloud.alloydb.v1beta.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.v1beta.AutomatedBackupPolicy.TimeBasedRetention" do
74
+ optional :retention_period, :message, 1, "google.protobuf.Duration"
75
+ end
76
+ add_message "google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention" do
77
+ optional :count, :int32, 1
78
+ end
79
+ add_message "google.cloud.alloydb.v1beta.ContinuousBackupConfig" do
80
+ proto3_optional :enabled, :bool, 1
81
+ optional :recovery_window_days, :int32, 4
82
+ optional :encryption_config, :message, 3, "google.cloud.alloydb.v1beta.EncryptionConfig"
83
+ end
84
+ add_message "google.cloud.alloydb.v1beta.ContinuousBackupInfo" do
85
+ optional :encryption_info, :message, 1, "google.cloud.alloydb.v1beta.EncryptionInfo"
86
+ optional :enabled_time, :message, 2, "google.protobuf.Timestamp"
87
+ repeated :schedule, :enum, 3, "google.type.DayOfWeek"
88
+ end
89
+ add_message "google.cloud.alloydb.v1beta.BackupSource" do
90
+ optional :backup_uid, :string, 2
91
+ optional :backup_name, :string, 1
92
+ end
93
+ add_message "google.cloud.alloydb.v1beta.ContinuousBackupSource" do
94
+ optional :cluster, :string, 1
95
+ optional :point_in_time, :message, 2, "google.protobuf.Timestamp"
96
+ end
97
+ add_message "google.cloud.alloydb.v1beta.Cluster" do
98
+ optional :name, :string, 1
99
+ optional :display_name, :string, 2
100
+ optional :uid, :string, 3
101
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
102
+ optional :update_time, :message, 5, "google.protobuf.Timestamp"
103
+ optional :delete_time, :message, 6, "google.protobuf.Timestamp"
104
+ map :labels, :string, :string, 7
105
+ optional :state, :enum, 8, "google.cloud.alloydb.v1beta.Cluster.State"
106
+ optional :cluster_type, :enum, 24, "google.cloud.alloydb.v1beta.Cluster.ClusterType"
107
+ optional :database_version, :enum, 9, "google.cloud.alloydb.v1beta.DatabaseVersion"
108
+ optional :network, :string, 10
109
+ optional :etag, :string, 11
110
+ map :annotations, :string, :string, 12
111
+ optional :reconciling, :bool, 13
112
+ optional :initial_user, :message, 14, "google.cloud.alloydb.v1beta.UserPassword"
113
+ optional :automated_backup_policy, :message, 17, "google.cloud.alloydb.v1beta.AutomatedBackupPolicy"
114
+ optional :ssl_config, :message, 18, "google.cloud.alloydb.v1beta.SslConfig"
115
+ optional :encryption_config, :message, 19, "google.cloud.alloydb.v1beta.EncryptionConfig"
116
+ optional :encryption_info, :message, 20, "google.cloud.alloydb.v1beta.EncryptionInfo"
117
+ optional :continuous_backup_config, :message, 27, "google.cloud.alloydb.v1beta.ContinuousBackupConfig"
118
+ optional :continuous_backup_info, :message, 28, "google.cloud.alloydb.v1beta.ContinuousBackupInfo"
119
+ optional :secondary_config, :message, 22, "google.cloud.alloydb.v1beta.Cluster.SecondaryConfig"
120
+ optional :primary_config, :message, 23, "google.cloud.alloydb.v1beta.Cluster.PrimaryConfig"
121
+ oneof :source do
122
+ optional :backup_source, :message, 15, "google.cloud.alloydb.v1beta.BackupSource"
123
+ optional :migration_source, :message, 16, "google.cloud.alloydb.v1beta.MigrationSource"
124
+ end
125
+ end
126
+ add_message "google.cloud.alloydb.v1beta.Cluster.SecondaryConfig" do
127
+ optional :primary_cluster_name, :string, 1
128
+ end
129
+ add_message "google.cloud.alloydb.v1beta.Cluster.PrimaryConfig" do
130
+ repeated :secondary_cluster_names, :string, 1
131
+ end
132
+ add_enum "google.cloud.alloydb.v1beta.Cluster.State" do
133
+ value :STATE_UNSPECIFIED, 0
134
+ value :READY, 1
135
+ value :STOPPED, 2
136
+ value :EMPTY, 3
137
+ value :CREATING, 4
138
+ value :DELETING, 5
139
+ value :FAILED, 6
140
+ value :BOOTSTRAPPING, 7
141
+ value :MAINTENANCE, 8
142
+ value :PROMOTING, 9
143
+ end
144
+ add_enum "google.cloud.alloydb.v1beta.Cluster.ClusterType" do
145
+ value :CLUSTER_TYPE_UNSPECIFIED, 0
146
+ value :PRIMARY, 1
147
+ value :SECONDARY, 2
148
+ end
149
+ add_message "google.cloud.alloydb.v1beta.Instance" do
150
+ optional :name, :string, 1
151
+ optional :display_name, :string, 2
152
+ optional :uid, :string, 3
153
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
154
+ optional :update_time, :message, 5, "google.protobuf.Timestamp"
155
+ optional :delete_time, :message, 6, "google.protobuf.Timestamp"
156
+ map :labels, :string, :string, 7
157
+ optional :state, :enum, 8, "google.cloud.alloydb.v1beta.Instance.State"
158
+ optional :instance_type, :enum, 9, "google.cloud.alloydb.v1beta.Instance.InstanceType"
159
+ optional :machine_config, :message, 10, "google.cloud.alloydb.v1beta.Instance.MachineConfig"
160
+ optional :availability_type, :enum, 11, "google.cloud.alloydb.v1beta.Instance.AvailabilityType"
161
+ optional :gce_zone, :string, 12
162
+ map :database_flags, :string, :string, 13
163
+ optional :writable_node, :message, 19, "google.cloud.alloydb.v1beta.Instance.Node"
164
+ repeated :nodes, :message, 20, "google.cloud.alloydb.v1beta.Instance.Node"
165
+ optional :query_insights_config, :message, 21, "google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig"
166
+ optional :read_pool_config, :message, 14, "google.cloud.alloydb.v1beta.Instance.ReadPoolConfig"
167
+ optional :ip_address, :string, 15
168
+ optional :reconciling, :bool, 16
169
+ optional :etag, :string, 17
170
+ map :annotations, :string, :string, 18
171
+ end
172
+ add_message "google.cloud.alloydb.v1beta.Instance.MachineConfig" do
173
+ optional :cpu_count, :int32, 1
174
+ end
175
+ add_message "google.cloud.alloydb.v1beta.Instance.Node" do
176
+ optional :zone_id, :string, 1
177
+ optional :id, :string, 2
178
+ optional :ip, :string, 3
179
+ optional :state, :string, 4
180
+ end
181
+ add_message "google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig" do
182
+ proto3_optional :record_application_tags, :bool, 2
183
+ proto3_optional :record_client_address, :bool, 3
184
+ optional :query_string_length, :uint32, 4
185
+ proto3_optional :query_plans_per_minute, :uint32, 5
186
+ end
187
+ add_message "google.cloud.alloydb.v1beta.Instance.ReadPoolConfig" do
188
+ optional :node_count, :int32, 1
189
+ end
190
+ add_enum "google.cloud.alloydb.v1beta.Instance.State" do
191
+ value :STATE_UNSPECIFIED, 0
192
+ value :READY, 1
193
+ value :STOPPED, 2
194
+ value :CREATING, 3
195
+ value :DELETING, 4
196
+ value :MAINTENANCE, 5
197
+ value :FAILED, 6
198
+ value :BOOTSTRAPPING, 8
199
+ value :PROMOTING, 9
200
+ end
201
+ add_enum "google.cloud.alloydb.v1beta.Instance.InstanceType" do
202
+ value :INSTANCE_TYPE_UNSPECIFIED, 0
203
+ value :PRIMARY, 1
204
+ value :READ_POOL, 2
205
+ value :SECONDARY, 3
206
+ end
207
+ add_enum "google.cloud.alloydb.v1beta.Instance.AvailabilityType" do
208
+ value :AVAILABILITY_TYPE_UNSPECIFIED, 0
209
+ value :ZONAL, 1
210
+ value :REGIONAL, 2
211
+ end
212
+ add_message "google.cloud.alloydb.v1beta.ConnectionInfo" do
213
+ optional :name, :string, 1
214
+ optional :ip_address, :string, 2
215
+ repeated :pem_certificate_chain, :string, 3
216
+ optional :instance_uid, :string, 4
217
+ end
218
+ add_message "google.cloud.alloydb.v1beta.Backup" do
219
+ optional :name, :string, 1
220
+ optional :display_name, :string, 2
221
+ optional :uid, :string, 3
222
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
223
+ optional :update_time, :message, 5, "google.protobuf.Timestamp"
224
+ optional :delete_time, :message, 15, "google.protobuf.Timestamp"
225
+ map :labels, :string, :string, 6
226
+ optional :state, :enum, 7, "google.cloud.alloydb.v1beta.Backup.State"
227
+ optional :type, :enum, 8, "google.cloud.alloydb.v1beta.Backup.Type"
228
+ optional :description, :string, 9
229
+ optional :cluster_uid, :string, 18
230
+ optional :cluster_name, :string, 10
231
+ optional :reconciling, :bool, 11
232
+ optional :encryption_config, :message, 12, "google.cloud.alloydb.v1beta.EncryptionConfig"
233
+ optional :encryption_info, :message, 13, "google.cloud.alloydb.v1beta.EncryptionInfo"
234
+ optional :etag, :string, 14
235
+ map :annotations, :string, :string, 16
236
+ optional :size_bytes, :int64, 17
237
+ optional :expiry_time, :message, 19, "google.protobuf.Timestamp"
238
+ end
239
+ add_enum "google.cloud.alloydb.v1beta.Backup.State" do
240
+ value :STATE_UNSPECIFIED, 0
241
+ value :READY, 1
242
+ value :CREATING, 2
243
+ value :FAILED, 3
244
+ value :DELETING, 4
245
+ end
246
+ add_enum "google.cloud.alloydb.v1beta.Backup.Type" do
247
+ value :TYPE_UNSPECIFIED, 0
248
+ value :ON_DEMAND, 1
249
+ value :AUTOMATED, 2
250
+ value :CONTINUOUS, 3
251
+ end
252
+ add_message "google.cloud.alloydb.v1beta.SupportedDatabaseFlag" do
253
+ optional :name, :string, 1
254
+ optional :flag_name, :string, 2
255
+ optional :value_type, :enum, 3, "google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType"
256
+ optional :accepts_multiple_values, :bool, 4
257
+ repeated :supported_db_versions, :enum, 5, "google.cloud.alloydb.v1beta.DatabaseVersion"
258
+ optional :requires_db_restart, :bool, 6
259
+ oneof :restrictions do
260
+ optional :string_restrictions, :message, 7, "google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions"
261
+ optional :integer_restrictions, :message, 8, "google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions"
262
+ end
263
+ end
264
+ add_message "google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions" do
265
+ repeated :allowed_values, :string, 1
266
+ end
267
+ add_message "google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions" do
268
+ optional :min_value, :message, 1, "google.protobuf.Int64Value"
269
+ optional :max_value, :message, 2, "google.protobuf.Int64Value"
270
+ end
271
+ add_enum "google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType" do
272
+ value :VALUE_TYPE_UNSPECIFIED, 0
273
+ value :STRING, 1
274
+ value :INTEGER, 2
275
+ value :FLOAT, 3
276
+ value :NONE, 4
277
+ end
278
+ add_enum "google.cloud.alloydb.v1beta.DatabaseVersion" do
279
+ value :DATABASE_VERSION_UNSPECIFIED, 0
280
+ value :POSTGRES_13, 1
281
+ value :POSTGRES_14, 2
282
+ end
283
+ add_enum "google.cloud.alloydb.v1beta.InstanceView" do
284
+ value :INSTANCE_VIEW_UNSPECIFIED, 0
285
+ value :INSTANCE_VIEW_BASIC, 1
286
+ value :INSTANCE_VIEW_FULL, 2
287
+ end
288
+ end
289
+ end
290
+
291
+ module Google
292
+ module Cloud
293
+ module AlloyDB
294
+ module V1beta
295
+ UserPassword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.UserPassword").msgclass
296
+ MigrationSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.MigrationSource").msgclass
297
+ MigrationSource::MigrationSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.MigrationSource.MigrationSourceType").enummodule
298
+ EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.EncryptionConfig").msgclass
299
+ EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.EncryptionInfo").msgclass
300
+ EncryptionInfo::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.EncryptionInfo.Type").enummodule
301
+ SslConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.SslConfig").msgclass
302
+ SslConfig::SslMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.SslConfig.SslMode").enummodule
303
+ SslConfig::CaSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.SslConfig.CaSource").enummodule
304
+ AutomatedBackupPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.AutomatedBackupPolicy").msgclass
305
+ AutomatedBackupPolicy::WeeklySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule").msgclass
306
+ AutomatedBackupPolicy::TimeBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention").msgclass
307
+ AutomatedBackupPolicy::QuantityBasedRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention").msgclass
308
+ ContinuousBackupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.ContinuousBackupConfig").msgclass
309
+ ContinuousBackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.ContinuousBackupInfo").msgclass
310
+ BackupSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.BackupSource").msgclass
311
+ ContinuousBackupSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.ContinuousBackupSource").msgclass
312
+ Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Cluster").msgclass
313
+ Cluster::SecondaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Cluster.SecondaryConfig").msgclass
314
+ Cluster::PrimaryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Cluster.PrimaryConfig").msgclass
315
+ Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Cluster.State").enummodule
316
+ Cluster::ClusterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Cluster.ClusterType").enummodule
317
+ Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance").msgclass
318
+ Instance::MachineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance.MachineConfig").msgclass
319
+ Instance::Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance.Node").msgclass
320
+ Instance::QueryInsightsInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig").msgclass
321
+ Instance::ReadPoolConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance.ReadPoolConfig").msgclass
322
+ Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance.State").enummodule
323
+ Instance::InstanceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance.InstanceType").enummodule
324
+ Instance::AvailabilityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Instance.AvailabilityType").enummodule
325
+ ConnectionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.ConnectionInfo").msgclass
326
+ Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Backup").msgclass
327
+ Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Backup.State").enummodule
328
+ Backup::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.Backup.Type").enummodule
329
+ SupportedDatabaseFlag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.SupportedDatabaseFlag").msgclass
330
+ SupportedDatabaseFlag::StringRestrictions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions").msgclass
331
+ SupportedDatabaseFlag::IntegerRestrictions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions").msgclass
332
+ SupportedDatabaseFlag::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType").enummodule
333
+ DatabaseVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.DatabaseVersion").enummodule
334
+ InstanceView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1beta.InstanceView").enummodule
335
+ end
336
+ end
337
+ end
338
+ end