google-apis-content_v2_1 0.25.0 → 0.29.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: 7809653730f655594b522bc0e2c1f8fb8e23a1cfeae599c01086feb9a28b0e91
4
- data.tar.gz: a2f83532b456319d48b8163e03f054cac1007a4acdaff58cc7a4d266e5365c5b
3
+ metadata.gz: 5194b199362947a27ac32ece1e6dc364bb4cb65248685a052ccb83cccf38cd96
4
+ data.tar.gz: 42e8e820627931b60520dd58fedd2bf2a351c7fc40852b1b0b20cb60c57df7c2
5
5
  SHA512:
6
- metadata.gz: 85143f49bf9ffe86f18eac60cfa18dcaa1e8914d5bc8d469f2e796bae15f263653b9001c4dec65197b5661aef44db636e55f8904a5e57e44e822d80c7e31f202
7
- data.tar.gz: 07f98fbc638b49946f06c5ced3d3b120c474f163d80c03bb3306f6d1cca31dd0e348fdb78082a1fa40e17679b361251d4128b8bca899d7b75bacaf1a7e04824e
6
+ metadata.gz: df1141ec78ca07ab0522af80b8509c080661ffabf078ed40822ab919e63837d56a494453e272ddf49cf1f873d1fa2565b931b19d2d3b8ae6b5de6733b12bac66
7
+ data.tar.gz: b517ed3419cf00f2d709f8da0697da1ba66812ce03dd0ba824cc0b90464fb219992dbffdf12b6ba84d8b35d3363f439b816d5d7ff28676e9cd8975d99d4a5d11
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.29.0 (2022-01-12)
4
+
5
+ * Regenerated from discovery document revision 20220111
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.28.0 (2021-12-16)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.27.0 (2021-12-01)
13
+
14
+ * Regenerated from discovery document revision 20211126
15
+
16
+ ### v0.26.0 (2021-11-02)
17
+
18
+ * Regenerated from discovery document revision 20211027
19
+
3
20
  ### v0.25.0 (2021-10-26)
4
21
 
5
22
  * Regenerated from discovery document revision 20211021
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.authentication = # ... use the googleauth gem to create credentials
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.
@@ -49,6 +49,12 @@ module Google
49
49
  attr_accessor :adult_content
50
50
  alias_method :adult_content?, :adult_content
51
51
 
52
+ # The automatic improvements of the account can be used to automatically update
53
+ # items, improve images and shipping.
54
+ # Corresponds to the JSON property `automaticImprovements`
55
+ # @return [Google::Apis::ContentV2_1::AccountAutomaticImprovements]
56
+ attr_accessor :automatic_improvements
57
+
52
58
  # Automatically created label IDs that are assigned to the account by CSS Center.
53
59
  # Corresponds to the JSON property `automaticLabelIds`
54
60
  # @return [Array<Fixnum>]
@@ -64,8 +70,8 @@ module Google
64
70
  # @return [Fixnum]
65
71
  attr_accessor :css_id
66
72
 
67
- # The GMB account which is linked or in the process of being linked with the
68
- # Merchant Center account.
73
+ # The Business Profile which is linked or in the process of being linked with
74
+ # the Merchant Center account.
69
75
  # Corresponds to the JSON property `googleMyBusinessLink`
70
76
  # @return [Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink]
71
77
  attr_accessor :google_my_business_link
@@ -125,6 +131,7 @@ module Google
125
131
  @account_management = args[:account_management] if args.key?(:account_management)
126
132
  @ads_links = args[:ads_links] if args.key?(:ads_links)
127
133
  @adult_content = args[:adult_content] if args.key?(:adult_content)
134
+ @automatic_improvements = args[:automatic_improvements] if args.key?(:automatic_improvements)
128
135
  @automatic_label_ids = args[:automatic_label_ids] if args.key?(:automatic_label_ids)
129
136
  @business_information = args[:business_information] if args.key?(:business_information)
130
137
  @css_id = args[:css_id] if args.key?(:css_id)
@@ -221,6 +228,54 @@ module Google
221
228
  end
222
229
  end
223
230
 
