google-apis-content_v2_1 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8e33a2662f79a68c8e517bae09150d13ff88a97b4733f5db251ba854bf51900
4
- data.tar.gz: 44502926099d53ed6a59952be0f09c9800932ab6a87605fc5c77fb780e460078
3
+ metadata.gz: 7809653730f655594b522bc0e2c1f8fb8e23a1cfeae599c01086feb9a28b0e91
4
+ data.tar.gz: a2f83532b456319d48b8163e03f054cac1007a4acdaff58cc7a4d266e5365c5b
5
5
  SHA512:
6
- metadata.gz: 5a67cc46cbdc4514cf69a4b4570136aef3bf897101b5eed409639e81c13b382d7f51605684d5f963b0fb1c09e16bb05d4df59e9e0c1a0a00061141829a7a8251
7
- data.tar.gz: e3c556618d916ae7c41ca700a4fea736f587daf07f66e4a2208ef4229df2a717687df855b81b3bfc687d12490de18b2676b12e44d9a22970b7814c3303d56872
6
+ metadata.gz: 85143f49bf9ffe86f18eac60cfa18dcaa1e8914d5bc8d469f2e796bae15f263653b9001c4dec65197b5661aef44db636e55f8904a5e57e44e822d80c7e31f202
7
+ data.tar.gz: 07f98fbc638b49946f06c5ced3d3b120c474f163d80c03bb3306f6d1cca31dd0e348fdb78082a1fa40e17679b361251d4128b8bca899d7b75bacaf1a7e04824e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.25.0 (2021-10-26)
4
+
5
+ * Regenerated from discovery document revision 20211021
6
+
3
7
  ### v0.24.0 (2021-10-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20211007
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Content service in particular.)
67
67
 
@@ -251,7 +251,7 @@ module Google
251
251
 
252
252
  # Verification status of the phone number of the business. This status is read
253
253
  # only and can be updated only by successful phone verification. Acceptable
254
- # values are: - "`verified`" - "`unverified`" "`unspecified`" -
254
+ # values are: - "`verified`" - "`unverified`"
255
255
  # Corresponds to the JSON property `phoneVerificationStatus`
256
256
  # @return [String]
257
257
  attr_accessor :phone_verification_status
@@ -6952,6 +6952,11 @@ module Google
6952
6952
  class OrderTrackingSignalLineItemDetails
6953
6953
  include Google::Apis::Core::Hashable
6954
6954
 
6955
+ # Brand of the product.
6956
+ # Corresponds to the JSON property `brand`
6957
+ # @return [String]
6958
+ attr_accessor :brand
6959
+
6955
6960
  # The Global Trade Item Number.
6956
6961
  # Corresponds to the JSON property `gtin`
6957
6962
  # @return [String]
@@ -6967,7 +6972,8 @@ module Google
6967
6972
  # @return [String]
6968
6973
  attr_accessor :mpn
6969
6974
 
6970
- # Plain text description of this product.
6975
+ # Plain text description of this product (deprecated: Please use product_title
6976
+ # instead).
6971
6977
  # Corresponds to the JSON property `productDescription`
6972
6978
  # @return [String]
6973
6979
  attr_accessor :product_description
@@ -6978,17 +6984,22 @@ module Google
6978
6984
  # @return [String]
6979
6985
  attr_accessor :product_id
6980
6986
 
6987
+ # Plain text title of this product.
6988
+ # Corresponds to the JSON property `productTitle`
6989
+ # @return [String]
6990
+ attr_accessor :product_title
6991
+
6981
6992
  # Required. The quantity of the line item in the order.
6982
6993
  # Corresponds to the JSON property `quantity`
6983
6994
  # @return [Fixnum]
6984
6995
  attr_accessor :quantity
6985
6996
 
6986
- # Merchant SKU for this item.
6997
+ # Merchant SKU for this item (deprecated).
6987
6998
  # Corresponds to the JSON property `sku`
6988
6999
  # @return [String]
6989
7000
  attr_accessor :sku
6990
7001
 
6991
- # Universal product code for this item.
7002
+ # Universal product code for this item (deprecated: Please use GTIN instead).
6992
7003
  # Corresponds to the JSON property `upc`
6993
7004
  # @return [String]
6994
7005
  attr_accessor :upc
@@ -6999,11 +7010,13 @@ module Google
6999
7010
 
7000
7011
  # Update properties of this object
7001
7012
  def update!(**args)
7013
+ @brand = args[:brand] if args.key?(:brand)
7002
7014
  @gtin = args[:gtin] if args.key?(:gtin)
7003
7015
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
7004
7016
  @mpn = args[:mpn] if args.key?(:mpn)
7005
7017
  @product_description = args[:product_description] if args.key?(:product_description)
7006
7018
  @product_id = args[:product_id] if args.key?(:product_id)
7019
+ @product_title = args[:product_title] if args.key?(:product_title)
7007
7020
  @quantity = args[:quantity] if args.key?(:quantity)
7008
7021
  @sku = args[:sku] if args.key?(:sku)
7009
7022
  @upc = args[:upc] if args.key?(:upc)
@@ -11724,7 +11737,7 @@ module Google
11724
11737
  # promotion. Content API methods that operate on promotions take this as their
11725
11738
  # promotionId parameter. The REST ID for a promotion is of the form channel:
11726
11739
  # contentLanguage:targetCountry:promotionId The channel field will have a value
11727
- # of "online", "local", or "onlinelocal".
11740
+ # of "online", "in_store", or "online_in_store".
11728
11741
  # Corresponds to the JSON property `id`
11729
11742
  # @return [String]
11730
11743
  attr_accessor :id
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.25.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211007"
25
+ REVISION = "20211021"
26
26
  end
27
27
  end
28
28
  end
@@ -4202,11 +4202,13 @@ module Google
4202
4202
  class OrderTrackingSignalLineItemDetails
4203
4203
  # @private
4204
4204
  class Representation < Google::Apis::Core::JsonRepresentation
4205
+ property :brand, as: 'brand'
4205
4206
  property :gtin, as: 'gtin'
4206
4207
  property :line_item_id, as: 'lineItemId'
4207
4208
  property :mpn, as: 'mpn'
4208
4209
  property :product_description, as: 'productDescription'
4209
4210
  property :product_id, as: 'productId'
4211
+ property :product_title, as: 'productTitle'
4210
4212
  property :quantity, :numeric_string => true, as: 'quantity'
4211
4213
  property :sku, as: 'sku'
4212
4214
  property :upc, as: 'upc'
@@ -4517,6 +4517,39 @@ module Google
4517
4517
  execute_or_queue_command(command, &block)
4518
4518
  end
4519
4519
 
4520
+ # Retrieves a promotion from your Merchant Center account.
4521
+ # @param [Fixnum] merchant_id
4522
+ # Required. The ID of the account that contains the collection.
4523
+ # @param [String] id
4524
+ # Required. REST ID of the promotion to retrieve.
4525
+ # @param [String] fields
4526
+ # Selector specifying which fields to include in a partial response.
4527
+ # @param [String] quota_user
4528
+ # Available to use for quota purposes for server-side applications. Can be any
4529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4530
+ # @param [Google::Apis::RequestOptions] options
4531
+ # Request-specific options
4532
+ #
4533
+ # @yield [result, err] Result & error if block supplied
4534
+ # @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
4535
+ # @yieldparam err [StandardError] error object if request failed
4536
+ #
4537
+ # @return [Google::Apis::ContentV2_1::Promotion]
4538
+ #
4539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4542
+ def get_promotion(merchant_id, id, fields: nil, quota_user: nil, options: nil, &block)
4543
+ command = make_simple_command(:get, '{merchantId}/promotions/{id}', options)
4544
+ command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
4545
+ command.response_class = Google::Apis::ContentV2_1::Promotion
4546
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4547
+ command.params['id'] = id unless id.nil?
4548
+ command.query['fields'] = fields unless fields.nil?
4549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4550
+ execute_or_queue_command(command, &block)
4551
+ end
4552
+
4520
4553
  # Retrieves a Merchant Center account's pubsub notification settings.
4521
4554
  # @param [Fixnum] merchant_id
4522
4555
  # The ID of the account for which to get pubsub notification settings.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.24.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.25.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: