@googlemaps/fleetengine 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.0](https://github.com/googleapis/google-cloud-node/compare/fleetengine-v0.5.0...fleetengine-v0.6.0) (2025-03-18)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096))
9
+
10
+ ### Features
11
+
12
+ * [Many APIs] add request/response debug logging to gapics ([388b4e2](https://github.com/googleapis/google-cloud-node/commit/388b4e20329b7f6fc0dd061dddff573c45104213))
13
+
14
+
15
+ ### Miscellaneous Chores
16
+
17
+ * Upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096)) ([eadae64](https://github.com/googleapis/google-cloud-node/commit/eadae64d54e07aa2c65097ea52e65008d4e87436))
18
+
19
+ ## [0.5.0](https://github.com/googleapis/google-cloud-node/compare/fleetengine-v0.4.0...fleetengine-v0.5.0) (2025-02-28)
20
+
21
+
22
+ ### Features
23
+
24
+ * [fleetengine] A new field `past_locations` is added to message `.maps.fleetengine.delivery.v1.DeliveryVehicle` ([#6063](https://github.com/googleapis/google-cloud-node/issues/6063)) ([71505cc](https://github.com/googleapis/google-cloud-node/commit/71505cc6cb7ed23aa78e0f091e53797e90ea5aa4))
25
+ * A new field `past_locations` is added to message `.maps.fleetengine.v1.Vehicle` ([71505cc](https://github.com/googleapis/google-cloud-node/commit/71505cc6cb7ed23aa78e0f091e53797e90ea5aa4))
26
+
3
27
  ## [0.4.0](https://github.com/googleapis/google-cloud-node/compare/fleetengine-v0.3.0...fleetengine-v0.4.0) (2025-01-16)
4
28
 
5
29
 
package/README.md CHANGED
@@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
44
44
  1. [Select or create a Cloud Platform project][projects].
45
45
  1. [Enable billing for your project][billing].
46
46
  1. [Enable the Local Rides and Deliveries API API][enable_api].
47
- 1. [Set up authentication][auth] so you can access the
47
+ 1. [Set up authentication with a service account][auth] so you can access the
48
48
  API from your local workstation.
49
49
 
50
50
  ### Installing the client library
@@ -235,11 +235,13 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
235
235
  | Sample | Source Code | Try it |
236
236
  | --------------------------- | --------------------------------- | ------ |
237
237
  | Trip_service.create_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.create_trip.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-fleetengine/samples/generated/v1/trip_service.create_trip.js,packages/google-maps-fleetengine/samples/README.md) |
238
+ | Trip_service.delete_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.delete_trip.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-fleetengine/samples/generated/v1/trip_service.delete_trip.js,packages/google-maps-fleetengine/samples/README.md) |
238
239
  | Trip_service.get_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.get_trip.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-fleetengine/samples/generated/v1/trip_service.get_trip.js,packages/google-maps-fleetengine/samples/README.md) |
239
240
  | Trip_service.report_billable_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.report_billable_trip.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-fleetengine/samples/generated/v1/trip_service.report_billable_trip.js,packages/google-maps-fleetengine/samples/README.md) |
240
241
  | Trip_service.search_trips | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.search_trips.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-fleetengine/samples/generated/v1/trip_service.search_trips.js,packages/google-maps-fleetengine/samples/README.md) |
241
242
  | Trip_service.update_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.update_trip.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-fleetengine/samples/generated/v1/trip_service.update_trip.js,packages/google-maps-fleetengine/samples/README.md) |
242
243
  | Vehicle_service.create_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.create_vehicle.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-fleetengine/samples/generated/v1/vehicle_service.create_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
244
+ | Vehicle_service.delete_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.delete_vehicle.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-fleetengine/samples/generated/v1/vehicle_service.delete_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
243
245
  | Vehicle_service.get_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.get_vehicle.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-fleetengine/samples/generated/v1/vehicle_service.get_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
244
246
  | Vehicle_service.list_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.list_vehicles.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-fleetengine/samples/generated/v1/vehicle_service.list_vehicles.js,packages/google-maps-fleetengine/samples/README.md) |
245
247
  | Vehicle_service.search_fuzzed_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.search_fuzzed_vehicles.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-fleetengine/samples/generated/v1/vehicle_service.search_fuzzed_vehicles.js,packages/google-maps-fleetengine/samples/README.md) |
@@ -316,4 +318,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
316
318
  [projects]: https://console.cloud.google.com/project
317
319
  [billing]: https://support.google.com/cloud/answer/6293499#enable-billing
318
320
  [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=fleetengine.googleapis.com
319
- [auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
321
+ [auth]: https://cloud.google.com/docs/authentication/getting-started
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@ syntax = "proto3";
17
17
  package maps.fleetengine.v1;
18
18
 
19
19
  import "google/api/field_behavior.proto";
20
+ import "google/api/resource.proto";
20
21
  import "google/maps/fleetengine/v1/traffic.proto";
21
22
  import "google/protobuf/duration.proto";
22
23
  import "google/protobuf/timestamp.proto";
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -71,6 +71,23 @@ service TripService {
71
71
  };
72
72
  }
73
73
 
74
+ // Deletes a single Trip.
75
+ //
76
+ // Returns FAILED_PRECONDITION if the Trip is active and assigned to a
77
+ // vehicle.
78
+ rpc DeleteTrip(DeleteTripRequest) returns (google.protobuf.Empty) {
79
+ option (google.api.http) = {
80
+ delete: "/v1/{name=providers/*/trips/*}"
81
+ };
82
+ option (google.api.routing) = {
83
+ routing_parameters {
84
+ field: "name"
85
+ path_template: "{provider_id=providers/*}"
86
+ }
87
+ };
88
+ option (google.api.method_signature) = "name";
89
+ }
90
+
74
91
  // Report billable trip usage.
75
92
  rpc ReportBillableTrip(ReportBillableTripRequest)
76
93
  returns (google.protobuf.Empty) {
@@ -233,6 +250,23 @@ message GetTripRequest {
233
250
  google.protobuf.Timestamp remaining_waypoints_route_version = 10;
234
251
  }
235
252
 
253
+ // DeleteTrip request message.
254
+ message DeleteTripRequest {
255
+ // Optional. The standard Fleet Engine request header.
256
+ RequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL];
257
+
258
+ // Required. Must be in the format `providers/{provider}/trips/{trip}`.
259
+ // The provider must be the Project ID (for example, `sample-cloud-project`)
260
+ // of the Google Cloud Project of which the service account making
261
+ // this call is a member.
262
+ string name = 2 [
263
+ (google.api.field_behavior) = REQUIRED,
264
+ (google.api.resource_reference) = {
265
+ type: "fleetengine.googleapis.com/Trip"
266
+ }
267
+ ];
268
+ }
269
+
236
270
  // ReportBillableTrip request message.
237
271
  message ReportBillableTripRequest {
238
272
  // Selector for different solution types of a reported trip.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ import "google/maps/fleetengine/v1/fleetengine.proto";
26
26
  import "google/maps/fleetengine/v1/header.proto";
27
27
  import "google/maps/fleetengine/v1/vehicles.proto";
28
28
  import "google/protobuf/duration.proto";
29
+ import "google/protobuf/empty.proto";
29
30
  import "google/protobuf/field_mask.proto";
30
31
  import "google/protobuf/timestamp.proto";
31
32
  import "google/protobuf/wrappers.proto";
@@ -100,6 +101,23 @@ service VehicleService {
100
101
  };
101
102
  }
102
103
 
104
+ // Deletes a Vehicle from the Fleet Engine.
105
+ //
106
+ // Returns FAILED_PRECONDITION if the Vehicle has active Trips.
107
+ // assigned to it.
108
+ rpc DeleteVehicle(DeleteVehicleRequest) returns (google.protobuf.Empty) {
109
+ option (google.api.http) = {
110
+ delete: "/v1/{name=providers/*/vehicles/*}"
111
+ };
112
+ option (google.api.routing) = {
113
+ routing_parameters {
114
+ field: "name"
115
+ path_template: "{provider_id=providers/*}"
116
+ }
117
+ };
118
+ option (google.api.method_signature) = "name";
119
+ }
120
+
103
121
  // Writes updated vehicle data to the Fleet Engine.
104
122
  //
105
123
  // When updating a `Vehicle`, the following fields cannot be updated since
@@ -260,6 +278,24 @@ message GetVehicleRequest {
260
278
  google.protobuf.Timestamp waypoints_version = 5;
261
279
  }
262
280
 
281
+ // DeleteVehicle request message.
282
+ message DeleteVehicleRequest {
283
+ // Optional. The standard Fleet Engine request header.
284
+ RequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL];
285
+
286
+ // Required. Must be in the format
287
+ // `providers/{provider}/vehicles/{vehicle}`.
288
+ // The {provider} must be the Project ID (for example, `sample-cloud-project`)
289
+ // of the Google Cloud Project of which the service account making
290
+ // this call is a member.
291
+ string name = 2 [
292
+ (google.api.field_behavior) = REQUIRED,
293
+ (google.api.resource_reference) = {
294
+ type: "fleetengine.googleapis.com/Vehicle"
295
+ }
296
+ ];
297
+ }
298
+
263
299
  // `UpdateVehicle request message.
264
300
  message UpdateVehicleRequest {
265
301
  // The standard Fleet Engine request header.
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -86,6 +86,14 @@ message Vehicle {
86
86
  // Last reported location of the vehicle.
87
87
  VehicleLocation last_location = 5;
88
88
 
89
+ // Input only. Locations where this vehicle has been in the past that haven't
90
+ // yet been reported to Fleet Engine. This is used in `UpdateVehicleRequest`
91
+ // to record locations which were previously unable to be sent to the server.
92
+ // Typically this happens when the vehicle does not have internet
93
+ // connectivity.
94
+ repeated VehicleLocation past_locations = 30
95
+ [(google.api.field_behavior) = INPUT_ONLY];
96
+
89
97
  // The total numbers of riders this vehicle can carry. The driver is not
90
98
  // considered in this value. This value must be greater than or equal to one.
91
99
  int32 maximum_capacity = 6;