231
+ # The automatic improvements of the account can be used to automatically update
232
+ # items, improve images and shipping.
233
+ class AccountAutomaticImprovements
234
+ include Google::Apis::Core::Hashable
235
+
236
+ # This improvement will attempt to automatically correct submitted images if
237
+ # they don't meet the [image requirements](https://support.google.com/merchants/
238
+ # answer/6324350), for example, removing overlays. If successful, the image will
239
+ # be replaced and approved. This improvement is only applied to images of
240
+ # disapproved offers. For more information see: [Automatic image improvements](
241
+ # https://support.google.com/merchants/answer/9242973)
242
+ # Corresponds to the JSON property `imageImprovements`
243
+ # @return [Google::Apis::ContentV2_1::AccountImageImprovements]
244
+ attr_accessor :image_improvements
245
+
246
+ # Turning on [item updates](https://support.google.com/merchants/answer/3246284)
247
+ # allows Google to automatically update items for you. When item updates are on,
248
+ # Google uses the structured data markup on the website and advanced data
249
+ # extractors to update the price and availability of the items. When the item
250
+ # updates are off, items with mismatched data aren't shown.
251
+ # Corresponds to the JSON property `itemUpdates`
252
+ # @return [Google::Apis::ContentV2_1::AccountItemUpdates]
253
+ attr_accessor :item_updates
254
+
255
+ # Not available for MCAs [accounts](https://support.google.com/merchants/answer/
256
+ # 188487). By turning on [automatic shipping improvements](https://support.
257
+ # google.com/merchants/answer/10027038), you are allowing Google to improve the
258
+ # accuracy of your delivery times shown to shoppers using Google. More accurate
259
+ # delivery times, especially when faster, typically lead to better conversion
260
+ # rates. Google will improve your estimated delivery times based on various
261
+ # factors: * Delivery address of an order * Current handling time and shipping
262
+ # time settings * Estimated weekdays or business days * Parcel tracking data
263
+ # Corresponds to the JSON property `shippingImprovements`
264
+ # @return [Google::Apis::ContentV2_1::AccountShippingImprovements]
265
+ attr_accessor :shipping_improvements
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @image_improvements = args[:image_improvements] if args.key?(:image_improvements)
274
+ @item_updates = args[:item_updates] if args.key?(:item_updates)
275
+ @shipping_improvements = args[:shipping_improvements] if args.key?(:shipping_improvements)
276
+ end
277
+ end
278
+
224
279
  #
225
280
  class AccountBusinessInformation
226
281
  include Google::Apis::Core::Hashable
@@ -337,21 +392,22 @@ module Google
337
392
  class AccountGoogleMyBusinessLink
338
393
  include Google::Apis::Core::Hashable
339
394
 
340
- # The ID of the GMB account. If this is provided, then `gmbEmail` is ignored.
341
- # The value of this field should match the `accountId` used by the GMB API.
395
+ # The ID of the Business Profile. If this is provided, then `gmbEmail` is
396
+ # ignored. The value of this field should match the `accountId` used by the
397
+ # Business Profile API.
342
398
  # Corresponds to the JSON property `gmbAccountId`
343
399
  # @return [String]
344
400
  attr_accessor :gmb_account_id
345
401
 
346
- # The GMB email address of which a specific account within a GMB account. A
347
- # sample account within a GMB account could be a business account with set of
348
- # locations, managed under the GMB account.
402
+ # The Business Profile email address of a specific account within a Business
403
+ # Profile. A sample account within a Business Profile could be a business
404
+ # account with set of locations, managed under the Business Profile.
349
405
  # Corresponds to the JSON property `gmbEmail`
350
406
  # @return [String]
351
407
  attr_accessor :gmb_email
352
408
 
353
- # Status of the link between this Merchant Center account and the GMB account.
354
- # Acceptable values are: - "`active`" - "`pending`"
409
+ # Status of the link between this Merchant Center account and the Business
410
+ # Profile. Acceptable values are: - "`active`" - "`pending`"
355
411
  # Corresponds to the JSON property `status`
356
412
  # @return [String]
357
413
  attr_accessor :status
@@ -394,6 +450,152 @@ module Google
394
450
  end
395
451
  end
396
452
 
