google-api-client 0.47.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +77 -0
  3. data/CHANGELOG.md +64 -0
  4. data/generated/google/apis/bigquery_v2.rb +1 -1
  5. data/generated/google/apis/bigquery_v2/service.rb +1 -1
  6. data/generated/google/apis/billingbudgets_v1.rb +1 -1
  7. data/generated/google/apis/billingbudgets_v1/classes.rb +11 -0
  8. data/generated/google/apis/billingbudgets_v1/representations.rb +1 -0
  9. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  10. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +11 -0
  11. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  12. data/generated/google/apis/cloudasset_v1.rb +1 -1
  13. data/generated/google/apis/cloudasset_v1/classes.rb +697 -0
  14. data/generated/google/apis/cloudasset_v1/representations.rb +304 -0
  15. data/generated/google/apis/cloudasset_v1/service.rb +171 -0
  16. data/generated/google/apis/compute_v1.rb +1 -1
  17. data/generated/google/apis/compute_v1/classes.rb +238 -14
  18. data/generated/google/apis/compute_v1/representations.rb +41 -0
  19. data/generated/google/apis/compute_v1/service.rb +2 -0
  20. data/generated/google/apis/content_v2.rb +1 -1
  21. data/generated/google/apis/content_v2/service.rb +7 -7
  22. data/generated/google/apis/content_v2_1.rb +3 -4
  23. data/generated/google/apis/content_v2_1/classes.rb +899 -1054
  24. data/generated/google/apis/content_v2_1/representations.rb +206 -0
  25. data/generated/google/apis/content_v2_1/service.rb +912 -808
  26. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  27. data/generated/google/apis/datacatalog_v1beta1/classes.rb +24 -0
  28. data/generated/google/apis/datacatalog_v1beta1/representations.rb +5 -0
  29. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  30. data/generated/google/apis/dataflow_v1b3/classes.rb +12 -0
  31. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  32. data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
  33. data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
  34. data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
  35. data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
  36. data/generated/google/apis/datastore_v1.rb +1 -1
  37. data/generated/google/apis/datastore_v1/classes.rb +4 -4
  38. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  39. data/generated/google/apis/datastore_v1beta3/classes.rb +4 -4
  40. data/generated/google/apis/deploymentmanager_v2.rb +6 -4
  41. data/generated/google/apis/deploymentmanager_v2/classes.rb +203 -558
  42. data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -132
  43. data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
  44. data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
  45. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +247 -609
  46. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -132
  47. data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
  48. data/generated/google/apis/dialogflow_v2.rb +1 -1
  49. data/generated/google/apis/dialogflow_v2/classes.rb +20 -2
  50. data/generated/google/apis/dialogflow_v2/representations.rb +5 -2
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +20 -2
  53. data/generated/google/apis/dialogflow_v2beta1/representations.rb +5 -2
  54. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  55. data/generated/google/apis/dialogflow_v3beta1/classes.rb +40 -2
  56. data/generated/google/apis/dialogflow_v3beta1/representations.rb +7 -2
  57. data/generated/google/apis/displayvideo_v1.rb +1 -1
  58. data/generated/google/apis/displayvideo_v1/classes.rb +178 -0
  59. data/generated/google/apis/displayvideo_v1/representations.rb +77 -0
  60. data/generated/google/apis/displayvideo_v1/service.rb +249 -9
  61. data/generated/google/apis/domains_v1alpha2.rb +1 -1
  62. data/generated/google/apis/domains_v1alpha2/classes.rb +6 -0
  63. data/generated/google/apis/domains_v1alpha2/representations.rb +1 -0
  64. data/generated/google/apis/domains_v1beta1.rb +1 -1
  65. data/generated/google/apis/domains_v1beta1/classes.rb +6 -0
  66. data/generated/google/apis/domains_v1beta1/representations.rb +1 -0
  67. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  68. data/generated/google/apis/eventarc_v1beta1/classes.rb +1 -3
  69. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  70. data/generated/google/apis/firebase_v1beta1/service.rb +17 -4
  71. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  72. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +2 -0
  73. data/generated/google/apis/firestore_v1.rb +1 -1
  74. data/generated/google/apis/firestore_v1/classes.rb +4 -4
  75. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  76. data/generated/google/apis/firestore_v1beta1/classes.rb +4 -4
  77. data/generated/google/apis/games_v1.rb +1 -1
  78. data/generated/google/apis/games_v1/classes.rb +300 -0
  79. data/generated/google/apis/games_v1/representations.rb +116 -0
  80. data/generated/google/apis/games_v1/service.rb +34 -0
  81. data/generated/google/apis/gameservices_v1.rb +1 -1
  82. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  83. data/generated/google/apis/iam_v1.rb +2 -5
  84. data/generated/google/apis/iam_v1/service.rb +1 -4
  85. data/generated/google/apis/iamcredentials_v1.rb +3 -4
  86. data/generated/google/apis/iamcredentials_v1/service.rb +2 -3
  87. data/generated/google/apis/logging_v2.rb +1 -1
  88. data/generated/google/apis/logging_v2/classes.rb +72 -0
  89. data/generated/google/apis/logging_v2/representations.rb +32 -0
  90. data/generated/google/apis/logging_v2/service.rb +345 -0
  91. data/generated/google/apis/people_v1.rb +1 -1
  92. data/generated/google/apis/people_v1/classes.rb +4 -4
  93. data/generated/google/apis/people_v1/service.rb +12 -12
  94. data/generated/google/apis/privateca_v1beta1.rb +34 -0
  95. data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
  96. data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
  97. data/generated/google/apis/privateca_v1beta1/service.rb +1487 -0
  98. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  99. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +32 -0
  100. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -0
  101. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  102. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -2
  103. data/generated/google/apis/safebrowsing_v4.rb +35 -0
  104. data/generated/google/apis/safebrowsing_v4/classes.rb +909 -0
  105. data/generated/google/apis/safebrowsing_v4/representations.rb +445 -0
  106. data/generated/google/apis/safebrowsing_v4/service.rb +286 -0
  107. data/generated/google/apis/secretmanager_v1.rb +1 -1
  108. data/generated/google/apis/secretmanager_v1/classes.rb +1 -2
  109. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  110. data/generated/google/apis/secretmanager_v1beta1/classes.rb +1 -2
  111. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  112. data/generated/google/apis/servicecontrol_v1/classes.rb +45 -0
  113. data/generated/google/apis/servicecontrol_v1/representations.rb +6 -0
  114. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  115. data/generated/google/apis/servicecontrol_v2/classes.rb +45 -0
  116. data/generated/google/apis/servicecontrol_v2/representations.rb +6 -0
  117. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  118. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -60
  119. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -18
  120. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  121. data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -0
  122. data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -0
  123. data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
  124. data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
  125. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +0 -34
  126. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -16
  127. data/generated/google/apis/smartdevicemanagement_v1/service.rb +3 -8
  128. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  129. data/generated/google/apis/sqladmin_v1beta4/classes.rb +28 -4
  130. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  131. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  132. data/generated/google/apis/storagetransfer_v1/classes.rb +14 -5
  133. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  134. data/generated/google/apis/toolresults_v1beta3/classes.rb +13 -0
  135. data/generated/google/apis/toolresults_v1beta3/representations.rb +12 -0
  136. data/generated/google/apis/translate_v3.rb +1 -1
  137. data/generated/google/apis/translate_v3/classes.rb +2 -1
  138. data/generated/google/apis/translate_v3beta1.rb +1 -1
  139. data/generated/google/apis/translate_v3beta1/classes.rb +2 -1
  140. data/generated/google/apis/vision_v1.rb +1 -1
  141. data/generated/google/apis/vision_v1/classes.rb +16 -16
  142. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  143. data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
  144. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  145. data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
  146. data/generated/google/apis/youtube_v3.rb +1 -1
  147. data/generated/google/apis/youtube_v3/service.rb +2 -2
  148. data/lib/google/apis/version.rb +1 -1
  149. metadata +16 -3
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class AccountLabel
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class AccountStatus
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -280,6 +286,12 @@ module Google
280
286
  include Google::Apis::Core::JsonObjectSupport
281
287
  end
282
288
 
289
+ class Css
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
283
295
  class CustomAttribute
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -472,6 +484,12 @@ module Google
472
484
  include Google::Apis::Core::JsonObjectSupport
473
485
  end
474
486
 
487
+ class LabelIds
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
475
493
  class LiaAboutPageSettings
476
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
495
 
@@ -586,6 +604,24 @@ module Google
586
604
  include Google::Apis::Core::JsonObjectSupport
587
605
  end
588
606
 
607
+ class ListAccountLabelsResponse
608
+ class Representation < Google::Apis::Core::JsonRepresentation; end
609
+
610
+ include Google::Apis::Core::JsonObjectSupport
611
+ end
612
+
613
+ class ListCssesResponse
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
619
+ class ListRepricingRulesResponse
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
589
625
  class LocalInventory
590
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
591
627
 
@@ -1492,6 +1528,48 @@ module Google
1492
1528
  include Google::Apis::Core::JsonObjectSupport
1493
1529
  end
1494
1530
 
1531
+ class RepricingRule
1532
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1533
+
1534
+ include Google::Apis::Core::JsonObjectSupport
1535
+ end
1536
+
1537
+ class RepricingRuleEffectiveTime
1538
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1539
+
1540
+ include Google::Apis::Core::JsonObjectSupport
1541
+ end
1542
+
1543
+ class RepricingRuleEffectiveTimeFixedTimePeriod
1544
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1545
+
1546
+ include Google::Apis::Core::JsonObjectSupport
1547
+ end
1548
+
1549
+ class RepricingRuleEligibleOfferMatcher
1550
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1551
+
1552
+ include Google::Apis::Core::JsonObjectSupport
1553
+ end
1554
+
1555
+ class RepricingRuleEligibleOfferMatcherStringMatcher
1556
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1557
+
1558
+ include Google::Apis::Core::JsonObjectSupport
1559
+ end
1560
+
1561
+ class RepricingRuleRestriction
1562
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1563
+
1564
+ include Google::Apis::Core::JsonObjectSupport
1565
+ end
1566
+
1567
+ class RepricingRuleRestrictionBoundary
1568
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1569
+
1570
+ include Google::Apis::Core::JsonObjectSupport
1571
+ end
1572
+
1495
1573
  class ReturnAddress
1496
1574
  class Representation < Google::Apis::Core::JsonRepresentation; end
1497
1575
 
@@ -1902,6 +1980,16 @@ module Google
1902
1980
  end
1903
1981
  end
1904
1982
 
1983
+ class AccountLabel
1984
+ # @private
1985
+ class Representation < Google::Apis::Core::JsonRepresentation
1986
+ property :account_id, :numeric_string => true, as: 'accountId'
1987
+ property :description, as: 'description'
1988
+ property :label_id, :numeric_string => true, as: 'labelId'
1989
+ property :name, as: 'name'
1990
+ end
1991
+ end
1992
+
1905
1993
  class AccountStatus
1906
1994
  # @private
1907
1995
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2268,6 +2356,18 @@ module Google
2268
2356
  end
2269
2357
  end
2270
2358
 
2359
+ class Css
2360
+ # @private
2361
+ class Representation < Google::Apis::Core::JsonRepresentation
2362
+ property :css_domain_id, :numeric_string => true, as: 'cssDomainId'
2363
+ property :css_group_id, :numeric_string => true, as: 'cssGroupId'
2364
+ property :display_name, as: 'displayName'
2365
+ property :full_name, as: 'fullName'
2366
+ property :homepage_uri, as: 'homepageUri'
2367
+ collection :label_ids, as: 'labelIds'
2368
+ end
2369
+ end
2370
+
2271
2371
  class CustomAttribute
2272
2372
  # @private
2273
2373
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2615,6 +2715,13 @@ module Google
2615
2715
  end
2616
2716
  end
2617
2717
 
2718
+ class LabelIds
2719
+ # @private
2720
+ class Representation < Google::Apis::Core::JsonRepresentation
2721
+ collection :label_ids, as: 'labelIds'
2722
+ end
2723
+ end
2724
+
2618
2725
  class LiaAboutPageSettings
2619
2726
  # @private
2620
2727
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2801,6 +2908,33 @@ module Google
2801
2908
  end
2802
2909
  end
2803
2910
 
2911
+ class ListAccountLabelsResponse
2912
+ # @private
2913
+ class Representation < Google::Apis::Core::JsonRepresentation
2914
+ collection :account_labels, as: 'accountLabels', class: Google::Apis::ContentV2_1::AccountLabel, decorator: Google::Apis::ContentV2_1::AccountLabel::Representation
2915
+
2916
+ property :next_page_token, as: 'nextPageToken'
2917
+ end
2918
+ end
2919
+
2920
+ class ListCssesResponse
2921
+ # @private
2922
+ class Representation < Google::Apis::Core::JsonRepresentation
2923
+ collection :csses, as: 'csses', class: Google::Apis::ContentV2_1::Css, decorator: Google::Apis::ContentV2_1::Css::Representation
2924
+
2925
+ property :next_page_token, as: 'nextPageToken'
2926
+ end
2927
+ end
2928
+
2929
+ class ListRepricingRulesResponse
2930
+ # @private
2931
+ class Representation < Google::Apis::Core::JsonRepresentation
2932
+ property :next_page_token, as: 'nextPageToken'
2933
+ collection :repricing_rules, as: 'repricingRules', class: Google::Apis::ContentV2_1::RepricingRule, decorator: Google::Apis::ContentV2_1::RepricingRule::Representation
2934
+
2935
+ end
2936
+ end
2937
+
2804
2938
  class LocalInventory
2805
2939
  # @private
2806
2940
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4547,6 +4681,78 @@ module Google
4547
4681
  end
4548
4682
  end
4549
4683
 
4684
+ class RepricingRule
4685
+ # @private
4686
+ class Representation < Google::Apis::Core::JsonRepresentation
4687
+ property :country_code, as: 'countryCode'
4688
+ property :effective_time_period, as: 'effectiveTimePeriod', class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTime, decorator: Google::Apis::ContentV2_1::RepricingRuleEffectiveTime::Representation
4689
+
4690
+ property :eligible_offer_matcher, as: 'eligibleOfferMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcher::Representation
4691
+
4692
+ property :language_code, as: 'languageCode'
4693
+ property :merchant_id, :numeric_string => true, as: 'merchantId'
4694
+ property :paused, as: 'paused'
4695
+ property :restriction, as: 'restriction', class: Google::Apis::ContentV2_1::RepricingRuleRestriction, decorator: Google::Apis::ContentV2_1::RepricingRuleRestriction::Representation
4696
+
4697
+ property :rule_id, as: 'ruleId'
4698
+ property :title, as: 'title'
4699
+ property :type, as: 'type'
4700
+ end
4701
+ end
4702
+
4703
+ class RepricingRuleEffectiveTime
4704
+ # @private
4705
+ class Representation < Google::Apis::Core::JsonRepresentation
4706
+ collection :fixed_time_periods, as: 'fixedTimePeriods', class: Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod, decorator: Google::Apis::ContentV2_1::RepricingRuleEffectiveTimeFixedTimePeriod::Representation
4707
+
4708
+ end
4709
+ end
4710
+
4711
+ class RepricingRuleEffectiveTimeFixedTimePeriod
4712
+ # @private
4713
+ class Representation < Google::Apis::Core::JsonRepresentation
4714
+ property :end_time, as: 'endTime'
4715
+ property :start_time, as: 'startTime'
4716
+ end
4717
+ end
4718
+
4719
+ class RepricingRuleEligibleOfferMatcher
4720
+ # @private
4721
+ class Representation < Google::Apis::Core::JsonRepresentation
4722
+ property :brand_matcher, as: 'brandMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher::Representation
4723
+
4724
+ property :item_group_id_matcher, as: 'itemGroupIdMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher::Representation
4725
+
4726
+ property :matcher_option, as: 'matcherOption'
4727
+ property :offer_id_matcher, as: 'offerIdMatcher', class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher, decorator: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher::Representation
4728
+
4729
+ end
4730
+ end
4731
+
4732
+ class RepricingRuleEligibleOfferMatcherStringMatcher
4733
+ # @private
4734
+ class Representation < Google::Apis::Core::JsonRepresentation
4735
+ collection :str_attributes, as: 'strAttributes'
4736
+ end
4737
+ end
4738
+
4739
+ class RepricingRuleRestriction
4740
+ # @private
4741
+ class Representation < Google::Apis::Core::JsonRepresentation
4742
+ property :floor, as: 'floor', class: Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary, decorator: Google::Apis::ContentV2_1::RepricingRuleRestrictionBoundary::Representation
4743
+
4744
+ property :use_auto_pricing_min_price, as: 'useAutoPricingMinPrice'
4745
+ end
4746
+ end
4747
+
4748
+ class RepricingRuleRestrictionBoundary
4749
+ # @private
4750
+ class Representation < Google::Apis::Core::JsonRepresentation
4751
+ property :percentage_delta, as: 'percentageDelta'
4752
+ property :price_delta, as: 'priceDelta'
4753
+ end
4754
+ end
4755
+
4550
4756
  class ReturnAddress
4551
4757
  # @private
4552
4758
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -22,8 +22,7 @@ module Google
22
22
  module ContentV2_1
23
23
  # Content API for Shopping
24
24
  #
25
- # Manages product items, inventory, and Merchant Center accounts for Google
26
- # Shopping.
25
+ # Manage your product listings and accounts for Google Shopping
27
26
  #
28
27
  # @example
29
28
  # require 'google/apis/content_v2_1'
@@ -31,7 +30,7 @@ module Google
31
30
  # Content = Google::Apis::ContentV2_1 # Alias the module
32
31
  # service = Content::ShoppingContentService.new
33
32
  #
34
- # @see https://developers.google.com/shopping-content
33
+ # @see https://developers.google.com/shopping-content/v2/
35
34
  class ShoppingContentService < Google::Apis::Core::BaseService
36
35
  # @return [String]
37
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -39,27 +38,21 @@ module Google
39
38
  attr_accessor :key
40
39
 
41
40
  # @return [String]
42
- # An opaque string that represents a user for quota purposes. Must not exceed 40
43
- # characters.
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
43
  attr_accessor :quota_user
45
44
 
46
- # @return [String]
47
- # Deprecated. Please use quotaUser instead.
48
- attr_accessor :user_ip
49
-
50
45
  def initialize
51
- super('https://www.googleapis.com/', 'content/v2.1/')
52
- @batch_path = 'batch/content/v2.1'
46
+ super('https://shoppingcontent.googleapis.com/', '')
47
+ @batch_path = 'batch'
53
48
  end
54
49
 
55
50
  # Returns information about the authenticated user.
56
51
  # @param [String] fields
57
52
  # Selector specifying which fields to include in a partial response.
58
53
  # @param [String] quota_user
59
- # An opaque string that represents a user for quota purposes. Must not exceed 40
60
- # characters.
61
- # @param [String] user_ip
62
- # Deprecated. Please use quotaUser instead.
54
+ # Available to use for quota purposes for server-side applications. Can be any
55
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
56
  # @param [Google::Apis::RequestOptions] options
64
57
  # Request-specific options
65
58
  #
@@ -72,13 +65,12 @@ module Google
72
65
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
66
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
67
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def authinfo_account(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
76
- command = make_simple_command(:get, 'accounts/authinfo', options)
68
+ def authinfo_account(fields: nil, quota_user: nil, options: nil, &block)
69
+ command = make_simple_command(:get, 'content/v2.1/accounts/authinfo', options)
77
70
  command.response_representation = Google::Apis::ContentV2_1::AccountsAuthInfoResponse::Representation
78
71
  command.response_class = Google::Apis::ContentV2_1::AccountsAuthInfoResponse
79
72
  command.query['fields'] = fields unless fields.nil?
80
73
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
- command.query['userIp'] = user_ip unless user_ip.nil?
82
74
  execute_or_queue_command(command, &block)
83
75
  end
84
76
 
@@ -96,10 +88,8 @@ module Google
96
88
  # @param [String] fields
97
89
  # Selector specifying which fields to include in a partial response.
98
90
  # @param [String] quota_user
99
- # An opaque string that represents a user for quota purposes. Must not exceed 40
100
- # characters.
101
- # @param [String] user_ip
102
- # Deprecated. Please use quotaUser instead.
91
+ # Available to use for quota purposes for server-side applications. Can be any
92
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
93
  # @param [Google::Apis::RequestOptions] options
104
94
  # Request-specific options
105
95
  #
@@ -112,8 +102,8 @@ module Google
112
102
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
103
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
104
  # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
116
- command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', options)
105
+ def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite', options)
117
107
  command.response_representation = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse::Representation
118
108
  command.response_class = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse
119
109
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -121,7 +111,6 @@ module Google
121
111
  command.query['overwrite'] = overwrite unless overwrite.nil?
122
112
  command.query['fields'] = fields unless fields.nil?
123
113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
124
- command.query['userIp'] = user_ip unless user_ip.nil?
125
114
  execute_or_queue_command(command, &block)
126
115
  end
127
116
 
@@ -131,10 +120,8 @@ module Google
131
120
  # @param [String] fields
132
121
  # Selector specifying which fields to include in a partial response.
133
122
  # @param [String] quota_user
134
- # An opaque string that represents a user for quota purposes. Must not exceed 40
135
- # characters.
136
- # @param [String] user_ip
137
- # Deprecated. Please use quotaUser instead.
123
+ # Available to use for quota purposes for server-side applications. Can be any
124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
125
  # @param [Google::Apis::RequestOptions] options
139
126
  # Request-specific options
140
127
  #
@@ -147,15 +134,14 @@ module Google
147
134
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
135
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
136
  # @raise [Google::Apis::AuthorizationError] Authorization is required
150
- def custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
151
- command = make_simple_command(:post, 'accounts/batch', options)
137
+ def custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ command = make_simple_command(:post, 'content/v2.1/accounts/batch', options)
152
139
  command.request_representation = Google::Apis::ContentV2_1::AccountsCustomBatchRequest::Representation
153
140
  command.request_object = accounts_custom_batch_request_object
154
141
  command.response_representation = Google::Apis::ContentV2_1::AccountsCustomBatchResponse::Representation
155
142
  command.response_class = Google::Apis::ContentV2_1::AccountsCustomBatchResponse
156
143
  command.query['fields'] = fields unless fields.nil?
157
144
  command.query['quotaUser'] = quota_user unless quota_user.nil?
158
- command.query['userIp'] = user_ip unless user_ip.nil?
159
145
  execute_or_queue_command(command, &block)
160
146
  end
161
147
 
@@ -170,10 +156,8 @@ module Google
170
156
  # @param [String] fields
171
157
  # Selector specifying which fields to include in a partial response.
172
158
  # @param [String] quota_user
173
- # An opaque string that represents a user for quota purposes. Must not exceed 40
174
- # characters.
175
- # @param [String] user_ip
176
- # Deprecated. Please use quotaUser instead.
159
+ # Available to use for quota purposes for server-side applications. Can be any
160
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
177
161
  # @param [Google::Apis::RequestOptions] options
178
162
  # Request-specific options
179
163
  #
@@ -186,14 +170,13 @@ module Google
186
170
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
171
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
172
  # @raise [Google::Apis::AuthorizationError] Authorization is required
189
- def delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
190
- command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options)
173
+ def delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, options: nil, &block)
174
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/accounts/{accountId}', options)
191
175
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
192
176
  command.params['accountId'] = account_id unless account_id.nil?
