# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/alloydb/v1beta/service.proto for package 'Google.Cloud.AlloyDB.V1beta' # Original file comments: # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'grpc' require 'google/cloud/alloydb/v1beta/service_pb' module Google module Cloud module AlloyDB module V1beta module AlloyDBAdmin # Service describing handlers for resources class Service include ::GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.cloud.alloydb.v1beta.AlloyDBAdmin' # Lists Clusters in a given project and location. rpc :ListClusters, ::Google::Cloud::AlloyDB::V1beta::ListClustersRequest, ::Google::Cloud::AlloyDB::V1beta::ListClustersResponse # Gets details of a single Cluster. rpc :GetCluster, ::Google::Cloud::AlloyDB::V1beta::GetClusterRequest, ::Google::Cloud::AlloyDB::V1beta::Cluster # Creates a new Cluster in a given project and location. rpc :CreateCluster, ::Google::Cloud::AlloyDB::V1beta::CreateClusterRequest, ::Google::Longrunning::Operation # Updates the parameters of a single Cluster. rpc :UpdateCluster, ::Google::Cloud::AlloyDB::V1beta::UpdateClusterRequest, ::Google::Longrunning::Operation # Deletes a single Cluster. rpc :DeleteCluster, ::Google::Cloud::AlloyDB::V1beta::DeleteClusterRequest, ::Google::Longrunning::Operation # Promotes a SECONDARY cluster. This turns down replication # from the PRIMARY cluster and promotes a secondary cluster # into its own standalone cluster. # Imperative only. rpc :PromoteCluster, ::Google::Cloud::AlloyDB::V1beta::PromoteClusterRequest, ::Google::Longrunning::Operation # Creates a new Cluster in a given project and location, with a volume # restored from the provided source, either a backup ID or a point-in-time # and a source cluster. rpc :RestoreCluster, ::Google::Cloud::AlloyDB::V1beta::RestoreClusterRequest, ::Google::Longrunning::Operation # Creates a cluster of type SECONDARY in the given location using # the primary cluster as the source. rpc :CreateSecondaryCluster, ::Google::Cloud::AlloyDB::V1beta::CreateSecondaryClusterRequest, ::Google::Longrunning::Operation # Lists Instances in a given project and location. rpc :ListInstances, ::Google::Cloud::AlloyDB::V1beta::ListInstancesRequest, ::Google::Cloud::AlloyDB::V1beta::ListInstancesResponse # Gets details of a single Instance. rpc :GetInstance, ::Google::Cloud::AlloyDB::V1beta::GetInstanceRequest, ::Google::Cloud::AlloyDB::V1beta::Instance # Creates a new Instance in a given project and location. rpc :CreateInstance, ::Google::Cloud::AlloyDB::V1beta::CreateInstanceRequest, ::Google::Longrunning::Operation # Creates a new SECONDARY Instance in a given project and location. rpc :CreateSecondaryInstance, ::Google::Cloud::AlloyDB::V1beta::CreateSecondaryInstanceRequest, ::Google::Longrunning::Operation # Creates new instances under the given project, location and cluster. # There can be only one primary instance in a cluster. If the primary # instance exists in the cluster as well as this request, then API will # throw an error. # The primary instance should exist before any read pool instance is # created. If the primary instance is a part of the request payload, then # the API will take care of creating instances in the correct order. # This method is here to support Google-internal use cases, and is not meant # for external customers to consume. Please do not start relying on it; its # behavior is subject to change without notice. rpc :BatchCreateInstances, ::Google::Cloud::AlloyDB::V1beta::BatchCreateInstancesRequest, ::Google::Longrunning::Operation # Updates the parameters of a single Instance. rpc :UpdateInstance, ::Google::Cloud::AlloyDB::V1beta::UpdateInstanceRequest, ::Google::Longrunning::Operation # Deletes a single Instance. rpc :DeleteInstance, ::Google::Cloud::AlloyDB::V1beta::DeleteInstanceRequest, ::Google::Longrunning::Operation # Forces a Failover for a highly available instance. # Failover promotes the HA standby instance as the new primary. # Imperative only. rpc :FailoverInstance, ::Google::Cloud::AlloyDB::V1beta::FailoverInstanceRequest, ::Google::Longrunning::Operation # Injects fault in an instance. # Imperative only. rpc :InjectFault, ::Google::Cloud::AlloyDB::V1beta::InjectFaultRequest, ::Google::Longrunning::Operation # Restart an Instance in a cluster. # Imperative only. rpc :RestartInstance, ::Google::Cloud::AlloyDB::V1beta::RestartInstanceRequest, ::Google::Longrunning::Operation # Lists Backups in a given project and location. rpc :ListBackups, ::Google::Cloud::AlloyDB::V1beta::ListBackupsRequest, ::Google::Cloud::AlloyDB::V1beta::ListBackupsResponse # Gets details of a single Backup. rpc :GetBackup, ::Google::Cloud::AlloyDB::V1beta::GetBackupRequest, ::Google::Cloud::AlloyDB::V1beta::Backup # Creates a new Backup in a given project and location. rpc :CreateBackup, ::Google::Cloud::AlloyDB::V1beta::CreateBackupRequest, ::Google::Longrunning::Operation # Updates the parameters of a single Backup. rpc :UpdateBackup, ::Google::Cloud::AlloyDB::V1beta::UpdateBackupRequest, ::Google::Longrunning::Operation # Deletes a single Backup. rpc :DeleteBackup, ::Google::Cloud::AlloyDB::V1beta::DeleteBackupRequest, ::Google::Longrunning::Operation # Lists SupportedDatabaseFlags for a given project and location. rpc :ListSupportedDatabaseFlags, ::Google::Cloud::AlloyDB::V1beta::ListSupportedDatabaseFlagsRequest, ::Google::Cloud::AlloyDB::V1beta::ListSupportedDatabaseFlagsResponse # Generate a client certificate signed by a Cluster CA. # The sole purpose of this endpoint is to support AlloyDB connectors and the # Auth Proxy client. The endpoint's behavior is subject to change without # notice, so do not rely on its behavior remaining constant. Future changes # will not break AlloyDB connectors or the Auth Proxy client. rpc :GenerateClientCertificate, ::Google::Cloud::AlloyDB::V1beta::GenerateClientCertificateRequest, ::Google::Cloud::AlloyDB::V1beta::GenerateClientCertificateResponse # Get instance metadata used for a connection. rpc :GetConnectionInfo, ::Google::Cloud::AlloyDB::V1beta::GetConnectionInfoRequest, ::Google::Cloud::AlloyDB::V1beta::ConnectionInfo # Lists Users in a given project and location. rpc :ListUsers, ::Google::Cloud::AlloyDB::V1beta::ListUsersRequest, ::Google::Cloud::AlloyDB::V1beta::ListUsersResponse # Gets details of a single User. rpc :GetUser, ::Google::Cloud::AlloyDB::V1beta::GetUserRequest, ::Google::Cloud::AlloyDB::V1beta::User # Creates a new User in a given project, location, and cluster. rpc :CreateUser, ::Google::Cloud::AlloyDB::V1beta::CreateUserRequest, ::Google::Cloud::AlloyDB::V1beta::User # Updates the parameters of a single User. rpc :UpdateUser, ::Google::Cloud::AlloyDB::V1beta::UpdateUserRequest, ::Google::Cloud::AlloyDB::V1beta::User # Deletes a single User. rpc :DeleteUser, ::Google::Cloud::AlloyDB::V1beta::DeleteUserRequest, ::Google::Protobuf::Empty # Lists Databases in a given project and location. rpc :ListDatabases, ::Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest, ::Google::Cloud::AlloyDB::V1beta::ListDatabasesResponse end Stub = Service.rpc_stub_class end end end end end