Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of content v2.1 client #21115

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127773,6 +127773,8 @@
"/content:v2.1/Product/structuredDescription": structured_description
"/content:v2.1/Product/structuredTitle": structured_title
"/content:v2.1/Product/subscriptionCost": subscription_cost
"/content:v2.1/Product/sustainabilityIncentives": sustainability_incentives
"/content:v2.1/Product/sustainabilityIncentives/sustainability_incentive": sustainability_incentive
"/content:v2.1/Product/targetCountry": target_country
"/content:v2.1/Product/taxCategory": tax_category
"/content:v2.1/Product/taxes": taxes
Expand Down Expand Up @@ -127903,6 +127905,10 @@
"/content:v2.1/ProductSubscriptionCost/amount": amount
"/content:v2.1/ProductSubscriptionCost/period": period
"/content:v2.1/ProductSubscriptionCost/periodLength": period_length
"/content:v2.1/ProductSustainabilityIncentive": product_sustainability_incentive
"/content:v2.1/ProductSustainabilityIncentive/amount": amount
"/content:v2.1/ProductSustainabilityIncentive/percentage": percentage
"/content:v2.1/ProductSustainabilityIncentive/type": type
"/content:v2.1/ProductTax": product_tax
"/content:v2.1/ProductTax/country": country
"/content:v2.1/ProductTax/locationId": location_id
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-content_v2_1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-content_v2_1

### v0.37.0 (2024-12-22)

* Regenerated from discovery document revision 20241217

### v0.36.0 (2024-11-24)

* Regenerated from discovery document revision 20241120
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9171,6 +9171,11 @@ class Product
# @return [Google::Apis::ContentV2_1::ProductSubscriptionCost]
attr_accessor :subscription_cost

# Optional. The list of sustainability incentive programs.
# Corresponds to the JSON property `sustainabilityIncentives`
# @return [Array<Google::Apis::ContentV2_1::ProductSustainabilityIncentive>]
attr_accessor :sustainability_incentives

# Required. The CLDR territory code for the item's country of sale.
# Corresponds to the JSON property `targetCountry`
# @return [String]
Expand Down Expand Up @@ -9313,6 +9318,7 @@ def update!(**args)
@structured_description = args[:structured_description] if args.key?(:structured_description)
@structured_title = args[:structured_title] if args.key?(:structured_title)
@subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost)
@sustainability_incentives = args[:sustainability_incentives] if args.key?(:sustainability_incentives)
@target_country = args[:target_country] if args.key?(:target_country)
@tax_category = args[:tax_category] if args.key?(:tax_category)
@taxes = args[:taxes] if args.key?(:taxes)
Expand Down Expand Up @@ -10153,6 +10159,38 @@ def update!(**args)
end
end

# Information regarding sustainability related incentive programs such as
# rebates or tax relief.
class ProductSustainabilityIncentive
include Google::Apis::Core::Hashable

# Optional. The fixed amount of the incentive.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2_1::Price]
attr_accessor :amount

# Optional. The percentage of the sale price that the incentive is applied to.
# Corresponds to the JSON property `percentage`
# @return [Float]
attr_accessor :percentage

# Required. Sustainability incentive program.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@percentage = args[:percentage] if args.key?(:percentage)
@type = args[:type] if args.key?(:type)
end
end

#
class ProductTax
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ContentV2_1
# Version of the google-apis-content_v2_1 gem
GEM_VERSION = "0.36.0"
GEM_VERSION = "0.37.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20241120"
REVISION = "20241217"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class ProductSustainabilityIncentive
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ProductTax
class Representation < Google::Apis::Core::JsonRepresentation; end

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

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

collection :sustainability_incentives, as: 'sustainabilityIncentives', class: Google::Apis::ContentV2_1::ProductSustainabilityIncentive, decorator: Google::Apis::ContentV2_1::ProductSustainabilityIncentive::Representation

property :target_country, as: 'targetCountry'
property :tax_category, as: 'taxCategory'
collection :taxes, as: 'taxes', class: Google::Apis::ContentV2_1::ProductTax, decorator: Google::Apis::ContentV2_1::ProductTax::Representation
Expand Down Expand Up @@ -4586,6 +4594,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ProductSustainabilityIncentive
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation

property :percentage, as: 'percentage'
property :type, as: 'type'
end
end

class ProductTax
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Loading