193
177
  command.query['force'] = force unless force.nil?
194
178
  command.query['fields'] = fields unless fields.nil?
195
179
  command.query['quotaUser'] = quota_user unless quota_user.nil?
196
- command.query['userIp'] = user_ip unless user_ip.nil?
197
180
  execute_or_queue_command(command, &block)
198
181
  end
199
182
 
@@ -210,10 +193,8 @@ module Google
210
193
  # @param [String] fields
211
194
  # Selector specifying which fields to include in a partial response.
212
195
  # @param [String] quota_user
213
- # An opaque string that represents a user for quota purposes. Must not exceed 40
214
- # characters.
215
- # @param [String] user_ip
216
- # Deprecated. Please use quotaUser instead.
196
+ # Available to use for quota purposes for server-side applications. Can be any
197
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
217
198
  # @param [Google::Apis::RequestOptions] options
218
199
  # Request-specific options
219
200
  #
@@ -226,8 +207,8 @@ module Google
226
207
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
227
208
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
228
209
  # @raise [Google::Apis::AuthorizationError] Authorization is required
229
- def get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
230
- command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options)
210
+ def get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
211
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounts/{accountId}', options)
231
212
  command.response_representation = Google::Apis::ContentV2_1::Account::Representation
232
213
  command.response_class = Google::Apis::ContentV2_1::Account
233
214
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -235,7 +216,6 @@ module Google
235
216
  command.query['view'] = view unless view.nil?
236
217
  command.query['fields'] = fields unless fields.nil?
237
218
  command.query['quotaUser'] = quota_user unless quota_user.nil?
238
- command.query['userIp'] = user_ip unless user_ip.nil?
239
219
  execute_or_queue_command(command, &block)
240
220
  end
241
221
 
@@ -246,10 +226,8 @@ module Google
246
226
  # @param [String] fields
247
227
  # Selector specifying which fields to include in a partial response.
248
228
  # @param [String] quota_user
249
- # An opaque string that represents a user for quota purposes. Must not exceed 40
250
- # characters.
251
- # @param [String] user_ip
252
- # Deprecated. Please use quotaUser instead.
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
253
231
  # @param [Google::Apis::RequestOptions] options
254
232
  # Request-specific options
255
233
  #
@@ -262,8 +240,8 @@ module Google
262
240
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
263
241
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
264
242
  # @raise [Google::Apis::AuthorizationError] Authorization is required
265
- def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
266
- command = make_simple_command(:post, '{merchantId}/accounts', options)
243
+ def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts', options)
267
245
  command.request_representation = Google::Apis::ContentV2_1::Account::Representation
268
246
  command.request_object = account_object
269
247
  command.response_representation = Google::Apis::ContentV2_1::Account::Representation
@@ -271,7 +249,6 @@ module Google
271
249
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
272
250
  command.query['fields'] = fields unless fields.nil?
273
251
  command.query['quotaUser'] = quota_user unless quota_user.nil?
274
- command.query['userIp'] = user_ip unless user_ip.nil?
275
252
  execute_or_queue_command(command, &block)
276
253
  end
277
254
 
@@ -287,10 +264,8 @@ module Google
287
264
  # @param [String] fields
288
265
  # Selector specifying which fields to include in a partial response.
289
266
  # @param [String] quota_user
290
- # An opaque string that represents a user for quota purposes. Must not exceed 40
291
- # characters.
292
- # @param [String] user_ip
293
- # Deprecated. Please use quotaUser instead.
267
+ # Available to use for quota purposes for server-side applications. Can be any
268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
294
269
  # @param [Google::Apis::RequestOptions] options
295
270
  # Request-specific options
296
271
  #
@@ -303,8 +278,8 @@ module Google
303
278
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
306
- def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
307
- command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', options)
281
+ def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
282
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts/{accountId}/link', options)
308
283
  command.request_representation = Google::Apis::ContentV2_1::AccountsLinkRequest::Representation
309
284
  command.request_object = accounts_link_request_object
310
285
  command.response_representation = Google::Apis::ContentV2_1::AccountsLinkResponse::Representation
@@ -313,7 +288,6 @@ module Google
313
288
  command.params['accountId'] = account_id unless account_id.nil?
314
289
  command.query['fields'] = fields unless fields.nil?
315
290
  command.query['quotaUser'] = quota_user unless quota_user.nil?
316
- command.query['userIp'] = user_ip unless user_ip.nil?
317
291
  execute_or_queue_command(command, &block)
318
292
  end
319
293
 
@@ -333,10 +307,8 @@ module Google
333
307
  # @param [String] fields
334
308
  # Selector specifying which fields to include in a partial response.
335
309
  # @param [String] quota_user
336
- # An opaque string that represents a user for quota purposes. Must not exceed 40
337
- # characters.
338
- # @param [String] user_ip
339
- # Deprecated. Please use quotaUser instead.
310
+ # Available to use for quota purposes for server-side applications. Can be any
311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
340
312
  # @param [Google::Apis::RequestOptions] options
341
313
  # Request-specific options
342
314
  #
@@ -349,8 +321,8 @@ module Google
349
321
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
322
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
323
  # @raise [Google::Apis::AuthorizationError] Authorization is required
352
- def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
353
- command = make_simple_command(:get, '{merchantId}/accounts', options)
324
+ def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
325
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounts', options)
354
326
  command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation
355
327
  command.response_class = Google::Apis::ContentV2_1::AccountsListResponse
356
328
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -360,7 +332,6 @@ module Google
360
332
  command.query['view'] = view unless view.nil?
361
333
  command.query['fields'] = fields unless fields.nil?
362
334
  command.query['quotaUser'] = quota_user unless quota_user.nil?
363
- command.query['userIp'] = user_ip unless user_ip.nil?
364
335
  execute_or_queue_command(command, &block)
365
336
  end
366
337
 
@@ -378,10 +349,8 @@ module Google
378
349
  # @param [String] fields
379
350
  # Selector specifying which fields to include in a partial response.
380
351
  # @param [String] quota_user
381
- # An opaque string that represents a user for quota purposes. Must not exceed 40
382
- # characters.
383
- # @param [String] user_ip
384
- # Deprecated. Please use quotaUser instead.
352
+ # Available to use for quota purposes for server-side applications. Can be any
353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
385
354
  # @param [Google::Apis::RequestOptions] options
386
355
  # Request-specific options
387
356
  #
@@ -394,8 +363,8 @@ module Google
394
363
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
364
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
365
  # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
398
- command = make_simple_command(:get, '{merchantId}/accounts/{accountId}/listlinks', options)
366
+ def listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
367
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounts/{accountId}/listlinks', options)
399
368
  command.response_representation = Google::Apis::ContentV2_1::AccountsListLinksResponse::Representation
400
369
  command.response_class = Google::Apis::ContentV2_1::AccountsListLinksResponse
401
370
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -404,7 +373,6 @@ module Google
404
373
  command.query['pageToken'] = page_token unless page_token.nil?
405
374
  command.query['fields'] = fields unless fields.nil?
406
375
  command.query['quotaUser'] = quota_user unless quota_user.nil?
407
- command.query['userIp'] = user_ip unless user_ip.nil?
408
376
  execute_or_queue_command(command, &block)
409
377
  end
410
378
 
@@ -420,10 +388,8 @@ module Google
420
388
  # @param [String] fields
421
389
  # Selector specifying which fields to include in a partial response.
422
390
  # @param [String] quota_user
423
- # An opaque string that represents a user for quota purposes. Must not exceed 40
424
- # characters.
425
- # @param [String] user_ip
426
- # Deprecated. Please use quotaUser instead.
391
+ # Available to use for quota purposes for server-side applications. Can be any
392
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
427
393
  # @param [Google::Apis::RequestOptions] options
428
394
  # Request-specific options
429
395
  #
@@ -436,8 +402,8 @@ module Google
436
402
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
403
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
404
  # @raise [Google::Apis::AuthorizationError] Authorization is required
439
- def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
440
- command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options)
405
+ def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
406
+ command = make_simple_command(:put, 'content/v2.1/{merchantId}/accounts/{accountId}', options)
441
407
  command.request_representation = Google::Apis::ContentV2_1::Account::Representation
442
408
  command.request_object = account_object
443
409
  command.response_representation = Google::Apis::ContentV2_1::Account::Representation
@@ -446,7 +412,6 @@ module Google
446
412
  command.params['accountId'] = account_id unless account_id.nil?
447
413
  command.query['fields'] = fields unless fields.nil?
448
414
  command.query['quotaUser'] = quota_user unless quota_user.nil?
449
- command.query['userIp'] = user_ip unless user_ip.nil?
450
415
  execute_or_queue_command(command, &block)
451
416
  end
452
417
 
@@ -459,10 +424,8 @@ module Google
459
424
  # @param [String] fields
460
425
  # Selector specifying which fields to include in a partial response.
461
426
  # @param [String] quota_user
462
- # An opaque string that represents a user for quota purposes. Must not exceed 40
463
- # characters.
464
- # @param [String] user_ip
465
- # Deprecated. Please use quotaUser instead.
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
466
429
  # @param [Google::Apis::RequestOptions] options
467
430
  # Request-specific options
468
431
  #
@@ -475,8 +438,8 @@ module Google
475
438
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
476
439
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
477
440
  # @raise [Google::Apis::AuthorizationError] Authorization is required
478
- def updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
479
- command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/updatelabels', options)
441
+ def updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
442
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/accounts/{accountId}/updatelabels', options)
480
443
  command.request_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsRequest::Representation
481
444
  command.request_object = accounts_update_labels_request_object
482
445
  command.response_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse::Representation
@@ -485,7 +448,147 @@ module Google
485
448
  command.params['accountId'] = account_id unless account_id.nil?
486
449
  command.query['fields'] = fields unless fields.nil?
487
450
  command.query['quotaUser'] = quota_user unless quota_user.nil?
488
- command.query['userIp'] = user_ip unless user_ip.nil?
451
+ execute_or_queue_command(command, &block)
452
+ end
453
+
454
+ # Creates a new label, not assigned to any account.
455
+ # @param [Fixnum] account_id
456
+ # Required. The id of the account this label belongs to.
457
+ # @param [Google::Apis::ContentV2_1::AccountLabel] account_label_object
458
+ # @param [String] fields
459
+ # Selector specifying which fields to include in a partial response.
460
+ # @param [String] quota_user
461
+ # Available to use for quota purposes for server-side applications. Can be any
462
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
463
+ # @param [Google::Apis::RequestOptions] options
464
+ # Request-specific options
465
+ #
466
+ # @yield [result, err] Result & error if block supplied
467
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountLabel] parsed result object
468
+ # @yieldparam err [StandardError] error object if request failed
469
+ #
470
+ # @return [Google::Apis::ContentV2_1::AccountLabel]
471
+ #
472
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
473
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
475
+ def create_account_label(account_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
476
+ command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/labels', options)
477
+ command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
478
+ command.request_object = account_label_object
479
+ command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
480
+ command.response_class = Google::Apis::ContentV2_1::AccountLabel
481
+ command.params['accountId'] = account_id unless account_id.nil?
482
+ command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
484
+ execute_or_queue_command(command, &block)
485
+ end
486
+
487
+ # Deletes a label and removes it from all accounts to which it was assigned.
488
+ # @param [Fixnum] account_id
489
+ # Required. The id of the account that owns the label.
490
+ # @param [Fixnum] label_id
491
+ # Required. The id of the label to delete.
492
+ # @param [String] fields
493
+ # Selector specifying which fields to include in a partial response.
494
+ # @param [String] quota_user
495
+ # Available to use for quota purposes for server-side applications. Can be any
496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
497
+ # @param [Google::Apis::RequestOptions] options
498
+ # Request-specific options
499
+ #
500
+ # @yield [result, err] Result & error if block supplied
501
+ # @yieldparam result [NilClass] No result returned for this method
502
+ # @yieldparam err [StandardError] error object if request failed
503
+ #
504
+ # @return [void]
505
+ #
506
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
507
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
508
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
509
+ def delete_account_label(account_id, label_id, fields: nil, quota_user: nil, options: nil, &block)
510
+ command = make_simple_command(:delete, 'content/v2.1/accounts/{accountId}/labels/{labelId}', options)
511
+ command.params['accountId'] = account_id unless account_id.nil?
512
+ command.params['labelId'] = label_id unless label_id.nil?
513
+ command.query['fields'] = fields unless fields.nil?
514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
515
+ execute_or_queue_command(command, &block)
516
+ end
517
+
518
+ # Lists the labels assigned to an account.
519
+ # @param [Fixnum] account_id
520
+ # Required. The account id for whose labels are to be listed.
521
+ # @param [Fixnum] page_size
522
+ # The maximum number of labels to return. The service may return fewer than this
523
+ # value. If unspecified, at most 50 labels will be returned. The maximum value
524
+ # is 1000; values above 1000 will be coerced to 1000.
525
+ # @param [String] page_token
526
+ # A page token, received from a previous `ListAccountLabels` call. Provide this
527
+ # to retrieve the subsequent page. When paginating, all other parameters
528
+ # provided to `ListAccountLabels` must match the call that provided the page
529
+ # token.
530
+ # @param [String] fields
531
+ # Selector specifying which fields to include in a partial response.
532
+ # @param [String] quota_user
533
+ # Available to use for quota purposes for server-side applications. Can be any
534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
535
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::ContentV2_1::ListAccountLabelsResponse] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::ContentV2_1::ListAccountLabelsResponse]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547
+ def list_account_labels(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
548
+ command = make_simple_command(:get, 'content/v2.1/accounts/{accountId}/labels', options)
549
+ command.response_representation = Google::Apis::ContentV2_1::ListAccountLabelsResponse::Representation
550
+ command.response_class = Google::Apis::ContentV2_1::ListAccountLabelsResponse
551
+ command.params['accountId'] = account_id unless account_id.nil?
552
+ command.query['pageSize'] = page_size unless page_size.nil?
553
+ command.query['pageToken'] = page_token unless page_token.nil?
554
+ command.query['fields'] = fields unless fields.nil?
555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
556
+ execute_or_queue_command(command, &block)
557
+ end
558
+
559
+ # Updates a label.
560
+ # @param [Fixnum] account_id
561
+ # Required. The id of the account this label belongs to.
562
+ # @param [Fixnum] label_id
563
+ # Required. The id of the label to update.
564
+ # @param [Google::Apis::ContentV2_1::AccountLabel] account_label_object
565
+ # @param [String] fields
566
+ # Selector specifying which fields to include in a partial response.
567
+ # @param [String] quota_user
568
+ # Available to use for quota purposes for server-side applications. Can be any
569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
570
+ # @param [Google::Apis::RequestOptions] options
571
+ # Request-specific options
572
+ #
573
+ # @yield [result, err] Result & error if block supplied
574
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountLabel] parsed result object
575
+ # @yieldparam err [StandardError] error object if request failed
576
+ #
577
+ # @return [Google::Apis::ContentV2_1::AccountLabel]
578
+ #
579
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
580
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
581
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
582
+ def patch_account_label(account_id, label_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
583
+ command = make_simple_command(:patch, 'content/v2.1/accounts/{accountId}/labels/{labelId}', options)
584
+ command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
585
+ command.request_object = account_label_object
586
+ command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
587
+ command.response_class = Google::Apis::ContentV2_1::AccountLabel
588
+ command.params['accountId'] = account_id unless account_id.nil?
589
+ command.params['labelId'] = label_id unless label_id.nil?
590
+ command.query['fields'] = fields unless fields.nil?
591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
489
592
  execute_or_queue_command(command, &block)
490
593
  end
491
594
 
@@ -494,10 +597,8 @@ module Google
494
597
  # @param [String] fields
495
598
  # Selector specifying which fields to include in a partial response.
496
599
  # @param [String] quota_user
497
- # An opaque string that represents a user for quota purposes. Must not exceed 40
498
- # characters.
499
- # @param [String] user_ip
500
- # Deprecated. Please use quotaUser instead.
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
501
602
  # @param [Google::Apis::RequestOptions] options
502
603
  # Request-specific options
503
604
  #
@@ -510,15 +611,14 @@ module Google
510
611
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
511
612
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
512
613
  # @raise [Google::Apis::AuthorizationError] Authorization is required
513
- def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
514
- command = make_simple_command(:post, 'accountstatuses/batch', options)
614
+ def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:post, 'content/v2.1/accountstatuses/batch', options)
515
616
  command.request_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest::Representation
516
617
  command.request_object = accountstatuses_custom_batch_request_object
517
618
  command.response_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse::Representation
518
619
  command.response_class = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse
519
620
  command.query['fields'] = fields unless fields.nil?
520
621
  command.query['quotaUser'] = quota_user unless quota_user.nil?
521
- command.query['userIp'] = user_ip unless user_ip.nil?
522
622
  execute_or_queue_command(command, &block)
523
623
  end
524
624
 
@@ -536,10 +636,8 @@ module Google
536
636
  # @param [String] fields
537
637
  # Selector specifying which fields to include in a partial response.
538
638
  # @param [String] quota_user
539
- # An opaque string that represents a user for quota purposes. Must not exceed 40
540
- # characters.
541
- # @param [String] user_ip
542
- # Deprecated. Please use quotaUser instead.
639
+ # Available to use for quota purposes for server-side applications. Can be any
640
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
543
641
  # @param [Google::Apis::RequestOptions] options
544
642
  # Request-specific options
545
643
  #
@@ -552,8 +650,8 @@ module Google
552
650
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
651
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
652
  # @raise [Google::Apis::AuthorizationError] Authorization is required
555
- def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
556
- command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
653
+ def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block)
654
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/accountstatuses/{accountId}', options)
557
655
  command.response_representation = Google::Apis::ContentV2_1::AccountStatus::Representation
558
656
  command.response_class = Google::Apis::ContentV2_1::AccountStatus
559
657
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -561,7 +659,6 @@ module Google
561
659
  command.query['destinations'] = destinations unless destinations.nil?
562
660
  command.query['fields'] = fields unless fields.nil?
563
661
  command.query['quotaUser'] = quota_user unless quota_user.nil?
564
- command.query['userIp'] = user_ip unless user_ip.nil?
565
662
  execute_or_queue_command(command, &block)
566
663
  end
567
664
 
@@ -579,10 +676,8 @@ module Google
579
676
  # @param [String] fields
580
677
  # Selector specifying which fields to include in a partial response.
581
678
  # @param [String] quota_user
582
- # An opaque string that represents a user for quota purposes. Must not exceed 40
583
- # characters.
584
- # @param [String] user_ip
585
- # Deprecated. Please use quotaUser instead.
679
+ # Available to use for quota purposes for server-side applications. Can be any
680
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
586
681
  # @param [Google::Apis::RequestOptions] options
587
682
  # Request-specific options
588
683
  #
@@ -595,8 +690,8 @@ module Google
595
690
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
596
691
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
597
692
  # @raise [Google::Apis::AuthorizationError] Authorization is required
598
- def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
599
- command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
693
+ def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
694
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/accountstatuses', options)
600
695
  command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation
601
696
  command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse
602
697
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -605,7 +700,6 @@ module Google
605
700
  command.query['pageToken'] = page_token unless page_token.nil?
606
701
  command.query['fields'] = fields unless fields.nil?
607
702
  command.query['quotaUser'] = quota_user unless quota_user.nil?
608
- command.query['userIp'] = user_ip unless user_ip.nil?
609
703
  execute_or_queue_command(command, &block)
610
704
  end
611
705
 
@@ -614,10 +708,8 @@ module Google
614
708
  # @param [String] fields
615
709
  # Selector specifying which fields to include in a partial response.
616
710
  # @param [String] quota_user
617
- # An opaque string that represents a user for quota purposes. Must not exceed 40
618
- # characters.
619
- # @param [String] user_ip
620
- # Deprecated. Please use quotaUser instead.
711
+ # Available to use for quota purposes for server-side applications. Can be any
712
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
621
713
  # @param [Google::Apis::RequestOptions] options
622
714
  # Request-specific options
623
715
  #
@@ -630,15 +722,14 @@ module Google
630
722
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
631
723
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
632
724
  # @raise [Google::Apis::AuthorizationError] Authorization is required
633
- def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
634
- command = make_simple_command(:post, 'accounttax/batch', options)
725
+ def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
726
+ command = make_simple_command(:post, 'content/v2.1/accounttax/batch', options)
635
727
  command.request_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest::Representation
636
728
  command.request_object = accounttax_custom_batch_request_object
637
729
  command.response_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse::Representation
638
730
  command.response_class = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse
639
731
  command.query['fields'] = fields unless fields.nil?
640
732
  command.query['quotaUser'] = quota_user unless quota_user.nil?
641
- command.query['userIp'] = user_ip unless user_ip.nil?
642
733
  execute_or_queue_command(command, &block)
643
734
  end
644
735
 
@@ -652,10 +743,8 @@ module Google
652
743
  # @param [String] fields
653
744
  # Selector specifying which fields to include in a partial response.
654
745
  # @param [String] quota_user
655
- # An opaque string that represents a user for quota purposes. Must not exceed 40
656
- # characters.
657
- # @param [String] user_ip
658
- # Deprecated. Please use quotaUser instead.
746
+ # Available to use for quota purposes for server-side applications. Can be any
747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
659
748
  # @param [Google::Apis::RequestOptions] options
660
749
  # Request-specific options
661
750
  #
@@ -668,15 +757,14 @@ module Google
668
757
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
758
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
759
  # @raise [Google::Apis::AuthorizationError] Authorization is required
671
- def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
672
- command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
760
+ def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
761
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounttax/{accountId}', options)
673
762
  command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
674
763
  command.response_class = Google::Apis::ContentV2_1::AccountTax
675
764
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
676
765
  command.params['accountId'] = account_id unless account_id.nil?
677
766
  command.query['fields'] = fields unless fields.nil?
678
767
  command.query['quotaUser'] = quota_user unless quota_user.nil?
679
- command.query['userIp'] = user_ip unless user_ip.nil?
680
768
  execute_or_queue_command(command, &block)
681
769
  end
682
770
 
