Class ObservabilityClient (3.13.0-rc)

Service describing handlers for resources.

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

ObservabilityClient(ObservabilityClient const &)

Copy and move support

Parameter
Name Description
ObservabilityClient const &

ObservabilityClient(ObservabilityClient &&)

Copy and move support

Parameter
Name Description
ObservabilityClient &&

ObservabilityClient(std::shared_ptr< ObservabilityConnection >, Options)

Parameters
Name Description
connection std::shared_ptr< ObservabilityConnection >
opts Options

Operators

operator=(ObservabilityClient const &)

Copy and move support

Parameter
Name Description
ObservabilityClient const &
Returns
Type Description
ObservabilityClient &

operator=(ObservabilityClient &&)

Copy and move support

Parameter
Name Description
ObservabilityClient &&
Returns
Type Description
ObservabilityClient &

Functions

GetScope(std::string const &, Options)

Gets details of a single Scope.

Parameters
Name Description
name std::string const &

Required. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must be set to _Default.

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::Scope >

the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetScope(google::cloud::observability::v1::GetScopeRequest const &, Options)

Gets details of a single Scope.

Parameters
Name Description
request google::cloud::observability::v1::GetScopeRequest 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.observability.v1.GetScopeRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::Scope >

the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateScope(google::cloud::observability::v1::Scope const &, google::protobuf::FieldMask const &, Options)

Updates the parameters of a single Scope.

Parameters
Name Description
scope google::cloud::observability::v1::Scope const &

Required. The resource being updated.

update_mask google::protobuf::FieldMask const &

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::Scope >

the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateScope(google::cloud::observability::v1::UpdateScopeRequest const &, Options)

Updates the parameters of a single Scope.

Parameters
Name Description
request google::cloud::observability::v1::UpdateScopeRequest 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.observability.v1.UpdateScopeRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::Scope >

the result of the RPC. The response message type (google.cloud.observability.v1.Scope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetBucket(std::string const &, Options)

Get bucket resource.

Parameters
Name Description
name std::string const &

Required. Name of the bucket to retrieve. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::Bucket >

the result of the RPC. The response message type (google.cloud.observability.v1.Bucket) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetBucket(google::cloud::observability::v1::GetBucketRequest const &, Options)

Get bucket resource.

Parameters
Name Description
request google::cloud::observability::v1::GetBucketRequest 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.observability.v1.GetBucketRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::Bucket >

the result of the RPC. The response message type (google.cloud.observability.v1.Bucket) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListBuckets(std::string const &, Options)

List buckets of a project in a particular location.

Parameters
Name Description
parent std::string const &

Required. The parent, which owns this collection of buckets. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]

opts Options

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

Returns
Type Description
StreamRange< google::cloud::observability::v1::Bucket >

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.observability.v1.Bucket, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListBuckets(google::cloud::observability::v1::ListBucketsRequest, Options)

List buckets of a project in a particular location.

Parameters
Name Description
request google::cloud::observability::v1::ListBucketsRequest

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.observability.v1.ListBucketsRequest. 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
Type Description
StreamRange< google::cloud::observability::v1::Bucket >

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.observability.v1.Bucket, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateBucket(std::string const &, google::cloud::observability::v1::Bucket const &, std::string const &, Options)

Create a new bucket.

Parameters
Name Description
parent std::string const &

Required. Name of the project and location for the bucket. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]

bucket google::cloud::observability::v1::Bucket const &

Required. Bucket to create.

bucket_id std::string const &

Required. Id of the bucket to create.

opts Options

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

Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Bucket > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Bucket proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateBucket(NoAwaitTag, std::string const &, google::cloud::observability::v1::Bucket const &, std::string const &, Options)

Create a new bucket.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
bucket google::cloud::observability::v1::Bucket const &
bucket_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateBucket(google::cloud::observability::v1::CreateBucketRequest const &, Options)

Create a new bucket.

Parameters
Name Description
request google::cloud::observability::v1::CreateBucketRequest 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.observability.v1.CreateBucketRequest. 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
Type Description
future< StatusOr< google::cloud::observability::v1::Bucket > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Bucket proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateBucket(NoAwaitTag, google::cloud::observability::v1::CreateBucketRequest const &, Options)

