Skip to content

Commit 7afb69d

Browse files
feat: Automated regeneration of css v1 client (googleapis#20230)
Auto-created at 2024-09-15 09:50:12 +0000 using the toys pull request generator.
1 parent ac5c075 commit 7afb69d

File tree

5 files changed

+129
-3
lines changed

5 files changed

+129
-3
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127923,10 +127923,12 @@
127923127923
"/css:v1/Attributes/googleProductCategory": google_product_category
127924127924
"/css:v1/Attributes/gtin": gtin
127925127925
"/css:v1/Attributes/headlineOfferCondition": headline_offer_condition
127926+
"/css:v1/Attributes/headlineOfferInstallment": headline_offer_installment
127926127927
"/css:v1/Attributes/headlineOfferLink": headline_offer_link
127927127928
"/css:v1/Attributes/headlineOfferMobileLink": headline_offer_mobile_link
127928127929
"/css:v1/Attributes/headlineOfferPrice": headline_offer_price
127929127930
"/css:v1/Attributes/headlineOfferShippingPrice": headline_offer_shipping_price
127931+
"/css:v1/Attributes/headlineOfferSubscriptionCost": headline_offer_subscription_cost
127930127932
"/css:v1/Attributes/highPrice": high_price
127931127933
"/css:v1/Attributes/imageLink": image_link
127932127934
"/css:v1/Attributes/includedDestinations": included_destinations
@@ -128000,6 +128002,14 @@
128000128002
"/css:v1/DestinationStatus/pendingCountries": pending_countries
128001128003
"/css:v1/DestinationStatus/pendingCountries/pending_country": pending_country
128002128004
"/css:v1/Empty": empty
128005+
"/css:v1/HeadlineOfferInstallment": headline_offer_installment
128006+
"/css:v1/HeadlineOfferInstallment/amount": amount
128007+
"/css:v1/HeadlineOfferInstallment/downpayment": downpayment
128008+
"/css:v1/HeadlineOfferInstallment/months": months
128009+
"/css:v1/HeadlineOfferSubscriptionCost": headline_offer_subscription_cost
128010+
"/css:v1/HeadlineOfferSubscriptionCost/amount": amount
128011+
"/css:v1/HeadlineOfferSubscriptionCost/period": period
128012+
"/css:v1/HeadlineOfferSubscriptionCost/periodLength": period_length
128003128013
"/css:v1/ItemLevelIssue": item_level_issue
128004128014
"/css:v1/ItemLevelIssue/applicableCountries": applicable_countries
128005128015
"/css:v1/ItemLevelIssue/applicableCountries/applicable_country": applicable_country

generated/google-apis-css_v1/CHANGELOG.md

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

3+
### v0.2.0 (2024-09-15)
4+
5+
* Regenerated from discovery document revision 20240909
6+
* Regenerated using generator version 0.15.1
7+
38
### v0.1.0 (2024-07-25)
49

510
* Regenerated from discovery document revision 20240719

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

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ class Attributes
255255
# @return [String]
256256
attr_accessor :headline_offer_condition
257257

258+
# A message that represents installment.
259+
# Corresponds to the JSON property `headlineOfferInstallment`
260+
# @return [Google::Apis::CssV1::HeadlineOfferInstallment]
261+
attr_accessor :headline_offer_installment
262+
258263
# Link to the headline offer.
259264
# Corresponds to the JSON property `headlineOfferLink`
260265
# @return [String]
@@ -275,6 +280,11 @@ class Attributes
275280
# @return [Google::Apis::CssV1::Price]
276281
attr_accessor :headline_offer_shipping_price
277282

283+
# The SubscriptionCost of the product.
284+
# Corresponds to the JSON property `headlineOfferSubscriptionCost`
285+
# @return [Google::Apis::CssV1::HeadlineOfferSubscriptionCost]
286+
attr_accessor :headline_offer_subscription_cost
287+
278288
# The price represented as a number and currency.
279289
# Corresponds to the JSON property `highPrice`
280290
# @return [Google::Apis::CssV1::Price]
@@ -427,10 +437,12 @@ def update!(**args)
427437
@google_product_category = args[:google_product_category] if args.key?(:google_product_category)
428438
@gtin = args[:gtin] if args.key?(:gtin)
429439
@headline_offer_condition = args[:headline_offer_condition] if args.key?(:headline_offer_condition)
440+
@headline_offer_installment = args[:headline_offer_installment] if args.key?(:headline_offer_installment)
430441
@headline_offer_link = args[:headline_offer_link] if args.key?(:headline_offer_link)
431442
@headline_offer_mobile_link = args[:headline_offer_mobile_link] if args.key?(:headline_offer_mobile_link)
432443
@headline_offer_price = args[:headline_offer_price] if args.key?(:headline_offer_price)
433444
@headline_offer_shipping_price = args[:headline_offer_shipping_price] if args.key?(:headline_offer_shipping_price)
445+
@headline_offer_subscription_cost = args[:headline_offer_subscription_cost] if args.key?(:headline_offer_subscription_cost)
434446
@high_price = args[:high_price] if args.key?(:high_price)
435447
@image_link = args[:image_link] if args.key?(:image_link)
436448
@included_destinations = args[:included_destinations] if args.key?(:included_destinations)
@@ -778,6 +790,68 @@ def update!(**args)
778790
end
779791
end
780792

793+
# A message that represents installment.
794+
class HeadlineOfferInstallment
795+
include Google::Apis::Core::Hashable
796+
797+
# The price represented as a number and currency.
798+
# Corresponds to the JSON property `amount`
799+
# @return [Google::Apis::CssV1::Price]
800+
attr_accessor :amount
801+
802+
# The price represented as a number and currency.
803+
# Corresponds to the JSON property `downpayment`
804+
# @return [Google::Apis::CssV1::Price]
805+
attr_accessor :downpayment
806+
807+
# The number of installments the buyer has to pay.
808+
# Corresponds to the JSON property `months`
809+
# @return [Fixnum]
810+
attr_accessor :months
811+
812+
def initialize(**args)
813+
update!(**args)
814+
end
815+
816+
# Update properties of this object
817+
def update!(**args)
818+
@amount = args[:amount] if args.key?(:amount)
819+
@downpayment = args[:downpayment] if args.key?(:downpayment)
820+
@months = args[:months] if args.key?(:months)
821+
end
822+
end
823+
824+
# The SubscriptionCost of the product.
825+
class HeadlineOfferSubscriptionCost
826+
include Google::Apis::Core::Hashable
827+
828+
# The price represented as a number and currency.
829+
# Corresponds to the JSON property `amount`
830+
# @return [Google::Apis::CssV1::Price]
831+
attr_accessor :amount
832+
833+
# The type of subscription period. Supported values are: * "`month`" * "`year`"
834+
# Corresponds to the JSON property `period`
835+
# @return [String]
836+
attr_accessor :period
837+
838+
# The number of subscription periods the buyer has to pay.
839+
# Corresponds to the JSON property `periodLength`
840+
# @return [Fixnum]
841+
attr_accessor :period_length
842+
843+
def initialize(**args)
844+
update!(**args)
845+
end
846+
847+
# Update properties of this object
848+
def update!(**args)
849+
@amount = args[:amount] if args.key?(:amount)
850+
@period = args[:period] if args.key?(:period)
851+
@period_length = args[:period_length] if args.key?(:period_length)
852+
end
853+
end
854+
781855
# The ItemLevelIssue of the product status.
782856
class ItemLevelIssue
783857
include Google::Apis::Core::Hashable

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CssV1
1818
# Version of the google-apis-css_v1 gem
19-
GEM_VERSION = "0.1.0"
19+
GEM_VERSION = "0.2.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.0"
22+
GENERATOR_VERSION = "0.15.1"
2323

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

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class HeadlineOfferInstallment
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
91+
class HeadlineOfferSubscriptionCost
92+
class Representation < Google::Apis::Core::JsonRepresentation; end
93+
94+
include Google::Apis::Core::JsonObjectSupport
95+
end
96+
8597
class ItemLevelIssue
8698
class Representation < Google::Apis::Core::JsonRepresentation; end
8799

@@ -187,12 +199,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
187199
property :google_product_category, as: 'googleProductCategory'
188200
property :gtin, as: 'gtin'
189201
property :headline_offer_condition, as: 'headlineOfferCondition'
202+
property :headline_offer_installment, as: 'headlineOfferInstallment', class: Google::Apis::CssV1::HeadlineOfferInstallment, decorator: Google::Apis::CssV1::HeadlineOfferInstallment::Representation
203+
190204
property :headline_offer_link, as: 'headlineOfferLink'
191205
property :headline_offer_mobile_link, as: 'headlineOfferMobileLink'
192206
property :headline_offer_price, as: 'headlineOfferPrice', class: Google::Apis::CssV1::Price, decorator: Google::Apis::CssV1::Price::Representation
193207

194208
property :headline_offer_shipping_price, as: 'headlineOfferShippingPrice', class: Google::Apis::CssV1::Price, decorator: Google::Apis::CssV1::Price::Representation
195209

210+
property :headline_offer_subscription_cost, as: 'headlineOfferSubscriptionCost', class: Google::Apis::CssV1::HeadlineOfferSubscriptionCost, decorator: Google::Apis::CssV1::HeadlineOfferSubscriptionCost::Representation
211+
196212
property :high_price, as: 'highPrice', class: Google::Apis::CssV1::Price, decorator: Google::Apis::CssV1::Price::Representation
197213

198214
property :image_link, as: 'imageLink'
@@ -306,6 +322,27 @@ class Representation < Google::Apis::Core::JsonRepresentation
306322
end
307323
end
308324

325+
class HeadlineOfferInstallment
326+
# @private
327+
class Representation < Google::Apis::Core::JsonRepresentation
328+
property :amount, as: 'amount', class: Google::Apis::CssV1::Price, decorator: Google::Apis::CssV1::Price::Representation
329+
330+
property :downpayment, as: 'downpayment', class: Google::Apis::CssV1::Price, decorator: Google::Apis::CssV1::Price::Representation
331+
332+
property :months, :numeric_string => true, as: 'months'
333+
end
334+
end
335+
336+
class HeadlineOfferSubscriptionCost
337+
# @private
338+
class Representation < Google::Apis::Core::JsonRepresentation
339+
property :amount, as: 'amount', class: Google::Apis::CssV1::Price, decorator: Google::Apis::CssV1::Price::Representation
340+
341+
property :period, as: 'period'
342+
property :period_length, :numeric_string => true, as: 'periodLength'
343+
end
344+
end
345+
309346
class ItemLevelIssue
310347
# @private
311348
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)