453
+ # This improvement will attempt to automatically correct submitted images if
454
+ # they don't meet the [image requirements](https://support.google.com/merchants/
455
+ # answer/6324350), for example, removing overlays. If successful, the image will
456
+ # be replaced and approved. This improvement is only applied to images of
457
+ # disapproved offers. For more information see: [Automatic image improvements](
458
+ # https://support.google.com/merchants/answer/9242973)
459
+ class AccountImageImprovements
460
+ include Google::Apis::Core::Hashable
461
+
462
+ # Settings for the Automatic Image Improvements.
463
+ # Corresponds to the JSON property `accountImageImprovementsSettings`
464
+ # @return [Google::Apis::ContentV2_1::AccountImageImprovementsSettings]
465
+ attr_accessor :account_image_improvements_settings
466
+
467
+ # Output only. The effective value of allow_automatic_image_improvements. If
468
+ # account_image_improvements_settings is present, then this value is the same.
469
+ # Otherwise, it represents the inherited value of the parent account. Read-only.
470
+ # Corresponds to the JSON property `effectiveAllowAutomaticImageImprovements`
471
+ # @return [Boolean]
472
+ attr_accessor :effective_allow_automatic_image_improvements
473
+ alias_method :effective_allow_automatic_image_improvements?, :effective_allow_automatic_image_improvements
474
+
475
+ def initialize(**args)
476
+ update!(**args)
477
+ end
478
+
479
+ # Update properties of this object
480
+ def update!(**args)
481
+ @account_image_improvements_settings = args[:account_image_improvements_settings] if args.key?(:account_image_improvements_settings)
482
+ @effective_allow_automatic_image_improvements = args[:effective_allow_automatic_image_improvements] if args.key?(:effective_allow_automatic_image_improvements)
483
+ end
484
+ end
485
+
486
+ # Settings for the Automatic Image Improvements.
487
+ class AccountImageImprovementsSettings
488
+ include Google::Apis::Core::Hashable
489
+
490
+ # Enables automatic image improvements.
491
+ # Corresponds to the JSON property `allowAutomaticImageImprovements`
492
+ # @return [Boolean]
493
+ attr_accessor :allow_automatic_image_improvements
494
+ alias_method :allow_automatic_image_improvements?, :allow_automatic_image_improvements
495
+
496
+ def initialize(**args)
497
+ update!(**args)
498
+ end
499
+
500
+ # Update properties of this object
501
+ def update!(**args)
502
+ @allow_automatic_image_improvements = args[:allow_automatic_image_improvements] if args.key?(:allow_automatic_image_improvements)
503
+ end
504
+ end
505
+
506
+ # Turning on [item updates](https://support.google.com/merchants/answer/3246284)
507
+ # allows Google to automatically update items for you. When item updates are on,
508
+ # Google uses the structured data markup on the website and advanced data
509
+ # extractors to update the price and availability of the items. When the item
510
+ # updates are off, items with mismatched data aren't shown.
511
+ class AccountItemUpdates
512
+ include Google::Apis::Core::Hashable
513
+
514
+ # Settings for the Automatic Item Updates.
515
+ # Corresponds to the JSON property `accountItemUpdatesSettings`
516
+ # @return [Google::Apis::ContentV2_1::AccountItemUpdatesSettings]
517
+ attr_accessor :account_item_updates_settings
518
+
519
+ # Output only. The effective value of allow_availability_updates. If
520
+ # account_item_updates_settings is present, then this value is the same.
521
+ # Otherwise, it represents the inherited value of the parent account. Read-only.
522
+ # Corresponds to the JSON property `effectiveAllowAvailabilityUpdates`
523
+ # @return [Boolean]
524
+ attr_accessor :effective_allow_availability_updates
525
+ alias_method :effective_allow_availability_updates?, :effective_allow_availability_updates
526
+
527
+ # Output only. The effective value of allow_price_updates. If
528
+ # account_item_updates_settings is present, then this value is the same.
529
+ # Otherwise, it represents the inherited value of the parent account. Read-only.
530
+ # Corresponds to the JSON property `effectiveAllowPriceUpdates`
531
+ # @return [Boolean]
532
+ attr_accessor :effective_allow_price_updates
533
+ alias_method :effective_allow_price_updates?, :effective_allow_price_updates
534
+
535
+ # Output only. The effective value of allow_strict_availability_updates. If
536
+ # account_item_updates_settings is present, then this value is the same.
537
+ # Otherwise, it represents the inherited value of the parent account. Read-only.
538
+ # Corresponds to the JSON property `effectiveAllowStrictAvailabilityUpdates`
539
+ # @return [Boolean]
540
+ attr_accessor :effective_allow_strict_availability_updates
541
+ alias_method :effective_allow_strict_availability_updates?, :effective_allow_strict_availability_updates
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @account_item_updates_settings = args[:account_item_updates_settings] if args.key?(:account_item_updates_settings)
550
+ @effective_allow_availability_updates = args[:effective_allow_availability_updates] if args.key?(:effective_allow_availability_updates)
551
+ @effective_allow_price_updates = args[:effective_allow_price_updates] if args.key?(:effective_allow_price_updates)
552
+ @effective_allow_strict_availability_updates = args[:effective_allow_strict_availability_updates] if args.key?(:effective_allow_strict_availability_updates)
553
+ end
554
+ end
555
+
556
+ # Settings for the Automatic Item Updates.
557
+ class AccountItemUpdatesSettings
558
+ include Google::Apis::Core::Hashable
559
+
560
+ # If availability updates are enabled, any previous availability values get
561
+ # overwritten if Google finds an out-of-stock annotation on the offer's page. If
562
+ # additionally `allow_availability_updates` field is set to true, values get
563
+ # overwritten if Google finds an in-stock annotation on the offer’s page.
564
+ # Corresponds to the JSON property `allowAvailabilityUpdates`
565
+ # @return [Boolean]
566
+ attr_accessor :allow_availability_updates
567
+ alias_method :allow_availability_updates?, :allow_availability_updates
568
+
569
+ # If price updates are enabled, Google always updates the active price with the
570
+ # crawled information.
571
+ # Corresponds to the JSON property `allowPriceUpdates`
572
+ # @return [Boolean]
573
+ attr_accessor :allow_price_updates
574
+ alias_method :allow_price_updates?, :allow_price_updates
575
+
576
+ # If allow_availability_updates is enabled, items are automatically updated in
577
+ # all your Shopping target countries. By default, availability updates will only
578
+ # be applied to items that are 'out of stock' on your website but 'in stock' on
579
+ # Shopping. Set this to true to also update items that are 'in stock' on your
580
+ # website, but 'out of stock' on Google Shopping. In order for this field to
581
+ # have an effect, you must also allow availability updates.
582
+ # Corresponds to the JSON property `allowStrictAvailabilityUpdates`
583
+ # @return [Boolean]
584
+ attr_accessor :allow_strict_availability_updates
585
+ alias_method :allow_strict_availability_updates?, :allow_strict_availability_updates
586
+
587
+ def initialize(**args)
588
+ update!(**args)
589
+ end
590
+
591
+ # Update properties of this object
592
+ def update!(**args)
593
+ @allow_availability_updates = args[:allow_availability_updates] if args.key?(:allow_availability_updates)
594
+ @allow_price_updates = args[:allow_price_updates] if args.key?(:allow_price_updates)
595
+ @allow_strict_availability_updates = args[:allow_strict_availability_updates] if args.key?(:allow_strict_availability_updates)
596
+ end
597
+ end
598
+
397
599
  # Label assigned by CSS domain or CSS group to one of its sub-accounts.
