# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/cloudcontrolspartner/v1/core.proto for package 'Google.Cloud.CloudControlsPartner.V1'
# Original file comments:
# Copyright 2023 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/cloudcontrolspartner/v1/core_pb'

module Google
  module Cloud
    module CloudControlsPartner
      module V1
        module CloudControlsPartnerCore
          # 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.cloudcontrolspartner.v1.CloudControlsPartnerCore'

            # Gets details of a single workload
            rpc :GetWorkload, ::Google::Cloud::CloudControlsPartner::V1::GetWorkloadRequest, ::Google::Cloud::CloudControlsPartner::V1::Workload
            # Lists customer workloads for a given customer org id
            rpc :ListWorkloads, ::Google::Cloud::CloudControlsPartner::V1::ListWorkloadsRequest, ::Google::Cloud::CloudControlsPartner::V1::ListWorkloadsResponse
            # Gets details of a single customer
            rpc :GetCustomer, ::Google::Cloud::CloudControlsPartner::V1::GetCustomerRequest, ::Google::Cloud::CloudControlsPartner::V1::Customer
            # Lists customers of a partner identified by its Google Cloud organization ID
            rpc :ListCustomers, ::Google::Cloud::CloudControlsPartner::V1::ListCustomersRequest, ::Google::Cloud::CloudControlsPartner::V1::ListCustomersResponse
            # Gets the EKM connections associated with a workload
            rpc :GetEkmConnections, ::Google::Cloud::CloudControlsPartner::V1::GetEkmConnectionsRequest, ::Google::Cloud::CloudControlsPartner::V1::EkmConnections
            # Gets the partner permissions granted for a workload
            rpc :GetPartnerPermissions, ::Google::Cloud::CloudControlsPartner::V1::GetPartnerPermissionsRequest, ::Google::Cloud::CloudControlsPartner::V1::PartnerPermissions
            # Deprecated: Only returns access approval requests directly associated with
            # an assured workload folder.
            rpc :ListAccessApprovalRequests, ::Google::Cloud::CloudControlsPartner::V1::ListAccessApprovalRequestsRequest, ::Google::Cloud::CloudControlsPartner::V1::ListAccessApprovalRequestsResponse
            # Get details of a Partner.
            rpc :GetPartner, ::Google::Cloud::CloudControlsPartner::V1::GetPartnerRequest, ::Google::Cloud::CloudControlsPartner::V1::Partner
            # Creates a new customer.
            rpc :CreateCustomer, ::Google::Cloud::CloudControlsPartner::V1::CreateCustomerRequest, ::Google::Cloud::CloudControlsPartner::V1::Customer
            # Update details of a single customer
            rpc :UpdateCustomer, ::Google::Cloud::CloudControlsPartner::V1::UpdateCustomerRequest, ::Google::Cloud::CloudControlsPartner::V1::Customer
            # Delete details of a single customer
            rpc :DeleteCustomer, ::Google::Cloud::CloudControlsPartner::V1::DeleteCustomerRequest, ::Google::Protobuf::Empty
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
