google-apis-merchantapi_products_v1beta 0.9.0 → 0.11.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: 1b5b82705204e4ca9eacce7a9352b45b7a7a6a5bcbcbdc49682375d5482626bd
4
- data.tar.gz: ac5add72e0df94f41256e5a497381b8eaeb3ac2040396329dd500ca9d34a3809
3
+ metadata.gz: 33ff56b2b2c1d7fdecf392c009ab16b0fa64cd7afc1a0c32b5ff8ddc75a56bd9
4
+ data.tar.gz: c11ff69ee2654380e3d8d506e7c222ba6d7bb0063c26689e57c3f0bc82c1fbad
5
5
  SHA512:
6
- metadata.gz: d9490338defd707273e632b79538fd15b91342284df8fea727b2e9d06eed9eeeab8b9d8a2c8fdd7cbf1d5de894bd4d4ce4c138d63a719270574968a819036cbf
7
- data.tar.gz: 0f27b91c80c0812d1c635fadf4452718527ebb2eb00bc61f8a9c61922ddd3857c852702b21092296c2132b8c21a683adb6bcca916b2aed252ef5d6d7f3b70802
6
+ metadata.gz: 0b668fd3ab1aab043dbf8f2ca3d2bf97574d11d53db7ccc250d6af098c0799a306558798851fd51949baab4f7d6a9b99b8fce90744adfe2417faca974593567f
7
+ data.tar.gz: '058e1ab2b932dab36b1cb1df23b7df7463e3efdee85a59f06ca6a35e22a5e2b14c250f526df055c1aad02059306283aa6085c98a069c5354fe1d3aadbbe70ed6'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-merchantapi_products_v1beta
2
2
 
3
+ ### v0.11.0 (2025-04-13)
4
+
5
+ * Regenerated from discovery document revision 20250409
6
+
7
+ ### v0.10.0 (2025-03-23)
8
+
9
+ * Regenerated from discovery document revision 20250317
10
+
3
11
  ### v0.9.0 (2025-03-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20250311
@@ -641,6 +641,37 @@ module Google
641
641
  end
642
642
  end
643
643
 
644
+ # Information regarding Automated Discounts.
645
+ class AutomatedDiscounts
646
+ include Google::Apis::Core::Hashable
647
+
648
+ # The price represented as a number and currency.
649
+ # Corresponds to the JSON property `gadPrice`
650
+ # @return [Google::Apis::MerchantapiProductsV1beta::Price]
651
+ attr_accessor :gad_price
652
+
653
+ # The price represented as a number and currency.
654
+ # Corresponds to the JSON property `priorPrice`
655
+ # @return [Google::Apis::MerchantapiProductsV1beta::Price]
656
+ attr_accessor :prior_price
657
+
658
+ # The price represented as a number and currency.
659
+ # Corresponds to the JSON property `priorPriceProgressive`
660
+ # @return [Google::Apis::MerchantapiProductsV1beta::Price]
661
+ attr_accessor :prior_price_progressive
662
+
663
+ def initialize(**args)
664
+ update!(**args)
665
+ end
666
+
667
+ # Update properties of this object
668
+ def update!(**args)
669
+ @gad_price = args[:gad_price] if args.key?(:gad_price)
670
+ @prior_price = args[:prior_price] if args.key?(:prior_price)
671
+ @prior_price_progressive = args[:prior_price_progressive] if args.key?(:prior_price_progressive)
672
+ end
673
+ end
674
+
644
675
  # Product [certification](https://support.google.com/merchants/answer/13528839),
645
676
  # initially introduced for EU energy efficiency labeling compliance using the EU
646
677
  # EPREL database.
@@ -1156,14 +1187,13 @@ module Google
1156
1187
 
1157
1188
  # The processed product, built from multiple product inputs after applying rules
1158
1189
  # and supplemental data sources. This processed product matches what is shown in
1159
- # your Merchant Center account and in Shopping ads and other surfaces across
1160
- # Google. Each product is built from exactly one primary data source product
1161
- # input, and multiple supplemental data source inputs. After inserting, updating,
1162
- # or deleting a product input, it may take several minutes before the updated
1163
- # processed product can be retrieved. All fields in the processed product and
1164
- # its sub-messages match the name of their corresponding attribute in the [
1165
- # Product data specification](https://support.google.com/merchants/answer/
1166
- # 7052112) with some exceptions.
1190
+ # your Merchant Center account. Each product is built from exactly one primary
1191
+ # data source product input, and multiple supplemental data source inputs. After
1192
+ # inserting, updating, or deleting a product input, it may take several minutes
1193
+ # before the updated processed product can be retrieved. All fields in the
1194
+ # processed product and its sub-messages match the name of their corresponding
1195
+ # attribute in the [Product data specification](https://support.google.com/
1196
+ # merchants/answer/7052112) with some exceptions.
1167
1197
  class Product