398
600
  class AccountLabel
399
601
  include Google::Apis::Core::Hashable
@@ -476,6 +678,33 @@ module Google
476
678
  end
477
679
  end
478
680
 
681
+ # Not available for MCAs [accounts](https://support.google.com/merchants/answer/
682
+ # 188487). By turning on [automatic shipping improvements](https://support.
683
+ # google.com/merchants/answer/10027038), you are allowing Google to improve the
684
+ # accuracy of your delivery times shown to shoppers using Google. More accurate
685
+ # delivery times, especially when faster, typically lead to better conversion
686
+ # rates. Google will improve your estimated delivery times based on various
687
+ # factors: * Delivery address of an order * Current handling time and shipping
688
+ # time settings * Estimated weekdays or business days * Parcel tracking data
689
+ class AccountShippingImprovements
690
+ include Google::Apis::Core::Hashable
691
+
692
+ # Enables automatic shipping improvements.
693
+ # Corresponds to the JSON property `allowShippingImprovements`
694
+ # @return [Boolean]
695
+ attr_accessor :allow_shipping_improvements
696
+ alias_method :allow_shipping_improvements?, :allow_shipping_improvements
697
+
698
+ def initialize(**args)
699
+ update!(**args)
700
+ end
701
+
702
+ # Update properties of this object
703
+ def update!(**args)
704
+ @allow_shipping_improvements = args[:allow_shipping_improvements] if args.key?(:allow_shipping_improvements)
705
+ end
706
+ end
707
+
479
708
  # The status of an account, i.e., information about its products, which is
480
709
  # computed offline and not returned immediately at insertion time.
481
710
  class AccountStatus
@@ -2726,9 +2955,7 @@ module Google
2726
2955
 
2727
2956
  # The list of destinations to include for this target (corresponds to checked
2728
2957
  # check boxes in Merchant Center). Default destinations are always included
2729
- # unless provided in `excludedDestinations`. List of supported destinations (if
2730
- # available to the account): - DisplayAds - Shopping - ShoppingActions -
2731
- # SurfacesAcrossGoogle
2958
+ # unless provided in `excludedDestinations`.
2732
2959
  # Corresponds to the JSON property `includedDestinations`
2733
2960
  # @return [Array<String>]
2734
2961
  attr_accessor :included_destinations
@@ -3478,7 +3705,7 @@ module Google
3478
3705
  # @return [Fixnum]
3479
3706
  attr_accessor :account_id
3480
3707
 
3481
- # A list of GMB accounts which are available to the merchant.
3708
+ # A list of Business Profiles which are available to the merchant.
3482
3709
  # Corresponds to the JSON property `gmbAccounts`
3483
3710
  # @return [Array<Google::Apis::ContentV2_1::GmbAccountsGmbAccount>]
3484
3711
  attr_accessor :gmb_accounts
@@ -3498,7 +3725,7 @@ module Google
3498
3725
  class GmbAccountsGmbAccount
3499
3726
  include Google::Apis::Core::Hashable
3500
3727
 
3501
- # The email which identifies the GMB account.
3728
+ # The email which identifies the Business Profile.
3502
3729
  # Corresponds to the JSON property `email`
3503
3730
  # @return [String]
3504
3731
  attr_accessor :email
@@ -3508,12 +3735,12 @@ module Google
3508
3735
  # @return [Fixnum]
3509
3736
  attr_accessor :listing_count
3510
3737
 
3511
- # The name of the GMB account.
3738
+ # The name of the Business Profile.
3512
3739
  # Corresponds to the JSON property `name`
