Skip to content

Commit 8e97ed6

Browse files
fix(travelimpactmodel): update the API
#### travelimpactmodel:v1 The following keys were changed: - resources.flights.methods.computeFlightEmissions.description
1 parent b599b7a commit 8e97ed6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

discovery/travelimpactmodel-v1.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"flights": {
100100
"methods": {
101101
"computeFlightEmissions": {
102-
"description": "Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: - The flight is unknown to the server. - The input flight leg is missing one or more identifiers. - The flight date is in the past. - The aircraft type is not supported by the model. - Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.",
102+
"description": "Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.",
103103
"flatPath": "v1/flights:computeFlightEmissions",
104104
"httpMethod": "POST",
105105
"id": "travelimpactmodel.flights.computeFlightEmissions",
@@ -116,7 +116,7 @@
116116
}
117117
}
118118
},
119-
"revision": "20241027",
119+
"revision": "20250224",
120120
"rootUrl": "https://travelimpactmodel.googleapis.com/",
121121
"schemas": {
122122
"ComputeFlightEmissionsRequest": {

src/apis/travelimpactmodel/v1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export namespace travelimpactmodel_v1 {
251251
}
252252

253253
/**
254-
* Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: - The flight is unknown to the server. - The input flight leg is missing one or more identifiers. - The flight date is in the past. - The aircraft type is not supported by the model. - Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.
254+
* Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.
255255
*
256256
* @param params - Parameters for request
257257
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.

0 commit comments

Comments
 (0)