1168
1198
  include Google::Apis::Core::Hashable
1169
1199
 
@@ -1172,6 +1202,11 @@ module Google
1172
1202
  # @return [Google::Apis::MerchantapiProductsV1beta::Attributes]
1173
1203
  attr_accessor :attributes
1174
1204
 
1205
+ # Information regarding Automated Discounts.
1206
+ # Corresponds to the JSON property `automatedDiscounts`
1207
+ # @return [Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts]
1208
+ attr_accessor :automated_discounts
1209
+
1175
1210
  # Output only. The [channel](https://support.google.com/merchants/answer/7361332)
1176
1211
  # of the product.
1177
1212
  # Corresponds to the JSON property `channel`
@@ -1203,10 +1238,10 @@ module Google
1203
1238
  # @return [String]
1204
1239
  attr_accessor :feed_label
1205
1240
 
1206
- # The name of the product. Format: `"`product.name=accounts/`account`/products/`
1207
- # product``"` where the last section `product` consists of 4 parts: channel~
1208
- # content_language~feed_label~offer_id example for product name is "accounts/123/
1209
- # products/online~en~US~sku123"
1241
+ # The name of the product. Format: `accounts/`account`/products/`product`` where
1242
+ # the last section `product` consists of 4 parts: `channel~content_language~
1243
+ # feed_label~offer_id` example for product name is `accounts/123/products/online~
1244
+ # en~US~sku123`
1210
1245
  # Corresponds to the JSON property `name`
1211
1246
  # @return [String]
1212
1247
  attr_accessor :name
@@ -1244,6 +1279,7 @@ module Google
1244
1279
  # Update properties of this object
1245
1280
  def update!(**args)
1246
1281
  @attributes = args[:attributes] if args.key?(:attributes)
1282
+ @automated_discounts = args[:automated_discounts] if args.key?(:automated_discounts)
1247
1283
  @channel = args[:channel] if args.key?(:channel)
1248
1284
  @content_language = args[:content_language] if args.key?(:content_language)
1249
1285
  @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
@@ -1370,8 +1406,11 @@ module Google
1370
1406
  # After inserting, updating, or deleting a product input, it may take several
1371
1407
  # minutes before the processed product can be retrieved. All fields in the
1372
1408
  # product input and its sub-messages match the English name of their
1373
- # corresponding attribute in the vertical spec with [some exceptions](https://
1374
- # support.google.com/merchants/answer/7052112).
1409
+ # corresponding attribute in the [Products Data Specification](https://support.
1410
+ # google.com/merchants/answer/188494) with [some exceptions](https://support.
1411
+ # google.com/merchants/answer/7052112). The following reference documentation
1412
+ # lists the field names in the **camelCase** casing style while the Products
1413
+ # Data Specification lists the names in the **snake_case** casing style.
1375
1414
  class ProductInput
1376
1415
  include Google::Apis::Core::Hashable
1377
1416
 
@@ -1395,12 +1434,11 @@ module Google
1395
1434
  # Optional. A list of custom (merchant-provided) attributes. It can also be used
1396
1435
  # for submitting any attribute of the data specification in its generic form (
1397
1436
  # for example, `` "name": "size type", "value": "regular" ``). This is useful
1398
- # for submitting attributes not explicitly exposed by the API, such as
1399
- # additional attributes used for Buy on Google. Maximum allowed number of
1400
- # characters for each custom attribute is 10240 (represents sum of characters
1401
- # for name and value). Maximum 2500 custom attributes can be set per product,
1402
- # with total size of 102.4kB. Underscores in custom attribute names are replaced
1403
- # by spaces upon insertion.
1437
+ # for submitting attributes not explicitly exposed by the API. Maximum allowed
1438
+ # number of characters for each custom attribute is 10240 (represents sum of
1439
+ # characters for name and value). Maximum 2500 custom attributes can be set per
1440
+ # product, with total size of 102.4kB. Underscores in custom attribute names are
1441
+ # replaced by spaces upon insertion.
1404
1442
  # Corresponds to the JSON property `customAttributes`
1405
1443
  # @return [Array<Google::Apis::MerchantapiProductsV1beta::CustomAttribute>]
1406
1444
  attr_accessor :custom_attributes
@@ -1411,11 +1449,10 @@ module Google
1411
1449
  # @return [String]
1412
1450
  attr_accessor :feed_label
1413
1451
 