Create a new bucket.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::observability::v1::CreateBucketRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateBucket(google::longrunning::Operation const &, Options)

Create a new bucket.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Bucket > >

UpdateBucket(google::cloud::observability::v1::Bucket const &, google::protobuf::FieldMask const &, Options)

Update a bucket.

Parameters
Name Description
bucket google::cloud::observability::v1::Bucket const &

Required. The bucket to update.
The name field of bucket identifies the resource to update.

update_mask google::protobuf::FieldMask const &

Optional. The list of fields to update.

opts Options

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

Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Bucket > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Bucket proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateBucket(NoAwaitTag, google::cloud::observability::v1::Bucket const &, google::protobuf::FieldMask const &, Options)

Update a bucket.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
bucket google::cloud::observability::v1::Bucket const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateBucket(google::cloud::observability::v1::UpdateBucketRequest const &, Options)

Update a bucket.

Parameters
Name Description
request google::cloud::observability::v1::UpdateBucketRequest 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.observability.v1.UpdateBucketRequest. 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
Type Description
future< StatusOr< google::cloud::observability::v1::Bucket > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Bucket proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateBucket(NoAwaitTag, google::cloud::observability::v1::UpdateBucketRequest const &, Options)

Update a bucket.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::observability::v1::UpdateBucketRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateBucket(google::longrunning::Operation const &, Options)

Update a bucket.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Bucket > >

GetDataset(std::string const &, Options)

Get a dataset.

Parameters
Name Description
name std::string const &

Required. Name of the dataset to retrieve. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::Dataset >

the result of the RPC. The response message type (google.cloud.observability.v1.Dataset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetDataset(google::cloud::observability::v1::GetDatasetRequest const &, Options)

Get a dataset.

Parameters
Name Description
request google::cloud::observability::v1::GetDatasetRequest 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.observability.v1.GetDatasetRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::Dataset >

the result of the RPC. The response message type (google.cloud.observability.v1.Dataset) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListDatasets(std::string const &, Options)

List datasets of a bucket.

Parameters
Name Description
parent std::string const &

Required. The parent bucket that owns this collection of datasets. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]

opts Options

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

Returns
Type Description
StreamRange< google::cloud::observability::v1::Dataset >

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.observability.v1.Dataset, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListDatasets(google::cloud::observability::v1::ListDatasetsRequest, Options)

List datasets of a bucket.

Parameters
Name Description
request google::cloud::observability::v1::ListDatasetsRequest

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.observability.v1.ListDatasetsRequest. 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
Type Description
StreamRange< google::cloud::observability::v1::Dataset >

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.observability.v1.Dataset, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

GetView(std::string const &, Options)

Get a view.

Parameters
Name Description
name std::string const &

Required. Name of the view to retrieve. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID]

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::View >

the result of the RPC. The response message type (google.cloud.observability.v1.View) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetView(google::cloud::observability::v1::GetViewRequest const &, Options)

Get a view.

Parameters
Name Description
request google::cloud::observability::v1::GetViewRequest 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.observability.v1.GetViewRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::View >

the result of the RPC. The response message type (google.cloud.observability.v1.View) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListViews(std::string const &, Options)

List views of a dataset.

Parameters
Name Description
parent std::string const &

Required. Dataset whose views are to be listed. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

opts Options

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

Returns
Type Description
StreamRange< google::cloud::observability::v1::View >

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.observability.v1.View, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListViews(google::cloud::observability::v1::ListViewsRequest, Options)

List views of a dataset.

Parameters
Name Description
request google::cloud::observability::v1::ListViewsRequest

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.observability.v1.ListViewsRequest. 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
Type Description
StreamRange< google::cloud::observability::v1::View >

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.observability.v1.View, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

GetLink(std::string const &, Options)

Get a link.

Parameters
Name Description
name std::string const &

Required. Name of the link to retrieve. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::Link >

the result of the RPC. The response message type (google.cloud.observability.v1.Link) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetLink(google::cloud::observability::v1::GetLinkRequest const &, Options)

Get a link.

