Skip to content

Commit 3db73ce

Browse files
amanda-tarafajskeet
authored andcommitted
feat: Generate Google.Apis.TravelImpactModel.v1 version 1.72.0.3958
1 parent eff505b commit 3db73ce

File tree

3 files changed

+30
-26
lines changed

3 files changed

+30
-26
lines changed

DiscoveryJson/travelimpactmodel.v1.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
}
148148
},
149-
"revision": "20251008",
149+
"revision": "20251102",
150150
"rootUrl": "https://travelimpactmodel.googleapis.com/",
151151
"schemas": {
152152
"ComputeFlightEmissionsRequest": {
@@ -505,29 +505,29 @@
505505
"type": "string"
506506
},
507507
"carrierCode": {
508-
"description": "Optional. IATA carrier code, e.g. `KE`. This is required if specific flight matching is desired. Otherwise, this is unused for typical flight and distance-based emissions models. This could be both operating and marketing carrier code (i.e. codeshare is covered).",
508+
"description": "Optional. 2-character [IATA carrier code](https://www.iata.org/en/publications/directories/code-search/), e.g. `KE`. This is required if specific flight matching is desired. Otherwise, this is unused for typical flight and distance-based emissions models. This could be both operating and marketing carrier code (i.e. codeshare is covered).",
509509
"type": "string"
510510
},
511511
"departureDate": {
512512
"$ref": "Date",
513513
"description": "Required. Date of the flight in the time zone of the origin airport. Only year is required for typical flight and distance-based emissions models (month and day values are ignored and therefore, can be either omitted, set to 0, or set to a valid date for those cases). Correspondingly, if a specific date is not provided for TIM emissions, we will fallback to typical flight (or distance-based) emissions."
514514
},
515515
"destination": {
516-
"description": "Optional. IATA airport code for flight destination, e.g. `ICN`. This is used to match specific flight if provided alongside origin, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.",
516+
"description": "Optional. 3-character [IATA airport code](https://www.iata.org/en/publications/directories/code-search/) for flight destination, e.g. `ICN`. This is used to match specific flight if provided alongside origin, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.",
517517
"type": "string"
518518
},
519519
"distanceKm": {
520-
"description": "Optional. Distance in kilometers, e.g. `2423`. This is used to match a flight to distance-based emissions when origin and destination are not provided or there are no matching typical flights. This field supports values between 0 and 2.5e16 km.",
520+
"description": "Optional. Distance in kilometers, e.g. `2423`, from [1, 2.5e16) km. This is used to match a flight to distance-based emissions when origin and destination are not provided or there are no matching typical flights.",
521521
"format": "int64",
522522
"type": "string"
523523
},
524524
"flightNumber": {
525-
"description": "Optional. Flight number, e.g. `71`. This is first used to match a specific flight if a flight number is specified alongside origin, destination, and carrier. If a flight number is not specified, we will first try to match the flight to a typical flight between the provided origin and destination airports. If that fails and/or origin & destination are not provided, we will use the distance-based emissions model based on the flight distance provided.",
525+
"description": "Optional. Up to 4-digit [flight number](https://en.wikipedia.org/wiki/Flight_number), e.g. `71`, from [1, 9999]. This is first used to match a specific flight if a flight number is specified alongside origin, destination, and carrier. If a flight number is not specified, we will first try to match the flight to a typical flight between the provided origin and destination airports. If that fails and/or origin & destination are not provided, we will use the distance-based emissions model based on the flight distance provided.",
526526
"format": "int32",
527527
"type": "integer"
528528
},
529529
"origin": {
530-
"description": "Optional. IATA airport code for flight origin, e.g. `YVR`. This is used to match specific flight if provided alongside destination, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.",
530+
"description": "Optional. 3-character [IATA airport code](https://www.iata.org/en/publications/directories/code-search/) for flight origin, e.g. `YVR`. This is used to match specific flight if provided alongside destination, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.",
531531
"type": "string"
532532
}
533533
},

Src/Generated/Google.Apis.TravelImpactModel.v1/Google.Apis.TravelImpactModel.v1.cs

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -809,9 +809,10 @@ public class Scope3FlightSegment : Google.Apis.Requests.IDirectResponseSchema
809809
public virtual string CabinClass { get; set; }
810810

