# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/support/v2/case_service.proto for package 'Google.Cloud.Support.V2' # 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/support/v2/case_service_pb' module Google module Cloud module Support module V2 module CaseService # A service to manage Google Cloud support cases. class Service include ::GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.cloud.support.v2.CaseService' # Retrieve the specified case. rpc :GetCase, ::Google::Cloud::Support::V2::GetCaseRequest, ::Google::Cloud::Support::V2::Case # Retrieve all cases under the specified parent. # # Note: Listing cases under an Organization returns only the cases directly # parented by that organization. To retrieve all cases under an organization, # including cases parented by projects under that organization, use # `cases.search`. rpc :ListCases, ::Google::Cloud::Support::V2::ListCasesRequest, ::Google::Cloud::Support::V2::ListCasesResponse # Search cases using the specified query. rpc :SearchCases, ::Google::Cloud::Support::V2::SearchCasesRequest, ::Google::Cloud::Support::V2::SearchCasesResponse # Create a new case and associate it with the given Google Cloud Resource. # The case object must have the following fields set: `display_name`, # `description`, `classification`, and `priority`. rpc :CreateCase, ::Google::Cloud::Support::V2::CreateCaseRequest, ::Google::Cloud::Support::V2::Case # Update the specified case. Only a subset of fields can be updated. rpc :UpdateCase, ::Google::Cloud::Support::V2::UpdateCaseRequest, ::Google::Cloud::Support::V2::Case # Escalate a case. Escalating a case will initiate the Google Cloud Support # escalation management process. # # This operation is only available to certain Customer Care tiers. Go to # https://cloud.google.com/support and look for 'Technical support # escalations' in the feature list to find out which tiers are able to # perform escalations. rpc :EscalateCase, ::Google::Cloud::Support::V2::EscalateCaseRequest, ::Google::Cloud::Support::V2::Case # Close the specified case. rpc :CloseCase, ::Google::Cloud::Support::V2::CloseCaseRequest, ::Google::Cloud::Support::V2::Case # Retrieve valid classifications to be used when creating a support case. # The classications are hierarchical, with each classification containing # all levels of the hierarchy, separated by " > ". For example "Technical # Issue > Compute > Compute Engine". rpc :SearchCaseClassifications, ::Google::Cloud::Support::V2::SearchCaseClassificationsRequest, ::Google::Cloud::Support::V2::SearchCaseClassificationsResponse end Stub = Service.rpc_stub_class end end end end end