Skip to content

Commit d55cd71

Browse files
feat: Automated regeneration of content v2.1 client (googleapis#23580)
Auto-created at 2025-06-29 10:35:39 +0000 using the toys pull request generator.
1 parent f1a70f1 commit d55cd71

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136232,6 +136232,7 @@
136232136232
"/content:v2.1/Product/material": material
136233136233
"/content:v2.1/Product/maxEnergyEfficiencyClass": max_energy_efficiency_class
136234136234
"/content:v2.1/Product/maxHandlingTime": max_handling_time
136235+
"/content:v2.1/Product/maximumRetailPrice": maximum_retail_price
136235136236
"/content:v2.1/Product/minEnergyEfficiencyClass": min_energy_efficiency_class
136236136237
"/content:v2.1/Product/minHandlingTime": min_handling_time
136237136238
"/content:v2.1/Product/mobileLink": mobile_link
@@ -136535,6 +136536,7 @@
136535136536
"/content:v2.1/Promotion/brandExclusion/brand_exclusion": brand_exclusion
136536136537
"/content:v2.1/Promotion/contentLanguage": content_language
136537136538
"/content:v2.1/Promotion/couponValueType": coupon_value_type
136539+
"/content:v2.1/Promotion/customRedemptionRestriction": custom_redemption_restriction
136538136540
"/content:v2.1/Promotion/freeGiftDescription": free_gift_description
136539136541
"/content:v2.1/Promotion/freeGiftItemId": free_gift_item_id
136540136542
"/content:v2.1/Promotion/freeGiftValue": free_gift_value
@@ -136552,6 +136554,7 @@
136552136554
"/content:v2.1/Promotion/limitQuantity": limit_quantity
136553136555
"/content:v2.1/Promotion/limitValue": limit_value
136554136556
"/content:v2.1/Promotion/longTitle": long_title
136557+
"/content:v2.1/Promotion/maxDiscountAmount": max_discount_amount
136555136558
"/content:v2.1/Promotion/minimumPurchaseAmount": minimum_purchase_amount
136556136559
"/content:v2.1/Promotion/minimumPurchaseQuantity": minimum_purchase_quantity
136557136560
"/content:v2.1/Promotion/moneyBudget": money_budget
@@ -136576,6 +136579,7 @@
136576136579
"/content:v2.1/Promotion/promotionUrl": promotion_url
136577136580
"/content:v2.1/Promotion/redemptionChannel": redemption_channel
136578136581
"/content:v2.1/Promotion/redemptionChannel/redemption_channel": redemption_channel
136582+
"/content:v2.1/Promotion/redemptionRestriction": redemption_restriction
136579136583
"/content:v2.1/Promotion/shippingServiceNames": shipping_service_names
136580136584
"/content:v2.1/Promotion/shippingServiceNames/shipping_service_name": shipping_service_name
136581136585
"/content:v2.1/Promotion/storeApplicability": store_applicability

generated/google-apis-content_v2_1/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-content_v2_1
22

3+
### v0.43.0 (2025-06-29)
4+
5+
* Regenerated from discovery document revision 20250621
6+
37
### v0.42.0 (2025-06-08)
48

59
* Regenerated from discovery document revision 20250603

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9011,6 +9011,11 @@ class Product
90119011
# @return [Fixnum]
90129012
attr_accessor :max_handling_time
90139013

9014+
# Maximum retail price (MRP) of the item. Applicable to India only.
9015+
# Corresponds to the JSON property `maximumRetailPrice`
9016+
# @return [Google::Apis::ContentV2_1::Price]
9017+
attr_accessor :maximum_retail_price
9018+
90149019
# The energy efficiency class as defined in EU directive 2010/30/EU.
90159020
# Corresponds to the JSON property `minEnergyEfficiencyClass`
90169021
# @return [String]
@@ -9329,6 +9334,7 @@ def update!(**args)
93299334
@material = args[:material] if args.key?(:material)
93309335
@max_energy_efficiency_class = args[:max_energy_efficiency_class] if args.key?(:max_energy_efficiency_class)
93319336
@max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time)
9337+
@maximum_retail_price = args[:maximum_retail_price] if args.key?(:maximum_retail_price)
93329338
@min_energy_efficiency_class = args[:min_energy_efficiency_class] if args.key?(:min_energy_efficiency_class)
93339339
@min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time)
93349340
@mobile_link = args[:mobile_link] if args.key?(:mobile_link)
@@ -11124,6 +11130,12 @@ class Promotion
1112411130
# @return [String]
1112511131
attr_accessor :coupon_value_type
1112611132

11133+
# The custom redemption restriction for the promotion. If the `
11134+
# redemption_restriction` field is set to `CUSTOM`, this field must be set.
11135+
# Corresponds to the JSON property `customRedemptionRestriction`
11136+
# @return [String]
11137+
attr_accessor :custom_redemption_restriction
11138+
1112711139
# Free gift description for the promotion.
1112811140
# Corresponds to the JSON property `freeGiftDescription`
1112911141
# @return [String]
@@ -11194,6 +11206,11 @@ class Promotion
1119411206
# @return [String]
1119511207
attr_accessor :long_title
1119611208