Parameters
Name Description
request google::cloud::observability::v1::GetLinkRequest 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.observability.v1.GetLinkRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::Link >

the result of the RPC. The response message type (google.cloud.observability.v1.Link) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListLinks(std::string const &, Options)

List links of a dataset.

Parameters
Name Description
parent std::string const &

Required. The parent dataset that owns this collection of links. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

opts Options

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

Returns
Type Description
StreamRange< google::cloud::observability::v1::Link >

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.observability.v1.Link, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListLinks(google::cloud::observability::v1::ListLinksRequest, Options)

List links of a dataset.

Parameters
Name Description
request google::cloud::observability::v1::ListLinksRequest

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.observability.v1.ListLinksRequest. 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
Type Description
StreamRange< google::cloud::observability::v1::Link >

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.observability.v1.Link, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateLink(std::string const &, google::cloud::observability::v1::Link const &, std::string const &, Options)

Create a new link.

Parameters
Name Description
parent std::string const &

Required. Name of the containing dataset for this link. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

link google::cloud::observability::v1::Link const &

Required. Link to create.

link_id std::string const &

Required. Id of the link to create.

opts Options

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

Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Link > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Link proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateLink(NoAwaitTag, std::string const &, google::cloud::observability::v1::Link const &, std::string const &, Options)

Create a new link.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
link google::cloud::observability::v1::Link const &
link_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateLink(google::cloud::observability::v1::CreateLinkRequest const &, Options)

Create a new link.

Parameters
Name Description
request google::cloud::observability::v1::CreateLinkRequest 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.observability.v1.CreateLinkRequest. 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
Type Description
future< StatusOr< google::cloud::observability::v1::Link > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Link proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateLink(NoAwaitTag, google::cloud::observability::v1::CreateLinkRequest const &, Options)

Create a new link.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::observability::v1::CreateLinkRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateLink(google::longrunning::Operation const &, Options)

Create a new link.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Link > >

UpdateLink(google::cloud::observability::v1::Link const &, google::protobuf::FieldMask const &, Options)

Update a link.

Parameters
Name Description
link google::cloud::observability::v1::Link const &

Required. Link to update.
The name field of link identifies the resource to update.

update_mask google::protobuf::FieldMask const &

Optional. The list of fields to update.

opts Options

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

Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Link > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Link proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateLink(NoAwaitTag, google::cloud::observability::v1::Link const &, google::protobuf::FieldMask const &, Options)

Update a link.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
link google::cloud::observability::v1::Link const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateLink(google::cloud::observability::v1::UpdateLinkRequest const &, Options)

Update a link.

Parameters
Name Description
request google::cloud::observability::v1::UpdateLinkRequest 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.observability.v1.UpdateLinkRequest. 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
Type Description
future< StatusOr< google::cloud::observability::v1::Link > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Link proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateLink(NoAwaitTag, google::cloud::observability::v1::UpdateLinkRequest const &, Options)

Update a link.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::observability::v1::UpdateLinkRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateLink(google::longrunning::Operation const &, Options)

Update a link.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Link > >

DeleteLink(std::string const &, Options)

Delete a link.

Parameters
Name Description
name std::string const &

Required. Name of the link to delete. The format is:
projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]

opts Options

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

Returns
Type Description
future< StatusOr< google::cloud::observability::v1::OperationMetadata > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.OperationMetadata proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteLink(NoAwaitTag, std::string const &, Options)

Delete a link.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteLink(google::cloud::observability::v1::DeleteLinkRequest const &, Options)

Delete a link.

Parameters
Name Description
request google::cloud::observability::v1::DeleteLinkRequest 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.observability.v1.DeleteLinkRequest. 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
Type Description
future< StatusOr< google::cloud::observability::v1::OperationMetadata > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.OperationMetadata proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteLink(NoAwaitTag, google::cloud::observability::v1::DeleteLinkRequest const &, Options)

Delete a link.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::observability::v1::DeleteLinkRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteLink(google::longrunning::Operation const &, Options)

Delete a link.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::observability::v1::OperationMetadata > >

GetTraceScope(std::string const &, Options)

Get TraceScope resource.

