google-apis-content_v2_1 0.26.0 → 0.30.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: 7d790df2c988c18e9ce9d3827ab5f1a8695d52a916efc5db89a943d5cfd3a645
4
- data.tar.gz: 126f342f2a8cff245f549d40bc078a6a7fbf9118b81af61fd9f1b0e766729877
3
+ metadata.gz: 4b3a8befa2ab4494644dc003567a15cee311656e259c8bc20aaec5302333e150
4
+ data.tar.gz: fc385da77ba403284fe9e7ee0f93e67a7583b57a0fd465e987ee7ae23cc068fd
5
5
  SHA512:
6
- metadata.gz: 3e9b148f6a67cfe9be070e0f609b83d3f2332aa78ae3580cb35c91e368dee36cc442b5b12c526cbb86cca70a3ca797ca58680738b3d38a5c24f782db3dea3389
7
- data.tar.gz: b3ff3e03f7142cfd080fee4248a00e902af3591fe988967778c5a2159e93f25564ccd0a8d416097d1c0b5203eed2ee69c57d5f9f7f58624a4af834343b26a4aa
6
+ metadata.gz: e8475fa16910bfae81c8f82e5b582bba4b5800367761208c05728ead4f6443370224e3180497d001e11461504f8d010b535363062f9beab5cf3d928f29b3e0fd
7
+ data.tar.gz: 78c8c79edeb624f549f6de58215dd12cad648acbe29cc3cd0267f63812968ac15e8a3245e045dba1c5ad431f660dd432a00a9dd8513462665a41936c18f3f39e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.30.0 (2022-01-18)
4
+
5
+ * Regenerated from discovery document revision 20220112
6
+
7
+ ### v0.29.0 (2022-01-12)
8
+
9
+ * Regenerated from discovery document revision 20220111
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.28.0 (2021-12-16)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.27.0 (2021-12-01)
17
+
18
+ * Regenerated from discovery document revision 20211126
19
+
3
20
  ### v0.26.0 (2021-11-02)
4
21
 
5
22
  * Regenerated from discovery document revision 20211027
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
 
@@ -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.26.0"
19
+ GEM_VERSION = "0.30.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 = "20211027"
25
+ REVISION = "20220112"
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
 
@@ -2339,6 +2375,8 @@ module Google
2339
2375
  collection :ads_links, as: 'adsLinks', class: Google::Apis::ContentV2_1::AccountAdsLink, decorator: Google::Apis::ContentV2_1::AccountAdsLink::Representation
2340
2376
 
2341
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
+
2342
2380
  collection :automatic_label_ids, as: 'automaticLabelIds'
2343
2381
  property :business_information, as: 'businessInformation', class: Google::Apis::ContentV2_1::AccountBusinessInformation, decorator: Google::Apis::ContentV2_1::AccountBusinessInformation::Representation
2344
2382
 
@@ -2377,6 +2415,18 @@ module Google
2377
2415
  end
2378
2416
  end
2379
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
+
2380
2430
  class AccountBusinessInformation
2381
2431
  # @private
2382
2432
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2425,6 +2475,42 @@ module Google
2425
2475
  end
2426
2476
  end
2427
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
+
2428
2514
  class AccountLabel
2429
2515
  # @private
2430
2516
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2446,6 +2532,13 @@ module Google
2446
2532
  end
2447
2533
  end
2448
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
+
2449
2542
  class AccountStatus
2450
2543
  # @private
2451
2544
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5043,9 +5136,14 @@ module Google
5043
5136
  class PosStore
5044
5137
  # @private
5045
5138
  class Representation < Google::Apis::Core::JsonRepresentation
5139
+ collection :gcid_category, as: 'gcidCategory'
5046
5140
  property :kind, as: 'kind'
5141
+ property :phone_number, as: 'phoneNumber'
5142
+ property :place_id, as: 'placeId'
5047
5143
  property :store_address, as: 'storeAddress'
5048
5144
  property :store_code, as: 'storeCode'
5145
+ property :store_name, as: 'storeName'
5146
+ property :website_url, as: 'websiteUrl'
5049
5147
  end
5050
5148
  end
5051
5149
 
@@ -84,9 +84,10 @@ module Google
84
84
  # @param [Fixnum] account_id
85
85
  # The ID of the account whose website is claimed.
86
86
  # @param [Boolean] overwrite
87
- # Only available to selected merchants. When set to `True`, this flag removes
88
- # any existing claim on the requested website by another account and replaces it
89
- # with a claim from this account.
87
+ # Only available to selected merchants, for example multi-client accounts (MCAs)
88
+ # and their sub-accounts. When set to `True`, this flag removes any existing
89
+ # claim on the requested website and replaces it with a claim from the account
90
+ # that makes the request.
90
91
  # @param [String] fields
91
92
  # Selector specifying which fields to include in a partial response.
92
93
  # @param [String] quota_user
@@ -2141,14 +2142,13 @@ module Google
2141
2142
  execute_or_queue_command(command, &block)
2142
2143
  end
2143
2144
 
2144
- # Retrieves the list of accessible Google My Business accounts.
2145
+ # Retrieves the list of accessible Business Profiles.
2145
2146
  # @param [Fixnum] merchant_id
2146
2147
  # The ID of the managing account. If this parameter is not the same as accountId,
2147
2148
  # then this account must be a multi-client account and `accountId` must be the
2148
2149
  # ID of a sub-account of this account.
2149
2150
  # @param [Fixnum] account_id
2150
- # The ID of the account for which to retrieve accessible Google My Business
2151
- # accounts.
2151
+ # The ID of the account for which to retrieve accessible Business Profiles.
2152
2152
  # @param [String] fields
2153
2153
  # Selector specifying which fields to include in a partial response.
2154
2154
  # @param [String] quota_user
@@ -2241,15 +2241,15 @@ module Google
2241
2241
  execute_or_queue_command(command, &block)
2242
2242
  end
2243
2243
 
2244
- # Requests access to a specified Google My Business account.
2244
+ # Requests access to a specified Business Profile.
2245
2245
  # @param [Fixnum] merchant_id
2246
2246
  # The ID of the managing account. If this parameter is not the same as accountId,
2247
2247
  # then this account must be a multi-client account and `accountId` must be the
2248
2248
  # ID of a sub-account of this account.
2249
2249
  # @param [Fixnum] account_id
2250
- # The ID of the account for which GMB access is requested.
2250
+ # The ID of the account for which Business Profile access is requested.
2251
2251
  # @param [String] gmb_email
2252
- # The email of the Google My Business account.
2252
+ # The email of the Business Profile.
2253
2253
  # @param [String] fields
2254
2254
  # Selector specifying which fields to include in a partial response.
2255
2255
  # @param [String] quota_user
@@ -2372,8 +2372,7 @@ module Google
2372
2372
  # then this account must be a multi-client account and `accountId` must be the
2373
2373
  # ID of a sub-account of this account.
2374
2374
  # @param [Fixnum] account_id
2375
- # The ID of the account for which to retrieve accessible Google My Business
2376
- # accounts.
2375
+ # The ID of the account for which to retrieve accessible Business Profiles.
2377
2376
  # @param [String] country
2378
2377
  # The country for which the POS data provider is selected.
2379
2378
  # @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.26.0
4
+ version: 0.30.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-11-08 00:00:00.000000000 Z
11
+ date: 2022-01-24 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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.30.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