Skip to content

Commit b018d5b

Browse files
feat: Automated regeneration of content v2.1 client (googleapis#21115)
Auto-created at 2024-12-22 10:04:28 +0000 using the toys pull request generator.
1 parent b9bc41f commit b018d5b

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127893,6 +127893,8 @@
127893127893
"/content:v2.1/Product/structuredDescription": structured_description
127894127894
"/content:v2.1/Product/structuredTitle": structured_title
127895127895
"/content:v2.1/Product/subscriptionCost": subscription_cost
127896+
"/content:v2.1/Product/sustainabilityIncentives": sustainability_incentives
127897+
"/content:v2.1/Product/sustainabilityIncentives/sustainability_incentive": sustainability_incentive
127896127898
"/content:v2.1/Product/targetCountry": target_country
127897127899
"/content:v2.1/Product/taxCategory": tax_category
127898127900
"/content:v2.1/Product/taxes": taxes
@@ -128023,6 +128025,10 @@
128023128025
"/content:v2.1/ProductSubscriptionCost/amount": amount
128024128026
"/content:v2.1/ProductSubscriptionCost/period": period
128025128027
"/content:v2.1/ProductSubscriptionCost/periodLength": period_length
128028+
"/content:v2.1/ProductSustainabilityIncentive": product_sustainability_incentive
128029+
"/content:v2.1/ProductSustainabilityIncentive/amount": amount
128030+
"/content:v2.1/ProductSustainabilityIncentive/percentage": percentage
128031+
"/content:v2.1/ProductSustainabilityIncentive/type": type
128026128032
"/content:v2.1/ProductTax": product_tax
128027128033
"/content:v2.1/ProductTax/country": country
128028128034
"/content:v2.1/ProductTax/locationId": location_id

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.37.0 (2024-12-22)
4+
5+
* Regenerated from discovery document revision 20241217
6+
37
### v0.36.0 (2024-11-24)
48

59
* Regenerated from discovery document revision 20241120

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9171,6 +9171,11 @@ class Product
91719171
# @return [Google::Apis::ContentV2_1::ProductSubscriptionCost]
91729172
attr_accessor :subscription_cost
91739173

9174+
# Optional. The list of sustainability incentive programs.
9175+
# Corresponds to the JSON property `sustainabilityIncentives`
9176+
# @return [Array<Google::Apis::ContentV2_1::ProductSustainabilityIncentive>]
9177+
attr_accessor :sustainability_incentives
9178+
91749179
# Required. The CLDR territory code for the item's country of sale.
91759180
# Corresponds to the JSON property `targetCountry`
91769181
# @return [String]
@@ -9313,6 +9318,7 @@ def update!(**args)
93139318
@structured_description = args[:structured_description] if args.key?(:structured_description)
93149319
@structured_title = args[:structured_title] if args.key?(:structured_title)
93159320
@subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost)
9321+
@sustainability_incentives = args[:sustainability_incentives] if args.key?(:sustainability_incentives)
93169322
@target_country = args[:target_country] if args.key?(:target_country)
93179323
@tax_category = args[:tax_category] if args.key?(:tax_category)
93189324
@taxes = args[:taxes] if args.key?(:taxes)
@@ -10153,6 +10159,38 @@ def update!(**args)
1015310159
end
1015410160
end
1015510161

10162+
# Information regarding sustainability related incentive programs such as
10163+
# rebates or tax relief.
10164+
class ProductSustainabilityIncentive
10165+
include Google::Apis::Core::Hashable
10166+
10167+
# Optional. The fixed amount of the incentive.
10168+
# Corresponds to the JSON property `amount`
10169+
# @return [Google::Apis::ContentV2_1::Price]
10170+
attr_accessor :amount
10171+
10172+
# Optional. The percentage of the sale price that the incentive is applied to.
10173+
# Corresponds to the JSON property `percentage`
10174+
# @return [Float]
10175+
attr_accessor :percentage
10176+
10177+
# Required. Sustainability incentive program.
10178+
# Corresponds to the JSON property `type`
10179+
# @return [String]
10180+
attr_accessor :type
10181+
10182+
def initialize(**args)
10183+
update!(**args)
10184+
end
10185+
10186+
# Update properties of this object
10187+
def update!(**args)
10188+
@amount = args[:amount] if args.key?(:amount)
10189+
@percentage = args[:percentage] if args.key?(:percentage)
10190+
@type = args[:type] if args.key?(:type)
10191+
end
10192+
end
10193+
1015610194
#
1015710195
class ProductTax
1015810196
include Google::Apis::Core::Hashable

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.36.0"
19+
GEM_VERSION = "0.37.0"
2020

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

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

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
13661366
include Google::Apis::Core::JsonObjectSupport
13671367
end
13681368

1369+
class ProductSustainabilityIncentive
1370+
class Representation < Google::Apis::Core::JsonRepresentation; end
1371+
1372+
include Google::Apis::Core::JsonObjectSupport
1373+
end
1374+
13691375
class ProductTax
13701376
class Representation < Google::Apis::Core::JsonRepresentation; end
13711377

@@ -4367,6 +4373,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
43674373

43684374
property :subscription_cost, as: 'subscriptionCost', class: Google::Apis::ContentV2_1::ProductSubscriptionCost, decorator: Google::Apis::ContentV2_1::ProductSubscriptionCost::Representation
43694375

4376+
collection :sustainability_incentives, as: 'sustainabilityIncentives', class: Google::Apis::ContentV2_1::ProductSustainabilityIncentive, decorator: Google::Apis::ContentV2_1::ProductSustainabilityIncentive::Representation
4377+
43704378
property :target_country, as: 'targetCountry'
43714379
property :tax_category, as: 'taxCategory'
43724380
collection :taxes, as: 'taxes', class: Google::Apis::ContentV2_1::ProductTax, decorator: Google::Apis::ContentV2_1::ProductTax::Representation
@@ -4586,6 +4594,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
45864594
end
45874595
end
45884596

4597+
class ProductSustainabilityIncentive
4598+
# @private
4599+
class Representation < Google::Apis::Core::JsonRepresentation
4600+
property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4601+
4602+
property :percentage, as: 'percentage'
4603+
property :type, as: 'type'
4604+
end
4605+
end
4606+
45894607
class ProductTax
45904608
# @private
45914609
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)