google-apis-travelimpactmodel_v1 0.8.0 → 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e8a588877dc7686102167f97b31ac25fe570214780b584919cb2b7306944a8c
4
- data.tar.gz: 509b1c084e39af9935202d68d5ddf542cf811aeb5e623964203fc00815e7fcd5
3
+ metadata.gz: 3ccf3adb344fc1a1c6f498a25e772165629195bed89b56210434efc53b9dd9e5
4
+ data.tar.gz: 4797489a766e917e19712d7ad68ee7ce3dc9d886aa22997027f939e2fd38ed33
5
5
  SHA512:
6
- metadata.gz: 99fd0b2c566da81c912790e5b784caa5f9a33c9fcb9c39a0e4feef7529719cdaae8940682d1eb1f43846be5328db09780e9b1bf7c7c15e1ce936e2b311fc7c7c
7
- data.tar.gz: c99318f940bb65ea57bfdacd61a7df785da16f707c84515d76050982337885e3f5b5bff1b15c9f1648bcce268a159951abb766b0ff955b9a4ed4d499a561427d
6
+ metadata.gz: e90bc66d93d93fbc0e69477301c6430d4fc2170c78136765f39b2687153143fc72dbc4fa28fdeff8a2cf0dc559f4280d8daf318a7952a351bed61050e208ed0c
7
+ data.tar.gz: 45890ab3bb8a3b5ac028a926c5b8f583fb0a64a278b72d6ca25808ba955186a57ec8795c03c4ac4468b1557099a8d1bee9cf556eb146bbc4ac9f7d1aed33a85a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-travelimpactmodel_v1
2
2
 
3
+ ### v0.9.0 (2025-06-29)
4
+
5
+ * Regenerated from discovery document revision 20250624
6
+
3
7
  ### v0.8.0 (2025-06-08)
4
8
 
5
9
  * Regenerated from discovery document revision 20250605
@@ -154,6 +154,61 @@ module Google
154
154
  end
155
155
  end
156
156
 
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
+
157
212
  # Grouped emissions per seating class results.
158
213
  class EmissionsGramsPerPax
159
214
  include Google::Apis::Core::Hashable
@@ -254,6 +309,17 @@ module Google
254
309
  class FlightWithEmissions
255
310
  include Google::Apis::Core::Hashable
256
311
 
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
+
257
323
  # Grouped emissions per seating class results.
258
324
  # Corresponds to the JSON property `emissionsGramsPerPax`
259
325
  # @return [Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax]
@@ -265,14 +331,22 @@ module Google
265
331
  # @return [Google::Apis::TravelimpactmodelV1::Flight]
266
332
  attr_accessor :flight
267
333
 
334
+ # Optional. The source of the emissions data.
335
+ # Corresponds to the JSON property `source`
336
+ # @return [String]
337
+ attr_accessor :source
338
+
268
339
  def initialize(**args)
269
340
  update!(**args)
270
341
  end
271
342
 
272
343
  # Update properties of this object
273
344
  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)
274
347
  @emissions_grams_per_pax = args[:emissions_grams_per_pax] if args.key?(:emissions_grams_per_pax)
275
348
  @flight = args[:flight] if args.key?(:flight)
349
+ @source = args[:source] if args.key?(:source)
276
350
  end
277
351
  end
278
352
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TravelimpactmodelV1
18
18
  # Version of the google-apis-travelimpactmodel_v1 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250605"
25
+ REVISION = "20250624"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class EasaLabelMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class EmissionsGramsPerPax
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -133,6 +139,18 @@ module Google
133
139
  end
134
140
  end
135
141
 
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
+
136
154
  class EmissionsGramsPerPax
137
155
  # @private
138
156
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -158,10 +176,14 @@ module Google
158
176
  class FlightWithEmissions
159
177
  # @private
160
178
  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
+
161
182
  property :emissions_grams_per_pax, as: 'emissionsGramsPerPax', class: Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax, decorator: Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax::Representation
162
183
 
163
184
  property :flight, as: 'flight', class: Google::Apis::TravelimpactmodelV1::Flight, decorator: Google::Apis::TravelimpactmodelV1::Flight::Representation
164
185
 
186
+ property :source, as: 'source'
165
187
  end
166
188
  end
167
189
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-travelimpactmodel_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-travelimpactmodel_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-travelimpactmodel_v1/v0.8.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-travelimpactmodel_v1/v0.9.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-travelimpactmodel_v1
62
62
  rdoc_options: []
63
63
  require_paths: