google-apis-content_v2_1 0.24.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/content_v2_1/classes.rb +80 -29
- data/lib/google/apis/content_v2_1/gem_version.rb +2 -2
- data/lib/google/apis/content_v2_1/representations.rb +20 -0
- data/lib/google/apis/content_v2_1/service.rb +39 -8
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f059117b3b7b8e9aa10161e48c9673275dbf4917a90e7fa05e275492bcfe25d
|
4
|
+
data.tar.gz: 2ee70335b58e881f9d22c7248e0e2f624d5f38eea7f23d100328915be7226db4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e4a18c79a53c3c35714923c26126aff6ba994f906bc9c744583327be50370ed0a7c99186546eedaace4863ed2ba2de65b8e9ac423b76a801414139fb653ca9d
|
7
|
+
data.tar.gz: cc72e43ebd5737f906d39d3dd434d9234f817b1ce3cef27a91bb2e0248601336d576f4010918ca6d2541c99f506c9966b8d338afb27b9c2fd44c27c32fe044c9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-content_v2_1
|
2
2
|
|
3
|
+
### v0.28.0 (2021-12-16)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.27.0 (2021-12-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211126
|
10
|
+
|
11
|
+
### v0.26.0 (2021-11-02)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211027
|
14
|
+
|
15
|
+
### v0.25.0 (2021-10-26)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211021
|
18
|
+
|
3
19
|
### v0.24.0 (2021-10-12)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20211007
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/content_v2_1"
|
|
51
51
|
client = Google::Apis::ContentV2_1::ShoppingContentService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -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/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
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
|
|
@@ -64,8 +64,8 @@ module Google
|
|
64
64
|
# @return [Fixnum]
|
65
65
|
attr_accessor :css_id
|
66
66
|
|
67
|
-
# The
|
68
|
-
# Merchant Center account.
|
67
|
+
# The Business Profile which is linked or in the process of being linked with
|
68
|
+
# the Merchant Center account.
|
69
69
|
# Corresponds to the JSON property `googleMyBusinessLink`
|
70
70
|
# @return [Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink]
|
71
71
|
attr_accessor :google_my_business_link
|
@@ -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`"
|
254
|
+
# values are: - "`verified`" - "`unverified`"
|
255
255
|
# Corresponds to the JSON property `phoneVerificationStatus`
|
256
256
|
# @return [String]
|
257
257
|
attr_accessor :phone_verification_status
|
@@ -337,21 +337,22 @@ module Google
|
|
337
337
|
class AccountGoogleMyBusinessLink
|
338
338
|
include Google::Apis::Core::Hashable
|
339
339
|
|
340
|
-
# The ID of the
|
341
|
-
# The value of this field should match the `accountId` used by the
|
340
|
+
# The ID of the Business Profile. If this is provided, then `gmbEmail` is
|
341
|
+
# ignored. The value of this field should match the `accountId` used by the
|
342
|
+
# Business Profile API.
|
342
343
|
# Corresponds to the JSON property `gmbAccountId`
|
343
344
|
# @return [String]
|
344
345
|
attr_accessor :gmb_account_id
|
345
346
|
|
346
|
-
# The
|
347
|
-
# sample account within a
|
348
|
-
# locations, managed under the
|
347
|
+
# The Business Profile email address of a specific account within a Business
|
348
|
+
# Profile. A sample account within a Business Profile could be a business
|
349
|
+
# account with set of locations, managed under the Business Profile.
|
349
350
|
# Corresponds to the JSON property `gmbEmail`
|
350
351
|
# @return [String]
|
351
352
|
attr_accessor :gmb_email
|
352
353
|
|
353
|
-
# Status of the link between this Merchant Center account and the
|
354
|
-
# Acceptable values are: - "`active`" - "`pending`"
|
354
|
+
# Status of the link between this Merchant Center account and the Business
|
355
|
+
# Profile. Acceptable values are: - "`active`" - "`pending`"
|
355
356
|
# Corresponds to the JSON property `status`
|
356
357
|
# @return [String]
|
357
358
|
attr_accessor :status
|
@@ -3478,7 +3479,7 @@ module Google
|
|
3478
3479
|
# @return [Fixnum]
|
3479
3480
|
attr_accessor :account_id
|
3480
3481
|
|
3481
|
-
# A list of
|
3482
|
+
# A list of Business Profiles which are available to the merchant.
|
3482
3483
|
# Corresponds to the JSON property `gmbAccounts`
|
3483
3484
|
# @return [Array<Google::Apis::ContentV2_1::GmbAccountsGmbAccount>]
|
3484
3485
|
attr_accessor :gmb_accounts
|
@@ -3498,7 +3499,7 @@ module Google
|
|
3498
3499
|
class GmbAccountsGmbAccount
|
3499
3500
|
include Google::Apis::Core::Hashable
|
3500
3501
|
|
3501
|
-
# The email which identifies the
|
3502
|
+
# The email which identifies the Business Profile.
|
3502
3503
|
# Corresponds to the JSON property `email`
|
3503
3504
|
# @return [String]
|
3504
3505
|
attr_accessor :email
|
@@ -3508,12 +3509,12 @@ module Google
|
|
3508
3509
|
# @return [Fixnum]
|
3509
3510
|
attr_accessor :listing_count
|
3510
3511
|
|
3511
|
-
# The name of the
|
3512
|
+
# The name of the Business Profile.
|
3512
3513
|
# Corresponds to the JSON property `name`
|
3513
3514
|
# @return [String]
|
3514
3515
|
attr_accessor :name
|
3515
3516
|
|
3516
|
-
# The type of the
|
3517
|
+
# The type of the Business Profile (User or Business).
|
3517
3518
|
# Corresponds to the JSON property `type`
|
3518
3519
|
# @return [String]
|
3519
3520
|
attr_accessor :type
|
@@ -4074,7 +4075,7 @@ module Google
|
|
4074
4075
|
# @return [String]
|
4075
4076
|
attr_accessor :country
|
4076
4077
|
|
4077
|
-
# The
|
4078
|
+
# The Business Profile. Required only for RequestGmbAccess.
|
4078
4079
|
# Corresponds to the JSON property `gmbEmail`
|
4079
4080
|
# @return [String]
|
4080
4081
|
attr_accessor :gmb_email
|
@@ -4168,7 +4169,7 @@ module Google
|
|
4168
4169
|
# @return [Google::Apis::ContentV2_1::Errors]
|
4169
4170
|
attr_accessor :errors
|
4170
4171
|
|
4171
|
-
# The list of accessible
|
4172
|
+
# The list of accessible Business Profiles.
|
4172
4173
|
# Corresponds to the JSON property `gmbAccounts`
|
4173
4174
|
# @return [Google::Apis::ContentV2_1::GmbAccounts]
|
4174
4175
|
attr_accessor :gmb_accounts
|
@@ -4214,7 +4215,7 @@ module Google
|
|
4214
4215
|
# @return [Fixnum]
|
4215
4216
|
attr_accessor :account_id
|
4216
4217
|
|
4217
|
-
# A list of
|
4218
|
+
# A list of Business Profiles which are available to the merchant.
|
4218
4219
|
# Corresponds to the JSON property `gmbAccounts`
|
4219
4220
|
# @return [Array<Google::Apis::ContentV2_1::GmbAccountsGmbAccount>]
|
4220
4221
|
attr_accessor :gmb_accounts
|
@@ -6952,6 +6953,11 @@ module Google
|
|
6952
6953
|
class OrderTrackingSignalLineItemDetails
|
6953
6954
|
include Google::Apis::Core::Hashable
|
6954
6955
|
|
6956
|
+
# Brand of the product.
|
6957
|
+
# Corresponds to the JSON property `brand`
|
6958
|
+
# @return [String]
|
6959
|
+
attr_accessor :brand
|
6960
|
+
|
6955
6961
|
# The Global Trade Item Number.
|
6956
6962
|
# Corresponds to the JSON property `gtin`
|
6957
6963
|
# @return [String]
|
@@ -6967,7 +6973,8 @@ module Google
|
|
6967
6973
|
# @return [String]
|
6968
6974
|
attr_accessor :mpn
|
6969
6975
|
|
6970
|
-
# Plain text description of this product
|
6976
|
+
# Plain text description of this product (deprecated: Please use product_title
|
6977
|
+
# instead).
|
6971
6978
|
# Corresponds to the JSON property `productDescription`
|
6972
6979
|
# @return [String]
|
6973
6980
|
attr_accessor :product_description
|
@@ -6978,17 +6985,22 @@ module Google
|
|
6978
6985
|
# @return [String]
|
6979
6986
|
attr_accessor :product_id
|
6980
6987
|
|
6981
|
-
#
|
6988
|
+
# Plain text title of this product.
|
6989
|
+
# Corresponds to the JSON property `productTitle`
|
6990
|
+
# @return [String]
|
6991
|
+
attr_accessor :product_title
|
6992
|
+
|
6993
|
+
# The quantity of the line item in the order.
|
6982
6994
|
# Corresponds to the JSON property `quantity`
|
6983
6995
|
# @return [Fixnum]
|
6984
6996
|
attr_accessor :quantity
|
6985
6997
|
|
6986
|
-
# Merchant SKU for this item.
|
6998
|
+
# Merchant SKU for this item (deprecated).
|
6987
6999
|
# Corresponds to the JSON property `sku`
|
6988
7000
|
# @return [String]
|
6989
7001
|
attr_accessor :sku
|
6990
7002
|
|
6991
|
-
# Universal product code for this item.
|
7003
|
+
# Universal product code for this item (deprecated: Please use GTIN instead).
|
6992
7004
|
# Corresponds to the JSON property `upc`
|
6993
7005
|
# @return [String]
|
6994
7006
|
attr_accessor :upc
|
@@ -6999,11 +7011,13 @@ module Google
|
|
6999
7011
|
|
7000
7012
|
# Update properties of this object
|
7001
7013
|
def update!(**args)
|
7014
|
+
@brand = args[:brand] if args.key?(:brand)
|
7002
7015
|
@gtin = args[:gtin] if args.key?(:gtin)
|
7003
7016
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
7004
7017
|
@mpn = args[:mpn] if args.key?(:mpn)
|
7005
7018
|
@product_description = args[:product_description] if args.key?(:product_description)
|
7006
7019
|
@product_id = args[:product_id] if args.key?(:product_id)
|
7020
|
+
@product_title = args[:product_title] if args.key?(:product_title)
|
7007
7021
|
@quantity = args[:quantity] if args.key?(:quantity)
|
7008
7022
|
@sku = args[:sku] if args.key?(:sku)
|
7009
7023
|
@upc = args[:upc] if args.key?(:upc)
|
@@ -7020,7 +7034,7 @@ module Google
|
|
7020
7034
|
# @return [String]
|
7021
7035
|
attr_accessor :line_item_id
|
7022
7036
|
|
7023
|
-
#
|
7037
|
+
# The line item quantity in the shipment.
|
7024
7038
|
# Corresponds to the JSON property `quantity`
|
7025
7039
|
# @return [Fixnum]
|
7026
7040
|
attr_accessor :quantity
|
@@ -9584,7 +9598,7 @@ module Google
|
|
9584
9598
|
attr_accessor :quantity
|
9585
9599
|
|
9586
9600
|
# Required. The identifier of the merchant's store. Either a `storeCode`
|
9587
|
-
# inserted via the API or the code of the store in
|
9601
|
+
# inserted via the API or the code of the store in a Business Profile.
|
9588
9602
|
# Corresponds to the JSON property `storeCode`
|
9589
9603
|
# @return [String]
|
9590
9604
|
attr_accessor :store_code
|
@@ -9647,7 +9661,7 @@ module Google
|
|
9647
9661
|
attr_accessor :quantity
|
9648
9662
|
|
9649
9663
|
# Required. The identifier of the merchant's store. Either a `storeCode`
|
9650
|
-
# inserted via the API or the code of the store in
|
9664
|
+
# inserted via the API or the code of the store in a Business Profile.
|
9651
9665
|
# Corresponds to the JSON property `storeCode`
|
9652
9666
|
# @return [String]
|
9653
9667
|
attr_accessor :store_code
|
@@ -9715,7 +9729,7 @@ module Google
|
|
9715
9729
|
attr_accessor :quantity
|
9716
9730
|
|
9717
9731
|
# Required. The identifier of the merchant's store. Either a `storeCode`
|
9718
|
-
# inserted via the API or the code of the store in
|
9732
|
+
# inserted via the API or the code of the store in a Business Profile.
|
9719
9733
|
# Corresponds to the JSON property `storeCode`
|
9720
9734
|
# @return [String]
|
9721
9735
|
attr_accessor :store_code
|
@@ -9816,7 +9830,7 @@ module Google
|
|
9816
9830
|
attr_accessor :sale_id
|
9817
9831
|
|
9818
9832
|
# Required. The identifier of the merchant's store. Either a `storeCode`
|
9819
|
-
# inserted via the API or the code of the store in
|
9833
|
+
# inserted via the API or the code of the store in a Business Profile.
|
9820
9834
|
# Corresponds to the JSON property `storeCode`
|
9821
9835
|
# @return [String]
|
9822
9836
|
attr_accessor :store_code
|
@@ -9886,7 +9900,7 @@ module Google
|
|
9886
9900
|
attr_accessor :sale_id
|
9887
9901
|
|
9888
9902
|
# Required. The identifier of the merchant's store. Either a `storeCode`
|
9889
|
-
# inserted via the API or the code of the store in
|
9903
|
+
# inserted via the API or the code of the store in a Business Profile.
|
9890
9904
|
# Corresponds to the JSON property `storeCode`
|
9891
9905
|
# @return [String]
|
9892
9906
|
attr_accessor :store_code
|
@@ -9961,7 +9975,7 @@ module Google
|
|
9961
9975
|
attr_accessor :sale_id
|
9962
9976
|
|
9963
9977
|
# Required. The identifier of the merchant's store. Either a `storeCode`
|
9964
|
-
# inserted via the API or the code of the store in
|
9978
|
+
# inserted via the API or the code of the store in a Business Profile.
|
9965
9979
|
# Corresponds to the JSON property `storeCode`
|
9966
9980
|
# @return [String]
|
9967
9981
|
attr_accessor :store_code
|
@@ -11724,7 +11738,7 @@ module Google
|
|
11724
11738
|
# promotion. Content API methods that operate on promotions take this as their
|
11725
11739
|
# promotionId parameter. The REST ID for a promotion is of the form channel:
|
11726
11740
|
# contentLanguage:targetCountry:promotionId The channel field will have a value
|
11727
|
-
# of "online", "
|
11741
|
+
# of "online", "in_store", or "online_in_store".
|
11728
11742
|
# Corresponds to the JSON property `id`
|
11729
11743
|
# @return [String]
|
11730
11744
|
attr_accessor :id
|
@@ -11825,11 +11839,21 @@ module Google
|
|
11825
11839
|
# @return [String]
|
11826
11840
|
attr_accessor :promotion_display_dates
|
11827
11841
|
|
11842
|
+
# A message that represents a time period.
|
11843
|
+
# Corresponds to the JSON property `promotionDisplayTimePeriod`
|
11844
|
+
# @return [Google::Apis::ContentV2_1::TimePeriod]
|
11845
|
+
attr_accessor :promotion_display_time_period
|
11846
|
+
|
11828
11847
|
# Required. String representation of the promotion effective dates.
|
11829
11848
|
# Corresponds to the JSON property `promotionEffectiveDates`
|
11830
11849
|
# @return [String]
|
11831
11850
|
attr_accessor :promotion_effective_dates
|
11832
11851
|
|
11852
|
+
# A message that represents a time period.
|
11853
|
+
# Corresponds to the JSON property `promotionEffectiveTimePeriod`
|
11854
|
+
# @return [Google::Apis::ContentV2_1::TimePeriod]
|
11855
|
+
attr_accessor :promotion_effective_time_period
|
11856
|
+
|
11833
11857
|
# Required. The user provided promotion id to uniquely identify the promotion.
|
11834
11858
|
# Corresponds to the JSON property `promotionId`
|
11835
11859
|
# @return [String]
|
@@ -11886,7 +11910,9 @@ module Google
|
|
11886
11910
|
@product_type_exclusion = args[:product_type_exclusion] if args.key?(:product_type_exclusion)
|
11887
11911
|
@promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
|
11888
11912
|
@promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
|
11913
|
+
@promotion_display_time_period = args[:promotion_display_time_period] if args.key?(:promotion_display_time_period)
|
11889
11914
|
@promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
|
11915
|
+
@promotion_effective_time_period = args[:promotion_effective_time_period] if args.key?(:promotion_effective_time_period)
|
11890
11916
|
@promotion_id = args[:promotion_id] if args.key?(:promotion_id)
|
11891
11917
|
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
|
11892
11918
|
@shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
|
@@ -15567,6 +15593,31 @@ module Google
|
|
15567
15593
|
end
|
15568
15594
|
end
|
15569
15595
|
|
15596
|
+
# A message that represents a time period.
|
15597
|
+
class TimePeriod
|
15598
|
+
include Google::Apis::Core::Hashable
|
15599
|
+
|
15600
|
+
# The ending timestamp.
|
15601
|
+
# Corresponds to the JSON property `endTime`
|
15602
|
+
# @return [String]
|
15603
|
+
attr_accessor :end_time
|
15604
|
+
|
15605
|
+
# The starting timestamp.
|
15606
|
+
# Corresponds to the JSON property `startTime`
|
15607
|
+
# @return [String]
|
15608
|
+
attr_accessor :start_time
|
15609
|
+
|
15610
|
+
def initialize(**args)
|
15611
|
+
update!(**args)
|
15612
|
+
end
|
15613
|
+
|
15614
|
+
# Update properties of this object
|
15615
|
+
def update!(**args)
|
15616
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
15617
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
15618
|
+
end
|
15619
|
+
end
|
15620
|
+
|
15570
15621
|
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
|
15571
15622
|
# time-zones).
|
15572
15623
|
class TimeZone
|
@@ -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.28.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 = "
|
25
|
+
REVISION = "20211126"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2242,6 +2242,12 @@ module Google
|
|
2242
2242
|
include Google::Apis::Core::JsonObjectSupport
|
2243
2243
|
end
|
2244
2244
|
|
2245
|
+
class TimePeriod
|
2246
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2247
|
+
|
2248
|
+
include Google::Apis::Core::JsonObjectSupport
|
2249
|
+
end
|
2250
|
+
|
2245
2251
|
class TimeZone
|
2246
2252
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2247
2253
|
|
@@ -4202,11 +4208,13 @@ module Google
|
|
4202
4208
|
class OrderTrackingSignalLineItemDetails
|
4203
4209
|
# @private
|
4204
4210
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4211
|
+
property :brand, as: 'brand'
|
4205
4212
|
property :gtin, as: 'gtin'
|
4206
4213
|
property :line_item_id, as: 'lineItemId'
|
4207
4214
|
property :mpn, as: 'mpn'
|
4208
4215
|
property :product_description, as: 'productDescription'
|
4209
4216
|
property :product_id, as: 'productId'
|
4217
|
+
property :product_title, as: 'productTitle'
|
4210
4218
|
property :quantity, :numeric_string => true, as: 'quantity'
|
4211
4219
|
property :sku, as: 'sku'
|
4212
4220
|
property :upc, as: 'upc'
|
@@ -5483,7 +5491,11 @@ module Google
|
|
5483
5491
|
collection :product_type_exclusion, as: 'productTypeExclusion'
|
5484
5492
|
collection :promotion_destination_ids, as: 'promotionDestinationIds'
|
5485
5493
|
property :promotion_display_dates, as: 'promotionDisplayDates'
|
5494
|
+
property :promotion_display_time_period, as: 'promotionDisplayTimePeriod', class: Google::Apis::ContentV2_1::TimePeriod, decorator: Google::Apis::ContentV2_1::TimePeriod::Representation
|
5495
|
+
|
5486
5496
|
property :promotion_effective_dates, as: 'promotionEffectiveDates'
|
5497
|
+
property :promotion_effective_time_period, as: 'promotionEffectiveTimePeriod', class: Google::Apis::ContentV2_1::TimePeriod, decorator: Google::Apis::ContentV2_1::TimePeriod::Representation
|
5498
|
+
|
5487
5499
|
property :promotion_id, as: 'promotionId'
|
5488
5500
|
collection :redemption_channel, as: 'redemptionChannel'
|
5489
5501
|
collection :shipping_service_names, as: 'shippingServiceNames'
|
@@ -6497,6 +6509,14 @@ module Google
|
|
6497
6509
|
end
|
6498
6510
|
end
|
6499
6511
|
|
6512
|
+
class TimePeriod
|
6513
|
+
# @private
|
6514
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6515
|
+
property :end_time, as: 'endTime'
|
6516
|
+
property :start_time, as: 'startTime'
|
6517
|
+
end
|
6518
|
+
end
|
6519
|
+
|
6500
6520
|
class TimeZone
|
6501
6521
|
# @private
|
6502
6522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2141,14 +2141,13 @@ module Google
|
|
2141
2141
|
execute_or_queue_command(command, &block)
|
2142
2142
|
end
|
2143
2143
|
|
2144
|
-
# Retrieves the list of accessible
|
2144
|
+
# Retrieves the list of accessible Business Profiles.
|
2145
2145
|
# @param [Fixnum] merchant_id
|
2146
2146
|
# The ID of the managing account. If this parameter is not the same as accountId,
|
2147
2147
|
# then this account must be a multi-client account and `accountId` must be the
|
2148
2148
|
# ID of a sub-account of this account.
|
2149
2149
|
# @param [Fixnum] account_id
|
2150
|
-
# The ID of the account for which to retrieve accessible
|
2151
|
-
# accounts.
|
2150
|
+
# The ID of the account for which to retrieve accessible Business Profiles.
|
2152
2151
|
# @param [String] fields
|
2153
2152
|
# Selector specifying which fields to include in a partial response.
|
2154
2153
|
# @param [String] quota_user
|
@@ -2241,15 +2240,15 @@ module Google
|
|
2241
2240
|
execute_or_queue_command(command, &block)
|
2242
2241
|
end
|
2243
2242
|
|
2244
|
-
# Requests access to a specified
|
2243
|
+
# Requests access to a specified Business Profile.
|
2245
2244
|
# @param [Fixnum] merchant_id
|
2246
2245
|
# The ID of the managing account. If this parameter is not the same as accountId,
|
2247
2246
|
# then this account must be a multi-client account and `accountId` must be the
|
2248
2247
|
# ID of a sub-account of this account.
|
2249
2248
|
# @param [Fixnum] account_id
|
2250
|
-
# The ID of the account for which
|
2249
|
+
# The ID of the account for which Business Profile access is requested.
|
2251
2250
|
# @param [String] gmb_email
|
2252
|
-
# The email of the
|
2251
|
+
# The email of the Business Profile.
|
2253
2252
|
# @param [String] fields
|
2254
2253
|
# Selector specifying which fields to include in a partial response.
|
2255
2254
|
# @param [String] quota_user
|
@@ -2372,8 +2371,7 @@ module Google
|
|
2372
2371
|
# then this account must be a multi-client account and `accountId` must be the
|
2373
2372
|
# ID of a sub-account of this account.
|
2374
2373
|
# @param [Fixnum] account_id
|
2375
|
-
# The ID of the account for which to retrieve accessible
|
2376
|
-
# accounts.
|
2374
|
+
# The ID of the account for which to retrieve accessible Business Profiles.
|
2377
2375
|
# @param [String] country
|
2378
2376
|
# The country for which the POS data provider is selected.
|
2379
2377
|
# @param [Fixnum] pos_data_provider_id
|
@@ -4517,6 +4515,39 @@ module Google
|
|
4517
4515
|
execute_or_queue_command(command, &block)
|
4518
4516
|
end
|
4519
4517
|
|
4518
|
+
# Retrieves a promotion from your Merchant Center account.
|
4519
|
+
# @param [Fixnum] merchant_id
|
4520
|
+
# Required. The ID of the account that contains the collection.
|
4521
|
+
# @param [String] id
|
4522
|
+
# Required. REST ID of the promotion to retrieve.
|
4523
|
+
# @param [String] fields
|
4524
|
+
# Selector specifying which fields to include in a partial response.
|
4525
|
+
# @param [String] quota_user
|
4526
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4527
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4528
|
+
# @param [Google::Apis::RequestOptions] options
|
4529
|
+
# Request-specific options
|
4530
|
+
#
|
4531
|
+
# @yield [result, err] Result & error if block supplied
|
4532
|
+
# @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
|
4533
|
+
# @yieldparam err [StandardError] error object if request failed
|
4534
|
+
#
|
4535
|
+
# @return [Google::Apis::ContentV2_1::Promotion]
|
4536
|
+
#
|
4537
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4538
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4539
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4540
|
+
def get_promotion(merchant_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
4541
|
+
command = make_simple_command(:get, '{merchantId}/promotions/{id}', options)
|
4542
|
+
command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
|
4543
|
+
command.response_class = Google::Apis::ContentV2_1::Promotion
|
4544
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4545
|
+
command.params['id'] = id unless id.nil?
|
4546
|
+
command.query['fields'] = fields unless fields.nil?
|
4547
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4548
|
+
execute_or_queue_command(command, &block)
|
4549
|
+
end
|
4550
|
+
|
4520
4551
|
# Retrieves a Merchant Center account's pubsub notification settings.
|
4521
4552
|
# @param [Fixnum] merchant_id
|
4522
4553
|
# 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.
|
4
|
+
version: 0.28.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:
|
11
|
+
date: 2022-01-10 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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.28.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:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Content API for Shopping V2_1
|