Parameters
Name Description
name std::string const &

Required. The resource name of the trace scope:
projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID]
For example:
projects/my-project/locations/global/traceScopes/my-trace-scope

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::TraceScope >

the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetTraceScope(google::cloud::observability::v1::GetTraceScopeRequest const &, Options)

Get TraceScope resource.

Parameters
Name Description
request google::cloud::observability::v1::GetTraceScopeRequest 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.observability.v1.GetTraceScopeRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::TraceScope >

the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListTraceScopes(std::string const &, Options)

List TraceScopes of a project in a particular location.

Parameters
Name Description
parent std::string const &

Required. The full resource name of the location to look for trace scopes:
projects/[PROJECT_ID]/locations/[LOCATION_ID]
For example:
projects/my-project/locations/global

opts Options

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

Returns
Type Description
StreamRange< google::cloud::observability::v1::TraceScope >

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.observability.v1.TraceScope, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListTraceScopes(google::cloud::observability::v1::ListTraceScopesRequest, Options)

List TraceScopes of a project in a particular location.

Parameters
Name Description
request google::cloud::observability::v1::ListTraceScopesRequest

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.observability.v1.ListTraceScopesRequest. 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
Type Description
StreamRange< google::cloud::observability::v1::TraceScope >

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.observability.v1.TraceScope, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateTraceScope(std::string const &, google::cloud::observability::v1::TraceScope const &, std::string const &, Options)

Create a new TraceScope.

Parameters
Name Description
parent std::string const &

Required. The full resource name of the location where the trace scope should be created
projects/[PROJECT_ID]/locations/[LOCATION_ID]
For example:
projects/my-project/locations/global

trace_scope google::cloud::observability::v1::TraceScope const &

Required. The new trace scope.

trace_scope_id std::string const &

Required. A client-assigned identifier for the trace scope.

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::TraceScope >

the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

CreateTraceScope(google::cloud::observability::v1::CreateTraceScopeRequest const &, Options)

Create a new TraceScope.

Parameters
Name Description
request google::cloud::observability::v1::CreateTraceScopeRequest 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.observability.v1.CreateTraceScopeRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::TraceScope >

the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateTraceScope(google::cloud::observability::v1::TraceScope const &, google::protobuf::FieldMask const &, Options)

Update a TraceScope.

Parameters
Name Description
trace_scope google::cloud::observability::v1::TraceScope const &

Required. The updated trace scope.

update_mask google::protobuf::FieldMask const &

Optional. The list of fields to update.

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::TraceScope >

the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateTraceScope(google::cloud::observability::v1::UpdateTraceScopeRequest const &, Options)

Update a TraceScope.

Parameters
Name Description
request google::cloud::observability::v1::UpdateTraceScopeRequest 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.observability.v1.UpdateTraceScopeRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::TraceScope >

the result of the RPC. The response message type (google.cloud.observability.v1.TraceScope) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

DeleteTraceScope(std::string const &, Options)

Delete a TraceScope.

Parameters
Name Description
name std::string const &

Required. The full resource name of the trace scope to delete:
projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID]
For example:
projects/my-project/locations/global/traceScopes/my-trace-scope

opts Options

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

Returns
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

DeleteTraceScope(google::cloud::observability::v1::DeleteTraceScopeRequest const &, Options)

Delete a TraceScope.

Parameters
Name Description
request google::cloud::observability::v1::DeleteTraceScopeRequest 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.observability.v1.DeleteTraceScopeRequest. 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
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

GetSettings(std::string const &, Options)

Get Settings.

Parameters
Name Description
name std::string const &

Required. Name of the settings to retrieve.
Name format:
"projects/[PROJECT_ID]/locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"

opts Options

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

Returns
Type Description
StatusOr< google::cloud::observability::v1::Settings >