@@ -690,10 +778,8 @@ module Google
690
778
  # @param [String] fields
691
779
  # Selector specifying which fields to include in a partial response.
692
780
  # @param [String] quota_user
693
- # An opaque string that represents a user for quota purposes. Must not exceed 40
694
- # characters.
695
- # @param [String] user_ip
696
- # Deprecated. Please use quotaUser instead.
781
+ # Available to use for quota purposes for server-side applications. Can be any
782
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
697
783
  # @param [Google::Apis::RequestOptions] options
698
784
  # Request-specific options
699
785
  #
@@ -706,8 +792,8 @@ module Google
706
792
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
707
793
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
708
794
  # @raise [Google::Apis::AuthorizationError] Authorization is required
709
- def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
710
- command = make_simple_command(:get, '{merchantId}/accounttax', options)
795
+ def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
796
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounttax', options)
711
797
  command.response_representation = Google::Apis::ContentV2_1::AccounttaxListResponse::Representation
712
798
  command.response_class = Google::Apis::ContentV2_1::AccounttaxListResponse
713
799
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -715,7 +801,6 @@ module Google
715
801
  command.query['pageToken'] = page_token unless page_token.nil?
716
802
  command.query['fields'] = fields unless fields.nil?
717
803
  command.query['quotaUser'] = quota_user unless quota_user.nil?
718
- command.query['userIp'] = user_ip unless user_ip.nil?
719
804
  execute_or_queue_command(command, &block)
720
805
  end
721
806
 
@@ -731,10 +816,8 @@ module Google
731
816
  # @param [String] fields
732
817
  # Selector specifying which fields to include in a partial response.
733
818
  # @param [String] quota_user
734
- # An opaque string that represents a user for quota purposes. Must not exceed 40
735
- # characters.
736
- # @param [String] user_ip
737
- # Deprecated. Please use quotaUser instead.
819
+ # Available to use for quota purposes for server-side applications. Can be any
820
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
738
821
  # @param [Google::Apis::RequestOptions] options
739
822
  # Request-specific options
740
823
  #
@@ -747,8 +830,8 @@ module Google
747
830
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
831
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
832
  # @raise [Google::Apis::AuthorizationError] Authorization is required
750
- def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
751
- command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
833
+ def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, options: nil, &block)
834
+ command = make_simple_command(:put, 'content/v2.1/{merchantId}/accounttax/{accountId}', options)
752
835
  command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation
753
836
  command.request_object = account_tax_object
754
837
  command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
@@ -757,7 +840,117 @@ module Google
757
840
  command.params['accountId'] = account_id unless account_id.nil?
758
841
  command.query['fields'] = fields unless fields.nil?
759
842
  command.query['quotaUser'] = quota_user unless quota_user.nil?
760
- command.query['userIp'] = user_ip unless user_ip.nil?
843
+ execute_or_queue_command(command, &block)
844
+ end
845
+
846
+ # Retrieves a single CSS domain by ID.
847
+ # @param [Fixnum] css_group_id
848
+ # Required. The ID of the managing account. If this parameter is not the same as
849
+ # [cssDomainId](#cssDomainId), then this ID must be a CSS group ID and `
850
+ # cssDomainId` must be the ID of a CSS domain affiliated with this group.
851
+ # @param [Fixnum] css_domain_id
852
+ # Required. The ID of the CSS domain to return.
853
+ # @param [String] fields
854
+ # Selector specifying which fields to include in a partial response.
855
+ # @param [String] quota_user
856
+ # Available to use for quota purposes for server-side applications. Can be any
857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
858
+ # @param [Google::Apis::RequestOptions] options
859
+ # Request-specific options
860
+ #
861
+ # @yield [result, err] Result & error if block supplied
862
+ # @yieldparam result [Google::Apis::ContentV2_1::Css] parsed result object
863
+ # @yieldparam err [StandardError] error object if request failed
864
+ #
865
+ # @return [Google::Apis::ContentV2_1::Css]
866
+ #
867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
870
+ def get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil, &block)
871
+ command = make_simple_command(:get, 'content/v2.1/{cssGroupId}/csses/{cssDomainId}', options)
872
+ command.response_representation = Google::Apis::ContentV2_1::Css::Representation
873
+ command.response_class = Google::Apis::ContentV2_1::Css
874
+ command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
875
+ command.params['cssDomainId'] = css_domain_id unless css_domain_id.nil?
876
+ command.query['fields'] = fields unless fields.nil?
877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
878
+ execute_or_queue_command(command, &block)
879
+ end
880
+
881
+ # Lists CSS domains affiliated with a CSS group.
882
+ # @param [Fixnum] css_group_id
883
+ # Required. The CSS group ID of CSS domains to be listed.
884
+ # @param [Fixnum] page_size
885
+ # The maximum number of CSS domains to return. The service may return fewer than
886
+ # this value. If unspecified, at most 50 CSS domains will be returned. The
887
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
888
+ # @param [String] page_token
889
+ # A page token, received from a previous `ListCsses` call. Provide this to
890
+ # retrieve the subsequent page. When paginating, all other parameters provided
891
+ # to `ListCsses` must match the call that provided the page token.
892
+ # @param [String] fields
893
+ # Selector specifying which fields to include in a partial response.
894
+ # @param [String] quota_user
895
+ # Available to use for quota purposes for server-side applications. Can be any
896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
897
+ # @param [Google::Apis::RequestOptions] options
898
+ # Request-specific options
899
+ #
900
+ # @yield [result, err] Result & error if block supplied
901
+ # @yieldparam result [Google::Apis::ContentV2_1::ListCssesResponse] parsed result object
902
+ # @yieldparam err [StandardError] error object if request failed
903
+ #
904
+ # @return [Google::Apis::ContentV2_1::ListCssesResponse]
905
+ #
906
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
907
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
908
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
909
+ def list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
910
+ command = make_simple_command(:get, 'content/v2.1/{cssGroupId}/csses', options)
911
+ command.response_representation = Google::Apis::ContentV2_1::ListCssesResponse::Representation
912
+ command.response_class = Google::Apis::ContentV2_1::ListCssesResponse
913
+ command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
914
+ command.query['pageSize'] = page_size unless page_size.nil?
915
+ command.query['pageToken'] = page_token unless page_token.nil?
916
+ command.query['fields'] = fields unless fields.nil?
917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
918
+ execute_or_queue_command(command, &block)
919
+ end
920
+
921
+ # Updates labels that are assigned to a CSS domain by its CSS group.
922
+ # @param [Fixnum] css_group_id
923
+ # Required. The CSS group ID of the updated CSS domain.
924
+ # @param [Fixnum] css_domain_id
925
+ # Required. The ID of the updated CSS domain.
926
+ # @param [Google::Apis::ContentV2_1::LabelIds] label_ids_object
927
+ # @param [String] fields
928
+ # Selector specifying which fields to include in a partial response.
929
+ # @param [String] quota_user
930
+ # Available to use for quota purposes for server-side applications. Can be any
931
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
932
+ # @param [Google::Apis::RequestOptions] options
933
+ # Request-specific options
934
+ #
935
+ # @yield [result, err] Result & error if block supplied
936
+ # @yieldparam result [Google::Apis::ContentV2_1::Css] parsed result object
937
+ # @yieldparam err [StandardError] error object if request failed
938
+ #
939
+ # @return [Google::Apis::ContentV2_1::Css]
940
+ #
941
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
942
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
943
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
944
+ def updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil, &block)
945
+ command = make_simple_command(:post, 'content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels', options)
946
+ command.request_representation = Google::Apis::ContentV2_1::LabelIds::Representation
947
+ command.request_object = label_ids_object
948
+ command.response_representation = Google::Apis::ContentV2_1::Css::Representation
949
+ command.response_class = Google::Apis::ContentV2_1::Css
950
+ command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
951
+ command.params['cssDomainId'] = css_domain_id unless css_domain_id.nil?
952
+ command.query['fields'] = fields unless fields.nil?
953
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
761
954
  execute_or_queue_command(command, &block)
762
955
  end
763
956
 
@@ -767,10 +960,8 @@ module Google
767
960
  # @param [String] fields
768
961
  # Selector specifying which fields to include in a partial response.
769
962
  # @param [String] quota_user
770
- # An opaque string that represents a user for quota purposes. Must not exceed 40
771
- # characters.
772
- # @param [String] user_ip
773
- # Deprecated. Please use quotaUser instead.
963
+ # Available to use for quota purposes for server-side applications. Can be any
964
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
774
965
  # @param [Google::Apis::RequestOptions] options
775
966
  # Request-specific options
776
967
  #
@@ -783,15 +974,14 @@ module Google
783
974
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
975
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
976
  # @raise [Google::Apis::AuthorizationError] Authorization is required
786
- def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
787
- command = make_simple_command(:post, 'datafeeds/batch', options)
977
+ def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
978
+ command = make_simple_command(:post, 'content/v2.1/datafeeds/batch', options)
788
979
  command.request_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest::Representation
789
980
  command.request_object = datafeeds_custom_batch_request_object
790
981
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse::Representation
791
982
  command.response_class = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse
792
983
  command.query['fields'] = fields unless fields.nil?
793
984
  command.query['quotaUser'] = quota_user unless quota_user.nil?
794
- command.query['userIp'] = user_ip unless user_ip.nil?
795
985
  execute_or_queue_command(command, &block)
796
986
  end
797
987
 
@@ -804,10 +994,8 @@ module Google
804
994
  # @param [String] fields
805
995
  # Selector specifying which fields to include in a partial response.
806
996
  # @param [String] quota_user
807
- # An opaque string that represents a user for quota purposes. Must not exceed 40
808
- # characters.
809
- # @param [String] user_ip
810
- # Deprecated. Please use quotaUser instead.
997
+ # Available to use for quota purposes for server-side applications. Can be any
998
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
811
999
  # @param [Google::Apis::RequestOptions] options
812
1000
  # Request-specific options
813
1001
  #
@@ -820,13 +1008,12 @@ module Google
820
1008
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
821
1009
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
1010
  # @raise [Google::Apis::AuthorizationError] Authorization is required
823
- def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
824
- command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
1011
+ def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
1012
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options)
825
1013
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
826
1014
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
827
1015
  command.query['fields'] = fields unless fields.nil?
828
1016
  command.query['quotaUser'] = quota_user unless quota_user.nil?
829
- command.query['userIp'] = user_ip unless user_ip.nil?
830
1017
  execute_or_queue_command(command, &block)
831
1018
  end
832
1019
 
@@ -839,10 +1026,8 @@ module Google
839
1026
  # @param [String] fields
840
1027
  # Selector specifying which fields to include in a partial response.
841
1028
  # @param [String] quota_user
842
- # An opaque string that represents a user for quota purposes. Must not exceed 40
843
- # characters.
844
- # @param [String] user_ip
845
- # Deprecated. Please use quotaUser instead.
1029
+ # Available to use for quota purposes for server-side applications. Can be any
1030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
846
1031
  # @param [Google::Apis::RequestOptions] options
847
1032
  # Request-specific options
848
1033
  #
@@ -855,15 +1040,14 @@ module Google
855
1040
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
856
1041
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
857
1042
  # @raise [Google::Apis::AuthorizationError] Authorization is required
858
- def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
859
- command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
1043
+ def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
1044
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
860
1045
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse::Representation
861
1046
  command.response_class = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
862
1047
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
863
1048
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
864
1049
  command.query['fields'] = fields unless fields.nil?
865
1050
  command.query['quotaUser'] = quota_user unless quota_user.nil?
866
- command.query['userIp'] = user_ip unless user_ip.nil?
867
1051
  execute_or_queue_command(command, &block)
868
1052
  end
869
1053
 
@@ -876,10 +1060,8 @@ module Google
876
1060
  # @param [String] fields
877
1061
  # Selector specifying which fields to include in a partial response.
878
1062
  # @param [String] quota_user
879
- # An opaque string that represents a user for quota purposes. Must not exceed 40
880
- # characters.
881
- # @param [String] user_ip
882
- # Deprecated. Please use quotaUser instead.
1063
+ # Available to use for quota purposes for server-side applications. Can be any
1064
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
883
1065
  # @param [Google::Apis::RequestOptions] options
884
1066
  # Request-specific options
885
1067
  #
@@ -892,15 +1074,14 @@ module Google
892
1074
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
893
1075
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
894
1076
  # @raise [Google::Apis::AuthorizationError] Authorization is required
895
- def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
896
- command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
1077
+ def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
1078
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options)
897
1079
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
898
1080
  command.response_class = Google::Apis::ContentV2_1::Datafeed
899
1081
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
900
1082
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
901
1083
  command.query['fields'] = fields unless fields.nil?
902
1084
  command.query['quotaUser'] = quota_user unless quota_user.nil?
903
- command.query['userIp'] = user_ip unless user_ip.nil?
904
1085
  execute_or_queue_command(command, &block)
905
1086
  end
906
1087
 
@@ -912,10 +1093,8 @@ module Google
912
1093
  # @param [String] fields
913
1094
  # Selector specifying which fields to include in a partial response.
914
1095
  # @param [String] quota_user
915
- # An opaque string that represents a user for quota purposes. Must not exceed 40
916
- # characters.
917
- # @param [String] user_ip
918
- # Deprecated. Please use quotaUser instead.
1096
+ # Available to use for quota purposes for server-side applications. Can be any
1097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
919
1098
  # @param [Google::Apis::RequestOptions] options
920
1099
  # Request-specific options
921
1100
  #
@@ -928,8 +1107,8 @@ module Google
928
1107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
929
1108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
930
1109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
931
- def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
932
- command = make_simple_command(:post, '{merchantId}/datafeeds', options)
1110
+ def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1111
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/datafeeds', options)
933
1112
  command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
934
1113
  command.request_object = datafeed_object
935
1114
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
@@ -937,7 +1116,6 @@ module Google
937
1116
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
938
1117
  command.query['fields'] = fields unless fields.nil?
939
1118
  command.query['quotaUser'] = quota_user unless quota_user.nil?
940
- command.query['userIp'] = user_ip unless user_ip.nil?
941
1119
  execute_or_queue_command(command, &block)
942
1120
  end
943
1121
 
@@ -952,10 +1130,8 @@ module Google
952
1130
  # @param [String] fields
953
1131
  # Selector specifying which fields to include in a partial response.
954
1132
  # @param [String] quota_user
955
- # An opaque string that represents a user for quota purposes. Must not exceed 40
956
- # characters.
957
- # @param [String] user_ip
958
- # Deprecated. Please use quotaUser instead.
1133
+ # Available to use for quota purposes for server-side applications. Can be any
1134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
959
1135
  # @param [Google::Apis::RequestOptions] options
960
1136
  # Request-specific options
961
1137
  #
@@ -968,8 +1144,8 @@ module Google
968
1144
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
969
1145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
970
1146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
971
- def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
972
- command = make_simple_command(:get, '{merchantId}/datafeeds', options)
1147
+ def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1148
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeeds', options)
973
1149
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsListResponse::Representation
974
1150
  command.response_class = Google::Apis::ContentV2_1::DatafeedsListResponse
975
1151
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -977,7 +1153,6 @@ module Google
977
1153
  command.query['pageToken'] = page_token unless page_token.nil?
978
1154
  command.query['fields'] = fields unless fields.nil?
979
1155
  command.query['quotaUser'] = quota_user unless quota_user.nil?
980
- command.query['userIp'] = user_ip unless user_ip.nil?
981
1156
  execute_or_queue_command(command, &block)
982
1157
  end
983
1158
 
@@ -992,10 +1167,8 @@ module Google
992
1167
  # @param [String] fields
993
1168
  # Selector specifying which fields to include in a partial response.
994
1169
  # @param [String] quota_user
995
- # An opaque string that represents a user for quota purposes. Must not exceed 40
996
- # characters.
997
- # @param [String] user_ip
998
- # Deprecated. Please use quotaUser instead.
1170
+ # Available to use for quota purposes for server-side applications. Can be any
1171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
999
1172
  # @param [Google::Apis::RequestOptions] options
1000
1173
  # Request-specific options
1001
1174
  #
@@ -1008,8 +1181,8 @@ module Google
1008
1181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1009
1182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1010
1183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1011
- def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1012
- command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
1184
+ def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1185
+ command = make_simple_command(:put, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options)
1013
1186
  command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
1014
1187
  command.request_object = datafeed_object
1015
1188
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
@@ -1018,7 +1191,6 @@ module Google
1018
1191
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1019
1192
  command.query['fields'] = fields unless fields.nil?
1020
1193
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1021
- command.query['userIp'] = user_ip unless user_ip.nil?
1022
1194
  execute_or_queue_command(command, &block)
1023
1195
  end
1024
1196
 
@@ -1027,10 +1199,8 @@ module Google
1027
1199
  # @param [String] fields
1028
1200
  # Selector specifying which fields to include in a partial response.
1029
1201
  # @param [String] quota_user
1030
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1031
- # characters.
1032
- # @param [String] user_ip
1033
- # Deprecated. Please use quotaUser instead.
1202
+ # Available to use for quota purposes for server-side applications. Can be any
1203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1034
1204
  # @param [Google::Apis::RequestOptions] options
1035
1205
  # Request-specific options
1036
1206
  #
@@ -1043,15 +1213,14 @@ module Google
1043
1213
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1044
1214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1045
1215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1046
- def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1047
- command = make_simple_command(:post, 'datafeedstatuses/batch', options)
1216
+ def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1217
+ command = make_simple_command(:post, 'content/v2.1/datafeedstatuses/batch', options)
1048
1218
  command.request_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest::Representation
1049
1219
  command.request_object = datafeedstatuses_custom_batch_request_object
1050
1220
  command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse::Representation
1051
1221
  command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse
1052
1222
  command.query['fields'] = fields unless fields.nil?
1053
1223
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1054
- command.query['userIp'] = user_ip unless user_ip.nil?
1055
1224
  execute_or_queue_command(command, &block)
1056
1225
  end
1057
1226
 
@@ -1074,10 +1243,8 @@ module Google
1074
1243
  # @param [String] fields
1075
1244
  # Selector specifying which fields to include in a partial response.
1076
1245
  # @param [String] quota_user
1077
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1078
- # characters.
1079
- # @param [String] user_ip
1080
- # Deprecated. Please use quotaUser instead.
1246
+ # Available to use for quota purposes for server-side applications. Can be any
1247
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1081
1248
  # @param [Google::Apis::RequestOptions] options
1082
1249
  # Request-specific options
1083
1250
  #
@@ -1090,8 +1257,8 @@ module Google
1090
1257
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1091
1258
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1092
1259
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1093
- def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1094
- command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
1260
+ def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block)
1261
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}', options)
1095
1262
  command.response_representation = Google::Apis::ContentV2_1::DatafeedStatus::Representation
1096
1263
  command.response_class = Google::Apis::ContentV2_1::DatafeedStatus
1097
1264
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1100,7 +1267,6 @@ module Google
1100
1267
  command.query['language'] = language unless language.nil?
1101
1268
  command.query['fields'] = fields unless fields.nil?
1102
1269
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
- command.query['userIp'] = user_ip unless user_ip.nil?
1104
1270
  execute_or_queue_command(command, &block)
1105
1271
  end
1106
1272
 
@@ -1115,10 +1281,8 @@ module Google
1115
1281
  # @param [String] fields
1116
1282
  # Selector specifying which fields to include in a partial response.
1117
1283
  # @param [String] quota_user
1118
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1119
- # characters.
1120
- # @param [String] user_ip
1121
- # Deprecated. Please use quotaUser instead.
1284
+ # Available to use for quota purposes for server-side applications. Can be any
1285
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1122
1286
  # @param [Google::Apis::RequestOptions] options
1123
1287
  # Request-specific options
1124
1288
  #
@@ -1131,8 +1295,8 @@ module Google
1131
1295
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1132
1296
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1133
1297
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1134
- def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1135
- command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
1298
+ def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1299
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeedstatuses', options)
1136
1300
  command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesListResponse::Representation
1137
1301
  command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesListResponse
1138
1302
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1140,7 +1304,6 @@ module Google
1140
1304
  command.query['pageToken'] = page_token unless page_token.nil?
1141
1305
  command.query['fields'] = fields unless fields.nil?
1142
1306
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1143
- command.query['userIp'] = user_ip unless user_ip.nil?
1144
1307
  execute_or_queue_command(command, &block)
1145
1308
  end
1146
1309
 
@@ -1150,10 +1313,8 @@ module Google
1150
1313
  # @param [String] fields
1151
1314
  # Selector specifying which fields to include in a partial response.
1152
1315
  # @param [String] quota_user
1153
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1154
- # characters.
1155
- # @param [String] user_ip
1156
- # Deprecated. Please use quotaUser instead.
1316
+ # Available to use for quota purposes for server-side applications. Can be any
1317
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1157
1318
  # @param [Google::Apis::RequestOptions] options
1158
1319
  # Request-specific options
1159
1320
  #
@@ -1166,15 +1327,14 @@ module Google
1166
1327
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1167
1328
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1168
1329
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1169
- def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1170
- command = make_simple_command(:post, 'liasettings/batch', options)
1330
+ def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1331
+ command = make_simple_command(:post, 'content/v2.1/liasettings/batch', options)
1171
1332
  command.request_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest::Representation
1172
1333
  command.request_object = liasettings_custom_batch_request_object
1173
1334
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse::Representation
1174
1335
  command.response_class = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse
1175
1336
  command.query['fields'] = fields unless fields.nil?
1176
1337
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1177
- command.query['userIp'] = user_ip unless user_ip.nil?
1178
1338
  execute_or_queue_command(command, &block)
1179
1339
  end
1180
1340
 
@@ -1188,10 +1348,8 @@ module Google
1188
1348
  # @param [String] fields
1189
1349
  # Selector specifying which fields to include in a partial response.
1190
1350
  # @param [String] quota_user
1191
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1192
- # characters.
1193
- # @param [String] user_ip
1194
- # Deprecated. Please use quotaUser instead.
1351
+ # Available to use for quota purposes for server-side applications. Can be any
1352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1195
1353
  # @param [Google::Apis::RequestOptions] options
1196
1354
  # Request-specific options
1197
1355
  #
@@ -1204,15 +1362,14 @@ module Google
1204
1362
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1205
1363
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1206
1364
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1207
- def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1208
- command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options)
1365
+ def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
1366
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings/{accountId}', options)
1209
1367
  command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
1210
1368
  command.response_class = Google::Apis::ContentV2_1::LiaSettings
1211
1369
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1212
1370
  command.params['accountId'] = account_id unless account_id.nil?
1213
1371
  command.query['fields'] = fields unless fields.nil?
1214
1372
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1215
- command.query['userIp'] = user_ip unless user_ip.nil?
1216
1373
  execute_or_queue_command(command, &block)
1217
1374
  end
1218
1375
 
