google-api-client 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- 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 +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- 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 +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- 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_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
|
@@ -48,629 +48,672 @@ module Google
|
|
|
48
48
|
@batch_path = 'batch'
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
51
|
+
# Lists analytics data for a user's associated company.
|
|
52
|
+
# Should only be called within the context of an authorized logged in user.
|
|
53
|
+
# @param [Fixnum] page_size
|
|
54
|
+
# Requested page size. Server may return fewer analytics than requested.
|
|
55
|
+
# If unspecified or set to 0, default value is 30.
|
|
56
|
+
# Specifies the number of days in the date range when querying analytics.
|
|
57
|
+
# The `page_token` represents the end date of the date range
|
|
58
|
+
# and the start date is calculated using the `page_size` as the number
|
|
59
|
+
# of days BEFORE the end date.
|
|
60
|
+
# Must be a non-negative integer.
|
|
61
|
+
# @param [String] page_token
|
|
62
|
+
# A token identifying a page of results that the server returns.
|
|
63
|
+
# Typically, this is the value of `ListAnalyticsResponse.next_page_token`
|
|
64
|
+
# returned from the previous call to
|
|
65
|
+
# ListAnalytics.
|
|
66
|
+
# Will be a date string in `YYYY-MM-DD` format representing the end date
|
|
67
|
+
# of the date range of results to return.
|
|
68
|
+
# If unspecified or set to "", default value is the current date.
|
|
69
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
70
|
+
# Experiment IDs the current request belongs to.
|
|
71
|
+
# @param [String] request_metadata_locale
|
|
72
|
+
# Locale to use for the current request.
|
|
73
|
+
# @param [String] request_metadata_partners_session_id
|
|
74
|
+
# Google Partners session ID.
|
|
75
|
+
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
76
|
+
# Identifier to indicate where the traffic comes from.
|
|
77
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
78
|
+
# traffic to us.
|
|
79
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
80
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
81
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
82
|
+
# traffic to us.
|
|
83
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
84
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
85
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
86
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
87
|
+
# @param [String] fields
|
|
88
|
+
# Selector specifying which fields to include in a partial response.
|
|
55
89
|
# @param [String] quota_user
|
|
56
90
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
57
91
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
58
|
-
# @param [String] fields
|
|
59
|
-
# Selector specifying which fields to include in a partial response.
|
|
60
92
|
# @param [Google::Apis::RequestOptions] options
|
|
61
93
|
# Request-specific options
|
|
62
94
|
#
|
|
63
95
|
# @yield [result, err] Result & error if block supplied
|
|
64
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
96
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListAnalyticsResponse] parsed result object
|
|
65
97
|
# @yieldparam err [StandardError] error object if request failed
|
|
66
98
|
#
|
|
67
|
-
# @return [Google::Apis::PartnersV2::
|
|
99
|
+
# @return [Google::Apis::PartnersV2::ListAnalyticsResponse]
|
|
68
100
|
#
|
|
69
101
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
70
102
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
71
103
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
72
|
-
def
|
|
73
|
-
command = make_simple_command(:
|
|
74
|
-
command.
|
|
75
|
-
command.
|
|
76
|
-
command.
|
|
77
|
-
command.
|
|
78
|
-
command.query['
|
|
104
|
+
def list_analytics(page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
105
|
+
command = make_simple_command(:get, 'v2/analytics', options)
|
|
106
|
+
command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation
|
|
107
|
+
command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse
|
|
108
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
109
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
110
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
111
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
112
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
113
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
114
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
115
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
116
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
79
117
|
command.query['fields'] = fields unless fields.nil?
|
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
119
|
execute_or_queue_command(command, &block)
|
|
81
120
|
end
|
|
82
121
|
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
# @param [
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
# Second level identifier to indicate where the traffic comes from.
|
|
90
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
91
|
-
# traffic to us.
|
|
92
|
-
# @param [String] request_metadata_partners_session_id
|
|
93
|
-
# Google Partners session ID.
|
|
94
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
95
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
96
|
-
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
97
|
-
# Identifier to indicate where the traffic comes from.
|
|
98
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
99
|
-
# traffic to us.
|
|
100
|
-
# @param [String] request_metadata_locale
|
|
101
|
-
# Locale to use for the current request.
|
|
102
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
103
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
122
|
+
# Logs a generic message from the client, such as
|
|
123
|
+
# `Failed to render component`, `Profile page is running slow`,
|
|
124
|
+
# `More than 500 users have accessed this result.`, etc.
|
|
125
|
+
# @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
|
|
126
|
+
# @param [String] fields
|
|
127
|
+
# Selector specifying which fields to include in a partial response.
|
|
104
128
|
# @param [String] quota_user
|
|
105
129
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
106
130
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
107
|
-
# @param [String] fields
|
|
108
|
-
# Selector specifying which fields to include in a partial response.
|
|
109
131
|
# @param [Google::Apis::RequestOptions] options
|
|
110
132
|
# Request-specific options
|
|
111
133
|
#
|
|
112
134
|
# @yield [result, err] Result & error if block supplied
|
|
113
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
135
|
+
# @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
|
|
114
136
|
# @yieldparam err [StandardError] error object if request failed
|
|
115
137
|
#
|
|
116
|
-
# @return [Google::Apis::PartnersV2::
|
|
138
|
+
# @return [Google::Apis::PartnersV2::LogMessageResponse]
|
|
117
139
|
#
|
|
118
140
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
119
141
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
120
142
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
121
|
-
def
|
|
122
|
-
command = make_simple_command(:
|
|
123
|
-
command.
|
|
124
|
-
command.
|
|
125
|
-
command.
|
|
126
|
-
command.
|
|
127
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
128
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
129
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
130
|
-
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
131
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
132
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
133
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
143
|
+
def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
144
|
+
command = make_simple_command(:post, 'v2/clientMessages:log', options)
|
|
145
|
+
command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
|
|
146
|
+
command.request_object = log_message_request_object
|
|
147
|
+
command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
|
|
148
|
+
command.response_class = Google::Apis::PartnersV2::LogMessageResponse
|
|
134
149
|
command.query['fields'] = fields unless fields.nil?
|
|
150
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
135
151
|
execute_or_queue_command(command, &block)
|
|
136
152
|
end
|
|
137
153
|
|
|
138
|
-
#
|
|
139
|
-
#
|
|
154
|
+
# Gets a company.
|
|
155
|
+
# @param [String] company_id
|
|
156
|
+
# The ID of the company to retrieve.
|
|
157
|
+
# @param [String] address
|
|
158
|
+
# The address to use for sorting the company's addresses by proximity.
|
|
159
|
+
# If not given, the geo-located address of the request is used.
|
|
160
|
+
# Used when order_by is set.
|
|
161
|
+
# @param [String] currency_code
|
|
162
|
+
# If the company's budget is in a different currency code than this one, then
|
|
163
|
+
# the converted budget is converted to this currency code.
|
|
164
|
+
# @param [String] order_by
|
|
165
|
+
# How to order addresses within the returned company. Currently, only
|
|
166
|
+
# `address` and `address desc` is supported which will sorted by closest to
|
|
167
|
+
# farthest in distance from given address and farthest to closest distance
|
|
168
|
+
# from given address respectively.
|
|
140
169
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
141
170
|
# Experiment IDs the current request belongs to.
|
|
142
|
-
# @param [String]
|
|
143
|
-
#
|
|
144
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
145
|
-
# traffic to us.
|
|
146
|
-
# @param [String] order_by
|
|
147
|
-
# How to order Leads. Currently, only `create_time`
|
|
148
|
-
# and `create_time desc` are supported
|
|
149
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
150
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
171
|
+
# @param [String] request_metadata_locale
|
|
172
|
+
# Locale to use for the current request.
|
|
151
173
|
# @param [String] request_metadata_partners_session_id
|
|
152
174
|
# Google Partners session ID.
|
|
153
|
-
# @param [String] page_token
|
|
154
|
-
# A token identifying a page of results that the server returns.
|
|
155
|
-
# Typically, this is the value of `ListLeadsResponse.next_page_token`
|
|
156
|
-
# returned from the previous call to
|
|
157
|
-
# ListLeads.
|
|
158
|
-
# @param [Fixnum] page_size
|
|
159
|
-
# Requested page size. Server may return fewer leads than requested.
|
|
160
|
-
# If unspecified, server picks an appropriate default.
|
|
161
175
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
162
176
|
# Identifier to indicate where the traffic comes from.
|
|
163
177
|
# An identifier has multiple letters created by a team which redirected the
|
|
164
178
|
# traffic to us.
|
|
165
|
-
# @param [String]
|
|
166
|
-
#
|
|
179
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
180
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
181
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
182
|
+
# traffic to us.
|
|
167
183
|
# @param [String] request_metadata_user_overrides_ip_address
|
|
168
184
|
# IP address to use instead of the user's geo-located IP address.
|
|
185
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
186
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
187
|
+
# @param [String] view
|
|
188
|
+
# The view of `Company` resource to be returned. This must not be
|
|
189
|
+
# `COMPANY_VIEW_UNSPECIFIED`.
|
|
190
|
+
# @param [String] fields
|
|
191
|
+
# Selector specifying which fields to include in a partial response.
|
|
169
192
|
# @param [String] quota_user
|
|
170
193
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
171
194
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
172
|
-
# @param [String] fields
|
|
173
|
-
# Selector specifying which fields to include in a partial response.
|
|
174
195
|
# @param [Google::Apis::RequestOptions] options
|
|
175
196
|
# Request-specific options
|
|
176
197
|
#
|
|
177
198
|
# @yield [result, err] Result & error if block supplied
|
|
178
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
199
|
+
# @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object
|
|
179
200
|
# @yieldparam err [StandardError] error object if request failed
|
|
180
201
|
#
|
|
181
|
-
# @return [Google::Apis::PartnersV2::
|
|
202
|
+
# @return [Google::Apis::PartnersV2::GetCompanyResponse]
|
|
182
203
|
#
|
|
183
204
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
184
205
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
185
206
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
186
|
-
def
|
|
187
|
-
command = make_simple_command(:get, 'v2/
|
|
188
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
189
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
190
|
-
command.
|
|
191
|
-
command.query['
|
|
207
|
+
def get_company(company_id, address: nil, currency_code: nil, order_by: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
208
|
+
command = make_simple_command(:get, 'v2/companies/{companyId}', options)
|
|
209
|
+
command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
|
|
210
|
+
command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
|
|
211
|
+
command.params['companyId'] = company_id unless company_id.nil?
|
|
212
|
+
command.query['address'] = address unless address.nil?
|
|
213
|
+
command.query['currencyCode'] = currency_code unless currency_code.nil?
|
|
192
214
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
193
|
-
command.query['requestMetadata.
|
|
215
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
216
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
194
217
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
195
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
196
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
197
218
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
198
|
-
command.query['requestMetadata.
|
|
219
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
199
220
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
200
|
-
command.query['
|
|
221
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
222
|
+
command.query['view'] = view unless view.nil?
|
|
201
223
|
command.query['fields'] = fields unless fields.nil?
|
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
202
225
|
execute_or_queue_command(command, &block)
|
|
203
226
|
end
|
|
204
227
|
|
|
205
|
-
# Lists
|
|
206
|
-
# @param [String]
|
|
207
|
-
#
|
|
228
|
+
# Lists companies.
|
|
229
|
+
# @param [String] address
|
|
230
|
+
# The address to use when searching for companies.
|
|
231
|
+
# If not given, the geo-located address of the request is used.
|
|
232
|
+
# @param [String] company_name
|
|
233
|
+
# Company name to search for.
|
|
234
|
+
# @param [Array<String>, String] gps_motivations
|
|
235
|
+
# List of reasons for using Google Partner Search to get companies.
|
|
236
|
+
# @param [Array<String>, String] industries
|
|
237
|
+
# List of industries the company can help with.
|
|
238
|
+
# @param [Array<String>, String] language_codes
|
|
239
|
+
# List of language codes that company can support. Only primary language
|
|
240
|
+
# subtags are accepted as defined by
|
|
241
|
+
# <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
|
|
242
|
+
# (IETF BCP 47, "Tags for Identifying Languages").
|
|
243
|
+
# @param [String] max_monthly_budget_currency_code
|
|
244
|
+
# The 3-letter currency code defined in ISO 4217.
|
|
245
|
+
# @param [Fixnum] max_monthly_budget_nanos
|
|
246
|
+
# Number of nano (10^-9) units of the amount.
|
|
247
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
248
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
|
249
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
250
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
|
251
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
252
|
+
# @param [Fixnum] max_monthly_budget_units
|
|
253
|
+
# The whole units of the amount.
|
|
254
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
255
|
+
# @param [String] min_monthly_budget_currency_code
|
|
256
|
+
# The 3-letter currency code defined in ISO 4217.
|
|
257
|
+
# @param [Fixnum] min_monthly_budget_nanos
|
|
258
|
+
# Number of nano (10^-9) units of the amount.
|
|
259
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
260
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
|
261
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
262
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
|
263
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
264
|
+
# @param [Fixnum] min_monthly_budget_units
|
|
265
|
+
# The whole units of the amount.
|
|
266
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
267
|
+
# @param [String] order_by
|
|
268
|
+
# How to order addresses within the returned companies. Currently, only
|
|
269
|
+
# `address` and `address desc` is supported which will sorted by closest to
|
|
270
|
+
# farthest in distance from given address and farthest to closest distance
|
|
271
|
+
# from given address respectively.
|
|
272
|
+
# @param [Fixnum] page_size
|
|
273
|
+
# Requested page size. Server may return fewer companies than requested.
|
|
274
|
+
# If unspecified, server picks an appropriate default.
|
|
275
|
+
# @param [String] page_token
|
|
276
|
+
# A token identifying a page of results that the server returns.
|
|
277
|
+
# Typically, this is the value of `ListCompaniesResponse.next_page_token`
|
|
278
|
+
# returned from the previous call to
|
|
279
|
+
# ListCompanies.
|
|
280
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
281
|
+
# Experiment IDs the current request belongs to.
|
|
282
|
+
# @param [String] request_metadata_locale
|
|
283
|
+
# Locale to use for the current request.
|
|
208
284
|
# @param [String] request_metadata_partners_session_id
|
|
209
285
|
# Google Partners session ID.
|
|
210
286
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
211
287
|
# Identifier to indicate where the traffic comes from.
|
|
212
288
|
# An identifier has multiple letters created by a team which redirected the
|
|
213
289
|
# traffic to us.
|
|
214
|
-
# @param [String] request_metadata_locale
|
|
215
|
-
# Locale to use for the current request.
|
|
216
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
217
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
218
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
219
|
-
# Experiment IDs the current request belongs to.
|
|
220
290
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
221
291
|
# Second level identifier to indicate where the traffic comes from.
|
|
222
292
|
# An identifier has multiple letters created by a team which redirected the
|
|
223
293
|
# traffic to us.
|
|
294
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
295
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
296
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
297
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
298
|
+
# @param [Array<String>, String] services
|
|
299
|
+
# List of services that the returned agencies should provide. If this is
|
|
300
|
+
# not empty, any returned agency must have at least one of these services,
|
|
301
|
+
# or one of the specializations in the "specializations" field.
|
|
302
|
+
# @param [Array<String>, String] specializations
|
|
303
|
+
# List of specializations that the returned agencies should provide. If this
|
|
304
|
+
# is not empty, any returned agency must have at least one of these
|
|
305
|
+
# specializations, or one of the services in the "services" field.
|
|
306
|
+
# @param [String] view
|
|
307
|
+
# The view of the `Company` resource to be returned. This must not be
|
|
308
|
+
# `COMPANY_VIEW_UNSPECIFIED`.
|
|
309
|
+
# @param [String] website_url
|
|
310
|
+
# Website URL that will help to find a better matched company.
|
|
311
|
+
# .
|
|
312
|
+
# @param [String] fields
|
|
313
|
+
# Selector specifying which fields to include in a partial response.
|
|
224
314
|
# @param [String] quota_user
|
|
225
315
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
226
316
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
227
|
-
# @param [String] fields
|
|
228
|
-
# Selector specifying which fields to include in a partial response.
|
|
229
317
|
# @param [Google::Apis::RequestOptions] options
|
|
230
318
|
# Request-specific options
|
|
231
319
|
#
|
|
232
320
|
# @yield [result, err] Result & error if block supplied
|
|
233
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
321
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListCompaniesResponse] parsed result object
|
|
234
322
|
# @yieldparam err [StandardError] error object if request failed
|
|
235
323
|
#
|
|
236
|
-
# @return [Google::Apis::PartnersV2::
|
|
324
|
+
# @return [Google::Apis::PartnersV2::ListCompaniesResponse]
|
|
237
325
|
#
|
|
238
326
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
239
327
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
240
328
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
241
|
-
def
|
|
242
|
-
command = make_simple_command(:get, 'v2/
|
|
243
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
244
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
245
|
-
command.query['
|
|
329
|
+
def list_companies(address: nil, company_name: nil, gps_motivations: nil, industries: nil, language_codes: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_nanos: nil, max_monthly_budget_units: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_nanos: nil, min_monthly_budget_units: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, services: nil, specializations: nil, view: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
330
|
+
command = make_simple_command(:get, 'v2/companies', options)
|
|
331
|
+
command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
|
|
332
|
+
command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
|
|
333
|
+
command.query['address'] = address unless address.nil?
|
|
334
|
+
command.query['companyName'] = company_name unless company_name.nil?
|
|
335
|
+
command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
|
|
336
|
+
command.query['industries'] = industries unless industries.nil?
|
|
337
|
+
command.query['languageCodes'] = language_codes unless language_codes.nil?
|
|
338
|
+
command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
|
|
339
|
+
command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
|
|
340
|
+
command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
|
|
341
|
+
command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
|
|
342
|
+
command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
|
|
343
|
+
command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
|
|
344
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
345
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
346
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
347
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
348
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
246
349
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
247
350
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
248
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
249
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
250
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
251
351
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
252
|
-
command.query['
|
|
352
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
353
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
354
|
+
command.query['services'] = services unless services.nil?
|
|
355
|
+
command.query['specializations'] = specializations unless specializations.nil?
|
|
356
|
+
command.query['view'] = view unless view.nil?
|
|
357
|
+
command.query['websiteUrl'] = website_url unless website_url.nil?
|
|
253
358
|
command.query['fields'] = fields unless fields.nil?
|
|
359
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
254
360
|
execute_or_queue_command(command, &block)
|
|
255
361
|
end
|
|
256
362
|
|
|
257
|
-
#
|
|
258
|
-
# @param [String]
|
|
259
|
-
#
|
|
260
|
-
# @param [
|
|
261
|
-
#
|
|
262
|
-
#
|
|
263
|
-
# Experiment IDs the current request belongs to.
|
|
264
|
-
# @param [Boolean] entire_company
|
|
265
|
-
# if true, show history for the entire company. Requires user to be admin.
|
|
266
|
-
# @param [String] order_by
|
|
267
|
-
# Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
|
|
268
|
-
# Use "foo desc" to sort descending.
|
|
269
|
-
# List of valid field names is: name, offer_code, expiration_time, status,
|
|
270
|
-
# last_modified_time, sender_name, creation_time, country_code,
|
|
271
|
-
# offer_type.
|
|
272
|
-
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
273
|
-
# Second level identifier to indicate where the traffic comes from.
|
|
274
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
275
|
-
# traffic to us.
|
|
276
|
-
# @param [String] request_metadata_partners_session_id
|
|
277
|
-
# Google Partners session ID.
|
|
278
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
279
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
280
|
-
# @param [String] page_token
|
|
281
|
-
# Token to retrieve a specific page.
|
|
282
|
-
# @param [Fixnum] page_size
|
|
283
|
-
# Maximum number of rows to return per page.
|
|
284
|
-
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
285
|
-
# Identifier to indicate where the traffic comes from.
|
|
286
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
287
|
-
# traffic to us.
|
|
363
|
+
# Creates an advertiser lead for the given company ID.
|
|
364
|
+
# @param [String] company_id
|
|
365
|
+
# The ID of the company to contact.
|
|
366
|
+
# @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
|
|
367
|
+
# @param [String] fields
|
|
368
|
+
# Selector specifying which fields to include in a partial response.
|
|
288
369
|
# @param [String] quota_user
|
|
289
370
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
290
371
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
291
|
-
# @param [String] fields
|
|
292
|
-
# Selector specifying which fields to include in a partial response.
|
|
293
372
|
# @param [Google::Apis::RequestOptions] options
|
|
294
373
|
# Request-specific options
|
|
295
374
|
#
|
|
296
375
|
# @yield [result, err] Result & error if block supplied
|
|
297
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
376
|
+
# @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object
|
|
298
377
|
# @yieldparam err [StandardError] error object if request failed
|
|
299
378
|
#
|
|
300
|
-
# @return [Google::Apis::PartnersV2::
|
|
379
|
+
# @return [Google::Apis::PartnersV2::CreateLeadResponse]
|
|
301
380
|
#
|
|
302
381
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
303
382
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
304
383
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
305
|
-
def
|
|
306
|
-
command = make_simple_command(:
|
|
307
|
-
command.
|
|
308
|
-
command.
|
|
309
|
-
command.
|
|
310
|
-
command.
|
|
311
|
-
command.
|
|
312
|
-
command.query['entireCompany'] = entire_company unless entire_company.nil?
|
|
313
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
|
314
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
315
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
316
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
317
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
318
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
319
|
-
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
320
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
384
|
+
def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
385
|
+
command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
|
|
386
|
+
command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
|
|
387
|
+
command.request_object = create_lead_request_object
|
|
388
|
+
command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
|
|
389
|
+
command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
|
|
390
|
+
command.params['companyId'] = company_id unless company_id.nil?
|
|
321
391
|
command.query['fields'] = fields unless fields.nil?
|
|
392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
322
393
|
execute_or_queue_command(command, &block)
|
|
323
394
|
end
|
|
324
395
|
|
|
325
|
-
#
|
|
326
|
-
# @param [String]
|
|
327
|
-
#
|
|
396
|
+
# Gets an Exam Token for a Partner's user to take an exam in the Exams System
|
|
397
|
+
# @param [String] exam_type
|
|
398
|
+
# The exam type we are requesting a token for.
|
|
399
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
400
|
+
# Experiment IDs the current request belongs to.
|
|
401
|
+
# @param [String] request_metadata_locale
|
|
402
|
+
# Locale to use for the current request.
|
|
328
403
|
# @param [String] request_metadata_partners_session_id
|
|
329
404
|
# Google Partners session ID.
|
|
330
405
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
331
406
|
# Identifier to indicate where the traffic comes from.
|
|
332
407
|
# An identifier has multiple letters created by a team which redirected the
|
|
333
408
|
# traffic to us.
|
|
334
|
-
# @param [String] request_metadata_locale
|
|
335
|
-
# Locale to use for the current request.
|
|
336
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
337
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
338
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
339
|
-
# Experiment IDs the current request belongs to.
|
|
340
409
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
341
410
|
# Second level identifier to indicate where the traffic comes from.
|
|
342
411
|
# An identifier has multiple letters created by a team which redirected the
|
|
343
412
|
# traffic to us.
|
|
413
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
414
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
415
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
416
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
417
|
+
# @param [String] fields
|
|
418
|
+
# Selector specifying which fields to include in a partial response.
|
|
344
419
|
# @param [String] quota_user
|
|
345
420
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
346
421
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
347
|
-
# @param [String] fields
|
|
348
|
-
# Selector specifying which fields to include in a partial response.
|
|
349
422
|
# @param [Google::Apis::RequestOptions] options
|
|
350
423
|
# Request-specific options
|
|
351
424
|
#
|
|
352
425
|
# @yield [result, err] Result & error if block supplied
|
|
353
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
426
|
+
# @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object
|
|
354
427
|
# @yieldparam err [StandardError] error object if request failed
|
|
355
428
|
#
|
|
356
|
-
# @return [Google::Apis::PartnersV2::
|
|
429
|
+
# @return [Google::Apis::PartnersV2::ExamToken]
|
|
357
430
|
#
|
|
358
431
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
359
432
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
360
433
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
361
|
-
def
|
|
362
|
-
command = make_simple_command(:get, 'v2/
|
|
363
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
364
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
365
|
-
command.
|
|
434
|
+
def get_exam_token(exam_type, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
435
|
+
command = make_simple_command(:get, 'v2/exams/{examType}/token', options)
|
|
436
|
+
command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation
|
|
437
|
+
command.response_class = Google::Apis::PartnersV2::ExamToken
|
|
438
|
+
command.params['examType'] = exam_type unless exam_type.nil?
|
|
439
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
440
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
366
441
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
367
442
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
368
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
369
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
370
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
371
443
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
372
|
-
command.query['
|
|
444
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
445
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
373
446
|
command.query['fields'] = fields unless fields.nil?
|
|
447
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
374
448
|
execute_or_queue_command(command, &block)
|
|
375
449
|
end
|
|
376
450
|
|
|
377
|
-
# Lists
|
|
451
|
+
# Lists advertiser leads for a user's associated company.
|
|
378
452
|
# Should only be called within the context of an authorized logged in user.
|
|
379
|
-
# @param [String]
|
|
380
|
-
#
|
|
453
|
+
# @param [String] order_by
|
|
454
|
+
# How to order Leads. Currently, only `create_time`
|
|
455
|
+
# and `create_time desc` are supported
|
|
456
|
+
# @param [Fixnum] page_size
|
|
457
|
+
# Requested page size. Server may return fewer leads than requested.
|
|
458
|
+
# If unspecified, server picks an appropriate default.
|
|
459
|
+
# @param [String] page_token
|
|
460
|
+
# A token identifying a page of results that the server returns.
|
|
461
|
+
# Typically, this is the value of `ListLeadsResponse.next_page_token`
|
|
462
|
+
# returned from the previous call to
|
|
463
|
+
# ListLeads.
|
|
381
464
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
382
465
|
# Experiment IDs the current request belongs to.
|
|
383
|
-
# @param [String]
|
|
384
|
-
#
|
|
385
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
386
|
-
# traffic to us.
|
|
387
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
388
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
466
|
+
# @param [String] request_metadata_locale
|
|
467
|
+
# Locale to use for the current request.
|
|
389
468
|
# @param [String] request_metadata_partners_session_id
|
|
390
469
|
# Google Partners session ID.
|
|
391
|
-
# @param [String] page_token
|
|
392
|
-
# A token identifying a page of results that the server returns.
|
|
393
|
-
# Typically, this is the value of `ListAnalyticsResponse.next_page_token`
|
|
394
|
-
# returned from the previous call to
|
|
395
|
-
# ListAnalytics.
|
|
396
|
-
# Will be a date string in `YYYY-MM-DD` format representing the end date
|
|
397
|
-
# of the date range of results to return.
|
|
398
|
-
# If unspecified or set to "", default value is the current date.
|
|
399
|
-
# @param [Fixnum] page_size
|
|
400
|
-
# Requested page size. Server may return fewer analytics than requested.
|
|
401
|
-
# If unspecified or set to 0, default value is 30.
|
|
402
|
-
# Specifies the number of days in the date range when querying analytics.
|
|
403
|
-
# The `page_token` represents the end date of the date range
|
|
404
|
-
# and the start date is calculated using the `page_size` as the number
|
|
405
|
-
# of days BEFORE the end date.
|
|
406
|
-
# Must be a non-negative integer.
|
|
407
470
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
408
471
|
# Identifier to indicate where the traffic comes from.
|
|
409
472
|
# An identifier has multiple letters created by a team which redirected the
|
|
410
473
|
# traffic to us.
|
|
411
|
-
# @param [String]
|
|
412
|
-
#
|
|
474
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
475
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
476
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
477
|
+
# traffic to us.
|
|
478
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
479
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
480
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
481
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
482
|
+
# @param [String] fields
|
|
483
|
+
# Selector specifying which fields to include in a partial response.
|
|
413
484
|
# @param [String] quota_user
|
|
414
485
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
415
486
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
416
|
-
# @param [String] fields
|
|
417
|
-
# Selector specifying which fields to include in a partial response.
|
|
418
487
|
# @param [Google::Apis::RequestOptions] options
|
|
419
488
|
# Request-specific options
|
|
420
489
|
#
|
|
421
490
|
# @yield [result, err] Result & error if block supplied
|
|
422
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
491
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListLeadsResponse] parsed result object
|
|
423
492
|
# @yieldparam err [StandardError] error object if request failed
|
|
424
493
|
#
|
|
425
|
-
# @return [Google::Apis::PartnersV2::
|
|
494
|
+
# @return [Google::Apis::PartnersV2::ListLeadsResponse]
|
|
426
495
|
#
|
|
427
496
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
428
497
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
429
498
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
430
|
-
def
|
|
431
|
-
command = make_simple_command(:get, 'v2/
|
|
432
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
433
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
434
|
-
command.query['
|
|
499
|
+
def list_leads(order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
500
|
+
command = make_simple_command(:get, 'v2/leads', options)
|
|
501
|
+
command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation
|
|
502
|
+
command.response_class = Google::Apis::PartnersV2::ListLeadsResponse
|
|
503
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
504
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
505
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
435
506
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
436
|
-
command.query['requestMetadata.
|
|
437
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
507
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
438
508
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
439
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
440
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
441
509
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
442
|
-
command.query['requestMetadata.
|
|
443
|
-
command.query['
|
|
510
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
511
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
512
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
444
513
|
command.query['fields'] = fields unless fields.nil?
|
|
514
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
445
515
|
execute_or_queue_command(command, &block)
|
|
446
516
|
end
|
|
447
517
|
|
|
448
|
-
#
|
|
449
|
-
#
|
|
518
|
+
# Lists the Offers available for the current user
|
|
519
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
520
|
+
# Experiment IDs the current request belongs to.
|
|
521
|
+
# @param [String] request_metadata_locale
|
|
522
|
+
# Locale to use for the current request.
|
|
450
523
|
# @param [String] request_metadata_partners_session_id
|
|
451
524
|
# Google Partners session ID.
|
|
452
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
453
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
454
525
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
455
526
|
# Identifier to indicate where the traffic comes from.
|
|
456
527
|
# An identifier has multiple letters created by a team which redirected the
|
|
457
528
|
# traffic to us.
|
|
458
|
-
# @param [String] request_metadata_locale
|
|
459
|
-
# Locale to use for the current request.
|
|
460
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
461
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
462
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
463
|
-
# Experiment IDs the current request belongs to.
|
|
464
529
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
465
530
|
# Second level identifier to indicate where the traffic comes from.
|
|
466
531
|
# An identifier has multiple letters created by a team which redirected the
|
|
467
532
|
# traffic to us.
|
|
533
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
534
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
535
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
536
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
537
|
+
# @param [String] fields
|
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
|
468
539
|
# @param [String] quota_user
|
|
469
540
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
470
541
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
471
|
-
# @param [String] fields
|
|
472
|
-
# Selector specifying which fields to include in a partial response.
|
|
473
542
|
# @param [Google::Apis::RequestOptions] options
|
|
474
543
|
# Request-specific options
|
|
475
544
|
#
|
|
476
545
|
# @yield [result, err] Result & error if block supplied
|
|
477
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
546
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListOffersResponse] parsed result object
|
|
478
547
|
# @yieldparam err [StandardError] error object if request failed
|
|
479
548
|
#
|
|
480
|
-
# @return [Google::Apis::PartnersV2::
|
|
549
|
+
# @return [Google::Apis::PartnersV2::ListOffersResponse]
|
|
481
550
|
#
|
|
482
551
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
483
552
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
484
553
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
485
|
-
def
|
|
486
|
-
command = make_simple_command(:get, 'v2/
|
|
487
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
488
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
554
|
+
def list_offers(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
555
|
+
command = make_simple_command(:get, 'v2/offers', options)
|
|
556
|
+
command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation
|
|
557
|
+
command.response_class = Google::Apis::PartnersV2::ListOffersResponse
|
|
558
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
559
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
489
560
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
490
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
491
561
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
492
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
493
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
494
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
495
562
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
496
|
-
command.query['
|
|
563
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
564
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
497
565
|
command.query['fields'] = fields unless fields.nil?
|
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
498
567
|
execute_or_queue_command(command, &block)
|
|
499
568
|
end
|
|
500
569
|
|
|
501
|
-
#
|
|
502
|
-
# @param [
|
|
570
|
+
# Lists the Historical Offers for the current user (or user's entire company)
|
|
571
|
+
# @param [Boolean] entire_company
|
|
572
|
+
# if true, show history for the entire company. Requires user to be admin.
|
|
573
|
+
# @param [String] order_by
|
|
574
|
+
# Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
|
|
575
|
+
# Use "foo desc" to sort descending.
|
|
576
|
+
# List of valid field names is: name, offer_code, expiration_time, status,
|
|
577
|
+
# last_modified_time, sender_name, creation_time, country_code,
|
|
578
|
+
# offer_type.
|
|
579
|
+
# @param [Fixnum] page_size
|
|
580
|
+
# Maximum number of rows to return per page.
|
|
581
|
+
# @param [String] page_token
|
|
582
|
+
# Token to retrieve a specific page.
|
|
583
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
584
|
+
# Experiment IDs the current request belongs to.
|
|
585
|
+
# @param [String] request_metadata_locale
|
|
586
|
+
# Locale to use for the current request.
|
|
587
|
+
# @param [String] request_metadata_partners_session_id
|
|
588
|
+
# Google Partners session ID.
|
|
503
589
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
504
590
|
# Identifier to indicate where the traffic comes from.
|
|
505
591
|
# An identifier has multiple letters created by a team which redirected the
|
|
506
592
|
# traffic to us.
|
|
507
|
-
# @param [String] request_metadata_locale
|
|
508
|
-
# Locale to use for the current request.
|
|
509
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
510
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
511
|
-
# @param [String] update_mask
|
|
512
|
-
# Standard field mask for the set of fields to be updated.
|
|
513
|
-
# Required with at least 1 value in FieldMask's paths.
|
|
514
|
-
# Only `state` and `adwords_customer_id` are currently supported.
|
|
515
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
516
|
-
# Experiment IDs the current request belongs to.
|
|
517
593
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
518
594
|
# Second level identifier to indicate where the traffic comes from.
|
|
519
595
|
# An identifier has multiple letters created by a team which redirected the
|
|
520
596
|
# traffic to us.
|
|
521
|
-
# @param [String]
|
|
522
|
-
#
|
|
597
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
598
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
523
599
|
# @param [String] request_metadata_user_overrides_user_id
|
|
524
600
|
# Logged-in user ID to impersonate instead of the user's ID.
|
|
601
|
+
# @param [String] fields
|
|
602
|
+
# Selector specifying which fields to include in a partial response.
|
|
525
603
|
# @param [String] quota_user
|
|
526
604
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
527
605
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
528
|
-
# @param [String] fields
|
|
529
|
-
# Selector specifying which fields to include in a partial response.
|
|
530
606
|
# @param [Google::Apis::RequestOptions] options
|
|
531
607
|
# Request-specific options
|
|
532
608
|
#
|
|
533
609
|
# @yield [result, err] Result & error if block supplied
|
|
534
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
610
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListOffersHistoryResponse] parsed result object
|
|
535
611
|
# @yieldparam err [StandardError] error object if request failed
|
|
536
612
|
#
|
|
537
|
-
# @return [Google::Apis::PartnersV2::
|
|
613
|
+
# @return [Google::Apis::PartnersV2::ListOffersHistoryResponse]
|
|
538
614
|
#
|
|
539
615
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
540
616
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
541
617
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
542
|
-
def
|
|
543
|
-
command = make_simple_command(:
|
|
544
|
-
command.
|
|
545
|
-
command.
|
|
546
|
-
command.
|
|
547
|
-
command.
|
|
548
|
-
command.query['
|
|
549
|
-
command.query['
|
|
550
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
551
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
618
|
+
def list_offer_histories(entire_company: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
619
|
+
command = make_simple_command(:get, 'v2/offers/history', options)
|
|
620
|
+
command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation
|
|
621
|
+
command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse
|
|
622
|
+
command.query['entireCompany'] = entire_company unless entire_company.nil?
|
|
623
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
624
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
625
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
552
626
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
553
|
-
command.query['requestMetadata.
|
|
627
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
554
628
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
629
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
630
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
631
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
555
632
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
556
|
-
command.query['
|
|
557
|
-
command.query['
|
|
558
|
-
execute_or_queue_command(command, &block)
|
|
559
|
-
end
|
|
560
|
-
|
|
561
|
-
#
|
|
562
|
-
#
|
|
563
|
-
# @param [
|
|
564
|
-
#
|
|
565
|
-
# Experiment IDs the current request belongs to.
|
|
566
|
-
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
567
|
-
# Second level identifier to indicate where the traffic comes from.
|
|
568
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
569
|
-
# traffic to us.
|
|
570
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
571
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
572
|
-
# @param [String] request_metadata_partners_session_id
|
|
573
|
-
# Google Partners session ID.
|
|
574
|
-
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
575
|
-
# Identifier to indicate where the traffic comes from.
|
|
576
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
577
|
-
# traffic to us.
|
|
578
|
-
# @param [String] request_metadata_locale
|
|
579
|
-
# Locale to use for the current request.
|
|
580
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
581
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
582
|
-
# @param [String] update_mask
|
|
583
|
-
# Standard field mask for the set of fields to be updated.
|
|
584
|
-
# Required with at least 1 value in FieldMask's paths.
|
|
633
|
+
command.query['fields'] = fields unless fields.nil?
|
|
634
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
635
|
+
execute_or_queue_command(command, &block)
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
# Logs a user event.
|
|
639
|
+
# @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
|
|
640
|
+
# @param [String] fields
|
|
641
|
+
# Selector specifying which fields to include in a partial response.
|
|
585
642
|
# @param [String] quota_user
|
|
586
643
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
587
644
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
588
|
-
# @param [String] fields
|
|
589
|
-
# Selector specifying which fields to include in a partial response.
|
|
590
645
|
# @param [Google::Apis::RequestOptions] options
|
|
591
646
|
# Request-specific options
|
|
592
647
|
#
|
|
593
648
|
# @yield [result, err] Result & error if block supplied
|
|
594
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
649
|
+
# @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
|
|
595
650
|
# @yieldparam err [StandardError] error object if request failed
|
|
596
651
|
#
|
|
597
|
-
# @return [Google::Apis::PartnersV2::
|
|
652
|
+
# @return [Google::Apis::PartnersV2::LogUserEventResponse]
|
|
598
653
|
#
|
|
599
654
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
600
655
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
601
656
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
602
|
-
def
|
|
603
|
-
command = make_simple_command(:
|
|
604
|
-
command.request_representation = Google::Apis::PartnersV2::
|
|
605
|
-
command.request_object =
|
|
606
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
607
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
608
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
609
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
610
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
611
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
612
|
-
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
613
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
614
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
615
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
616
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
657
|
+
def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
658
|
+
command = make_simple_command(:post, 'v2/userEvents:log', options)
|
|
659
|
+
command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
|
|
660
|
+
command.request_object = log_user_event_request_object
|
|
661
|
+
command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
|
|
662
|
+
command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
|
|
617
663
|
command.query['fields'] = fields unless fields.nil?
|
|
664
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
618
665
|
execute_or_queue_command(command, &block)
|
|
619
666
|
end
|
|
620
667
|
|
|
621
|
-
#
|
|
622
|
-
# @param [String]
|
|
623
|
-
#
|
|
624
|
-
#
|
|
625
|
-
#
|
|
626
|
-
# Second level identifier to indicate where the traffic comes from.
|
|
627
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
628
|
-
# traffic to us.
|
|
629
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
630
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
668
|
+
# Lists states for current user.
|
|
669
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
670
|
+
# Experiment IDs the current request belongs to.
|
|
671
|
+
# @param [String] request_metadata_locale
|
|
672
|
+
# Locale to use for the current request.
|
|
631
673
|
# @param [String] request_metadata_partners_session_id
|
|
632
674
|
# Google Partners session ID.
|
|
633
675
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
634
676
|
# Identifier to indicate where the traffic comes from.
|
|
635
677
|
# An identifier has multiple letters created by a team which redirected the
|
|
636
678
|
# traffic to us.
|
|
637
|
-
# @param [String]
|
|
638
|
-
#
|
|
679
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
680
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
681
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
682
|
+
# traffic to us.
|
|
639
683
|
# @param [String] request_metadata_user_overrides_ip_address
|
|
640
684
|
# IP address to use instead of the user's geo-located IP address.
|
|
641
|
-
# @param [
|
|
642
|
-
#
|
|
685
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
686
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
687
|
+
# @param [String] fields
|
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
|
643
689
|
# @param [String] quota_user
|
|
644
690
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
645
691
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
646
|
-
# @param [String] fields
|
|
647
|
-
# Selector specifying which fields to include in a partial response.
|
|
648
692
|
# @param [Google::Apis::RequestOptions] options
|
|
649
693
|
# Request-specific options
|
|
650
694
|
#
|
|
651
695
|
# @yield [result, err] Result & error if block supplied
|
|
652
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
696
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
|
|
653
697
|
# @yieldparam err [StandardError] error object if request failed
|
|
654
698
|
#
|
|
655
|
-
# @return [Google::Apis::PartnersV2::
|
|
699
|
+
# @return [Google::Apis::PartnersV2::ListUserStatesResponse]
|
|
656
700
|
#
|
|
657
701
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
658
702
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
659
703
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
660
|
-
def
|
|
661
|
-
command = make_simple_command(:
|
|
662
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
663
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
664
|
-
command.
|
|
665
|
-
command.query['requestMetadata.
|
|
666
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
704
|
+
def list_user_states(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
705
|
+
command = make_simple_command(:get, 'v2/userStates', options)
|
|
706
|
+
command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
|
|
707
|
+
command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
|
|
708
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
709
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
667
710
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
668
711
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
669
|
-
command.query['requestMetadata.
|
|
712
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
670
713
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
671
|
-
command.query['requestMetadata.
|
|
672
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
714
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
673
715
|
command.query['fields'] = fields unless fields.nil?
|
|
716
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
674
717
|
execute_or_queue_command(command, &block)
|
|
675
718
|
end
|
|
676
719
|
|
|
@@ -679,29 +722,29 @@ module Google
|
|
|
679
722
|
# The ID of the user. Can be set to <code>me</code> to mean
|
|
680
723
|
# the currently authenticated user.
|
|
681
724
|
# @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object
|
|
682
|
-
# @param [String]
|
|
683
|
-
#
|
|
684
|
-
#
|
|
685
|
-
#
|
|
725
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
726
|
+
# Experiment IDs the current request belongs to.
|
|
727
|
+
# @param [String] request_metadata_locale
|
|
728
|
+
# Locale to use for the current request.
|
|
686
729
|
# @param [String] request_metadata_partners_session_id
|
|
687
730
|
# Google Partners session ID.
|
|
688
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
689
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
690
731
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
691
732
|
# Identifier to indicate where the traffic comes from.
|
|
692
733
|
# An identifier has multiple letters created by a team which redirected the
|
|
693
734
|
# traffic to us.
|
|
694
|
-
# @param [String]
|
|
695
|
-
#
|
|
735
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
736
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
737
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
738
|
+
# traffic to us.
|
|
696
739
|
# @param [String] request_metadata_user_overrides_ip_address
|
|
697
740
|
# IP address to use instead of the user's geo-located IP address.
|
|
698
|
-
# @param [
|
|
699
|
-
#
|
|
741
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
742
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
743
|
+
# @param [String] fields
|
|
744
|
+
# Selector specifying which fields to include in a partial response.
|
|
700
745
|
# @param [String] quota_user
|
|
701
746
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
702
747
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
703
|
-
# @param [String] fields
|
|
704
|
-
# Selector specifying which fields to include in a partial response.
|
|
705
748
|
# @param [Google::Apis::RequestOptions] options
|
|
706
749
|
# Request-specific options
|
|
707
750
|
#
|
|
@@ -714,172 +757,149 @@ module Google
|
|
|
714
757
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
715
758
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
716
759
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
717
|
-
def create_user_company_relation(user_id, company_relation_object = nil,
|
|
760
|
+
def create_user_company_relation(user_id, company_relation_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
718
761
|
command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options)
|
|
719
762
|
command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
|
|
720
763
|
command.request_object = company_relation_object
|
|
721
764
|
command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
|
|
722
765
|
command.response_class = Google::Apis::PartnersV2::CompanyRelation
|
|
723
766
|
command.params['userId'] = user_id unless user_id.nil?
|
|
724
|
-
command.query['requestMetadata.
|
|
767
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
768
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
725
769
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
726
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
727
770
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
728
|
-
command.query['requestMetadata.
|
|
771
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
729
772
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
730
|
-
command.query['requestMetadata.
|
|
731
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
773
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
732
774
|
command.query['fields'] = fields unless fields.nil?
|
|
775
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
733
776
|
execute_or_queue_command(command, &block)
|
|
734
777
|
end
|
|
735
778
|
|
|
736
|
-
#
|
|
779
|
+
# Deletes a user's company relation. Unaffiliaites the user from a company.
|
|
737
780
|
# @param [String] user_id
|
|
738
|
-
#
|
|
739
|
-
# authenticated user.
|
|
781
|
+
# The ID of the user. Can be set to <code>me</code> to mean
|
|
782
|
+
# the currently authenticated user.
|
|
783
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
784
|
+
# Experiment IDs the current request belongs to.
|
|
785
|
+
# @param [String] request_metadata_locale
|
|
786
|
+
# Locale to use for the current request.
|
|
740
787
|
# @param [String] request_metadata_partners_session_id
|
|
741
788
|
# Google Partners session ID.
|
|
742
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
743
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
744
|
-
# @param [String] user_view
|
|
745
|
-
# Specifies what parts of the user information to return.
|
|
746
789
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
747
790
|
# Identifier to indicate where the traffic comes from.
|
|
748
791
|
# An identifier has multiple letters created by a team which redirected the
|
|
749
792
|
# traffic to us.
|
|
750
|
-
# @param [String] request_metadata_locale
|
|
751
|
-
# Locale to use for the current request.
|
|
752
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
753
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
754
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
755
|
-
# Experiment IDs the current request belongs to.
|
|
756
793
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
757
794
|
# Second level identifier to indicate where the traffic comes from.
|
|
758
795
|
# An identifier has multiple letters created by a team which redirected the
|
|
759
796
|
# traffic to us.
|
|
797
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
798
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
799
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
800
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
801
|
+
# @param [String] fields
|
|
802
|
+
# Selector specifying which fields to include in a partial response.
|
|
760
803
|
# @param [String] quota_user
|
|
761
804
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
762
805
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
763
|
-
# @param [String] fields
|
|
764
|
-
# Selector specifying which fields to include in a partial response.
|
|
765
806
|
# @param [Google::Apis::RequestOptions] options
|
|
766
807
|
# Request-specific options
|
|
767
808
|
#
|
|
768
809
|
# @yield [result, err] Result & error if block supplied
|
|
769
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
810
|
+
# @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object
|
|
770
811
|
# @yieldparam err [StandardError] error object if request failed
|
|
771
812
|
#
|
|
772
|
-
# @return [Google::Apis::PartnersV2::
|
|
813
|
+
# @return [Google::Apis::PartnersV2::Empty]
|
|
773
814
|
#
|
|
774
815
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
775
816
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
776
817
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
777
|
-
def
|
|
778
|
-
command = make_simple_command(:
|
|
779
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
780
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
818
|
+
def delete_user_company_relation(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
819
|
+
command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options)
|
|
820
|
+
command.response_representation = Google::Apis::PartnersV2::Empty::Representation
|
|
821
|
+
command.response_class = Google::Apis::PartnersV2::Empty
|
|
781
822
|
command.params['userId'] = user_id unless user_id.nil?
|
|
823
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
824
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
782
825
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
783
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
784
|
-
command.query['userView'] = user_view unless user_view.nil?
|
|
785
826
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
786
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
787
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
788
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
789
827
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
790
|
-
command.query['
|
|
828
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
829
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
791
830
|
command.query['fields'] = fields unless fields.nil?
|
|
831
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
792
832
|
execute_or_queue_command(command, &block)
|
|
793
833
|
end
|
|
794
834
|
|
|
795
|
-
#
|
|
796
|
-
#
|
|
797
|
-
#
|
|
835
|
+
# Gets a user.
|
|
836
|
+
# @param [String] user_id
|
|
837
|
+
# Identifier of the user. Can be set to <code>me</code> to mean the currently
|
|
838
|
+
# authenticated user.
|
|
798
839
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
799
840
|
# Experiment IDs the current request belongs to.
|
|
800
|
-
# @param [String]
|
|
801
|
-
#
|
|
802
|
-
# An identifier has multiple letters created by a team which redirected the
|
|
803
|
-
# traffic to us.
|
|
804
|
-
# @param [String] request_metadata_user_overrides_user_id
|
|
805
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
|
841
|
+
# @param [String] request_metadata_locale
|
|
842
|
+
# Locale to use for the current request.
|
|
806
843
|
# @param [String] request_metadata_partners_session_id
|
|
807
844
|
# Google Partners session ID.
|
|
808
845
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
809
846
|
# Identifier to indicate where the traffic comes from.
|
|
810
847
|
# An identifier has multiple letters created by a team which redirected the
|
|
811
848
|
# traffic to us.
|
|
812
|
-
# @param [String]
|
|
813
|
-
#
|
|
849
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
850
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
851
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
852
|
+
# traffic to us.
|
|
814
853
|
# @param [String] request_metadata_user_overrides_ip_address
|
|
815
854
|
# IP address to use instead of the user's geo-located IP address.
|
|
855
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
856
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
857
|
+
# @param [String] user_view
|
|
858
|
+
# Specifies what parts of the user information to return.
|
|
859
|
+
# @param [String] fields
|
|
860
|
+
# Selector specifying which fields to include in a partial response.
|
|
816
861
|
# @param [String] quota_user
|
|
817
862
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
818
863
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
819
|
-
# @param [String] fields
|
|
820
|
-
# Selector specifying which fields to include in a partial response.
|
|
821
864
|
# @param [Google::Apis::RequestOptions] options
|
|
822
865
|
# Request-specific options
|
|
823
866
|
#
|
|
824
867
|
# @yield [result, err] Result & error if block supplied
|
|
825
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
868
|
+
# @yieldparam result [Google::Apis::PartnersV2::User] parsed result object
|
|
826
869
|
# @yieldparam err [StandardError] error object if request failed
|
|
827
870
|
#
|
|
828
|
-
# @return [Google::Apis::PartnersV2::
|
|
871
|
+
# @return [Google::Apis::PartnersV2::User]
|
|
829
872
|
#
|
|
830
873
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
831
874
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
832
875
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
833
|
-
def
|
|
834
|
-
command = make_simple_command(:
|
|
835
|
-
command.
|
|
836
|
-
command.
|
|
837
|
-
command.
|
|
838
|
-
command.response_class = Google::Apis::PartnersV2::UserProfile
|
|
876
|
+
def get_user(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
877
|
+
command = make_simple_command(:get, 'v2/users/{userId}', options)
|
|
878
|
+
command.response_representation = Google::Apis::PartnersV2::User::Representation
|
|
879
|
+
command.response_class = Google::Apis::PartnersV2::User
|
|
880
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
839
881
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
840
|
-
command.query['requestMetadata.
|
|
841
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
882
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
842
883
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
843
884
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
844
|
-
command.query['requestMetadata.
|
|
885
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
845
886
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
846
|
-
command.query['
|
|
887
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
888
|
+
command.query['userView'] = user_view unless user_view.nil?
|
|
847
889
|
command.query['fields'] = fields unless fields.nil?
|
|
890
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
848
891
|
execute_or_queue_command(command, &block)
|
|
849
892
|
end
|
|
850
893
|
|
|
851
|
-
#
|
|
852
|
-
#
|
|
853
|
-
#
|
|
854
|
-
# @param [String]
|
|
855
|
-
#
|
|
856
|
-
# @param [String] min_monthly_budget_currency_code
|
|
857
|
-
# The 3-letter currency code defined in ISO 4217.
|
|
858
|
-
# @param [String] view
|
|
859
|
-
# The view of the `Company` resource to be returned. This must not be
|
|
860
|
-
# `COMPANY_VIEW_UNSPECIFIED`.
|
|
894
|
+
# Updates a user's profile. A user can only update their own profile and
|
|
895
|
+
# should only be called within the context of a logged in user.
|
|
896
|
+
# @param [Google::Apis::PartnersV2::UserProfile] user_profile_object
|
|
897
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
898
|
+
# Experiment IDs the current request belongs to.
|
|
861
899
|
# @param [String] request_metadata_locale
|
|
862
900
|
# Locale to use for the current request.
|
|
863
|
-
# @param [String]
|
|
864
|
-
#
|
|
865
|
-
# If not given, the geo-located address of the request is used.
|
|
866
|
-
# @param [Fixnum] min_monthly_budget_units
|
|
867
|
-
# The whole units of the amount.
|
|
868
|
-
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
869
|
-
# @param [Fixnum] max_monthly_budget_nanos
|
|
870
|
-
# Number of nano (10^-9) units of the amount.
|
|
871
|
-
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
872
|
-
# If `units` is positive, `nanos` must be positive or zero.
|
|
873
|
-
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
874
|
-
# If `units` is negative, `nanos` must be negative or zero.
|
|
875
|
-
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
876
|
-
# @param [Array<String>, String] services
|
|
877
|
-
# List of services that the returned agencies should provide. If this is
|
|
878
|
-
# not empty, any returned agency must have at least one of these services,
|
|
879
|
-
# or one of the specializations in the "specializations" field.
|
|
880
|
-
# @param [Fixnum] max_monthly_budget_units
|
|
881
|
-
# The whole units of the amount.
|
|
882
|
-
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
901
|
+
# @param [String] request_metadata_partners_session_id
|
|
902
|
+
# Google Partners session ID.
|
|
883
903
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
884
904
|
# Identifier to indicate where the traffic comes from.
|
|
885
905
|
# An identifier has multiple letters created by a team which redirected the
|
|
@@ -888,235 +908,215 @@ module Google
|
|
|
888
908
|
# Second level identifier to indicate where the traffic comes from.
|
|
889
909
|
# An identifier has multiple letters created by a team which redirected the
|
|
890
910
|
# traffic to us.
|
|
891
|
-
# @param [Fixnum] min_monthly_budget_nanos
|
|
892
|
-
# Number of nano (10^-9) units of the amount.
|
|
893
|
-
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
894
|
-
# If `units` is positive, `nanos` must be positive or zero.
|
|
895
|
-
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
896
|
-
# If `units` is negative, `nanos` must be negative or zero.
|
|
897
|
-
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
898
|
-
# @param [String] request_metadata_partners_session_id
|
|
899
|
-
# Google Partners session ID.
|
|
900
|
-
# @param [String] page_token
|
|
901
|
-
# A token identifying a page of results that the server returns.
|
|
902
|
-
# Typically, this is the value of `ListCompaniesResponse.next_page_token`
|
|
903
|
-
# returned from the previous call to
|
|
904
|
-
# ListCompanies.
|
|
905
|
-
# @param [String] company_name
|
|
906
|
-
# Company name to search for.
|
|
907
|
-
# @param [Array<String>, String] industries
|
|
908
|
-
# List of industries the company can help with.
|
|
909
|
-
# @param [String] website_url
|
|
910
|
-
# Website URL that will help to find a better matched company.
|
|
911
|
-
# .
|
|
912
|
-
# @param [Array<String>, String] gps_motivations
|
|
913
|
-
# List of reasons for using Google Partner Search to get companies.
|
|
914
|
-
# @param [Array<String>, String] language_codes
|
|
915
|
-
# List of language codes that company can support. Only primary language
|
|
916
|
-
# subtags are accepted as defined by
|
|
917
|
-
# <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
|
|
918
|
-
# (IETF BCP 47, "Tags for Identifying Languages").
|
|
919
|
-
# @param [Fixnum] page_size
|
|
920
|
-
# Requested page size. Server may return fewer companies than requested.
|
|
921
|
-
# If unspecified, server picks an appropriate default.
|
|
922
911
|
# @param [String] request_metadata_user_overrides_ip_address
|
|
923
912
|
# IP address to use instead of the user's geo-located IP address.
|
|
924
|
-
# @param [
|
|
925
|
-
#
|
|
926
|
-
# @param [String]
|
|
927
|
-
#
|
|
928
|
-
# `address` and `address desc` is supported which will sorted by closest to
|
|
929
|
-
# farthest in distance from given address and farthest to closest distance
|
|
930
|
-
# from given address respectively.
|
|
931
|
-
# @param [Array<String>, String] specializations
|
|
932
|
-
# List of specializations that the returned agencies should provide. If this
|
|
933
|
-
# is not empty, any returned agency must have at least one of these
|
|
934
|
-
# specializations, or one of the services in the "services" field.
|
|
913
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
914
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
915
|
+
# @param [String] fields
|
|
916
|
+
# Selector specifying which fields to include in a partial response.
|
|
935
917
|
# @param [String] quota_user
|
|
936
918
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
937
919
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
938
|
-
# @param [String] fields
|
|
939
|
-
# Selector specifying which fields to include in a partial response.
|
|
940
920
|
# @param [Google::Apis::RequestOptions] options
|
|
941
921
|
# Request-specific options
|
|
942
922
|
#
|
|
943
923
|
# @yield [result, err] Result & error if block supplied
|
|
944
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
924
|
+
# @yieldparam result [Google::Apis::PartnersV2::UserProfile] parsed result object
|
|
945
925
|
# @yieldparam err [StandardError] error object if request failed
|
|
946
926
|
#
|
|
947
|
-
# @return [Google::Apis::PartnersV2::
|
|
927
|
+
# @return [Google::Apis::PartnersV2::UserProfile]
|
|
948
928
|
#
|
|
949
929
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
950
930
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
951
931
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
952
|
-
def
|
|
953
|
-
command = make_simple_command(:
|
|
954
|
-
command.
|
|
955
|
-
command.
|
|
956
|
-
command.
|
|
957
|
-
command.
|
|
958
|
-
command.query['
|
|
959
|
-
command.query['view'] = view unless view.nil?
|
|
932
|
+
def update_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
933
|
+
command = make_simple_command(:patch, 'v2/users/profile', options)
|
|
934
|
+
command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation
|
|
935
|
+
command.request_object = user_profile_object
|
|
936
|
+
command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation
|
|
937
|
+
command.response_class = Google::Apis::PartnersV2::UserProfile
|
|
938
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
960
939
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
961
|
-
command.query['
|
|
962
|
-
command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
|
|
963
|
-
command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
|
|
964
|
-
command.query['services'] = services unless services.nil?
|
|
965
|
-
command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
|
|
940
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
966
941
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
967
942
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
968
|
-
command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
|
|
969
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
970
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
971
|
-
command.query['companyName'] = company_name unless company_name.nil?
|
|
972
|
-
command.query['industries'] = industries unless industries.nil?
|
|
973
|
-
command.query['websiteUrl'] = website_url unless website_url.nil?
|
|
974
|
-
command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
|
|
975
|
-
command.query['languageCodes'] = language_codes unless language_codes.nil?
|
|
976
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
977
943
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
978
|
-
command.query['requestMetadata.
|
|
979
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
|
980
|
-
command.query['specializations'] = specializations unless specializations.nil?
|
|
981
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
944
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
982
945
|
command.query['fields'] = fields unless fields.nil?
|
|
946
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
983
947
|
execute_or_queue_command(command, &block)
|
|
984
948
|
end
|
|
985
949
|
|
|
986
|
-
# Gets
|
|
987
|
-
#
|
|
988
|
-
#
|
|
989
|
-
#
|
|
990
|
-
# The view of `Company` resource to be returned. This must not be
|
|
991
|
-
# `COMPANY_VIEW_UNSPECIFIED`.
|
|
992
|
-
# @param [String] address
|
|
993
|
-
# The address to use for sorting the company's addresses by proximity.
|
|
994
|
-
# If not given, the geo-located address of the request is used.
|
|
995
|
-
# Used when order_by is set.
|
|
950
|
+
# Gets Partners Status of the logged in user's agency.
|
|
951
|
+
# Should only be called if the logged in user is the admin of the agency.
|
|
952
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
953
|
+
# Experiment IDs the current request belongs to.
|
|
996
954
|
# @param [String] request_metadata_locale
|
|
997
955
|
# Locale to use for the current request.
|
|
956
|
+
# @param [String] request_metadata_partners_session_id
|
|
957
|
+
# Google Partners session ID.
|
|
998
958
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
999
959
|
# Identifier to indicate where the traffic comes from.
|
|
1000
960
|
# An identifier has multiple letters created by a team which redirected the
|
|
1001
961
|
# traffic to us.
|
|
1002
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
|
1003
|
-
# IP address to use instead of the user's geo-located IP address.
|
|
1004
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
1005
|
-
# Experiment IDs the current request belongs to.
|
|
1006
|
-
# @param [String] currency_code
|
|
1007
|
-
# If the company's budget is in a different currency code than this one, then
|
|
1008
|
-
# the converted budget is converted to this currency code.
|
|
1009
962
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
1010
963
|
# Second level identifier to indicate where the traffic comes from.
|
|
1011
964
|
# An identifier has multiple letters created by a team which redirected the
|
|
1012
965
|
# traffic to us.
|
|
1013
|
-
# @param [String]
|
|
1014
|
-
#
|
|
1015
|
-
# `address` and `address desc` is supported which will sorted by closest to
|
|
1016
|
-
# farthest in distance from given address and farthest to closest distance
|
|
1017
|
-
# from given address respectively.
|
|
1018
|
-
# @param [String] request_metadata_partners_session_id
|
|
1019
|
-
# Google Partners session ID.
|
|
966
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
967
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
1020
968
|
# @param [String] request_metadata_user_overrides_user_id
|
|
1021
969
|
# Logged-in user ID to impersonate instead of the user's ID.
|
|
970
|
+
# @param [String] fields
|
|
971
|
+
# Selector specifying which fields to include in a partial response.
|
|
1022
972
|
# @param [String] quota_user
|
|
1023
973
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1024
974
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1025
|
-
# @param [String] fields
|
|
1026
|
-
# Selector specifying which fields to include in a partial response.
|
|
1027
975
|
# @param [Google::Apis::RequestOptions] options
|
|
1028
976
|
# Request-specific options
|
|
1029
977
|
#
|
|
1030
978
|
# @yield [result, err] Result & error if block supplied
|
|
1031
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
979
|
+
# @yieldparam result [Google::Apis::PartnersV2::GetPartnersStatusResponse] parsed result object
|
|
1032
980
|
# @yieldparam err [StandardError] error object if request failed
|
|
1033
981
|
#
|
|
1034
|
-
# @return [Google::Apis::PartnersV2::
|
|
982
|
+
# @return [Google::Apis::PartnersV2::GetPartnersStatusResponse]
|
|
1035
983
|
#
|
|
1036
984
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1037
985
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1038
986
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1039
|
-
def
|
|
1040
|
-
command = make_simple_command(:get, 'v2/
|
|
1041
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
1042
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
1043
|
-
command.
|
|
1044
|
-
command.query['view'] = view unless view.nil?
|
|
1045
|
-
command.query['address'] = address unless address.nil?
|
|
987
|
+
def get_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
988
|
+
command = make_simple_command(:get, 'v2/partnersstatus', options)
|
|
989
|
+
command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation
|
|
990
|
+
command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse
|
|
991
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
1046
992
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
993
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
1047
994
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
1048
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
1049
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
1050
|
-
command.query['currencyCode'] = currency_code unless currency_code.nil?
|
|
1051
995
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
1052
|
-
command.query['
|
|
1053
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
996
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
1054
997
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
1055
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1056
998
|
command.query['fields'] = fields unless fields.nil?
|
|
999
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1057
1000
|
execute_or_queue_command(command, &block)
|
|
1058
1001
|
end
|
|
1059
1002
|
|
|
1060
|
-
#
|
|
1061
|
-
#
|
|
1062
|
-
#
|
|
1063
|
-
# @param [
|
|
1003
|
+
# Update company.
|
|
1004
|
+
# Should only be called within the context of an authorized logged in user.
|
|
1005
|
+
# @param [Google::Apis::PartnersV2::Company] company_object
|
|
1006
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
1007
|
+
# Experiment IDs the current request belongs to.
|
|
1008
|
+
# @param [String] request_metadata_locale
|
|
1009
|
+
# Locale to use for the current request.
|
|
1010
|
+
# @param [String] request_metadata_partners_session_id
|
|
1011
|
+
# Google Partners session ID.
|
|
1012
|
+
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
1013
|
+
# Identifier to indicate where the traffic comes from.
|
|
1014
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
1015
|
+
# traffic to us.
|
|
1016
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
1017
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
1018
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
1019
|
+
# traffic to us.
|
|
1020
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
1021
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
1022
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
1023
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
1024
|
+
# @param [String] update_mask
|
|
1025
|
+
# Standard field mask for the set of fields to be updated.
|
|
1026
|
+
# Required with at least 1 value in FieldMask's paths.
|
|
1027
|
+
# @param [String] fields
|
|
1028
|
+
# Selector specifying which fields to include in a partial response.
|
|
1064
1029
|
# @param [String] quota_user
|
|
1065
1030
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1066
1031
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1067
|
-
# @param [String] fields
|
|
1068
|
-
# Selector specifying which fields to include in a partial response.
|
|
1069
1032
|
# @param [Google::Apis::RequestOptions] options
|
|
1070
1033
|
# Request-specific options
|
|
1071
1034
|
#
|
|
1072
1035
|
# @yield [result, err] Result & error if block supplied
|
|
1073
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
1036
|
+
# @yieldparam result [Google::Apis::PartnersV2::Company] parsed result object
|
|
1074
1037
|
# @yieldparam err [StandardError] error object if request failed
|
|
1075
1038
|
#
|
|
1076
|
-
# @return [Google::Apis::PartnersV2::
|
|
1039
|
+
# @return [Google::Apis::PartnersV2::Company]
|
|
1077
1040
|
#
|
|
1078
1041
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1079
1042
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1080
1043
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1081
|
-
def
|
|
1082
|
-
command = make_simple_command(:
|
|
1083
|
-
command.request_representation = Google::Apis::PartnersV2::
|
|
1084
|
-
command.request_object =
|
|
1085
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
1086
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
1087
|
-
command.
|
|
1088
|
-
command.query['
|
|
1044
|
+
def update_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1045
|
+
command = make_simple_command(:patch, 'v2/companies', options)
|
|
1046
|
+
command.request_representation = Google::Apis::PartnersV2::Company::Representation
|
|
1047
|
+
command.request_object = company_object
|
|
1048
|
+
command.response_representation = Google::Apis::PartnersV2::Company::Representation
|
|
1049
|
+
command.response_class = Google::Apis::PartnersV2::Company
|
|
1050
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
1051
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
1052
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
1053
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
1054
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
1055
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
1056
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
1057
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
1089
1058
|
command.query['fields'] = fields unless fields.nil?
|
|
1059
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1090
1060
|
execute_or_queue_command(command, &block)
|
|
1091
1061
|
end
|
|
1092
1062
|
|
|
1093
|
-
#
|
|
1094
|
-
# @param [Google::Apis::PartnersV2::
|
|
1063
|
+
# Updates the specified lead.
|
|
1064
|
+
# @param [Google::Apis::PartnersV2::Lead] lead_object
|
|
1065
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
|
1066
|
+
# Experiment IDs the current request belongs to.
|
|
1067
|
+
# @param [String] request_metadata_locale
|
|
1068
|
+
# Locale to use for the current request.
|
|
1069
|
+
# @param [String] request_metadata_partners_session_id
|
|
1070
|
+
# Google Partners session ID.
|
|
1071
|
+
# @param [String] request_metadata_traffic_source_traffic_source_id
|
|
1072
|
+
# Identifier to indicate where the traffic comes from.
|
|
1073
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
1074
|
+
# traffic to us.
|
|
1075
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
|
1076
|
+
# Second level identifier to indicate where the traffic comes from.
|
|
1077
|
+
# An identifier has multiple letters created by a team which redirected the
|
|
1078
|
+
# traffic to us.
|
|
1079
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
|
1080
|
+
# IP address to use instead of the user's geo-located IP address.
|
|
1081
|
+
# @param [String] request_metadata_user_overrides_user_id
|
|
1082
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
|
1083
|
+
# @param [String] update_mask
|
|
1084
|
+
# Standard field mask for the set of fields to be updated.
|
|
1085
|
+
# Required with at least 1 value in FieldMask's paths.
|
|
1086
|
+
# Only `state` and `adwords_customer_id` are currently supported.
|
|
1087
|
+
# @param [String] fields
|
|
1088
|
+
# Selector specifying which fields to include in a partial response.
|
|
1095
1089
|
# @param [String] quota_user
|
|
1096
1090
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1097
1091
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1098
|
-
# @param [String] fields
|
|
1099
|
-
# Selector specifying which fields to include in a partial response.
|
|
1100
1092
|
# @param [Google::Apis::RequestOptions] options
|
|
1101
1093
|
# Request-specific options
|
|
1102
1094
|
#
|
|
1103
1095
|
# @yield [result, err] Result & error if block supplied
|
|
1104
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
|
1096
|
+
# @yieldparam result [Google::Apis::PartnersV2::Lead] parsed result object
|
|
1105
1097
|
# @yieldparam err [StandardError] error object if request failed
|
|
1106
1098
|
#
|
|
1107
|
-
# @return [Google::Apis::PartnersV2::
|
|
1099
|
+
# @return [Google::Apis::PartnersV2::Lead]
|
|
1108
1100
|
#
|
|
1109
1101
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1110
1102
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1111
1103
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1112
|
-
def
|
|
1113
|
-
command = make_simple_command(:
|
|
1114
|
-
command.request_representation = Google::Apis::PartnersV2::
|
|
1115
|
-
command.request_object =
|
|
1116
|
-
command.response_representation = Google::Apis::PartnersV2::
|
|
1117
|
-
command.response_class = Google::Apis::PartnersV2::
|
|
1118
|
-
command.query['
|
|
1104
|
+
def update_leads(lead_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1105
|
+
command = make_simple_command(:patch, 'v2/leads', options)
|
|
1106
|
+
command.request_representation = Google::Apis::PartnersV2::Lead::Representation
|
|
1107
|
+
command.request_object = lead_object
|
|
1108
|
+
command.response_representation = Google::Apis::PartnersV2::Lead::Representation
|
|
1109
|
+
command.response_class = Google::Apis::PartnersV2::Lead
|
|
1110
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
|
1111
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
|
1112
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
|
1113
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
|
1114
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
|
1115
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
|
1116
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
|
1117
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
1119
1118
|
command.query['fields'] = fields unless fields.nil?
|
|
1119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1120
1120
|
execute_or_queue_command(command, &block)
|
|
1121
1121
|
end
|
|
1122
1122
|
|