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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +2693 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/credentials.rb +47 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/operations.rb +768 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/paths.rb +149 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +2111 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/operations.rb +793 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/service_stub.rb +1238 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest.rb +54 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin.rb +56 -0
- data/lib/google/cloud/alloy_db/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/alloy_db/v1/rest.rb +38 -0
- data/lib/google/cloud/alloy_db/v1/version.rb +8 -3
- data/lib/google/cloud/alloy_db/v1.rb +45 -0
- data/lib/google/cloud/alloydb/v1/resources_pb.rb +312 -0
- data/lib/google/cloud/alloydb/v1/service_pb.rb +237 -0
- data/lib/google/cloud/alloydb/v1/service_services_pb.rb +97 -0
- data/lib/google-cloud-alloy_db-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +324 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/alloydb/v1/resources.rb +985 -0
- data/proto_docs/google/cloud/alloydb/v1/service.rb +815 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/expr.rb +75 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +250 -12
@@ -0,0 +1,237 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/alloydb/v1/service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/alloydb/v1/resources_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
require 'google/protobuf/empty_pb'
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
15
|
+
require 'google/rpc/status_pb'
|
16
|
+
|
17
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
+
add_file("google/cloud/alloydb/v1/service.proto", :syntax => :proto3) do
|
19
|
+
add_message "google.cloud.alloydb.v1.ListClustersRequest" do
|
20
|
+
optional :parent, :string, 1
|
21
|
+
optional :page_size, :int32, 2
|
22
|
+
optional :page_token, :string, 3
|
23
|
+
optional :filter, :string, 4
|
24
|
+
optional :order_by, :string, 5
|
25
|
+
end
|
26
|
+
add_message "google.cloud.alloydb.v1.ListClustersResponse" do
|
27
|
+
repeated :clusters, :message, 1, "google.cloud.alloydb.v1.Cluster"
|
28
|
+
optional :next_page_token, :string, 2
|
29
|
+
repeated :unreachable, :string, 3
|
30
|
+
end
|
31
|
+
add_message "google.cloud.alloydb.v1.GetClusterRequest" do
|
32
|
+
optional :name, :string, 1
|
33
|
+
end
|
34
|
+
add_message "google.cloud.alloydb.v1.CreateClusterRequest" do
|
35
|
+
optional :parent, :string, 1
|
36
|
+
optional :cluster_id, :string, 2
|
37
|
+
optional :cluster, :message, 3, "google.cloud.alloydb.v1.Cluster"
|
38
|
+
optional :request_id, :string, 4
|
39
|
+
optional :validate_only, :bool, 5
|
40
|
+
end
|
41
|
+
add_message "google.cloud.alloydb.v1.UpdateClusterRequest" do
|
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
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
module Google
|
201
|
+
module Cloud
|
202
|
+
module AlloyDB
|
203
|
+
module V1
|
204
|
+
ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListClustersRequest").msgclass
|
205
|
+
ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListClustersResponse").msgclass
|
206
|
+
GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.GetClusterRequest").msgclass
|
207
|
+
CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.CreateClusterRequest").msgclass
|
208
|
+
UpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.UpdateClusterRequest").msgclass
|
209
|
+
DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.DeleteClusterRequest").msgclass
|
210
|
+
RestoreClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.RestoreClusterRequest").msgclass
|
211
|
+
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListInstancesRequest").msgclass
|
212
|
+
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListInstancesResponse").msgclass
|
213
|
+
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.GetInstanceRequest").msgclass
|
214
|
+
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.CreateInstanceRequest").msgclass
|
215
|
+
CreateInstanceRequests = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.CreateInstanceRequests").msgclass
|
216
|
+
BatchCreateInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.BatchCreateInstancesRequest").msgclass
|
217
|
+
BatchCreateInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.BatchCreateInstancesResponse").msgclass
|
218
|
+
BatchCreateInstancesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.BatchCreateInstancesMetadata").msgclass
|
219
|
+
BatchCreateInstanceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.BatchCreateInstanceStatus").msgclass
|
220
|
+
BatchCreateInstanceStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.BatchCreateInstanceStatus.State").enummodule
|
221
|
+
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.UpdateInstanceRequest").msgclass
|
222
|
+
DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.DeleteInstanceRequest").msgclass
|
223
|
+
FailoverInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.FailoverInstanceRequest").msgclass
|
224
|
+
RestartInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.RestartInstanceRequest").msgclass
|
225
|
+
ListBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListBackupsRequest").msgclass
|
226
|
+
ListBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListBackupsResponse").msgclass
|
227
|
+
GetBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.GetBackupRequest").msgclass
|
228
|
+
CreateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.CreateBackupRequest").msgclass
|
229
|
+
UpdateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.UpdateBackupRequest").msgclass
|
230
|
+
DeleteBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.DeleteBackupRequest").msgclass
|
231
|
+
ListSupportedDatabaseFlagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListSupportedDatabaseFlagsRequest").msgclass
|
232
|
+
ListSupportedDatabaseFlagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.ListSupportedDatabaseFlagsResponse").msgclass
|
233
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.alloydb.v1.OperationMetadata").msgclass
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/alloydb/v1/service.proto for package 'Google.Cloud.AlloyDB.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/alloydb/v1/service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module AlloyDB
|
25
|
+
module V1
|
26
|
+
module AlloyDBAdmin
|
27
|
+
# Service describing handlers for resources
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.alloydb.v1.AlloyDBAdmin'
|
35
|
+
|
36
|
+
# Lists Clusters in a given project and location.
|
37
|
+
rpc :ListClusters, ::Google::Cloud::AlloyDB::V1::ListClustersRequest, ::Google::Cloud::AlloyDB::V1::ListClustersResponse
|
38
|
+
# Gets details of a single Cluster.
|
39
|
+
rpc :GetCluster, ::Google::Cloud::AlloyDB::V1::GetClusterRequest, ::Google::Cloud::AlloyDB::V1::Cluster
|
40
|
+
# Creates a new Cluster in a given project and location.
|
41
|
+
rpc :CreateCluster, ::Google::Cloud::AlloyDB::V1::CreateClusterRequest, ::Google::Longrunning::Operation
|
42
|
+
# Updates the parameters of a single Cluster.
|
43
|
+
rpc :UpdateCluster, ::Google::Cloud::AlloyDB::V1::UpdateClusterRequest, ::Google::Longrunning::Operation
|
44
|
+
# Deletes a single Cluster.
|
45
|
+
rpc :DeleteCluster, ::Google::Cloud::AlloyDB::V1::DeleteClusterRequest, ::Google::Longrunning::Operation
|
46
|
+
# Creates a new Cluster in a given project and location, with a volume
|
47
|
+
# restored from the provided source, either a backup ID or a point-in-time
|
48
|
+
# and a source cluster.
|
49
|
+
rpc :RestoreCluster, ::Google::Cloud::AlloyDB::V1::RestoreClusterRequest, ::Google::Longrunning::Operation
|
50
|
+
# Lists Instances in a given project and location.
|
51
|
+
rpc :ListInstances, ::Google::Cloud::AlloyDB::V1::ListInstancesRequest, ::Google::Cloud::AlloyDB::V1::ListInstancesResponse
|
52
|
+
# Gets details of a single Instance.
|
53
|
+
rpc :GetInstance, ::Google::Cloud::AlloyDB::V1::GetInstanceRequest, ::Google::Cloud::AlloyDB::V1::Instance
|
54
|
+
# Creates a new Instance in a given project and location.
|
55
|
+
rpc :CreateInstance, ::Google::Cloud::AlloyDB::V1::CreateInstanceRequest, ::Google::Longrunning::Operation
|
56
|
+
# Creates new instances under the given project, location and cluster.
|
57
|
+
# There can be only one primary instance in a cluster. If the primary
|
58
|
+
# instance exists in the cluster as well as this request, then API will
|
59
|
+
# throw an error.
|
60
|
+
# The primary instance should exist before any read pool instance is
|
61
|
+
# created. If the primary instance is a part of the request payload, then
|
62
|
+
# the API will take care of creating instances in the correct order.
|
63
|
+
# This method is here to support Google-internal use cases, and is not meant
|
64
|
+
# for external customers to consume. Please do not start relying on it; its
|
65
|
+
# behavior is subject to change without notice.
|
66
|
+
rpc :BatchCreateInstances, ::Google::Cloud::AlloyDB::V1::BatchCreateInstancesRequest, ::Google::Longrunning::Operation
|
67
|
+
# Updates the parameters of a single Instance.
|
68
|
+
rpc :UpdateInstance, ::Google::Cloud::AlloyDB::V1::UpdateInstanceRequest, ::Google::Longrunning::Operation
|
69
|
+
# Deletes a single Instance.
|
70
|
+
rpc :DeleteInstance, ::Google::Cloud::AlloyDB::V1::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
71
|
+
# Forces a Failover for a highly available instance.
|
72
|
+
# Failover promotes the HA standby instance as the new primary.
|
73
|
+
# Imperative only.
|
74
|
+
rpc :FailoverInstance, ::Google::Cloud::AlloyDB::V1::FailoverInstanceRequest, ::Google::Longrunning::Operation
|
75
|
+
# Restart an Instance in a cluster.
|
76
|
+
# Imperative only.
|
77
|
+
rpc :RestartInstance, ::Google::Cloud::AlloyDB::V1::RestartInstanceRequest, ::Google::Longrunning::Operation
|
78
|
+
# Lists Backups in a given project and location.
|
79
|
+
rpc :ListBackups, ::Google::Cloud::AlloyDB::V1::ListBackupsRequest, ::Google::Cloud::AlloyDB::V1::ListBackupsResponse
|
80
|
+
# Gets details of a single Backup.
|
81
|
+
rpc :GetBackup, ::Google::Cloud::AlloyDB::V1::GetBackupRequest, ::Google::Cloud::AlloyDB::V1::Backup
|
82
|
+
# Creates a new Backup in a given project and location.
|
83
|
+
rpc :CreateBackup, ::Google::Cloud::AlloyDB::V1::CreateBackupRequest, ::Google::Longrunning::Operation
|
84
|
+
# Updates the parameters of a single Backup.
|
85
|
+
rpc :UpdateBackup, ::Google::Cloud::AlloyDB::V1::UpdateBackupRequest, ::Google::Longrunning::Operation
|
86
|
+
# Deletes a single Backup.
|
87
|
+
rpc :DeleteBackup, ::Google::Cloud::AlloyDB::V1::DeleteBackupRequest, ::Google::Longrunning::Operation
|
88
|
+
# Lists SupportedDatabaseFlags for a given project and location.
|
89
|
+
rpc :ListSupportedDatabaseFlags, ::Google::Cloud::AlloyDB::V1::ListSupportedDatabaseFlagsRequest, ::Google::Cloud::AlloyDB::V1::ListSupportedDatabaseFlagsResponse
|
90
|
+
end
|
91
|
+
|
92
|
+
Stub = Service.rpc_stub_class
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/alloy_db/v1"
|