@@ -1227,10 +1384,8 @@ module Google
1227
1384
  # @param [String] fields
1228
1385
  # Selector specifying which fields to include in a partial response.
1229
1386
  # @param [String] quota_user
1230
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1231
- # characters.
1232
- # @param [String] user_ip
1233
- # Deprecated. Please use quotaUser instead.
1387
+ # Available to use for quota purposes for server-side applications. Can be any
1388
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1234
1389
  # @param [Google::Apis::RequestOptions] options
1235
1390
  # Request-specific options
1236
1391
  #
@@ -1243,15 +1398,14 @@ module Google
1243
1398
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1244
1399
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1245
1400
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1246
- def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1247
- command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
1401
+ def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
1402
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
1248
1403
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse::Representation
1249
1404
  command.response_class = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
1250
1405
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1251
1406
  command.params['accountId'] = account_id unless account_id.nil?
1252
1407
  command.query['fields'] = fields unless fields.nil?
1253
1408
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1254
- command.query['userIp'] = user_ip unless user_ip.nil?
1255
1409
  execute_or_queue_command(command, &block)
1256
1410
  end
1257
1411
 
@@ -1265,10 +1419,8 @@ module Google
1265
1419
  # @param [String] fields
1266
1420
  # Selector specifying which fields to include in a partial response.
1267
1421
  # @param [String] quota_user
1268
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1269
- # characters.
1270
- # @param [String] user_ip
1271
- # Deprecated. Please use quotaUser instead.
1422
+ # Available to use for quota purposes for server-side applications. Can be any
1423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1272
1424
  # @param [Google::Apis::RequestOptions] options
1273
1425
  # Request-specific options
1274
1426
  #
@@ -1281,8 +1433,8 @@ module Google
1281
1433
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1282
1434
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1283
1435
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1284
- def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1285
- command = make_simple_command(:get, '{merchantId}/liasettings', options)
1436
+ def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1437
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings', options)
1286
1438
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsListResponse::Representation
1287
1439
  command.response_class = Google::Apis::ContentV2_1::LiasettingsListResponse
1288
1440
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1290,7 +1442,6 @@ module Google
1290
1442
  command.query['pageToken'] = page_token unless page_token.nil?
1291
1443
  command.query['fields'] = fields unless fields.nil?
1292
1444
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1293
- command.query['userIp'] = user_ip unless user_ip.nil?
1294
1445
  execute_or_queue_command(command, &block)
1295
1446
  end
1296
1447
 
@@ -1299,10 +1450,8 @@ module Google
1299
1450
  # @param [String] fields
1300
1451
  # Selector specifying which fields to include in a partial response.
1301
1452
  # @param [String] quota_user
1302
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1303
- # characters.
1304
- # @param [String] user_ip
1305
- # Deprecated. Please use quotaUser instead.
1453
+ # Available to use for quota purposes for server-side applications. Can be any
1454
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1306
1455
  # @param [Google::Apis::RequestOptions] options
1307
1456
  # Request-specific options
1308
1457
  #
@@ -1315,13 +1464,12 @@ module Google
1315
1464
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1316
1465
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1317
1466
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1318
- def listposdataproviders_liasetting(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1319
- command = make_simple_command(:get, 'liasettings/posdataproviders', options)
1467
+ def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block)
1468
+ command = make_simple_command(:get, 'content/v2.1/liasettings/posdataproviders', options)
1320
1469
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse::Representation
1321
1470
  command.response_class = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse
1322
1471
  command.query['fields'] = fields unless fields.nil?
1323
1472
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1324
- command.query['userIp'] = user_ip unless user_ip.nil?
1325
1473
  execute_or_queue_command(command, &block)
1326
1474
  end
1327
1475
 
@@ -1337,10 +1485,8 @@ module Google
1337
1485
  # @param [String] fields
1338
1486
  # Selector specifying which fields to include in a partial response.
1339
1487
  # @param [String] quota_user
1340
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1341
- # characters.
1342
- # @param [String] user_ip
1343
- # Deprecated. Please use quotaUser instead.
1488
+ # Available to use for quota purposes for server-side applications. Can be any
1489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1344
1490
  # @param [Google::Apis::RequestOptions] options
1345
1491
  # Request-specific options
1346
1492
  #
@@ -1353,8 +1499,8 @@ module Google
1353
1499
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1354
1500
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1355
1501
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1356
- def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1357
- command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
1502
+ def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil, &block)
1503
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
1358
1504
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse::Representation
1359
1505
  command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
1360
1506
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1362,7 +1508,6 @@ module Google
1362
1508
  command.query['gmbEmail'] = gmb_email unless gmb_email.nil?
1363
1509
  command.query['fields'] = fields unless fields.nil?
1364
1510
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1365
- command.query['userIp'] = user_ip unless user_ip.nil?
1366
1511
  execute_or_queue_command(command, &block)
1367
1512
  end
1368
1513
 
@@ -1379,10 +1524,8 @@ module Google
1379
1524
  # @param [String] fields
1380
1525
  # Selector specifying which fields to include in a partial response.
1381
1526
  # @param [String] quota_user
1382
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1383
- # characters.
1384
- # @param [String] user_ip
1385
- # Deprecated. Please use quotaUser instead.
1527
+ # Available to use for quota purposes for server-side applications. Can be any
1528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1386
1529
  # @param [Google::Apis::RequestOptions] options
1387
1530
  # Request-specific options
1388
1531
  #
@@ -1395,8 +1538,8 @@ module Google
1395
1538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1396
1539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1397
1540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1398
- def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1399
- command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
1541
+ def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block)
1542
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
1400
1543
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse::Representation
1401
1544
  command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
1402
1545
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1404,7 +1547,6 @@ module Google
1404
1547
  command.params['country'] = country unless country.nil?
1405
1548
  command.query['fields'] = fields unless fields.nil?
1406
1549
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1407
- command.query['userIp'] = user_ip unless user_ip.nil?
1408
1550
  execute_or_queue_command(command, &block)
1409
1551
  end
1410
1552
 
@@ -1416,21 +1558,19 @@ module Google
1416
1558
  # @param [Fixnum] account_id
1417
1559
  # The ID of the account that manages the order. This cannot be a multi-client
1418
1560
  # account.
1419
- # @param [String] contact_email
1420
- # The email of the inventory verification contact.
1421
- # @param [String] contact_name
1422
- # The name of the inventory verification contact.
1423
1561
  # @param [String] country
1424
1562
  # The country for which inventory verification is requested.
1425
1563
  # @param [String] language
1426
1564
  # The language for which inventory verification is requested.
1565
+ # @param [String] contact_name
1566
+ # The name of the inventory verification contact.
1567
+ # @param [String] contact_email
1568
+ # The email of the inventory verification contact.
1427
1569
  # @param [String] fields
1428
1570
  # Selector specifying which fields to include in a partial response.
1429
1571
  # @param [String] quota_user
1430
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1431
- # characters.
1432
- # @param [String] user_ip
1433
- # Deprecated. Please use quotaUser instead.
1572
+ # Available to use for quota purposes for server-side applications. Can be any
1573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1434
1574
  # @param [Google::Apis::RequestOptions] options
1435
1575
  # Request-specific options
1436
1576
  #
@@ -1443,8 +1583,8 @@ module Google
1443
1583
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1444
1584
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1445
1585
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1446
- def setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email, contact_name, country, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1447
- command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
1586
+ def setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil, &block)
1587
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
1448
1588
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse::Representation
1449
1589
  command.response_class = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
1450
1590
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1455,7 +1595,6 @@ module Google
1455
1595
  command.query['language'] = language unless language.nil?
1456
1596
  command.query['fields'] = fields unless fields.nil?
1457
1597
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1458
- command.query['userIp'] = user_ip unless user_ip.nil?
1459
1598
  execute_or_queue_command(command, &block)
1460
1599
  end
1461
1600
 
@@ -1476,10 +1615,8 @@ module Google
1476
1615
  # @param [String] fields
1477
1616
  # Selector specifying which fields to include in a partial response.
1478
1617
  # @param [String] quota_user
1479
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1480
- # characters.
1481
- # @param [String] user_ip
1482
- # Deprecated. Please use quotaUser instead.
1618
+ # Available to use for quota purposes for server-side applications. Can be any
1619
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1483
1620
  # @param [Google::Apis::RequestOptions] options
1484
1621
  # Request-specific options
1485
1622
  #
@@ -1492,8 +1629,8 @@ module Google
1492
1629
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1493
1630
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1494
1631
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1495
- def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1496
- command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options)
1632
+ def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1633
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider', options)
1497
1634
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse::Representation
1498
1635
  command.response_class = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
1499
1636
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1503,7 +1640,6 @@ module Google
1503
1640
  command.query['posExternalAccountId'] = pos_external_account_id unless pos_external_account_id.nil?
1504
1641
  command.query['fields'] = fields unless fields.nil?
1505
1642
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1506
- command.query['userIp'] = user_ip unless user_ip.nil?
1507
1643
  execute_or_queue_command(command, &block)
1508
1644
  end
1509
1645
 
@@ -1519,10 +1655,8 @@ module Google
1519
1655
  # @param [String] fields
1520
1656
  # Selector specifying which fields to include in a partial response.
1521
1657
  # @param [String] quota_user
1522
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1523
- # characters.
1524
- # @param [String] user_ip
1525
- # Deprecated. Please use quotaUser instead.
1658
+ # Available to use for quota purposes for server-side applications. Can be any
1659
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1526
1660
  # @param [Google::Apis::RequestOptions] options
1527
1661
  # Request-specific options
1528
1662
  #
@@ -1535,8 +1669,8 @@ module Google
1535
1669
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1536
1670
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1537
1671
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1538
- def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1539
- command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options)
1672
+ def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1673
+ command = make_simple_command(:put, 'content/v2.1/{merchantId}/liasettings/{accountId}', options)
1540
1674
  command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
1541
1675
  command.request_object = lia_settings_object
1542
1676
  command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
@@ -1545,7 +1679,6 @@ module Google
1545
1679
  command.params['accountId'] = account_id unless account_id.nil?
1546
1680
  command.query['fields'] = fields unless fields.nil?
1547
1681
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1548
- command.query['userIp'] = user_ip unless user_ip.nil?
1549
1682
  execute_or_queue_command(command, &block)
1550
1683
  end
1551
1684
 
@@ -1554,10 +1687,8 @@ module Google
1554
1687
  # @param [String] fields
1555
1688
  # Selector specifying which fields to include in a partial response.
1556
1689
  # @param [String] quota_user
1557
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1558
- # characters.
1559
- # @param [String] user_ip
1560
- # Deprecated. Please use quotaUser instead.
1690
+ # Available to use for quota purposes for server-side applications. Can be any
1691
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1561
1692
  # @param [Google::Apis::RequestOptions] options
1562
1693
  # Request-specific options
1563
1694
  #
@@ -1570,15 +1701,14 @@ module Google
1570
1701
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1571
1702
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1572
1703
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1573
- def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1574
- command = make_simple_command(:post, 'localinventory/batch', options)
1704
+ def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1705
+ command = make_simple_command(:post, 'content/v2.1/localinventory/batch', options)
1575
1706
  command.request_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest::Representation
1576
1707
  command.request_object = localinventory_custom_batch_request_object
1577
1708
  command.response_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse::Representation
1578
1709
  command.response_class = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse
1579
1710
  command.query['fields'] = fields unless fields.nil?
1580
1711
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1581
- command.query['userIp'] = user_ip unless user_ip.nil?
1582
1712
  execute_or_queue_command(command, &block)
1583
1713
  end
1584
1714
 
@@ -1592,10 +1722,8 @@ module Google
1592
1722
  # @param [String] fields
1593
1723
  # Selector specifying which fields to include in a partial response.
1594
1724
  # @param [String] quota_user
1595
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1596
- # characters.
1597
- # @param [String] user_ip
1598
- # Deprecated. Please use quotaUser instead.
1725
+ # Available to use for quota purposes for server-side applications. Can be any
1726
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1599
1727
  # @param [Google::Apis::RequestOptions] options
1600
1728
  # Request-specific options
1601
1729
  #
@@ -1608,8 +1736,8 @@ module Google
1608
1736
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1609
1737
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1610
1738
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1611
- def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1612
- command = make_simple_command(:post, '{merchantId}/products/{productId}/localinventory', options)
1739
+ def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1740
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/products/{productId}/localinventory', options)
1613
1741
  command.request_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
1614
1742
  command.request_object = local_inventory_object
1615
1743
  command.response_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
@@ -1618,7 +1746,6 @@ module Google
1618
1746
  command.params['productId'] = product_id unless product_id.nil?
1619
1747
  command.query['fields'] = fields unless fields.nil?
1620
1748
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1621
- command.query['userIp'] = user_ip unless user_ip.nil?
1622
1749
  execute_or_queue_command(command, &block)
1623
1750
  end
1624
1751
 
@@ -1633,10 +1760,8 @@ module Google
1633
1760
  # @param [String] fields
1634
1761
  # Selector specifying which fields to include in a partial response.
1635
1762
  # @param [String] quota_user
1636
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1637
- # characters.
1638
- # @param [String] user_ip
1639
- # Deprecated. Please use quotaUser instead.
1763
+ # Available to use for quota purposes for server-side applications. Can be any
1764
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1640
1765
  # @param [Google::Apis::RequestOptions] options
1641
1766
  # Request-specific options
1642
1767
  #
@@ -1649,8 +1774,8 @@ module Google
1649
1774
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1650
1775
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1651
1776
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1652
- def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1653
- command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
1777
+ def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1778
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
1654
1779
  command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest::Representation
1655
1780
  command.request_object = orderinvoices_create_charge_invoice_request_object
1656
1781
  command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse::Representation
@@ -1659,7 +1784,6 @@ module Google
1659
1784
  command.params['orderId'] = order_id unless order_id.nil?
1660
1785
  command.query['fields'] = fields unless fields.nil?
1661
1786
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1662
- command.query['userIp'] = user_ip unless user_ip.nil?
1663
1787
  execute_or_queue_command(command, &block)
1664
1788
  end
1665
1789
 
@@ -1676,10 +1800,8 @@ module Google
1676
1800
  # @param [String] fields
1677
1801
  # Selector specifying which fields to include in a partial response.
1678
1802
  # @param [String] quota_user
1679
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1680
- # characters.
1681
- # @param [String] user_ip
1682
- # Deprecated. Please use quotaUser instead.
1803
+ # Available to use for quota purposes for server-side applications. Can be any
1804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1683
1805
  # @param [Google::Apis::RequestOptions] options
1684
1806
  # Request-specific options
1685
1807
  #
@@ -1692,8 +1814,8 @@ module Google
1692
1814
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1693
1815
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1694
1816
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1695
- def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1696
- command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
1817
+ def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1818
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
1697
1819
  command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest::Representation
1698
1820
  command.request_object = orderinvoices_create_refund_invoice_request_object
1699
1821
  command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse::Representation
@@ -1702,7 +1824,6 @@ module Google
1702
1824
  command.params['orderId'] = order_id unless order_id.nil?
1703
1825
  command.query['fields'] = fields unless fields.nil?
1704
1826
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1705
- command.query['userIp'] = user_ip unless user_ip.nil?
1706
1827
  execute_or_queue_command(command, &block)
1707
1828
  end
1708
1829
 
@@ -1710,11 +1831,11 @@ module Google
1710
1831
  # @param [Fixnum] merchant_id
1711
1832
  # The ID of the account that manages the order. This cannot be a multi-client
1712
1833
  # account.
1713
- # @param [String] disbursement_start_date
1714
- # The first date which disbursements occurred. In ISO 8601 format.
1715
1834
  # @param [String] disbursement_end_date
1716
1835
  # The last date which disbursements occurred. In ISO 8601 format. Default:
1717
1836
  # current date.
1837
+ # @param [String] disbursement_start_date
1838
+ # The first date which disbursements occurred. In ISO 8601 format.
1718
1839
  # @param [Fixnum] max_results
1719
1840
  # The maximum number of disbursements to return in the response, used for paging.
1720
1841
  # @param [String] page_token
@@ -1722,10 +1843,8 @@ module Google
1722
1843
  # @param [String] fields
1723
1844
  # Selector specifying which fields to include in a partial response.
1724
1845
  # @param [String] quota_user
1725
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1726
- # characters.
1727
- # @param [String] user_ip
1728
- # Deprecated. Please use quotaUser instead.
1846
+ # Available to use for quota purposes for server-side applications. Can be any
1847
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1729
1848
  # @param [Google::Apis::RequestOptions] options
1730
1849
  # Request-specific options
1731
1850
  #
@@ -1738,8 +1857,8 @@ module Google
1738
1857
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1739
1858
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1740
1859
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1741
- def listdisbursements_orderreport(merchant_id, disbursement_start_date, disbursement_end_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1742
- command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options)
1860
+ def listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1861
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreports/disbursements', options)
1743
1862
  command.response_representation = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse::Representation
1744
1863
  command.response_class = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
1745
1864
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1749,7 +1868,6 @@ module Google
1749
1868
  command.query['pageToken'] = page_token unless page_token.nil?
1750
1869
  command.query['fields'] = fields unless fields.nil?
1751
1870
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1752
- command.query['userIp'] = user_ip unless user_ip.nil?
1753
1871
  execute_or_queue_command(command, &block)
1754
1872
  end
1755
1873
 
@@ -1760,8 +1878,6 @@ module Google
1760
1878
  # account.
1761
1879
  # @param [String] disbursement_id
1762
1880
  # The Google-provided ID of the disbursement (found in Wallet).
1763
- # @param [String] transaction_start_date
1764
- # The first date in which transaction occurred. In ISO 8601 format.
1765
1881
  # @param [Fixnum] max_results
1766
1882
  # The maximum number of disbursements to return in the response, used for paging.
1767
1883
  # @param [String] page_token
@@ -1769,13 +1885,13 @@ module Google
1769
1885
  # @param [String] transaction_end_date
1770
1886
  # The last date in which transaction occurred. In ISO 8601 format. Default:
1771
1887
  # current date.
1888
+ # @param [String] transaction_start_date
1889
+ # The first date in which transaction occurred. In ISO 8601 format.
1772
1890
  # @param [String] fields
1773
1891
  # Selector specifying which fields to include in a partial response.
1774
1892
  # @param [String] quota_user
1775
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1776
- # characters.
1777
- # @param [String] user_ip
1778
- # Deprecated. Please use quotaUser instead.
1893
+ # Available to use for quota purposes for server-side applications. Can be any
1894
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1779
1895
  # @param [Google::Apis::RequestOptions] options
1780
1896
  # Request-specific options
1781
1897
  #
@@ -1788,8 +1904,8 @@ module Google
1788
1904
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1789
1905
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1790
1906
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1791
- def listtransactions_orderreport(merchant_id, disbursement_id, transaction_start_date, max_results: nil, page_token: nil, transaction_end_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1792
- command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
1907
+ def listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
1908
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
1793
1909
  command.response_representation = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse::Representation
1794
1910
  command.response_class = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
1795
1911
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1800,7 +1916,6 @@ module Google
1800
1916
  command.query['transactionStartDate'] = transaction_start_date unless transaction_start_date.nil?
1801
1917
  command.query['fields'] = fields unless fields.nil?
1802
1918
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1803
- command.query['userIp'] = user_ip unless user_ip.nil?
1804
1919
  execute_or_queue_command(command, &block)
1805
1920
  end
1806
1921
 
@@ -1814,10 +1929,8 @@ module Google
1814
1929
  # @param [String] fields
1815
1930
  # Selector specifying which fields to include in a partial response.
1816
1931
  # @param [String] quota_user
1817
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1818
- # characters.
1819
- # @param [String] user_ip
1820
- # Deprecated. Please use quotaUser instead.
1932
+ # Available to use for quota purposes for server-side applications. Can be any
1933
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1821
1934
  # @param [Google::Apis::RequestOptions] options
1822
1935
  # Request-specific options
1823
1936
  #
@@ -1830,8 +1943,8 @@ module Google
1830
1943
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1831
1944
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1832
1945
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1833
- def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1834
- command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/acknowledge', options)
1946
+ def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1947
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge', options)
1835
1948
  command.request_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeRequest::Representation
1836
1949
  command.request_object = orderreturns_acknowledge_request_object
1837
1950
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse::Representation
@@ -1840,7 +1953,6 @@ module Google
1840
1953
  command.params['returnId'] = return_id unless return_id.nil?
1841
1954
  command.query['fields'] = fields unless fields.nil?
1842
1955
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1843
- command.query['userIp'] = user_ip unless user_ip.nil?
1844
1956
  execute_or_queue_command(command, &block)
1845
1957
  end
1846
1958
 
@@ -1852,10 +1964,8 @@ module Google
1852
1964
  # @param [String] fields
1853
1965
  # Selector specifying which fields to include in a partial response.
1854
1966
  # @param [String] quota_user
1855
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1856
- # characters.
1857
- # @param [String] user_ip
1858
- # Deprecated. Please use quotaUser instead.
1967
+ # Available to use for quota purposes for server-side applications. Can be any
1968
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1859
1969
  # @param [Google::Apis::RequestOptions] options
1860
1970
  # Request-specific options
1861
1971
  #
@@ -1868,8 +1978,8 @@ module Google
1868
1978
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1869
1979
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1870
1980
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1871
- def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1872
- command = make_simple_command(:post, '{merchantId}/orderreturns/createOrderReturn', options)
1981
+ def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1982
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/createOrderReturn', options)
1873
1983
  command.request_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnRequest::Representation
1874
1984
  command.request_object = orderreturns_create_order_return_request_object
1875
1985
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse::Representation
@@ -1877,7 +1987,6 @@ module Google
1877
1987
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1878
1988
  command.query['fields'] = fields unless fields.nil?
1879
1989
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1880
- command.query['userIp'] = user_ip unless user_ip.nil?
1881
1990
  execute_or_queue_command(command, &block)
1882
1991
  end
1883
1992
 
@@ -1890,10 +1999,8 @@ module Google
1890
1999
  # @param [String] fields
1891
2000
  # Selector specifying which fields to include in a partial response.
1892
2001
  # @param [String] quota_user
1893
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1894
- # characters.
1895
- # @param [String] user_ip
1896
- # Deprecated. Please use quotaUser instead.
2002
+ # Available to use for quota purposes for server-side applications. Can be any
2003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1897
2004
  # @param [Google::Apis::RequestOptions] options
1898
2005
  # Request-specific options
1899
2006
  #
@@ -1906,15 +2013,14 @@ module Google
1906
2013
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1907
2014
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1908
2015
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1909
- def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1910
- command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options)
2016
+ def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block)
2017
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreturns/{returnId}', options)
1911
2018
  command.response_representation = Google::Apis::ContentV2_1::MerchantOrderReturn::Representation
