google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -444,6 +444,95 @@ module Google
|
|
444
444
|
execute_or_queue_command(command, &block)
|
445
445
|
end
|
446
446
|
|
447
|
+
# Roll back the previously Aborted or Failed NodePool upgrade. This will be an
|
448
|
+
# no-op if the last upgrade successfully completed.
|
449
|
+
# @param [String] project_id
|
450
|
+
# The Google Developers Console [project ID or project number](https://support.
|
451
|
+
# google.com/cloud/answer/6158840).
|
452
|
+
# @param [String] zone
|
453
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
454
|
+
# which the cluster resides.
|
455
|
+
# @param [String] cluster_id
|
456
|
+
# The name of the cluster to rollback.
|
457
|
+
# @param [String] node_pool_id
|
458
|
+
# The name of the node pool to rollback.
|
459
|
+
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
|
460
|
+
# @param [String] fields
|
461
|
+
# Selector specifying which fields to include in a partial response.
|
462
|
+
# @param [String] quota_user
|
463
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
464
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
465
|
+
# @param [Google::Apis::RequestOptions] options
|
466
|
+
# Request-specific options
|
467
|
+
#
|
468
|
+
# @yield [result, err] Result & error if block supplied
|
469
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
470
|
+
# @yieldparam err [StandardError] error object if request failed
|
471
|
+
#
|
472
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
473
|
+
#
|
474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
477
|
+
def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
478
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
|
479
|
+
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
|
480
|
+
command.request_object = rollback_node_pool_upgrade_request_object
|
481
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
482
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
483
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
484
|
+
command.params['zone'] = zone unless zone.nil?
|
485
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
486
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
487
|
+
command.query['fields'] = fields unless fields.nil?
|
488
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
489
|
+
execute_or_queue_command(command, &block)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Sets the NodeManagement options for a node pool.
|
493
|
+
# @param [String] project_id
|
494
|
+
# The Google Developers Console [project ID or project number](https://support.
|
495
|
+
# google.com/cloud/answer/6158840).
|
496
|
+
# @param [String] zone
|
497
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
498
|
+
# which the cluster resides.
|
499
|
+
# @param [String] cluster_id
|
500
|
+
# The name of the cluster to update.
|
501
|
+
# @param [String] node_pool_id
|
502
|
+
# The name of the node pool to update.
|
503
|
+
# @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
|
504
|
+
# @param [String] fields
|
505
|
+
# Selector specifying which fields to include in a partial response.
|
506
|
+
# @param [String] quota_user
|
507
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
508
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
509
|
+
# @param [Google::Apis::RequestOptions] options
|
510
|
+
# Request-specific options
|
511
|
+
#
|
512
|
+
# @yield [result, err] Result & error if block supplied
|
513
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
514
|
+
# @yieldparam err [StandardError] error object if request failed
|
515
|
+
#
|
516
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
517
|
+
#
|
518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
521
|
+
def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
522
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
|
523
|
+
command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
|
524
|
+
command.request_object = set_node_pool_management_request_object
|
525
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
526
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
527
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
528
|
+
command.params['zone'] = zone unless zone.nil?
|
529
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
530
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
531
|
+
command.query['fields'] = fields unless fields.nil?
|
532
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
+
execute_or_queue_command(command, &block)
|
534
|
+
end
|
535
|
+
|
447
536
|
# Lists all operations in a project in a specific zone or all zones.
|
448
537
|
# @param [String] project_id
|
449
538
|
# The Google Developers Console [project ID or project number](https://support.
|
@@ -516,6 +605,47 @@ module Google
|
|
516
605
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
517
606
|
execute_or_queue_command(command, &block)
|
518
607
|
end
|
608
|
+
|
609
|
+
# Cancels the specified operation.
|
610
|
+
# @param [String] project_id
|
611
|
+
# The Google Developers Console [project ID or project number](https://support.
|
612
|
+
# google.com/cloud/answer/6158840).
|
613
|
+
# @param [String] zone
|
614
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
615
|
+
# which the operation resides.
|
616
|
+
# @param [String] operation_id
|
617
|
+
# The server-assigned `name` of the operation.
|
618
|
+
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
|
619
|
+
# @param [String] fields
|
620
|
+
# Selector specifying which fields to include in a partial response.
|
621
|
+
# @param [String] quota_user
|
622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
624
|
+
# @param [Google::Apis::RequestOptions] options
|
625
|
+
# Request-specific options
|
626
|
+
#
|
627
|
+
# @yield [result, err] Result & error if block supplied
|
628
|
+
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
629
|
+
# @yieldparam err [StandardError] error object if request failed
|
630
|
+
#
|
631
|
+
# @return [Google::Apis::ContainerV1::Empty]
|
632
|
+
#
|
633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
636
|
+
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
637
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
638
|
+
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
639
|
+
command.request_object = cancel_operation_request_object
|
640
|
+
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
641
|
+
command.response_class = Google::Apis::ContainerV1::Empty
|
642
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
643
|
+
command.params['zone'] = zone unless zone.nil?
|
644
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
645
|
+
command.query['fields'] = fields unless fields.nil?
|
646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
647
|
+
execute_or_queue_command(command, &block)
|
648
|
+
end
|
519
649
|
|
520
650
|
protected
|
521
651
|
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20170303'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -32,10 +32,11 @@ module Google
|
|
32
32
|
attr_accessor :adult_content
|
33
33
|
alias_method :adult_content?, :adult_content
|
34
34
|
|
35
|
-
# List of linked AdWords accounts
|
36
|
-
# link request, add a new link with status active to the list. It will
|
37
|
-
#
|
38
|
-
#
|
35
|
+
# List of linked AdWords accounts that are active or pending approval. To create
|
36
|
+
# a new link request, add a new link with status active to the list. It will
|
37
|
+
# remain in a pending state until approved or rejected either in the AdWords
|
38
|
+
# interface or through the AdWords API. To delete an active link, or to cancel
|
39
|
+
# a link request, remove it from the list.
|
39
40
|
# Corresponds to the JSON property `adwordsLinks`
|
40
41
|
# @return [Array<Google::Apis::ContentV2::AccountAdwordsLink>]
|
41
42
|
attr_accessor :adwords_links
|
@@ -493,6 +494,18 @@ module Google
|
|
493
494
|
# @return [Google::Apis::ContentV2::AccountShippingShippingServiceCostRule]
|
494
495
|
attr_accessor :cost_rule_tree
|
495
496
|
|
497
|
+
# The maximum number of days in transit. Must be a value between 0 and 250
|
498
|
+
# included. A value of 0 means same day delivery.
|
499
|
+
# Corresponds to the JSON property `maxDaysInTransit`
|
500
|
+
# @return [String]
|
501
|
+
attr_accessor :max_days_in_transit
|
502
|
+
|
503
|
+
# The minimum number of days in transit. Must be a value between 0 and
|
504
|
+
# maxDaysIntransit included. A value of 0 means same day delivery.
|
505
|
+
# Corresponds to the JSON property `minDaysInTransit`
|
506
|
+
# @return [String]
|
507
|
+
attr_accessor :min_days_in_transit
|
508
|
+
|
496
509
|
# The name of this shipping service.
|
497
510
|
# Corresponds to the JSON property `name`
|
498
511
|
# @return [String]
|
@@ -512,6 +525,8 @@ module Google
|
|
512
525
|
@active = args[:active] if args.key?(:active)
|
513
526
|
@calculation_method = args[:calculation_method] if args.key?(:calculation_method)
|
514
527
|
@cost_rule_tree = args[:cost_rule_tree] if args.key?(:cost_rule_tree)
|
528
|
+
@max_days_in_transit = args[:max_days_in_transit] if args.key?(:max_days_in_transit)
|
529
|
+
@min_days_in_transit = args[:min_days_in_transit] if args.key?(:min_days_in_transit)
|
515
530
|
@name = args[:name] if args.key?(:name)
|
516
531
|
@sale_country = args[:sale_country] if args.key?(:sale_country)
|
517
532
|
end
|
@@ -646,6 +661,11 @@ module Google
|
|
646
661
|
# @return [String]
|
647
662
|
attr_accessor :country
|
648
663
|
|
664
|
+
# A more detailed description of the issue.
|
665
|
+
# Corresponds to the JSON property `detail`
|
666
|
+
# @return [String]
|
667
|
+
attr_accessor :detail
|
668
|
+
|
649
669
|
# Actual value displayed on the landing page.
|
650
670
|
# Corresponds to the JSON property `displayedValue`
|
651
671
|
# @return [String]
|
@@ -666,6 +686,11 @@ module Google
|
|
666
686
|
# @return [String]
|
667
687
|
attr_accessor :last_checked
|
668
688
|
|
689
|
+
# The attribute name that is relevant for the issue.
|
690
|
+
# Corresponds to the JSON property `location`
|
691
|
+
# @return [String]
|
692
|
+
attr_accessor :location
|
693
|
+
|
669
694
|
# Number of items in the account found to have the said issue.
|
670
695
|
# Corresponds to the JSON property `numItems`
|
671
696
|
# @return [Fixnum]
|
@@ -688,10 +713,12 @@ module Google
|
|
688
713
|
# Update properties of this object
|
689
714
|
def update!(**args)
|
690
715
|
@country = args[:country] if args.key?(:country)
|
716
|
+
@detail = args[:detail] if args.key?(:detail)
|
691
717
|
@displayed_value = args[:displayed_value] if args.key?(:displayed_value)
|
692
718
|
@example_items = args[:example_items] if args.key?(:example_items)
|
693
719
|
@id = args[:id] if args.key?(:id)
|
694
720
|
@last_checked = args[:last_checked] if args.key?(:last_checked)
|
721
|
+
@location = args[:location] if args.key?(:location)
|
695
722
|
@num_items = args[:num_items] if args.key?(:num_items)
|
696
723
|
@severity = args[:severity] if args.key?(:severity)
|
697
724
|
@submitted_value = args[:submitted_value] if args.key?(:submitted_value)
|
@@ -1499,6 +1526,93 @@ module Google
|
|
1499
1526
|
end
|
1500
1527
|
end
|
1501
1528
|
|
1529
|
+
#
|
1530
|
+
class CarrierRate
|
1531
|
+
include Google::Apis::Core::Hashable
|
1532
|
+
|
1533
|
+
# Carrier service, such as "UPS" or "Fedex". The list of supported carriers can
|
1534
|
+
# be retrieved via the getSupportedCarriers method. Required.
|
1535
|
+
# Corresponds to the JSON property `carrierName`
|
1536
|
+
# @return [String]
|
1537
|
+
attr_accessor :carrier_name
|
1538
|
+
|
1539
|
+
# Carrier service, such as "ground" or "2 days". The list of supported services
|
1540
|
+
# for a carrier can be retrieved via the getSupportedCarriers method. Required.
|
1541
|
+
# Corresponds to the JSON property `carrierService`
|
1542
|
+
# @return [String]
|
1543
|
+
attr_accessor :carrier_service
|
1544
|
+
|
1545
|
+
# Additive shipping rate modifier. Can be negative. For example ` "value": "1", "
|
1546
|
+
# currency" : "USD" ` adds $1 to the rate, ` "value": "-3", "currency" : "USD" `
|
1547
|
+
# removes $3 from the rate. Optional.
|
1548
|
+
# Corresponds to the JSON property `flatAdjustment`
|
1549
|
+
# @return [Google::Apis::ContentV2::Price]
|
1550
|
+
attr_accessor :flat_adjustment
|
1551
|
+
|
1552
|
+
# Name of the carrier rate. Must be unique per rate group. Required.
|
1553
|
+
# Corresponds to the JSON property `name`
|
1554
|
+
# @return [String]
|
1555
|
+
attr_accessor :name
|
1556
|
+
|
1557
|
+
# Shipping origin for this carrier rate. Required.
|
1558
|
+
# Corresponds to the JSON property `originPostalCode`
|
1559
|
+
# @return [String]
|
1560
|
+
attr_accessor :origin_postal_code
|
1561
|
+
|
1562
|
+
# Multiplicative shipping rate modifier as a number in decimal notation. Can be
|
1563
|
+
# negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the
|
1564
|
+
# rate by 3%. Optional.
|
1565
|
+
# Corresponds to the JSON property `percentageAdjustment`
|
1566
|
+
# @return [String]
|
1567
|
+
attr_accessor :percentage_adjustment
|
1568
|
+
|
1569
|
+
def initialize(**args)
|
1570
|
+
update!(**args)
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
# Update properties of this object
|
1574
|
+
def update!(**args)
|
1575
|
+
@carrier_name = args[:carrier_name] if args.key?(:carrier_name)
|
1576
|
+
@carrier_service = args[:carrier_service] if args.key?(:carrier_service)
|
1577
|
+
@flat_adjustment = args[:flat_adjustment] if args.key?(:flat_adjustment)
|
1578
|
+
@name = args[:name] if args.key?(:name)
|
1579
|
+
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
1580
|
+
@percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment)
|
1581
|
+
end
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
#
|
1585
|
+
class CarriersCarrier
|
1586
|
+
include Google::Apis::Core::Hashable
|
1587
|
+
|
1588
|
+
# The CLDR country code of the carrier (e.g., "US"). Always present.
|
1589
|
+
# Corresponds to the JSON property `country`
|
1590
|
+
# @return [String]
|
1591
|
+
attr_accessor :country
|
1592
|
+
|
1593
|
+
# The name of the carrier (e.g., "UPS"). Always present.
|
1594
|
+
# Corresponds to the JSON property `name`
|
1595
|
+
# @return [String]
|
1596
|
+
attr_accessor :name
|
1597
|
+
|
1598
|
+
# A list of supported services (e.g., "ground") for that carrier. Contains at
|
1599
|
+
# least one service.
|
1600
|
+
# Corresponds to the JSON property `services`
|
1601
|
+
# @return [Array<String>]
|
1602
|
+
attr_accessor :services
|
1603
|
+
|
1604
|
+
def initialize(**args)
|
1605
|
+
update!(**args)
|
1606
|
+
end
|
1607
|
+
|
1608
|
+
# Update properties of this object
|
1609
|
+
def update!(**args)
|
1610
|
+
@country = args[:country] if args.key?(:country)
|
1611
|
+
@name = args[:name] if args.key?(:name)
|
1612
|
+
@services = args[:services] if args.key?(:services)
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
|
1502
1616
|
# Datafeed data.
|
1503
1617
|
class Datafeed
|
1504
1618
|
include Google::Apis::Core::Hashable
|
@@ -1515,7 +1629,8 @@ module Google
|
|
1515
1629
|
# @return [String]
|
1516
1630
|
attr_accessor :content_language
|
1517
1631
|
|
1518
|
-
# The type of data feed.
|
1632
|
+
# The type of data feed. For product inventory feeds, only feeds for local
|
1633
|
+
# stores, not online stores, are supported.
|
1519
1634
|
# Corresponds to the JSON property `contentType`
|
1520
1635
|
# @return [String]
|
1521
1636
|
attr_accessor :content_type
|
@@ -2116,6 +2231,34 @@ module Google
|
|
2116
2231
|
end
|
2117
2232
|
end
|
2118
2233
|
|
2234
|
+
#
|
2235
|
+
class DeliveryTime
|
2236
|
+
include Google::Apis::Core::Hashable
|
2237
|
+
|
2238
|
+
# Maximum number of business days that is spent in transit. 0 means same day
|
2239
|
+
# delivery, 1 means next day delivery. Must be greater than or equal to
|
2240
|
+
# minTransitTimeInDays. Required.
|
2241
|
+
# Corresponds to the JSON property `maxTransitTimeInDays`
|
2242
|
+
# @return [Fixnum]
|
2243
|
+
attr_accessor :max_transit_time_in_days
|
2244
|
+
|
2245
|
+
# Minimum number of business days that is spent in transit. 0 means same day
|
2246
|
+
# delivery, 1 means next day delivery. Required.
|
2247
|
+
# Corresponds to the JSON property `minTransitTimeInDays`
|
2248
|
+
# @return [Fixnum]
|
2249
|
+
attr_accessor :min_transit_time_in_days
|
2250
|
+
|
2251
|
+
def initialize(**args)
|
2252
|
+
update!(**args)
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
# Update properties of this object
|
2256
|
+
def update!(**args)
|
2257
|
+
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
|
2258
|
+
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
|
2259
|
+
end
|
2260
|
+
end
|
2261
|
+
|
2119
2262
|
# An error returned by the API.
|
2120
2263
|
class Error
|
2121
2264
|
include Google::Apis::Core::Hashable
|
@@ -2178,6 +2321,63 @@ module Google
|
|
2178
2321
|
end
|
2179
2322
|
end
|
2180
2323
|
|
2324
|
+
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
2325
|
+
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
2326
|
+
class Headers
|
2327
|
+
include Google::Apis::Core::Hashable
|
2328
|
+
|
2329
|
+
# A list of location ID sets. Must be non-empty. Can only be set if all other
|
2330
|
+
# fields are not set.
|
2331
|
+
# Corresponds to the JSON property `locations`
|
2332
|
+
# @return [Array<Google::Apis::ContentV2::LocationIdSet>]
|
2333
|
+
attr_accessor :locations
|
2334
|
+
|
2335
|
+
# A list of inclusive number of items upper bounds. The last value can be "
|
2336
|
+
# infinity". For example ["10", "50", "infinity"] represents the headers "<= 10
|
2337
|
+
# items", " 50 items". Must be non-empty. Can only be set if all other fields
|
2338
|
+
# are not set.
|
2339
|
+
# Corresponds to the JSON property `numberOfItems`
|
2340
|
+
# @return [Array<String>]
|
2341
|
+
attr_accessor :number_of_items
|
2342
|
+
|
2343
|
+
# A list of postal group names. The last value can be "all other locations".
|
2344
|
+
# Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code
|
2345
|
+
# groups must match the delivery country of the service. Must be non-empty. Can
|
2346
|
+
# only be set if all other fields are not set.
|
2347
|
+
# Corresponds to the JSON property `postalCodeGroupNames`
|
2348
|
+
# @return [Array<String>]
|
2349
|
+
attr_accessor :postal_code_group_names
|
2350
|
+
|
2351
|
+
# be "infinity". For example [`"value": "10", "currency": "USD"`, `"value": "500"
|
2352
|
+
# , "currency": "USD"`, `"value": "infinity", "currency": "USD"`] represents the
|
2353
|
+
# headers "<= $10", " $500". All prices within a service must have the same
|
2354
|
+
# currency. Must be non-empty. Can only be set if all other fields are not set.
|
2355
|
+
# Corresponds to the JSON property `prices`
|
2356
|
+
# @return [Array<Google::Apis::ContentV2::Price>]
|
2357
|
+
attr_accessor :prices
|
2358
|
+
|
2359
|
+
# be "infinity". For example [`"value": "10", "unit": "kg"`, `"value": "50", "
|
2360
|
+
# unit": "kg"`, `"value": "infinity", "unit": "kg"`] represents the headers "<=
|
2361
|
+
# 10kg", " 50kg". All weights within a service must have the same unit. Must be
|
2362
|
+
# non-empty. Can only be set if all other fields are not set.
|
2363
|
+
# Corresponds to the JSON property `weights`
|
2364
|
+
# @return [Array<Google::Apis::ContentV2::Weight>]
|
2365
|
+
attr_accessor :weights
|
2366
|
+
|
2367
|
+
def initialize(**args)
|
2368
|
+
update!(**args)
|
2369
|
+
end
|
2370
|
+
|
2371
|
+
# Update properties of this object
|
2372
|
+
def update!(**args)
|
2373
|
+
@locations = args[:locations] if args.key?(:locations)
|
2374
|
+
@number_of_items = args[:number_of_items] if args.key?(:number_of_items)
|
2375
|
+
@postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
|
2376
|
+
@prices = args[:prices] if args.key?(:prices)
|
2377
|
+
@weights = args[:weights] if args.key?(:weights)
|
2378
|
+
end
|
2379
|
+
end
|
2380
|
+
|
2181
2381
|
#
|
2182
2382
|
class Installment
|
2183
2383
|
include Google::Apis::Core::Hashable
|
@@ -2228,6 +2428,14 @@ module Google
|
|
2228
2428
|
# @return [Google::Apis::ContentV2::LoyaltyPoints]
|
2229
2429
|
attr_accessor :loyalty_points
|
2230
2430
|
|
2431
|
+
# Store pickup information. Only supported for local inventory. Not setting
|
2432
|
+
# pickup means "don't update" while setting it to the empty value (`` in JSON)
|
2433
|
+
# means "delete". Otherwise, pickupMethod and pickupSla must be set together,
|
2434
|
+
# unless pickupMethod is "not supported".
|
2435
|
+
# Corresponds to the JSON property `pickup`
|
2436
|
+
# @return [Google::Apis::ContentV2::InventoryPickup]
|
2437
|
+
attr_accessor :pickup
|
2438
|
+
|
2231
2439
|
# The price of the product.
|
2232
2440
|
# Corresponds to the JSON property `price`
|
2233
2441
|
# @return [Google::Apis::ContentV2::Price]
|
@@ -2267,6 +2475,7 @@ module Google
|
|
2267
2475
|
@installment = args[:installment] if args.key?(:installment)
|
2268
2476
|
@kind = args[:kind] if args.key?(:kind)
|
2269
2477
|
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
|
2478
|
+
@pickup = args[:pickup] if args.key?(:pickup)
|
2270
2479
|
@price = args[:price] if args.key?(:price)
|
2271
2480
|
@quantity = args[:quantity] if args.key?(:quantity)
|
2272
2481
|
@sale_price = args[:sale_price] if args.key?(:sale_price)
|
@@ -2396,6 +2605,36 @@ module Google
|
|
2396
2605
|
end
|
2397
2606
|
end
|
2398
2607
|
|
2608
|
+
#
|
2609
|
+
class InventoryPickup
|
2610
|
+
include Google::Apis::Core::Hashable
|
2611
|
+
|
2612
|
+
# Whether store pickup is available for this offer and whether the pickup option
|
2613
|
+
# should be shown as buy, reserve, or not supported. Only supported for local
|
2614
|
+
# inventory. Unless the value is "not supported", must be submitted together
|
2615
|
+
# with pickupSla.
|
2616
|
+
# Corresponds to the JSON property `pickupMethod`
|
2617
|
+
# @return [String]
|
2618
|
+
attr_accessor :pickup_method
|
2619
|
+
|
2620
|
+
# The expected date that an order will be ready for pickup, relative to when the
|
2621
|
+
# order is placed. Only supported for local inventory. Must be submitted
|
2622
|
+
# together with pickupMethod.
|
2623
|
+
# Corresponds to the JSON property `pickupSla`
|
2624
|
+
# @return [String]
|
2625
|
+
attr_accessor :pickup_sla
|
2626
|
+
|
2627
|
+
def initialize(**args)
|
2628
|
+
update!(**args)
|
2629
|
+
end
|
2630
|
+
|
2631
|
+
# Update properties of this object
|
2632
|
+
def update!(**args)
|
2633
|
+
@pickup_method = args[:pickup_method] if args.key?(:pickup_method)
|
2634
|
+
@pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
|
2635
|
+
end
|
2636
|
+
end
|
2637
|
+
|
2399
2638
|
#
|
2400
2639
|
class SetInventoryRequest
|
2401
2640
|
include Google::Apis::Core::Hashable
|
@@ -2415,6 +2654,14 @@ module Google
|
|
2415
2654
|
# @return [Google::Apis::ContentV2::LoyaltyPoints]
|
2416
2655
|
attr_accessor :loyalty_points
|
2417
2656
|
|
2657
|
+
# Store pickup information. Only supported for local inventory. Not setting
|
2658
|
+
# pickup means "don't update" while setting it to the empty value (`` in JSON)
|
2659
|
+
# means "delete". Otherwise, pickupMethod and pickupSla must be set together,
|
2660
|
+
# unless pickupMethod is "not supported".
|
2661
|
+
# Corresponds to the JSON property `pickup`
|
2662
|
+
# @return [Google::Apis::ContentV2::InventoryPickup]
|
2663
|
+
attr_accessor :pickup
|
2664
|
+
|
2418
2665
|
# The price of the product.
|
2419
2666
|
# Corresponds to the JSON property `price`
|
2420
2667
|
# @return [Google::Apis::ContentV2::Price]
|
@@ -2453,6 +2700,7 @@ module Google
|
|
2453
2700
|
@availability = args[:availability] if args.key?(:availability)
|
2454
2701
|
@installment = args[:installment] if args.key?(:installment)
|
2455
2702
|
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
|
2703
|
+
@pickup = args[:pickup] if args.key?(:pickup)
|
2456
2704
|
@price = args[:price] if args.key?(:price)
|
2457
2705
|
@quantity = args[:quantity] if args.key?(:quantity)
|
2458
2706
|
@sale_price = args[:sale_price] if args.key?(:sale_price)
|
@@ -2481,6 +2729,26 @@ module Google
|
|
2481
2729
|
end
|
2482
2730
|
end
|
2483
2731
|
|
2732
|
+
#
|
2733
|
+
class LocationIdSet
|
2734
|
+
include Google::Apis::Core::Hashable
|
2735
|
+
|
2736
|
+
# A non-empty list of location IDs. They must all be of the same location type (
|
2737
|
+
# e.g., state).
|
2738
|
+
# Corresponds to the JSON property `locationIds`
|
2739
|
+
# @return [Array<String>]
|
2740
|
+
attr_accessor :location_ids
|
2741
|
+
|
2742
|
+
def initialize(**args)
|
2743
|
+
update!(**args)
|
2744
|
+
end
|
2745
|
+
|
2746
|
+
# Update properties of this object
|
2747
|
+
def update!(**args)
|
2748
|
+
@location_ids = args[:location_ids] if args.key?(:location_ids)
|
2749
|
+
end
|
2750
|
+
end
|
2751
|
+
|
2484
2752
|
#
|
2485
2753
|
class LoyaltyPoints
|
2486
2754
|
include Google::Apis::Core::Hashable
|
@@ -2524,6 +2792,11 @@ module Google
|
|
2524
2792
|
attr_accessor :acknowledged
|
2525
2793
|
alias_method :acknowledged?, :acknowledged
|
2526
2794
|
|
2795
|
+
# The channel type of the order: "purchaseOnGoogle" or "googleExpress".
|
2796
|
+
# Corresponds to the JSON property `channelType`
|
2797
|
+
# @return [String]
|
2798
|
+
attr_accessor :channel_type
|
2799
|
+
|
2527
2800
|
# The details of the customer who placed the order.
|
2528
2801
|
# Corresponds to the JSON property `customer`
|
2529
2802
|
# @return [Google::Apis::ContentV2::OrderCustomer]
|
@@ -2625,6 +2898,7 @@ module Google
|
|
2625
2898
|
# Update properties of this object
|
2626
2899
|
def update!(**args)
|
2627
2900
|
@acknowledged = args[:acknowledged] if args.key?(:acknowledged)
|
2901
|
+
@channel_type = args[:channel_type] if args.key?(:channel_type)
|
2628
2902
|
@customer = args[:customer] if args.key?(:customer)
|
2629
2903
|
@delivery_details = args[:delivery_details] if args.key?(:delivery_details)
|
2630
2904
|
@id = args[:id] if args.key?(:id)
|
@@ -2733,7 +3007,7 @@ module Google
|
|
2733
3007
|
# @return [Fixnum]
|
2734
3008
|
attr_accessor :quantity
|
2735
3009
|
|
2736
|
-
# The reason for the cancellation. Orders that are cancelled with a
|
3010
|
+
# The reason for the cancellation. Orders that are cancelled with a noInventory
|
2737
3011
|
# reason will lead to the removal of the product from POG until you make an
|
2738
3012
|
# update to that product. This will not affect your Shopping ads.
|
2739
3013
|
# Corresponds to the JSON property `reason`
|
@@ -2771,8 +3045,7 @@ module Google
|
|
2771
3045
|
# If set, this indicates the user explicitly chose to opt in or out of providing
|
2772
3046
|
# marketing rights to the merchant. If unset, this indicates the user has
|
2773
3047
|
# already made this choice in a previous purchase, and was thus not shown the
|
2774
|
-
# marketing right opt in/out checkbox during the
|
2775
|
-
# flow.
|
3048
|
+
# marketing right opt in/out checkbox during the checkout flow.
|
2776
3049
|
# Corresponds to the JSON property `explicitMarketingPreference`
|
2777
3050
|
# @return [Boolean]
|
2778
3051
|
attr_accessor :explicit_marketing_preference
|
@@ -4520,6 +4793,71 @@ module Google
|
|
4520
4793
|
end
|
4521
4794
|
end
|
4522
4795
|
|
4796
|
+
#
|
4797
|
+
class PostalCodeGroup
|
4798
|
+
include Google::Apis::Core::Hashable
|
4799
|
+
|
4800
|
+
# The CLDR territory code of the country the postal code group applies to.
|
4801
|
+
# Required.
|
4802
|
+
# Corresponds to the JSON property `country`
|
4803
|
+
# @return [String]
|
4804
|
+
attr_accessor :country
|
4805
|
+
|
4806
|
+
# The name of the postal code group, referred to in headers. Required.
|
4807
|
+
# Corresponds to the JSON property `name`
|
4808
|
+
# @return [String]
|
4809
|
+
attr_accessor :name
|
4810
|
+
|
4811
|
+
# A range of postal codes. Required.
|
4812
|
+
# Corresponds to the JSON property `postalCodeRanges`
|
4813
|
+
# @return [Array<Google::Apis::ContentV2::PostalCodeRange>]
|
4814
|
+
attr_accessor :postal_code_ranges
|
4815
|
+
|
4816
|
+
def initialize(**args)
|
4817
|
+
update!(**args)
|
4818
|
+
end
|
4819
|
+
|
4820
|
+
# Update properties of this object
|
4821
|
+
def update!(**args)
|
4822
|
+
@country = args[:country] if args.key?(:country)
|
4823
|
+
@name = args[:name] if args.key?(:name)
|
4824
|
+
@postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges)
|
4825
|
+
end
|
4826
|
+
end
|
4827
|
+
|
4828
|
+
#
|
4829
|
+
class PostalCodeRange
|
4830
|
+
include Google::Apis::Core::Hashable
|
4831
|
+
|
4832
|
+
# A postal code or a pattern of the form prefix* denoting the inclusive lower
|
4833
|
+
# bound of the range defining the area. Examples values: "94108", "9410*", "9*".
|
4834
|
+
# Required.
|
4835
|
+
# Corresponds to the JSON property `postalCodeRangeBegin`
|
4836
|
+
# @return [String]
|
4837
|
+
attr_accessor :postal_code_range_begin
|
4838
|
+
|
4839
|
+
# A postal code or a pattern of the form prefix* denoting the inclusive upper
|
4840
|
+
# bound of the range defining the area. It must have the same length as
|
4841
|
+
# postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
|
4842
|
+
# postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a
|
4843
|
+
# pattern then postalCodeRangeEnd must be a pattern with the same prefix length.
|
4844
|
+
# Optional: if not set, then the area is defined as being all the postal codes
|
4845
|
+
# matching postalCodeRangeBegin.
|
4846
|
+
# Corresponds to the JSON property `postalCodeRangeEnd`
|
4847
|
+
# @return [String]
|
4848
|
+
attr_accessor :postal_code_range_end
|
4849
|
+
|
4850
|
+
def initialize(**args)
|
4851
|
+
update!(**args)
|
4852
|
+
end
|
4853
|
+
|
4854
|
+
# Update properties of this object
|
4855
|
+
def update!(**args)
|
4856
|
+
@postal_code_range_begin = args[:postal_code_range_begin] if args.key?(:postal_code_range_begin)
|
4857
|
+
@postal_code_range_end = args[:postal_code_range_end] if args.key?(:postal_code_range_end)
|
4858
|
+
end
|
4859
|
+
end
|
4860
|
+
|
4523
4861
|
#
|
4524
4862
|
class Price
|
4525
4863
|
include Google::Apis::Core::Hashable
|
@@ -5820,6 +6158,387 @@ module Google
|
|
5820
6158
|
end
|
5821
6159
|
end
|
5822
6160
|
|
6161
|
+
#
|
6162
|
+
class RateGroup
|
6163
|
+
include Google::Apis::Core::Hashable
|
6164
|
+
|
6165
|
+
# A list of shipping labels defining the products to which this rate group
|
6166
|
+
# applies to. This is a disjunction: only one of the labels has to match for the
|
6167
|
+
# rate group to apply. May only be empty for the last rate group of a service.
|
6168
|
+
# Required.
|
6169
|
+
# Corresponds to the JSON property `applicableShippingLabels`
|
6170
|
+
# @return [Array<String>]
|
6171
|
+
attr_accessor :applicable_shipping_labels
|
6172
|
+
|
6173
|
+
# A list of carrier rates that can be referred to by mainTable or singleValue.
|
6174
|
+
# Corresponds to the JSON property `carrierRates`
|
6175
|
+
# @return [Array<Google::Apis::ContentV2::CarrierRate>]
|
6176
|
+
attr_accessor :carrier_rates
|
6177
|
+
|
6178
|
+
# A table defining the rate group, when singleValue is not expressive enough.
|
6179
|
+
# Can only be set if singleValue is not set.
|
6180
|
+
# Corresponds to the JSON property `mainTable`
|
6181
|
+
# @return [Google::Apis::ContentV2::Table]
|
6182
|
+
attr_accessor :main_table
|
6183
|
+
|
6184
|
+
# The single value of a rate group or the value of a rate group table's cell.
|
6185
|
+
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
6186
|
+
# subtableName must be set.
|
6187
|
+
# Corresponds to the JSON property `singleValue`
|
6188
|
+
# @return [Google::Apis::ContentV2::Value]
|
6189
|
+
attr_accessor :single_value
|
6190
|
+
|
6191
|
+
# A list of subtables referred to by mainTable. Can only be set if mainTable is
|
6192
|
+
# set.
|
6193
|
+
# Corresponds to the JSON property `subtables`
|
6194
|
+
# @return [Array<Google::Apis::ContentV2::Table>]
|
6195
|
+
attr_accessor :subtables
|
6196
|
+
|
6197
|
+
def initialize(**args)
|
6198
|
+
update!(**args)
|
6199
|
+
end
|
6200
|
+
|
6201
|
+
# Update properties of this object
|
6202
|
+
def update!(**args)
|
6203
|
+
@applicable_shipping_labels = args[:applicable_shipping_labels] if args.key?(:applicable_shipping_labels)
|
6204
|
+
@carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates)
|
6205
|
+
@main_table = args[:main_table] if args.key?(:main_table)
|
6206
|
+
@single_value = args[:single_value] if args.key?(:single_value)
|
6207
|
+
@subtables = args[:subtables] if args.key?(:subtables)
|
6208
|
+
end
|
6209
|
+
end
|
6210
|
+
|
6211
|
+
#
|
6212
|
+
class Row
|
6213
|
+
include Google::Apis::Core::Hashable
|
6214
|
+
|
6215
|
+
# The list of cells that constitute the row. Must have the same length as
|
6216
|
+
# columnHeaders for two-dimensional tables, a length of 1 for one-dimensional
|
6217
|
+
# tables. Required.
|
6218
|
+
# Corresponds to the JSON property `cells`
|
6219
|
+
# @return [Array<Google::Apis::ContentV2::Value>]
|
6220
|
+
attr_accessor :cells
|
6221
|
+
|
6222
|
+
def initialize(**args)
|
6223
|
+
update!(**args)
|
6224
|
+
end
|
6225
|
+
|
6226
|
+
# Update properties of this object
|
6227
|
+
def update!(**args)
|
6228
|
+
@cells = args[:cells] if args.key?(:cells)
|
6229
|
+
end
|
6230
|
+
end
|
6231
|
+
|
6232
|
+
#
|
6233
|
+
class Service
|
6234
|
+
include Google::Apis::Core::Hashable
|
6235
|
+
|
6236
|
+
# A boolean exposing the active status of the shipping service. Required.
|
6237
|
+
# Corresponds to the JSON property `active`
|
6238
|
+
# @return [Boolean]
|
6239
|
+
attr_accessor :active
|
6240
|
+
alias_method :active?, :active
|
6241
|
+
|
6242
|
+
# The CLDR code of the currency to which this service applies. Must match that
|
6243
|
+
# of the prices in rate groups.
|
6244
|
+
# Corresponds to the JSON property `currency`
|
6245
|
+
# @return [String]
|
6246
|
+
attr_accessor :currency
|
6247
|
+
|
6248
|
+
# The CLDR territory code of the country to which the service applies. Required.
|
6249
|
+
# Corresponds to the JSON property `deliveryCountry`
|
6250
|
+
# @return [String]
|
6251
|
+
attr_accessor :delivery_country
|
6252
|
+
|
6253
|
+
# Time spent in various aspects from order to the delivery of the product.
|
6254
|
+
# Required.
|
6255
|
+
# Corresponds to the JSON property `deliveryTime`
|
6256
|
+
# @return [Google::Apis::ContentV2::DeliveryTime]
|
6257
|
+
attr_accessor :delivery_time
|
6258
|
+
|
6259
|
+
# Free-form name of the service. Must be unique within target account. Required.
|
6260
|
+
# Corresponds to the JSON property `name`
|
6261
|
+
# @return [String]
|
6262
|
+
attr_accessor :name
|
6263
|
+
|
6264
|
+
# Shipping rate group definitions. Only the last one is allowed to have an empty
|
6265
|
+
# applicableShippingLabels, which means "everything else". The other
|
6266
|
+
# applicableShippingLabels must not overlap.
|
6267
|
+
# Corresponds to the JSON property `rateGroups`
|
6268
|
+
# @return [Array<Google::Apis::ContentV2::RateGroup>]
|
6269
|
+
attr_accessor :rate_groups
|
6270
|
+
|
6271
|
+
def initialize(**args)
|
6272
|
+
update!(**args)
|
6273
|
+
end
|
6274
|
+
|
6275
|
+
# Update properties of this object
|
6276
|
+
def update!(**args)
|
6277
|
+
@active = args[:active] if args.key?(:active)
|
6278
|
+
@currency = args[:currency] if args.key?(:currency)
|
6279
|
+
@delivery_country = args[:delivery_country] if args.key?(:delivery_country)
|
6280
|
+
@delivery_time = args[:delivery_time] if args.key?(:delivery_time)
|
6281
|
+
@name = args[:name] if args.key?(:name)
|
6282
|
+
@rate_groups = args[:rate_groups] if args.key?(:rate_groups)
|
6283
|
+
end
|
6284
|
+
end
|
6285
|
+
|
6286
|
+
# The merchant account's shipping settings.
|
6287
|
+
class ShippingSettings
|
6288
|
+
include Google::Apis::Core::Hashable
|
6289
|
+
|
6290
|
+
# The ID of the account to which these account shipping settings belong. Ignored
|
6291
|
+
# upon update, always present in get request responses.
|
6292
|
+
# Corresponds to the JSON property `accountId`
|
6293
|
+
# @return [String]
|
6294
|
+
attr_accessor :account_id
|
6295
|
+
|
6296
|
+
# A list of postal code groups that can be referred to in services. Optional.
|
6297
|
+
# Corresponds to the JSON property `postalCodeGroups`
|
6298
|
+
# @return [Array<Google::Apis::ContentV2::PostalCodeGroup>]
|
6299
|
+
attr_accessor :postal_code_groups
|
6300
|
+
|
6301
|
+
# The target account's list of services. Optional.
|
6302
|
+
# Corresponds to the JSON property `services`
|
6303
|
+
# @return [Array<Google::Apis::ContentV2::Service>]
|
6304
|
+
attr_accessor :services
|
6305
|
+
|
6306
|
+
def initialize(**args)
|
6307
|
+
update!(**args)
|
6308
|
+
end
|
6309
|
+
|
6310
|
+
# Update properties of this object
|
6311
|
+
def update!(**args)
|
6312
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
6313
|
+
@postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
|
6314
|
+
@services = args[:services] if args.key?(:services)
|
6315
|
+
end
|
6316
|
+
end
|
6317
|
+
|
6318
|
+
#
|
6319
|
+
class ShippingsettingsCustomBatchRequest
|
6320
|
+
include Google::Apis::Core::Hashable
|
6321
|
+
|
6322
|
+
# The request entries to be processed in the batch.
|
6323
|
+
# Corresponds to the JSON property `entries`
|
6324
|
+
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry>]
|
6325
|
+
attr_accessor :entries
|
6326
|
+
|
6327
|
+
def initialize(**args)
|
6328
|
+
update!(**args)
|
6329
|
+
end
|
6330
|
+
|
6331
|
+
# Update properties of this object
|
6332
|
+
def update!(**args)
|
6333
|
+
@entries = args[:entries] if args.key?(:entries)
|
6334
|
+
end
|
6335
|
+
end
|
6336
|
+
|
6337
|
+
# A batch entry encoding a single non-batch accountshipping request.
|
6338
|
+
class ShippingsettingsCustomBatchRequestEntry
|
6339
|
+
include Google::Apis::Core::Hashable
|
6340
|
+
|
6341
|
+
# The ID of the account for which to get/update account shipping settings.
|
6342
|
+
# Corresponds to the JSON property `accountId`
|
6343
|
+
# @return [String]
|
6344
|
+
attr_accessor :account_id
|
6345
|
+
|
6346
|
+
# An entry ID, unique within the batch request.
|
6347
|
+
# Corresponds to the JSON property `batchId`
|
6348
|
+
# @return [Fixnum]
|
6349
|
+
attr_accessor :batch_id
|
6350
|
+
|
6351
|
+
# The ID of the managing account.
|
6352
|
+
# Corresponds to the JSON property `merchantId`
|
6353
|
+
# @return [String]
|
6354
|
+
attr_accessor :merchant_id
|
6355
|
+
|
6356
|
+
#
|
6357
|
+
# Corresponds to the JSON property `method`
|
6358
|
+
# @return [String]
|
6359
|
+
attr_accessor :method_prop
|
6360
|
+
|
6361
|
+
# The merchant account's shipping settings.
|
6362
|
+
# Corresponds to the JSON property `shippingSettings`
|
6363
|
+
# @return [Google::Apis::ContentV2::ShippingSettings]
|
6364
|
+
attr_accessor :shipping_settings
|
6365
|
+
|
6366
|
+
def initialize(**args)
|
6367
|
+
update!(**args)
|
6368
|
+
end
|
6369
|
+
|
6370
|
+
# Update properties of this object
|
6371
|
+
def update!(**args)
|
6372
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
6373
|
+
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
6374
|
+
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
6375
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
6376
|
+
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
6377
|
+
end
|
6378
|
+
end
|
6379
|
+
|
6380
|
+
#
|
6381
|
+
class ShippingsettingsCustomBatchResponse
|
6382
|
+
include Google::Apis::Core::Hashable
|
6383
|
+
|
6384
|
+
# The result of the execution of the batch requests.
|
6385
|
+
# Corresponds to the JSON property `entries`
|
6386
|
+
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry>]
|
6387
|
+
attr_accessor :entries
|
6388
|
+
|
6389
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6390
|
+
# shippingsettingsCustomBatchResponse".
|
6391
|
+
# Corresponds to the JSON property `kind`
|
6392
|
+
# @return [String]
|
6393
|
+
attr_accessor :kind
|
6394
|
+
|
6395
|
+
def initialize(**args)
|
6396
|
+
update!(**args)
|
6397
|
+
end
|
6398
|
+
|
6399
|
+
# Update properties of this object
|
6400
|
+
def update!(**args)
|
6401
|
+
@entries = args[:entries] if args.key?(:entries)
|
6402
|
+
@kind = args[:kind] if args.key?(:kind)
|
6403
|
+
end
|
6404
|
+
end
|
6405
|
+
|
6406
|
+
# A batch entry encoding a single non-batch shipping settings response.
|
6407
|
+
class ShippingsettingsCustomBatchResponseEntry
|
6408
|
+
include Google::Apis::Core::Hashable
|
6409
|
+
|
6410
|
+
# The ID of the request entry to which this entry responds.
|
6411
|
+
# Corresponds to the JSON property `batchId`
|
6412
|
+
# @return [Fixnum]
|
6413
|
+
attr_accessor :batch_id
|
6414
|
+
|
6415
|
+
# A list of errors returned by a failed batch entry.
|
6416
|
+
# Corresponds to the JSON property `errors`
|
6417
|
+
# @return [Google::Apis::ContentV2::Errors]
|
6418
|
+
attr_accessor :errors
|
6419
|
+
|
6420
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6421
|
+
# shippingsettingsCustomBatchResponseEntry".
|
6422
|
+
# Corresponds to the JSON property `kind`
|
6423
|
+
# @return [String]
|
6424
|
+
attr_accessor :kind
|
6425
|
+
|
6426
|
+
# The merchant account's shipping settings.
|
6427
|
+
# Corresponds to the JSON property `shippingSettings`
|
6428
|
+
# @return [Google::Apis::ContentV2::ShippingSettings]
|
6429
|
+
attr_accessor :shipping_settings
|
6430
|
+
|
6431
|
+
def initialize(**args)
|
6432
|
+
update!(**args)
|
6433
|
+
end
|
6434
|
+
|
6435
|
+
# Update properties of this object
|
6436
|
+
def update!(**args)
|
6437
|
+
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
6438
|
+
@errors = args[:errors] if args.key?(:errors)
|
6439
|
+
@kind = args[:kind] if args.key?(:kind)
|
6440
|
+
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
6441
|
+
end
|
6442
|
+
end
|
6443
|
+
|
6444
|
+
#
|
6445
|
+
class ShippingsettingsGetSupportedCarriersResponse
|
6446
|
+
include Google::Apis::Core::Hashable
|
6447
|
+
|
6448
|
+
# A list of supported carriers. May be empty.
|
6449
|
+
# Corresponds to the JSON property `carriers`
|
6450
|
+
# @return [Array<Google::Apis::ContentV2::CarriersCarrier>]
|
6451
|
+
attr_accessor :carriers
|
6452
|
+
|
6453
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6454
|
+
# shippingsettingsGetSupportedCarriersResponse".
|
6455
|
+
# Corresponds to the JSON property `kind`
|
6456
|
+
# @return [String]
|
6457
|
+
attr_accessor :kind
|
6458
|
+
|
6459
|
+
def initialize(**args)
|
6460
|
+
update!(**args)
|
6461
|
+
end
|
6462
|
+
|
6463
|
+
# Update properties of this object
|
6464
|
+
def update!(**args)
|
6465
|
+
@carriers = args[:carriers] if args.key?(:carriers)
|
6466
|
+
@kind = args[:kind] if args.key?(:kind)
|
6467
|
+
end
|
6468
|
+
end
|
6469
|
+
|
6470
|
+
#
|
6471
|
+
class ShippingsettingsListResponse
|
6472
|
+
include Google::Apis::Core::Hashable
|
6473
|
+
|
6474
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6475
|
+
# shippingsettingsListResponse".
|
6476
|
+
# Corresponds to the JSON property `kind`
|
6477
|
+
# @return [String]
|
6478
|
+
attr_accessor :kind
|
6479
|
+
|
6480
|
+
# The token for the retrieval of the next page of shipping settings.
|
6481
|
+
# Corresponds to the JSON property `nextPageToken`
|
6482
|
+
# @return [String]
|
6483
|
+
attr_accessor :next_page_token
|
6484
|
+
|
6485
|
+
#
|
6486
|
+
# Corresponds to the JSON property `resources`
|
6487
|
+
# @return [Array<Google::Apis::ContentV2::ShippingSettings>]
|
6488
|
+
attr_accessor :resources
|
6489
|
+
|
6490
|
+
def initialize(**args)
|
6491
|
+
update!(**args)
|
6492
|
+
end
|
6493
|
+
|
6494
|
+
# Update properties of this object
|
6495
|
+
def update!(**args)
|
6496
|
+
@kind = args[:kind] if args.key?(:kind)
|
6497
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
6498
|
+
@resources = args[:resources] if args.key?(:resources)
|
6499
|
+
end
|
6500
|
+
end
|
6501
|
+
|
6502
|
+
#
|
6503
|
+
class Table
|
6504
|
+
include Google::Apis::Core::Hashable
|
6505
|
+
|
6506
|
+
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
6507
|
+
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
6508
|
+
# Corresponds to the JSON property `columnHeaders`
|
6509
|
+
# @return [Google::Apis::ContentV2::Headers]
|
6510
|
+
attr_accessor :column_headers
|
6511
|
+
|
6512
|
+
# Name of the table. Required for subtables, ignored for the main table.
|
6513
|
+
# Corresponds to the JSON property `name`
|
6514
|
+
# @return [String]
|
6515
|
+
attr_accessor :name
|
6516
|
+
|
6517
|
+
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
6518
|
+
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
6519
|
+
# Corresponds to the JSON property `rowHeaders`
|
6520
|
+
# @return [Google::Apis::ContentV2::Headers]
|
6521
|
+
attr_accessor :row_headers
|
6522
|
+
|
6523
|
+
# The list of rows that constitute the table. Must have the same length as
|
6524
|
+
# rowHeaders. Required.
|
6525
|
+
# Corresponds to the JSON property `rows`
|
6526
|
+
# @return [Array<Google::Apis::ContentV2::Row>]
|
6527
|
+
attr_accessor :rows
|
6528
|
+
|
6529
|
+
def initialize(**args)
|
6530
|
+
update!(**args)
|
6531
|
+
end
|
6532
|
+
|
6533
|
+
# Update properties of this object
|
6534
|
+
def update!(**args)
|
6535
|
+
@column_headers = args[:column_headers] if args.key?(:column_headers)
|
6536
|
+
@name = args[:name] if args.key?(:name)
|
6537
|
+
@row_headers = args[:row_headers] if args.key?(:row_headers)
|
6538
|
+
@rows = args[:rows] if args.key?(:rows)
|
6539
|
+
end
|
6540
|
+
end
|
6541
|
+
|
5823
6542
|
#
|
5824
6543
|
class TestOrder
|
5825
6544
|
include Google::Apis::Core::Hashable
|
@@ -5901,8 +6620,7 @@ module Google
|
|
5901
6620
|
# If set, this indicates the user explicitly chose to opt in or out of providing
|
5902
6621
|
# marketing rights to the merchant. If unset, this indicates the user has
|
5903
6622
|
# already made this choice in a previous purchase, and was thus not shown the
|
5904
|
-
# marketing right opt in/out checkbox during the
|
5905
|
-
# flow. Optional.
|
6623
|
+
# marketing right opt in/out checkbox during the checkout flow. Optional.
|
5906
6624
|
# Corresponds to the JSON property `explicitMarketingPreference`
|
5907
6625
|
# @return [Boolean]
|
5908
6626
|
attr_accessor :explicit_marketing_preference
|
@@ -6103,6 +6821,56 @@ module Google
|
|
6103
6821
|
end
|
6104
6822
|
end
|
6105
6823
|
|
6824
|
+
# The single value of a rate group or the value of a rate group table's cell.
|
6825
|
+
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
6826
|
+
# subtableName must be set.
|
6827
|
+
class Value
|
6828
|
+
include Google::Apis::Core::Hashable
|
6829
|
+
|
6830
|
+
# The name of a carrier rate referring to a carrier rate defined in the same
|
6831
|
+
# rate group. Can only be set if all other fields are not set.
|
6832
|
+
# Corresponds to the JSON property `carrierRateName`
|
6833
|
+
# @return [String]
|
6834
|
+
attr_accessor :carrier_rate_name
|
6835
|
+
|
6836
|
+
# A flat rate. Can only be set if all other fields are not set.
|
6837
|
+
# Corresponds to the JSON property `flatRate`
|
6838
|
+
# @return [Google::Apis::ContentV2::Price]
|
6839
|
+
attr_accessor :flat_rate
|
6840
|
+
|
6841
|
+
# If true, then the product can't ship. Must be true when set, can only be set
|
6842
|
+
# if all other fields are not set.
|
6843
|
+
# Corresponds to the JSON property `noShipping`
|
6844
|
+
# @return [Boolean]
|
6845
|
+
attr_accessor :no_shipping
|
6846
|
+
alias_method :no_shipping?, :no_shipping
|
6847
|
+
|
6848
|
+
# A percentage of the price represented as a number in decimal notation (e.g., "
|
6849
|
+
# 5.4"). Can only be set if all other fields are not set.
|
6850
|
+
# Corresponds to the JSON property `pricePercentage`
|
6851
|
+
# @return [String]
|
6852
|
+
attr_accessor :price_percentage
|
6853
|
+
|
6854
|
+
# The name of a subtable. Can only be set in table cells (i.e., not for single
|
6855
|
+
# values), and only if all other fields are not set.
|
6856
|
+
# Corresponds to the JSON property `subtableName`
|
6857
|
+
# @return [String]
|
6858
|
+
attr_accessor :subtable_name
|
6859
|
+
|
6860
|
+
def initialize(**args)
|
6861
|
+
update!(**args)
|
6862
|
+
end
|
6863
|
+
|
6864
|
+
# Update properties of this object
|
6865
|
+
def update!(**args)
|
6866
|
+
@carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name)
|
6867
|
+
@flat_rate = args[:flat_rate] if args.key?(:flat_rate)
|
6868
|
+
@no_shipping = args[:no_shipping] if args.key?(:no_shipping)
|
6869
|
+
@price_percentage = args[:price_percentage] if args.key?(:price_percentage)
|
6870
|
+
@subtable_name = args[:subtable_name] if args.key?(:subtable_name)
|
6871
|
+
end
|
6872
|
+
end
|
6873
|
+
|
6106
6874
|
#
|
6107
6875
|
class Weight
|
6108
6876
|
include Google::Apis::Core::Hashable
|