Google Cloud Support v2 API - Class CaseServiceClientImpl (1.0.0)

public sealed class CaseServiceClientImpl : CaseServiceClient

Reference documentation and code samples for the Google Cloud Support v2 API class CaseServiceClientImpl.

CaseService client wrapper implementation, for convenient use.

Inheritance

object > CaseServiceClient > CaseServiceClientImpl

Namespace

Google.Cloud.Support.V2

Assembly

Google.Cloud.Support.V2.dll

Remarks

A service to manage Google Cloud support cases.

Constructors

CaseServiceClientImpl(CaseServiceClient, CaseServiceSettings, ILogger)

public CaseServiceClientImpl(CaseService.CaseServiceClient grpcClient, CaseServiceSettings settings, ILogger logger)

Constructs a client wrapper for the CaseService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientCaseServiceCaseServiceClient

The underlying gRPC client.

settingsCaseServiceSettings

The base CaseServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CaseService.CaseServiceClient GrpcClient { get; }

The underlying gRPC CaseService client

Property Value
TypeDescription
CaseServiceCaseServiceClient
Overrides

Methods

CloseCase(CloseCaseRequest, CallSettings)

public override Case CloseCase(CloseCaseRequest request, CallSettings callSettings = null)

Close the specified case.

Parameters
NameDescription
requestCloseCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Case

The RPC response.

Overrides

CloseCaseAsync(CloseCaseRequest, CallSettings)

public override Task<Case> CloseCaseAsync(CloseCaseRequest request, CallSettings callSettings = null)

Close the specified case.

Parameters
NameDescription
requestCloseCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCase

A Task containing the RPC response.

Overrides

CreateCase(CreateCaseRequest, CallSettings)

public override Case CreateCase(CreateCaseRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestCreateCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Case

The RPC response.

Overrides

CreateCaseAsync(CreateCaseRequest, CallSettings)

public override Task<Case> CreateCaseAsync(CreateCaseRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestCreateCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCase

A Task containing the RPC response.

Overrides

EscalateCase(EscalateCaseRequest, CallSettings)

public override Case EscalateCase(EscalateCaseRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestEscalateCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Case

The RPC response.

Overrides

EscalateCaseAsync(EscalateCaseRequest, CallSettings)

public override Task<Case> EscalateCaseAsync(EscalateCaseRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestEscalateCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCase

A Task containing the RPC response.

Overrides

GetCase(GetCaseRequest, CallSettings)

public override Case GetCase(GetCaseRequest request, CallSettings callSettings = null)

Retrieve the specified case.

Parameters
NameDescription
requestGetCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Case

The RPC response.

Overrides

GetCaseAsync(GetCaseRequest, CallSettings)

public override Task<Case> GetCaseAsync(GetCaseRequest request, CallSettings callSettings = null)

Retrieve the specified case.

Parameters
NameDescription
requestGetCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCase

A Task containing the RPC response.

Overrides

ListCases(ListCasesRequest, CallSettings)

public override PagedEnumerable<ListCasesResponse, Case> ListCases(ListCasesRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestListCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListCasesResponseCase

A pageable sequence of Case resources.

Overrides

ListCasesAsync(ListCasesRequest, CallSettings)

public override PagedAsyncEnumerable<ListCasesResponse, Case> ListCasesAsync(ListCasesRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestListCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCasesResponseCase

A pageable asynchronous sequence of Case resources.

Overrides

SearchCaseClassifications(SearchCaseClassificationsRequest, CallSettings)

public override PagedEnumerable<SearchCaseClassificationsResponse, CaseClassification> SearchCaseClassifications(SearchCaseClassificationsRequest request, CallSettings callSettings = null)

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".

Parameters
NameDescription
requestSearchCaseClassificationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableSearchCaseClassificationsResponseCaseClassification

A pageable sequence of CaseClassification resources.

Overrides

SearchCaseClassificationsAsync(SearchCaseClassificationsRequest, CallSettings)

public override PagedAsyncEnumerable<SearchCaseClassificationsResponse, CaseClassification> SearchCaseClassificationsAsync(SearchCaseClassificationsRequest request, CallSettings callSettings = null)

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".

Parameters
NameDescription
requestSearchCaseClassificationsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableSearchCaseClassificationsResponseCaseClassification

A pageable asynchronous sequence of CaseClassification resources.

Overrides

SearchCases(SearchCasesRequest, CallSettings)

public override PagedEnumerable<SearchCasesResponse, Case> SearchCases(SearchCasesRequest request, CallSettings callSettings = null)

Search cases using the specified query.

Parameters
NameDescription
requestSearchCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableSearchCasesResponseCase

A pageable sequence of Case resources.

Overrides

SearchCasesAsync(SearchCasesRequest, CallSettings)

public override PagedAsyncEnumerable<SearchCasesResponse, Case> SearchCasesAsync(SearchCasesRequest request, CallSettings callSettings = null)

Search cases using the specified query.

Parameters
NameDescription
requestSearchCasesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableSearchCasesResponseCase

A pageable asynchronous sequence of Case resources.

Overrides

UpdateCase(UpdateCaseRequest, CallSettings)

public override Case UpdateCase(UpdateCaseRequest request, CallSettings callSettings = null)

Update the specified case. Only a subset of fields can be updated.

Parameters
NameDescription
requestUpdateCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Case

The RPC response.

Overrides

UpdateCaseAsync(UpdateCaseRequest, CallSettings)

public override Task<Case> UpdateCaseAsync(UpdateCaseRequest request, CallSettings callSettings = null)

Update the specified case. Only a subset of fields can be updated.

Parameters
NameDescription
requestUpdateCaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskCase

A Task containing the RPC response.

Overrides