811811
/// <summary>
812-
/// Optional. IATA carrier code, e.g. `KE`. This is required if specific flight matching is desired. Otherwise,
813-
/// this is unused for typical flight and distance-based emissions models. This could be both operating and
814-
/// marketing carrier code (i.e. codeshare is covered).
812+
/// Optional. 2-character [IATA carrier code](https://www.iata.org/en/publications/directories/code-search/),
813+
/// e.g. `KE`. This is required if specific flight matching is desired. Otherwise, this is unused for typical
814+
/// flight and distance-based emissions models. This could be both operating and marketing carrier code (i.e.
815+
/// codeshare is covered).
815816
/// </summary>
816817
[Newtonsoft.Json.JsonPropertyAttribute("carrierCode")]
817818
public virtual string CarrierCode { get; set; }
@@ -826,37 +827,40 @@ public class Scope3FlightSegment : Google.Apis.Requests.IDirectResponseSchema
826827
public virtual Date DepartureDate { get; set; }
827828

828829
/// <summary>
829-
/// Optional. IATA airport code for flight destination, e.g. `ICN`. This is used to match specific flight if
830-
/// provided alongside origin, carrier, and flight number. If there is no match, we will first try to match the
831-
/// flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the
832-
/// distance-based emissions model if the flight distance is provided.
830+
/// Optional. 3-character [IATA airport code](https://www.iata.org/en/publications/directories/code-search/) for
831+
/// flight destination, e.g. `ICN`. This is used to match specific flight if provided alongside origin, carrier,
832+
/// and flight number. If there is no match, we will first try to match the flight to a typical flight between
833+
/// the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if
834+
/// the flight distance is provided.
833835
/// </summary>
834836
[Newtonsoft.Json.JsonPropertyAttribute("destination")]
835837
public virtual string Destination { get; set; }
836838

837839
/// <summary>
838-
/// Optional. Distance in kilometers, e.g. `2423`. This is used to match a flight to distance-based emissions
839-
/// when origin and destination are not provided or there are no matching typical flights. This field supports
840-
/// values between 0 and 2.5e16 km.
840+
/// Optional. Distance in kilometers, e.g. `2423`, from [1, 2.5e16) km. This is used to match a flight to
841+
/// distance-based emissions when origin and destination are not provided or there are no matching typical
842+
/// flights.
841843
/// </summary>
842844
[Newtonsoft.Json.JsonPropertyAttribute("distanceKm")]
843845
public virtual System.Nullable<long> DistanceKm { get; set; }
844846

845847
/// <summary>
846-
/// Optional. Flight number, e.g. `71`. This is first used to match a specific flight if a flight number is
847-
/// specified alongside origin, destination, and carrier. If a flight number is not specified, we will first try
848-
/// to match the flight to a typical flight between the provided origin and destination airports. If that fails
849-
/// and/or origin &amp;amp; destination are not provided, we will use the distance-based emissions model based
850-
/// on the flight distance provided.
848+
/// Optional. Up to 4-digit [flight number](https://en.wikipedia.org/wiki/Flight_number), e.g. `71`, from [1,
849+
/// 9999]. This is first used to match a specific flight if a flight number is specified alongside origin,
850+
/// destination, and carrier. If a flight number is not specified, we will first try to match the flight to a
851+
/// typical flight between the provided origin and destination airports. If that fails and/or origin &amp;amp;
852+
/// destination are not provided, we will use the distance-based emissions model based on the flight distance
853+
/// provided.
851854
/// </summary>
852855
[Newtonsoft.Json.JsonPropertyAttribute("flightNumber")]
853856
public virtual System.Nullable<int> FlightNumber { get; set; }
854857

855858
/// <summary>
856-
/// Optional. IATA airport code for flight origin, e.g. `YVR`. This is used to match specific flight if provided
857-
/// alongside destination, carrier, and flight number. If there is no match, we will first try to match the
858-
/// flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the
859-
/// distance-based emissions model if the flight distance is provided.
859+
/// Optional. 3-character [IATA airport code](https://www.iata.org/en/publications/directories/code-search/) for
860+
/// flight origin, e.g. `YVR`. This is used to match specific flight if provided alongside destination, carrier,
861+
/// and flight number. If there is no match, we will first try to match the flight to a typical flight between
862+
/// the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if
863+
/// the flight distance is provided.
860864
/// </summary>
861865
[Newtonsoft.Json.JsonPropertyAttribute("origin")]
862866
public virtual string Origin { get; set; }

Src/Generated/Google.Apis.TravelImpactModel.v1/Google.Apis.TravelImpactModel.v1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- nupkg information -->
44
<PropertyGroup>
55
<Title>Google.Apis.TravelImpactModel.v1 Client Library</Title>
6-
<Version>1.72.0.3933</Version>
6+
<Version>1.72.0.3958</Version>
77
<Authors>Google LLC</Authors>
88
<Copyright>Copyright 2025 Google LLC</Copyright>
99
<PackageTags>Google</PackageTags>

0 commit comments

Comments
 (0)