1912
2019
  command.response_class = Google::Apis::ContentV2_1::MerchantOrderReturn
1913
2020
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1914
2021
  command.params['returnId'] = return_id unless return_id.nil?
1915
2022
  command.query['fields'] = fields unless fields.nil?
1916
2023
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1917
- command.query['userIp'] = user_ip unless user_ip.nil?
1918
2024
  execute_or_queue_command(command, &block)
1919
2025
  end
1920
2026
 
@@ -1926,9 +2032,9 @@ module Google
1926
2032
  # Obtains order returns that match the acknowledgement status. When set to true,
1927
2033
  # obtains order returns that have been acknowledged. When false, obtains order
1928
2034
  # returns that have not been acknowledged. When not provided, obtains order
1929
- # returns regardless of their acknowledgement status.
1930
- # We recommend using this filter set to `false`, in conjunction with the `
1931
- # acknowledge` call, such that only un-acknowledged order returns are returned.
2035
+ # returns regardless of their acknowledgement status. We recommend using this
2036
+ # filter set to `false`, in conjunction with the `acknowledge` call, such that
2037
+ # only un-acknowledged order returns are returned.
1932
2038
  # @param [String] created_end_date
1933
2039
  # Obtains order returns created before this date (inclusively), in ISO 8601
1934
2040
  # format.
@@ -1938,10 +2044,10 @@ module Google
1938
2044
  # @param [Array<String>, String] google_order_ids
1939
2045
  # Obtains order returns with the specified order ids. If this parameter is
1940
2046
  # provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus,
1941
- # shipmentState and acknowledged parameters must be not set.
1942
- # Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the
1943
- # obtained results will include all order returns that either match the
1944
- # specified order id or the specified tracking number.
2047
+ # shipmentState and acknowledged parameters must be not set. Note: if
2048
+ # googleOrderId and shipmentTrackingNumber parameters are provided, the obtained
2049
+ # results will include all order returns that either match the specified order
2050
+ # id or the specified tracking number.
1945
2051
  # @param [Fixnum] max_results
1946
2052
  # The maximum number of order returns to return in the response, used for paging.
1947
2053
  # The default value is 25 returns per page, and the maximum allowed value is
@@ -1961,10 +2067,10 @@ module Google
1961
2067
  # @param [Array<String>, String] shipment_tracking_numbers
1962
2068
  # Obtains order returns with the specified tracking numbers. If this parameter
1963
2069
  # is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus,
1964
- # shipmentState and acknowledged parameters must be not set.
1965
- # Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the
1966
- # obtained results will include all order returns that either match the
1967
- # specified order id or the specified tracking number.
2070
+ # shipmentState and acknowledged parameters must be not set. Note: if
2071
+ # googleOrderId and shipmentTrackingNumber parameters are provided, the obtained
2072
+ # results will include all order returns that either match the specified order
2073
+ # id or the specified tracking number.
1968
2074
  # @param [Array<String>, String] shipment_types
1969
2075
  # Obtains order returns that match any shipment type provided in this parameter.
1970
2076
  # When this parameter is not provided, order returns are obtained regardless of
@@ -1972,10 +2078,8 @@ module Google
1972
2078
  # @param [String] fields
1973
2079
  # Selector specifying which fields to include in a partial response.
1974
2080
  # @param [String] quota_user
1975
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1976
- # characters.
1977
- # @param [String] user_ip
1978
- # Deprecated. Please use quotaUser instead.
2081
+ # Available to use for quota purposes for server-side applications. Can be any
2082
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1979
2083
  # @param [Google::Apis::RequestOptions] options
1980
2084
  # Request-specific options
1981
2085
  #
@@ -1988,8 +2092,8 @@ module Google
1988
2092
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1989
2093
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1990
2094
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1991
- def list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1992
- command = make_simple_command(:get, '{merchantId}/orderreturns', options)
2095
+ def list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, options: nil, &block)
2096
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreturns', options)
1993
2097
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsListResponse::Representation
1994
2098
  command.response_class = Google::Apis::ContentV2_1::OrderreturnsListResponse
1995
2099
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2006,7 +2110,6 @@ module Google
2006
2110
  command.query['shipmentTypes'] = shipment_types unless shipment_types.nil?
2007
2111
  command.query['fields'] = fields unless fields.nil?
2008
2112
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2009
- command.query['userIp'] = user_ip unless user_ip.nil?
2010
2113
  execute_or_queue_command(command, &block)
2011
2114
  end
2012
2115
 
@@ -2020,10 +2123,8 @@ module Google
2020
2123
  # @param [String] fields
2021
2124
  # Selector specifying which fields to include in a partial response.
2022
2125
  # @param [String] quota_user
2023
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2024
- # characters.
2025
- # @param [String] user_ip
2026
- # Deprecated. Please use quotaUser instead.
2126
+ # Available to use for quota purposes for server-side applications. Can be any
2127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2027
2128
  # @param [Google::Apis::RequestOptions] options
2028
2129
  # Request-specific options
2029
2130
  #
@@ -2036,8 +2137,8 @@ module Google
2036
2137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2037
2138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2038
2139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2039
- def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2040
- command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/process', options)
2140
+ def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2141
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/{returnId}/process', options)
2041
2142
  command.request_representation = Google::Apis::ContentV2_1::OrderreturnsProcessRequest::Representation
2042
2143
  command.request_object = orderreturns_process_request_object
2043
2144
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsProcessResponse::Representation
@@ -2046,7 +2147,6 @@ module Google
2046
2147
  command.params['returnId'] = return_id unless return_id.nil?
2047
2148
  command.query['fields'] = fields unless fields.nil?
2048
2149
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2049
- command.query['userIp'] = user_ip unless user_ip.nil?
2050
2150
  execute_or_queue_command(command, &block)
2051
2151
  end
2052
2152
 
@@ -2060,10 +2160,8 @@ module Google
2060
2160
  # @param [String] fields
2061
2161
  # Selector specifying which fields to include in a partial response.
2062
2162
  # @param [String] quota_user
2063
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2064
- # characters.
2065
- # @param [String] user_ip
2066
- # Deprecated. Please use quotaUser instead.
2163
+ # Available to use for quota purposes for server-side applications. Can be any
2164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2067
2165
  # @param [Google::Apis::RequestOptions] options
2068
2166
  # Request-specific options
2069
2167
  #
@@ -2076,8 +2174,8 @@ module Google
2076
2174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2077
2175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2078
2176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2079
- def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2080
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
2177
+ def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2178
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/acknowledge', options)
2081
2179
  command.request_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeRequest::Representation
2082
2180
  command.request_object = orders_acknowledge_request_object
2083
2181
  command.response_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse::Representation
@@ -2086,7 +2184,6 @@ module Google
2086
2184
  command.params['orderId'] = order_id unless order_id.nil?
2087
2185
  command.query['fields'] = fields unless fields.nil?
2088
2186
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2089
- command.query['userIp'] = user_ip unless user_ip.nil?
2090
2187
  execute_or_queue_command(command, &block)
2091
2188
  end
2092
2189
 
@@ -2100,10 +2197,8 @@ module Google
2100
2197
  # @param [String] fields
2101
2198
  # Selector specifying which fields to include in a partial response.
2102
2199
  # @param [String] quota_user
2103
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2104
- # characters.
2105
- # @param [String] user_ip
2106
- # Deprecated. Please use quotaUser instead.
2200
+ # Available to use for quota purposes for server-side applications. Can be any
2201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2107
2202
  # @param [Google::Apis::RequestOptions] options
2108
2203
  # Request-specific options
2109
2204
  #
@@ -2116,15 +2211,14 @@ module Google
2116
2211
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2117
2212
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2118
2213
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2119
- def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2120
- command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
2214
+ def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
2215
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders/{orderId}/advance', options)
2121
2216
  command.response_representation = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse::Representation
2122
2217
  command.response_class = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
2123
2218
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
2124
2219
  command.params['orderId'] = order_id unless order_id.nil?
2125
2220
  command.query['fields'] = fields unless fields.nil?
2126
2221
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2127
- command.query['userIp'] = user_ip unless user_ip.nil?
2128
2222
  execute_or_queue_command(command, &block)
2129
2223
  end
2130
2224
 
@@ -2138,10 +2232,8 @@ module Google
2138
2232
  # @param [String] fields
2139
2233
  # Selector specifying which fields to include in a partial response.
2140
2234
  # @param [String] quota_user
2141
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2142
- # characters.
2143
- # @param [String] user_ip
2144
- # Deprecated. Please use quotaUser instead.
2235
+ # Available to use for quota purposes for server-side applications. Can be any
2236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2145
2237
  # @param [Google::Apis::RequestOptions] options
2146
2238
  # Request-specific options
2147
2239
  #
@@ -2154,8 +2246,8 @@ module Google
2154
2246
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2155
2247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2156
2248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2157
- def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2158
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
2249
+ def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2250
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/cancel', options)
2159
2251
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelRequest::Representation
2160
2252
  command.request_object = orders_cancel_request_object
2161
2253
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelResponse::Representation
@@ -2164,7 +2256,6 @@ module Google
2164
2256
  command.params['orderId'] = order_id unless order_id.nil?
2165
2257
  command.query['fields'] = fields unless fields.nil?
2166
2258
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2167
- command.query['userIp'] = user_ip unless user_ip.nil?
2168
2259
  execute_or_queue_command(command, &block)
2169
2260
  end
2170
2261
 
@@ -2178,10 +2269,8 @@ module Google
2178
2269
  # @param [String] fields
2179
2270
  # Selector specifying which fields to include in a partial response.
2180
2271
  # @param [String] quota_user
2181
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2182
- # characters.
2183
- # @param [String] user_ip
2184
- # Deprecated. Please use quotaUser instead.
2272
+ # Available to use for quota purposes for server-side applications. Can be any
2273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2185
2274
  # @param [Google::Apis::RequestOptions] options
2186
2275
  # Request-specific options
2187
2276
  #
@@ -2194,8 +2283,8 @@ module Google
2194
2283
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2195
2284
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2196
2285
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2197
- def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2198
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
2286
+ def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2287
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem', options)
2199
2288
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemRequest::Representation
2200
2289
  command.request_object = orders_cancel_line_item_request_object
2201
2290
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse::Representation
@@ -2204,7 +2293,6 @@ module Google
2204
2293
  command.params['orderId'] = order_id unless order_id.nil?
2205
2294
  command.query['fields'] = fields unless fields.nil?
2206
2295
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2207
- command.query['userIp'] = user_ip unless user_ip.nil?
2208
2296
  execute_or_queue_command(command, &block)
2209
2297
  end
2210
2298
 
@@ -2218,10 +2306,8 @@ module Google
2218
2306
  # @param [String] fields
2219
2307
  # Selector specifying which fields to include in a partial response.
2220
2308
  # @param [String] quota_user
2221
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2222
- # characters.
2223
- # @param [String] user_ip
2224
- # Deprecated. Please use quotaUser instead.
2309
+ # Available to use for quota purposes for server-side applications. Can be any
2310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2225
2311
  # @param [Google::Apis::RequestOptions] options
2226
2312
  # Request-specific options
2227
2313
  #
@@ -2234,8 +2320,8 @@ module Google
2234
2320
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2235
2321
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2236
2322
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2237
- def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2238
- command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options)
2323
+ def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2324
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer', options)
2239
2325
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest::Representation
2240
2326
  command.request_object = orders_cancel_test_order_by_customer_request_object
2241
2327
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse::Representation
@@ -2244,7 +2330,6 @@ module Google
2244
2330
  command.params['orderId'] = order_id unless order_id.nil?
2245
2331
  command.query['fields'] = fields unless fields.nil?
2246
2332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2247
- command.query['userIp'] = user_ip unless user_ip.nil?
2248
2333
  execute_or_queue_command(command, &block)
2249
2334
  end
2250
2335
 
@@ -2256,10 +2341,8 @@ module Google
2256
2341
  # @param [String] fields
2257
2342
  # Selector specifying which fields to include in a partial response.
2258
2343
  # @param [String] quota_user
2259
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2260
- # characters.
2261
- # @param [String] user_ip
2262
- # Deprecated. Please use quotaUser instead.
2344
+ # Available to use for quota purposes for server-side applications. Can be any
2345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2263
2346
  # @param [Google::Apis::RequestOptions] options
2264
2347
  # Request-specific options
2265
2348
  #
@@ -2272,8 +2355,8 @@ module Google
2272
2355
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2273
2356
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2274
2357
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2275
- def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2276
- command = make_simple_command(:post, '{merchantId}/testorders', options)
2358
+ def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2359
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders', options)
2277
2360
  command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest::Representation
2278
2361
  command.request_object = orders_create_test_order_request_object
2279
2362
  command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse::Representation
@@ -2281,7 +2364,6 @@ module Google
2281
2364
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
2282
2365
  command.query['fields'] = fields unless fields.nil?
2283
2366
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2284
- command.query['userIp'] = user_ip unless user_ip.nil?
2285
2367
  execute_or_queue_command(command, &block)
2286
2368
  end
2287
2369
 
@@ -2295,10 +2377,8 @@ module Google
2295
2377
  # @param [String] fields
2296
2378
  # Selector specifying which fields to include in a partial response.
2297
2379
  # @param [String] quota_user
2298
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2299
- # characters.
2300
- # @param [String] user_ip
2301
- # Deprecated. Please use quotaUser instead.
2380
+ # Available to use for quota purposes for server-side applications. Can be any
2381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2302
2382
  # @param [Google::Apis::RequestOptions] options
2303
2383
  # Request-specific options
2304
2384
  #
@@ -2311,8 +2391,8 @@ module Google
2311
2391
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2312
2392
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2313
2393
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2314
- def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2315
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options)
2394
+ def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2395
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/testreturn', options)
2316
2396
  command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest::Representation
2317
2397
  command.request_object = orders_create_test_return_request_object
2318
2398
  command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse::Representation
@@ -2321,7 +2401,6 @@ module Google
2321
2401
  command.params['orderId'] = order_id unless order_id.nil?
2322
2402
  command.query['fields'] = fields unless fields.nil?
2323
2403
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2324
- command.query['userIp'] = user_ip unless user_ip.nil?
2325
2404
  execute_or_queue_command(command, &block)
2326
2405
  end
2327
2406
 
@@ -2334,10 +2413,8 @@ module Google
2334
2413
  # @param [String] fields
2335
2414
  # Selector specifying which fields to include in a partial response.
2336
2415
  # @param [String] quota_user
2337
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2338
- # characters.
2339
- # @param [String] user_ip
2340
- # Deprecated. Please use quotaUser instead.
2416
+ # Available to use for quota purposes for server-side applications. Can be any
2417
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2341
2418
  # @param [Google::Apis::RequestOptions] options
2342
2419
  # Request-specific options
2343
2420
  #
@@ -2350,15 +2427,14 @@ module Google
2350
2427
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2351
2428
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2352
2429
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2353
- def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2354
- command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
2430
+ def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
2431
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/orders/{orderId}', options)
2355
2432
  command.response_representation = Google::Apis::ContentV2_1::Order::Representation
2356
2433
  command.response_class = Google::Apis::ContentV2_1::Order
2357
2434
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
2358
2435
  command.params['orderId'] = order_id unless order_id.nil?
2359
2436
  command.query['fields'] = fields unless fields.nil?
2360
2437
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2361
- command.query['userIp'] = user_ip unless user_ip.nil?
2362
2438
  execute_or_queue_command(command, &block)
2363
2439
  end
2364
2440
 
@@ -2371,10 +2447,8 @@ module Google
2371
2447
  # @param [String] fields
2372
2448
  # Selector specifying which fields to include in a partial response.
2373
2449
  # @param [String] quota_user
2374
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2375
- # characters.
2376
- # @param [String] user_ip
2377
- # Deprecated. Please use quotaUser instead.
2450
+ # Available to use for quota purposes for server-side applications. Can be any
2451
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2378
2452
  # @param [Google::Apis::RequestOptions] options
2379
2453
  # Request-specific options
2380
2454
  #
@@ -2387,15 +2461,14 @@ module Google
2387
2461
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2388
2462
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2389
2463
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2390
- def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2391
- command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
2464
+ def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block)
2465
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
2392
2466
  command.response_representation = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse::Representation
2393
2467
  command.response_class = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
2394
2468
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
2395
2469
  command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil?
2396
2470
  command.query['fields'] = fields unless fields.nil?
2397
2471
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2398
- command.query['userIp'] = user_ip unless user_ip.nil?
2399
2472
  execute_or_queue_command(command, &block)
2400
2473
  end
2401
2474
 
@@ -2411,10 +2484,8 @@ module Google
2411
2484
  # @param [String] fields
2412
2485
  # Selector specifying which fields to include in a partial response.
2413
2486
  # @param [String] quota_user
2414
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2415
- # characters.
2416
- # @param [String] user_ip
2417
- # Deprecated. Please use quotaUser instead.
2487
+ # Available to use for quota purposes for server-side applications. Can be any
2488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2418
2489
  # @param [Google::Apis::RequestOptions] options
2419
2490
  # Request-specific options
2420
2491
  #
@@ -2427,8 +2498,8 @@ module Google
2427
2498
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2428
2499
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2429
2500
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2430
- def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2431
- command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
2501
+ def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block)
2502
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/testordertemplates/{templateName}', options)
2432
2503
  command.response_representation = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse::Representation
2433
2504
  command.response_class = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse
2434
2505
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2436,19 +2507,17 @@ module Google
2436
2507
  command.query['country'] = country unless country.nil?
2437
2508
  command.query['fields'] = fields unless fields.nil?
2438
2509
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2439
- command.query['userIp'] = user_ip unless user_ip.nil?
2440
2510
  execute_or_queue_command(command, &block)
2441
2511
  end
2442
2512
 
2443
2513
  # Deprecated. Notifies that item return and refund was handled directly by
2444
2514
  # merchant outside of Google payments processing (e.g. cash refund done in store)
2445
- # .
2446
- # Note: We recommend calling the returnrefundlineitem method to refund in-store
2447
- # returns. We will issue the refund directly to the customer. This helps to
2448
- # prevent possible differences arising between merchant and Google transaction
2449
- # records. We also recommend having the point of sale system communicate with
2450
- # Google to ensure that customers do not receive a double refund by first
2451
- # refunding via Google then via an in-store return.
2515
+ # . Note: We recommend calling the returnrefundlineitem method to refund in-
2516
+ # store returns. We will issue the refund directly to the customer. This helps
2517
+ # to prevent possible differences arising between merchant and Google
2518
+ # transaction records. We also recommend having the point of sale system
2519
+ # communicate with Google to ensure that customers do not receive a double
2520
+ # refund by first refunding via Google then via an in-store return.
2452
2521
  # @param [Fixnum] merchant_id
2453
2522
  # The ID of the account that manages the order. This cannot be a multi-client
2454
2523
  # account.
@@ -2458,10 +2527,8 @@ module Google
2458
2527
  # @param [String] fields
2459
2528
  # Selector specifying which fields to include in a partial response.
2460
2529
  # @param [String] quota_user
2461
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2462
- # characters.
2463
- # @param [String] user_ip
2464
- # Deprecated. Please use quotaUser instead.
2530
+ # Available to use for quota purposes for server-side applications. Can be any
2531
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2465
2532
  # @param [Google::Apis::RequestOptions] options
2466
2533
  # Request-specific options
2467
2534
  #
@@ -2474,8 +2541,8 @@ module Google
2474
2541
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2475
2542
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2476
2543
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2477
- def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2478
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
2544
+ def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2545
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
2479
2546
  command.request_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest::Representation
2480
2547
  command.request_object = orders_in_store_refund_line_item_request_object
2481
2548
  command.response_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse::Representation
@@ -2484,7 +2551,6 @@ module Google
2484
2551
  command.params['orderId'] = order_id unless order_id.nil?
2485
2552
  command.query['fields'] = fields unless fields.nil?
2486
2553
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2487
- command.query['userIp'] = user_ip unless user_ip.nil?
2488
2554
  execute_or_queue_command(command, &block)
2489
2555
  end
2490
2556
 
@@ -2495,18 +2561,16 @@ module Google
2495
2561
  # @param [Boolean] acknowledged
2496
2562
  # Obtains orders that match the acknowledgement status. When set to true,
2497
2563
  # obtains orders that have been acknowledged. When false, obtains orders that
2498
- # have not been acknowledged.
2499
- # We recommend using this filter set to `false`, in conjunction with the `
2500
- # acknowledge` call, such that only un-acknowledged orders are returned.
2564
+ # have not been acknowledged. We recommend using this filter set to `false`, in
2565
+ # conjunction with the `acknowledge` call, such that only un-acknowledged orders
2566
+ # are returned.
2501
2567
  # @param [Fixnum] max_results
2502
2568
  # The maximum number of orders to return in the response, used for paging. The
2503
2569
  # default value is 25 orders per page, and the maximum allowed value is 250
2504
2570
  # orders per page.
2505
2571
  # @param [String] order_by
2506
- # Order results by placement date in descending or ascending order.
2507
- # Acceptable values are:
2508
- # - placedDateAsc
2509
- # - placedDateDesc
2572
+ # Order results by placement date in descending or ascending order. Acceptable
2573
+ # values are: - placedDateAsc - placedDateDesc
2510
2574
  # @param [String] page_token
2511
2575
  # The token returned by the previous request.
2512
2576
  # @param [String] placed_date_end
@@ -2521,10 +2585,8 @@ module Google
2521
2585
  # @param [String] fields
2522
2586
  # Selector specifying which fields to include in a partial response.
2523
2587
  # @param [String] quota_user
2524
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2525
- # characters.
2526
- # @param [String] user_ip
2527
- # Deprecated. Please use quotaUser instead.
2588
+ # Available to use for quota purposes for server-side applications. Can be any
2589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2528
2590
  # @param [Google::Apis::RequestOptions] options
2529
2591
  # Request-specific options
2530
2592
  #
@@ -2537,8 +2599,8 @@ module Google
2537
2599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2538
2600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2539
2601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2540
- def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2541
- command = make_simple_command(:get, '{merchantId}/orders', options)
2602
+ def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, options: nil, &block)
2603
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/orders', options)
2542
2604
  command.response_representation = Google::Apis::ContentV2_1::OrdersListResponse::Representation
2543
2605
  command.response_class = Google::Apis::ContentV2_1::OrdersListResponse
2544
2606
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2551,7 +2613,6 @@ module Google
2551
2613
  command.query['statuses'] = statuses unless statuses.nil?
2552
2614
  command.query['fields'] = fields unless fields.nil?
2553
2615
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2554
- command.query['userIp'] = user_ip unless user_ip.nil?
2555
2616
  execute_or_queue_command(command, &block)
2556
2617
  end
2557
2618
 
