Class CaseServiceClient (2.14.0)

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
NameDescription
CaseServiceClient const &

CaseServiceClient(CaseServiceClient &&)

Copy and move support

Parameter
NameDescription
CaseServiceClient &&

CaseServiceClient(std::shared_ptr< CaseServiceConnection >, Options)

Parameters
NameDescription
connection std::shared_ptr< CaseServiceConnection >
opts Options

Operators

operator=(CaseServiceClient const &)

Copy and move support

Parameter
NameDescription
CaseServiceClient const &
Returns
TypeDescription
CaseServiceClient &

operator=(CaseServiceClient &&)

Copy and move support

Parameter
NameDescription
CaseServiceClient &&
Returns
TypeDescription
CaseServiceClient &

Functions

GetCase(std::string const &, Options)

Retrieve the specified case.

Parameters
NameDescription
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
TypeDescription
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 StatusOr contains the error details.

GetCase(google::cloud::support::v2::GetCaseRequest const &, Options)

Retrieve the specified case.

Parameters
NameDescription
request google::cloud::support::v2::GetCaseRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.GetCaseRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 StatusOr contains the error details.

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
NameDescription
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
TypeDescription
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 begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.support.v2.Case, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

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
NameDescription
request google::cloud::support::v2::ListCasesRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.ListCasesRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.support.v2.Case, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

SearchCases(google::cloud::support::v2::SearchCasesRequest, Options)

Search cases using the specified query.

Parameters
NameDescription
request google::cloud::support::v2::SearchCasesRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.SearchCasesRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.support.v2.Case, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

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
NameDescription
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
TypeDescription
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 StatusOr contains the error details.

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
NameDescription
request google::cloud::support::v2::CreateCaseRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.CreateCaseRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 StatusOr contains the error details.

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
NameDescription
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 priority, display_name, and subscriber_email_addresses. If no fields are specified, all supported fields are updated.
WARNING: If you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for subscriber_email_addresses, then subscriber_email_addresses is updated to empty.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 StatusOr contains the error details.

UpdateCase(google::cloud::support::v2::UpdateCaseRequest const &, Options)

Update the specified case.

Only a subset of fields can be updated.

Parameters
NameDescription
request google::cloud::support::v2::UpdateCaseRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.UpdateCaseRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 StatusOr contains the error details.

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
NameDescription
request google::cloud::support::v2::EscalateCaseRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.EscalateCaseRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 StatusOr contains the error details.

CloseCase(google::cloud::support::v2::CloseCaseRequest const &, Options)

Close the specified case.

Parameters
NameDescription
request google::cloud::support::v2::CloseCaseRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.CloseCaseRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 StatusOr contains the error details.

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
NameDescription
request google::cloud::support::v2::SearchCaseClassificationsRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.support.v2.SearchCaseClassificationsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
TypeDescription
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 begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.support.v2.CaseClassification, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.