1414
- # Identifier. The name of the product input. Format: `"`productinput.name=
1415
- # accounts/`account`/productInputs/`productinput``"` where the last section `
1416
- # productinput` consists of 4 parts: channel~content_language~feed_label~
1417
- # offer_id example for product input name is "accounts/123/productInputs/online~
1418
- # en~US~sku123"
1452
+ # Identifier. The name of the product input. Format: `accounts/`account`/
1453
+ # productInputs/`productinput`` where the last section `productinput` consists
1454
+ # of 4 parts: `channel~content_language~feed_label~offer_id` example for product
1455
+ # input name is `accounts/123/productInputs/online~en~US~sku123`
1419
1456
  # Corresponds to the JSON property `name`
1420
1457
  # @return [String]
1421
1458
  attr_accessor :name
@@ -1429,8 +1466,8 @@ module Google
1429
1466
  # @return [String]
1430
1467
  attr_accessor :offer_id
1431
1468
 
1432
- # Output only. The name of the processed product. Format: `"`product.name=
1433
- # accounts/`account`/products/`product``"`
1469
+ # Output only. The name of the processed product. Format: `accounts/`account`/
1470
+ # products/`product``
1434
1471
  # Corresponds to the JSON property `product`
1435
1472
  # @return [String]
1436
1473
  attr_accessor :product
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MerchantapiProductsV1beta
18
18
  # Version of the google-apis-merchantapi_products_v1beta gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250311"
25
+ REVISION = "20250409"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AutomatedDiscounts
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Certification
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -341,6 +347,18 @@ module Google
341
347
  end
342
348
  end
343
349
 
350
+ class AutomatedDiscounts
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ property :gad_price, as: 'gadPrice', class: Google::Apis::MerchantapiProductsV1beta::Price, decorator: Google::Apis::MerchantapiProductsV1beta::Price::Representation
354
+
355
+ property :prior_price, as: 'priorPrice', class: Google::Apis::MerchantapiProductsV1beta::Price, decorator: Google::Apis::MerchantapiProductsV1beta::Price::Representation
356
+
357
+ property :prior_price_progressive, as: 'priorPriceProgressive', class: Google::Apis::MerchantapiProductsV1beta::Price, decorator: Google::Apis::MerchantapiProductsV1beta::Price::Representation
358
+
359
+ end
360
+ end
361
+
344
362
  class Certification
345
363
  # @private
346
364
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -482,6 +500,8 @@ module Google
482
500
  class Representation < Google::Apis::Core::JsonRepresentation
483
501
  property :attributes, as: 'attributes', class: Google::Apis::MerchantapiProductsV1beta::Attributes, decorator: Google::Apis::MerchantapiProductsV1beta::Attributes::Representation
484
502
 
503
+ property :automated_discounts, as: 'automatedDiscounts', class: Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts, decorator: Google::Apis::MerchantapiProductsV1beta::AutomatedDiscounts::Representation
504
+
485
505
  property :channel, as: 'channel'
486
506
  property :content_language, as: 'contentLanguage'
487
507
  collection :custom_attributes, as: 'customAttributes', class: Google::Apis::MerchantapiProductsV1beta::CustomAttribute, decorator: Google::Apis::MerchantapiProductsV1beta::CustomAttribute::Representation
@@ -55,10 +55,10 @@ module Google
55
55
  # updating, or deleting a product input, it may take several minutes before the
56
56
  # processed product can be retrieved.
57
57
  # @param [String] name
58
- # Required. The name of the product input resource to delete. Format: accounts/`
59
- # account`/productInputs/`product` where the last section `product` consists of
60
- # 4 parts: channel~content_language~feed_label~offer_id example for product name
61
- # is "accounts/123/productInputs/online~en~US~sku123"
58
+ # Required. The name of the product input resource to delete. Format: `accounts/`
59
+ # account`/productInputs/`product`` where the last section `product` consists of
60
+ # 4 parts: `channel~content_language~feed_label~offer_id` example for product
61
+ # name is `accounts/123/productInputs/online~en~US~sku123`.
62
62
  # @param [String] data_source
63
63
  # Required. The primary or supplemental data source from which the product input
64
64
  # should be deleted. Format: `accounts/`account`/dataSources/`datasource``.
@@ -95,8 +95,8 @@ module Google
95
95
  # replaces that entry. After inserting, updating, or deleting a product input,
96
96
  # it may take several minutes before the processed product can be retrieved.
97
97
  # @param [String] parent
98
- # Required. The account where this product will be inserted. Format: accounts/`
99
- # account`
98
+ # Required. The account where this product will be inserted. Format: `accounts/`
99
+ # account``
100
100
  # @param [Google::Apis::MerchantapiProductsV1beta::ProductInput] product_input_object
101
101
  # @param [String] data_source
102
102
  # Required. The primary or supplemental product data source name. If the product
@@ -133,14 +133,67 @@ module Google
133
133
  execute_or_queue_command(command, &block)
134
134
  end
135
135
 
