# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/dataproc/v1/clusters.proto for package 'google.cloud.dataproc.v1' # Original file comments: # Copyright 2019 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/dataproc/v1/clusters_pb' module Google module Cloud module Dataproc module V1 module ClusterController # The ClusterControllerService provides methods to manage clusters # of Compute Engine instances. class Service include GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.cloud.dataproc.v1.ClusterController' # Creates a cluster in a project. rpc :CreateCluster, CreateClusterRequest, Google::Longrunning::Operation # Updates a cluster in a project. rpc :UpdateCluster, UpdateClusterRequest, Google::Longrunning::Operation # Deletes a cluster in a project. rpc :DeleteCluster, DeleteClusterRequest, Google::Longrunning::Operation # Gets the resource representation for a cluster in a project. rpc :GetCluster, GetClusterRequest, Cluster # Lists all regions/\\{region}/clusters in a project. rpc :ListClusters, ListClustersRequest, ListClustersResponse # Gets cluster diagnostic information. # After the operation completes, the Operation.response field # contains `DiagnoseClusterOutputLocation`. rpc :DiagnoseCluster, DiagnoseClusterRequest, Google::Longrunning::Operation end Stub = Service.rpc_stub_class end end end end end