@@ -2565,10 +2626,8 @@ module Google
2565
2626
  # @param [String] fields
2566
2627
  # Selector specifying which fields to include in a partial response.
2567
2628
  # @param [String] quota_user
2568
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2569
- # characters.
2570
- # @param [String] user_ip
2571
- # Deprecated. Please use quotaUser instead.
2629
+ # Available to use for quota purposes for server-side applications. Can be any
2630
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2572
2631
  # @param [Google::Apis::RequestOptions] options
2573
2632
  # Request-specific options
2574
2633
  #
@@ -2581,8 +2640,8 @@ module Google
2581
2640
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2582
2641
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2583
2642
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2584
- def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2585
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refunditem', options)
2643
+ def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2644
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/refunditem', options)
2586
2645
  command.request_representation = Google::Apis::ContentV2_1::OrdersRefundItemRequest::Representation
2587
2646
  command.request_object = orders_refund_item_request_object
2588
2647
  command.response_representation = Google::Apis::ContentV2_1::OrdersRefundItemResponse::Representation
@@ -2591,7 +2650,6 @@ module Google
2591
2650
  command.params['orderId'] = order_id unless order_id.nil?
2592
2651
  command.query['fields'] = fields unless fields.nil?
2593
2652
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2594
- command.query['userIp'] = user_ip unless user_ip.nil?
2595
2653
  execute_or_queue_command(command, &block)
2596
2654
  end
2597
2655
 
@@ -2605,10 +2663,8 @@ module Google
2605
2663
  # @param [String] fields
2606
2664
  # Selector specifying which fields to include in a partial response.
2607
2665
  # @param [String] quota_user
2608
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2609
- # characters.
2610
- # @param [String] user_ip
2611
- # Deprecated. Please use quotaUser instead.
2666
+ # Available to use for quota purposes for server-side applications. Can be any
2667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2612
2668
  # @param [Google::Apis::RequestOptions] options
2613
2669
  # Request-specific options
2614
2670
  #
@@ -2621,8 +2677,8 @@ module Google
2621
2677
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2622
2678
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2623
2679
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2624
- def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2625
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refundorder', options)
2680
+ def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2681
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/refundorder', options)
2626
2682
  command.request_representation = Google::Apis::ContentV2_1::OrdersRefundOrderRequest::Representation
2627
2683
  command.request_object = orders_refund_order_request_object
2628
2684
  command.response_representation = Google::Apis::ContentV2_1::OrdersRefundOrderResponse::Representation
@@ -2631,7 +2687,6 @@ module Google
2631
2687
  command.params['orderId'] = order_id unless order_id.nil?
2632
2688
  command.query['fields'] = fields unless fields.nil?
2633
2689
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2634
- command.query['userIp'] = user_ip unless user_ip.nil?
2635
2690
  execute_or_queue_command(command, &block)
2636
2691
  end
2637
2692
 
@@ -2645,10 +2700,8 @@ module Google
2645
2700
  # @param [String] fields
2646
2701
  # Selector specifying which fields to include in a partial response.
2647
2702
  # @param [String] quota_user
2648
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2649
- # characters.
2650
- # @param [String] user_ip
2651
- # Deprecated. Please use quotaUser instead.
2703
+ # Available to use for quota purposes for server-side applications. Can be any
2704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2652
2705
  # @param [Google::Apis::RequestOptions] options
2653
2706
  # Request-specific options
2654
2707
  #
@@ -2661,8 +2714,8 @@ module Google
2661
2714
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2662
2715
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2663
2716
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2664
- def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2665
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
2717
+ def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2718
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
2666
2719
  command.request_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest::Representation
2667
2720
  command.request_object = orders_reject_return_line_item_request_object
2668
2721
  command.response_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse::Representation
@@ -2671,7 +2724,6 @@ module Google
2671
2724
  command.params['orderId'] = order_id unless order_id.nil?
2672
2725
  command.query['fields'] = fields unless fields.nil?
2673
2726
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2674
- command.query['userIp'] = user_ip unless user_ip.nil?
2675
2727
  execute_or_queue_command(command, &block)
2676
2728
  end
2677
2729
 
@@ -2690,10 +2742,8 @@ module Google
2690
2742
  # @param [String] fields
2691
2743
  # Selector specifying which fields to include in a partial response.
2692
2744
  # @param [String] quota_user
2693
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2694
- # characters.
2695
- # @param [String] user_ip
2696
- # Deprecated. Please use quotaUser instead.
2745
+ # Available to use for quota purposes for server-side applications. Can be any
2746
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2697
2747
  # @param [Google::Apis::RequestOptions] options
2698
2748
  # Request-specific options
2699
2749
  #
@@ -2706,8 +2756,8 @@ module Google
2706
2756
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2707
2757
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2708
2758
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2709
- def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2710
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
2759
+ def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2760
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem', options)
2711
2761
  command.request_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest::Representation
2712
2762
  command.request_object = orders_return_refund_line_item_request_object
2713
2763
  command.response_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse::Representation
@@ -2716,7 +2766,6 @@ module Google
2716
2766
  command.params['orderId'] = order_id unless order_id.nil?
2717
2767
  command.query['fields'] = fields unless fields.nil?
2718
2768
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2719
- command.query['userIp'] = user_ip unless user_ip.nil?
2720
2769
  execute_or_queue_command(command, &block)
2721
2770
  end
2722
2771
 
@@ -2734,10 +2783,8 @@ module Google
2734
2783
  # @param [String] fields
2735
2784
  # Selector specifying which fields to include in a partial response.
2736
2785
  # @param [String] quota_user
2737
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2738
- # characters.
2739
- # @param [String] user_ip
2740
- # Deprecated. Please use quotaUser instead.
2786
+ # Available to use for quota purposes for server-side applications. Can be any
2787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2741
2788
  # @param [Google::Apis::RequestOptions] options
2742
2789
  # Request-specific options
2743
2790
  #
@@ -2750,8 +2797,8 @@ module Google
2750
2797
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2751
2798
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2752
2799
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2753
- def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2754
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
2800
+ def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2801
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata', options)
2755
2802
  command.request_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest::Representation
2756
2803
  command.request_object = orders_set_line_item_metadata_request_object
2757
2804
  command.response_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse::Representation
@@ -2760,7 +2807,6 @@ module Google
2760
2807
  command.params['orderId'] = order_id unless order_id.nil?
2761
2808
  command.query['fields'] = fields unless fields.nil?
2762
2809
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2763
- command.query['userIp'] = user_ip unless user_ip.nil?
2764
2810
  execute_or_queue_command(command, &block)
2765
2811
  end
2766
2812
 
@@ -2774,10 +2820,8 @@ module Google
2774
2820
  # @param [String] fields
2775
2821
  # Selector specifying which fields to include in a partial response.
2776
2822
  # @param [String] quota_user
2777
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2778
- # characters.
2779
- # @param [String] user_ip
2780
- # Deprecated. Please use quotaUser instead.
2823
+ # Available to use for quota purposes for server-side applications. Can be any
2824
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2781
2825
  # @param [Google::Apis::RequestOptions] options
2782
2826
  # Request-specific options
2783
2827
  #
@@ -2790,8 +2834,8 @@ module Google
2790
2834
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2791
2835
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2792
2836
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2793
- def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2794
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
2837
+ def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2838
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/shipLineItems', options)
2795
2839
  command.request_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsRequest::Representation
2796
2840
  command.request_object = orders_ship_line_items_request_object
2797
2841
  command.response_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse::Representation
@@ -2800,7 +2844,6 @@ module Google
2800
2844
  command.params['orderId'] = order_id unless order_id.nil?
2801
2845
  command.query['fields'] = fields unless fields.nil?
2802
2846
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2803
- command.query['userIp'] = user_ip unless user_ip.nil?
2804
2847
  execute_or_queue_command(command, &block)
2805
2848
  end
2806
2849
 
@@ -2814,10 +2857,8 @@ module Google
2814
2857
  # @param [String] fields
2815
2858
  # Selector specifying which fields to include in a partial response.
2816
2859
  # @param [String] quota_user
2817
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2818
- # characters.
2819
- # @param [String] user_ip
2820
- # Deprecated. Please use quotaUser instead.
2860
+ # Available to use for quota purposes for server-side applications. Can be any
2861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2821
2862
  # @param [Google::Apis::RequestOptions] options
2822
2863
  # Request-specific options
2823
2864
  #
@@ -2830,8 +2871,8 @@ module Google
2830
2871
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2831
2872
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2832
2873
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2833
- def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2834
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
2874
+ def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2875
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
2835
2876
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest::Representation
2836
2877
  command.request_object = orders_update_line_item_shipping_details_request_object
2837
2878
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse::Representation
@@ -2840,7 +2881,6 @@ module Google
2840
2881
  command.params['orderId'] = order_id unless order_id.nil?
2841
2882
  command.query['fields'] = fields unless fields.nil?
2842
2883
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2843
- command.query['userIp'] = user_ip unless user_ip.nil?
2844
2884
  execute_or_queue_command(command, &block)
2845
2885
  end
2846
2886
 
@@ -2854,10 +2894,8 @@ module Google
2854
2894
  # @param [String] fields
2855
2895
  # Selector specifying which fields to include in a partial response.
2856
2896
  # @param [String] quota_user
2857
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2858
- # characters.
2859
- # @param [String] user_ip
2860
- # Deprecated. Please use quotaUser instead.
2897
+ # Available to use for quota purposes for server-side applications. Can be any
2898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2861
2899
  # @param [Google::Apis::RequestOptions] options
2862
2900
  # Request-specific options
2863
2901
  #
@@ -2870,8 +2908,8 @@ module Google
2870
2908
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2871
2909
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2872
2910
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2873
- def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2874
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
2911
+ def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2912
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
2875
2913
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest::Representation
2876
2914
  command.request_object = orders_update_merchant_order_id_request_object
2877
2915
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse::Representation
@@ -2880,7 +2918,6 @@ module Google
2880
2918
  command.params['orderId'] = order_id unless order_id.nil?
2881
2919
  command.query['fields'] = fields unless fields.nil?
2882
2920
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2883
- command.query['userIp'] = user_ip unless user_ip.nil?
2884
2921
  execute_or_queue_command(command, &block)
2885
2922
  end
2886
2923
 
@@ -2894,10 +2931,8 @@ module Google
2894
2931
  # @param [String] fields
2895
2932
  # Selector specifying which fields to include in a partial response.
2896
2933
  # @param [String] quota_user
2897
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2898
- # characters.
2899
- # @param [String] user_ip
2900
- # Deprecated. Please use quotaUser instead.
2934
+ # Available to use for quota purposes for server-side applications. Can be any
2935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2901
2936
  # @param [Google::Apis::RequestOptions] options
2902
2937
  # Request-specific options
2903
2938
  #
@@ -2910,8 +2945,8 @@ module Google
2910
2945
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2911
2946
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2912
2947
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2913
- def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2914
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
2948
+ def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2949
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateShipment', options)
2915
2950
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest::Representation
2916
2951
  command.request_object = orders_update_shipment_request_object
2917
2952
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse::Representation
@@ -2920,7 +2955,6 @@ module Google
2920
2955
  command.params['orderId'] = order_id unless order_id.nil?
2921
2956
  command.query['fields'] = fields unless fields.nil?
2922
2957
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2923
- command.query['userIp'] = user_ip unless user_ip.nil?
2924
2958
  execute_or_queue_command(command, &block)
2925
2959
  end
2926
2960
 
@@ -2929,10 +2963,8 @@ module Google
2929
2963
  # @param [String] fields
2930
2964
  # Selector specifying which fields to include in a partial response.
2931
2965
  # @param [String] quota_user
2932
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2933
- # characters.
2934
- # @param [String] user_ip
2935
- # Deprecated. Please use quotaUser instead.
2966
+ # Available to use for quota purposes for server-side applications. Can be any
2967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2936
2968
  # @param [Google::Apis::RequestOptions] options
2937
2969
  # Request-specific options
2938
2970
  #
@@ -2945,15 +2977,14 @@ module Google
2945
2977
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2946
2978
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2947
2979
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2948
- def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2949
- command = make_simple_command(:post, 'pos/batch', options)
2980
+ def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2981
+ command = make_simple_command(:post, 'content/v2.1/pos/batch', options)
2950
2982
  command.request_representation = Google::Apis::ContentV2_1::PosCustomBatchRequest::Representation
2951
2983
  command.request_object = pos_custom_batch_request_object
2952
2984
  command.response_representation = Google::Apis::ContentV2_1::PosCustomBatchResponse::Representation
2953
2985
  command.response_class = Google::Apis::ContentV2_1::PosCustomBatchResponse
2954
2986
  command.query['fields'] = fields unless fields.nil?
2955
2987
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2956
- command.query['userIp'] = user_ip unless user_ip.nil?
2957
2988
  execute_or_queue_command(command, &block)
2958
2989
  end
2959
2990
 
@@ -2967,10 +2998,8 @@ module Google
2967
2998
  # @param [String] fields
2968
2999
  # Selector specifying which fields to include in a partial response.
2969
3000
  # @param [String] quota_user
2970
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2971
- # characters.
2972
- # @param [String] user_ip
2973
- # Deprecated. Please use quotaUser instead.
3001
+ # Available to use for quota purposes for server-side applications. Can be any
3002
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2974
3003
  # @param [Google::Apis::RequestOptions] options
2975
3004
  # Request-specific options
2976
3005
  #
@@ -2983,14 +3012,13 @@ module Google
2983
3012
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2984
3013
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2985
3014
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2986
- def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2987
- command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
3015
+ def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
3016
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
2988
3017
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
2989
3018
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
2990
3019
  command.params['storeCode'] = store_code unless store_code.nil?
2991
3020
  command.query['fields'] = fields unless fields.nil?
2992
3021
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2993
- command.query['userIp'] = user_ip unless user_ip.nil?
2994
3022
  execute_or_queue_command(command, &block)
2995
3023
  end
2996
3024
 
@@ -3004,10 +3032,8 @@ module Google
3004
3032
  # @param [String] fields
3005
3033
  # Selector specifying which fields to include in a partial response.
3006
3034
  # @param [String] quota_user
3007
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3008
- # characters.
3009
- # @param [String] user_ip
3010
- # Deprecated. Please use quotaUser instead.
3035
+ # Available to use for quota purposes for server-side applications. Can be any
3036
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3011
3037
  # @param [Google::Apis::RequestOptions] options
3012
3038
  # Request-specific options
3013
3039
  #
@@ -3020,8 +3046,8 @@ module Google
3020
3046
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3021
3047
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3022
3048
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3023
- def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3024
- command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
3049
+ def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
3050
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
3025
3051
  command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
3026
3052
  command.response_class = Google::Apis::ContentV2_1::PosStore
3027
3053
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3029,7 +3055,6 @@ module Google
3029
3055
  command.params['storeCode'] = store_code unless store_code.nil?
3030
3056
  command.query['fields'] = fields unless fields.nil?
3031
3057
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3032
- command.query['userIp'] = user_ip unless user_ip.nil?
3033
3058
  execute_or_queue_command(command, &block)
3034
3059
  end
3035
3060
 
@@ -3042,10 +3067,8 @@ module Google
3042
3067
  # @param [String] fields
3043
3068
  # Selector specifying which fields to include in a partial response.
3044
3069
  # @param [String] quota_user
3045
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3046
- # characters.
3047
- # @param [String] user_ip
3048
- # Deprecated. Please use quotaUser instead.
3070
+ # Available to use for quota purposes for server-side applications. Can be any
3071
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3049
3072
  # @param [Google::Apis::RequestOptions] options
3050
3073
  # Request-specific options
3051
3074
  #
@@ -3058,8 +3081,8 @@ module Google
3058
3081
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3059
3082
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3060
3083
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3061
- def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3062
- command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options)
3084
+ def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3085
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store', options)
3063
3086
  command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation
3064
3087
  command.request_object = pos_store_object
3065
3088
  command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
@@ -3068,7 +3091,6 @@ module Google
3068
3091
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
3069
3092
  command.query['fields'] = fields unless fields.nil?
3070
3093
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3071
- command.query['userIp'] = user_ip unless user_ip.nil?
3072
3094
  execute_or_queue_command(command, &block)
3073
3095
  end
3074
3096
 
@@ -3081,10 +3103,8 @@ module Google
3081
3103
  # @param [String] fields
3082
3104
  # Selector specifying which fields to include in a partial response.
3083
3105
  # @param [String] quota_user
3084
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3085
- # characters.
3086
- # @param [String] user_ip
3087
- # Deprecated. Please use quotaUser instead.
3106
+ # Available to use for quota purposes for server-side applications. Can be any
3107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3088
3108
  # @param [Google::Apis::RequestOptions] options
3089
3109
  # Request-specific options
3090
3110
  #
@@ -3097,8 +3117,8 @@ module Google
3097
3117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3098
3118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3099
3119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3100
- def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3101
- command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options)
3120
+ def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3121
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory', options)
3102
3122
  command.request_representation = Google::Apis::ContentV2_1::PosInventoryRequest::Representation
3103
3123
  command.request_object = pos_inventory_request_object
3104
3124
  command.response_representation = Google::Apis::ContentV2_1::PosInventoryResponse::Representation
@@ -3107,7 +3127,6 @@ module Google
3107
3127
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
3108
3128
  command.query['fields'] = fields unless fields.nil?
3109
3129
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3110
- command.query['userIp'] = user_ip unless user_ip.nil?
3111
3130
  execute_or_queue_command(command, &block)
3112
3131
  end
3113
3132
 
@@ -3119,10 +3138,8 @@ module Google
3119
3138
  # @param [String] fields
3120
3139
  # Selector specifying which fields to include in a partial response.
3121
3140
  # @param [String] quota_user
3122
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3123
- # characters.
3124
- # @param [String] user_ip
3125
- # Deprecated. Please use quotaUser instead.
3141
+ # Available to use for quota purposes for server-side applications. Can be any
3142
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3126
3143
  # @param [Google::Apis::RequestOptions] options
3127
3144
  # Request-specific options
3128
3145
  #
@@ -3135,15 +3152,14 @@ module Google
3135
3152
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3136
3153
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3137
3154
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3138
- def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3139
- command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options)
3155
+ def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block)
3156
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store', options)
3140
3157
  command.response_representation = Google::Apis::ContentV2_1::PosListResponse::Representation
3141
3158
  command.response_class = Google::Apis::ContentV2_1::PosListResponse
3142
3159
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3143
3160
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
3144
3161
  command.query['fields'] = fields unless fields.nil?
3145
3162
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3146
- command.query['userIp'] = user_ip unless user_ip.nil?
3147
3163
  execute_or_queue_command(command, &block)
3148
3164
  end
3149
3165
 
@@ -3156,10 +3172,8 @@ module Google
3156
3172
  # @param [String] fields
3157
3173
  # Selector specifying which fields to include in a partial response.
3158
3174
  # @param [String] quota_user
3159
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3160
- # characters.
3161
- # @param [String] user_ip
3162
- # Deprecated. Please use quotaUser instead.
3175
+ # Available to use for quota purposes for server-side applications. Can be any
3176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3163
3177
  # @param [Google::Apis::RequestOptions] options
3164
3178
  # Request-specific options
3165
3179
  #
@@ -3172,8 +3186,8 @@ module Google
3172
3186
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3173
3187
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3174
3188
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3175
- def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3176
- command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options)
3189
+ def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3190
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/sale', options)
3177
3191
  command.request_representation = Google::Apis::ContentV2_1::PosSaleRequest::Representation
3178
3192
  command.request_object = pos_sale_request_object
3179
3193
  command.response_representation = Google::Apis::ContentV2_1::PosSaleResponse::Representation
@@ -3182,7 +3196,6 @@ module Google
3182
3196
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
3183
3197
  command.query['fields'] = fields unless fields.nil?
3184
3198
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3185
- command.query['userIp'] = user_ip unless user_ip.nil?
3186
3199
  execute_or_queue_command(command, &block)
3187
3200
  end
3188
3201
 
@@ -3191,10 +3204,8 @@ module Google
3191
3204
  # @param [String] fields
3192
3205
  # Selector specifying which fields to include in a partial response.
3193
3206
  # @param [String] quota_user
3194
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3195
- # characters.
3196
- # @param [String] user_ip
3197
- # Deprecated. Please use quotaUser instead.
3207
+ # Available to use for quota purposes for server-side applications. Can be any
3208
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3198
3209
  # @param [Google::Apis::RequestOptions] options
3199
3210
  # Request-specific options
3200
3211
  #
@@ -3207,15 +3218,14 @@ module Google
3207
3218
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3208
3219
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3209
3220
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3210
- def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3211
- command = make_simple_command(:post, 'products/batch', options)
3221
+ def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3222
+ command = make_simple_command(:post, 'content/v2.1/products/batch', options)
3212
3223
  command.request_representation = Google::Apis::ContentV2_1::ProductsCustomBatchRequest::Representation
3213
3224
  command.request_object = products_custom_batch_request_object
3214
3225
  command.response_representation = Google::Apis::ContentV2_1::ProductsCustomBatchResponse::Representation
3215
3226
  command.response_class = Google::Apis::ContentV2_1::ProductsCustomBatchResponse
3216
3227
  command.query['fields'] = fields unless fields.nil?
3217
3228
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3218
- command.query['userIp'] = user_ip unless user_ip.nil?
3219
3229
  execute_or_queue_command(command, &block)
3220
3230
  end
3221
3231
 
@@ -3230,10 +3240,8 @@ module Google
3230
3240
  # @param [String] fields
3231
3241
  # Selector specifying which fields to include in a partial response.
3232
3242
  # @param [String] quota_user
3233
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3234
- # characters.
3235
- # @param [String] user_ip
3236
- # Deprecated. Please use quotaUser instead.
3243
+ # Available to use for quota purposes for server-side applications. Can be any
3244
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3237
3245
  # @param [Google::Apis::RequestOptions] options
3238
3246
  # Request-specific options
3239
3247
  #
@@ -3246,14 +3254,13 @@ module Google
3246
3254
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3247
3255
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3248
3256
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3249
- def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3250
- command = make_simple_command(:delete, '{merchantId}/products/{productId}', options)
3257
+ def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3258
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/products/{productId}', options)
3251
3259
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3252
3260
  command.params['productId'] = product_id unless product_id.nil?
3253
3261
  command.query['feedId'] = feed_id unless feed_id.nil?
3254
3262
  command.query['fields'] = fields unless fields.nil?
3255
3263
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3256
- command.query['userIp'] = user_ip unless user_ip.nil?
3257
3264
  execute_or_queue_command(command, &block)
3258
3265
  end
3259
3266
 
@@ -3266,10 +3273,8 @@ module Google
3266
3273
  # @param [String] fields
3267
3274
  # Selector specifying which fields to include in a partial response.