3513
3740
  # @return [String]
3514
3741
  attr_accessor :name
3515
3742
 
3516
- # The type of the GMB account (User or Business).
3743
+ # The type of the Business Profile (User or Business).
3517
3744
  # Corresponds to the JSON property `type`
3518
3745
  # @return [String]
3519
3746
  attr_accessor :type
@@ -4074,7 +4301,7 @@ module Google
4074
4301
  # @return [String]
4075
4302
  attr_accessor :country
4076
4303
 
4077
- # The GMB account. Required only for RequestGmbAccess.
4304
+ # The Business Profile. Required only for RequestGmbAccess.
4078
4305
  # Corresponds to the JSON property `gmbEmail`
4079
4306
  # @return [String]
4080
4307
  attr_accessor :gmb_email
@@ -4168,7 +4395,7 @@ module Google
4168
4395
  # @return [Google::Apis::ContentV2_1::Errors]
4169
4396
  attr_accessor :errors
4170
4397
 
4171
- # The list of accessible GMB accounts.
4398
+ # The list of accessible Business Profiles.
4172
4399
  # Corresponds to the JSON property `gmbAccounts`
4173
4400
  # @return [Google::Apis::ContentV2_1::GmbAccounts]
4174
4401
  attr_accessor :gmb_accounts
@@ -4214,7 +4441,7 @@ module Google
4214
4441
  # @return [Fixnum]
4215
4442
  attr_accessor :account_id
4216
4443
 
4217
- # A list of GMB accounts which are available to the merchant.
4444
+ # A list of Business Profiles which are available to the merchant.
4218
4445
  # Corresponds to the JSON property `gmbAccounts`
4219
4446
  # @return [Array<Google::Apis::ContentV2_1::GmbAccountsGmbAccount>]
4220
4447
  attr_accessor :gmb_accounts
@@ -6989,7 +7216,7 @@ module Google
6989
7216
  # @return [String]
6990
7217
  attr_accessor :product_title
6991
7218
 
6992
- # Required. The quantity of the line item in the order.
7219
+ # The quantity of the line item in the order.
6993
7220
  # Corresponds to the JSON property `quantity`
6994
7221
  # @return [Fixnum]
6995
7222
  attr_accessor :quantity
@@ -7033,7 +7260,7 @@ module Google
7033
7260
  # @return [String]
7034
7261
  attr_accessor :line_item_id
7035
7262
 
7036
- # Required. The line item quantity in the shipment.
7263
+ # The line item quantity in the shipment.
7037
7264
  # Corresponds to the JSON property `quantity`
7038
7265
  # @return [Fixnum]
7039
7266
  attr_accessor :quantity
@@ -9597,7 +9824,7 @@ module Google
9597
9824
  attr_accessor :quantity
9598
9825
 
9599
9826
  # Required. The identifier of the merchant's store. Either a `storeCode`
9600
- # inserted via the API or the code of the store in Google My Business.
9827
+ # inserted via the API or the code of the store in a Business Profile.
9601
9828
  # Corresponds to the JSON property `storeCode`
9602
9829
  # @return [String]
9603
9830
  attr_accessor :store_code
@@ -9660,7 +9887,7 @@ module Google
9660
9887
  attr_accessor :quantity
9661
9888
 
9662
9889
  # Required. The identifier of the merchant's store. Either a `storeCode`
9663
- # inserted via the API or the code of the store in Google My Business.
9890
+ # inserted via the API or the code of the store in a Business Profile.
9664
9891
  # Corresponds to the JSON property `storeCode`
9665
9892
  # @return [String]
9666
9893
  attr_accessor :store_code
@@ -9728,7 +9955,7 @@ module Google
9728
9955
  attr_accessor :quantity
9729
9956
 
9730
9957
  # Required. The identifier of the merchant's store. Either a `storeCode`
9731
- # inserted via the API or the code of the store in Google My Business.
9958
+ # inserted via the API or the code of the store in a Business Profile.
9732
9959
  # Corresponds to the JSON property `storeCode`
9733
9960
  # @return [String]
9734
9961
  attr_accessor :store_code
@@ -9829,7 +10056,7 @@ module Google
9829
10056
  attr_accessor :sale_id
9830
10057
 
9831
10058
  # Required. The identifier of the merchant's store. Either a `storeCode`
9832
- # inserted via the API or the code of the store in Google My Business.
10059
+ # inserted via the API or the code of the store in a Business Profile.
9833
10060
  # Corresponds to the JSON property `storeCode`
9834
10061
  # @return [String]
9835
10062
  attr_accessor :store_code
@@ -9899,7 +10126,7 @@ module Google
9899
10126
  attr_accessor :sale_id
9900
10127
 
9901
10128
  # Required. The identifier of the merchant's store. Either a `storeCode`
