Skip to content

Commit d786711

Browse files
feat: Automated regeneration of travelimpactmodel v1 client (googleapis#23568)
Auto-created at 2025-06-29 10:16:10 +0000 using the toys pull request generator.
1 parent 5a15d2a commit d786711

File tree

5 files changed

+110
-2
lines changed

5 files changed

+110
-2
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356199,6 +356199,11 @@
356199356199
"/travelimpactmodel:v1/Date/day": day
356200356200
"/travelimpactmodel:v1/Date/month": month
356201356201
"/travelimpactmodel:v1/Date/year": year
356202+
"/travelimpactmodel:v1/EasaLabelMetadata": easa_label_metadata
356203+
"/travelimpactmodel:v1/EasaLabelMetadata/labelExpiryDate": label_expiry_date
356204+
"/travelimpactmodel:v1/EasaLabelMetadata/labelIssueDate": label_issue_date
356205+
"/travelimpactmodel:v1/EasaLabelMetadata/labelVersion": label_version
356206+
"/travelimpactmodel:v1/EasaLabelMetadata/safDiscountPercentage": saf_discount_percentage
356202356207
"/travelimpactmodel:v1/EmissionsGramsPerPax": emissions_grams_per_pax
356203356208
"/travelimpactmodel:v1/EmissionsGramsPerPax/business": business
356204356209
"/travelimpactmodel:v1/EmissionsGramsPerPax/economy": economy
@@ -356211,8 +356216,11 @@
356211356216
"/travelimpactmodel:v1/Flight/operatingCarrierCode": operating_carrier_code
356212356217
"/travelimpactmodel:v1/Flight/origin": origin
356213356218
"/travelimpactmodel:v1/FlightWithEmissions": flight_with_emissions
356219+
"/travelimpactmodel:v1/FlightWithEmissions/contrailsImpactBucket": contrails_impact_bucket
356220+
"/travelimpactmodel:v1/FlightWithEmissions/easaLabelMetadata": easa_label_metadata
356214356221
"/travelimpactmodel:v1/FlightWithEmissions/emissionsGramsPerPax": emissions_grams_per_pax
356215356222
"/travelimpactmodel:v1/FlightWithEmissions/flight": flight
356223+
"/travelimpactmodel:v1/FlightWithEmissions/source": source
356216356224
"/travelimpactmodel:v1/Market": market
356217356225
"/travelimpactmodel:v1/Market/destination": destination
356218356226
"/travelimpactmodel:v1/Market/origin": origin

generated/google-apis-travelimpactmodel_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-travelimpactmodel_v1
22

3+
### v0.9.0 (2025-06-29)
4+
5+
* Regenerated from discovery document revision 20250624
6+
37
### v0.8.0 (2025-06-08)
48

59
* Regenerated from discovery document revision 20250605

generated/google-apis-travelimpactmodel_v1/lib/google/apis/travelimpactmodel_v1/classes.rb

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,61 @@ def update!(**args)
154154
end
155155
end
156156

157+
# Metadata about the EASA Flight Emissions Label.
158+
class EasaLabelMetadata
159+
include Google::Apis::Core::Hashable
160+
161+
# Represents a whole or partial calendar date, such as a birthday. The time of
162+
# day and time zone are either specified elsewhere or are insignificant. The
163+
# date is relative to the Gregorian Calendar. This can represent one of the
164+
# following: * A full date, with non-zero year, month, and day values. * A month
165+
# and day, with a zero year (for example, an anniversary). * A year on its own,
166+
# with a zero month and a zero day. * A year and month, with a zero day (for
167+
# example, a credit card expiration date). Related types: * google.type.
168+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
169+
# Corresponds to the JSON property `labelExpiryDate`
170+
# @return [Google::Apis::TravelimpactmodelV1::Date]
171+
attr_accessor :label_expiry_date
172+
173+
# Represents a whole or partial calendar date, such as a birthday. The time of
174+
# day and time zone are either specified elsewhere or are insignificant. The
175+
# date is relative to the Gregorian Calendar. This can represent one of the
176+
# following: * A full date, with non-zero year, month, and day values. * A month
177+
# and day, with a zero year (for example, an anniversary). * A year on its own,
178+
# with a zero month and a zero day. * A year and month, with a zero day (for
179+
# example, a credit card expiration date). Related types: * google.type.
180+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
181+
# Corresponds to the JSON property `labelIssueDate`
182+
# @return [Google::Apis::TravelimpactmodelV1::Date]
183+
attr_accessor :label_issue_date
184+
185+
# Version of the label.
186+
# Corresponds to the JSON property `labelVersion`
187+
# @return [String]
188+
attr_accessor :label_version
189+
190+
# Sustainable Aviation Fuel (SAF) emissions discount percentage applied to the
191+
# label. It is a percentage as a decimal. The values are in the interval [0,1].
192+
# For example, 0.0021 means 0.21%. This discount and reduction in emissions are
193+
# reported by the EASA label but they are not included in the CO2e estimates
194+
# distributed by this API.
195+
# Corresponds to the JSON property `safDiscountPercentage`
196+
# @return [Float]
197+
attr_accessor :saf_discount_percentage
198+
199+
def initialize(**args)
200+
update!(**args)
201+
end
202+
203+
# Update properties of this object
204+
def update!(**args)
205+
@label_expiry_date = args[:label_expiry_date] if args.key?(:label_expiry_date)
206+
@label_issue_date = args[:label_issue_date] if args.key?(:label_issue_date)
207+
@label_version = args[:label_version] if args.key?(:label_version)
208+
@saf_discount_percentage = args[:saf_discount_percentage] if args.key?(:saf_discount_percentage)
209+
end
210+
end
211+
157212
# Grouped emissions per seating class results.
158213
class EmissionsGramsPerPax
159214
include Google::Apis::Core::Hashable
@@ -254,6 +309,17 @@ def update!(**args)
254309
class FlightWithEmissions
255310
include Google::Apis::Core::Hashable
256311

312+
# Optional. The significance of contrails warming impact compared to the total
313+
# CO2e emissions impact.
314+
# Corresponds to the JSON property `contrailsImpactBucket`
315+
# @return [String]
316+
attr_accessor :contrails_impact_bucket
317+
318+
# Metadata about the EASA Flight Emissions Label.
319+
# Corresponds to the JSON property `easaLabelMetadata`
320+
# @return [Google::Apis::TravelimpactmodelV1::EasaLabelMetadata]
321+
attr_accessor :easa_label_metadata
322+
257323
# Grouped emissions per seating class results.
258324
# Corresponds to the JSON property `emissionsGramsPerPax`
259325
# @return [Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax]
@@ -265,14 +331,22 @@ class FlightWithEmissions
265331
# @return [Google::Apis::TravelimpactmodelV1::Flight]
266332
attr_accessor :flight
267333

334+
# Optional. The source of the emissions data.
335+
# Corresponds to the JSON property `source`
336+
# @return [String]
337+
attr_accessor :source
338+
268339
def initialize(**args)
269340
update!(**args)
270341
end
271342

272343
# Update properties of this object
273344
def update!(**args)
345+
@contrails_impact_bucket = args[:contrails_impact_bucket] if args.key?(:contrails_impact_bucket)
346+
@easa_label_metadata = args[:easa_label_metadata] if args.key?(:easa_label_metadata)
274347
@emissions_grams_per_pax = args[:emissions_grams_per_pax] if args.key?(:emissions_grams_per_pax)
275348
@flight = args[:flight] if args.key?(:flight)
349+
@source = args[:source] if args.key?(:source)
276350
end
277351
end
278352

generated/google-apis-travelimpactmodel_v1/lib/google/apis/travelimpactmodel_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module TravelimpactmodelV1
1818
# Version of the google-apis-travelimpactmodel_v1 gem
19-
GEM_VERSION = "0.8.0"
19+
GEM_VERSION = "0.9.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250605"
25+
REVISION = "20250624"
2626
end
2727
end
2828
end

generated/google-apis-travelimpactmodel_v1/lib/google/apis/travelimpactmodel_v1/representations.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5252
include Google::Apis::Core::JsonObjectSupport
5353
end
5454

55+
class EasaLabelMetadata
56+
class Representation < Google::Apis::Core::JsonRepresentation; end
57+
58+
include Google::Apis::Core::JsonObjectSupport
59+
end
60+
5561
class EmissionsGramsPerPax
5662
class Representation < Google::Apis::Core::JsonRepresentation; end
5763

@@ -133,6 +139,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
133139
end
134140
end
135141

142+
class EasaLabelMetadata
143+
# @private
144+
class Representation < Google::Apis::Core::JsonRepresentation
145+
property :label_expiry_date, as: 'labelExpiryDate', class: Google::Apis::TravelimpactmodelV1::Date, decorator: Google::Apis::TravelimpactmodelV1::Date::Representation
146+
147+
property :label_issue_date, as: 'labelIssueDate', class: Google::Apis::TravelimpactmodelV1::Date, decorator: Google::Apis::TravelimpactmodelV1::Date::Representation
148+
149+
property :label_version, as: 'labelVersion'
150+
property :saf_discount_percentage, as: 'safDiscountPercentage'
151+
end
152+
end
153+
136154
class EmissionsGramsPerPax
137155
# @private
138156
class Representation < Google::Apis::Core::JsonRepresentation
@@ -158,10 +176,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
158176
class FlightWithEmissions
159177
# @private
160178
class Representation < Google::Apis::Core::JsonRepresentation
179+
property :contrails_impact_bucket, as: 'contrailsImpactBucket'
180+
property :easa_label_metadata, as: 'easaLabelMetadata', class: Google::Apis::TravelimpactmodelV1::EasaLabelMetadata, decorator: Google::Apis::TravelimpactmodelV1::EasaLabelMetadata::Representation
181+
161182
property :emissions_grams_per_pax, as: 'emissionsGramsPerPax', class: Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax, decorator: Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax::Representation
162183

163184
property :flight, as: 'flight', class: Google::Apis::TravelimpactmodelV1::Flight, decorator: Google::Apis::TravelimpactmodelV1::Flight::Representation
164185

186+
property :source, as: 'source'
165187
end
166188
end
167189

0 commit comments

Comments
 (0)