3268
3275
  # @param [String] quota_user
3269
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3270
- # characters.
3271
- # @param [String] user_ip
3272
- # Deprecated. Please use quotaUser instead.
3276
+ # Available to use for quota purposes for server-side applications. Can be any
3277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3273
3278
  # @param [Google::Apis::RequestOptions] options
3274
3279
  # Request-specific options
3275
3280
  #
@@ -3282,15 +3287,14 @@ module Google
3282
3287
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3283
3288
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3284
3289
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3285
- def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3286
- command = make_simple_command(:get, '{merchantId}/products/{productId}', options)
3290
+ def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
3291
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/products/{productId}', options)
3287
3292
  command.response_representation = Google::Apis::ContentV2_1::Product::Representation
3288
3293
  command.response_class = Google::Apis::ContentV2_1::Product
3289
3294
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3290
3295
  command.params['productId'] = product_id unless product_id.nil?
3291
3296
  command.query['fields'] = fields unless fields.nil?
3292
3297
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3293
- command.query['userIp'] = user_ip unless user_ip.nil?
3294
3298
  execute_or_queue_command(command, &block)
3295
3299
  end
3296
3300
 
@@ -3306,10 +3310,8 @@ module Google
3306
3310
  # @param [String] fields
3307
3311
  # Selector specifying which fields to include in a partial response.
3308
3312
  # @param [String] quota_user
3309
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3310
- # characters.
3311
- # @param [String] user_ip
3312
- # Deprecated. Please use quotaUser instead.
3313
+ # Available to use for quota purposes for server-side applications. Can be any
3314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3313
3315
  # @param [Google::Apis::RequestOptions] options
3314
3316
  # Request-specific options
3315
3317
  #
@@ -3322,8 +3324,8 @@ module Google
3322
3324
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3323
3325
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3324
3326
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3325
- def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3326
- command = make_simple_command(:post, '{merchantId}/products', options)
3327
+ def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3328
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/products', options)
3327
3329
  command.request_representation = Google::Apis::ContentV2_1::Product::Representation
3328
3330
  command.request_object = product_object
3329
3331
  command.response_representation = Google::Apis::ContentV2_1::Product::Representation
@@ -3332,7 +3334,6 @@ module Google
3332
3334
  command.query['feedId'] = feed_id unless feed_id.nil?
3333
3335
  command.query['fields'] = fields unless fields.nil?
3334
3336
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3335
- command.query['userIp'] = user_ip unless user_ip.nil?
3336
3337
  execute_or_queue_command(command, &block)
3337
3338
  end
3338
3339
 
@@ -3349,10 +3350,8 @@ module Google
3349
3350
  # @param [String] fields
3350
3351
  # Selector specifying which fields to include in a partial response.
3351
3352
  # @param [String] quota_user
3352
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3353
- # characters.
3354
- # @param [String] user_ip
3355
- # Deprecated. Please use quotaUser instead.
3353
+ # Available to use for quota purposes for server-side applications. Can be any
3354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3356
3355
  # @param [Google::Apis::RequestOptions] options
3357
3356
  # Request-specific options
3358
3357
  #
@@ -3365,8 +3364,8 @@ module Google
3365
3364
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3366
3365
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3367
3366
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3368
- def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3369
- command = make_simple_command(:get, '{merchantId}/products', options)
3367
+ def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3368
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/products', options)
3370
3369
  command.response_representation = Google::Apis::ContentV2_1::ProductsListResponse::Representation
3371
3370
  command.response_class = Google::Apis::ContentV2_1::ProductsListResponse
3372
3371
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3374,7 +3373,6 @@ module Google
3374
3373
  command.query['pageToken'] = page_token unless page_token.nil?
3375
3374
  command.query['fields'] = fields unless fields.nil?
3376
3375
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3377
- command.query['userIp'] = user_ip unless user_ip.nil?
3378
3376
  execute_or_queue_command(command, &block)
3379
3377
  end
3380
3378
 
@@ -3383,10 +3381,8 @@ module Google
3383
3381
  # @param [String] fields
3384
3382
  # Selector specifying which fields to include in a partial response.
3385
3383
  # @param [String] quota_user
3386
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3387
- # characters.
3388
- # @param [String] user_ip
3389
- # Deprecated. Please use quotaUser instead.
3384
+ # Available to use for quota purposes for server-side applications. Can be any
3385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3390
3386
  # @param [Google::Apis::RequestOptions] options
3391
3387
  # Request-specific options
3392
3388
  #
@@ -3399,15 +3395,14 @@ module Google
3399
3395
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3400
3396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3401
3397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3402
- def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3403
- command = make_simple_command(:post, 'productstatuses/batch', options)
3398
+ def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3399
+ command = make_simple_command(:post, 'content/v2.1/productstatuses/batch', options)
3404
3400
  command.request_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest::Representation
3405
3401
  command.request_object = productstatuses_custom_batch_request_object
3406
3402
  command.response_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse::Representation
3407
3403
  command.response_class = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse
3408
3404
  command.query['fields'] = fields unless fields.nil?
3409
3405
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3410
- command.query['userIp'] = user_ip unless user_ip.nil?
3411
3406
  execute_or_queue_command(command, &block)
3412
3407
  end
3413
3408
 
@@ -3423,10 +3418,8 @@ module Google
3423
3418
  # @param [String] fields
3424
3419
  # Selector specifying which fields to include in a partial response.
3425
3420
  # @param [String] quota_user
3426
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3427
- # characters.
3428
- # @param [String] user_ip
3429
- # Deprecated. Please use quotaUser instead.
3421
+ # Available to use for quota purposes for server-side applications. Can be any
3422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3430
3423
  # @param [Google::Apis::RequestOptions] options
3431
3424
  # Request-specific options
3432
3425
  #
@@ -3439,8 +3432,8 @@ module Google
3439
3432
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3440
3433
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3441
3434
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3442
- def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3443
- command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
3435
+ def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block)
3436
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses/{productId}', options)
3444
3437
  command.response_representation = Google::Apis::ContentV2_1::ProductStatus::Representation
3445
3438
  command.response_class = Google::Apis::ContentV2_1::ProductStatus
3446
3439
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3448,7 +3441,6 @@ module Google
3448
3441
  command.query['destinations'] = destinations unless destinations.nil?
3449
3442
  command.query['fields'] = fields unless fields.nil?
3450
3443
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3451
- command.query['userIp'] = user_ip unless user_ip.nil?
3452
3444
  execute_or_queue_command(command, &block)
3453
3445
  end
3454
3446
 
@@ -3467,10 +3459,8 @@ module Google
3467
3459
  # @param [String] fields
3468
3460
  # Selector specifying which fields to include in a partial response.
3469
3461
  # @param [String] quota_user
3470
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3471
- # characters.
3472
- # @param [String] user_ip
3473
- # Deprecated. Please use quotaUser instead.
3462
+ # Available to use for quota purposes for server-side applications. Can be any
3463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3474
3464
  # @param [Google::Apis::RequestOptions] options
3475
3465
  # Request-specific options
3476
3466
  #
@@ -3483,8 +3473,8 @@ module Google
3483
3473
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3484
3474
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3485
3475
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3486
- def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3487
- command = make_simple_command(:get, '{merchantId}/productstatuses', options)
3476
+ def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3477
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses', options)
3488
3478
  command.response_representation = Google::Apis::ContentV2_1::ProductstatusesListResponse::Representation
3489
3479
  command.response_class = Google::Apis::ContentV2_1::ProductstatusesListResponse
3490
3480
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3493,7 +3483,6 @@ module Google
3493
3483
  command.query['pageToken'] = page_token unless page_token.nil?
3494
3484
  command.query['fields'] = fields unless fields.nil?
3495
3485
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3496
- command.query['userIp'] = user_ip unless user_ip.nil?
3497
3486
  execute_or_queue_command(command, &block)
3498
3487
  end
3499
3488
 
@@ -3503,10 +3492,8 @@ module Google
3503
3492
  # @param [String] fields
3504
3493
  # Selector specifying which fields to include in a partial response.
3505
3494
  # @param [String] quota_user
3506
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3507
- # characters.
3508
- # @param [String] user_ip
3509
- # Deprecated. Please use quotaUser instead.
3495
+ # Available to use for quota purposes for server-side applications. Can be any
3496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3510
3497
  # @param [Google::Apis::RequestOptions] options
3511
3498
  # Request-specific options
3512
3499
  #
@@ -3519,14 +3506,13 @@ module Google
3519
3506
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3520
3507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3521
3508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3522
- def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3523
- command = make_simple_command(:get, '{merchantId}/pubsubnotificationsettings', options)
3509
+ def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
3510
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/pubsubnotificationsettings', options)
3524
3511
  command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
3525
3512
  command.response_class = Google::Apis::ContentV2_1::PubsubNotificationSettings
3526
3513
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3527
3514
  command.query['fields'] = fields unless fields.nil?
3528
3515
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3529
- command.query['userIp'] = user_ip unless user_ip.nil?
3530
3516
  execute_or_queue_command(command, &block)
3531
3517
  end
3532
3518
 
@@ -3538,10 +3524,8 @@ module Google
3538
3524
  # @param [String] fields
3539
3525
  # Selector specifying which fields to include in a partial response.
3540
3526
  # @param [String] quota_user
3541
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3542
- # characters.
3543
- # @param [String] user_ip
3544
- # Deprecated. Please use quotaUser instead.
3527
+ # Available to use for quota purposes for server-side applications. Can be any
3528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3545
3529
  # @param [Google::Apis::RequestOptions] options
3546
3530
  # Request-specific options
3547
3531
  #
@@ -3554,8 +3538,8 @@ module Google
3554
3538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3555
3539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3556
3540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3557
- def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3558
- command = make_simple_command(:put, '{merchantId}/pubsubnotificationsettings', options)
3541
+ def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3542
+ command = make_simple_command(:put, 'content/v2.1/{merchantId}/pubsubnotificationsettings', options)
3559
3543
  command.request_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
3560
3544
  command.request_object = pubsub_notification_settings_object
3561
3545
  command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
@@ -3563,7 +3547,6 @@ module Google
3563
3547
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3564
3548
  command.query['fields'] = fields unless fields.nil?
3565
3549
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3566
- command.query['userIp'] = user_ip unless user_ip.nil?
3567
3550
  execute_or_queue_command(command, &block)
3568
3551
  end
3569
3552
 
@@ -3573,10 +3556,8 @@ module Google
3573
3556
  # @param [String] fields
3574
3557
  # Selector specifying which fields to include in a partial response.
3575
3558
  # @param [String] quota_user
3576
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3577
- # characters.
3578
- # @param [String] user_ip
3579
- # Deprecated. Please use quotaUser instead.
3559
+ # Available to use for quota purposes for server-side applications. Can be any
3560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3580
3561
  # @param [Google::Apis::RequestOptions] options
3581
3562
  # Request-specific options
3582
3563
  #
@@ -3589,15 +3570,14 @@ module Google
3589
3570
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3590
3571
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3591
3572
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3592
- def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3593
- command = make_simple_command(:post, 'regionalinventory/batch', options)
3573
+ def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3574
+ command = make_simple_command(:post, 'content/v2.1/regionalinventory/batch', options)
3594
3575
  command.request_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest::Representation
3595
3576
  command.request_object = regionalinventory_custom_batch_request_object
3596
3577
  command.response_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse::Representation
3597
3578
  command.response_class = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse
3598
3579
  command.query['fields'] = fields unless fields.nil?
3599
3580
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3600
- command.query['userIp'] = user_ip unless user_ip.nil?
3601
3581
  execute_or_queue_command(command, &block)
3602
3582
  end
3603
3583
 
@@ -3613,10 +3593,8 @@ module Google
3613
3593
  # @param [String] fields
3614
3594
  # Selector specifying which fields to include in a partial response.
3615
3595
  # @param [String] quota_user
3616
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3617
- # characters.
3618
- # @param [String] user_ip
3619
- # Deprecated. Please use quotaUser instead.
3596
+ # Available to use for quota purposes for server-side applications. Can be any
3597
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3620
3598
  # @param [Google::Apis::RequestOptions] options
3621
3599
  # Request-specific options
3622
3600
  #
@@ -3629,8 +3607,8 @@ module Google
3629
3607
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3630
3608
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3631
3609
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3632
- def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3633
- command = make_simple_command(:post, '{merchantId}/products/{productId}/regionalinventory', options)
3610
+ def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3611
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/products/{productId}/regionalinventory', options)
3634
3612
  command.request_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
3635
3613
  command.request_object = regional_inventory_object
3636
3614
  command.response_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
@@ -3639,7 +3617,194 @@ module Google
3639
3617
  command.params['productId'] = product_id unless product_id.nil?
3640
3618
  command.query['fields'] = fields unless fields.nil?
3641
3619
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3642
- command.query['userIp'] = user_ip unless user_ip.nil?
3620
+ execute_or_queue_command(command, &block)
3621
+ end
3622
+
3623
+ # Creates a repricing rule for your Merchant Center account.
3624
+ # @param [Fixnum] merchant_id
3625
+ # Required. The id of the merchant who owns the repricing rule.
3626
+ # @param [Google::Apis::ContentV2_1::RepricingRule] repricing_rule_object
3627
+ # @param [String] rule_id
3628
+ # Required. The id of the rule to create.
3629
+ # @param [String] fields
3630
+ # Selector specifying which fields to include in a partial response.
3631
+ # @param [String] quota_user
3632
+ # Available to use for quota purposes for server-side applications. Can be any
3633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3634
+ # @param [Google::Apis::RequestOptions] options
3635
+ # Request-specific options
3636
+ #
3637
+ # @yield [result, err] Result & error if block supplied
3638
+ # @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object
3639
+ # @yieldparam err [StandardError] error object if request failed
3640
+ #
3641
+ # @return [Google::Apis::ContentV2_1::RepricingRule]
3642
+ #
3643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3646
+ def create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3647
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/repricingrules', options)
3648
+ command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
3649
+ command.request_object = repricing_rule_object
3650
+ command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
3651
+ command.response_class = Google::Apis::ContentV2_1::RepricingRule
3652
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3653
+ command.query['ruleId'] = rule_id unless rule_id.nil?
3654
+ command.query['fields'] = fields unless fields.nil?
3655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3656
+ execute_or_queue_command(command, &block)
3657
+ end
3658
+
3659
+ # Deletes a repricing rule in your Merchant Center account.
3660
+ # @param [Fixnum] merchant_id
3661
+ # Required. The id of the merchant who owns the repricing rule.
3662
+ # @param [String] rule_id
3663
+ # Required. The id of the rule to Delete.
3664
+ # @param [String] fields
3665
+ # Selector specifying which fields to include in a partial response.
3666
+ # @param [String] quota_user
3667
+ # Available to use for quota purposes for server-side applications. Can be any
3668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3669
+ # @param [Google::Apis::RequestOptions] options
3670
+ # Request-specific options
3671
+ #
3672
+ # @yield [result, err] Result & error if block supplied
3673
+ # @yieldparam result [NilClass] No result returned for this method
3674
+ # @yieldparam err [StandardError] error object if request failed
3675
+ #
3676
+ # @return [void]
3677
+ #
3678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3681
+ def delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
3682
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options)
3683
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3684
+ command.params['ruleId'] = rule_id unless rule_id.nil?
3685
+ command.query['fields'] = fields unless fields.nil?
3686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3687
+ execute_or_queue_command(command, &block)
3688
+ end
3689
+
3690
+ # Retrieves a repricing rule from your Merchant Center account.
3691
+ # @param [Fixnum] merchant_id
3692
+ # Required. The id of the merchant who owns the repricing rule.
3693
+ # @param [String] rule_id
3694
+ # Required. The id of the rule to retrieve.
3695
+ # @param [String] fields
3696
+ # Selector specifying which fields to include in a partial response.
3697
+ # @param [String] quota_user
3698
+ # Available to use for quota purposes for server-side applications. Can be any
3699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3700
+ # @param [Google::Apis::RequestOptions] options
3701
+ # Request-specific options
3702
+ #
3703
+ # @yield [result, err] Result & error if block supplied
3704
+ # @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object
3705
+ # @yieldparam err [StandardError] error object if request failed
3706
+ #
3707
+ # @return [Google::Apis::ContentV2_1::RepricingRule]
3708
+ #
3709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3712
+ def get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
3713
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options)
3714
+ command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
3715
+ command.response_class = Google::Apis::ContentV2_1::RepricingRule
3716
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3717
+ command.params['ruleId'] = rule_id unless rule_id.nil?
3718
+ command.query['fields'] = fields unless fields.nil?
3719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3720
+ execute_or_queue_command(command, &block)
3721
+ end
3722
+
3723
+ # Lists the repricing rules in your Merchant Center account.
3724
+ # @param [Fixnum] merchant_id
3725
+ # Required. The id of the merchant who owns the repricing rule.
3726
+ # @param [String] country_code
3727
+ # CLDR country code (e.g. "US"), used as a filter on repricing rules.
3728
+ # @param [String] language_code
3729
+ # The two-letter ISO 639-1 language code associated with the repricing rule,
3730
+ # used as a filter.
3731
+ # @param [Fixnum] page_size
3732
+ # The maximum number of repricing rules to return. The service may return fewer
3733
+ # than this value. If unspecified, at most 50 rules will be returned. The
3734
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
3735
+ # @param [String] page_token
3736
+ # A page token, received from a previous `ListRepricingRules` call. Provide this
3737
+ # to retrieve the subsequent page. When paginating, all other parameters
3738
+ # provided to `ListRepricingRules` must match the call that provided the page
3739
+ # token.
3740
+ # @param [String] fields
3741
+ # Selector specifying which fields to include in a partial response.
3742
+ # @param [String] quota_user
3743
+ # Available to use for quota purposes for server-side applications. Can be any
3744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3745
+ # @param [Google::Apis::RequestOptions] options
3746
+ # Request-specific options
3747
+ #
3748
+ # @yield [result, err] Result & error if block supplied
3749
+ # @yieldparam result [Google::Apis::ContentV2_1::ListRepricingRulesResponse] parsed result object
3750
+ # @yieldparam err [StandardError] error object if request failed
3751
+ #
3752
+ # @return [Google::Apis::ContentV2_1::ListRepricingRulesResponse]
3753
+ #
3754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3757
+ def list_repricingrules(merchant_id, country_code: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3758
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules', options)
3759
+ command.response_representation = Google::Apis::ContentV2_1::ListRepricingRulesResponse::Representation
3760
+ command.response_class = Google::Apis::ContentV2_1::ListRepricingRulesResponse
3761
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3762
+ command.query['countryCode'] = country_code unless country_code.nil?
3763
+ command.query['languageCode'] = language_code unless language_code.nil?
3764
+ command.query['pageSize'] = page_size unless page_size.nil?
3765
+ command.query['pageToken'] = page_token unless page_token.nil?
3766
+ command.query['fields'] = fields unless fields.nil?
3767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3768
+ execute_or_queue_command(command, &block)
3769
+ end
3770
+
3771
+ # Updates a repricing rule in your Merchant Center account. All mutable fields
3772
+ # will be overwritten in each update request. In each update, you must provide
3773
+ # all required mutable fields, or an error will be thrown. If you do not provide
3774
+ # an optional field in the update request, if that field currently exists, it
3775
+ # will be deleted from the rule.
3776
+ # @param [Fixnum] merchant_id
3777
+ # Required. The id of the merchant who owns the repricing rule.
3778
+ # @param [String] rule_id
3779
+ # Required. The id of the rule to update.
3780
+ # @param [Google::Apis::ContentV2_1::RepricingRule] repricing_rule_object
3781
+ # @param [String] fields
3782
+ # Selector specifying which fields to include in a partial response.
3783
+ # @param [String] quota_user
3784
+ # Available to use for quota purposes for server-side applications. Can be any
3785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3786
+ # @param [Google::Apis::RequestOptions] options
3787
+ # Request-specific options
3788
+ #
3789
+ # @yield [result, err] Result & error if block supplied
3790
+ # @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object
3791
+ # @yieldparam err [StandardError] error object if request failed
3792
+ #
3793
+ # @return [Google::Apis::ContentV2_1::RepricingRule]
3794
+ #
3795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3798
+ def patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3799
+ command = make_simple_command(:patch, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options)
3800
+ command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
3801
+ command.request_object = repricing_rule_object
3802
+ command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
3803
+ command.response_class = Google::Apis::ContentV2_1::RepricingRule
3804
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3805
+ command.params['ruleId'] = rule_id unless rule_id.nil?
3806
+ command.query['fields'] = fields unless fields.nil?
3807
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3643
3808
  execute_or_queue_command(command, &block)
3644
3809
  end
3645
3810
 
@@ -3648,10 +3813,8 @@ module Google
3648
3813
  # @param [String] fields
3649
3814
  # Selector specifying which fields to include in a partial response.
3650
3815
  # @param [String] quota_user
3651
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3652
- # characters.
3653
- # @param [String] user_ip
3654
- # Deprecated. Please use quotaUser instead.
3816
+ # Available to use for quota purposes for server-side applications. Can be any
3817
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3655
3818
  # @param [Google::Apis::RequestOptions] options
3656
3819
  # Request-specific options
3657
3820
  #
@@ -3664,15 +3827,14 @@ module Google
3664
3827
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3665
3828
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3666
3829
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3667
- def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3668
- command = make_simple_command(:post, 'returnaddress/batch', options)
3830
+ def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3831
+ command = make_simple_command(:post, 'content/v2.1/returnaddress/batch', options)
3669
3832
  command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation
3670
3833
  command.request_object = returnaddress_custom_batch_request_object
3671
3834
  command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation
3672
3835
  command.response_class = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse
3673
3836
  command.query['fields'] = fields unless fields.nil?
3674
3837
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3675
- command.query['userIp'] = user_ip unless user_ip.nil?
3676
3838
  execute_or_queue_command(command, &block)
3677
3839
  end
3678
3840
 
@@ -3684,10 +3846,8 @@ module Google
3684
3846
  # @param [String] fields
3685
3847
  # Selector specifying which fields to include in a partial response.
3686
3848
  # @param [String] quota_user
3687
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3688
- # characters.
3689
- # @param [String] user_ip
3690
- # Deprecated. Please use quotaUser instead.
3849
+ # Available to use for quota purposes for server-side applications. Can be any
3850
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3691
3851
  # @param [Google::Apis::RequestOptions] options
3692
3852
  # Request-specific options
3693
3853
  #
@@ -3700,13 +3860,12 @@ module Google
3700
3860
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3701
3861
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3702
3862
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3703
- def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3704
- command = make_simple_command(:delete, '{merchantId}/returnaddress/{returnAddressId}', options)
3863
+ def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
3864
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnaddress/{returnAddressId}', options)
3705
3865
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3706
3866
  command.params['returnAddressId'] = return_address_id unless return_address_id.nil?
3707
3867
  command.query['fields'] = fields unless fields.nil?
3708
3868
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3709
- command.query['userIp'] = user_ip unless user_ip.nil?
3710
3869
  execute_or_queue_command(command, &block)
3711
3870
  end
3712
3871
 
@@ -3718,10 +3877,8 @@ module Google
3718
3877
  # @param [String] fields
3719
3878
  # Selector specifying which fields to include in a partial response.
3720
3879
  # @param [String] quota_user
3721
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3722
- # characters.
3723
- # @param [String] user_ip
3724
- # Deprecated. Please use quotaUser instead.
3880
+ # Available to use for quota purposes for server-side applications. Can be any
3881
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3725
3882
  # @param [Google::Apis::RequestOptions] options
3726
3883
  # Request-specific options
3727
3884
  #
@@ -3734,15 +3891,14 @@ module Google
3734
3891
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3735
3892
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3736
3893
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3737
- def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3738
- command = make_simple_command(:get, '{merchantId}/returnaddress/{returnAddressId}', options)
3894
+ def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
3895
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnaddress/{returnAddressId}', options)
3739
3896
  command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
3740
3897
  command.response_class = Google::Apis::ContentV2_1::ReturnAddress
3741
3898
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3742
3899
  command.params['returnAddressId'] = return_address_id unless return_address_id.nil?
3743
3900
  command.query['fields'] = fields unless fields.nil?
3744
3901
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3745
- command.query['userIp'] = user_ip unless user_ip.nil?
3746
3902
  execute_or_queue_command(command, &block)
3747
3903
  end
3748
3904
 
@@ -3753,10 +3909,8 @@ module Google
3753
3909
  # @param [String] fields
3754
3910
  # Selector specifying which fields to include in a partial response.
3755
3911
  # @param [String] quota_user
3756
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3757
- # characters.
3758
- # @param [String] user_ip
3759
- # Deprecated. Please use quotaUser instead.
3912
+ # Available to use for quota purposes for server-side applications. Can be any
3913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3760
3914
  # @param [Google::Apis::RequestOptions] options
3761
3915
  # Request-specific options
3762
3916
  #
@@ -3769,8 +3923,8 @@ module Google
3769
3923
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3770
3924
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3771
3925
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3772
- def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3773
- command = make_simple_command(:post, '{merchantId}/returnaddress', options)
3926
+ def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3927
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnaddress', options)
3774
3928
  command.request_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
3775
3929
  command.request_object = return_address_object
3776
3930
  command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
@@ -3778,7 +3932,6 @@ module Google
3778
3932
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3779
3933
  command.query['fields'] = fields unless fields.nil?
3780
3934
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3781
- command.query['userIp'] = user_ip unless user_ip.nil?
3782
3935
  execute_or_queue_command(command, &block)
3783
3936
  end
3784
3937
 
@@ -3795,10 +3948,8 @@ module Google
3795
3948
  # @param [String] fields
3796
3949
  # Selector specifying which fields to include in a partial response.
3797
3950
  # @param [String] quota_user
3798
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3799
- # characters.
3800
- # @param [String] user_ip
3801
- # Deprecated. Please use quotaUser instead.
3951
+ # Available to use for quota purposes for server-side applications. Can be any
3952
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3802
3953
  # @param [Google::Apis::RequestOptions] options
3803
3954
  # Request-specific options
3804
3955
  #
@@ -3811,8 +3962,8 @@ module Google
3811
3962
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3812
3963
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3813
3964
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3814
- def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3815
- command = make_simple_command(:get, '{merchantId}/returnaddress', options)
3965
+ def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3966
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnaddress', options)
3816
3967
  command.response_representation = Google::Apis::ContentV2_1::ReturnaddressListResponse::Representation
3817
3968
  command.response_class = Google::Apis::ContentV2_1::ReturnaddressListResponse
3818
3969
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3821,7 +3972,6 @@ module Google
3821
3972
  command.query['pageToken'] = page_token unless page_token.nil?
3822
3973
  command.query['fields'] = fields unless fields.nil?
3823
3974
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3824
- command.query['userIp'] = user_ip unless user_ip.nil?
3825
3975
  execute_or_queue_command(command, &block)
3826
3976
  end
3827
3977
 
@@ -3830,10 +3980,8 @@ module Google
3830
3980
  # @param [String] fields
3831
3981
  # Selector specifying which fields to include in a partial response.
3832
3982
  # @param [String] quota_user
3833
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3834
- # characters.
3835
- # @param [String] user_ip
3836
- # Deprecated. Please use quotaUser instead.
3983
+ # Available to use for quota purposes for server-side applications. Can be any
3984
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3837
3985
  # @param [Google::Apis::RequestOptions] options
3838
3986
  # Request-specific options
3839
3987
  #
@@ -3846,15 +3994,14 @@ module Google
3846
3994
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3847
3995
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3848
3996
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3849
- def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3850
- command = make_simple_command(:post, 'returnpolicy/batch', options)
3997
+ def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3998
+ command = make_simple_command(:post, 'content/v2.1/returnpolicy/batch', options)
3851
3999
  command.request_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest::Representation
3852
4000
  command.request_object = returnpolicy_custom_batch_request_object
3853
4001
  command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse::Representation
3854
4002
  command.response_class = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse
3855
4003
  command.query['fields'] = fields unless fields.nil?
3856
4004
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3857
- command.query['userIp'] = user_ip unless user_ip.nil?
3858
4005
  execute_or_queue_command(command, &block)
3859
4006
  end
3860
4007
 
@@ -3866,10 +4013,8 @@ module Google
3866
4013
  # @param [String] fields
3867
4014
  # Selector specifying which fields to include in a partial response.
3868
4015
  # @param [String] quota_user
3869
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3870
- # characters.
3871
- # @param [String] user_ip
3872
- # Deprecated. Please use quotaUser instead.
4016
+ # Available to use for quota purposes for server-side applications. Can be any
4017
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3873
4018
  # @param [Google::Apis::RequestOptions] options
3874
4019
  # Request-specific options
3875
4020
  #
@@ -3882,13 +4027,12 @@ module Google
3882
4027
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3883
4028
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3884
4029
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3885
- def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3886
- command = make_simple_command(:delete, '{merchantId}/returnpolicy/{returnPolicyId}', options)
4030
+ def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
4031
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}', options)
3887
4032
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3888
4033
  command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