9902
- # inserted via the API or the code of the store in Google My Business.
10129
+ # inserted via the API or the code of the store in a Business Profile.
9903
10130
  # Corresponds to the JSON property `storeCode`
9904
10131
  # @return [String]
9905
10132
  attr_accessor :store_code
@@ -9974,7 +10201,7 @@ module Google
9974
10201
  attr_accessor :sale_id
9975
10202
 
9976
10203
  # Required. The identifier of the merchant's store. Either a `storeCode`
9977
- # inserted via the API or the code of the store in Google My Business.
10204
+ # inserted via the API or the code of the store in a Business Profile.
9978
10205
  # Corresponds to the JSON property `storeCode`
9979
10206
  # @return [String]
9980
10207
  attr_accessor :store_code
@@ -10012,12 +10239,27 @@ module Google
10012
10239
  class PosStore
10013
10240
  include Google::Apis::Core::Hashable
10014
10241
 
10242
+ # The business type of the store.
10243
+ # Corresponds to the JSON property `gcidCategory`
10244
+ # @return [Array<String>]
10245
+ attr_accessor :gcid_category
10246
+
10015
10247
  # Identifies what kind of resource this is. Value: the fixed string "`content#
10016
10248
  # posStore`"
10017
10249
  # Corresponds to the JSON property `kind`
10018
10250
  # @return [String]
10019
10251
  attr_accessor :kind
10020
10252
 
10253
+ # The store phone number.
10254
+ # Corresponds to the JSON property `phoneNumber`
10255
+ # @return [String]
10256
+ attr_accessor :phone_number
10257
+
10258
+ # The Google Place Id of the store location.
10259
+ # Corresponds to the JSON property `placeId`
10260
+ # @return [String]
10261
+ attr_accessor :place_id
10262
+
10021
10263
  # Required. The street address of the store.
10022
10264
  # Corresponds to the JSON property `storeAddress`
10023
10265
  # @return [String]
@@ -10028,15 +10270,30 @@ module Google
10028
10270
  # @return [String]
10029
10271
  attr_accessor :store_code
10030
10272
 
10273
+ # The merchant or store name.
10274
+ # Corresponds to the JSON property `storeName`
10275
+ # @return [String]
10276
+ attr_accessor :store_name
10277
+
10278
+ # The website url for the store or merchant.
10279
+ # Corresponds to the JSON property `websiteUrl`
10280
+ # @return [String]
10281
+ attr_accessor :website_url
10282
+
10031
10283
  def initialize(**args)
10032
10284
  update!(**args)
10033
10285
  end
10034
10286
 
10035
10287
  # Update properties of this object
10036
10288
  def update!(**args)
10289
+ @gcid_category = args[:gcid_category] if args.key?(:gcid_category)
10037
10290
  @kind = args[:kind] if args.key?(:kind)
10291
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
10292
+ @place_id = args[:place_id] if args.key?(:place_id)
10038
10293
  @store_address = args[:store_address] if args.key?(:store_address)
10039
10294
  @store_code = args[:store_code] if args.key?(:store_code)
10295
+ @store_name = args[:store_name] if args.key?(:store_name)
10296
+ @website_url = args[:website_url] if args.key?(:website_url)
10040
10297
  end
10041
10298
  end
10042
10299
 
@@ -11838,11 +12095,21 @@ module Google
11838
12095
  # @return [String]
11839
12096
  attr_accessor :promotion_display_dates
11840
12097
 
12098
+ # A message that represents a time period.
12099
+ # Corresponds to the JSON property `promotionDisplayTimePeriod`
12100
+ # @return [Google::Apis::ContentV2_1::TimePeriod]
12101
+ attr_accessor :promotion_display_time_period
12102
+
11841
12103
  # Required. String representation of the promotion effective dates.
11842
12104
  # Corresponds to the JSON property `promotionEffectiveDates`
11843
12105
  # @return [String]
11844
12106
  attr_accessor :promotion_effective_dates
11845
12107
 
12108
+ # A message that represents a time period.
12109
+ # Corresponds to the JSON property `promotionEffectiveTimePeriod`
12110
+ # @return [Google::Apis::ContentV2_1::TimePeriod]
12111
+ attr_accessor :promotion_effective_time_period
12112
+
11846
12113
  # Required. The user provided promotion id to uniquely identify the promotion.
11847
12114
  # Corresponds to the JSON property `promotionId`
11848
12115
  # @return [String]
@@ -11899,7 +12166,9 @@ module Google
11899
12166
  @product_type_exclusion = args[:product_type_exclusion] if args.key?(:product_type_exclusion)
11900
12167
  @promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
11901
12168
  @promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
12169
+ @promotion_display_time_period = args[:promotion_display_time_period] if args.key?(:promotion_display_time_period)
11902
12170
  @promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
12171
+ @promotion_effective_time_period = args[:promotion_effective_time_period] if args.key?(:promotion_effective_time_period)
11903
12172
  @promotion_id = args[:promotion_id] if args.key?(:promotion_id)
