# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/baremetalsolution/v2/baremetalsolution.proto for package 'Google.Cloud.BareMetalSolution.V2'
# 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/baremetalsolution/v2/baremetalsolution_pb'

module Google
  module Cloud
    module BareMetalSolution
      module V2
        module BareMetalSolution
          # Performs management operations on Bare Metal Solution servers.
          #
          # The `baremetalsolution.googleapis.com` service provides management
          # capabilities for Bare Metal Solution servers. To access the API methods, you
          # must assign Bare Metal Solution IAM roles containing the desired permissions
          # to your staff in your Google Cloud project. You must also enable the Bare
          # Metal Solution API. Once enabled, the methods act
          # upon specific servers in your Bare Metal Solution environment.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.baremetalsolution.v2.BareMetalSolution'

            # List servers in a given project and location.
            rpc :ListInstances, ::Google::Cloud::BareMetalSolution::V2::ListInstancesRequest, ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse
            # Get details about a single server.
            rpc :GetInstance, ::Google::Cloud::BareMetalSolution::V2::GetInstanceRequest, ::Google::Cloud::BareMetalSolution::V2::Instance
            # Update details of a single server.
            rpc :UpdateInstance, ::Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest, ::Google::Longrunning::Operation
            # Perform an ungraceful, hard reset on a server. Equivalent to shutting the
            # power off and then turning it back on.
            rpc :ResetInstance, ::Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest, ::Google::Longrunning::Operation
            # Starts a server that was shutdown.
            rpc :StartInstance, ::Google::Cloud::BareMetalSolution::V2::StartInstanceRequest, ::Google::Longrunning::Operation
            # Stop a running server.
            rpc :StopInstance, ::Google::Cloud::BareMetalSolution::V2::StopInstanceRequest, ::Google::Longrunning::Operation
            # Detach LUN from Instance.
            rpc :DetachLun, ::Google::Cloud::BareMetalSolution::V2::DetachLunRequest, ::Google::Longrunning::Operation
            # List storage volumes in a given project and location.
            rpc :ListVolumes, ::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest, ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse
            # Get details of a single storage volume.
            rpc :GetVolume, ::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest, ::Google::Cloud::BareMetalSolution::V2::Volume
            # Update details of a single storage volume.
            rpc :UpdateVolume, ::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest, ::Google::Longrunning::Operation
            # Emergency Volume resize.
            rpc :ResizeVolume, ::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest, ::Google::Longrunning::Operation
            # List network in a given project and location.
            rpc :ListNetworks, ::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest, ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse
            # List all Networks (and used IPs for each Network) in the vendor account
            # associated with the specified project.
            rpc :ListNetworkUsage, ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest, ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse
            # Get details of a single network.
            rpc :GetNetwork, ::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest, ::Google::Cloud::BareMetalSolution::V2::Network
            # Update details of a single network.
            rpc :UpdateNetwork, ::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest, ::Google::Longrunning::Operation
            # Get details of a single storage logical unit number(LUN).
            rpc :GetLun, ::Google::Cloud::BareMetalSolution::V2::GetLunRequest, ::Google::Cloud::BareMetalSolution::V2::Lun
            # List storage volume luns for given storage volume.
            rpc :ListLuns, ::Google::Cloud::BareMetalSolution::V2::ListLunsRequest, ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse
            # Get details of a single NFS share.
            rpc :GetNfsShare, ::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest, ::Google::Cloud::BareMetalSolution::V2::NfsShare
            # List NFS shares.
            rpc :ListNfsShares, ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest, ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse
            # Update details of a single NFS share.
            rpc :UpdateNfsShare, ::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest, ::Google::Longrunning::Operation
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end