136
+ # Updates the existing product input in your Merchant Center account. After
137
+ # inserting, updating, or deleting a product input, it may take several minutes
138
+ # before the processed product can be retrieved.
139
+ # @param [String] name
140
+ # Identifier. The name of the product input. Format: `accounts/`account`/
141
+ # productInputs/`productinput`` where the last section `productinput` consists
142
+ # of 4 parts: `channel~content_language~feed_label~offer_id` example for product
143
+ # input name is `accounts/123/productInputs/online~en~US~sku123`
144
+ # @param [Google::Apis::MerchantapiProductsV1beta::ProductInput] product_input_object
145
+ # @param [String] data_source
146
+ # Required. The primary or supplemental product data source where `data_source`
147
+ # name identifies the product input to be updated. Only API data sources are
148
+ # supported. Format: `accounts/`account`/dataSources/`datasource``.
149
+ # @param [String] update_mask
150
+ # Optional. The list of product attributes to be updated. If the update mask is
151
+ # omitted, then it is treated as implied field mask equivalent to all fields
152
+ # that are populated (have a non-empty value). Attributes specified in the
153
+ # update mask without a value specified in the body will be deleted from the
154
+ # product. Update mask can only be specified for top level fields in attributes
155
+ # and custom attributes. To specify the update mask for custom attributes you
156
+ # need to add the `custom_attribute.` prefix. Providing special "*" value for
157
+ # full product replacement is not supported.
158
+ # @param [String] fields
159
+ # Selector specifying which fields to include in a partial response.
160
+ # @param [String] quota_user
161
+ # Available to use for quota purposes for server-side applications. Can be any
162
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [Google::Apis::RequestOptions] options
164
+ # Request-specific options
165
+ #
166
+ # @yield [result, err] Result & error if block supplied
167
+ # @yieldparam result [Google::Apis::MerchantapiProductsV1beta::ProductInput] parsed result object
168
+ # @yieldparam err [StandardError] error object if request failed
169
+ #
170
+ # @return [Google::Apis::MerchantapiProductsV1beta::ProductInput]
171
+ #
172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
174
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
175
+ def patch_account_product_input(name, product_input_object = nil, data_source: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
176
+ command = make_simple_command(:patch, 'products/v1beta/{+name}', options)
177
+ command.request_representation = Google::Apis::MerchantapiProductsV1beta::ProductInput::Representation
178
+ command.request_object = product_input_object
179
+ command.response_representation = Google::Apis::MerchantapiProductsV1beta::ProductInput::Representation
180
+ command.response_class = Google::Apis::MerchantapiProductsV1beta::ProductInput
181
+ command.params['name'] = name unless name.nil?
182
+ command.query['dataSource'] = data_source unless data_source.nil?
183
+ command.query['updateMask'] = update_mask unless update_mask.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
186
+ execute_or_queue_command(command, &block)
187
+ end
188
+
136
189
  # Retrieves the processed product from your Merchant Center account. After
137
190
  # inserting, updating, or deleting a product input, it may take several minutes
138
191
  # before the updated final product can be retrieved.
139
192
  # @param [String] name
140
193
  # Required. The name of the product to retrieve. Format: `accounts/`account`/
141
- # products/`product`` where the last section `product` consists of 4 parts:
142
- # channel~content_language~feed_label~offer_id example for product name is "
143
- # accounts/123/products/online~en~US~sku123"
194
+ # products/`product`` where the last section `product` consists of 4 parts: `
195
+ # channel~content_language~feed_label~offer_id` example for product name is `
196
+ # accounts/123/products/online~en~US~sku123`
144
197
  # @param [String] fields
145
198
  # Selector specifying which fields to include in a partial response.
146
199
  # @param [String] quota_user
@@ -169,13 +222,13 @@ module Google
169
222
  end
170
223
 
171
224
  # Lists the processed products in your Merchant Center account. The response
172
- # might contain fewer items than specified by pageSize. Rely on pageToken to
225
+ # might contain fewer items than specified by `pageSize`. Rely on `pageToken` to
173
226
  # determine if there are more items to be requested. After inserting, updating,
174
227
  # or deleting a product input, it may take several minutes before the updated
175
228
  # processed product can be retrieved.
176
229
  # @param [String] parent
177
- # Required. The account to list processed products for. Format: accounts/`
178
- # account`
230
+ # Required. The account to list processed products for. Format: `accounts/`
231
+ # account``
179
232
  # @param [Fixnum] page_size
180
233
  # The maximum number of products to return. The service may return fewer than
181
234
  # this value. The maximum value is 250; values above 250 will be coerced to 250.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_products_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-16 00:00:00.000000000 Z
10
+ date: 2025-04-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -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-merchantapi_products_v1beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_products_v1beta/v0.9.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_products_v1beta/v0.11.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_products_v1beta
62
62
  rdoc_options: []
63
63
  require_paths: