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