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