11904
12173
  @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
11905
12174
  @shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
@@ -15580,6 +15849,31 @@ module Google
15580
15849
  end
15581
15850
  end
15582
15851
 
15852
+ # A message that represents a time period.
15853
+ class TimePeriod
15854
+ include Google::Apis::Core::Hashable
15855
+
15856
+ # The ending timestamp.
15857
+ # Corresponds to the JSON property `endTime`
15858
+ # @return [String]
15859
+ attr_accessor :end_time
15860
+
15861
+ # The starting timestamp.
15862
+ # Corresponds to the JSON property `startTime`
15863
+ # @return [String]
15864
+ attr_accessor :start_time
15865
+
15866
+ def initialize(**args)
15867
+ update!(**args)
15868
+ end
15869
+
15870
+ # Update properties of this object
15871
+ def update!(**args)
15872
+ @end_time = args[:end_time] if args.key?(:end_time)
15873
+ @start_time = args[:start_time] if args.key?(:start_time)
15874
+ end
15875
+ end
15876
+
15583
15877
  # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
15584
15878
  # time-zones).
15585
15879
  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.25.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211021"
25
+ REVISION = "20220111"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class AccountAutomaticImprovements
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class AccountBusinessInformation
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -70,6 +76,30 @@ module Google
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
79
+ class AccountImageImprovements
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class AccountImageImprovementsSettings
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class AccountItemUpdates
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class AccountItemUpdatesSettings
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
73
103
  class AccountLabel
74
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
105
 
@@ -82,6 +112,12 @@ module Google
82
112
  include Google::Apis::Core::JsonObjectSupport
83
113
  end
84
114
 
115
+ class AccountShippingImprovements
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
85
121
  class AccountStatus
86
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
123
 
@@ -2242,6 +2278,12 @@ module Google
2242
2278
  include Google::Apis::Core::JsonObjectSupport
2243
2279
  end
2244
2280
 
2281
+ class TimePeriod
2282
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2283
+
2284
+ include Google::Apis::Core::JsonObjectSupport
2285
+ end
2286
+
2245
2287
  class TimeZone
2246
2288
  class Representation < Google::Apis::Core::JsonRepresentation; end
2247
2289
 
@@ -2333,6 +2375,8 @@ module Google
2333
2375
  collection :ads_links, as: 'adsLinks', class: Google::Apis::ContentV2_1::AccountAdsLink, decorator: Google::Apis::ContentV2_1::AccountAdsLink::Representation
2334
2376
 
2335
2377
  property :adult_content, as: 'adultContent'
2378
+ property :automatic_improvements, as: 'automaticImprovements', class: Google::Apis::ContentV2_1::AccountAutomaticImprovements, decorator: Google::Apis::ContentV2_1::AccountAutomaticImprovements::Representation
2379
+
2336
2380
  collection :automatic_label_ids, as: 'automaticLabelIds'
2337
2381
  property :business_information, as: 'businessInformation', class: Google::Apis::ContentV2_1::AccountBusinessInformation, decorator: Google::Apis::ContentV2_1::AccountBusinessInformation::Representation
2338
2382
 
@@ -2371,6 +2415,18 @@ module Google
2371
2415
  end
2372
2416
  end
2373
2417
 
2418
+ class AccountAutomaticImprovements
2419
+ # @private
2420
+ class Representation < Google::Apis::Core::JsonRepresentation
2421
+ property :image_improvements, as: 'imageImprovements', class: Google::Apis::ContentV2_1::AccountImageImprovements, decorator: Google::Apis::ContentV2_1::AccountImageImprovements::Representation
2422
+
2423
+ property :item_updates, as: 'itemUpdates', class: Google::Apis::ContentV2_1::AccountItemUpdates, decorator: Google::Apis::ContentV2_1::AccountItemUpdates::Representation
2424
+
2425
+ property :shipping_improvements, as: 'shippingImprovements', class: Google::Apis::ContentV2_1::AccountShippingImprovements, decorator: Google::Apis::ContentV2_1::AccountShippingImprovements::Representation
2426
+
2427
+ end
2428
+ end
2429
+
2374
2430
  class AccountBusinessInformation
2375
2431
  # @private
2376
2432
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2419,6 +2475,42 @@ module Google
2419
2475
  end
2420
2476
  end
2421
2477
 
