| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// - protoc-gen-go-grpc v1.3.0 |
| 18 |
// - protoc v4.25.7 |
| 19 |
// source: google/cloud/alloydb/v1beta/service.proto |
| 20 |
|
| 21 |
package alloydbpb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
emptypb "google.golang.org/protobuf/types/known/emptypb" |
| 30 |
) |
| 31 |
|
| 32 |
// This is a compile-time assertion to ensure that this generated file |
| 33 |
// is compatible with the grpc package it is being compiled against. |
| 34 |
// Requires gRPC-Go v1.32.0 or later. |
| 35 |
const _ = grpc.SupportPackageIsVersion7 |
| 36 |
|
| 37 |
const ( |
| 38 |
AlloyDBAdmin_ListClusters_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ListClusters" |
| 39 |
AlloyDBAdmin_GetCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/GetCluster" |
| 40 |
AlloyDBAdmin_CreateCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/CreateCluster" |
| 41 |
AlloyDBAdmin_UpdateCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/UpdateCluster" |
| 42 |
AlloyDBAdmin_ExportCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ExportCluster" |
| 43 |
AlloyDBAdmin_ImportCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ImportCluster" |
| 44 |
AlloyDBAdmin_UpgradeCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/UpgradeCluster" |
| 45 |
AlloyDBAdmin_DeleteCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/DeleteCluster" |
| 46 |
AlloyDBAdmin_PromoteCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/PromoteCluster" |
| 47 |
AlloyDBAdmin_SwitchoverCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/SwitchoverCluster" |
| 48 |
AlloyDBAdmin_RestoreCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/RestoreCluster" |
| 49 |
AlloyDBAdmin_CreateSecondaryCluster_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/CreateSecondaryCluster" |
| 50 |
AlloyDBAdmin_ListInstances_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ListInstances" |
| 51 |
AlloyDBAdmin_GetInstance_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/GetInstance" |
| 52 |
AlloyDBAdmin_CreateInstance_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/CreateInstance" |
| 53 |
AlloyDBAdmin_CreateSecondaryInstance_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/CreateSecondaryInstance" |
| 54 |
AlloyDBAdmin_BatchCreateInstances_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/BatchCreateInstances" |
| 55 |
AlloyDBAdmin_UpdateInstance_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/UpdateInstance" |
| 56 |
AlloyDBAdmin_DeleteInstance_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/DeleteInstance" |
| 57 |
AlloyDBAdmin_FailoverInstance_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/FailoverInstance" |
| 58 |
AlloyDBAdmin_InjectFault_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/InjectFault" |
| 59 |
AlloyDBAdmin_RestartInstance_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/RestartInstance" |
| 60 |
AlloyDBAdmin_ExecuteSql_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ExecuteSql" |
| 61 |
AlloyDBAdmin_ListBackups_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ListBackups" |
| 62 |
AlloyDBAdmin_GetBackup_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/GetBackup" |
| 63 |
AlloyDBAdmin_CreateBackup_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/CreateBackup" |
| 64 |
AlloyDBAdmin_UpdateBackup_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/UpdateBackup" |
| 65 |
AlloyDBAdmin_DeleteBackup_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/DeleteBackup" |
| 66 |
AlloyDBAdmin_ListSupportedDatabaseFlags_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ListSupportedDatabaseFlags" |
| 67 |
AlloyDBAdmin_GenerateClientCertificate_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/GenerateClientCertificate" |
| 68 |
AlloyDBAdmin_GetConnectionInfo_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/GetConnectionInfo" |
| 69 |
AlloyDBAdmin_ListUsers_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ListUsers" |
| 70 |
AlloyDBAdmin_GetUser_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/GetUser" |
| 71 |
AlloyDBAdmin_CreateUser_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/CreateUser" |
| 72 |
AlloyDBAdmin_UpdateUser_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/UpdateUser" |
| 73 |
AlloyDBAdmin_DeleteUser_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/DeleteUser" |
| 74 |
AlloyDBAdmin_ListDatabases_FullMethodName = "/google.cloud.alloydb.v1beta.AlloyDBAdmin/ListDatabases" |
| 75 |
) |
| 76 |
|
| 77 |
// AlloyDBAdminClient is the client API for AlloyDBAdmin service. |
| 78 |
// |
| 79 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 80 |
type AlloyDBAdminClient interface { |
| 81 |
// Lists Clusters in a given project and location. |
| 82 |
ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) |
| 83 |
// Gets details of a single Cluster. |
| 84 |
GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) |
| 85 |
// Creates a new Cluster in a given project and location. |
| 86 |
CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 87 |
// Updates the parameters of a single Cluster. |
| 88 |
UpdateCluster(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 89 |
// Exports data from the cluster. |
| 90 |
// Imperative only. |
| 91 |
ExportCluster(ctx context.Context, in *ExportClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 92 |
// Imports data to the cluster. |
| 93 |
// Imperative only. |
| 94 |
ImportCluster(ctx context.Context, in *ImportClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 95 |
// Upgrades a single Cluster. |
| 96 |
// Imperative only. |
| 97 |
UpgradeCluster(ctx context.Context, in *UpgradeClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 98 |
// Deletes a single Cluster. |
| 99 |
DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 100 |
// Promotes a SECONDARY cluster. This turns down replication |
| 101 |
// from the PRIMARY cluster and promotes a secondary cluster |
| 102 |
// into its own standalone cluster. |
| 103 |
// Imperative only. |
| 104 |
PromoteCluster(ctx context.Context, in *PromoteClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 105 |
// Switches the roles of PRIMARY and SECONDARY clusters without any data loss. |
| 106 |
// This promotes the SECONDARY cluster to PRIMARY and sets up the original |
| 107 |
// PRIMARY cluster to replicate from this newly promoted cluster. |
| 108 |
SwitchoverCluster(ctx context.Context, in *SwitchoverClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 109 |
// Creates a new Cluster in a given project and location, with a volume |
| 110 |
// restored from the provided source, either a backup ID or a point-in-time |
| 111 |
// and a source cluster. |
| 112 |
RestoreCluster(ctx context.Context, in *RestoreClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 113 |
// Creates a cluster of type SECONDARY in the given location using |
| 114 |
// the primary cluster as the source. |
| 115 |
CreateSecondaryCluster(ctx context.Context, in *CreateSecondaryClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 116 |
// Lists Instances in a given project and location. |
| 117 |
ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) |
| 118 |
// Gets details of a single Instance. |
| 119 |
GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) |
| 120 |
// Creates a new Instance in a given project and location. |
| 121 |
CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 122 |
// Creates a new SECONDARY Instance in a given project and location. |
| 123 |
CreateSecondaryInstance(ctx context.Context, in *CreateSecondaryInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 124 |
// Creates new instances under the given project, location and cluster. |
| 125 |
// There can be only one primary instance in a cluster. If the primary |
| 126 |
// instance exists in the cluster as well as this request, then API will |
| 127 |
// throw an error. |
| 128 |
// The primary instance should exist before any read pool instance is |
| 129 |
// created. If the primary instance is a part of the request payload, then |
| 130 |
// the API will take care of creating instances in the correct order. |
| 131 |
// This method is here to support Google-internal use cases, and is not meant |
| 132 |
// for external customers to consume. Please do not start relying on it; its |
| 133 |
// behavior is subject to change without notice. |
| 134 |
BatchCreateInstances(ctx context.Context, in *BatchCreateInstancesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 135 |
// Updates the parameters of a single Instance. |
| 136 |
UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 137 |
// Deletes a single Instance. |
| 138 |
DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 139 |
// Forces a Failover for a highly available instance. |
| 140 |
// Failover promotes the HA standby instance as the new primary. |
| 141 |
// Imperative only. |
| 142 |
FailoverInstance(ctx context.Context, in *FailoverInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 143 |
// Injects fault in an instance. |
| 144 |
// Imperative only. |
| 145 |
InjectFault(ctx context.Context, in *InjectFaultRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 146 |
// Restart an Instance in a cluster. |
| 147 |
// Imperative only. |
| 148 |
RestartInstance(ctx context.Context, in *RestartInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 149 |
// Executes a SQL statement in a database inside an AlloyDB instance. |
| 150 |
ExecuteSql(ctx context.Context, in *ExecuteSqlRequest, opts ...grpc.CallOption) (*ExecuteSqlResponse, error) |
| 151 |
// Lists Backups in a given project and location. |
| 152 |
ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) |
| 153 |
// Gets details of a single Backup. |
| 154 |
GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error) |
| 155 |
// Creates a new Backup in a given project and location. |
| 156 |
CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 157 |
// Updates the parameters of a single Backup. |
| 158 |
UpdateBackup(ctx context.Context, in *UpdateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 159 |
// Deletes a single Backup. |
| 160 |
DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 161 |
// Lists SupportedDatabaseFlags for a given project and location. |
| 162 |
ListSupportedDatabaseFlags(ctx context.Context, in *ListSupportedDatabaseFlagsRequest, opts ...grpc.CallOption) (*ListSupportedDatabaseFlagsResponse, error) |
| 163 |
// Generate a client certificate signed by a Cluster CA. |
| 164 |
// The sole purpose of this endpoint is to support AlloyDB connectors and the |
| 165 |
// Auth Proxy client. The endpoint's behavior is subject to change without |
| 166 |
// notice, so do not rely on its behavior remaining constant. Future changes |
| 167 |
// will not break AlloyDB connectors or the Auth Proxy client. |
| 168 |
GenerateClientCertificate(ctx context.Context, in *GenerateClientCertificateRequest, opts ...grpc.CallOption) (*GenerateClientCertificateResponse, error) |
| 169 |
// Get instance metadata used for a connection. |
| 170 |
GetConnectionInfo(ctx context.Context, in *GetConnectionInfoRequest, opts ...grpc.CallOption) (*ConnectionInfo, error) |
| 171 |
// Lists Users in a given project and location. |
| 172 |
ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) |
| 173 |
// Gets details of a single User. |
| 174 |
GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) |
| 175 |
// Creates a new User in a given project, location, and cluster. |
| 176 |
CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) |
| 177 |
// Updates the parameters of a single User. |
| 178 |
UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) |
| 179 |
// Deletes a single User. |
| 180 |
DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 181 |
// Lists Databases in a given project and location. |
| 182 |
ListDatabases(ctx context.Context, in *ListDatabasesRequest, opts ...grpc.CallOption) (*ListDatabasesResponse, error) |
| 183 |
} |
| 184 |
|
| 185 |
type alloyDBAdminClient struct { |
| 186 |
cc grpc.ClientConnInterface |
| 187 |
} |
| 188 |
|
| 189 |
func NewAlloyDBAdminClient(cc grpc.ClientConnInterface) AlloyDBAdminClient { |
| 190 |
return &alloyDBAdminClient{cc} |
| 191 |
} |
| 192 |
|
| 193 |
func (c *alloyDBAdminClient) ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) { |
| 194 |
out := new(ListClustersResponse) |
| 195 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ListClusters_FullMethodName, in, out, opts...) |
| 196 |
if err != nil { |
| 197 |
return nil, err |
| 198 |
} |
| 199 |
return out, nil |
| 200 |
} |
| 201 |
|
| 202 |
func (c *alloyDBAdminClient) GetCluster(ctx context.Context, in *GetClusterRequest, opts ...grpc.CallOption) (*Cluster, error) { |
| 203 |
out := new(Cluster) |
| 204 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_GetCluster_FullMethodName, in, out, opts...) |
| 205 |
if err != nil { |
| 206 |
return nil, err |
| 207 |
} |
| 208 |
return out, nil |
| 209 |
} |
| 210 |
|
| 211 |
func (c *alloyDBAdminClient) CreateCluster(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 212 |
out := new(longrunningpb.Operation) |
| 213 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_CreateCluster_FullMethodName, in, out, opts...) |
| 214 |
if err != nil { |
| 215 |
return nil, err |
| 216 |
} |
| 217 |
return out, nil |
| 218 |
} |
| 219 |
|
| 220 |
func (c *alloyDBAdminClient) UpdateCluster(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 221 |
out := new(longrunningpb.Operation) |
| 222 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_UpdateCluster_FullMethodName, in, out, opts...) |
| 223 |
if err != nil { |
| 224 |
return nil, err |
| 225 |
} |
| 226 |
return out, nil |
| 227 |
} |
| 228 |
|
| 229 |
func (c *alloyDBAdminClient) ExportCluster(ctx context.Context, in *ExportClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 230 |
out := new(longrunningpb.Operation) |
| 231 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ExportCluster_FullMethodName, in, out, opts...) |
| 232 |
if err != nil { |
| 233 |
return nil, err |
| 234 |
} |
| 235 |
return out, nil |
| 236 |
} |
| 237 |
|
| 238 |
func (c *alloyDBAdminClient) ImportCluster(ctx context.Context, in *ImportClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 239 |
out := new(longrunningpb.Operation) |
| 240 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ImportCluster_FullMethodName, in, out, opts...) |
| 241 |
if err != nil { |
| 242 |
return nil, err |
| 243 |
} |
| 244 |
return out, nil |
| 245 |
} |
| 246 |
|
| 247 |
func (c *alloyDBAdminClient) UpgradeCluster(ctx context.Context, in *UpgradeClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 248 |
out := new(longrunningpb.Operation) |
| 249 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_UpgradeCluster_FullMethodName, in, out, opts...) |
| 250 |
if err != nil { |
| 251 |
return nil, err |
| 252 |
} |
| 253 |
return out, nil |
| 254 |
} |
| 255 |
|
| 256 |
func (c *alloyDBAdminClient) DeleteCluster(ctx context.Context, in *DeleteClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 257 |
out := new(longrunningpb.Operation) |
| 258 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_DeleteCluster_FullMethodName, in, out, opts...) |
| 259 |
if err != nil { |
| 260 |
return nil, err |
| 261 |
} |
| 262 |
return out, nil |
| 263 |
} |
| 264 |
|
| 265 |
func (c *alloyDBAdminClient) PromoteCluster(ctx context.Context, in *PromoteClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 266 |
out := new(longrunningpb.Operation) |
| 267 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_PromoteCluster_FullMethodName, in, out, opts...) |
| 268 |
if err != nil { |
| 269 |
return nil, err |
| 270 |
} |
| 271 |
return out, nil |
| 272 |
} |
| 273 |
|
| 274 |
func (c *alloyDBAdminClient) SwitchoverCluster(ctx context.Context, in *SwitchoverClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 275 |
out := new(longrunningpb.Operation) |
| 276 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_SwitchoverCluster_FullMethodName, in, out, opts...) |
| 277 |
if err != nil { |
| 278 |
return nil, err |
| 279 |
} |
| 280 |
return out, nil |
| 281 |
} |
| 282 |
|
| 283 |
func (c *alloyDBAdminClient) RestoreCluster(ctx context.Context, in *RestoreClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 284 |
out := new(longrunningpb.Operation) |
| 285 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_RestoreCluster_FullMethodName, in, out, opts...) |
| 286 |
if err != nil { |
| 287 |
return nil, err |
| 288 |
} |
| 289 |
return out, nil |
| 290 |
} |
| 291 |
|
| 292 |
func (c *alloyDBAdminClient) CreateSecondaryCluster(ctx context.Context, in *CreateSecondaryClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 293 |
out := new(longrunningpb.Operation) |
| 294 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_CreateSecondaryCluster_FullMethodName, in, out, opts...) |
| 295 |
if err != nil { |
| 296 |
return nil, err |
| 297 |
} |
| 298 |
return out, nil |
| 299 |
} |
| 300 |
|
| 301 |
func (c *alloyDBAdminClient) ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) { |
| 302 |
out := new(ListInstancesResponse) |
| 303 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ListInstances_FullMethodName, in, out, opts...) |
| 304 |
if err != nil { |
| 305 |
return nil, err |
| 306 |
} |
| 307 |
return out, nil |
| 308 |
} |
| 309 |
|
| 310 |
func (c *alloyDBAdminClient) GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) { |
| 311 |
out := new(Instance) |
| 312 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_GetInstance_FullMethodName, in, out, opts...) |
| 313 |
if err != nil { |
| 314 |
return nil, err |
| 315 |
} |
| 316 |
return out, nil |
| 317 |
} |
| 318 |
|
| 319 |
func (c *alloyDBAdminClient) CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 320 |
out := new(longrunningpb.Operation) |
| 321 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_CreateInstance_FullMethodName, in, out, opts...) |
| 322 |
if err != nil { |
| 323 |
return nil, err |
| 324 |
} |
| 325 |
return out, nil |
| 326 |
} |
| 327 |
|
| 328 |
func (c *alloyDBAdminClient) CreateSecondaryInstance(ctx context.Context, in *CreateSecondaryInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 329 |
out := new(longrunningpb.Operation) |
| 330 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_CreateSecondaryInstance_FullMethodName, in, out, opts...) |
| 331 |
if err != nil { |
| 332 |
return nil, err |
| 333 |
} |
| 334 |
return out, nil |
| 335 |
} |
| 336 |
|
| 337 |
func (c *alloyDBAdminClient) BatchCreateInstances(ctx context.Context, in *BatchCreateInstancesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 338 |
out := new(longrunningpb.Operation) |
| 339 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_BatchCreateInstances_FullMethodName, in, out, opts...) |
| 340 |
if err != nil { |
| 341 |
return nil, err |
| 342 |
} |
| 343 |
return out, nil |
| 344 |
} |
| 345 |
|
| 346 |
func (c *alloyDBAdminClient) UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 347 |
out := new(longrunningpb.Operation) |
| 348 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_UpdateInstance_FullMethodName, in, out, opts...) |
| 349 |
if err != nil { |
| 350 |
return nil, err |
| 351 |
} |
| 352 |
return out, nil |
| 353 |
} |
| 354 |
|
| 355 |
func (c *alloyDBAdminClient) DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 356 |
out := new(longrunningpb.Operation) |
| 357 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_DeleteInstance_FullMethodName, in, out, opts...) |
| 358 |
if err != nil { |
| 359 |
return nil, err |
| 360 |
} |
| 361 |
return out, nil |
| 362 |
} |
| 363 |
|
| 364 |
func (c *alloyDBAdminClient) FailoverInstance(ctx context.Context, in *FailoverInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 365 |
out := new(longrunningpb.Operation) |
| 366 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_FailoverInstance_FullMethodName, in, out, opts...) |
| 367 |
if err != nil { |
| 368 |
return nil, err |
| 369 |
} |
| 370 |
return out, nil |
| 371 |
} |
| 372 |
|
| 373 |
func (c *alloyDBAdminClient) InjectFault(ctx context.Context, in *InjectFaultRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 374 |
out := new(longrunningpb.Operation) |
| 375 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_InjectFault_FullMethodName, in, out, opts...) |
| 376 |
if err != nil { |
| 377 |
return nil, err |
| 378 |
} |
| 379 |
return out, nil |
| 380 |
} |
| 381 |
|
| 382 |
func (c *alloyDBAdminClient) RestartInstance(ctx context.Context, in *RestartInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 383 |
out := new(longrunningpb.Operation) |
| 384 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_RestartInstance_FullMethodName, in, out, opts...) |
| 385 |
if err != nil { |
| 386 |
return nil, err |
| 387 |
} |
| 388 |
return out, nil |
| 389 |
} |
| 390 |
|
| 391 |
func (c *alloyDBAdminClient) ExecuteSql(ctx context.Context, in *ExecuteSqlRequest, opts ...grpc.CallOption) (*ExecuteSqlResponse, error) { |
| 392 |
out := new(ExecuteSqlResponse) |
| 393 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ExecuteSql_FullMethodName, in, out, opts...) |
| 394 |
if err != nil { |
| 395 |
return nil, err |
| 396 |
} |
| 397 |
return out, nil |
| 398 |
} |
| 399 |
|
| 400 |
func (c *alloyDBAdminClient) ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsResponse, error) { |
| 401 |
out := new(ListBackupsResponse) |
| 402 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ListBackups_FullMethodName, in, out, opts...) |
| 403 |
if err != nil { |
| 404 |
return nil, err |
| 405 |
} |
| 406 |
return out, nil |
| 407 |
} |
| 408 |
|
| 409 |
func (c *alloyDBAdminClient) GetBackup(ctx context.Context, in *GetBackupRequest, opts ...grpc.CallOption) (*Backup, error) { |
| 410 |
out := new(Backup) |
| 411 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_GetBackup_FullMethodName, in, out, opts...) |
| 412 |
if err != nil { |
| 413 |
return nil, err |
| 414 |
} |
| 415 |
return out, nil |
| 416 |
} |
| 417 |
|
| 418 |
func (c *alloyDBAdminClient) CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 419 |
out := new(longrunningpb.Operation) |
| 420 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_CreateBackup_FullMethodName, in, out, opts...) |
| 421 |
if err != nil { |
| 422 |
return nil, err |
| 423 |
} |
| 424 |
return out, nil |
| 425 |
} |
| 426 |
|
| 427 |
func (c *alloyDBAdminClient) UpdateBackup(ctx context.Context, in *UpdateBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 428 |
out := new(longrunningpb.Operation) |
| 429 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_UpdateBackup_FullMethodName, in, out, opts...) |
| 430 |
if err != nil { |
| 431 |
return nil, err |
| 432 |
} |
| 433 |
return out, nil |
| 434 |
} |
| 435 |
|
| 436 |
func (c *alloyDBAdminClient) DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 437 |
out := new(longrunningpb.Operation) |
| 438 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_DeleteBackup_FullMethodName, in, out, opts...) |
| 439 |
if err != nil { |
| 440 |
return nil, err |
| 441 |
} |
| 442 |
return out, nil |
| 443 |
} |
| 444 |
|
| 445 |
func (c *alloyDBAdminClient) ListSupportedDatabaseFlags(ctx context.Context, in *ListSupportedDatabaseFlagsRequest, opts ...grpc.CallOption) (*ListSupportedDatabaseFlagsResponse, error) { |
| 446 |
out := new(ListSupportedDatabaseFlagsResponse) |
| 447 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ListSupportedDatabaseFlags_FullMethodName, in, out, opts...) |
| 448 |
if err != nil { |
| 449 |
return nil, err |
| 450 |
} |
| 451 |
return out, nil |
| 452 |
} |
| 453 |
|
| 454 |
func (c *alloyDBAdminClient) GenerateClientCertificate(ctx context.Context, in *GenerateClientCertificateRequest, opts ...grpc.CallOption) (*GenerateClientCertificateResponse, error) { |
| 455 |
out := new(GenerateClientCertificateResponse) |
| 456 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_GenerateClientCertificate_FullMethodName, in, out, opts...) |
| 457 |
if err != nil { |
| 458 |
return nil, err |
| 459 |
} |
| 460 |
return out, nil |
| 461 |
} |
| 462 |
|
| 463 |
func (c *alloyDBAdminClient) GetConnectionInfo(ctx context.Context, in *GetConnectionInfoRequest, opts ...grpc.CallOption) (*ConnectionInfo, error) { |
| 464 |
out := new(ConnectionInfo) |
| 465 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_GetConnectionInfo_FullMethodName, in, out, opts...) |
| 466 |
if err != nil { |
| 467 |
return nil, err |
| 468 |
} |
| 469 |
return out, nil |
| 470 |
} |
| 471 |
|
| 472 |
func (c *alloyDBAdminClient) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) { |
| 473 |
out := new(ListUsersResponse) |
| 474 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ListUsers_FullMethodName, in, out, opts...) |
| 475 |
if err != nil { |
| 476 |
return nil, err |
| 477 |
} |
| 478 |
return out, nil |
| 479 |
} |
| 480 |
|
| 481 |
func (c *alloyDBAdminClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) { |
| 482 |
out := new(User) |
| 483 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_GetUser_FullMethodName, in, out, opts...) |
| 484 |
if err != nil { |
| 485 |
return nil, err |
| 486 |
} |
| 487 |
return out, nil |
| 488 |
} |
| 489 |
|
| 490 |
func (c *alloyDBAdminClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) { |
| 491 |
out := new(User) |
| 492 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_CreateUser_FullMethodName, in, out, opts...) |
| 493 |
if err != nil { |
| 494 |
return nil, err |
| 495 |
} |
| 496 |
return out, nil |
| 497 |
} |
| 498 |
|
| 499 |
func (c *alloyDBAdminClient) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) { |
| 500 |
out := new(User) |
| 501 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_UpdateUser_FullMethodName, in, out, opts...) |
| 502 |
if err != nil { |
| 503 |
return nil, err |
| 504 |
} |
| 505 |
return out, nil |
| 506 |
} |
| 507 |
|
| 508 |
func (c *alloyDBAdminClient) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 509 |
out := new(emptypb.Empty) |
| 510 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_DeleteUser_FullMethodName, in, out, opts...) |
| 511 |
if err != nil { |
| 512 |
return nil, err |
| 513 |
} |
| 514 |
return out, nil |
| 515 |
} |
| 516 |
|
| 517 |
func (c *alloyDBAdminClient) ListDatabases(ctx context.Context, in *ListDatabasesRequest, opts ...grpc.CallOption) (*ListDatabasesResponse, error) { |
| 518 |
out := new(ListDatabasesResponse) |
| 519 |
err := c.cc.Invoke(ctx, AlloyDBAdmin_ListDatabases_FullMethodName, in, out, opts...) |
| 520 |
if err != nil { |
| 521 |
return nil, err |
| 522 |
} |
| 523 |
return out, nil |
| 524 |
} |
| 525 |
|
| 526 |
// AlloyDBAdminServer is the server API for AlloyDBAdmin service. |
| 527 |
// All implementations should embed UnimplementedAlloyDBAdminServer |
| 528 |
// for forward compatibility |
| 529 |
type AlloyDBAdminServer interface { |
| 530 |
// Lists Clusters in a given project and location. |
| 531 |
ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error) |
| 532 |
// Gets details of a single Cluster. |
| 533 |
GetCluster(context.Context, *GetClusterRequest) (*Cluster, error) |
| 534 |
// Creates a new Cluster in a given project and location. |
| 535 |
CreateCluster(context.Context, *CreateClusterRequest) (*longrunningpb.Operation, error) |
| 536 |
// Updates the parameters of a single Cluster. |
| 537 |
UpdateCluster(context.Context, *UpdateClusterRequest) (*longrunningpb.Operation, error) |
| 538 |
// Exports data from the cluster. |
| 539 |
// Imperative only. |
| 540 |
ExportCluster(context.Context, *ExportClusterRequest) (*longrunningpb.Operation, error) |
| 541 |
// Imports data to the cluster. |
| 542 |
// Imperative only. |
| 543 |
ImportCluster(context.Context, *ImportClusterRequest) (*longrunningpb.Operation, error) |
| 544 |
// Upgrades a single Cluster. |
| 545 |
// Imperative only. |
| 546 |
UpgradeCluster(context.Context, *UpgradeClusterRequest) (*longrunningpb.Operation, error) |
| 547 |
// Deletes a single Cluster. |
| 548 |
DeleteCluster(context.Context, *DeleteClusterRequest) (*longrunningpb.Operation, error) |
| 549 |
// Promotes a SECONDARY cluster. This turns down replication |
| 550 |
// from the PRIMARY cluster and promotes a secondary cluster |
| 551 |
// into its own standalone cluster. |
| 552 |
// Imperative only. |
| 553 |
PromoteCluster(context.Context, *PromoteClusterRequest) (*longrunningpb.Operation, error) |
| 554 |
// Switches the roles of PRIMARY and SECONDARY clusters without any data loss. |
| 555 |
// This promotes the SECONDARY cluster to PRIMARY and sets up the original |
| 556 |
// PRIMARY cluster to replicate from this newly promoted cluster. |
| 557 |
SwitchoverCluster(context.Context, *SwitchoverClusterRequest) (*longrunningpb.Operation, error) |
| 558 |
// Creates a new Cluster in a given project and location, with a volume |
| 559 |
// restored from the provided source, either a backup ID or a point-in-time |
| 560 |
// and a source cluster. |
| 561 |
RestoreCluster(context.Context, *RestoreClusterRequest) (*longrunningpb.Operation, error) |
| 562 |
// Creates a cluster of type SECONDARY in the given location using |
| 563 |
// the primary cluster as the source. |
| 564 |
CreateSecondaryCluster(context.Context, *CreateSecondaryClusterRequest) (*longrunningpb.Operation, error) |
| 565 |
// Lists Instances in a given project and location. |
| 566 |
ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error) |
| 567 |
// Gets details of a single Instance. |
| 568 |
GetInstance(context.Context, *GetInstanceRequest) (*Instance, error) |
| 569 |
// Creates a new Instance in a given project and location. |
| 570 |
CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error) |
| 571 |
// Creates a new SECONDARY Instance in a given project and location. |
| 572 |
CreateSecondaryInstance(context.Context, *CreateSecondaryInstanceRequest) (*longrunningpb.Operation, error) |
| 573 |
// Creates new instances under the given project, location and cluster. |
| 574 |
// There can be only one primary instance in a cluster. If the primary |
| 575 |
// instance exists in the cluster as well as this request, then API will |
| 576 |
// throw an error. |
| 577 |
// The primary instance should exist before any read pool instance is |
| 578 |
// created. If the primary instance is a part of the request payload, then |
| 579 |
// the API will take care of creating instances in the correct order. |
| 580 |
// This method is here to support Google-internal use cases, and is not meant |
| 581 |
// for external customers to consume. Please do not start relying on it; its |
| 582 |
// behavior is subject to change without notice. |
| 583 |
BatchCreateInstances(context.Context, *BatchCreateInstancesRequest) (*longrunningpb.Operation, error) |
| 584 |
// Updates the parameters of a single Instance. |
| 585 |
UpdateInstance(context.Context, *UpdateInstanceRequest) (*longrunningpb.Operation, error) |
| 586 |
// Deletes a single Instance. |
| 587 |
DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunningpb.Operation, error) |
| 588 |
// Forces a Failover for a highly available instance. |
| 589 |
// Failover promotes the HA standby instance as the new primary. |
| 590 |
// Imperative only. |
| 591 |
FailoverInstance(context.Context, *FailoverInstanceRequest) (*longrunningpb.Operation, error) |
| 592 |
// Injects fault in an instance. |
| 593 |
// Imperative only. |
| 594 |
InjectFault(context.Context, *InjectFaultRequest) (*longrunningpb.Operation, error) |
| 595 |
// Restart an Instance in a cluster. |
| 596 |
// Imperative only. |
| 597 |
RestartInstance(context.Context, *RestartInstanceRequest) (*longrunningpb.Operation, error) |
| 598 |
// Executes a SQL statement in a database inside an AlloyDB instance. |
| 599 |
ExecuteSql(context.Context, *ExecuteSqlRequest) (*ExecuteSqlResponse, error) |
| 600 |
// Lists Backups in a given project and location. |
| 601 |
ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) |
| 602 |
// Gets details of a single Backup. |
| 603 |
GetBackup(context.Context, *GetBackupRequest) (*Backup, error) |
| 604 |
// Creates a new Backup in a given project and location. |
| 605 |
CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error) |
| 606 |
// Updates the parameters of a single Backup. |
| 607 |
UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error) |
| 608 |
// Deletes a single Backup. |
| 609 |
DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error) |
| 610 |
// Lists SupportedDatabaseFlags for a given project and location. |
| 611 |
ListSupportedDatabaseFlags(context.Context, *ListSupportedDatabaseFlagsRequest) (*ListSupportedDatabaseFlagsResponse, error) |
| 612 |
// Generate a client certificate signed by a Cluster CA. |
| 613 |
// The sole purpose of this endpoint is to support AlloyDB connectors and the |
| 614 |
// Auth Proxy client. The endpoint's behavior is subject to change without |
| 615 |
// notice, so do not rely on its behavior remaining constant. Future changes |
| 616 |
// will not break AlloyDB connectors or the Auth Proxy client. |
| 617 |
GenerateClientCertificate(context.Context, *GenerateClientCertificateRequest) (*GenerateClientCertificateResponse, error) |
| 618 |
// Get instance metadata used for a connection. |
| 619 |
GetConnectionInfo(context.Context, *GetConnectionInfoRequest) (*ConnectionInfo, error) |
| 620 |
// Lists Users in a given project and location. |
| 621 |
ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) |
| 622 |
// Gets details of a single User. |
| 623 |
GetUser(context.Context, *GetUserRequest) (*User, error) |
| 624 |
// Creates a new User in a given project, location, and cluster. |
| 625 |
CreateUser(context.Context, *CreateUserRequest) (*User, error) |
| 626 |
// Updates the parameters of a single User. |
| 627 |
UpdateUser(context.Context, *UpdateUserRequest) (*User, error) |
| 628 |
// Deletes a single User. |
| 629 |
DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) |
| 630 |
// Lists Databases in a given project and location. |
| 631 |
ListDatabases(context.Context, *ListDatabasesRequest) (*ListDatabasesResponse, error) |
| 632 |
} |
| 633 |
|
| 634 |
// UnimplementedAlloyDBAdminServer should be embedded to have forward compatible implementations. |
| 635 |
type UnimplementedAlloyDBAdminServer struct { |
| 636 |
} |
| 637 |
|
| 638 |
func (UnimplementedAlloyDBAdminServer) ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error) { |
| 639 |
return nil, status.Errorf(codes.Unimplemented, "method ListClusters not implemented") |
| 640 |
} |
| 641 |
func (UnimplementedAlloyDBAdminServer) GetCluster(context.Context, *GetClusterRequest) (*Cluster, error) { |
| 642 |
return nil, status.Errorf(codes.Unimplemented, "method GetCluster not implemented") |
| 643 |
} |
| 644 |
func (UnimplementedAlloyDBAdminServer) CreateCluster(context.Context, *CreateClusterRequest) (*longrunningpb.Operation, error) { |
| 645 |
return nil, status.Errorf(codes.Unimplemented, "method CreateCluster not implemented") |
| 646 |
} |
| 647 |
func (UnimplementedAlloyDBAdminServer) UpdateCluster(context.Context, *UpdateClusterRequest) (*longrunningpb.Operation, error) { |
| 648 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateCluster not implemented") |
| 649 |
} |
| 650 |
func (UnimplementedAlloyDBAdminServer) ExportCluster(context.Context, *ExportClusterRequest) (*longrunningpb.Operation, error) { |
| 651 |
return nil, status.Errorf(codes.Unimplemented, "method ExportCluster not implemented") |
| 652 |
} |
| 653 |
func (UnimplementedAlloyDBAdminServer) ImportCluster(context.Context, *ImportClusterRequest) (*longrunningpb.Operation, error) { |
| 654 |
return nil, status.Errorf(codes.Unimplemented, "method ImportCluster not implemented") |
| 655 |
} |
| 656 |
func (UnimplementedAlloyDBAdminServer) UpgradeCluster(context.Context, *UpgradeClusterRequest) (*longrunningpb.Operation, error) { |
| 657 |
return nil, status.Errorf(codes.Unimplemented, "method UpgradeCluster not implemented") |
| 658 |
} |
| 659 |
func (UnimplementedAlloyDBAdminServer) DeleteCluster(context.Context, *DeleteClusterRequest) (*longrunningpb.Operation, error) { |
| 660 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteCluster not implemented") |
| 661 |
} |
| 662 |
func (UnimplementedAlloyDBAdminServer) PromoteCluster(context.Context, *PromoteClusterRequest) (*longrunningpb.Operation, error) { |
| 663 |
return nil, status.Errorf(codes.Unimplemented, "method PromoteCluster not implemented") |
| 664 |
} |
| 665 |
func (UnimplementedAlloyDBAdminServer) SwitchoverCluster(context.Context, *SwitchoverClusterRequest) (*longrunningpb.Operation, error) { |
| 666 |
return nil, status.Errorf(codes.Unimplemented, "method SwitchoverCluster not implemented") |
| 667 |
} |
| 668 |
func (UnimplementedAlloyDBAdminServer) RestoreCluster(context.Context, *RestoreClusterRequest) (*longrunningpb.Operation, error) { |
| 669 |
return nil, status.Errorf(codes.Unimplemented, "method RestoreCluster not implemented") |
| 670 |
} |
| 671 |
func (UnimplementedAlloyDBAdminServer) CreateSecondaryCluster(context.Context, *CreateSecondaryClusterRequest) (*longrunningpb.Operation, error) { |
| 672 |
return nil, status.Errorf(codes.Unimplemented, "method CreateSecondaryCluster not implemented") |
| 673 |
} |
| 674 |
func (UnimplementedAlloyDBAdminServer) ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error) { |
| 675 |
return nil, status.Errorf(codes.Unimplemented, "method ListInstances not implemented") |
| 676 |
} |
| 677 |
func (UnimplementedAlloyDBAdminServer) GetInstance(context.Context, *GetInstanceRequest) (*Instance, error) { |
| 678 |
return nil, status.Errorf(codes.Unimplemented, "method GetInstance not implemented") |
| 679 |
} |
| 680 |
func (UnimplementedAlloyDBAdminServer) CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error) { |
| 681 |
return nil, status.Errorf(codes.Unimplemented, "method CreateInstance not implemented") |
| 682 |
} |
| 683 |
func (UnimplementedAlloyDBAdminServer) CreateSecondaryInstance(context.Context, *CreateSecondaryInstanceRequest) (*longrunningpb.Operation, error) { |
| 684 |
return nil, status.Errorf(codes.Unimplemented, "method CreateSecondaryInstance not implemented") |
| 685 |
} |
| 686 |
func (UnimplementedAlloyDBAdminServer) BatchCreateInstances(context.Context, *BatchCreateInstancesRequest) (*longrunningpb.Operation, error) { |
| 687 |
return nil, status.Errorf(codes.Unimplemented, "method BatchCreateInstances not implemented") |
| 688 |
} |
| 689 |
func (UnimplementedAlloyDBAdminServer) UpdateInstance(context.Context, *UpdateInstanceRequest) (*longrunningpb.Operation, error) { |
| 690 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateInstance not implemented") |
| 691 |
} |
| 692 |
func (UnimplementedAlloyDBAdminServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunningpb.Operation, error) { |
| 693 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteInstance not implemented") |
| 694 |
} |
| 695 |
func (UnimplementedAlloyDBAdminServer) FailoverInstance(context.Context, *FailoverInstanceRequest) (*longrunningpb.Operation, error) { |
| 696 |
return nil, status.Errorf(codes.Unimplemented, "method FailoverInstance not implemented") |
| 697 |
} |
| 698 |
func (UnimplementedAlloyDBAdminServer) InjectFault(context.Context, *InjectFaultRequest) (*longrunningpb.Operation, error) { |
| 699 |
return nil, status.Errorf(codes.Unimplemented, "method InjectFault not implemented") |
| 700 |
} |
| 701 |
func (UnimplementedAlloyDBAdminServer) RestartInstance(context.Context, *RestartInstanceRequest) (*longrunningpb.Operation, error) { |
| 702 |
return nil, status.Errorf(codes.Unimplemented, "method RestartInstance not implemented") |
| 703 |
} |
| 704 |
func (UnimplementedAlloyDBAdminServer) ExecuteSql(context.Context, *ExecuteSqlRequest) (*ExecuteSqlResponse, error) { |
| 705 |
return nil, status.Errorf(codes.Unimplemented, "method ExecuteSql not implemented") |
| 706 |
} |
| 707 |
func (UnimplementedAlloyDBAdminServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsResponse, error) { |
| 708 |
return nil, status.Errorf(codes.Unimplemented, "method ListBackups not implemented") |
| 709 |
} |
| 710 |
func (UnimplementedAlloyDBAdminServer) GetBackup(context.Context, *GetBackupRequest) (*Backup, error) { |
| 711 |
return nil, status.Errorf(codes.Unimplemented, "method GetBackup not implemented") |
| 712 |
} |
| 713 |
func (UnimplementedAlloyDBAdminServer) CreateBackup(context.Context, *CreateBackupRequest) (*longrunningpb.Operation, error) { |
| 714 |
return nil, status.Errorf(codes.Unimplemented, "method CreateBackup not implemented") |
| 715 |
} |
| 716 |
func (UnimplementedAlloyDBAdminServer) UpdateBackup(context.Context, *UpdateBackupRequest) (*longrunningpb.Operation, error) { |
| 717 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateBackup not implemented") |
| 718 |
} |
| 719 |
func (UnimplementedAlloyDBAdminServer) DeleteBackup(context.Context, *DeleteBackupRequest) (*longrunningpb.Operation, error) { |
| 720 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteBackup not implemented") |
| 721 |
} |
| 722 |
func (UnimplementedAlloyDBAdminServer) ListSupportedDatabaseFlags(context.Context, *ListSupportedDatabaseFlagsRequest) (*ListSupportedDatabaseFlagsResponse, error) { |
| 723 |
return nil, status.Errorf(codes.Unimplemented, "method ListSupportedDatabaseFlags not implemented") |
| 724 |
} |
| 725 |
func (UnimplementedAlloyDBAdminServer) GenerateClientCertificate(context.Context, *GenerateClientCertificateRequest) (*GenerateClientCertificateResponse, error) { |
| 726 |
return nil, status.Errorf(codes.Unimplemented, "method GenerateClientCertificate not implemented") |
| 727 |
} |
| 728 |
func (UnimplementedAlloyDBAdminServer) GetConnectionInfo(context.Context, *GetConnectionInfoRequest) (*ConnectionInfo, error) { |
| 729 |
return nil, status.Errorf(codes.Unimplemented, "method GetConnectionInfo not implemented") |
| 730 |
} |
| 731 |
func (UnimplementedAlloyDBAdminServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) { |
| 732 |
return nil, status.Errorf(codes.Unimplemented, "method ListUsers not implemented") |
| 733 |
} |
| 734 |
func (UnimplementedAlloyDBAdminServer) GetUser(context.Context, *GetUserRequest) (*User, error) { |
| 735 |
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") |
| 736 |
} |
| 737 |
func (UnimplementedAlloyDBAdminServer) CreateUser(context.Context, *CreateUserRequest) (*User, error) { |
| 738 |
return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented") |
| 739 |
} |
| 740 |
func (UnimplementedAlloyDBAdminServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error) { |
| 741 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented") |
| 742 |
} |
| 743 |
func (UnimplementedAlloyDBAdminServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) { |
| 744 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented") |
| 745 |
} |
| 746 |
func (UnimplementedAlloyDBAdminServer) ListDatabases(context.Context, *ListDatabasesRequest) (*ListDatabasesResponse, error) { |
| 747 |
return nil, status.Errorf(codes.Unimplemented, "method ListDatabases not implemented") |
| 748 |
} |
| 749 |
|
| 750 |
// UnsafeAlloyDBAdminServer may be embedded to opt out of forward compatibility for this service. |
| 751 |
// Use of this interface is not recommended, as added methods to AlloyDBAdminServer will |
| 752 |
// result in compilation errors. |
| 753 |
type UnsafeAlloyDBAdminServer interface { |
| 754 |
mustEmbedUnimplementedAlloyDBAdminServer() |
| 755 |
} |
| 756 |
|
| 757 |
func RegisterAlloyDBAdminServer(s grpc.ServiceRegistrar, srv AlloyDBAdminServer) { |
| 758 |
s.RegisterService(&AlloyDBAdmin_ServiceDesc, srv) |
| 759 |
} |
| 760 |
|
| 761 |
func _AlloyDBAdmin_ListClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 762 |
in := new(ListClustersRequest) |
| 763 |
if err := dec(in); err != nil { |
| 764 |
return nil, err |
| 765 |
} |
| 766 |
if interceptor == nil { |
| 767 |
return srv.(AlloyDBAdminServer).ListClusters(ctx, in) |
| 768 |
} |
| 769 |
info := &grpc.UnaryServerInfo{ |
| 770 |
Server: srv, |
| 771 |
FullMethod: AlloyDBAdmin_ListClusters_FullMethodName, |
| 772 |
} |
| 773 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 774 |
return srv.(AlloyDBAdminServer).ListClusters(ctx, req.(*ListClustersRequest)) |
| 775 |
} |
| 776 |
return interceptor(ctx, in, info, handler) |
| 777 |
} |
| 778 |
|
| 779 |
func _AlloyDBAdmin_GetCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 780 |
in := new(GetClusterRequest) |
| 781 |
if err := dec(in); err != nil { |
| 782 |
return nil, err |
| 783 |
} |
| 784 |
if interceptor == nil { |
| 785 |
return srv.(AlloyDBAdminServer).GetCluster(ctx, in) |
| 786 |
} |
| 787 |
info := &grpc.UnaryServerInfo{ |
| 788 |
Server: srv, |
| 789 |
FullMethod: AlloyDBAdmin_GetCluster_FullMethodName, |
| 790 |
} |
| 791 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 792 |
return srv.(AlloyDBAdminServer).GetCluster(ctx, req.(*GetClusterRequest)) |
| 793 |
} |
| 794 |
return interceptor(ctx, in, info, handler) |
| 795 |
} |
| 796 |
|
| 797 |
func _AlloyDBAdmin_CreateCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 798 |
in := new(CreateClusterRequest) |
| 799 |
if err := dec(in); err != nil { |
| 800 |
return nil, err |
| 801 |
} |
| 802 |
if interceptor == nil { |
| 803 |
return srv.(AlloyDBAdminServer).CreateCluster(ctx, in) |
| 804 |
} |
| 805 |
info := &grpc.UnaryServerInfo{ |
| 806 |
Server: srv, |
| 807 |
FullMethod: AlloyDBAdmin_CreateCluster_FullMethodName, |
| 808 |
} |
| 809 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 810 |
return srv.(AlloyDBAdminServer).CreateCluster(ctx, req.(*CreateClusterRequest)) |
| 811 |
} |
| 812 |
return interceptor(ctx, in, info, handler) |
| 813 |
} |
| 814 |
|
| 815 |
func _AlloyDBAdmin_UpdateCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 816 |
in := new(UpdateClusterRequest) |
| 817 |
if err := dec(in); err != nil { |
| 818 |
return nil, err |
| 819 |
} |
| 820 |
if interceptor == nil { |
| 821 |
return srv.(AlloyDBAdminServer).UpdateCluster(ctx, in) |
| 822 |
} |
| 823 |
info := &grpc.UnaryServerInfo{ |
| 824 |
Server: srv, |
| 825 |
FullMethod: AlloyDBAdmin_UpdateCluster_FullMethodName, |
| 826 |
} |
| 827 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 828 |
return srv.(AlloyDBAdminServer).UpdateCluster(ctx, req.(*UpdateClusterRequest)) |
| 829 |
} |
| 830 |
return interceptor(ctx, in, info, handler) |
| 831 |
} |
| 832 |
|
| 833 |
func _AlloyDBAdmin_ExportCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 834 |
in := new(ExportClusterRequest) |
| 835 |
if err := dec(in); err != nil { |
| 836 |
return nil, err |
| 837 |
} |
| 838 |
if interceptor == nil { |
| 839 |
return srv.(AlloyDBAdminServer).ExportCluster(ctx, in) |
| 840 |
} |
| 841 |
info := &grpc.UnaryServerInfo{ |
| 842 |
Server: srv, |
| 843 |
FullMethod: AlloyDBAdmin_ExportCluster_FullMethodName, |
| 844 |
} |
| 845 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 846 |
return srv.(AlloyDBAdminServer).ExportCluster(ctx, req.(*ExportClusterRequest)) |
| 847 |
} |
| 848 |
return interceptor(ctx, in, info, handler) |
| 849 |
} |
| 850 |
|
| 851 |
func _AlloyDBAdmin_ImportCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 852 |
in := new(ImportClusterRequest) |
| 853 |
if err := dec(in); err != nil { |
| 854 |
return nil, err |
| 855 |
} |
| 856 |
if interceptor == nil { |
| 857 |
return srv.(AlloyDBAdminServer).ImportCluster(ctx, in) |
| 858 |
} |
| 859 |
info := &grpc.UnaryServerInfo{ |
| 860 |
Server: srv, |
| 861 |
FullMethod: AlloyDBAdmin_ImportCluster_FullMethodName, |
| 862 |
} |
| 863 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 864 |
return srv.(AlloyDBAdminServer).ImportCluster(ctx, req.(*ImportClusterRequest)) |
| 865 |
} |
| 866 |
return interceptor(ctx, in, info, handler) |
| 867 |
} |
| 868 |
|
| 869 |
func _AlloyDBAdmin_UpgradeCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 870 |
in := new(UpgradeClusterRequest) |
| 871 |
if err := dec(in); err != nil { |
| 872 |
return nil, err |
| 873 |
} |
| 874 |
if interceptor == nil { |
| 875 |
return srv.(AlloyDBAdminServer).UpgradeCluster(ctx, in) |
| 876 |
} |
| 877 |
info := &grpc.UnaryServerInfo{ |
| 878 |
Server: srv, |
| 879 |
FullMethod: AlloyDBAdmin_UpgradeCluster_FullMethodName, |
| 880 |
} |
| 881 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 882 |
return srv.(AlloyDBAdminServer).UpgradeCluster(ctx, req.(*UpgradeClusterRequest)) |
| 883 |
} |
| 884 |
return interceptor(ctx, in, info, handler) |
| 885 |
} |
| 886 |
|
| 887 |
func _AlloyDBAdmin_DeleteCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 888 |
in := new(DeleteClusterRequest) |
| 889 |
if err := dec(in); err != nil { |
| 890 |
return nil, err |
| 891 |
} |
| 892 |
if interceptor == nil { |
| 893 |
return srv.(AlloyDBAdminServer).DeleteCluster(ctx, in) |
| 894 |
} |
| 895 |
info := &grpc.UnaryServerInfo{ |
| 896 |
Server: srv, |
| 897 |
FullMethod: AlloyDBAdmin_DeleteCluster_FullMethodName, |
| 898 |
} |
| 899 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 900 |
return srv.(AlloyDBAdminServer).DeleteCluster(ctx, req.(*DeleteClusterRequest)) |
| 901 |
} |
| 902 |
return interceptor(ctx, in, info, handler) |
| 903 |
} |
| 904 |
|
| 905 |
func _AlloyDBAdmin_PromoteCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 906 |
in := new(PromoteClusterRequest) |
| 907 |
if err := dec(in); err != nil { |
| 908 |
return nil, err |
| 909 |
} |
| 910 |
if interceptor == nil { |
| 911 |
return srv.(AlloyDBAdminServer).PromoteCluster(ctx, in) |
| 912 |
} |
| 913 |
info := &grpc.UnaryServerInfo{ |
| 914 |
Server: srv, |
| 915 |
FullMethod: AlloyDBAdmin_PromoteCluster_FullMethodName, |
| 916 |
} |
| 917 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 918 |
return srv.(AlloyDBAdminServer).PromoteCluster(ctx, req.(*PromoteClusterRequest)) |
| 919 |
} |
| 920 |
return interceptor(ctx, in, info, handler) |
| 921 |
} |
| 922 |
|
| 923 |
func _AlloyDBAdmin_SwitchoverCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 924 |
in := new(SwitchoverClusterRequest) |
| 925 |
if err := dec(in); err != nil { |
| 926 |
return nil, err |
| 927 |
} |
| 928 |
if interceptor == nil { |
| 929 |
return srv.(AlloyDBAdminServer).SwitchoverCluster(ctx, in) |
| 930 |
} |
| 931 |
info := &grpc.UnaryServerInfo{ |
| 932 |
Server: srv, |
| 933 |
FullMethod: AlloyDBAdmin_SwitchoverCluster_FullMethodName, |
| 934 |
} |
| 935 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 936 |
return srv.(AlloyDBAdminServer).SwitchoverCluster(ctx, req.(*SwitchoverClusterRequest)) |
| 937 |
} |
| 938 |
return interceptor(ctx, in, info, handler) |
| 939 |
} |
| 940 |
|
| 941 |
func _AlloyDBAdmin_RestoreCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 942 |
in := new(RestoreClusterRequest) |
| 943 |
if err := dec(in); err != nil { |
| 944 |
return nil, err |
| 945 |
} |
| 946 |
if interceptor == nil { |
| 947 |
return srv.(AlloyDBAdminServer).RestoreCluster(ctx, in) |
| 948 |
} |
| 949 |
info := &grpc.UnaryServerInfo{ |
| 950 |
Server: srv, |
| 951 |
FullMethod: AlloyDBAdmin_RestoreCluster_FullMethodName, |
| 952 |
} |
| 953 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 954 |
return srv.(AlloyDBAdminServer).RestoreCluster(ctx, req.(*RestoreClusterRequest)) |
| 955 |
} |
| 956 |
return interceptor(ctx, in, info, handler) |
| 957 |
} |
| 958 |
|
| 959 |
func _AlloyDBAdmin_CreateSecondaryCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 960 |
in := new(CreateSecondaryClusterRequest) |
| 961 |
if err := dec(in); err != nil { |
| 962 |
return nil, err |
| 963 |
} |
| 964 |
if interceptor == nil { |
| 965 |
return srv.(AlloyDBAdminServer).CreateSecondaryCluster(ctx, in) |
| 966 |
} |
| 967 |
info := &grpc.UnaryServerInfo{ |
| 968 |
Server: srv, |
| 969 |
FullMethod: AlloyDBAdmin_CreateSecondaryCluster_FullMethodName, |
| 970 |
} |
| 971 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 972 |
return srv.(AlloyDBAdminServer).CreateSecondaryCluster(ctx, req.(*CreateSecondaryClusterRequest)) |
| 973 |
} |
| 974 |
return interceptor(ctx, in, info, handler) |
| 975 |
} |
| 976 |
|
| 977 |
func _AlloyDBAdmin_ListInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 978 |
in := new(ListInstancesRequest) |
| 979 |
if err := dec(in); err != nil { |
| 980 |
return nil, err |
| 981 |
} |
| 982 |
if interceptor == nil { |
| 983 |
return srv.(AlloyDBAdminServer).ListInstances(ctx, in) |
| 984 |
} |
| 985 |
info := &grpc.UnaryServerInfo{ |
| 986 |
Server: srv, |
| 987 |
FullMethod: AlloyDBAdmin_ListInstances_FullMethodName, |
| 988 |
} |
| 989 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 990 |
return srv.(AlloyDBAdminServer).ListInstances(ctx, req.(*ListInstancesRequest)) |
| 991 |
} |
| 992 |
return interceptor(ctx, in, info, handler) |
| 993 |
} |
| 994 |
|
| 995 |
func _AlloyDBAdmin_GetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 996 |
in := new(GetInstanceRequest) |
| 997 |
if err := dec(in); err != nil { |
| 998 |
return nil, err |
| 999 |
} |
| 1000 |
if interceptor == nil { |
| 1001 |
return srv.(AlloyDBAdminServer).GetInstance(ctx, in) |
| 1002 |
} |
| 1003 |
info := &grpc.UnaryServerInfo{ |
| 1004 |
Server: srv, |
| 1005 |
FullMethod: AlloyDBAdmin_GetInstance_FullMethodName, |
| 1006 |
} |
| 1007 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1008 |
return srv.(AlloyDBAdminServer).GetInstance(ctx, req.(*GetInstanceRequest)) |
| 1009 |
} |
| 1010 |
return interceptor(ctx, in, info, handler) |
| 1011 |
} |
| 1012 |
|
| 1013 |
func _AlloyDBAdmin_CreateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1014 |
in := new(CreateInstanceRequest) |
| 1015 |
if err := dec(in); err != nil { |
| 1016 |
return nil, err |
| 1017 |
} |
| 1018 |
if interceptor == nil { |
| 1019 |
return srv.(AlloyDBAdminServer).CreateInstance(ctx, in) |
| 1020 |
} |
| 1021 |
info := &grpc.UnaryServerInfo{ |
| 1022 |
Server: srv, |
| 1023 |
FullMethod: AlloyDBAdmin_CreateInstance_FullMethodName, |
| 1024 |
} |
| 1025 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1026 |
return srv.(AlloyDBAdminServer).CreateInstance(ctx, req.(*CreateInstanceRequest)) |
| 1027 |
} |
| 1028 |
return interceptor(ctx, in, info, handler) |
| 1029 |
} |
| 1030 |
|
| 1031 |
func _AlloyDBAdmin_CreateSecondaryInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1032 |
in := new(CreateSecondaryInstanceRequest) |
| 1033 |
if err := dec(in); err != nil { |
| 1034 |
return nil, err |
| 1035 |
} |
| 1036 |
if interceptor == nil { |
| 1037 |
return srv.(AlloyDBAdminServer).CreateSecondaryInstance(ctx, in) |
| 1038 |
} |
| 1039 |
info := &grpc.UnaryServerInfo{ |
| 1040 |
Server: srv, |
| 1041 |
FullMethod: AlloyDBAdmin_CreateSecondaryInstance_FullMethodName, |
| 1042 |
} |
| 1043 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1044 |
return srv.(AlloyDBAdminServer).CreateSecondaryInstance(ctx, req.(*CreateSecondaryInstanceRequest)) |
| 1045 |
} |
| 1046 |
return interceptor(ctx, in, info, handler) |
| 1047 |
} |
| 1048 |
|
| 1049 |
func _AlloyDBAdmin_BatchCreateInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1050 |
in := new(BatchCreateInstancesRequest) |
| 1051 |
if err := dec(in); err != nil { |
| 1052 |
return nil, err |
| 1053 |
} |
| 1054 |
if interceptor == nil { |
| 1055 |
return srv.(AlloyDBAdminServer).BatchCreateInstances(ctx, in) |
| 1056 |
} |
| 1057 |
info := &grpc.UnaryServerInfo{ |
| 1058 |
Server: srv, |
| 1059 |
FullMethod: AlloyDBAdmin_BatchCreateInstances_FullMethodName, |
| 1060 |
} |
| 1061 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1062 |
return srv.(AlloyDBAdminServer).BatchCreateInstances(ctx, req.(*BatchCreateInstancesRequest)) |
| 1063 |
} |
| 1064 |
return interceptor(ctx, in, info, handler) |
| 1065 |
} |
| 1066 |
|
| 1067 |
func _AlloyDBAdmin_UpdateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1068 |
in := new(UpdateInstanceRequest) |
| 1069 |
if err := dec(in); err != nil { |
| 1070 |
return nil, err |
| 1071 |
} |
| 1072 |
if interceptor == nil { |
| 1073 |
return srv.(AlloyDBAdminServer).UpdateInstance(ctx, in) |
| 1074 |
} |
| 1075 |
info := &grpc.UnaryServerInfo{ |
| 1076 |
Server: srv, |
| 1077 |
FullMethod: AlloyDBAdmin_UpdateInstance_FullMethodName, |
| 1078 |
} |
| 1079 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1080 |
return srv.(AlloyDBAdminServer).UpdateInstance(ctx, req.(*UpdateInstanceRequest)) |
| 1081 |
} |
| 1082 |
return interceptor(ctx, in, info, handler) |
| 1083 |
} |
| 1084 |
|
| 1085 |
func _AlloyDBAdmin_DeleteInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1086 |
in := new(DeleteInstanceRequest) |
| 1087 |
if err := dec(in); err != nil { |
| 1088 |
return nil, err |
| 1089 |
} |
| 1090 |
if interceptor == nil { |
| 1091 |
return srv.(AlloyDBAdminServer).DeleteInstance(ctx, in) |
| 1092 |
} |
| 1093 |
info := &grpc.UnaryServerInfo{ |
| 1094 |
Server: srv, |
| 1095 |
FullMethod: AlloyDBAdmin_DeleteInstance_FullMethodName, |
| 1096 |
} |
| 1097 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1098 |
return srv.(AlloyDBAdminServer).DeleteInstance(ctx, req.(*DeleteInstanceRequest)) |
| 1099 |
} |
| 1100 |
return interceptor(ctx, in, info, handler) |
| 1101 |
} |
| 1102 |
|
| 1103 |
func _AlloyDBAdmin_FailoverInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1104 |
in := new(FailoverInstanceRequest) |
| 1105 |
if err := dec(in); err != nil { |
| 1106 |
return nil, err |
| 1107 |
} |
| 1108 |
if interceptor == nil { |
| 1109 |
return srv.(AlloyDBAdminServer).FailoverInstance(ctx, in) |
| 1110 |
} |
| 1111 |
info := &grpc.UnaryServerInfo{ |
| 1112 |
Server: srv, |
| 1113 |
FullMethod: AlloyDBAdmin_FailoverInstance_FullMethodName, |
| 1114 |
} |
| 1115 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1116 |
return srv.(AlloyDBAdminServer).FailoverInstance(ctx, req.(*FailoverInstanceRequest)) |
| 1117 |
} |
| 1118 |
return interceptor(ctx, in, info, handler) |
| 1119 |
} |
| 1120 |
|
| 1121 |
func _AlloyDBAdmin_InjectFault_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1122 |
in := new(InjectFaultRequest) |
| 1123 |
if err := dec(in); err != nil { |
| 1124 |
return nil, err |
| 1125 |
} |
| 1126 |
if interceptor == nil { |
| 1127 |
return srv.(AlloyDBAdminServer).InjectFault(ctx, in) |
| 1128 |
} |
| 1129 |
info := &grpc.UnaryServerInfo{ |
| 1130 |
Server: srv, |
| 1131 |
FullMethod: AlloyDBAdmin_InjectFault_FullMethodName, |
| 1132 |
} |
| 1133 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1134 |
return srv.(AlloyDBAdminServer).InjectFault(ctx, req.(*InjectFaultRequest)) |
| 1135 |
} |
| 1136 |
return interceptor(ctx, in, info, handler) |
| 1137 |
} |
| 1138 |
|
| 1139 |
func _AlloyDBAdmin_RestartInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1140 |
in := new(RestartInstanceRequest) |
| 1141 |
if err := dec(in); err != nil { |
| 1142 |
return nil, err |
| 1143 |
} |
| 1144 |
if interceptor == nil { |
| 1145 |
return srv.(AlloyDBAdminServer).RestartInstance(ctx, in) |
| 1146 |
} |
| 1147 |
info := &grpc.UnaryServerInfo{ |
| 1148 |
Server: srv, |
| 1149 |
FullMethod: AlloyDBAdmin_RestartInstance_FullMethodName, |
| 1150 |
} |
| 1151 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1152 |
return srv.(AlloyDBAdminServer).RestartInstance(ctx, req.(*RestartInstanceRequest)) |
| 1153 |
} |
| 1154 |
return interceptor(ctx, in, info, handler) |
| 1155 |
} |
| 1156 |
|
| 1157 |
func _AlloyDBAdmin_ExecuteSql_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1158 |
in := new(ExecuteSqlRequest) |
| 1159 |
if err := dec(in); err != nil { |
| 1160 |
return nil, err |
| 1161 |
} |
| 1162 |
if interceptor == nil { |
| 1163 |
return srv.(AlloyDBAdminServer).ExecuteSql(ctx, in) |
| 1164 |
} |
| 1165 |
info := &grpc.UnaryServerInfo{ |
| 1166 |
Server: srv, |
| 1167 |
FullMethod: AlloyDBAdmin_ExecuteSql_FullMethodName, |
| 1168 |
} |
| 1169 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1170 |
return srv.(AlloyDBAdminServer).ExecuteSql(ctx, req.(*ExecuteSqlRequest)) |
| 1171 |
} |
| 1172 |
return interceptor(ctx, in, info, handler) |
| 1173 |
} |
| 1174 |
|
| 1175 |
func _AlloyDBAdmin_ListBackups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1176 |
in := new(ListBackupsRequest) |
| 1177 |
if err := dec(in); err != nil { |
| 1178 |
return nil, err |
| 1179 |
} |
| 1180 |
if interceptor == nil { |
| 1181 |
return srv.(AlloyDBAdminServer).ListBackups(ctx, in) |
| 1182 |
} |
| 1183 |
info := &grpc.UnaryServerInfo{ |
| 1184 |
Server: srv, |
| 1185 |
FullMethod: AlloyDBAdmin_ListBackups_FullMethodName, |
| 1186 |
} |
| 1187 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1188 |
return srv.(AlloyDBAdminServer).ListBackups(ctx, req.(*ListBackupsRequest)) |
| 1189 |
} |
| 1190 |
return interceptor(ctx, in, info, handler) |
| 1191 |
} |
| 1192 |
|
| 1193 |
func _AlloyDBAdmin_GetBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1194 |
in := new(GetBackupRequest) |
| 1195 |
if err := dec(in); err != nil { |
| 1196 |
return nil, err |
| 1197 |
} |
| 1198 |
if interceptor == nil { |
| 1199 |
return srv.(AlloyDBAdminServer).GetBackup(ctx, in) |
| 1200 |
} |
| 1201 |
info := &grpc.UnaryServerInfo{ |
| 1202 |
Server: srv, |
| 1203 |
FullMethod: AlloyDBAdmin_GetBackup_FullMethodName, |
| 1204 |
} |
| 1205 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1206 |
return srv.(AlloyDBAdminServer).GetBackup(ctx, req.(*GetBackupRequest)) |
| 1207 |
} |
| 1208 |
return interceptor(ctx, in, info, handler) |
| 1209 |
} |
| 1210 |
|
| 1211 |
func _AlloyDBAdmin_CreateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1212 |
in := new(CreateBackupRequest) |
| 1213 |
if err := dec(in); err != nil { |
| 1214 |
return nil, err |
| 1215 |
} |
| 1216 |
if interceptor == nil { |
| 1217 |
return srv.(AlloyDBAdminServer).CreateBackup(ctx, in) |
| 1218 |
} |
| 1219 |
info := &grpc.UnaryServerInfo{ |
| 1220 |
Server: srv, |
| 1221 |
FullMethod: AlloyDBAdmin_CreateBackup_FullMethodName, |
| 1222 |
} |
| 1223 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1224 |
return srv.(AlloyDBAdminServer).CreateBackup(ctx, req.(*CreateBackupRequest)) |
| 1225 |
} |
| 1226 |
return interceptor(ctx, in, info, handler) |
| 1227 |
} |
| 1228 |
|
| 1229 |
func _AlloyDBAdmin_UpdateBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1230 |
in := new(UpdateBackupRequest) |
| 1231 |
if err := dec(in); err != nil { |
| 1232 |
return nil, err |
| 1233 |
} |
| 1234 |
if interceptor == nil { |
| 1235 |
return srv.(AlloyDBAdminServer).UpdateBackup(ctx, in) |
| 1236 |
} |
| 1237 |
info := &grpc.UnaryServerInfo{ |
| 1238 |
Server: srv, |
| 1239 |
FullMethod: AlloyDBAdmin_UpdateBackup_FullMethodName, |
| 1240 |
} |
| 1241 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1242 |
return srv.(AlloyDBAdminServer).UpdateBackup(ctx, req.(*UpdateBackupRequest)) |
| 1243 |
} |
| 1244 |
return interceptor(ctx, in, info, handler) |
| 1245 |
} |
| 1246 |
|
| 1247 |
func _AlloyDBAdmin_DeleteBackup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1248 |
in := new(DeleteBackupRequest) |
| 1249 |
if err := dec(in); err != nil { |
| 1250 |
return nil, err |
| 1251 |
} |
| 1252 |
if interceptor == nil { |
| 1253 |
return srv.(AlloyDBAdminServer).DeleteBackup(ctx, in) |
| 1254 |
} |
| 1255 |
info := &grpc.UnaryServerInfo{ |
| 1256 |
Server: srv, |
| 1257 |
FullMethod: AlloyDBAdmin_DeleteBackup_FullMethodName, |
| 1258 |
} |
| 1259 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1260 |
return srv.(AlloyDBAdminServer).DeleteBackup(ctx, req.(*DeleteBackupRequest)) |
| 1261 |
} |
| 1262 |
return interceptor(ctx, in, info, handler) |
| 1263 |
} |
| 1264 |
|
| 1265 |
func _AlloyDBAdmin_ListSupportedDatabaseFlags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1266 |
in := new(ListSupportedDatabaseFlagsRequest) |
| 1267 |
if err := dec(in); err != nil { |
| 1268 |
return nil, err |
| 1269 |
} |
| 1270 |
if interceptor == nil { |
| 1271 |
return srv.(AlloyDBAdminServer).ListSupportedDatabaseFlags(ctx, in) |
| 1272 |
} |
| 1273 |
info := &grpc.UnaryServerInfo{ |
| 1274 |
Server: srv, |
| 1275 |
FullMethod: AlloyDBAdmin_ListSupportedDatabaseFlags_FullMethodName, |
| 1276 |
} |
| 1277 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1278 |
return srv.(AlloyDBAdminServer).ListSupportedDatabaseFlags(ctx, req.(*ListSupportedDatabaseFlagsRequest)) |
| 1279 |
} |
| 1280 |
return interceptor(ctx, in, info, handler) |
| 1281 |
} |
| 1282 |
|
| 1283 |
func _AlloyDBAdmin_GenerateClientCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1284 |
in := new(GenerateClientCertificateRequest) |
| 1285 |
if err := dec(in); err != nil { |
| 1286 |
return nil, err |
| 1287 |
} |
| 1288 |
if interceptor == nil { |
| 1289 |
return srv.(AlloyDBAdminServer).GenerateClientCertificate(ctx, in) |
| 1290 |
} |
| 1291 |
info := &grpc.UnaryServerInfo{ |
| 1292 |
Server: srv, |
| 1293 |
FullMethod: AlloyDBAdmin_GenerateClientCertificate_FullMethodName, |
| 1294 |
} |
| 1295 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1296 |
return srv.(AlloyDBAdminServer).GenerateClientCertificate(ctx, req.(*GenerateClientCertificateRequest)) |
| 1297 |
} |
| 1298 |
return interceptor(ctx, in, info, handler) |
| 1299 |
} |
| 1300 |
|
| 1301 |
func _AlloyDBAdmin_GetConnectionInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1302 |
in := new(GetConnectionInfoRequest) |
| 1303 |
if err := dec(in); err != nil { |
| 1304 |
return nil, err |
| 1305 |
} |
| 1306 |
if interceptor == nil { |
| 1307 |
return srv.(AlloyDBAdminServer).GetConnectionInfo(ctx, in) |
| 1308 |
} |
| 1309 |
info := &grpc.UnaryServerInfo{ |
| 1310 |
Server: srv, |
| 1311 |
FullMethod: AlloyDBAdmin_GetConnectionInfo_FullMethodName, |
| 1312 |
} |
| 1313 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1314 |
return srv.(AlloyDBAdminServer).GetConnectionInfo(ctx, req.(*GetConnectionInfoRequest)) |
| 1315 |
} |
| 1316 |
return interceptor(ctx, in, info, handler) |
| 1317 |
} |
| 1318 |
|
| 1319 |
func _AlloyDBAdmin_ListUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1320 |
in := new(ListUsersRequest) |
| 1321 |
if err := dec(in); err != nil { |
| 1322 |
return nil, err |
| 1323 |
} |
| 1324 |
if interceptor == nil { |
| 1325 |
return srv.(AlloyDBAdminServer).ListUsers(ctx, in) |
| 1326 |
} |
| 1327 |
info := &grpc.UnaryServerInfo{ |
| 1328 |
Server: srv, |
| 1329 |
FullMethod: AlloyDBAdmin_ListUsers_FullMethodName, |
| 1330 |
} |
| 1331 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1332 |
return srv.(AlloyDBAdminServer).ListUsers(ctx, req.(*ListUsersRequest)) |
| 1333 |
} |
| 1334 |
return interceptor(ctx, in, info, handler) |
| 1335 |
} |
| 1336 |
|
| 1337 |
func _AlloyDBAdmin_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1338 |
in := new(GetUserRequest) |
| 1339 |
if err := dec(in); err != nil { |
| 1340 |
return nil, err |
| 1341 |
} |
| 1342 |
if interceptor == nil { |
| 1343 |
return srv.(AlloyDBAdminServer).GetUser(ctx, in) |
| 1344 |
} |
| 1345 |
info := &grpc.UnaryServerInfo{ |
| 1346 |
Server: srv, |
| 1347 |
FullMethod: AlloyDBAdmin_GetUser_FullMethodName, |
| 1348 |
} |
| 1349 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1350 |
return srv.(AlloyDBAdminServer).GetUser(ctx, req.(*GetUserRequest)) |
| 1351 |
} |
| 1352 |
return interceptor(ctx, in, info, handler) |
| 1353 |
} |
| 1354 |
|
| 1355 |
func _AlloyDBAdmin_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1356 |
in := new(CreateUserRequest) |
| 1357 |
if err := dec(in); err != nil { |
| 1358 |
return nil, err |
| 1359 |
} |
| 1360 |
if interceptor == nil { |
| 1361 |
return srv.(AlloyDBAdminServer).CreateUser(ctx, in) |
| 1362 |
} |
| 1363 |
info := &grpc.UnaryServerInfo{ |
| 1364 |
Server: srv, |
| 1365 |
FullMethod: AlloyDBAdmin_CreateUser_FullMethodName, |
| 1366 |
} |
| 1367 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1368 |
return srv.(AlloyDBAdminServer).CreateUser(ctx, req.(*CreateUserRequest)) |
| 1369 |
} |
| 1370 |
return interceptor(ctx, in, info, handler) |
| 1371 |
} |
| 1372 |
|
| 1373 |
func _AlloyDBAdmin_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1374 |
in := new(UpdateUserRequest) |
| 1375 |
if err := dec(in); err != nil { |
| 1376 |
return nil, err |
| 1377 |
} |
| 1378 |
if interceptor == nil { |
| 1379 |
return srv.(AlloyDBAdminServer).UpdateUser(ctx, in) |
| 1380 |
} |
| 1381 |
info := &grpc.UnaryServerInfo{ |
| 1382 |
Server: srv, |
| 1383 |
FullMethod: AlloyDBAdmin_UpdateUser_FullMethodName, |
| 1384 |
} |
| 1385 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1386 |
return srv.(AlloyDBAdminServer).UpdateUser(ctx, req.(*UpdateUserRequest)) |
| 1387 |
} |
| 1388 |
return interceptor(ctx, in, info, handler) |
| 1389 |
} |
| 1390 |
|
| 1391 |
func _AlloyDBAdmin_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1392 |
in := new(DeleteUserRequest) |
| 1393 |
if err := dec(in); err != nil { |
| 1394 |
return nil, err |
| 1395 |
} |
| 1396 |
if interceptor == nil { |
| 1397 |
return srv.(AlloyDBAdminServer).DeleteUser(ctx, in) |
| 1398 |
} |
| 1399 |
info := &grpc.UnaryServerInfo{ |
| 1400 |
Server: srv, |
| 1401 |
FullMethod: AlloyDBAdmin_DeleteUser_FullMethodName, |
| 1402 |
} |
| 1403 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1404 |
return srv.(AlloyDBAdminServer).DeleteUser(ctx, req.(*DeleteUserRequest)) |
| 1405 |
} |
| 1406 |
return interceptor(ctx, in, info, handler) |
| 1407 |
} |
| 1408 |
|
| 1409 |
func _AlloyDBAdmin_ListDatabases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1410 |
in := new(ListDatabasesRequest) |
| 1411 |
if err := dec(in); err != nil { |
| 1412 |
return nil, err |
| 1413 |
} |
| 1414 |
if interceptor == nil { |
| 1415 |
return srv.(AlloyDBAdminServer).ListDatabases(ctx, in) |
| 1416 |
} |
| 1417 |
info := &grpc.UnaryServerInfo{ |
| 1418 |
Server: srv, |
| 1419 |
FullMethod: AlloyDBAdmin_ListDatabases_FullMethodName, |
| 1420 |
} |
| 1421 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1422 |
return srv.(AlloyDBAdminServer).ListDatabases(ctx, req.(*ListDatabasesRequest)) |
| 1423 |
} |
| 1424 |
return interceptor(ctx, in, info, handler) |
| 1425 |
} |
| 1426 |
|
| 1427 |
// AlloyDBAdmin_ServiceDesc is the grpc.ServiceDesc for AlloyDBAdmin service. |
| 1428 |
// It's only intended for direct use with grpc.RegisterService, |
| 1429 |
// and not to be introspected or modified (even as a copy) |
| 1430 |
var AlloyDBAdmin_ServiceDesc = grpc.ServiceDesc{ |
| 1431 |
ServiceName: "google.cloud.alloydb.v1beta.AlloyDBAdmin", |
| 1432 |
HandlerType: (*AlloyDBAdminServer)(nil), |
| 1433 |
Methods: []grpc.MethodDesc{ |
| 1434 |
{ |
| 1435 |
MethodName: "ListClusters", |
| 1436 |
Handler: _AlloyDBAdmin_ListClusters_Handler, |
| 1437 |
}, |
| 1438 |
{ |
| 1439 |
MethodName: "GetCluster", |
| 1440 |
Handler: _AlloyDBAdmin_GetCluster_Handler, |
| 1441 |
}, |
| 1442 |
{ |
| 1443 |
MethodName: "CreateCluster", |
| 1444 |
Handler: _AlloyDBAdmin_CreateCluster_Handler, |
| 1445 |
}, |
| 1446 |
{ |
| 1447 |
MethodName: "UpdateCluster", |
| 1448 |
Handler: _AlloyDBAdmin_UpdateCluster_Handler, |
| 1449 |
}, |
| 1450 |
{ |
| 1451 |
MethodName: "ExportCluster", |
| 1452 |
Handler: _AlloyDBAdmin_ExportCluster_Handler, |
| 1453 |
}, |
| 1454 |
{ |
| 1455 |
MethodName: "ImportCluster", |
| 1456 |
Handler: _AlloyDBAdmin_ImportCluster_Handler, |
| 1457 |
}, |
| 1458 |
{ |
| 1459 |
MethodName: "UpgradeCluster", |
| 1460 |
Handler: _AlloyDBAdmin_UpgradeCluster_Handler, |
| 1461 |
}, |
| 1462 |
{ |
| 1463 |
MethodName: "DeleteCluster", |
| 1464 |
Handler: _AlloyDBAdmin_DeleteCluster_Handler, |
| 1465 |
}, |
| 1466 |
{ |
| 1467 |
MethodName: "PromoteCluster", |
| 1468 |
Handler: _AlloyDBAdmin_PromoteCluster_Handler, |
| 1469 |
}, |
| 1470 |
{ |
| 1471 |
MethodName: "SwitchoverCluster", |
| 1472 |
Handler: _AlloyDBAdmin_SwitchoverCluster_Handler, |
| 1473 |
}, |
| 1474 |
{ |
| 1475 |
MethodName: "RestoreCluster", |
| 1476 |
Handler: _AlloyDBAdmin_RestoreCluster_Handler, |
| 1477 |
}, |
| 1478 |
{ |
| 1479 |
MethodName: "CreateSecondaryCluster", |
| 1480 |
Handler: _AlloyDBAdmin_CreateSecondaryCluster_Handler, |
| 1481 |
}, |
| 1482 |
{ |
| 1483 |
MethodName: "ListInstances", |
| 1484 |
Handler: _AlloyDBAdmin_ListInstances_Handler, |
| 1485 |
}, |
| 1486 |
{ |
| 1487 |
MethodName: "GetInstance", |
| 1488 |
Handler: _AlloyDBAdmin_GetInstance_Handler, |
| 1489 |
}, |
| 1490 |
{ |
| 1491 |
MethodName: "CreateInstance", |
| 1492 |
Handler: _AlloyDBAdmin_CreateInstance_Handler, |
| 1493 |
}, |
| 1494 |
{ |
| 1495 |
MethodName: "CreateSecondaryInstance", |
| 1496 |
Handler: _AlloyDBAdmin_CreateSecondaryInstance_Handler, |
| 1497 |
}, |
| 1498 |
{ |
| 1499 |
MethodName: "BatchCreateInstances", |
| 1500 |
Handler: _AlloyDBAdmin_BatchCreateInstances_Handler, |
| 1501 |
}, |
| 1502 |
{ |
| 1503 |
MethodName: "UpdateInstance", |
| 1504 |
Handler: _AlloyDBAdmin_UpdateInstance_Handler, |
| 1505 |
}, |
| 1506 |
{ |
| 1507 |
MethodName: "DeleteInstance", |
| 1508 |
Handler: _AlloyDBAdmin_DeleteInstance_Handler, |
| 1509 |
}, |
| 1510 |
{ |
| 1511 |
MethodName: "FailoverInstance", |
| 1512 |
Handler: _AlloyDBAdmin_FailoverInstance_Handler, |
| 1513 |
}, |
| 1514 |
{ |
| 1515 |
MethodName: "InjectFault", |
| 1516 |
Handler: _AlloyDBAdmin_InjectFault_Handler, |
| 1517 |
}, |
| 1518 |
{ |
| 1519 |
MethodName: "RestartInstance", |
| 1520 |
Handler: _AlloyDBAdmin_RestartInstance_Handler, |
| 1521 |
}, |
| 1522 |
{ |
| 1523 |
MethodName: "ExecuteSql", |
| 1524 |
Handler: _AlloyDBAdmin_ExecuteSql_Handler, |
| 1525 |
}, |
| 1526 |
{ |
| 1527 |
MethodName: "ListBackups", |
| 1528 |
Handler: _AlloyDBAdmin_ListBackups_Handler, |
| 1529 |
}, |
| 1530 |
{ |
| 1531 |
MethodName: "GetBackup", |
| 1532 |
Handler: _AlloyDBAdmin_GetBackup_Handler, |
| 1533 |
}, |
| 1534 |
{ |
| 1535 |
MethodName: "CreateBackup", |
| 1536 |
Handler: _AlloyDBAdmin_CreateBackup_Handler, |
| 1537 |
}, |
| 1538 |
{ |
| 1539 |
MethodName: "UpdateBackup", |
| 1540 |
Handler: _AlloyDBAdmin_UpdateBackup_Handler, |
| 1541 |
}, |
| 1542 |
{ |
| 1543 |
MethodName: "DeleteBackup", |
| 1544 |
Handler: _AlloyDBAdmin_DeleteBackup_Handler, |
| 1545 |
}, |
| 1546 |
{ |
| 1547 |
MethodName: "ListSupportedDatabaseFlags", |
| 1548 |
Handler: _AlloyDBAdmin_ListSupportedDatabaseFlags_Handler, |
| 1549 |
}, |
| 1550 |
{ |
| 1551 |
MethodName: "GenerateClientCertificate", |
| 1552 |
Handler: _AlloyDBAdmin_GenerateClientCertificate_Handler, |
| 1553 |
}, |
| 1554 |
{ |
| 1555 |
MethodName: "GetConnectionInfo", |
| 1556 |
Handler: _AlloyDBAdmin_GetConnectionInfo_Handler, |
| 1557 |
}, |
| 1558 |
{ |
| 1559 |
MethodName: "ListUsers", |
| 1560 |
Handler: _AlloyDBAdmin_ListUsers_Handler, |
| 1561 |
}, |
| 1562 |
{ |
| 1563 |
MethodName: "GetUser", |
| 1564 |
Handler: _AlloyDBAdmin_GetUser_Handler, |
| 1565 |
}, |
| 1566 |
{ |
| 1567 |
MethodName: "CreateUser", |
| 1568 |
Handler: _AlloyDBAdmin_CreateUser_Handler, |
| 1569 |
}, |
| 1570 |
{ |
| 1571 |
MethodName: "UpdateUser", |
| 1572 |
Handler: _AlloyDBAdmin_UpdateUser_Handler, |
| 1573 |
}, |
| 1574 |
{ |
| 1575 |
MethodName: "DeleteUser", |
| 1576 |
Handler: _AlloyDBAdmin_DeleteUser_Handler, |
| 1577 |
}, |
| 1578 |
{ |
| 1579 |
MethodName: "ListDatabases", |
| 1580 |
Handler: _AlloyDBAdmin_ListDatabases_Handler, |
| 1581 |
}, |
| 1582 |
}, |
| 1583 |
Streams: []grpc.StreamDesc{}, |
| 1584 |
Metadata: "google/cloud/alloydb/v1beta/service.proto", |
| 1585 |
} |