google-api-client 0.9.8 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +61 -110
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
- data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
- data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +254 -6
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +77 -0
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2/service.rb +8 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1620 -199
- data/generated/google/apis/compute_beta/representations.rb +563 -0
- data/generated/google/apis/compute_beta/service.rb +5123 -2690
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1717 -295
- data/generated/google/apis/compute_v1/representations.rb +536 -0
- data/generated/google/apis/compute_v1/service.rb +2038 -1041
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +709 -1
- data/generated/google/apis/content_v2/representations.rb +319 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +11 -3
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +8 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +36 -16
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +4 -1
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +111 -9
- data/generated/google/apis/genomics_v1/representations.rb +36 -0
- data/generated/google/apis/genomics_v1/service.rb +4 -7
- data/generated/google/apis/gmail_v1.rb +7 -1
- data/generated/google/apis/gmail_v1/classes.rb +540 -0
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +19 -10
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +10 -9
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +163 -2
- data/generated/google/apis/youtube_v3/representations.rb +82 -0
- data/generated/google/apis/youtube_v3/service.rb +6 -2
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +43 -13
|
@@ -262,6 +262,18 @@ module Google
|
|
|
262
262
|
include Google::Apis::Core::JsonObjectSupport
|
|
263
263
|
end
|
|
264
264
|
|
|
265
|
+
class CarrierRate
|
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
267
|
+
|
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
class CarriersCarrier
|
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
273
|
+
|
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
275
|
+
end
|
|
276
|
+
|
|
265
277
|
class Datafeed
|
|
266
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
267
279
|
|
|
@@ -358,6 +370,12 @@ module Google
|
|
|
358
370
|
include Google::Apis::Core::JsonObjectSupport
|
|
359
371
|
end
|
|
360
372
|
|
|
373
|
+
class DeliveryTime
|
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
375
|
+
|
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
377
|
+
end
|
|
378
|
+
|
|
361
379
|
class Error
|
|
362
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
363
381
|
|
|
@@ -370,6 +388,12 @@ module Google
|
|
|
370
388
|
include Google::Apis::Core::JsonObjectSupport
|
|
371
389
|
end
|
|
372
390
|
|
|
391
|
+
class Headers
|
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
393
|
+
|
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
395
|
+
end
|
|
396
|
+
|
|
373
397
|
class Installment
|
|
374
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
375
399
|
|
|
@@ -418,6 +442,12 @@ module Google
|
|
|
418
442
|
include Google::Apis::Core::JsonObjectSupport
|
|
419
443
|
end
|
|
420
444
|
|
|
445
|
+
class LocationIdSet
|
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
447
|
+
|
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
449
|
+
end
|
|
450
|
+
|
|
421
451
|
class LoyaltyPoints
|
|
422
452
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
423
453
|
|
|
@@ -724,6 +754,18 @@ module Google
|
|
|
724
754
|
include Google::Apis::Core::JsonObjectSupport
|
|
725
755
|
end
|
|
726
756
|
|
|
757
|
+
class PostalCodeGroup
|
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
759
|
+
|
|
760
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
class PostalCodeRange
|
|
764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
765
|
+
|
|
766
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
767
|
+
end
|
|
768
|
+
|
|
727
769
|
class Price
|
|
728
770
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
729
771
|
|
|
@@ -874,6 +916,72 @@ module Google
|
|
|
874
916
|
include Google::Apis::Core::JsonObjectSupport
|
|
875
917
|
end
|
|
876
918
|
|
|
919
|
+
class RateGroup
|
|
920
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
921
|
+
|
|
922
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
class Row
|
|
926
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
927
|
+
|
|
928
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
class Service
|
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
933
|
+
|
|
934
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
class ShippingSettings
|
|
938
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
939
|
+
|
|
940
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
class ShippingsettingsCustomBatchRequest
|
|
944
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
945
|
+
|
|
946
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
class ShippingsettingsCustomBatchRequestEntry
|
|
950
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
951
|
+
|
|
952
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
class ShippingsettingsCustomBatchResponse
|
|
956
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
957
|
+
|
|
958
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
class ShippingsettingsCustomBatchResponseEntry
|
|
962
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
963
|
+
|
|
964
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
class ShippingsettingsGetSupportedCarriersResponse
|
|
968
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
969
|
+
|
|
970
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
class ShippingsettingsListResponse
|
|
974
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
975
|
+
|
|
976
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
class Table
|
|
980
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
981
|
+
|
|
982
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
983
|
+
end
|
|
984
|
+
|
|
877
985
|
class TestOrder
|
|
878
986
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
879
987
|
|
|
@@ -904,6 +1012,12 @@ module Google
|
|
|
904
1012
|
include Google::Apis::Core::JsonObjectSupport
|
|
905
1013
|
end
|
|
906
1014
|
|
|
1015
|
+
class Value
|
|
1016
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1017
|
+
|
|
1018
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1019
|
+
end
|
|
1020
|
+
|
|
907
1021
|
class Weight
|
|
908
1022
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
909
1023
|
|
|
@@ -1037,6 +1151,8 @@ module Google
|
|
|
1037
1151
|
|
|
1038
1152
|
property :cost_rule_tree, as: 'costRuleTree', class: Google::Apis::ContentV2::AccountShippingShippingServiceCostRule, decorator: Google::Apis::ContentV2::AccountShippingShippingServiceCostRule::Representation
|
|
1039
1153
|
|
|
1154
|
+
property :max_days_in_transit, as: 'maxDaysInTransit'
|
|
1155
|
+
property :min_days_in_transit, as: 'minDaysInTransit'
|
|
1040
1156
|
property :name, as: 'name'
|
|
1041
1157
|
property :sale_country, as: 'saleCountry'
|
|
1042
1158
|
end
|
|
@@ -1341,6 +1457,28 @@ module Google
|
|
|
1341
1457
|
end
|
|
1342
1458
|
end
|
|
1343
1459
|
|
|
1460
|
+
class CarrierRate
|
|
1461
|
+
# @private
|
|
1462
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1463
|
+
property :carrier_name, as: 'carrierName'
|
|
1464
|
+
property :carrier_service, as: 'carrierService'
|
|
1465
|
+
property :flat_adjustment, as: 'flatAdjustment', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
|
1466
|
+
|
|
1467
|
+
property :name, as: 'name'
|
|
1468
|
+
property :origin_postal_code, as: 'originPostalCode'
|
|
1469
|
+
property :percentage_adjustment, as: 'percentageAdjustment'
|
|
1470
|
+
end
|
|
1471
|
+
end
|
|
1472
|
+
|
|
1473
|
+
class CarriersCarrier
|
|
1474
|
+
# @private
|
|
1475
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1476
|
+
property :country, as: 'country'
|
|
1477
|
+
property :name, as: 'name'
|
|
1478
|
+
collection :services, as: 'services'
|
|
1479
|
+
end
|
|
1480
|
+
end
|
|
1481
|
+
|
|
1344
1482
|
class Datafeed
|
|
1345
1483
|
# @private
|
|
1346
1484
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1517,6 +1655,14 @@ module Google
|
|
|
1517
1655
|
end
|
|
1518
1656
|
end
|
|
1519
1657
|
|
|
1658
|
+
class DeliveryTime
|
|
1659
|
+
# @private
|
|
1660
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1661
|
+
property :max_transit_time_in_days, as: 'maxTransitTimeInDays'
|
|
1662
|
+
property :min_transit_time_in_days, as: 'minTransitTimeInDays'
|
|
1663
|
+
end
|
|
1664
|
+
end
|
|
1665
|
+
|
|
1520
1666
|
class Error
|
|
1521
1667
|
# @private
|
|
1522
1668
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1536,6 +1682,20 @@ module Google
|
|
|
1536
1682
|
end
|
|
1537
1683
|
end
|
|
1538
1684
|
|
|
1685
|
+
class Headers
|
|
1686
|
+
# @private
|
|
1687
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1688
|
+
collection :locations, as: 'locations', class: Google::Apis::ContentV2::LocationIdSet, decorator: Google::Apis::ContentV2::LocationIdSet::Representation
|
|
1689
|
+
|
|
1690
|
+
collection :number_of_items, as: 'numberOfItems'
|
|
1691
|
+
collection :postal_code_group_names, as: 'postalCodeGroupNames'
|
|
1692
|
+
collection :prices, as: 'prices', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
|
1693
|
+
|
|
1694
|
+
collection :weights, as: 'weights', class: Google::Apis::ContentV2::Weight, decorator: Google::Apis::ContentV2::Weight::Representation
|
|
1695
|
+
|
|
1696
|
+
end
|
|
1697
|
+
end
|
|
1698
|
+
|
|
1539
1699
|
class Installment
|
|
1540
1700
|
# @private
|
|
1541
1701
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1628,6 +1788,13 @@ module Google
|
|
|
1628
1788
|
end
|
|
1629
1789
|
end
|
|
1630
1790
|
|
|
1791
|
+
class LocationIdSet
|
|
1792
|
+
# @private
|
|
1793
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1794
|
+
collection :location_ids, as: 'locationIds'
|
|
1795
|
+
end
|
|
1796
|
+
end
|
|
1797
|
+
|
|
1631
1798
|
class LoyaltyPoints
|
|
1632
1799
|
# @private
|
|
1633
1800
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1641,6 +1808,7 @@ module Google
|
|
|
1641
1808
|
# @private
|
|
1642
1809
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1643
1810
|
property :acknowledged, as: 'acknowledged'
|
|
1811
|
+
property :channel_type, as: 'channelType'
|
|
1644
1812
|
property :customer, as: 'customer', class: Google::Apis::ContentV2::OrderCustomer, decorator: Google::Apis::ContentV2::OrderCustomer::Representation
|
|
1645
1813
|
|
|
1646
1814
|
property :delivery_details, as: 'deliveryDetails', class: Google::Apis::ContentV2::OrderDeliveryDetails, decorator: Google::Apis::ContentV2::OrderDeliveryDetails::Representation
|
|
@@ -2200,6 +2368,24 @@ module Google
|
|
|
2200
2368
|
end
|
|
2201
2369
|
end
|
|
2202
2370
|
|
|
2371
|
+
class PostalCodeGroup
|
|
2372
|
+
# @private
|
|
2373
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2374
|
+
property :country, as: 'country'
|
|
2375
|
+
property :name, as: 'name'
|
|
2376
|
+
collection :postal_code_ranges, as: 'postalCodeRanges', class: Google::Apis::ContentV2::PostalCodeRange, decorator: Google::Apis::ContentV2::PostalCodeRange::Representation
|
|
2377
|
+
|
|
2378
|
+
end
|
|
2379
|
+
end
|
|
2380
|
+
|
|
2381
|
+
class PostalCodeRange
|
|
2382
|
+
# @private
|
|
2383
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2384
|
+
property :postal_code_range_begin, as: 'postalCodeRangeBegin'
|
|
2385
|
+
property :postal_code_range_end, as: 'postalCodeRangeEnd'
|
|
2386
|
+
end
|
|
2387
|
+
end
|
|
2388
|
+
|
|
2203
2389
|
class Price
|
|
2204
2390
|
# @private
|
|
2205
2391
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2537,6 +2723,127 @@ module Google
|
|
|
2537
2723
|
end
|
|
2538
2724
|
end
|
|
2539
2725
|
|
|
2726
|
+
class RateGroup
|
|
2727
|
+
# @private
|
|
2728
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2729
|
+
collection :applicable_shipping_labels, as: 'applicableShippingLabels'
|
|
2730
|
+
collection :carrier_rates, as: 'carrierRates', class: Google::Apis::ContentV2::CarrierRate, decorator: Google::Apis::ContentV2::CarrierRate::Representation
|
|
2731
|
+
|
|
2732
|
+
property :main_table, as: 'mainTable', class: Google::Apis::ContentV2::Table, decorator: Google::Apis::ContentV2::Table::Representation
|
|
2733
|
+
|
|
2734
|
+
property :single_value, as: 'singleValue', class: Google::Apis::ContentV2::Value, decorator: Google::Apis::ContentV2::Value::Representation
|
|
2735
|
+
|
|
2736
|
+
collection :subtables, as: 'subtables', class: Google::Apis::ContentV2::Table, decorator: Google::Apis::ContentV2::Table::Representation
|
|
2737
|
+
|
|
2738
|
+
end
|
|
2739
|
+
end
|
|
2740
|
+
|
|
2741
|
+
class Row
|
|
2742
|
+
# @private
|
|
2743
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2744
|
+
collection :cells, as: 'cells', class: Google::Apis::ContentV2::Value, decorator: Google::Apis::ContentV2::Value::Representation
|
|
2745
|
+
|
|
2746
|
+
end
|
|
2747
|
+
end
|
|
2748
|
+
|
|
2749
|
+
class Service
|
|
2750
|
+
# @private
|
|
2751
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2752
|
+
property :active, as: 'active'
|
|
2753
|
+
property :currency, as: 'currency'
|
|
2754
|
+
property :delivery_country, as: 'deliveryCountry'
|
|
2755
|
+
property :delivery_time, as: 'deliveryTime', class: Google::Apis::ContentV2::DeliveryTime, decorator: Google::Apis::ContentV2::DeliveryTime::Representation
|
|
2756
|
+
|
|
2757
|
+
property :name, as: 'name'
|
|
2758
|
+
collection :rate_groups, as: 'rateGroups', class: Google::Apis::ContentV2::RateGroup, decorator: Google::Apis::ContentV2::RateGroup::Representation
|
|
2759
|
+
|
|
2760
|
+
end
|
|
2761
|
+
end
|
|
2762
|
+
|
|
2763
|
+
class ShippingSettings
|
|
2764
|
+
# @private
|
|
2765
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2766
|
+
property :account_id, as: 'accountId'
|
|
2767
|
+
collection :postal_code_groups, as: 'postalCodeGroups', class: Google::Apis::ContentV2::PostalCodeGroup, decorator: Google::Apis::ContentV2::PostalCodeGroup::Representation
|
|
2768
|
+
|
|
2769
|
+
collection :services, as: 'services', class: Google::Apis::ContentV2::Service, decorator: Google::Apis::ContentV2::Service::Representation
|
|
2770
|
+
|
|
2771
|
+
end
|
|
2772
|
+
end
|
|
2773
|
+
|
|
2774
|
+
class ShippingsettingsCustomBatchRequest
|
|
2775
|
+
# @private
|
|
2776
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2777
|
+
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry::Representation
|
|
2778
|
+
|
|
2779
|
+
end
|
|
2780
|
+
end
|
|
2781
|
+
|
|
2782
|
+
class ShippingsettingsCustomBatchRequestEntry
|
|
2783
|
+
# @private
|
|
2784
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2785
|
+
property :account_id, as: 'accountId'
|
|
2786
|
+
property :batch_id, as: 'batchId'
|
|
2787
|
+
property :merchant_id, as: 'merchantId'
|
|
2788
|
+
property :method_prop, as: 'method'
|
|
2789
|
+
property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2790
|
+
|
|
2791
|
+
end
|
|
2792
|
+
end
|
|
2793
|
+
|
|
2794
|
+
class ShippingsettingsCustomBatchResponse
|
|
2795
|
+
# @private
|
|
2796
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2797
|
+
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry::Representation
|
|
2798
|
+
|
|
2799
|
+
property :kind, as: 'kind'
|
|
2800
|
+
end
|
|
2801
|
+
end
|
|
2802
|
+
|
|
2803
|
+
class ShippingsettingsCustomBatchResponseEntry
|
|
2804
|
+
# @private
|
|
2805
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2806
|
+
property :batch_id, as: 'batchId'
|
|
2807
|
+
property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
|
|
2808
|
+
|
|
2809
|
+
property :kind, as: 'kind'
|
|
2810
|
+
property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2811
|
+
|
|
2812
|
+
end
|
|
2813
|
+
end
|
|
2814
|
+
|
|
2815
|
+
class ShippingsettingsGetSupportedCarriersResponse
|
|
2816
|
+
# @private
|
|
2817
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2818
|
+
collection :carriers, as: 'carriers', class: Google::Apis::ContentV2::CarriersCarrier, decorator: Google::Apis::ContentV2::CarriersCarrier::Representation
|
|
2819
|
+
|
|
2820
|
+
property :kind, as: 'kind'
|
|
2821
|
+
end
|
|
2822
|
+
end
|
|
2823
|
+
|
|
2824
|
+
class ShippingsettingsListResponse
|
|
2825
|
+
# @private
|
|
2826
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2827
|
+
property :kind, as: 'kind'
|
|
2828
|
+
property :next_page_token, as: 'nextPageToken'
|
|
2829
|
+
collection :resources, as: 'resources', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2830
|
+
|
|
2831
|
+
end
|
|
2832
|
+
end
|
|
2833
|
+
|
|
2834
|
+
class Table
|
|
2835
|
+
# @private
|
|
2836
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2837
|
+
property :column_headers, as: 'columnHeaders', class: Google::Apis::ContentV2::Headers, decorator: Google::Apis::ContentV2::Headers::Representation
|
|
2838
|
+
|
|
2839
|
+
property :name, as: 'name'
|
|
2840
|
+
property :row_headers, as: 'rowHeaders', class: Google::Apis::ContentV2::Headers, decorator: Google::Apis::ContentV2::Headers::Representation
|
|
2841
|
+
|
|
2842
|
+
collection :rows, as: 'rows', class: Google::Apis::ContentV2::Row, decorator: Google::Apis::ContentV2::Row::Representation
|
|
2843
|
+
|
|
2844
|
+
end
|
|
2845
|
+
end
|
|
2846
|
+
|
|
2540
2847
|
class TestOrder
|
|
2541
2848
|
# @private
|
|
2542
2849
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2614,6 +2921,18 @@ module Google
|
|
|
2614
2921
|
end
|
|
2615
2922
|
end
|
|
2616
2923
|
|
|
2924
|
+
class Value
|
|
2925
|
+
# @private
|
|
2926
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2927
|
+
property :carrier_rate_name, as: 'carrierRateName'
|
|
2928
|
+
property :flat_rate, as: 'flatRate', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
|
2929
|
+
|
|
2930
|
+
property :no_shipping, as: 'noShipping'
|
|
2931
|
+
property :price_percentage, as: 'pricePercentage'
|
|
2932
|
+
property :subtable_name, as: 'subtableName'
|
|
2933
|
+
end
|
|
2934
|
+
end
|
|
2935
|
+
|
|
2617
2936
|
class Weight
|
|
2618
2937
|
# @private
|
|
2619
2938
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2324,6 +2324,250 @@ module Google
|
|
|
2324
2324
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2325
2325
|
execute_or_queue_command(command, &block)
|
|
2326
2326
|
end
|
|
2327
|
+
|
|
2328
|
+
# Retrieves and updates the shipping settings of multiple accounts in a single
|
|
2329
|
+
# request.
|
|
2330
|
+
# @param [Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object
|
|
2331
|
+
# @param [Boolean] dry_run
|
|
2332
|
+
# Flag to run the request in dry-run mode.
|
|
2333
|
+
# @param [String] fields
|
|
2334
|
+
# Selector specifying which fields to include in a partial response.
|
|
2335
|
+
# @param [String] quota_user
|
|
2336
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2337
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2338
|
+
# Overrides userIp if both are provided.
|
|
2339
|
+
# @param [String] user_ip
|
|
2340
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2341
|
+
# enforce per-user limits.
|
|
2342
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2343
|
+
# Request-specific options
|
|
2344
|
+
#
|
|
2345
|
+
# @yield [result, err] Result & error if block supplied
|
|
2346
|
+
# @yieldparam result [Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse] parsed result object
|
|
2347
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2348
|
+
#
|
|
2349
|
+
# @return [Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse]
|
|
2350
|
+
#
|
|
2351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2354
|
+
def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2355
|
+
command = make_simple_command(:post, 'shippingsettings/batch', options)
|
|
2356
|
+
command.request_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest::Representation
|
|
2357
|
+
command.request_object = shippingsettings_custom_batch_request_object
|
|
2358
|
+
command.response_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse::Representation
|
|
2359
|
+
command.response_class = Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse
|
|
2360
|
+
command.query['dryRun'] = dry_run unless dry_run.nil?
|
|
2361
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2362
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2363
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2364
|
+
execute_or_queue_command(command, &block)
|
|
2365
|
+
end
|
|
2366
|
+
|
|
2367
|
+
# Retrieves the shipping settings of the account.
|
|
2368
|
+
# @param [String] merchant_id
|
|
2369
|
+
# The ID of the managing account.
|
|
2370
|
+
# @param [String] account_id
|
|
2371
|
+
# The ID of the account for which to get/update shipping settings.
|
|
2372
|
+
# @param [String] fields
|
|
2373
|
+
# Selector specifying which fields to include in a partial response.
|
|
2374
|
+
# @param [String] quota_user
|
|
2375
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2376
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2377
|
+
# Overrides userIp if both are provided.
|
|
2378
|
+
# @param [String] user_ip
|
|
2379
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2380
|
+
# enforce per-user limits.
|
|
2381
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2382
|
+
# Request-specific options
|
|
2383
|
+
#
|
|
2384
|
+
# @yield [result, err] Result & error if block supplied
|
|
2385
|
+
# @yieldparam result [Google::Apis::ContentV2::ShippingSettings] parsed result object
|
|
2386
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2387
|
+
#
|
|
2388
|
+
# @return [Google::Apis::ContentV2::ShippingSettings]
|
|
2389
|
+
#
|
|
2390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2393
|
+
def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2394
|
+
command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
|
|
2395
|
+
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2396
|
+
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
|
2397
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
|
2398
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2399
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2400
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2401
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2402
|
+
execute_or_queue_command(command, &block)
|
|
2403
|
+
end
|
|
2404
|
+
|
|
2405
|
+
# Retrieves supported carriers and carrier services for an account.
|
|
2406
|
+
# @param [String] merchant_id
|
|
2407
|
+
# The ID of the account for which to retrieve the supported carriers.
|
|
2408
|
+
# @param [String] fields
|
|
2409
|
+
# Selector specifying which fields to include in a partial response.
|
|
2410
|
+
# @param [String] quota_user
|
|
2411
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2412
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2413
|
+
# Overrides userIp if both are provided.
|
|
2414
|
+
# @param [String] user_ip
|
|
2415
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2416
|
+
# enforce per-user limits.
|
|
2417
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2418
|
+
# Request-specific options
|
|
2419
|
+
#
|
|
2420
|
+
# @yield [result, err] Result & error if block supplied
|
|
2421
|
+
# @yieldparam result [Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse] parsed result object
|
|
2422
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2423
|
+
#
|
|
2424
|
+
# @return [Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse]
|
|
2425
|
+
#
|
|
2426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2429
|
+
def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2430
|
+
command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
|
|
2431
|
+
command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse::Representation
|
|
2432
|
+
command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse
|
|
2433
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
|
2434
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2435
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2436
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2437
|
+
execute_or_queue_command(command, &block)
|
|
2438
|
+
end
|
|
2439
|
+
|
|
2440
|
+
# Lists the shipping settings of the sub-accounts in your Merchant Center
|
|
2441
|
+
# account.
|
|
2442
|
+
# @param [String] merchant_id
|
|
2443
|
+
# The ID of the managing account.
|
|
2444
|
+
# @param [Fixnum] max_results
|
|
2445
|
+
# The maximum number of shipping settings to return in the response, used for
|
|
2446
|
+
# paging.
|
|
2447
|
+
# @param [String] page_token
|
|
2448
|
+
# The token returned by the previous request.
|
|
2449
|
+
# @param [String] fields
|
|
2450
|
+
# Selector specifying which fields to include in a partial response.
|
|
2451
|
+
# @param [String] quota_user
|
|
2452
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2453
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2454
|
+
# Overrides userIp if both are provided.
|
|
2455
|
+
# @param [String] user_ip
|
|
2456
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2457
|
+
# enforce per-user limits.
|
|
2458
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2459
|
+
# Request-specific options
|
|
2460
|
+
#
|
|
2461
|
+
# @yield [result, err] Result & error if block supplied
|
|
2462
|
+
# @yieldparam result [Google::Apis::ContentV2::ShippingsettingsListResponse] parsed result object
|
|
2463
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2464
|
+
#
|
|
2465
|
+
# @return [Google::Apis::ContentV2::ShippingsettingsListResponse]
|
|
2466
|
+
#
|
|
2467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2470
|
+
def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2471
|
+
command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
|
|
2472
|
+
command.response_representation = Google::Apis::ContentV2::ShippingsettingsListResponse::Representation
|
|
2473
|
+
command.response_class = Google::Apis::ContentV2::ShippingsettingsListResponse
|
|
2474
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
|
2475
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2476
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2477
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2478
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2479
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2480
|
+
execute_or_queue_command(command, &block)
|
|
2481
|
+
end
|
|
2482
|
+
|
|
2483
|
+
# Updates the shipping settings of the account. This method supports patch
|
|
2484
|
+
# semantics.
|
|
2485
|
+
# @param [String] merchant_id
|
|
2486
|
+
# The ID of the managing account.
|
|
2487
|
+
# @param [String] account_id
|
|
2488
|
+
# The ID of the account for which to get/update shipping settings.
|
|
2489
|
+
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
|
2490
|
+
# @param [Boolean] dry_run
|
|
2491
|
+
# Flag to run the request in dry-run mode.
|
|
2492
|
+
# @param [String] fields
|
|
2493
|
+
# Selector specifying which fields to include in a partial response.
|
|
2494
|
+
# @param [String] quota_user
|
|
2495
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2496
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2497
|
+
# Overrides userIp if both are provided.
|
|
2498
|
+
# @param [String] user_ip
|
|
2499
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2500
|
+
# enforce per-user limits.
|
|
2501
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2502
|
+
# Request-specific options
|
|
2503
|
+
#
|
|
2504
|
+
# @yield [result, err] Result & error if block supplied
|
|
2505
|
+
# @yieldparam result [Google::Apis::ContentV2::ShippingSettings] parsed result object
|
|
2506
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2507
|
+
#
|
|
2508
|
+
# @return [Google::Apis::ContentV2::ShippingSettings]
|
|
2509
|
+
#
|
|
2510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2513
|
+
def patch_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2514
|
+
command = make_simple_command(:patch, '{merchantId}/shippingsettings/{accountId}', options)
|
|
2515
|
+
command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2516
|
+
command.request_object = shipping_settings_object
|
|
2517
|
+
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2518
|
+
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
|
2519
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
|
2520
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2521
|
+
command.query['dryRun'] = dry_run unless dry_run.nil?
|
|
2522
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2523
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2524
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2525
|
+
execute_or_queue_command(command, &block)
|
|
2526
|
+
end
|
|
2527
|
+
|
|
2528
|
+
# Updates the shipping settings of the account.
|
|
2529
|
+
# @param [String] merchant_id
|
|
2530
|
+
# The ID of the managing account.
|
|
2531
|
+
# @param [String] account_id
|
|
2532
|
+
# The ID of the account for which to get/update shipping settings.
|
|
2533
|
+
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
|
2534
|
+
# @param [Boolean] dry_run
|
|
2535
|
+
# Flag to run the request in dry-run mode.
|
|
2536
|
+
# @param [String] fields
|
|
2537
|
+
# Selector specifying which fields to include in a partial response.
|
|
2538
|
+
# @param [String] quota_user
|
|
2539
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2540
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2541
|
+
# Overrides userIp if both are provided.
|
|
2542
|
+
# @param [String] user_ip
|
|
2543
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2544
|
+
# enforce per-user limits.
|
|
2545
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2546
|
+
# Request-specific options
|
|
2547
|
+
#
|
|
2548
|
+
# @yield [result, err] Result & error if block supplied
|
|
2549
|
+
# @yieldparam result [Google::Apis::ContentV2::ShippingSettings] parsed result object
|
|
2550
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2551
|
+
#
|
|
2552
|
+
# @return [Google::Apis::ContentV2::ShippingSettings]
|
|
2553
|
+
#
|
|
2554
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2555
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2556
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2557
|
+
def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2558
|
+
command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
|
|
2559
|
+
command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2560
|
+
command.request_object = shipping_settings_object
|
|
2561
|
+
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
|
2562
|
+
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
|
2563
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
|
2564
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
|
2565
|
+
command.query['dryRun'] = dry_run unless dry_run.nil?
|
|
2566
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2567
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2568
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2569
|
+
execute_or_queue_command(command, &block)
|
|
2570
|
+
end
|
|
2327
2571
|
|
|
2328
2572
|
protected
|
|
2329
2573
|
|