3889
4034
  command.query['fields'] = fields unless fields.nil?
3890
4035
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3891
- command.query['userIp'] = user_ip unless user_ip.nil?
3892
4036
  execute_or_queue_command(command, &block)
3893
4037
  end
3894
4038
 
@@ -3900,10 +4044,8 @@ module Google
3900
4044
  # @param [String] fields
3901
4045
  # Selector specifying which fields to include in a partial response.
3902
4046
  # @param [String] quota_user
3903
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3904
- # characters.
3905
- # @param [String] user_ip
3906
- # Deprecated. Please use quotaUser instead.
4047
+ # Available to use for quota purposes for server-side applications. Can be any
4048
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3907
4049
  # @param [Google::Apis::RequestOptions] options
3908
4050
  # Request-specific options
3909
4051
  #
@@ -3916,15 +4058,14 @@ module Google
3916
4058
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3917
4059
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3918
4060
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3919
- def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3920
- command = make_simple_command(:get, '{merchantId}/returnpolicy/{returnPolicyId}', options)
4061
+ def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
4062
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}', options)
3921
4063
  command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
3922
4064
  command.response_class = Google::Apis::ContentV2_1::ReturnPolicy
3923
4065
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3924
4066
  command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
3925
4067
  command.query['fields'] = fields unless fields.nil?
3926
4068
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3927
- command.query['userIp'] = user_ip unless user_ip.nil?
3928
4069
  execute_or_queue_command(command, &block)
3929
4070
  end
3930
4071
 
@@ -3935,10 +4076,8 @@ module Google
3935
4076
  # @param [String] fields
3936
4077
  # Selector specifying which fields to include in a partial response.
3937
4078
  # @param [String] quota_user
3938
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3939
- # characters.
3940
- # @param [String] user_ip
3941
- # Deprecated. Please use quotaUser instead.
4079
+ # Available to use for quota purposes for server-side applications. Can be any
4080
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3942
4081
  # @param [Google::Apis::RequestOptions] options
3943
4082
  # Request-specific options
3944
4083
  #
@@ -3951,8 +4090,8 @@ module Google
3951
4090
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3952
4091
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3953
4092
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3954
- def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3955
- command = make_simple_command(:post, '{merchantId}/returnpolicy', options)
4093
+ def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4094
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnpolicy', options)
3956
4095
  command.request_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
3957
4096
  command.request_object = return_policy_object
3958
4097
  command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
@@ -3960,7 +4099,6 @@ module Google
3960
4099
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3961
4100
  command.query['fields'] = fields unless fields.nil?
3962
4101
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3963
- command.query['userIp'] = user_ip unless user_ip.nil?
3964
4102
  execute_or_queue_command(command, &block)
3965
4103
  end
3966
4104
 
@@ -3970,10 +4108,8 @@ module Google
3970
4108
  # @param [String] fields
3971
4109
  # Selector specifying which fields to include in a partial response.
3972
4110
  # @param [String] quota_user
3973
- # An opaque string that represents a user for quota purposes. Must not exceed 40
3974
- # characters.
3975
- # @param [String] user_ip
3976
- # Deprecated. Please use quotaUser instead.
4111
+ # Available to use for quota purposes for server-side applications. Can be any
4112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3977
4113
  # @param [Google::Apis::RequestOptions] options
3978
4114
  # Request-specific options
3979
4115
  #
@@ -3986,14 +4122,13 @@ module Google
3986
4122
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3987
4123
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3988
4124
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3989
- def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3990
- command = make_simple_command(:get, '{merchantId}/returnpolicy', options)
4125
+ def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
4126
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicy', options)
3991
4127
  command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyListResponse::Representation
3992
4128
  command.response_class = Google::Apis::ContentV2_1::ReturnpolicyListResponse
3993
4129
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3994
4130
  command.query['fields'] = fields unless fields.nil?
3995
4131
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3996
- command.query['userIp'] = user_ip unless user_ip.nil?
3997
4132
  execute_or_queue_command(command, &block)
3998
4133
  end
3999
4134
 
@@ -4005,10 +4140,8 @@ module Google
4005
4140
  # @param [String] fields
4006
4141
  # Selector specifying which fields to include in a partial response.
4007
4142
  # @param [String] quota_user
4008
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4009
- # characters.
4010
- # @param [String] user_ip
4011
- # Deprecated. Please use quotaUser instead.
4143
+ # Available to use for quota purposes for server-side applications. Can be any
4144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4012
4145
  # @param [Google::Apis::RequestOptions] options
4013
4146
  # Request-specific options
4014
4147
  #
@@ -4021,15 +4154,14 @@ module Google
4021
4154
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4022
4155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4023
4156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4024
- def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4025
- command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}', options)
4157
+ def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil, &block)
4158
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports/{settlementId}', options)
4026
4159
  command.response_representation = Google::Apis::ContentV2_1::SettlementReport::Representation
4027
4160
  command.response_class = Google::Apis::ContentV2_1::SettlementReport
4028
4161
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4029
4162
  command.params['settlementId'] = settlement_id unless settlement_id.nil?
4030
4163
  command.query['fields'] = fields unless fields.nil?
4031
4164
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4032
- command.query['userIp'] = user_ip unless user_ip.nil?
4033
4165
  execute_or_queue_command(command, &block)
4034
4166
  end
4035
4167
 
@@ -4051,10 +4183,8 @@ module Google
4051
4183
  # @param [String] fields
4052
4184
  # Selector specifying which fields to include in a partial response.
4053
4185
  # @param [String] quota_user
4054
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4055
- # characters.
4056
- # @param [String] user_ip
4057
- # Deprecated. Please use quotaUser instead.
4186
+ # Available to use for quota purposes for server-side applications. Can be any
4187
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4058
4188
  # @param [Google::Apis::RequestOptions] options
4059
4189
  # Request-specific options
4060
4190
  #
@@ -4067,8 +4197,8 @@ module Google
4067
4197
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4068
4198
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4069
4199
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4070
- def list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4071
- command = make_simple_command(:get, '{merchantId}/settlementreports', options)
4200
+ def list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
4201
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports', options)
4072
4202
  command.response_representation = Google::Apis::ContentV2_1::SettlementreportsListResponse::Representation
4073
4203
  command.response_class = Google::Apis::ContentV2_1::SettlementreportsListResponse
4074
4204
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4078,7 +4208,6 @@ module Google
4078
4208
  command.query['transferStartDate'] = transfer_start_date unless transfer_start_date.nil?
4079
4209
  command.query['fields'] = fields unless fields.nil?
4080
4210
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4081
- command.query['userIp'] = user_ip unless user_ip.nil?
4082
4211
  execute_or_queue_command(command, &block)
4083
4212
  end
4084
4213
 
@@ -4099,10 +4228,8 @@ module Google
4099
4228
  # @param [String] fields
4100
4229
  # Selector specifying which fields to include in a partial response.
4101
4230
  # @param [String] quota_user
4102
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4103
- # characters.
4104
- # @param [String] user_ip
4105
- # Deprecated. Please use quotaUser instead.
4231
+ # Available to use for quota purposes for server-side applications. Can be any
4232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4106
4233
  # @param [Google::Apis::RequestOptions] options
4107
4234
  # Request-specific options
4108
4235
  #
@@ -4115,8 +4242,8 @@ module Google
4115
4242
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4116
4243
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4117
4244
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4118
- def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4119
- command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}/transactions', options)
4245
+ def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
4246
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions', options)
4120
4247
  command.response_representation = Google::Apis::ContentV2_1::SettlementtransactionsListResponse::Representation
4121
4248
  command.response_class = Google::Apis::ContentV2_1::SettlementtransactionsListResponse
4122
4249
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4126,7 +4253,6 @@ module Google
4126
4253
  command.query['transactionIds'] = transaction_ids unless transaction_ids.nil?
4127
4254
  command.query['fields'] = fields unless fields.nil?
4128
4255
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4129
- command.query['userIp'] = user_ip unless user_ip.nil?
4130
4256
  execute_or_queue_command(command, &block)
4131
4257
  end
4132
4258
 
@@ -4136,10 +4262,8 @@ module Google
4136
4262
  # @param [String] fields
4137
4263
  # Selector specifying which fields to include in a partial response.
4138
4264
  # @param [String] quota_user
4139
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4140
- # characters.
4141
- # @param [String] user_ip
4142
- # Deprecated. Please use quotaUser instead.
4265
+ # Available to use for quota purposes for server-side applications. Can be any
4266
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4143
4267
  # @param [Google::Apis::RequestOptions] options
4144
4268
  # Request-specific options
4145
4269
  #
@@ -4152,15 +4276,14 @@ module Google
4152
4276
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4153
4277
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4154
4278
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4155
- def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4156
- command = make_simple_command(:post, 'shippingsettings/batch', options)
4279
+ def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4280
+ command = make_simple_command(:post, 'content/v2.1/shippingsettings/batch', options)
4157
4281
  command.request_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest::Representation
4158
4282
  command.request_object = shippingsettings_custom_batch_request_object
4159
4283
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse::Representation
4160
4284
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse
4161
4285
  command.query['fields'] = fields unless fields.nil?
4162
4286
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4163
- command.query['userIp'] = user_ip unless user_ip.nil?
4164
4287
  execute_or_queue_command(command, &block)
4165
4288
  end
4166
4289
 
@@ -4174,10 +4297,8 @@ module Google
4174
4297
  # @param [String] fields
4175
4298
  # Selector specifying which fields to include in a partial response.
4176
4299
  # @param [String] quota_user
4177
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4178
- # characters.
4179
- # @param [String] user_ip
4180
- # Deprecated. Please use quotaUser instead.
4300
+ # Available to use for quota purposes for server-side applications. Can be any
4301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4181
4302
  # @param [Google::Apis::RequestOptions] options
4182
4303
  # Request-specific options
4183
4304
  #
@@ -4190,15 +4311,14 @@ module Google
4190
4311
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4191
4312
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4192
4313
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4193
- def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4194
- command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
4314
+ def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
4315
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/shippingsettings/{accountId}', options)
4195
4316
  command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
4196
4317
  command.response_class = Google::Apis::ContentV2_1::ShippingSettings
4197
4318
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4198
4319
  command.params['accountId'] = account_id unless account_id.nil?
4199
4320
  command.query['fields'] = fields unless fields.nil?
4200
4321
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4201
- command.query['userIp'] = user_ip unless user_ip.nil?
4202
4322
  execute_or_queue_command(command, &block)
4203
4323
  end
4204
4324
 
@@ -4208,10 +4328,8 @@ module Google
4208
4328
  # @param [String] fields
4209
4329
  # Selector specifying which fields to include in a partial response.
4210
4330
  # @param [String] quota_user
4211
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4212
- # characters.
4213
- # @param [String] user_ip
4214
- # Deprecated. Please use quotaUser instead.
4331
+ # Available to use for quota purposes for server-side applications. Can be any
4332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4215
4333
  # @param [Google::Apis::RequestOptions] options
4216
4334
  # Request-specific options
4217
4335
  #
@@ -4224,14 +4342,13 @@ module Google
4224
4342
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4225
4343
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4226
4344
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4227
- def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4228
- command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
4345
+ def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
4346
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedCarriers', options)
4229
4347
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse::Representation
4230
4348
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
4231
4349
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4232
4350
  command.query['fields'] = fields unless fields.nil?
4233
4351
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4234
- command.query['userIp'] = user_ip unless user_ip.nil?
4235
4352
  execute_or_queue_command(command, &block)
4236
4353
  end
4237
4354
 
@@ -4241,10 +4358,8 @@ module Google
4241
4358
  # @param [String] fields
4242
4359
  # Selector specifying which fields to include in a partial response.
4243
4360
  # @param [String] quota_user
4244
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4245
- # characters.
4246
- # @param [String] user_ip
4247
- # Deprecated. Please use quotaUser instead.
4361
+ # Available to use for quota purposes for server-side applications. Can be any
4362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4248
4363
  # @param [Google::Apis::RequestOptions] options
4249
4364
  # Request-specific options
4250
4365
  #
@@ -4257,14 +4372,13 @@ module Google
4257
4372
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4258
4373
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4259
4374
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4260
- def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4261
- command = make_simple_command(:get, '{merchantId}/supportedHolidays', options)
4375
+ def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
4376
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedHolidays', options)
4262
4377
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse::Representation
4263
4378
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
4264
4379
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4265
4380
  command.query['fields'] = fields unless fields.nil?
4266
4381
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4267
- command.query['userIp'] = user_ip unless user_ip.nil?
4268
4382
  execute_or_queue_command(command, &block)
4269
4383
  end
4270
4384
 
@@ -4274,10 +4388,8 @@ module Google
4274
4388
  # @param [String] fields
4275
4389
  # Selector specifying which fields to include in a partial response.
4276
4390
  # @param [String] quota_user
4277
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4278
- # characters.
4279
- # @param [String] user_ip
4280
- # Deprecated. Please use quotaUser instead.
4391
+ # Available to use for quota purposes for server-side applications. Can be any
4392
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4281
4393
  # @param [Google::Apis::RequestOptions] options
4282
4394
  # Request-specific options
4283
4395
  #
@@ -4290,14 +4402,13 @@ module Google
4290
4402
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4291
4403
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4292
4404
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4293
- def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4294
- command = make_simple_command(:get, '{merchantId}/supportedPickupServices', options)
4405
+ def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
4406
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedPickupServices', options)
4295
4407
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse::Representation
4296
4408
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse
4297
4409
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4298
4410
  command.query['fields'] = fields unless fields.nil?
4299
4411
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4300
- command.query['userIp'] = user_ip unless user_ip.nil?
4301
4412
  execute_or_queue_command(command, &block)
4302
4413
  end
4303
4414
 
@@ -4313,10 +4424,8 @@ module Google
4313
4424
  # @param [String] fields
4314
4425
  # Selector specifying which fields to include in a partial response.
4315
4426
  # @param [String] quota_user
4316
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4317
- # characters.
4318
- # @param [String] user_ip
4319
- # Deprecated. Please use quotaUser instead.
4427
+ # Available to use for quota purposes for server-side applications. Can be any
4428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4320
4429
  # @param [Google::Apis::RequestOptions] options
4321
4430
  # Request-specific options
4322
4431
  #
@@ -4329,8 +4438,8 @@ module Google
4329
4438
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4330
4439
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4331
4440
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4332
- def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4333
- command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
4441
+ def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4442
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/shippingsettings', options)
4334
4443
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsListResponse::Representation
4335
4444
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsListResponse
4336
4445
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4338,7 +4447,6 @@ module Google
4338
4447
  command.query['pageToken'] = page_token unless page_token.nil?
4339
4448
  command.query['fields'] = fields unless fields.nil?
4340
4449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4341
- command.query['userIp'] = user_ip unless user_ip.nil?
4342
4450
  execute_or_queue_command(command, &block)
4343
4451
  end
4344
4452
 
@@ -4354,10 +4462,8 @@ module Google
4354
4462
  # @param [String] fields
4355
4463
  # Selector specifying which fields to include in a partial response.
4356
4464
  # @param [String] quota_user
4357
- # An opaque string that represents a user for quota purposes. Must not exceed 40
4358
- # characters.
4359
- # @param [String] user_ip
4360
- # Deprecated. Please use quotaUser instead.
4465
+ # Available to use for quota purposes for server-side applications. Can be any
4466
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4361
4467
  # @param [Google::Apis::RequestOptions] options
4362
4468
  # Request-specific options
4363
4469
  #
@@ -4370,8 +4476,8 @@ module Google
4370
4476
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4371
4477
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4372
4478
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4373
- def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4374
- command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
4479
+ def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4480
+ command = make_simple_command(:put, 'content/v2.1/{merchantId}/shippingsettings/{accountId}', options)
4375
4481
  command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
4376
4482
  command.request_object = shipping_settings_object
4377
4483
  command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
@@ -4380,7 +4486,6 @@ module Google
4380
4486
  command.params['accountId'] = account_id unless account_id.nil?
4381
4487
  command.query['fields'] = fields unless fields.nil?
4382
4488
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4383
- command.query['userIp'] = user_ip unless user_ip.nil?
4384
4489
  execute_or_queue_command(command, &block)
4385
4490
  end
4386
4491
 
@@ -4389,7 +4494,6 @@ module Google
4389
4494
  def apply_command_defaults(command)
4390
4495
  command.query['key'] = key unless key.nil?
4391
4496
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4392
- command.query['userIp'] = user_ip unless user_ip.nil?
4393
4497
  end
4394
4498
  end
4395
4499
  end