google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# Content = Google::Apis::ContentV2 # Alias the module
|
32
32
|
# service = Content::ShoppingContentService.new
|
33
33
|
#
|
34
|
-
# @see https://developers.google.com/shopping-content
|
34
|
+
# @see https://developers.google.com/shopping-content
|
35
35
|
class ShoppingContentService < Google::Apis::Core::BaseService
|
36
36
|
# @return [String]
|
37
37
|
# API key. Your API key identifies your project and provides you with API access,
|
@@ -76,8 +76,7 @@ module Google
|
|
76
76
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
77
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
78
|
def get_account_authinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
79
|
-
|
80
|
-
command = make_simple_command(:get, path, options)
|
79
|
+
command = make_simple_command(:get, 'accounts/authinfo', options)
|
81
80
|
command.response_representation = Google::Apis::ContentV2::AccountsAuthInfoResponse::Representation
|
82
81
|
command.response_class = Google::Apis::ContentV2::AccountsAuthInfoResponse
|
83
82
|
command.query['fields'] = fields unless fields.nil?
|
@@ -113,8 +112,7 @@ module Google
|
|
113
112
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
113
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
114
|
def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
116
|
-
|
117
|
-
command = make_simple_command(:post, path, options)
|
115
|
+
command = make_simple_command(:post, 'accounts/batch', options)
|
118
116
|
command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation
|
119
117
|
command.request_object = batch_accounts_request_object
|
120
118
|
command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation
|
@@ -155,8 +153,7 @@ module Google
|
|
155
153
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
156
154
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
157
155
|
def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
158
|
-
|
159
|
-
command = make_simple_command(:delete, path, options)
|
156
|
+
command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options)
|
160
157
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
161
158
|
command.params['accountId'] = account_id unless account_id.nil?
|
162
159
|
command.query['dryRun'] = dry_run unless dry_run.nil?
|
@@ -193,8 +190,7 @@ module Google
|
|
193
190
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
194
191
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
195
192
|
def get_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
196
|
-
|
197
|
-
command = make_simple_command(:get, path, options)
|
193
|
+
command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options)
|
198
194
|
command.response_representation = Google::Apis::ContentV2::Account::Representation
|
199
195
|
command.response_class = Google::Apis::ContentV2::Account
|
200
196
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -233,8 +229,7 @@ module Google
|
|
233
229
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
234
230
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
235
231
|
def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
236
|
-
|
237
|
-
command = make_simple_command(:post, path, options)
|
232
|
+
command = make_simple_command(:post, '{merchantId}/accounts', options)
|
238
233
|
command.request_representation = Google::Apis::ContentV2::Account::Representation
|
239
234
|
command.request_object = account_object
|
240
235
|
command.response_representation = Google::Apis::ContentV2::Account::Representation
|
@@ -276,8 +271,7 @@ module Google
|
|
276
271
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
277
272
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
278
273
|
def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
279
|
-
|
280
|
-
command = make_simple_command(:get, path, options)
|
274
|
+
command = make_simple_command(:get, '{merchantId}/accounts', options)
|
281
275
|
command.response_representation = Google::Apis::ContentV2::ListAccountsResponse::Representation
|
282
276
|
command.response_class = Google::Apis::ContentV2::ListAccountsResponse
|
283
277
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -319,8 +313,7 @@ module Google
|
|
319
313
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
320
314
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
321
315
|
def patch_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
322
|
-
|
323
|
-
command = make_simple_command(:patch, path, options)
|
316
|
+
command = make_simple_command(:patch, '{merchantId}/accounts/{accountId}', options)
|
324
317
|
command.request_representation = Google::Apis::ContentV2::Account::Representation
|
325
318
|
command.request_object = account_object
|
326
319
|
command.response_representation = Google::Apis::ContentV2::Account::Representation
|
@@ -364,8 +357,7 @@ module Google
|
|
364
357
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
365
358
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
366
359
|
def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
367
|
-
|
368
|
-
command = make_simple_command(:put, path, options)
|
360
|
+
command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options)
|
369
361
|
command.request_representation = Google::Apis::ContentV2::Account::Representation
|
370
362
|
command.request_object = account_object
|
371
363
|
command.response_representation = Google::Apis::ContentV2::Account::Representation
|
@@ -406,8 +398,7 @@ module Google
|
|
406
398
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
399
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
400
|
def batch_account_shipping(batch_account_shipping_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
409
|
-
|
410
|
-
command = make_simple_command(:post, path, options)
|
401
|
+
command = make_simple_command(:post, 'accountshipping/batch', options)
|
411
402
|
command.request_representation = Google::Apis::ContentV2::BatchAccountShippingRequest::Representation
|
412
403
|
command.request_object = batch_account_shipping_request_object
|
413
404
|
command.response_representation = Google::Apis::ContentV2::BatchAccountShippingResponse::Representation
|
@@ -446,8 +437,7 @@ module Google
|
|
446
437
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
447
438
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
448
439
|
def get_account_shipping(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
449
|
-
|
450
|
-
command = make_simple_command(:get, path, options)
|
440
|
+
command = make_simple_command(:get, '{merchantId}/accountshipping/{accountId}', options)
|
451
441
|
command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation
|
452
442
|
command.response_class = Google::Apis::ContentV2::AccountShipping
|
453
443
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -489,8 +479,7 @@ module Google
|
|
489
479
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
490
480
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
491
481
|
def list_account_shippings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
492
|
-
|
493
|
-
command = make_simple_command(:get, path, options)
|
482
|
+
command = make_simple_command(:get, '{merchantId}/accountshipping', options)
|
494
483
|
command.response_representation = Google::Apis::ContentV2::ListAccountShippingResponse::Representation
|
495
484
|
command.response_class = Google::Apis::ContentV2::ListAccountShippingResponse
|
496
485
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -533,8 +522,7 @@ module Google
|
|
533
522
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
534
523
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
535
524
|
def patch_account_shipping(merchant_id, account_id, account_shipping_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
536
|
-
|
537
|
-
command = make_simple_command(:patch, path, options)
|
525
|
+
command = make_simple_command(:patch, '{merchantId}/accountshipping/{accountId}', options)
|
538
526
|
command.request_representation = Google::Apis::ContentV2::AccountShipping::Representation
|
539
527
|
command.request_object = account_shipping_object
|
540
528
|
command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation
|
@@ -578,8 +566,7 @@ module Google
|
|
578
566
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
579
567
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
580
568
|
def update_account_shipping(merchant_id, account_id, account_shipping_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
581
|
-
|
582
|
-
command = make_simple_command(:put, path, options)
|
569
|
+
command = make_simple_command(:put, '{merchantId}/accountshipping/{accountId}', options)
|
583
570
|
command.request_representation = Google::Apis::ContentV2::AccountShipping::Representation
|
584
571
|
command.request_object = account_shipping_object
|
585
572
|
command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation
|
@@ -617,8 +604,7 @@ module Google
|
|
617
604
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
618
605
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
619
606
|
def batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
620
|
-
|
621
|
-
command = make_simple_command(:post, path, options)
|
607
|
+
command = make_simple_command(:post, 'accountstatuses/batch', options)
|
622
608
|
command.request_representation = Google::Apis::ContentV2::BatchAccountStatusesRequest::Representation
|
623
609
|
command.request_object = batch_account_statuses_request_object
|
624
610
|
command.response_representation = Google::Apis::ContentV2::BatchAccountStatusesResponse::Representation
|
@@ -656,8 +642,7 @@ module Google
|
|
656
642
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
657
643
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
658
644
|
def get_account_status(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
659
|
-
|
660
|
-
command = make_simple_command(:get, path, options)
|
645
|
+
command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
|
661
646
|
command.response_representation = Google::Apis::ContentV2::AccountStatus::Representation
|
662
647
|
command.response_class = Google::Apis::ContentV2::AccountStatus
|
663
648
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -698,8 +683,7 @@ module Google
|
|
698
683
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
699
684
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
700
685
|
def list_account_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
701
|
-
|
702
|
-
command = make_simple_command(:get, path, options)
|
686
|
+
command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
|
703
687
|
command.response_representation = Google::Apis::ContentV2::ListAccountStatusesResponse::Representation
|
704
688
|
command.response_class = Google::Apis::ContentV2::ListAccountStatusesResponse
|
705
689
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -737,8 +721,7 @@ module Google
|
|
737
721
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
738
722
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
739
723
|
def batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
740
|
-
|
741
|
-
command = make_simple_command(:post, path, options)
|
724
|
+
command = make_simple_command(:post, 'accounttax/batch', options)
|
742
725
|
command.request_representation = Google::Apis::ContentV2::BatchAccountTaxRequest::Representation
|
743
726
|
command.request_object = batch_account_tax_request_object
|
744
727
|
command.response_representation = Google::Apis::ContentV2::BatchAccountTaxResponse::Representation
|
@@ -777,8 +760,7 @@ module Google
|
|
777
760
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
778
761
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
779
762
|
def get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
780
|
-
|
781
|
-
command = make_simple_command(:get, path, options)
|
763
|
+
command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
|
782
764
|
command.response_representation = Google::Apis::ContentV2::AccountTax::Representation
|
783
765
|
command.response_class = Google::Apis::ContentV2::AccountTax
|
784
766
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -818,8 +800,7 @@ module Google
|
|
818
800
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
819
801
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
820
802
|
def list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
821
|
-
|
822
|
-
command = make_simple_command(:get, path, options)
|
803
|
+
command = make_simple_command(:get, '{merchantId}/accounttax', options)
|
823
804
|
command.response_representation = Google::Apis::ContentV2::ListAccountTaxResponse::Representation
|
824
805
|
command.response_class = Google::Apis::ContentV2::ListAccountTaxResponse
|
825
806
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -861,8 +842,7 @@ module Google
|
|
861
842
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
862
843
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
863
844
|
def patch_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
864
|
-
|
865
|
-
command = make_simple_command(:patch, path, options)
|
845
|
+
command = make_simple_command(:patch, '{merchantId}/accounttax/{accountId}', options)
|
866
846
|
command.request_representation = Google::Apis::ContentV2::AccountTax::Representation
|
867
847
|
command.request_object = account_tax_object
|
868
848
|
command.response_representation = Google::Apis::ContentV2::AccountTax::Representation
|
@@ -906,8 +886,7 @@ module Google
|
|
906
886
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
907
887
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
908
888
|
def update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
909
|
-
|
910
|
-
command = make_simple_command(:put, path, options)
|
889
|
+
command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
|
911
890
|
command.request_representation = Google::Apis::ContentV2::AccountTax::Representation
|
912
891
|
command.request_object = account_tax_object
|
913
892
|
command.response_representation = Google::Apis::ContentV2::AccountTax::Representation
|
@@ -947,8 +926,7 @@ module Google
|
|
947
926
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
948
927
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
949
928
|
def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
950
|
-
|
951
|
-
command = make_simple_command(:post, path, options)
|
929
|
+
command = make_simple_command(:post, 'datafeeds/batch', options)
|
952
930
|
command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation
|
953
931
|
command.request_object = batch_datafeeds_request_object
|
954
932
|
command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation
|
@@ -987,8 +965,7 @@ module Google
|
|
987
965
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
988
966
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
989
967
|
def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
990
|
-
|
991
|
-
command = make_simple_command(:delete, path, options)
|
968
|
+
command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
|
992
969
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
993
970
|
command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
|
994
971
|
command.query['dryRun'] = dry_run unless dry_run.nil?
|
@@ -1023,8 +1000,7 @@ module Google
|
|
1023
1000
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1024
1001
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1025
1002
|
def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1026
|
-
|
1027
|
-
command = make_simple_command(:get, path, options)
|
1003
|
+
command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
|
1028
1004
|
command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
|
1029
1005
|
command.response_class = Google::Apis::ContentV2::Datafeed
|
1030
1006
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1062,8 +1038,7 @@ module Google
|
|
1062
1038
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1063
1039
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1064
1040
|
def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1065
|
-
|
1066
|
-
command = make_simple_command(:post, path, options)
|
1041
|
+
command = make_simple_command(:post, '{merchantId}/datafeeds', options)
|
1067
1042
|
command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
|
1068
1043
|
command.request_object = datafeed_object
|
1069
1044
|
command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
|
@@ -1105,8 +1080,7 @@ module Google
|
|
1105
1080
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1106
1081
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1107
1082
|
def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1108
|
-
|
1109
|
-
command = make_simple_command(:get, path, options)
|
1083
|
+
command = make_simple_command(:get, '{merchantId}/datafeeds', options)
|
1110
1084
|
command.response_representation = Google::Apis::ContentV2::ListDatafeedsResponse::Representation
|
1111
1085
|
command.response_class = Google::Apis::ContentV2::ListDatafeedsResponse
|
1112
1086
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1147,8 +1121,7 @@ module Google
|
|
1147
1121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1148
1122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1149
1123
|
def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1150
|
-
|
1151
|
-
command = make_simple_command(:patch, path, options)
|
1124
|
+
command = make_simple_command(:patch, '{merchantId}/datafeeds/{datafeedId}', options)
|
1152
1125
|
command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
|
1153
1126
|
command.request_object = datafeed_object
|
1154
1127
|
command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
|
@@ -1190,8 +1163,7 @@ module Google
|
|
1190
1163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1191
1164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1192
1165
|
def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1193
|
-
|
1194
|
-
command = make_simple_command(:put, path, options)
|
1166
|
+
command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
|
1195
1167
|
command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
|
1196
1168
|
command.request_object = datafeed_object
|
1197
1169
|
command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
|
@@ -1229,8 +1201,7 @@ module Google
|
|
1229
1201
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1230
1202
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1231
1203
|
def batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1232
|
-
|
1233
|
-
command = make_simple_command(:post, path, options)
|
1204
|
+
command = make_simple_command(:post, 'datafeedstatuses/batch', options)
|
1234
1205
|
command.request_representation = Google::Apis::ContentV2::BatchDatafeedStatusesRequest::Representation
|
1235
1206
|
command.request_object = batch_datafeed_statuses_request_object
|
1236
1207
|
command.response_representation = Google::Apis::ContentV2::BatchDatafeedStatusesResponse::Representation
|
@@ -1266,8 +1237,7 @@ module Google
|
|
1266
1237
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1267
1238
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1268
1239
|
def get_datafeed_status(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1269
|
-
|
1270
|
-
command = make_simple_command(:get, path, options)
|
1240
|
+
command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
|
1271
1241
|
command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation
|
1272
1242
|
command.response_class = Google::Apis::ContentV2::DatafeedStatus
|
1273
1243
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1307,8 +1277,7 @@ module Google
|
|
1307
1277
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1308
1278
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1309
1279
|
def list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1310
|
-
|
1311
|
-
command = make_simple_command(:get, path, options)
|
1280
|
+
command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
|
1312
1281
|
command.response_representation = Google::Apis::ContentV2::ListDatafeedStatusesResponse::Representation
|
1313
1282
|
command.response_class = Google::Apis::ContentV2::ListDatafeedStatusesResponse
|
1314
1283
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1347,8 +1316,7 @@ module Google
|
|
1347
1316
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1348
1317
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1349
1318
|
def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1350
|
-
|
1351
|
-
command = make_simple_command(:post, path, options)
|
1319
|
+
command = make_simple_command(:post, 'inventory/batch', options)
|
1352
1320
|
command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation
|
1353
1321
|
command.request_object = batch_inventory_request_object
|
1354
1322
|
command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation
|
@@ -1394,8 +1362,7 @@ module Google
|
|
1394
1362
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1395
1363
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1396
1364
|
def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1397
|
-
|
1398
|
-
command = make_simple_command(:post, path, options)
|
1365
|
+
command = make_simple_command(:post, '{merchantId}/inventory/{storeCode}/products/{productId}', options)
|
1399
1366
|
command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation
|
1400
1367
|
command.request_object = set_inventory_request_object
|
1401
1368
|
command.response_representation = Google::Apis::ContentV2::SetInventoryResponse::Representation
|
@@ -1410,6 +1377,634 @@ module Google
|
|
1410
1377
|
execute_or_queue_command(command, &block)
|
1411
1378
|
end
|
1412
1379
|
|
1380
|
+
# Marks an order as acknowledged.
|
1381
|
+
# @param [String] merchant_id
|
1382
|
+
# The ID of the managing account.
|
1383
|
+
# @param [String] order_id
|
1384
|
+
# The ID of the order.
|
1385
|
+
# @param [Google::Apis::ContentV2::OrdersAcknowledgeRequest] orders_acknowledge_request_object
|
1386
|
+
# @param [String] fields
|
1387
|
+
# Selector specifying which fields to include in a partial response.
|
1388
|
+
# @param [String] quota_user
|
1389
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1390
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1391
|
+
# Overrides userIp if both are provided.
|
1392
|
+
# @param [String] user_ip
|
1393
|
+
# IP address of the site where the request originates. Use this if you want to
|
1394
|
+
# enforce per-user limits.
|
1395
|
+
# @param [Google::Apis::RequestOptions] options
|
1396
|
+
# Request-specific options
|
1397
|
+
#
|
1398
|
+
# @yield [result, err] Result & error if block supplied
|
1399
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersAcknowledgeResponse] parsed result object
|
1400
|
+
# @yieldparam err [StandardError] error object if request failed
|
1401
|
+
#
|
1402
|
+
# @return [Google::Apis::ContentV2::OrdersAcknowledgeResponse]
|
1403
|
+
#
|
1404
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1405
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1406
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1407
|
+
def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1408
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
|
1409
|
+
command.request_representation = Google::Apis::ContentV2::OrdersAcknowledgeRequest::Representation
|
1410
|
+
command.request_object = orders_acknowledge_request_object
|
1411
|
+
command.response_representation = Google::Apis::ContentV2::OrdersAcknowledgeResponse::Representation
|
1412
|
+
command.response_class = Google::Apis::ContentV2::OrdersAcknowledgeResponse
|
1413
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1414
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1415
|
+
command.query['fields'] = fields unless fields.nil?
|
1416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1417
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1418
|
+
execute_or_queue_command(command, &block)
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
# Sandbox only. Moves a test order from state "inProgress" to state "
|
1422
|
+
# pendingShipment".
|
1423
|
+
# @param [String] merchant_id
|
1424
|
+
# The ID of the managing account.
|
1425
|
+
# @param [String] order_id
|
1426
|
+
# The ID of the test order to modify.
|
1427
|
+
# @param [String] fields
|
1428
|
+
# Selector specifying which fields to include in a partial response.
|
1429
|
+
# @param [String] quota_user
|
1430
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1431
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1432
|
+
# Overrides userIp if both are provided.
|
1433
|
+
# @param [String] user_ip
|
1434
|
+
# IP address of the site where the request originates. Use this if you want to
|
1435
|
+
# enforce per-user limits.
|
1436
|
+
# @param [Google::Apis::RequestOptions] options
|
1437
|
+
# Request-specific options
|
1438
|
+
#
|
1439
|
+
# @yield [result, err] Result & error if block supplied
|
1440
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse] parsed result object
|
1441
|
+
# @yieldparam err [StandardError] error object if request failed
|
1442
|
+
#
|
1443
|
+
# @return [Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse]
|
1444
|
+
#
|
1445
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1446
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1447
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1448
|
+
def advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1449
|
+
command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
|
1450
|
+
command.response_representation = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse::Representation
|
1451
|
+
command.response_class = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse
|
1452
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1453
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1454
|
+
command.query['fields'] = fields unless fields.nil?
|
1455
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1456
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1457
|
+
execute_or_queue_command(command, &block)
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
# Cancels all line items in an order.
|
1461
|
+
# @param [String] merchant_id
|
1462
|
+
# The ID of the managing account.
|
1463
|
+
# @param [String] order_id
|
1464
|
+
# The ID of the order to cancel.
|
1465
|
+
# @param [Google::Apis::ContentV2::OrdersCancelRequest] orders_cancel_request_object
|
1466
|
+
# @param [String] fields
|
1467
|
+
# Selector specifying which fields to include in a partial response.
|
1468
|
+
# @param [String] quota_user
|
1469
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1470
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1471
|
+
# Overrides userIp if both are provided.
|
1472
|
+
# @param [String] user_ip
|
1473
|
+
# IP address of the site where the request originates. Use this if you want to
|
1474
|
+
# enforce per-user limits.
|
1475
|
+
# @param [Google::Apis::RequestOptions] options
|
1476
|
+
# Request-specific options
|
1477
|
+
#
|
1478
|
+
# @yield [result, err] Result & error if block supplied
|
1479
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersCancelResponse] parsed result object
|
1480
|
+
# @yieldparam err [StandardError] error object if request failed
|
1481
|
+
#
|
1482
|
+
# @return [Google::Apis::ContentV2::OrdersCancelResponse]
|
1483
|
+
#
|
1484
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1485
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1486
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1487
|
+
def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1488
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
|
1489
|
+
command.request_representation = Google::Apis::ContentV2::OrdersCancelRequest::Representation
|
1490
|
+
command.request_object = orders_cancel_request_object
|
1491
|
+
command.response_representation = Google::Apis::ContentV2::OrdersCancelResponse::Representation
|
1492
|
+
command.response_class = Google::Apis::ContentV2::OrdersCancelResponse
|
1493
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1494
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1495
|
+
command.query['fields'] = fields unless fields.nil?
|
1496
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1497
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1498
|
+
execute_or_queue_command(command, &block)
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
# Cancels a line item.
|
1502
|
+
# @param [String] merchant_id
|
1503
|
+
# The ID of the managing account.
|
1504
|
+
# @param [String] order_id
|
1505
|
+
# The ID of the order.
|
1506
|
+
# @param [Google::Apis::ContentV2::OrdersCancelLineItemRequest] orders_cancel_line_item_request_object
|
1507
|
+
# @param [String] fields
|
1508
|
+
# Selector specifying which fields to include in a partial response.
|
1509
|
+
# @param [String] quota_user
|
1510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1512
|
+
# Overrides userIp if both are provided.
|
1513
|
+
# @param [String] user_ip
|
1514
|
+
# IP address of the site where the request originates. Use this if you want to
|
1515
|
+
# enforce per-user limits.
|
1516
|
+
# @param [Google::Apis::RequestOptions] options
|
1517
|
+
# Request-specific options
|
1518
|
+
#
|
1519
|
+
# @yield [result, err] Result & error if block supplied
|
1520
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersCancelLineItemResponse] parsed result object
|
1521
|
+
# @yieldparam err [StandardError] error object if request failed
|
1522
|
+
#
|
1523
|
+
# @return [Google::Apis::ContentV2::OrdersCancelLineItemResponse]
|
1524
|
+
#
|
1525
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1526
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1527
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1528
|
+
def cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1529
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
|
1530
|
+
command.request_representation = Google::Apis::ContentV2::OrdersCancelLineItemRequest::Representation
|
1531
|
+
command.request_object = orders_cancel_line_item_request_object
|
1532
|
+
command.response_representation = Google::Apis::ContentV2::OrdersCancelLineItemResponse::Representation
|
1533
|
+
command.response_class = Google::Apis::ContentV2::OrdersCancelLineItemResponse
|
1534
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1535
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1536
|
+
command.query['fields'] = fields unless fields.nil?
|
1537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1538
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1539
|
+
execute_or_queue_command(command, &block)
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
# Sandbox only. Creates a test order.
|
1543
|
+
# @param [String] merchant_id
|
1544
|
+
# The ID of the managing account.
|
1545
|
+
# @param [Google::Apis::ContentV2::OrdersCreateTestOrderRequest] orders_create_test_order_request_object
|
1546
|
+
# @param [String] fields
|
1547
|
+
# Selector specifying which fields to include in a partial response.
|
1548
|
+
# @param [String] quota_user
|
1549
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1550
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1551
|
+
# Overrides userIp if both are provided.
|
1552
|
+
# @param [String] user_ip
|
1553
|
+
# IP address of the site where the request originates. Use this if you want to
|
1554
|
+
# enforce per-user limits.
|
1555
|
+
# @param [Google::Apis::RequestOptions] options
|
1556
|
+
# Request-specific options
|
1557
|
+
#
|
1558
|
+
# @yield [result, err] Result & error if block supplied
|
1559
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersCreateTestOrderResponse] parsed result object
|
1560
|
+
# @yieldparam err [StandardError] error object if request failed
|
1561
|
+
#
|
1562
|
+
# @return [Google::Apis::ContentV2::OrdersCreateTestOrderResponse]
|
1563
|
+
#
|
1564
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1565
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1566
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1567
|
+
def create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1568
|
+
command = make_simple_command(:post, '{merchantId}/testorders', options)
|
1569
|
+
command.request_representation = Google::Apis::ContentV2::OrdersCreateTestOrderRequest::Representation
|
1570
|
+
command.request_object = orders_create_test_order_request_object
|
1571
|
+
command.response_representation = Google::Apis::ContentV2::OrdersCreateTestOrderResponse::Representation
|
1572
|
+
command.response_class = Google::Apis::ContentV2::OrdersCreateTestOrderResponse
|
1573
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1574
|
+
command.query['fields'] = fields unless fields.nil?
|
1575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1576
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1577
|
+
execute_or_queue_command(command, &block)
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
# Retrieves or modifies multiple orders in a single request.
|
1581
|
+
# @param [Google::Apis::ContentV2::OrdersCustomBatchRequest] orders_custom_batch_request_object
|
1582
|
+
# @param [String] fields
|
1583
|
+
# Selector specifying which fields to include in a partial response.
|
1584
|
+
# @param [String] quota_user
|
1585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1587
|
+
# Overrides userIp if both are provided.
|
1588
|
+
# @param [String] user_ip
|
1589
|
+
# IP address of the site where the request originates. Use this if you want to
|
1590
|
+
# enforce per-user limits.
|
1591
|
+
# @param [Google::Apis::RequestOptions] options
|
1592
|
+
# Request-specific options
|
1593
|
+
#
|
1594
|
+
# @yield [result, err] Result & error if block supplied
|
1595
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersCustomBatchResponse] parsed result object
|
1596
|
+
# @yieldparam err [StandardError] error object if request failed
|
1597
|
+
#
|
1598
|
+
# @return [Google::Apis::ContentV2::OrdersCustomBatchResponse]
|
1599
|
+
#
|
1600
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1601
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1602
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1603
|
+
def custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1604
|
+
command = make_simple_command(:post, 'orders/batch', options)
|
1605
|
+
command.request_representation = Google::Apis::ContentV2::OrdersCustomBatchRequest::Representation
|
1606
|
+
command.request_object = orders_custom_batch_request_object
|
1607
|
+
command.response_representation = Google::Apis::ContentV2::OrdersCustomBatchResponse::Representation
|
1608
|
+
command.response_class = Google::Apis::ContentV2::OrdersCustomBatchResponse
|
1609
|
+
command.query['fields'] = fields unless fields.nil?
|
1610
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1611
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1612
|
+
execute_or_queue_command(command, &block)
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
# Retrieves an order from your Merchant Center account.
|
1616
|
+
# @param [String] merchant_id
|
1617
|
+
# The ID of the managing account.
|
1618
|
+
# @param [String] order_id
|
1619
|
+
# The ID of the order.
|
1620
|
+
# @param [String] fields
|
1621
|
+
# Selector specifying which fields to include in a partial response.
|
1622
|
+
# @param [String] quota_user
|
1623
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1624
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1625
|
+
# Overrides userIp if both are provided.
|
1626
|
+
# @param [String] user_ip
|
1627
|
+
# IP address of the site where the request originates. Use this if you want to
|
1628
|
+
# enforce per-user limits.
|
1629
|
+
# @param [Google::Apis::RequestOptions] options
|
1630
|
+
# Request-specific options
|
1631
|
+
#
|
1632
|
+
# @yield [result, err] Result & error if block supplied
|
1633
|
+
# @yieldparam result [Google::Apis::ContentV2::Order] parsed result object
|
1634
|
+
# @yieldparam err [StandardError] error object if request failed
|
1635
|
+
#
|
1636
|
+
# @return [Google::Apis::ContentV2::Order]
|
1637
|
+
#
|
1638
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1639
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1640
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1641
|
+
def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1642
|
+
command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
|
1643
|
+
command.response_representation = Google::Apis::ContentV2::Order::Representation
|
1644
|
+
command.response_class = Google::Apis::ContentV2::Order
|
1645
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1646
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1647
|
+
command.query['fields'] = fields unless fields.nil?
|
1648
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1649
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1650
|
+
execute_or_queue_command(command, &block)
|
1651
|
+
end
|
1652
|
+
|
1653
|
+
# Retrieves an order using merchant order id.
|
1654
|
+
# @param [String] merchant_id
|
1655
|
+
# The ID of the managing account.
|
1656
|
+
# @param [String] merchant_order_id
|
1657
|
+
# The merchant order id to be looked for.
|
1658
|
+
# @param [String] fields
|
1659
|
+
# Selector specifying which fields to include in a partial response.
|
1660
|
+
# @param [String] quota_user
|
1661
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1662
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1663
|
+
# Overrides userIp if both are provided.
|
1664
|
+
# @param [String] user_ip
|
1665
|
+
# IP address of the site where the request originates. Use this if you want to
|
1666
|
+
# enforce per-user limits.
|
1667
|
+
# @param [Google::Apis::RequestOptions] options
|
1668
|
+
# Request-specific options
|
1669
|
+
#
|
1670
|
+
# @yield [result, err] Result & error if block supplied
|
1671
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse] parsed result object
|
1672
|
+
# @yieldparam err [StandardError] error object if request failed
|
1673
|
+
#
|
1674
|
+
# @return [Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse]
|
1675
|
+
#
|
1676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1679
|
+
def get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1680
|
+
command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
|
1681
|
+
command.response_representation = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse::Representation
|
1682
|
+
command.response_class = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse
|
1683
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1684
|
+
command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil?
|
1685
|
+
command.query['fields'] = fields unless fields.nil?
|
1686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1687
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1688
|
+
execute_or_queue_command(command, &block)
|
1689
|
+
end
|
1690
|
+
|
1691
|
+
# Sandbox only. Retrieves an order template that can be used to quickly create a
|
1692
|
+
# new order in sandbox.
|
1693
|
+
# @param [String] merchant_id
|
1694
|
+
# The ID of the managing account.
|
1695
|
+
# @param [String] template_name
|
1696
|
+
# The name of the template to retrieve.
|
1697
|
+
# @param [String] fields
|
1698
|
+
# Selector specifying which fields to include in a partial response.
|
1699
|
+
# @param [String] quota_user
|
1700
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1701
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1702
|
+
# Overrides userIp if both are provided.
|
1703
|
+
# @param [String] user_ip
|
1704
|
+
# IP address of the site where the request originates. Use this if you want to
|
1705
|
+
# enforce per-user limits.
|
1706
|
+
# @param [Google::Apis::RequestOptions] options
|
1707
|
+
# Request-specific options
|
1708
|
+
#
|
1709
|
+
# @yield [result, err] Result & error if block supplied
|
1710
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse] parsed result object
|
1711
|
+
# @yieldparam err [StandardError] error object if request failed
|
1712
|
+
#
|
1713
|
+
# @return [Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse]
|
1714
|
+
#
|
1715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1718
|
+
def get_test_order_template(merchant_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1719
|
+
command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
|
1720
|
+
command.response_representation = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse::Representation
|
1721
|
+
command.response_class = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse
|
1722
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1723
|
+
command.params['templateName'] = template_name unless template_name.nil?
|
1724
|
+
command.query['fields'] = fields unless fields.nil?
|
1725
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1726
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1727
|
+
execute_or_queue_command(command, &block)
|
1728
|
+
end
|
1729
|
+
|
1730
|
+
# Lists the orders in your Merchant Center account.
|
1731
|
+
# @param [String] merchant_id
|
1732
|
+
# The ID of the managing account.
|
1733
|
+
# @param [Boolean] acknowledged
|
1734
|
+
# Obtains orders that match the acknowledgement status. When set to true,
|
1735
|
+
# obtains orders that have been acknowledged. When false, obtains orders that
|
1736
|
+
# have not been acknowledged.
|
1737
|
+
# We recommend using this filter set to false, in conjunction with the
|
1738
|
+
# acknowledge call, such that only un-acknowledged orders are returned.
|
1739
|
+
# @param [Fixnum] max_results
|
1740
|
+
# The maximum number of orders to return in the response, used for paging. The
|
1741
|
+
# default value is 25 orders per page, and the maximum allowed value is 250
|
1742
|
+
# orders per page.
|
1743
|
+
# Known issue: All List calls will return all Orders without limit regardless of
|
1744
|
+
# the value of this field.
|
1745
|
+
# @param [String] order_by
|
1746
|
+
# The ordering of the returned list. The only supported value are placedDate
|
1747
|
+
# desc and placedDate asc for now, which returns orders sorted by placement date.
|
1748
|
+
# "placedDate desc" stands for listing orders by placement date, from oldest to
|
1749
|
+
# most recent. "placedDate asc" stands for listing orders by placement date,
|
1750
|
+
# from most recent to oldest. In future releases we'll support other sorting
|
1751
|
+
# criteria.
|
1752
|
+
# @param [String] page_token
|
1753
|
+
# The token returned by the previous request.
|
1754
|
+
# @param [String] placed_date_end
|
1755
|
+
# Obtains orders placed before this date (exclusively), in ISO 8601 format.
|
1756
|
+
# @param [String] placed_date_start
|
1757
|
+
# Obtains orders placed after this date (inclusively), in ISO 8601 format.
|
1758
|
+
# @param [Array<String>, String] statuses
|
1759
|
+
# Obtains orders that match any of the specified statuses. Multiple values can
|
1760
|
+
# be specified with comma separation. Additionally, please note that active is a
|
1761
|
+
# shortcut for pendingShipment and partiallyShipped, and completed is a shortcut
|
1762
|
+
# for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and
|
1763
|
+
# canceled.
|
1764
|
+
# @param [String] fields
|
1765
|
+
# Selector specifying which fields to include in a partial response.
|
1766
|
+
# @param [String] quota_user
|
1767
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1768
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1769
|
+
# Overrides userIp if both are provided.
|
1770
|
+
# @param [String] user_ip
|
1771
|
+
# IP address of the site where the request originates. Use this if you want to
|
1772
|
+
# enforce per-user limits.
|
1773
|
+
# @param [Google::Apis::RequestOptions] options
|
1774
|
+
# Request-specific options
|
1775
|
+
#
|
1776
|
+
# @yield [result, err] Result & error if block supplied
|
1777
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersListResponse] parsed result object
|
1778
|
+
# @yieldparam err [StandardError] error object if request failed
|
1779
|
+
#
|
1780
|
+
# @return [Google::Apis::ContentV2::OrdersListResponse]
|
1781
|
+
#
|
1782
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1783
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1784
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1785
|
+
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)
|
1786
|
+
command = make_simple_command(:get, '{merchantId}/orders', options)
|
1787
|
+
command.response_representation = Google::Apis::ContentV2::OrdersListResponse::Representation
|
1788
|
+
command.response_class = Google::Apis::ContentV2::OrdersListResponse
|
1789
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1790
|
+
command.query['acknowledged'] = acknowledged unless acknowledged.nil?
|
1791
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1792
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1793
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1794
|
+
command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil?
|
1795
|
+
command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil?
|
1796
|
+
command.query['statuses'] = statuses unless statuses.nil?
|
1797
|
+
command.query['fields'] = fields unless fields.nil?
|
1798
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1799
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1800
|
+
execute_or_queue_command(command, &block)
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
# Refund a portion of the order, up to the full amount paid.
|
1804
|
+
# @param [String] merchant_id
|
1805
|
+
# The ID of the managing account.
|
1806
|
+
# @param [String] order_id
|
1807
|
+
# The ID of the order to refund.
|
1808
|
+
# @param [Google::Apis::ContentV2::OrdersRefundRequest] orders_refund_request_object
|
1809
|
+
# @param [String] fields
|
1810
|
+
# Selector specifying which fields to include in a partial response.
|
1811
|
+
# @param [String] quota_user
|
1812
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1813
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1814
|
+
# Overrides userIp if both are provided.
|
1815
|
+
# @param [String] user_ip
|
1816
|
+
# IP address of the site where the request originates. Use this if you want to
|
1817
|
+
# enforce per-user limits.
|
1818
|
+
# @param [Google::Apis::RequestOptions] options
|
1819
|
+
# Request-specific options
|
1820
|
+
#
|
1821
|
+
# @yield [result, err] Result & error if block supplied
|
1822
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersRefundResponse] parsed result object
|
1823
|
+
# @yieldparam err [StandardError] error object if request failed
|
1824
|
+
#
|
1825
|
+
# @return [Google::Apis::ContentV2::OrdersRefundResponse]
|
1826
|
+
#
|
1827
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1828
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1829
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1830
|
+
def refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1831
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refund', options)
|
1832
|
+
command.request_representation = Google::Apis::ContentV2::OrdersRefundRequest::Representation
|
1833
|
+
command.request_object = orders_refund_request_object
|
1834
|
+
command.response_representation = Google::Apis::ContentV2::OrdersRefundResponse::Representation
|
1835
|
+
command.response_class = Google::Apis::ContentV2::OrdersRefundResponse
|
1836
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1837
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1838
|
+
command.query['fields'] = fields unless fields.nil?
|
1839
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1840
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1841
|
+
execute_or_queue_command(command, &block)
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
# Returns a line item.
|
1845
|
+
# @param [String] merchant_id
|
1846
|
+
# The ID of the managing account.
|
1847
|
+
# @param [String] order_id
|
1848
|
+
# The ID of the order.
|
1849
|
+
# @param [Google::Apis::ContentV2::OrdersReturnLineItemRequest] orders_return_line_item_request_object
|
1850
|
+
# @param [String] fields
|
1851
|
+
# Selector specifying which fields to include in a partial response.
|
1852
|
+
# @param [String] quota_user
|
1853
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1854
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1855
|
+
# Overrides userIp if both are provided.
|
1856
|
+
# @param [String] user_ip
|
1857
|
+
# IP address of the site where the request originates. Use this if you want to
|
1858
|
+
# enforce per-user limits.
|
1859
|
+
# @param [Google::Apis::RequestOptions] options
|
1860
|
+
# Request-specific options
|
1861
|
+
#
|
1862
|
+
# @yield [result, err] Result & error if block supplied
|
1863
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersReturnLineItemResponse] parsed result object
|
1864
|
+
# @yieldparam err [StandardError] error object if request failed
|
1865
|
+
#
|
1866
|
+
# @return [Google::Apis::ContentV2::OrdersReturnLineItemResponse]
|
1867
|
+
#
|
1868
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1869
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1870
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1871
|
+
def return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1872
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnLineItem', options)
|
1873
|
+
command.request_representation = Google::Apis::ContentV2::OrdersReturnLineItemRequest::Representation
|
1874
|
+
command.request_object = orders_return_line_item_request_object
|
1875
|
+
command.response_representation = Google::Apis::ContentV2::OrdersReturnLineItemResponse::Representation
|
1876
|
+
command.response_class = Google::Apis::ContentV2::OrdersReturnLineItemResponse
|
1877
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1878
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1879
|
+
command.query['fields'] = fields unless fields.nil?
|
1880
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1881
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1882
|
+
execute_or_queue_command(command, &block)
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
# Marks line item(s) as shipped.
|
1886
|
+
# @param [String] merchant_id
|
1887
|
+
# The ID of the managing account.
|
1888
|
+
# @param [String] order_id
|
1889
|
+
# The ID of the order.
|
1890
|
+
# @param [Google::Apis::ContentV2::OrdersShipLineItemsRequest] orders_ship_line_items_request_object
|
1891
|
+
# @param [String] fields
|
1892
|
+
# Selector specifying which fields to include in a partial response.
|
1893
|
+
# @param [String] quota_user
|
1894
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1895
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1896
|
+
# Overrides userIp if both are provided.
|
1897
|
+
# @param [String] user_ip
|
1898
|
+
# IP address of the site where the request originates. Use this if you want to
|
1899
|
+
# enforce per-user limits.
|
1900
|
+
# @param [Google::Apis::RequestOptions] options
|
1901
|
+
# Request-specific options
|
1902
|
+
#
|
1903
|
+
# @yield [result, err] Result & error if block supplied
|
1904
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersShipLineItemsResponse] parsed result object
|
1905
|
+
# @yieldparam err [StandardError] error object if request failed
|
1906
|
+
#
|
1907
|
+
# @return [Google::Apis::ContentV2::OrdersShipLineItemsResponse]
|
1908
|
+
#
|
1909
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1910
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1911
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1912
|
+
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)
|
1913
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
|
1914
|
+
command.request_representation = Google::Apis::ContentV2::OrdersShipLineItemsRequest::Representation
|
1915
|
+
command.request_object = orders_ship_line_items_request_object
|
1916
|
+
command.response_representation = Google::Apis::ContentV2::OrdersShipLineItemsResponse::Representation
|
1917
|
+
command.response_class = Google::Apis::ContentV2::OrdersShipLineItemsResponse
|
1918
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1919
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1920
|
+
command.query['fields'] = fields unless fields.nil?
|
1921
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1922
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1923
|
+
execute_or_queue_command(command, &block)
|
1924
|
+
end
|
1925
|
+
|
1926
|
+
# Updates the merchant order ID for a given order.
|
1927
|
+
# @param [String] merchant_id
|
1928
|
+
# The ID of the managing account.
|
1929
|
+
# @param [String] order_id
|
1930
|
+
# The ID of the order.
|
1931
|
+
# @param [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest] orders_update_merchant_order_id_request_object
|
1932
|
+
# @param [String] fields
|
1933
|
+
# Selector specifying which fields to include in a partial response.
|
1934
|
+
# @param [String] quota_user
|
1935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1937
|
+
# Overrides userIp if both are provided.
|
1938
|
+
# @param [String] user_ip
|
1939
|
+
# IP address of the site where the request originates. Use this if you want to
|
1940
|
+
# enforce per-user limits.
|
1941
|
+
# @param [Google::Apis::RequestOptions] options
|
1942
|
+
# Request-specific options
|
1943
|
+
#
|
1944
|
+
# @yield [result, err] Result & error if block supplied
|
1945
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse] parsed result object
|
1946
|
+
# @yieldparam err [StandardError] error object if request failed
|
1947
|
+
#
|
1948
|
+
# @return [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse]
|
1949
|
+
#
|
1950
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1951
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1952
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1953
|
+
def update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1954
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
|
1955
|
+
command.request_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest::Representation
|
1956
|
+
command.request_object = orders_update_merchant_order_id_request_object
|
1957
|
+
command.response_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse::Representation
|
1958
|
+
command.response_class = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse
|
1959
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1960
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1961
|
+
command.query['fields'] = fields unless fields.nil?
|
1962
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1963
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1964
|
+
execute_or_queue_command(command, &block)
|
1965
|
+
end
|
1966
|
+
|
1967
|
+
# Updates a shipment's status, carrier, and/or tracking ID.
|
1968
|
+
# @param [String] merchant_id
|
1969
|
+
# The ID of the managing account.
|
1970
|
+
# @param [String] order_id
|
1971
|
+
# The ID of the order.
|
1972
|
+
# @param [Google::Apis::ContentV2::OrdersUpdateShipmentRequest] orders_update_shipment_request_object
|
1973
|
+
# @param [String] fields
|
1974
|
+
# Selector specifying which fields to include in a partial response.
|
1975
|
+
# @param [String] quota_user
|
1976
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1977
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1978
|
+
# Overrides userIp if both are provided.
|
1979
|
+
# @param [String] user_ip
|
1980
|
+
# IP address of the site where the request originates. Use this if you want to
|
1981
|
+
# enforce per-user limits.
|
1982
|
+
# @param [Google::Apis::RequestOptions] options
|
1983
|
+
# Request-specific options
|
1984
|
+
#
|
1985
|
+
# @yield [result, err] Result & error if block supplied
|
1986
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersUpdateShipmentResponse] parsed result object
|
1987
|
+
# @yieldparam err [StandardError] error object if request failed
|
1988
|
+
#
|
1989
|
+
# @return [Google::Apis::ContentV2::OrdersUpdateShipmentResponse]
|
1990
|
+
#
|
1991
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1992
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1993
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1994
|
+
def update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1995
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
|
1996
|
+
command.request_representation = Google::Apis::ContentV2::OrdersUpdateShipmentRequest::Representation
|
1997
|
+
command.request_object = orders_update_shipment_request_object
|
1998
|
+
command.response_representation = Google::Apis::ContentV2::OrdersUpdateShipmentResponse::Representation
|
1999
|
+
command.response_class = Google::Apis::ContentV2::OrdersUpdateShipmentResponse
|
2000
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
2001
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
2002
|
+
command.query['fields'] = fields unless fields.nil?
|
2003
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2004
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2005
|
+
execute_or_queue_command(command, &block)
|
2006
|
+
end
|
2007
|
+
|
1413
2008
|
# Retrieves, inserts, and deletes multiple products in a single request.
|
1414
2009
|
# @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object
|
1415
2010
|
# @param [Boolean] dry_run
|
@@ -1436,8 +2031,7 @@ module Google
|
|
1436
2031
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1437
2032
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1438
2033
|
def batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1439
|
-
|
1440
|
-
command = make_simple_command(:post, path, options)
|
2034
|
+
command = make_simple_command(:post, 'products/batch', options)
|
1441
2035
|
command.request_representation = Google::Apis::ContentV2::BatchProductsRequest::Representation
|
1442
2036
|
command.request_object = batch_products_request_object
|
1443
2037
|
command.response_representation = Google::Apis::ContentV2::BatchProductsResponse::Representation
|
@@ -1478,8 +2072,7 @@ module Google
|
|
1478
2072
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1479
2073
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1480
2074
|
def delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1481
|
-
|
1482
|
-
command = make_simple_command(:delete, path, options)
|
2075
|
+
command = make_simple_command(:delete, '{merchantId}/products/{productId}', options)
|
1483
2076
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1484
2077
|
command.params['productId'] = product_id unless product_id.nil?
|
1485
2078
|
command.query['dryRun'] = dry_run unless dry_run.nil?
|
@@ -1516,8 +2109,7 @@ module Google
|
|
1516
2109
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1517
2110
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1518
2111
|
def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1519
|
-
|
1520
|
-
command = make_simple_command(:get, path, options)
|
2112
|
+
command = make_simple_command(:get, '{merchantId}/products/{productId}', options)
|
1521
2113
|
command.response_representation = Google::Apis::ContentV2::Product::Representation
|
1522
2114
|
command.response_class = Google::Apis::ContentV2::Product
|
1523
2115
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1556,8 +2148,7 @@ module Google
|
|
1556
2148
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1557
2149
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1558
2150
|
def insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1559
|
-
|
1560
|
-
command = make_simple_command(:post, path, options)
|
2151
|
+
command = make_simple_command(:post, '{merchantId}/products', options)
|
1561
2152
|
command.request_representation = Google::Apis::ContentV2::Product::Representation
|
1562
2153
|
command.request_object = product_object
|
1563
2154
|
command.response_representation = Google::Apis::ContentV2::Product::Representation
|
@@ -1573,6 +2164,9 @@ module Google
|
|
1573
2164
|
# Lists the products in your Merchant Center account.
|
1574
2165
|
# @param [String] merchant_id
|
1575
2166
|
# The ID of the managing account.
|
2167
|
+
# @param [Boolean] include_invalid_inserted_items
|
2168
|
+
# Flag to include the invalid inserted items in the result of the list request.
|
2169
|
+
# By default the invalid items are not shown (the default value is false).
|
1576
2170
|
# @param [Fixnum] max_results
|
1577
2171
|
# The maximum number of products to return in the response, used for paging.
|
1578
2172
|
# @param [String] page_token
|
@@ -1598,12 +2192,12 @@ module Google
|
|
1598
2192
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1599
2193
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1600
2194
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1601
|
-
def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1602
|
-
|
1603
|
-
command = make_simple_command(:get, path, options)
|
2195
|
+
def list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2196
|
+
command = make_simple_command(:get, '{merchantId}/products', options)
|
1604
2197
|
command.response_representation = Google::Apis::ContentV2::ListProductsResponse::Representation
|
1605
2198
|
command.response_class = Google::Apis::ContentV2::ListProductsResponse
|
1606
2199
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
2200
|
+
command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil?
|
1607
2201
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1608
2202
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1609
2203
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1636,8 +2230,7 @@ module Google
|
|
1636
2230
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1637
2231
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1638
2232
|
def batch_product_status(batch_product_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1639
|
-
|
1640
|
-
command = make_simple_command(:post, path, options)
|
2233
|
+
command = make_simple_command(:post, 'productstatuses/batch', options)
|
1641
2234
|
command.request_representation = Google::Apis::ContentV2::BatchProductStatusesRequest::Representation
|
1642
2235
|
command.request_object = batch_product_statuses_request_object
|
1643
2236
|
command.response_representation = Google::Apis::ContentV2::BatchProductStatusesResponse::Representation
|
@@ -1675,8 +2268,7 @@ module Google
|
|
1675
2268
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1676
2269
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1677
2270
|
def get_product_status(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1678
|
-
|
1679
|
-
command = make_simple_command(:get, path, options)
|
2271
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
|
1680
2272
|
command.response_representation = Google::Apis::ContentV2::ProductStatus::Representation
|
1681
2273
|
command.response_class = Google::Apis::ContentV2::ProductStatus
|
1682
2274
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1690,6 +2282,9 @@ module Google
|
|
1690
2282
|
# Lists the statuses of the products in your Merchant Center account.
|
1691
2283
|
# @param [String] merchant_id
|
1692
2284
|
# The ID of the managing account.
|
2285
|
+
# @param [Boolean] include_invalid_inserted_items
|
2286
|
+
# Flag to include the invalid inserted items in the result of the list request.
|
2287
|
+
# By default the invalid items are not shown (the default value is false).
|
1693
2288
|
# @param [Fixnum] max_results
|
1694
2289
|
# The maximum number of product statuses to return in the response, used for
|
1695
2290
|
# paging.
|
@@ -1716,12 +2311,12 @@ module Google
|
|
1716
2311
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1717
2312
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1718
2313
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1719
|
-
def list_product_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1720
|
-
|
1721
|
-
command = make_simple_command(:get, path, options)
|
2314
|
+
def list_product_statuses(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2315
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses', options)
|
1722
2316
|
command.response_representation = Google::Apis::ContentV2::ListProductStatusesResponse::Representation
|
1723
2317
|
command.response_class = Google::Apis::ContentV2::ListProductStatusesResponse
|
1724
2318
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
2319
|
+
command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil?
|
1725
2320
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1726
2321
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1727
2322
|
command.query['fields'] = fields unless fields.nil?
|