11209+
# The price represented as a number and currency.
11210+
# Corresponds to the JSON property `maxDiscountAmount`
11211+
# @return [Google::Apis::ContentV2_1::PriceAmount]
11212+
attr_accessor :max_discount_amount
11213+
1119711214
# The price represented as a number and currency.
1119811215
# Corresponds to the JSON property `minimumPurchaseAmount`
1119911216
# @return [Google::Apis::ContentV2_1::PriceAmount]
@@ -11295,6 +11312,11 @@ class Promotion
1129511312
# @return [Array<String>]
1129611313
attr_accessor :redemption_channel
1129711314

11315+
# The redemption restriction for the promotion.
11316+
# Corresponds to the JSON property `redemptionRestriction`
11317+
# @return [String]
11318+
attr_accessor :redemption_restriction
11319+
1129811320
# Shipping service names for the promotion.
1129911321
# Corresponds to the JSON property `shippingServiceNames`
1130011322
# @return [Array<String>]
@@ -11334,6 +11356,7 @@ def update!(**args)
1133411356
@brand_exclusion = args[:brand_exclusion] if args.key?(:brand_exclusion)
1133511357
@content_language = args[:content_language] if args.key?(:content_language)
1133611358
@coupon_value_type = args[:coupon_value_type] if args.key?(:coupon_value_type)
11359+
@custom_redemption_restriction = args[:custom_redemption_restriction] if args.key?(:custom_redemption_restriction)
1133711360
@free_gift_description = args[:free_gift_description] if args.key?(:free_gift_description)
1133811361
@free_gift_item_id = args[:free_gift_item_id] if args.key?(:free_gift_item_id)
1133911362
@free_gift_value = args[:free_gift_value] if args.key?(:free_gift_value)
@@ -11347,6 +11370,7 @@ def update!(**args)
1134711370
@limit_quantity = args[:limit_quantity] if args.key?(:limit_quantity)
1134811371
@limit_value = args[:limit_value] if args.key?(:limit_value)
1134911372
@long_title = args[:long_title] if args.key?(:long_title)
11373+
@max_discount_amount = args[:max_discount_amount] if args.key?(:max_discount_amount)
1135011374
@minimum_purchase_amount = args[:minimum_purchase_amount] if args.key?(:minimum_purchase_amount)
1135111375
@minimum_purchase_quantity = args[:minimum_purchase_quantity] if args.key?(:minimum_purchase_quantity)
1135211376
@money_budget = args[:money_budget] if args.key?(:money_budget)
@@ -11366,6 +11390,7 @@ def update!(**args)
1136611390
@promotion_status = args[:promotion_status] if args.key?(:promotion_status)
1136711391
@promotion_url = args[:promotion_url] if args.key?(:promotion_url)
1136811392
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
11393+
@redemption_restriction = args[:redemption_restriction] if args.key?(:redemption_restriction)
1136911394
@shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
1137011395
@store_applicability = args[:store_applicability] if args.key?(:store_applicability)
1137111396
@store_code = args[:store_code] if args.key?(:store_code)

generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/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 ContentV2_1
1818
# Version of the google-apis-content_v2_1 gem
19-
GEM_VERSION = "0.42.0"
19+
GEM_VERSION = "0.43.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 = "20250603"
25+
REVISION = "20250621"
2626
end
2727
end
2828
end

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4323,6 +4323,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
43234323
property :material, as: 'material'
43244324
property :max_energy_efficiency_class, as: 'maxEnergyEfficiencyClass'
43254325
property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime'
4326+
property :maximum_retail_price, as: 'maximumRetailPrice', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4327+
43264328
property :min_energy_efficiency_class, as: 'minEnergyEfficiencyClass'
43274329
property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
43284330
property :mobile_link, as: 'mobileLink'
@@ -4828,6 +4830,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
48284830
collection :brand_exclusion, as: 'brandExclusion'
48294831
property :content_language, as: 'contentLanguage'
48304832
property :coupon_value_type, as: 'couponValueType'
4833+
property :custom_redemption_restriction, as: 'customRedemptionRestriction'
48314834
property :free_gift_description, as: 'freeGiftDescription'
48324835
property :free_gift_item_id, as: 'freeGiftItemId'
48334836
property :free_gift_value, as: 'freeGiftValue', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
@@ -4843,6 +4846,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
48434846
property :limit_value, as: 'limitValue', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
48444847

48454848
property :long_title, as: 'longTitle'
4849+
property :max_discount_amount, as: 'maxDiscountAmount', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
4850+
48464851
property :minimum_purchase_amount, as: 'minimumPurchaseAmount', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
48474852

48484853
property :minimum_purchase_quantity, as: 'minimumPurchaseQuantity'
@@ -4868,6 +4873,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
48684873

48694874
property :promotion_url, as: 'promotionUrl'
48704875
collection :redemption_channel, as: 'redemptionChannel'
4876+
property :redemption_restriction, as: 'redemptionRestriction'
48714877
collection :shipping_service_names, as: 'shippingServiceNames'
48724878
property :store_applicability, as: 'storeApplicability'
48734879
collection :store_code, as: 'storeCode'

0 commit comments

Comments
 (0)