the result of the RPC. The response message type (google.cloud.observability.v1.Settings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetSettings(google::cloud::observability::v1::GetSettingsRequest const &, Options)

Get Settings.

Parameters
Name Description
request google::cloud::observability::v1::GetSettingsRequest 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.observability.v1.GetSettingsRequest. 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
Type Description
StatusOr< google::cloud::observability::v1::Settings >

the result of the RPC. The response message type (google.cloud.observability.v1.Settings) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateSettings(google::cloud::observability::v1::Settings const &, google::protobuf::FieldMask const &, Options)

Update Settings.

Parameters
Name Description
settings google::cloud::observability::v1::Settings const &

Required. The settings to update.
The name field of settings is used to identify the resource to be updated.

update_mask google::protobuf::FieldMask const &

Optional. The field mask specifying which fields of the settings are to be updated.

opts Options

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

Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Settings > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Settings proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateSettings(NoAwaitTag, google::cloud::observability::v1::Settings const &, google::protobuf::FieldMask const &, Options)

Update Settings.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
settings google::cloud::observability::v1::Settings const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateSettings(google::cloud::observability::v1::UpdateSettingsRequest const &, Options)

Update Settings.

Parameters
Name Description
request google::cloud::observability::v1::UpdateSettingsRequest 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.observability.v1.UpdateSettingsRequest. 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
Type Description
future< StatusOr< google::cloud::observability::v1::Settings > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.observability.v1.Settings proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateSettings(NoAwaitTag, google::cloud::observability::v1::UpdateSettingsRequest const &, Options)

Update Settings.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::observability::v1::UpdateSettingsRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateSettings(google::longrunning::Operation const &, Options)

Update Settings.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::observability::v1::Settings > >

ListLocations(google::cloud::location::ListLocationsRequest, Options)

Lists information about the supported locations for this service.

Parameters
Name Description
request google::cloud::location::ListLocationsRequest

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.location.ListLocationsRequest. 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
Type Description
StreamRange< google::cloud::location::Location >

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.location.Location, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

GetLocation(google::cloud::location::GetLocationRequest const &, Options)

Gets information about a location.

Parameters
Name Description
request google::cloud::location::GetLocationRequest 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.location.GetLocationRequest. 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
Type Description
StatusOr< google::cloud::location::Location >

the result of the RPC. The response message type (google.cloud.location.Location) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListOperations(std::string const &, std::string const &, Options)

Lists operations that match the specified filter in the request.

If the server doesn't support this method, it returns UNIMPLEMENTED.

Parameters
Name Description
name std::string const &

The name of the operation's parent resource.

filter std::string const &

The standard list filter.

opts Options

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

Returns
Type Description
StreamRange< google::longrunning::Operation >

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.longrunning.Operation, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListOperations(google::longrunning::ListOperationsRequest, Options)

Lists operations that match the specified filter in the request.

If the server doesn't support this method, it returns UNIMPLEMENTED.

Parameters
Name Description
request google::longrunning::ListOperationsRequest

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.longrunning.ListOperationsRequest. 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
Type Description
StreamRange< google::longrunning::Operation >

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.longrunning.Operation, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

GetOperation(std::string const &, Options)

Gets the latest state of a long-running operation.

Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
Name Description
name std::string const &

The name of the operation resource.

opts Options

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

Returns
Type Description
StatusOr< google::longrunning::Operation >

the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetOperation(google::longrunning::GetOperationRequest const &, Options)

Gets the latest state of a long-running operation.

Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
Name Description
request google::longrunning::GetOperationRequest 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.longrunning.GetOperationRequest. 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
Type Description
StatusOr< google::longrunning::Operation >

the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

DeleteOperation(std::string const &, Options)

Deletes a long-running operation.

This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
Name Description
name std::string const &

The name of the operation resource to be deleted.

opts Options

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

Returns
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)

Deletes a long-running operation.

This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
Name Description
request google::longrunning::DeleteOperationRequest 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.longrunning.DeleteOperationRequest. 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
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

CancelOperation(std::string const &, Options)

Starts asynchronous cancellation on a long-running operation.

The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

Parameters
Name Description
name std::string const &

The name of the operation resource to be cancelled.

opts Options

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

Returns
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

CancelOperation(google::longrunning::CancelOperationRequest const &, Options)

Starts asynchronous cancellation on a long-running operation.

The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

Parameters
Name Description
request google::longrunning::CancelOperationRequest 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.longrunning.CancelOperationRequest. 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
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.