Skip to content

Commit

Permalink
feat: [mapsplatformdatasets] added a new API FetchDatasetErrors (#5547)
Browse files Browse the repository at this point in the history
* feat: added a new API FetchDatasetErrors

Clients can now get the errors associated with a dataset.

PiperOrigin-RevId: 651828351

Source-Link: googleapis/googleapis@ce39e78

Source-Link: googleapis/googleapis-gen@95efbc2
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtbWFwc3BsYXRmb3JtZGF0YXNldHMvLk93bEJvdC55YW1sIiwiaCI6Ijk1ZWZiYzI4YjYwZjk4Nzk5MTUwZWZhNTE0MjhhZWY4MWM5ODcwYjEifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 17, 2024
1 parent 40e0811 commit 09bc034
Show file tree
Hide file tree
Showing 13 changed files with 2,387 additions and 80 deletions.
1 change: 1 addition & 0 deletions packages/google-maps-mapsplatformdatasets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
| --------------------------- | --------------------------------- | ------ |
| Maps_platform_datasets.create_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.create_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.create_dataset.js,packages/google-maps-mapsplatformdatasets/samples/README.md) |
| Maps_platform_datasets.delete_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.delete_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.delete_dataset.js,packages/google-maps-mapsplatformdatasets/samples/README.md) |
| Maps_platform_datasets.fetch_dataset_errors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.fetch_dataset_errors.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.fetch_dataset_errors.js,packages/google-maps-mapsplatformdatasets/samples/README.md) |
| Maps_platform_datasets.get_dataset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.get_dataset.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.get_dataset.js,packages/google-maps-mapsplatformdatasets/samples/README.md) |
| Maps_platform_datasets.list_datasets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.list_datasets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.list_datasets.js,packages/google-maps-mapsplatformdatasets/samples/README.md) |
| Maps_platform_datasets.update_dataset_metadata | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.update_dataset_metadata.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-mapsplatformdatasets/samples/generated/v1/maps_platform_datasets.update_dataset_metadata.js,packages/google-maps-mapsplatformdatasets/samples/README.md) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/maps/mapsplatformdatasets/v1/dataset.proto";
import "google/protobuf/field_mask.proto";
import "google/rpc/status.proto";

option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1";
option go_package = "cloud.google.com/go/maps/mapsplatformdatasets/apiv1/mapsplatformdatasetspb;mapsplatformdatasetspb";
Expand Down Expand Up @@ -118,6 +119,40 @@ message ListDatasetsResponse {
string next_page_token = 2;
}

// Request to list detailed errors belonging to a dataset.
message FetchDatasetErrorsRequest {
// Required. The name of the dataset to list all the errors for.
// Format: projects/{project}/datasets/{dataset_id}
string dataset = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "mapsplatformdatasets.googleapis.com/Dataset"
}
];

// The maximum number of errors to return per page.
//
// The maximum value is 500; values above 500 will be capped to 500.
//
// If unspecified, at most 50 errors will be returned.
int32 page_size = 2;

// The page token, received from a previous ListDatasetErrors call.
// Provide this to retrieve the subsequent page.
string page_token = 3;
}

// Response object of FetchDatasetErrors.
message FetchDatasetErrorsResponse {
// A token that can be sent as `page_token` to retrieve the next page.
//
// If this field is omitted, there are no subsequent pages.
string next_page_token = 2;

// The errors associated with a dataset.
repeated google.rpc.Status errors = 3;
}

// Request to delete a dataset.
message DeleteDatasetRequest {
// Required. The name of the dataset to delete.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ service MapsPlatformDatasets {
option (google.api.method_signature) = "name";
}

// Gets all the errors of a dataset.
rpc FetchDatasetErrors(FetchDatasetErrorsRequest)
returns (FetchDatasetErrorsResponse) {
option (google.api.http) = {
get: "/v1/{dataset=projects/*/datasets/*}:fetchDatasetErrors"
};
option (google.api.method_signature) = "dataset";
}

// Lists all the datasets for the specified project.
rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) {
option (google.api.http) = {
Expand Down
Loading

0 comments on commit 09bc034

Please sign in to comment.