2478
+ class AccountImageImprovements
2479
+ # @private
2480
+ class Representation < Google::Apis::Core::JsonRepresentation
2481
+ property :account_image_improvements_settings, as: 'accountImageImprovementsSettings', class: Google::Apis::ContentV2_1::AccountImageImprovementsSettings, decorator: Google::Apis::ContentV2_1::AccountImageImprovementsSettings::Representation
2482
+
2483
+ property :effective_allow_automatic_image_improvements, as: 'effectiveAllowAutomaticImageImprovements'
2484
+ end
2485
+ end
2486
+
2487
+ class AccountImageImprovementsSettings
2488
+ # @private
2489
+ class Representation < Google::Apis::Core::JsonRepresentation
2490
+ property :allow_automatic_image_improvements, as: 'allowAutomaticImageImprovements'
2491
+ end
2492
+ end
2493
+
2494
+ class AccountItemUpdates
2495
+ # @private
2496
+ class Representation < Google::Apis::Core::JsonRepresentation
2497
+ property :account_item_updates_settings, as: 'accountItemUpdatesSettings', class: Google::Apis::ContentV2_1::AccountItemUpdatesSettings, decorator: Google::Apis::ContentV2_1::AccountItemUpdatesSettings::Representation
2498
+
2499
+ property :effective_allow_availability_updates, as: 'effectiveAllowAvailabilityUpdates'
2500
+ property :effective_allow_price_updates, as: 'effectiveAllowPriceUpdates'
2501
+ property :effective_allow_strict_availability_updates, as: 'effectiveAllowStrictAvailabilityUpdates'
2502
+ end
2503
+ end
2504
+
2505
+ class AccountItemUpdatesSettings
2506
+ # @private
2507
+ class Representation < Google::Apis::Core::JsonRepresentation
2508
+ property :allow_availability_updates, as: 'allowAvailabilityUpdates'
2509
+ property :allow_price_updates, as: 'allowPriceUpdates'
2510
+ property :allow_strict_availability_updates, as: 'allowStrictAvailabilityUpdates'
2511
+ end
2512
+ end
2513
+
2422
2514
  class AccountLabel
2423
2515
  # @private
2424
2516
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2440,6 +2532,13 @@ module Google
2440
2532
  end
2441
2533
  end
2442
2534
 
2535
+ class AccountShippingImprovements
2536
+ # @private
2537
+ class Representation < Google::Apis::Core::JsonRepresentation
2538
+ property :allow_shipping_improvements, as: 'allowShippingImprovements'
2539
+ end
2540
+ end
2541
+
2443
2542
  class AccountStatus
2444
2543
  # @private
2445
2544
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5037,9 +5136,14 @@ module Google
5037
5136
  class PosStore
5038
5137
  # @private
5039
5138
  class Representation < Google::Apis::Core::JsonRepresentation
5139
+ collection :gcid_category, as: 'gcidCategory'
5040
5140
  property :kind, as: 'kind'
5141
+ property :phone_number, as: 'phoneNumber'
5142
+ property :place_id, as: 'placeId'
5041
5143
  property :store_address, as: 'storeAddress'
5042
5144
  property :store_code, as: 'storeCode'
5145
+ property :store_name, as: 'storeName'
5146
+ property :website_url, as: 'websiteUrl'
5043
5147
  end
5044
5148
  end
5045
5149
 
@@ -5485,7 +5589,11 @@ module Google
5485
5589
  collection :product_type_exclusion, as: 'productTypeExclusion'
5486
5590
  collection :promotion_destination_ids, as: 'promotionDestinationIds'
5487
5591
  property :promotion_display_dates, as: 'promotionDisplayDates'
5592
+ property :promotion_display_time_period, as: 'promotionDisplayTimePeriod', class: Google::Apis::ContentV2_1::TimePeriod, decorator: Google::Apis::ContentV2_1::TimePeriod::Representation
5593
+
5488
5594
  property :promotion_effective_dates, as: 'promotionEffectiveDates'
5595
+ property :promotion_effective_time_period, as: 'promotionEffectiveTimePeriod', class: Google::Apis::ContentV2_1::TimePeriod, decorator: Google::Apis::ContentV2_1::TimePeriod::Representation
5596
+
5489
5597
  property :promotion_id, as: 'promotionId'
5490
5598
  collection :redemption_channel, as: 'redemptionChannel'
5491
5599
  collection :shipping_service_names, as: 'shippingServiceNames'
@@ -6499,6 +6607,14 @@ module Google
6499
6607
  end
6500
6608
  end
6501
6609
 
6610
+ class TimePeriod
6611
+ # @private
6612
+ class Representation < Google::Apis::Core::JsonRepresentation
6613
+ property :end_time, as: 'endTime'
6614
+ property :start_time, as: 'startTime'
6615
+ end
6616
+ end
6617
+
6502
6618
  class TimeZone
6503
6619
  # @private
6504
6620
  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 Google My Business accounts.
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 Google My Business
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 Google My Business account.
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 GMB access is requested.
2249
+ # The ID of the account for which Business Profile access is requested.
2251
2250
  # @param [String] gmb_email
2252
- # The email of the Google My Business account.
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 Google My Business
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
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.25.0
4
+ version: 0.29.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-27 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.29.0
62
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: []
@@ -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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Content API for Shopping V2_1