# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/workstations/v1beta/workstations.proto for package 'google.cloud.workstations.v1beta'
# Original file comments:
# Copyright 2024 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/workstations/v1beta/workstations_pb'

module Google
  module Cloud
    module Workstations
      module V1beta
        module Workstations
          # Service for interacting with Cloud Workstations.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.workstations.v1beta.Workstations'

            # Returns the requested workstation cluster.
            rpc :GetWorkstationCluster, ::Google::Cloud::Workstations::V1beta::GetWorkstationClusterRequest, ::Google::Cloud::Workstations::V1beta::WorkstationCluster
            # Returns all workstation clusters in the specified location.
            rpc :ListWorkstationClusters, ::Google::Cloud::Workstations::V1beta::ListWorkstationClustersRequest, ::Google::Cloud::Workstations::V1beta::ListWorkstationClustersResponse
            # Creates a new workstation cluster.
            rpc :CreateWorkstationCluster, ::Google::Cloud::Workstations::V1beta::CreateWorkstationClusterRequest, ::Google::Longrunning::Operation
            # Updates an existing workstation cluster.
            rpc :UpdateWorkstationCluster, ::Google::Cloud::Workstations::V1beta::UpdateWorkstationClusterRequest, ::Google::Longrunning::Operation
            # Deletes the specified workstation cluster.
            rpc :DeleteWorkstationCluster, ::Google::Cloud::Workstations::V1beta::DeleteWorkstationClusterRequest, ::Google::Longrunning::Operation
            # Returns the requested workstation configuration.
            rpc :GetWorkstationConfig, ::Google::Cloud::Workstations::V1beta::GetWorkstationConfigRequest, ::Google::Cloud::Workstations::V1beta::WorkstationConfig
            # Returns all workstation configurations in the specified cluster.
            rpc :ListWorkstationConfigs, ::Google::Cloud::Workstations::V1beta::ListWorkstationConfigsRequest, ::Google::Cloud::Workstations::V1beta::ListWorkstationConfigsResponse
            # Returns all workstation configurations in the specified cluster on which
            # the caller has the "workstations.workstation.create" permission.
            rpc :ListUsableWorkstationConfigs, ::Google::Cloud::Workstations::V1beta::ListUsableWorkstationConfigsRequest, ::Google::Cloud::Workstations::V1beta::ListUsableWorkstationConfigsResponse
            # Creates a new workstation configuration.
            rpc :CreateWorkstationConfig, ::Google::Cloud::Workstations::V1beta::CreateWorkstationConfigRequest, ::Google::Longrunning::Operation
            # Updates an existing workstation configuration.
            rpc :UpdateWorkstationConfig, ::Google::Cloud::Workstations::V1beta::UpdateWorkstationConfigRequest, ::Google::Longrunning::Operation
            # Deletes the specified workstation configuration.
            rpc :DeleteWorkstationConfig, ::Google::Cloud::Workstations::V1beta::DeleteWorkstationConfigRequest, ::Google::Longrunning::Operation
            # Returns the requested workstation.
            rpc :GetWorkstation, ::Google::Cloud::Workstations::V1beta::GetWorkstationRequest, ::Google::Cloud::Workstations::V1beta::Workstation
            # Returns all Workstations using the specified workstation configuration.
            rpc :ListWorkstations, ::Google::Cloud::Workstations::V1beta::ListWorkstationsRequest, ::Google::Cloud::Workstations::V1beta::ListWorkstationsResponse
            # Returns all workstations using the specified workstation configuration
            # on which the caller has the "workstations.workstations.use" permission.
            rpc :ListUsableWorkstations, ::Google::Cloud::Workstations::V1beta::ListUsableWorkstationsRequest, ::Google::Cloud::Workstations::V1beta::ListUsableWorkstationsResponse
            # Creates a new workstation.
            rpc :CreateWorkstation, ::Google::Cloud::Workstations::V1beta::CreateWorkstationRequest, ::Google::Longrunning::Operation
            # Updates an existing workstation.
            rpc :UpdateWorkstation, ::Google::Cloud::Workstations::V1beta::UpdateWorkstationRequest, ::Google::Longrunning::Operation
            # Deletes the specified workstation.
            rpc :DeleteWorkstation, ::Google::Cloud::Workstations::V1beta::DeleteWorkstationRequest, ::Google::Longrunning::Operation
            # Starts running a workstation so that users can connect to it.
            rpc :StartWorkstation, ::Google::Cloud::Workstations::V1beta::StartWorkstationRequest, ::Google::Longrunning::Operation
            # Stops running a workstation, reducing costs.
            rpc :StopWorkstation, ::Google::Cloud::Workstations::V1beta::StopWorkstationRequest, ::Google::Longrunning::Operation
            # Returns a short-lived credential that can be used to send authenticated and
            # authorized traffic to a workstation.
            rpc :GenerateAccessToken, ::Google::Cloud::Workstations::V1beta::GenerateAccessTokenRequest, ::Google::Cloud::Workstations::V1beta::GenerateAccessTokenResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
