A service to manage Google Cloud support cases.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
CaseServiceClient(CaseServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
CaseServiceClient const &
|
CaseServiceClient(CaseServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
CaseServiceClient &&
|
CaseServiceClient(std::shared_ptr< CaseServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< CaseServiceConnection >
|
opts |
Options
|
Operators
operator=(CaseServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
CaseServiceClient const &
|
Returns | |
---|---|
Type | Description |
CaseServiceClient & |
operator=(CaseServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
CaseServiceClient &&
|
Returns | |
---|---|
Type | Description |
CaseServiceClient & |
Functions
GetCase(std::string const &, Options)
Retrieve the specified case.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The fully qualified name of a case to be retrieved. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetCase(google::cloud::support::v2::GetCaseRequest const &, Options)
Retrieve the specified case.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::support::v2::GetCaseRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListCases(std::string const &, Options)
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 | |
---|---|
Name | Description |
parent |
std::string const &
Required. The fully qualified name of parent resource to list cases under. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::support::v2::Case > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListCases(google::cloud::support::v2::ListCasesRequest, Options)
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 | |
---|---|
Name | Description |
request |
google::cloud::support::v2::ListCasesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::support::v2::Case > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
SearchCases(google::cloud::support::v2::SearchCasesRequest, Options)
Search cases using the specified query.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::support::v2::SearchCasesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::support::v2::Case > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateCase(std::string const &, google::cloud::support::v2::Case const &, Options)
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 | |
---|---|
Name | Description |
parent |
std::string const &
Required. The name of the Google Cloud Resource under which the case should be created. |
case_ |
google::cloud::support::v2::Case const &
Required. The case to be created. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateCase(google::cloud::support::v2::CreateCaseRequest const &, Options)
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 | |
---|---|
Name | Description |
request |
google::cloud::support::v2::CreateCaseRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateCase(google::cloud::support::v2::Case const &, google::protobuf::FieldMask const &, Options)
Update the specified case.
Only a subset of fields can be updated.
Parameters | |
---|---|
Name | Description |
case_ |
google::cloud::support::v2::Case const &
Required. The case object to update. |
update_mask |
google::protobuf::FieldMask const &
A list of attributes of the case object that should be updated as part of this request. Supported values are |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateCase(google::cloud::support::v2::UpdateCaseRequest const &, Options)
Update the specified case.
Only a subset of fields can be updated.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::support::v2::UpdateCaseRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
EscalateCase(google::cloud::support::v2::EscalateCaseRequest const &, Options)
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 | |
---|---|
Name | Description |
request |
google::cloud::support::v2::EscalateCaseRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CloseCase(google::cloud::support::v2::CloseCaseRequest const &, Options)
Close the specified case.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::support::v2::CloseCaseRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::support::v2::Case > |
the result of the RPC. The response message type (google.cloud.support.v2.Case) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
SearchCaseClassifications(google::cloud::support::v2::SearchCaseClassificationsRequest, Options)
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 | |
---|---|
Name | Description |
request |
google::cloud::support::v2::SearchCaseClassificationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::support::v2::CaseClassification > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |