google-apis-content_v2_1 0.10.0 → 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffaeb8103a7fd88056c8714a60aded6995f473114d4f93f3f081e4d3cc9f11f0
|
4
|
+
data.tar.gz: 6b71693cc2beaab8b3e36b457eb01c256ab3aa1940d6dfe7b770c85652a6e34e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fe2be7358f36712eab9820eeb59f79e0bfea3c0f30c0069372f068efec6642272e083acaafcc3cfb29a18e22140e7380c0f6bd4c5ae587315d6881d82c7cdfa
|
7
|
+
data.tar.gz: d84c295ce5b4a556f0776a5d7b406fb1d2c4b23bbe2457d42a8b49c83631582afa0710d49519dfb53de5f9e659a5fc61ce081c7268227194c21fee6f127f31c7
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Release history for google-apis-content_v2_1
|
2
2
|
|
3
|
-
### v0.
|
3
|
+
### v0.11.0 (2021-05-19)
|
4
4
|
|
5
|
-
*
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.10.0 (2021-05-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210514
|
6
10
|
|
7
11
|
### v0.9.0 (2021-03-30)
|
8
12
|
|
@@ -6448,7 +6448,8 @@ module Google
|
|
6448
6448
|
attr_accessor :customer_shipping_fee
|
6449
6449
|
|
6450
6450
|
# Required. The delivery postal code, as a continuous string without spaces or
|
6451
|
-
# dashes, e.g. "95016".
|
6451
|
+
# dashes, e.g. "95016". This field will be anonymized in returned
|
6452
|
+
# OrderTrackingSignal creation response.
|
6452
6453
|
# Corresponds to the JSON property `deliveryPostalCode`
|
6453
6454
|
# @return [String]
|
6454
6455
|
attr_accessor :delivery_postal_code
|
@@ -6491,7 +6492,8 @@ module Google
|
|
6491
6492
|
# @return [Google::Apis::ContentV2_1::DateTime]
|
6492
6493
|
attr_accessor :order_created_time
|
6493
6494
|
|
6494
|
-
# Required. The ID of the order on the merchant side.
|
6495
|
+
# Required. The ID of the order on the merchant side. This field will be hashed
|
6496
|
+
# in returned OrderTrackingSignal creation response.
|
6495
6497
|
# Corresponds to the JSON property `orderId`
|
6496
6498
|
# @return [String]
|
6497
6499
|
attr_accessor :order_id
|
@@ -6589,7 +6591,8 @@ module Google
|
|
6589
6591
|
# @return [Fixnum]
|
6590
6592
|
attr_accessor :quantity
|
6591
6593
|
|
6592
|
-
# Required. The shipment ID.
|
6594
|
+
# Required. The shipment ID. This field will be hashed in returned
|
6595
|
+
# OrderTrackingSignal creation response.
|
6593
6596
|
# Corresponds to the JSON property `shipmentId`
|
6594
6597
|
# @return [String]
|
6595
6598
|
attr_accessor :shipment_id
|
@@ -6677,7 +6680,8 @@ module Google
|
|
6677
6680
|
attr_accessor :latest_delivery_promise_time
|
6678
6681
|
|
6679
6682
|
# The origin postal code, as a continuous string without spaces or dashes, e.g. "
|
6680
|
-
# 95016".
|
6683
|
+
# 95016". This field will be anonymized in returned OrderTrackingSignal creation
|
6684
|
+
# response.
|
6681
6685
|
# Corresponds to the JSON property `originPostalCode`
|
6682
6686
|
# @return [String]
|
6683
6687
|
attr_accessor :origin_postal_code
|
@@ -6688,7 +6692,8 @@ module Google
|
|
6688
6692
|
# @return [String]
|
6689
6693
|
attr_accessor :origin_region_code
|
6690
6694
|
|
6691
|
-
# Required. The shipment ID.
|
6695
|
+
# Required. The shipment ID. This field will be hashed in returned
|
6696
|
+
# OrderTrackingSignal creation response.
|
6692
6697
|
# Corresponds to the JSON property `shipmentId`
|
6693
6698
|
# @return [String]
|
6694
6699
|
attr_accessor :shipment_id
|
@@ -7149,11 +7154,17 @@ module Google
|
|
7149
7154
|
include Google::Apis::Core::Hashable
|
7150
7155
|
|
7151
7156
|
# The ID of the line item. This value is assigned by Google when an order is
|
7152
|
-
# created.
|
7157
|
+
# created. Either lineItemId or productId is required.
|
7153
7158
|
# Corresponds to the JSON property `lineItemId`
|
7154
7159
|
# @return [String]
|
7155
7160
|
attr_accessor :line_item_id
|
7156
7161
|
|
7162
|
+
# The ID of the product to cancel. This is the REST ID used in the products
|
7163
|
+
# service. Either lineItemId or productId is required.
|
7164
|
+
# Corresponds to the JSON property `productId`
|
7165
|
+
# @return [String]
|
7166
|
+
attr_accessor :product_id
|
7167
|
+
|
7157
7168
|
# The quantity of this line item.
|
7158
7169
|
# Corresponds to the JSON property `quantity`
|
7159
7170
|
# @return [Fixnum]
|
@@ -7166,6 +7177,7 @@ module Google
|
|
7166
7177
|
# Update properties of this object
|
7167
7178
|
def update!(**args)
|
7168
7179
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
7180
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
7169
7181
|
@quantity = args[:quantity] if args.key?(:quantity)
|
7170
7182
|
end
|
7171
7183
|
end
|
@@ -9696,10 +9708,8 @@ module Google
|
|
9696
9708
|
|
9697
9709
|
# Required product attributes are primarily defined by the products data
|
9698
9710
|
# specification. See the Products Data Specification Help Center article for
|
9699
|
-
# information.
|
9700
|
-
#
|
9701
|
-
# data. After inserting, updating, or deleting a product, it may take several
|
9702
|
-
# minutes before changes take effect.
|
9711
|
+
# information. Product data. After inserting, updating, or deleting a product,
|
9712
|
+
# it may take several minutes before changes take effect.
|
9703
9713
|
class Product
|
9704
9714
|
include Google::Apis::Core::Hashable
|
9705
9715
|
|
@@ -10798,17 +10808,15 @@ module Google
|
|
10798
10808
|
attr_accessor :merchant_id
|
10799
10809
|
|
10800
10810
|
# The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" -
|
10801
|
-
# "`insert`"
|
10811
|
+
# "`insert`" - "`update`"
|
10802
10812
|
# Corresponds to the JSON property `method`
|
10803
10813
|
# @return [String]
|
10804
10814
|
attr_accessor :method_prop
|
10805
10815
|
|
10806
10816
|
# Required product attributes are primarily defined by the products data
|
10807
10817
|
# specification. See the Products Data Specification Help Center article for
|
10808
|
-
# information.
|
10809
|
-
#
|
10810
|
-
# data. After inserting, updating, or deleting a product, it may take several
|
10811
|
-
# minutes before changes take effect.
|
10818
|
+
# information. Product data. After inserting, updating, or deleting a product,
|
10819
|
+
# it may take several minutes before changes take effect.
|
10812
10820
|
# Corresponds to the JSON property `product`
|
10813
10821
|
# @return [Google::Apis::ContentV2_1::Product]
|
10814
10822
|
attr_accessor :product
|
@@ -10819,6 +10827,15 @@ module Google
|
|
10819
10827
|
# @return [String]
|
10820
10828
|
attr_accessor :product_id
|
10821
10829
|
|
10830
|
+
# The list of product attributes to be updated. Attributes specified in the
|
10831
|
+
# update mask without a value specified in the body will be deleted from the
|
10832
|
+
# product. Only top-level product attributes can be updated. If not defined,
|
10833
|
+
# product attributes with set values will be updated and other attributes will
|
10834
|
+
# stay unchanged. Only defined if the method is `update`.
|
10835
|
+
# Corresponds to the JSON property `updateMask`
|
10836
|
+
# @return [String]
|
10837
|
+
attr_accessor :update_mask
|
10838
|
+
|
10822
10839
|
def initialize(**args)
|
10823
10840
|
update!(**args)
|
10824
10841
|
end
|
@@ -10831,6 +10848,7 @@ module Google
|
|
10831
10848
|
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
10832
10849
|
@product = args[:product] if args.key?(:product)
|
10833
10850
|
@product_id = args[:product_id] if args.key?(:product_id)
|
10851
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
10834
10852
|
end
|
10835
10853
|
end
|
10836
10854
|
|
@@ -10882,10 +10900,8 @@ module Google
|
|
10882
10900
|
|
10883
10901
|
# Required product attributes are primarily defined by the products data
|
10884
10902
|
# specification. See the Products Data Specification Help Center article for
|
10885
|
-
# information.
|
10886
|
-
#
|
10887
|
-
# data. After inserting, updating, or deleting a product, it may take several
|
10888
|
-
# minutes before changes take effect.
|
10903
|
+
# information. Product data. After inserting, updating, or deleting a product,
|
10904
|
+
# it may take several minutes before changes take effect.
|
10889
10905
|
# Corresponds to the JSON property `product`
|
10890
10906
|
# @return [Google::Apis::ContentV2_1::Product]
|
10891
10907
|
attr_accessor :product
|
@@ -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.
|
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.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210514"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -4163,6 +4163,7 @@ module Google
|
|
4163
4163
|
# @private
|
4164
4164
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4165
4165
|
property :line_item_id, as: 'lineItemId'
|
4166
|
+
property :product_id, as: 'productId'
|
4166
4167
|
property :quantity, as: 'quantity'
|
4167
4168
|
end
|
4168
4169
|
end
|
@@ -5132,6 +5133,7 @@ module Google
|
|
5132
5133
|
property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation
|
5133
5134
|
|
5134
5135
|
property :product_id, as: 'productId'
|
5136
|
+
property :update_mask, as: 'updateMask'
|
5135
5137
|
end
|
5136
5138
|
end
|
5137
5139
|
|
@@ -346,6 +346,8 @@ module Google
|
|
346
346
|
# The ID of the account for which to list links.
|
347
347
|
# @param [Fixnum] max_results
|
348
348
|
# The maximum number of links to return in the response, used for pagination.
|
349
|
+
# The minimum allowed value is 5 results per page. If provided value is lower
|
350
|
+
# than 5, it will be automatically increased to 5.
|
349
351
|
# @param [String] page_token
|
350
352
|
# The token returned by the previous request.
|
351
353
|
# @param [String] fields
|
@@ -4024,6 +4026,51 @@ module Google
|
|
4024
4026
|
execute_or_queue_command(command, &block)
|
4025
4027
|
end
|
4026
4028
|
|
4029
|
+
# Updates an existing product in your Merchant Center account. Only updates
|
4030
|
+
# attributes provided in the request.
|
4031
|
+
# @param [Fixnum] merchant_id
|
4032
|
+
# The ID of the account that contains the product. This account cannot be a
|
4033
|
+
# multi-client account.
|
4034
|
+
# @param [String] product_id
|
4035
|
+
# The REST ID of the product for which to update.
|
4036
|
+
# @param [Google::Apis::ContentV2_1::Product] product_object
|
4037
|
+
# @param [String] update_mask
|
4038
|
+
# The list of product attributes to be updated. Attributes specified in the
|
4039
|
+
# update mask without a value specified in the body will be deleted from the
|
4040
|
+
# product. Only top-level product attributes can be updated. If not defined,
|
4041
|
+
# product attributes with set values will be updated and other attributes will
|
4042
|
+
# stay unchanged.
|
4043
|
+
# @param [String] fields
|
4044
|
+
# Selector specifying which fields to include in a partial response.
|
4045
|
+
# @param [String] quota_user
|
4046
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4047
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4048
|
+
# @param [Google::Apis::RequestOptions] options
|
4049
|
+
# Request-specific options
|
4050
|
+
#
|
4051
|
+
# @yield [result, err] Result & error if block supplied
|
4052
|
+
# @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object
|
4053
|
+
# @yieldparam err [StandardError] error object if request failed
|
4054
|
+
#
|
4055
|
+
# @return [Google::Apis::ContentV2_1::Product]
|
4056
|
+
#
|
4057
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4058
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4059
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4060
|
+
def update_product(merchant_id, product_id, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4061
|
+
command = make_simple_command(:patch, '{merchantId}/products/{productId}', options)
|
4062
|
+
command.request_representation = Google::Apis::ContentV2_1::Product::Representation
|
4063
|
+
command.request_object = product_object
|
4064
|
+
command.response_representation = Google::Apis::ContentV2_1::Product::Representation
|
4065
|
+
command.response_class = Google::Apis::ContentV2_1::Product
|
4066
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4067
|
+
command.params['productId'] = product_id unless product_id.nil?
|
4068
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4069
|
+
command.query['fields'] = fields unless fields.nil?
|
4070
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4071
|
+
execute_or_queue_command(command, &block)
|
4072
|
+
end
|
4073
|
+
|
4027
4074
|
# Gets the statuses of multiple products in a single request.
|
4028
4075
|
# @param [Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest] productstatuses_custom_batch_request_object
|
4029
4076
|
# @param [String] fields
|
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.
|
4
|
+
version: 0.11.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-05-
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.11.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|