Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: generated/googleapis/lib/analytics/v3.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.analytics.v3; 3 library googleapis.analytics.v3;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, 13 show
14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, 14 ApiRequestError,
15 ByteRange; 15 DetailedApiRequestError,
16 Media,
17 UploadOptions,
18 ResumableUploadOptions,
19 DownloadOptions,
20 PartialDownloadOptions,
21 ByteRange;
16 22
17 const core.String USER_AGENT = 'dart-api-client analytics/v3'; 23 const core.String USER_AGENT = 'dart-api-client analytics/v3';
18 24
19 /** Views and manages your Google Analytics data. */ 25 /// Views and manages your Google Analytics data.
20 class AnalyticsApi { 26 class AnalyticsApi {
21 /** View and manage your Google Analytics data */ 27 /// View and manage your Google Analytics data
22 static const AnalyticsScope = "https://www.googleapis.com/auth/analytics"; 28 static const AnalyticsScope = "https://www.googleapis.com/auth/analytics";
23 29
24 /** Edit Google Analytics management entities */ 30 /// Edit Google Analytics management entities
25 static const AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.e dit"; 31 static const AnalyticsEditScope =
32 "https://www.googleapis.com/auth/analytics.edit";
26 33
27 /** Manage Google Analytics Account users by email address */ 34 /// Manage Google Analytics Account users by email address
28 static const AnalyticsManageUsersScope = "https://www.googleapis.com/auth/anal ytics.manage.users"; 35 static const AnalyticsManageUsersScope =
36 "https://www.googleapis.com/auth/analytics.manage.users";
29 37
30 /** View Google Analytics user permissions */ 38 /// View Google Analytics user permissions
31 static const AnalyticsManageUsersReadonlyScope = "https://www.googleapis.com/a uth/analytics.manage.users.readonly"; 39 static const AnalyticsManageUsersReadonlyScope =
40 "https://www.googleapis.com/auth/analytics.manage.users.readonly";
32 41
33 /** 42 /// Create a new Google Analytics account along with its default property and
34 * Create a new Google Analytics account along with its default property and 43 /// view
35 * view 44 static const AnalyticsProvisionScope =
36 */ 45 "https://www.googleapis.com/auth/analytics.provision";
37 static const AnalyticsProvisionScope = "https://www.googleapis.com/auth/analyt ics.provision";
38 46
39 /** View your Google Analytics data */ 47 /// View your Google Analytics data
40 static const AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analyti cs.readonly"; 48 static const AnalyticsReadonlyScope =
41 49 "https://www.googleapis.com/auth/analytics.readonly";
42 50
43 final commons.ApiRequester _requester; 51 final commons.ApiRequester _requester;
44 52
45 DataResourceApi get data => new DataResourceApi(_requester); 53 DataResourceApi get data => new DataResourceApi(_requester);
46 ManagementResourceApi get management => new ManagementResourceApi(_requester); 54 ManagementResourceApi get management => new ManagementResourceApi(_requester);
47 MetadataResourceApi get metadata => new MetadataResourceApi(_requester); 55 MetadataResourceApi get metadata => new MetadataResourceApi(_requester);
48 ProvisioningResourceApi get provisioning => new ProvisioningResourceApi(_reque ster); 56 ProvisioningResourceApi get provisioning =>
57 new ProvisioningResourceApi(_requester);
49 58
50 AnalyticsApi(http.Client client, {core.String rootUrl: "https://www.googleapis .com/", core.String servicePath: "analytics/v3/"}) : 59 AnalyticsApi(http.Client client,
51 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 60 {core.String rootUrl: "https://www.googleapis.com/",
61 core.String servicePath: "analytics/v3/"})
62 : _requester =
63 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
52 } 64 }
53 65
54
55 class DataResourceApi { 66 class DataResourceApi {
56 final commons.ApiRequester _requester; 67 final commons.ApiRequester _requester;
57 68
58 DataGaResourceApi get ga => new DataGaResourceApi(_requester); 69 DataGaResourceApi get ga => new DataGaResourceApi(_requester);
59 DataMcfResourceApi get mcf => new DataMcfResourceApi(_requester); 70 DataMcfResourceApi get mcf => new DataMcfResourceApi(_requester);
60 DataRealtimeResourceApi get realtime => new DataRealtimeResourceApi(_requester ); 71 DataRealtimeResourceApi get realtime =>
72 new DataRealtimeResourceApi(_requester);
61 73
62 DataResourceApi(commons.ApiRequester client) : 74 DataResourceApi(commons.ApiRequester client) : _requester = client;
63 _requester = client;
64 } 75 }
65 76
66
67 class DataGaResourceApi { 77 class DataGaResourceApi {
68 final commons.ApiRequester _requester; 78 final commons.ApiRequester _requester;
69 79
70 DataGaResourceApi(commons.ApiRequester client) : 80 DataGaResourceApi(commons.ApiRequester client) : _requester = client;
71 _requester = client;
72 81
73 /** 82 /// Returns Analytics data for a view (profile).
74 * Returns Analytics data for a view (profile). 83 ///
75 * 84 /// Request parameters:
76 * Request parameters: 85 ///
77 * 86 /// [ids] - Unique table ID for retrieving Analytics data. Table ID is of the
78 * [ids] - Unique table ID for retrieving Analytics data. Table ID is of the 87 /// form ga:XXXX, where XXXX is the Analytics view (profile) ID.
79 * form ga:XXXX, where XXXX is the Analytics view (profile) ID. 88 /// Value must have pattern "ga:[0-9]+".
80 * Value must have pattern "ga:[0-9]+". 89 ///
81 * 90 /// [start_date] - Start date for fetching Analytics data. Requests can
82 * [start_date] - Start date for fetching Analytics data. Requests can specify 91 /// specify a start date formatted as YYYY-MM-DD, or as a relative date
83 * a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, 92 /// (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
84 * yesterday, or 7daysAgo). The default value is 7daysAgo. 93 /// Value must have pattern
85 * Value must have pattern 94 /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
86 * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)". 95 ///
87 * 96 /// [end_date] - End date for fetching Analytics data. Request can should
88 * [end_date] - End date for fetching Analytics data. Request can should 97 /// specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g.,
89 * specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g., 98 /// today, yesterday, or 7daysAgo). The default value is yesterday.
90 * today, yesterday, or 7daysAgo). The default value is yesterday. 99 /// Value must have pattern
91 * Value must have pattern 100 /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
92 * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)". 101 ///
93 * 102 /// [metrics] - A comma-separated list of Analytics metrics. E.g.,
94 * [metrics] - A comma-separated list of Analytics metrics. E.g., 103 /// 'ga:sessions,ga:pageviews'. At least one metric must be specified.
95 * 'ga:sessions,ga:pageviews'. At least one metric must be specified. 104 /// Value must have pattern "ga:.+".
96 * Value must have pattern "ga:.+". 105 ///
97 * 106 /// [dimensions] - A comma-separated list of Analytics dimensions. E.g.,
98 * [dimensions] - A comma-separated list of Analytics dimensions. E.g., 107 /// 'ga:browser,ga:city'.
99 * 'ga:browser,ga:city'. 108 /// Value must have pattern "(ga:.+)?".
100 * Value must have pattern "(ga:.+)?". 109 ///
101 * 110 /// [filters] - A comma-separated list of dimension or metric filters to be
102 * [filters] - A comma-separated list of dimension or metric filters to be 111 /// applied to Analytics data.
103 * applied to Analytics data. 112 /// Value must have pattern "ga:.+".
104 * Value must have pattern "ga:.+". 113 ///
105 * 114 /// [include_empty_rows] - The response will include empty rows if this
106 * [include_empty_rows] - The response will include empty rows if this 115 /// parameter is set to true, the default is true
107 * parameter is set to true, the default is true 116 ///
108 * 117 /// [max_results] - The maximum number of entries to include in this feed.
109 * [max_results] - The maximum number of entries to include in this feed. 118 ///
110 * 119 /// [output] - The selected format for the response. Default format is JSON.
111 * [output] - The selected format for the response. Default format is JSON. 120 /// Possible string values are:
112 * Possible string values are: 121 /// - "dataTable" : Returns the response in Google Charts Data Table format.
113 * - "dataTable" : Returns the response in Google Charts Data Table format. 122 /// This is useful in creating visualization using Google Charts.
114 * This is useful in creating visualization using Google Charts. 123 /// - "json" : Returns the response in standard JSON format.
115 * - "json" : Returns the response in standard JSON format. 124 ///
116 * 125 /// [samplingLevel] - The desired sampling level.
117 * [samplingLevel] - The desired sampling level. 126 /// Possible string values are:
118 * Possible string values are: 127 /// - "DEFAULT" : Returns response with a sample size that balances speed and
119 * - "DEFAULT" : Returns response with a sample size that balances speed and 128 /// accuracy.
120 * accuracy. 129 /// - "FASTER" : Returns a fast response with a smaller sample size.
121 * - "FASTER" : Returns a fast response with a smaller sample size. 130 /// - "HIGHER_PRECISION" : Returns a more accurate response using a large
122 * - "HIGHER_PRECISION" : Returns a more accurate response using a large 131 /// sample size, but this may result in the response being slower.
123 * sample size, but this may result in the response being slower. 132 ///
124 * 133 /// [segment] - An Analytics segment to be applied to data.
125 * [segment] - An Analytics segment to be applied to data. 134 ///
126 * 135 /// [sort] - A comma-separated list of dimensions or metrics that determine
127 * [sort] - A comma-separated list of dimensions or metrics that determine the 136 /// the sort order for Analytics data.
128 * sort order for Analytics data. 137 /// Value must have pattern "(-)?ga:.+".
129 * Value must have pattern "(-)?ga:.+". 138 ///
130 * 139 /// [start_index] - An index of the first entity to retrieve. Use this
131 * [start_index] - An index of the first entity to retrieve. Use this 140 /// parameter as a pagination mechanism along with the max-results parameter.
132 * parameter as a pagination mechanism along with the max-results parameter. 141 ///
133 * 142 /// Completes with a [GaData].
134 * Completes with a [GaData]. 143 ///
135 * 144 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 145 /// an error.
137 * error. 146 ///
138 * 147 /// If the used [http.Client] completes with an error when making a REST
139 * If the used [http.Client] completes with an error when making a REST call, 148 /// call, this method will complete with the same error.
140 * this method will complete with the same error. 149 async.Future<GaData> get(core.String ids, core.String start_date,
141 */ 150 core.String end_date, core.String metrics,
142 async.Future<GaData> get(core.String ids, core.String start_date, core.String end_date, core.String metrics, {core.String dimensions, core.String filters, cor e.bool include_empty_rows, core.int max_results, core.String output, core.String samplingLevel, core.String segment, core.String sort, core.int start_index}) { 151 {core.String dimensions,
152 core.String filters,
153 core.bool include_empty_rows,
154 core.int max_results,
155 core.String output,
156 core.String samplingLevel,
157 core.String segment,
158 core.String sort,
159 core.int start_index}) {
143 var _url = null; 160 var _url = null;
144 var _queryParams = new core.Map(); 161 var _queryParams = new core.Map();
145 var _uploadMedia = null; 162 var _uploadMedia = null;
146 var _uploadOptions = null; 163 var _uploadOptions = null;
147 var _downloadOptions = commons.DownloadOptions.Metadata; 164 var _downloadOptions = commons.DownloadOptions.Metadata;
148 var _body = null; 165 var _body = null;
149 166
150 if (ids == null) { 167 if (ids == null) {
151 throw new core.ArgumentError("Parameter ids is required."); 168 throw new core.ArgumentError("Parameter ids is required.");
152 } 169 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 203 }
187 if (sort != null) { 204 if (sort != null) {
188 _queryParams["sort"] = [sort]; 205 _queryParams["sort"] = [sort];
189 } 206 }
190 if (start_index != null) { 207 if (start_index != null) {
191 _queryParams["start-index"] = ["${start_index}"]; 208 _queryParams["start-index"] = ["${start_index}"];
192 } 209 }
193 210
194 _url = 'data/ga'; 211 _url = 'data/ga';
195 212
196 var _response = _requester.request(_url, 213 var _response = _requester.request(_url, "GET",
197 "GET", 214 body: _body,
198 body: _body, 215 queryParams: _queryParams,
199 queryParams: _queryParams, 216 uploadOptions: _uploadOptions,
200 uploadOptions: _uploadOptions, 217 uploadMedia: _uploadMedia,
201 uploadMedia: _uploadMedia, 218 downloadOptions: _downloadOptions);
202 downloadOptions: _downloadOptions);
203 return _response.then((data) => new GaData.fromJson(data)); 219 return _response.then((data) => new GaData.fromJson(data));
204 } 220 }
205
206 } 221 }
207 222
208
209 class DataMcfResourceApi { 223 class DataMcfResourceApi {
210 final commons.ApiRequester _requester; 224 final commons.ApiRequester _requester;
211 225
212 DataMcfResourceApi(commons.ApiRequester client) : 226 DataMcfResourceApi(commons.ApiRequester client) : _requester = client;
213 _requester = client;
214 227
215 /** 228 /// Returns Analytics Multi-Channel Funnels data for a view (profile).
216 * Returns Analytics Multi-Channel Funnels data for a view (profile). 229 ///
217 * 230 /// Request parameters:
218 * Request parameters: 231 ///
219 * 232 /// [ids] - Unique table ID for retrieving Analytics data. Table ID is of the
220 * [ids] - Unique table ID for retrieving Analytics data. Table ID is of the 233 /// form ga:XXXX, where XXXX is the Analytics view (profile) ID.
221 * form ga:XXXX, where XXXX is the Analytics view (profile) ID. 234 /// Value must have pattern "ga:[0-9]+".
222 * Value must have pattern "ga:[0-9]+". 235 ///
223 * 236 /// [start_date] - Start date for fetching Analytics data. Requests can
224 * [start_date] - Start date for fetching Analytics data. Requests can specify 237 /// specify a start date formatted as YYYY-MM-DD, or as a relative date
225 * a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, 238 /// (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
226 * yesterday, or 7daysAgo). The default value is 7daysAgo. 239 /// Value must have pattern
227 * Value must have pattern 240 /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
228 * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)". 241 ///
229 * 242 /// [end_date] - End date for fetching Analytics data. Requests can specify a
230 * [end_date] - End date for fetching Analytics data. Requests can specify a 243 /// start date formatted as YYYY-MM-DD, or as a relative date (e.g., today,
231 * start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, 244 /// yesterday, or 7daysAgo). The default value is 7daysAgo.
232 * yesterday, or 7daysAgo). The default value is 7daysAgo. 245 /// Value must have pattern
233 * Value must have pattern 246 /// "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)".
234 * "[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)". 247 ///
235 * 248 /// [metrics] - A comma-separated list of Multi-Channel Funnels metrics.
236 * [metrics] - A comma-separated list of Multi-Channel Funnels metrics. E.g., 249 /// E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one
237 * 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must 250 /// metric must be specified.
238 * be specified. 251 /// Value must have pattern "mcf:.+".
239 * Value must have pattern "mcf:.+". 252 ///
240 * 253 /// [dimensions] - A comma-separated list of Multi-Channel Funnels
241 * [dimensions] - A comma-separated list of Multi-Channel Funnels dimensions. 254 /// dimensions. E.g., 'mcf:source,mcf:medium'.
242 * E.g., 'mcf:source,mcf:medium'. 255 /// Value must have pattern "(mcf:.+)?".
243 * Value must have pattern "(mcf:.+)?". 256 ///
244 * 257 /// [filters] - A comma-separated list of dimension or metric filters to be
245 * [filters] - A comma-separated list of dimension or metric filters to be 258 /// applied to the Analytics data.
246 * applied to the Analytics data. 259 /// Value must have pattern "mcf:.+".
247 * Value must have pattern "mcf:.+". 260 ///
248 * 261 /// [max_results] - The maximum number of entries to include in this feed.
249 * [max_results] - The maximum number of entries to include in this feed. 262 ///
250 * 263 /// [samplingLevel] - The desired sampling level.
251 * [samplingLevel] - The desired sampling level. 264 /// Possible string values are:
252 * Possible string values are: 265 /// - "DEFAULT" : Returns response with a sample size that balances speed and
253 * - "DEFAULT" : Returns response with a sample size that balances speed and 266 /// accuracy.
254 * accuracy. 267 /// - "FASTER" : Returns a fast response with a smaller sample size.
255 * - "FASTER" : Returns a fast response with a smaller sample size. 268 /// - "HIGHER_PRECISION" : Returns a more accurate response using a large
256 * - "HIGHER_PRECISION" : Returns a more accurate response using a large 269 /// sample size, but this may result in the response being slower.
257 * sample size, but this may result in the response being slower. 270 ///
258 * 271 /// [sort] - A comma-separated list of dimensions or metrics that determine
259 * [sort] - A comma-separated list of dimensions or metrics that determine the 272 /// the sort order for the Analytics data.
260 * sort order for the Analytics data. 273 /// Value must have pattern "(-)?mcf:.+".
261 * Value must have pattern "(-)?mcf:.+". 274 ///
262 * 275 /// [start_index] - An index of the first entity to retrieve. Use this
263 * [start_index] - An index of the first entity to retrieve. Use this 276 /// parameter as a pagination mechanism along with the max-results parameter.
264 * parameter as a pagination mechanism along with the max-results parameter. 277 ///
265 * 278 /// Completes with a [McfData].
266 * Completes with a [McfData]. 279 ///
267 * 280 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
268 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 281 /// an error.
269 * error. 282 ///
270 * 283 /// If the used [http.Client] completes with an error when making a REST
271 * If the used [http.Client] completes with an error when making a REST call, 284 /// call, this method will complete with the same error.
272 * this method will complete with the same error. 285 async.Future<McfData> get(core.String ids, core.String start_date,
273 */ 286 core.String end_date, core.String metrics,
274 async.Future<McfData> get(core.String ids, core.String start_date, core.String end_date, core.String metrics, {core.String dimensions, core.String filters, co re.int max_results, core.String samplingLevel, core.String sort, core.int start_ index}) { 287 {core.String dimensions,
288 core.String filters,
289 core.int max_results,
290 core.String samplingLevel,
291 core.String sort,
292 core.int start_index}) {
275 var _url = null; 293 var _url = null;
276 var _queryParams = new core.Map(); 294 var _queryParams = new core.Map();
277 var _uploadMedia = null; 295 var _uploadMedia = null;
278 var _uploadOptions = null; 296 var _uploadOptions = null;
279 var _downloadOptions = commons.DownloadOptions.Metadata; 297 var _downloadOptions = commons.DownloadOptions.Metadata;
280 var _body = null; 298 var _body = null;
281 299
282 if (ids == null) { 300 if (ids == null) {
283 throw new core.ArgumentError("Parameter ids is required."); 301 throw new core.ArgumentError("Parameter ids is required.");
284 } 302 }
(...skipping 24 matching lines...) Expand all
309 } 327 }
310 if (sort != null) { 328 if (sort != null) {
311 _queryParams["sort"] = [sort]; 329 _queryParams["sort"] = [sort];
312 } 330 }
313 if (start_index != null) { 331 if (start_index != null) {
314 _queryParams["start-index"] = ["${start_index}"]; 332 _queryParams["start-index"] = ["${start_index}"];
315 } 333 }
316 334
317 _url = 'data/mcf'; 335 _url = 'data/mcf';
318 336
319 var _response = _requester.request(_url, 337 var _response = _requester.request(_url, "GET",
320 "GET", 338 body: _body,
321 body: _body, 339 queryParams: _queryParams,
322 queryParams: _queryParams, 340 uploadOptions: _uploadOptions,
323 uploadOptions: _uploadOptions, 341 uploadMedia: _uploadMedia,
324 uploadMedia: _uploadMedia, 342 downloadOptions: _downloadOptions);
325 downloadOptions: _downloadOptions);
326 return _response.then((data) => new McfData.fromJson(data)); 343 return _response.then((data) => new McfData.fromJson(data));
327 } 344 }
328
329 } 345 }
330 346
331
332 class DataRealtimeResourceApi { 347 class DataRealtimeResourceApi {
333 final commons.ApiRequester _requester; 348 final commons.ApiRequester _requester;
334 349
335 DataRealtimeResourceApi(commons.ApiRequester client) : 350 DataRealtimeResourceApi(commons.ApiRequester client) : _requester = client;
336 _requester = client;
337 351
338 /** 352 /// Returns real time data for a view (profile).
339 * Returns real time data for a view (profile). 353 ///
340 * 354 /// Request parameters:
341 * Request parameters: 355 ///
342 * 356 /// [ids] - Unique table ID for retrieving real time data. Table ID is of the
343 * [ids] - Unique table ID for retrieving real time data. Table ID is of the 357 /// form ga:XXXX, where XXXX is the Analytics view (profile) ID.
344 * form ga:XXXX, where XXXX is the Analytics view (profile) ID. 358 /// Value must have pattern "ga:[0-9]+".
345 * Value must have pattern "ga:[0-9]+". 359 ///
346 * 360 /// [metrics] - A comma-separated list of real time metrics. E.g.,
347 * [metrics] - A comma-separated list of real time metrics. E.g., 361 /// 'rt:activeUsers'. At least one metric must be specified.
348 * 'rt:activeUsers'. At least one metric must be specified. 362 /// Value must have pattern "(ga:.+)|(rt:.+)".
349 * Value must have pattern "(ga:.+)|(rt:.+)". 363 ///
350 * 364 /// [dimensions] - A comma-separated list of real time dimensions. E.g.,
351 * [dimensions] - A comma-separated list of real time dimensions. E.g., 365 /// 'rt:medium,rt:city'.
352 * 'rt:medium,rt:city'. 366 /// Value must have pattern "(ga:.+)|(rt:.+)".
353 * Value must have pattern "(ga:.+)|(rt:.+)". 367 ///
354 * 368 /// [filters] - A comma-separated list of dimension or metric filters to be
355 * [filters] - A comma-separated list of dimension or metric filters to be 369 /// applied to real time data.
356 * applied to real time data. 370 /// Value must have pattern "(ga:.+)|(rt:.+)".
357 * Value must have pattern "(ga:.+)|(rt:.+)". 371 ///
358 * 372 /// [max_results] - The maximum number of entries to include in this feed.
359 * [max_results] - The maximum number of entries to include in this feed. 373 ///
360 * 374 /// [sort] - A comma-separated list of dimensions or metrics that determine
361 * [sort] - A comma-separated list of dimensions or metrics that determine the 375 /// the sort order for real time data.
362 * sort order for real time data. 376 /// Value must have pattern "(-)?((ga:.+)|(rt:.+))".
363 * Value must have pattern "(-)?((ga:.+)|(rt:.+))". 377 ///
364 * 378 /// Completes with a [RealtimeData].
365 * Completes with a [RealtimeData]. 379 ///
366 * 380 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 381 /// an error.
368 * error. 382 ///
369 * 383 /// If the used [http.Client] completes with an error when making a REST
370 * If the used [http.Client] completes with an error when making a REST call, 384 /// call, this method will complete with the same error.
371 * this method will complete with the same error. 385 async.Future<RealtimeData> get(core.String ids, core.String metrics,
372 */ 386 {core.String dimensions,
373 async.Future<RealtimeData> get(core.String ids, core.String metrics, {core.Str ing dimensions, core.String filters, core.int max_results, core.String sort}) { 387 core.String filters,
388 core.int max_results,
389 core.String sort}) {
374 var _url = null; 390 var _url = null;
375 var _queryParams = new core.Map(); 391 var _queryParams = new core.Map();
376 var _uploadMedia = null; 392 var _uploadMedia = null;
377 var _uploadOptions = null; 393 var _uploadOptions = null;
378 var _downloadOptions = commons.DownloadOptions.Metadata; 394 var _downloadOptions = commons.DownloadOptions.Metadata;
379 var _body = null; 395 var _body = null;
380 396
381 if (ids == null) { 397 if (ids == null) {
382 throw new core.ArgumentError("Parameter ids is required."); 398 throw new core.ArgumentError("Parameter ids is required.");
383 } 399 }
(...skipping 10 matching lines...) Expand all
394 } 410 }
395 if (max_results != null) { 411 if (max_results != null) {
396 _queryParams["max-results"] = ["${max_results}"]; 412 _queryParams["max-results"] = ["${max_results}"];
397 } 413 }
398 if (sort != null) { 414 if (sort != null) {
399 _queryParams["sort"] = [sort]; 415 _queryParams["sort"] = [sort];
400 } 416 }
401 417
402 _url = 'data/realtime'; 418 _url = 'data/realtime';
403 419
404 var _response = _requester.request(_url, 420 var _response = _requester.request(_url, "GET",
405 "GET", 421 body: _body,
406 body: _body, 422 queryParams: _queryParams,
407 queryParams: _queryParams, 423 uploadOptions: _uploadOptions,
408 uploadOptions: _uploadOptions, 424 uploadMedia: _uploadMedia,
409 uploadMedia: _uploadMedia, 425 downloadOptions: _downloadOptions);
410 downloadOptions: _downloadOptions);
411 return _response.then((data) => new RealtimeData.fromJson(data)); 426 return _response.then((data) => new RealtimeData.fromJson(data));
412 } 427 }
413
414 } 428 }
415 429
416
417 class ManagementResourceApi { 430 class ManagementResourceApi {
418 final commons.ApiRequester _requester; 431 final commons.ApiRequester _requester;
419 432
420 ManagementAccountSummariesResourceApi get accountSummaries => new ManagementAc countSummariesResourceApi(_requester); 433 ManagementAccountSummariesResourceApi get accountSummaries =>
421 ManagementAccountUserLinksResourceApi get accountUserLinks => new ManagementAc countUserLinksResourceApi(_requester); 434 new ManagementAccountSummariesResourceApi(_requester);
422 ManagementAccountsResourceApi get accounts => new ManagementAccountsResourceAp i(_requester); 435 ManagementAccountUserLinksResourceApi get accountUserLinks =>
423 ManagementCustomDataSourcesResourceApi get customDataSources => new Management CustomDataSourcesResourceApi(_requester); 436 new ManagementAccountUserLinksResourceApi(_requester);
424 ManagementCustomDimensionsResourceApi get customDimensions => new ManagementCu stomDimensionsResourceApi(_requester); 437 ManagementAccountsResourceApi get accounts =>
425 ManagementCustomMetricsResourceApi get customMetrics => new ManagementCustomMe tricsResourceApi(_requester); 438 new ManagementAccountsResourceApi(_requester);
426 ManagementExperimentsResourceApi get experiments => new ManagementExperimentsR esourceApi(_requester); 439 ManagementCustomDataSourcesResourceApi get customDataSources =>
427 ManagementFiltersResourceApi get filters => new ManagementFiltersResourceApi(_ requester); 440 new ManagementCustomDataSourcesResourceApi(_requester);
428 ManagementGoalsResourceApi get goals => new ManagementGoalsResourceApi(_reques ter); 441 ManagementCustomDimensionsResourceApi get customDimensions =>
429 ManagementProfileFilterLinksResourceApi get profileFilterLinks => new Manageme ntProfileFilterLinksResourceApi(_requester); 442 new ManagementCustomDimensionsResourceApi(_requester);
430 ManagementProfileUserLinksResourceApi get profileUserLinks => new ManagementPr ofileUserLinksResourceApi(_requester); 443 ManagementCustomMetricsResourceApi get customMetrics =>
431 ManagementProfilesResourceApi get profiles => new ManagementProfilesResourceAp i(_requester); 444 new ManagementCustomMetricsResourceApi(_requester);
432 ManagementRemarketingAudienceResourceApi get remarketingAudience => new Manage mentRemarketingAudienceResourceApi(_requester); 445 ManagementExperimentsResourceApi get experiments =>
433 ManagementSegmentsResourceApi get segments => new ManagementSegmentsResourceAp i(_requester); 446 new ManagementExperimentsResourceApi(_requester);
434 ManagementUnsampledReportsResourceApi get unsampledReports => new ManagementUn sampledReportsResourceApi(_requester); 447 ManagementFiltersResourceApi get filters =>
435 ManagementUploadsResourceApi get uploads => new ManagementUploadsResourceApi(_ requester); 448 new ManagementFiltersResourceApi(_requester);
436 ManagementWebPropertyAdWordsLinksResourceApi get webPropertyAdWordsLinks => ne w ManagementWebPropertyAdWordsLinksResourceApi(_requester); 449 ManagementGoalsResourceApi get goals =>
437 ManagementWebpropertiesResourceApi get webproperties => new ManagementWebprope rtiesResourceApi(_requester); 450 new ManagementGoalsResourceApi(_requester);
438 ManagementWebpropertyUserLinksResourceApi get webpropertyUserLinks => new Mana gementWebpropertyUserLinksResourceApi(_requester); 451 ManagementProfileFilterLinksResourceApi get profileFilterLinks =>
452 new ManagementProfileFilterLinksResourceApi(_requester);
453 ManagementProfileUserLinksResourceApi get profileUserLinks =>
454 new ManagementProfileUserLinksResourceApi(_requester);
455 ManagementProfilesResourceApi get profiles =>
456 new ManagementProfilesResourceApi(_requester);
457 ManagementRemarketingAudienceResourceApi get remarketingAudience =>
458 new ManagementRemarketingAudienceResourceApi(_requester);
459 ManagementSegmentsResourceApi get segments =>
460 new ManagementSegmentsResourceApi(_requester);
461 ManagementUnsampledReportsResourceApi get unsampledReports =>
462 new ManagementUnsampledReportsResourceApi(_requester);
463 ManagementUploadsResourceApi get uploads =>
464 new ManagementUploadsResourceApi(_requester);
465 ManagementWebPropertyAdWordsLinksResourceApi get webPropertyAdWordsLinks =>
466 new ManagementWebPropertyAdWordsLinksResourceApi(_requester);
467 ManagementWebpropertiesResourceApi get webproperties =>
468 new ManagementWebpropertiesResourceApi(_requester);
469 ManagementWebpropertyUserLinksResourceApi get webpropertyUserLinks =>
470 new ManagementWebpropertyUserLinksResourceApi(_requester);
439 471
440 ManagementResourceApi(commons.ApiRequester client) : 472 ManagementResourceApi(commons.ApiRequester client) : _requester = client;
441 _requester = client;
442 } 473 }
443 474
444
445 class ManagementAccountSummariesResourceApi { 475 class ManagementAccountSummariesResourceApi {
446 final commons.ApiRequester _requester; 476 final commons.ApiRequester _requester;
447 477
448 ManagementAccountSummariesResourceApi(commons.ApiRequester client) : 478 ManagementAccountSummariesResourceApi(commons.ApiRequester client)
449 _requester = client; 479 : _requester = client;
450 480
451 /** 481 /// Lists account summaries (lightweight tree comprised of
452 * Lists account summaries (lightweight tree comprised of 482 /// accounts/properties/profiles) to which the user has access.
453 * accounts/properties/profiles) to which the user has access. 483 ///
454 * 484 /// Request parameters:
455 * Request parameters: 485 ///
456 * 486 /// [max_results] - The maximum number of account summaries to include in
457 * [max_results] - The maximum number of account summaries to include in this 487 /// this response, where the largest acceptable value is 1000.
458 * response, where the largest acceptable value is 1000. 488 ///
459 * 489 /// [start_index] - An index of the first entity to retrieve. Use this
460 * [start_index] - An index of the first entity to retrieve. Use this 490 /// parameter as a pagination mechanism along with the max-results parameter.
461 * parameter as a pagination mechanism along with the max-results parameter. 491 ///
462 * 492 /// Completes with a [AccountSummaries].
463 * Completes with a [AccountSummaries]. 493 ///
464 * 494 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
465 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 495 /// an error.
466 * error. 496 ///
467 * 497 /// If the used [http.Client] completes with an error when making a REST
468 * If the used [http.Client] completes with an error when making a REST call, 498 /// call, this method will complete with the same error.
469 * this method will complete with the same error. 499 async.Future<AccountSummaries> list(
470 */ 500 {core.int max_results, core.int start_index}) {
471 async.Future<AccountSummaries> list({core.int max_results, core.int start_inde x}) {
472 var _url = null; 501 var _url = null;
473 var _queryParams = new core.Map(); 502 var _queryParams = new core.Map();
474 var _uploadMedia = null; 503 var _uploadMedia = null;
475 var _uploadOptions = null; 504 var _uploadOptions = null;
476 var _downloadOptions = commons.DownloadOptions.Metadata; 505 var _downloadOptions = commons.DownloadOptions.Metadata;
477 var _body = null; 506 var _body = null;
478 507
479 if (max_results != null) { 508 if (max_results != null) {
480 _queryParams["max-results"] = ["${max_results}"]; 509 _queryParams["max-results"] = ["${max_results}"];
481 } 510 }
482 if (start_index != null) { 511 if (start_index != null) {
483 _queryParams["start-index"] = ["${start_index}"]; 512 _queryParams["start-index"] = ["${start_index}"];
484 } 513 }
485 514
486 _url = 'management/accountSummaries'; 515 _url = 'management/accountSummaries';
487 516
488 var _response = _requester.request(_url, 517 var _response = _requester.request(_url, "GET",
489 "GET", 518 body: _body,
490 body: _body, 519 queryParams: _queryParams,
491 queryParams: _queryParams, 520 uploadOptions: _uploadOptions,
492 uploadOptions: _uploadOptions, 521 uploadMedia: _uploadMedia,
493 uploadMedia: _uploadMedia, 522 downloadOptions: _downloadOptions);
494 downloadOptions: _downloadOptions);
495 return _response.then((data) => new AccountSummaries.fromJson(data)); 523 return _response.then((data) => new AccountSummaries.fromJson(data));
496 } 524 }
497
498 } 525 }
499 526
500
501 class ManagementAccountUserLinksResourceApi { 527 class ManagementAccountUserLinksResourceApi {
502 final commons.ApiRequester _requester; 528 final commons.ApiRequester _requester;
503 529
504 ManagementAccountUserLinksResourceApi(commons.ApiRequester client) : 530 ManagementAccountUserLinksResourceApi(commons.ApiRequester client)
505 _requester = client; 531 : _requester = client;
506 532
507 /** 533 /// Removes a user from the given account.
508 * Removes a user from the given account. 534 ///
509 * 535 /// Request parameters:
510 * Request parameters: 536 ///
511 * 537 /// [accountId] - Account ID to delete the user link for.
512 * [accountId] - Account ID to delete the user link for. 538 ///
513 * 539 /// [linkId] - Link ID to delete the user link for.
514 * [linkId] - Link ID to delete the user link for. 540 ///
515 * 541 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
516 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 542 /// an error.
517 * error. 543 ///
518 * 544 /// If the used [http.Client] completes with an error when making a REST
519 * If the used [http.Client] completes with an error when making a REST call, 545 /// call, this method will complete with the same error.
520 * this method will complete with the same error.
521 */
522 async.Future delete(core.String accountId, core.String linkId) { 546 async.Future delete(core.String accountId, core.String linkId) {
523 var _url = null; 547 var _url = null;
524 var _queryParams = new core.Map(); 548 var _queryParams = new core.Map();
525 var _uploadMedia = null; 549 var _uploadMedia = null;
526 var _uploadOptions = null; 550 var _uploadOptions = null;
527 var _downloadOptions = commons.DownloadOptions.Metadata; 551 var _downloadOptions = commons.DownloadOptions.Metadata;
528 var _body = null; 552 var _body = null;
529 553
530 if (accountId == null) { 554 if (accountId == null) {
531 throw new core.ArgumentError("Parameter accountId is required."); 555 throw new core.ArgumentError("Parameter accountId is required.");
532 } 556 }
533 if (linkId == null) { 557 if (linkId == null) {
534 throw new core.ArgumentError("Parameter linkId is required."); 558 throw new core.ArgumentError("Parameter linkId is required.");
535 } 559 }
536 560
537 _downloadOptions = null; 561 _downloadOptions = null;
538 562
539 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId'); 563 _url = 'management/accounts/' +
564 commons.Escaper.ecapeVariable('$accountId') +
565 '/entityUserLinks/' +
566 commons.Escaper.ecapeVariable('$linkId');
540 567
541 var _response = _requester.request(_url, 568 var _response = _requester.request(_url, "DELETE",
542 "DELETE", 569 body: _body,
543 body: _body, 570 queryParams: _queryParams,
544 queryParams: _queryParams, 571 uploadOptions: _uploadOptions,
545 uploadOptions: _uploadOptions, 572 uploadMedia: _uploadMedia,
546 uploadMedia: _uploadMedia, 573 downloadOptions: _downloadOptions);
547 downloadOptions: _downloadOptions);
548 return _response.then((data) => null); 574 return _response.then((data) => null);
549 } 575 }
550 576
551 /** 577 /// Adds a new user to the given account.
552 * Adds a new user to the given account. 578 ///
553 * 579 /// [request] - The metadata request object.
554 * [request] - The metadata request object. 580 ///
555 * 581 /// Request parameters:
556 * Request parameters: 582 ///
557 * 583 /// [accountId] - Account ID to create the user link for.
558 * [accountId] - Account ID to create the user link for. 584 ///
559 * 585 /// Completes with a [EntityUserLink].
560 * Completes with a [EntityUserLink]. 586 ///
561 * 587 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
562 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 588 /// an error.
563 * error. 589 ///
564 * 590 /// If the used [http.Client] completes with an error when making a REST
565 * If the used [http.Client] completes with an error when making a REST call, 591 /// call, this method will complete with the same error.
566 * this method will complete with the same error. 592 async.Future<EntityUserLink> insert(
567 */ 593 EntityUserLink request, core.String accountId) {
568 async.Future<EntityUserLink> insert(EntityUserLink request, core.String accoun tId) {
569 var _url = null; 594 var _url = null;
570 var _queryParams = new core.Map(); 595 var _queryParams = new core.Map();
571 var _uploadMedia = null; 596 var _uploadMedia = null;
572 var _uploadOptions = null; 597 var _uploadOptions = null;
573 var _downloadOptions = commons.DownloadOptions.Metadata; 598 var _downloadOptions = commons.DownloadOptions.Metadata;
574 var _body = null; 599 var _body = null;
575 600
576 if (request != null) { 601 if (request != null) {
577 _body = convert.JSON.encode((request).toJson()); 602 _body = convert.JSON.encode((request).toJson());
578 } 603 }
579 if (accountId == null) { 604 if (accountId == null) {
580 throw new core.ArgumentError("Parameter accountId is required."); 605 throw new core.ArgumentError("Parameter accountId is required.");
581 } 606 }
582 607
583 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks'; 608 _url = 'management/accounts/' +
609 commons.Escaper.ecapeVariable('$accountId') +
610 '/entityUserLinks';
584 611
585 var _response = _requester.request(_url, 612 var _response = _requester.request(_url, "POST",
586 "POST", 613 body: _body,
587 body: _body, 614 queryParams: _queryParams,
588 queryParams: _queryParams, 615 uploadOptions: _uploadOptions,
589 uploadOptions: _uploadOptions, 616 uploadMedia: _uploadMedia,
590 uploadMedia: _uploadMedia, 617 downloadOptions: _downloadOptions);
591 downloadOptions: _downloadOptions);
592 return _response.then((data) => new EntityUserLink.fromJson(data)); 618 return _response.then((data) => new EntityUserLink.fromJson(data));
593 } 619 }
594 620
595 /** 621 /// Lists account-user links for a given account.
596 * Lists account-user links for a given account. 622 ///
597 * 623 /// Request parameters:
598 * Request parameters: 624 ///
599 * 625 /// [accountId] - Account ID to retrieve the user links for.
600 * [accountId] - Account ID to retrieve the user links for. 626 ///
601 * 627 /// [max_results] - The maximum number of account-user links to include in
602 * [max_results] - The maximum number of account-user links to include in this 628 /// this response.
603 * response. 629 ///
604 * 630 /// [start_index] - An index of the first account-user link to retrieve. Use
605 * [start_index] - An index of the first account-user link to retrieve. Use 631 /// this parameter as a pagination mechanism along with the max-results
606 * this parameter as a pagination mechanism along with the max-results 632 /// parameter.
607 * parameter. 633 ///
608 * 634 /// Completes with a [EntityUserLinks].
609 * Completes with a [EntityUserLinks]. 635 ///
610 * 636 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
611 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 637 /// an error.
612 * error. 638 ///
613 * 639 /// If the used [http.Client] completes with an error when making a REST
614 * If the used [http.Client] completes with an error when making a REST call, 640 /// call, this method will complete with the same error.
615 * this method will complete with the same error. 641 async.Future<EntityUserLinks> list(core.String accountId,
616 */ 642 {core.int max_results, core.int start_index}) {
617 async.Future<EntityUserLinks> list(core.String accountId, {core.int max_result s, core.int start_index}) {
618 var _url = null; 643 var _url = null;
619 var _queryParams = new core.Map(); 644 var _queryParams = new core.Map();
620 var _uploadMedia = null; 645 var _uploadMedia = null;
621 var _uploadOptions = null; 646 var _uploadOptions = null;
622 var _downloadOptions = commons.DownloadOptions.Metadata; 647 var _downloadOptions = commons.DownloadOptions.Metadata;
623 var _body = null; 648 var _body = null;
624 649
625 if (accountId == null) { 650 if (accountId == null) {
626 throw new core.ArgumentError("Parameter accountId is required."); 651 throw new core.ArgumentError("Parameter accountId is required.");
627 } 652 }
628 if (max_results != null) { 653 if (max_results != null) {
629 _queryParams["max-results"] = ["${max_results}"]; 654 _queryParams["max-results"] = ["${max_results}"];
630 } 655 }
631 if (start_index != null) { 656 if (start_index != null) {
632 _queryParams["start-index"] = ["${start_index}"]; 657 _queryParams["start-index"] = ["${start_index}"];
633 } 658 }
634 659
635 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks'; 660 _url = 'management/accounts/' +
661 commons.Escaper.ecapeVariable('$accountId') +
662 '/entityUserLinks';
636 663
637 var _response = _requester.request(_url, 664 var _response = _requester.request(_url, "GET",
638 "GET", 665 body: _body,
639 body: _body, 666 queryParams: _queryParams,
640 queryParams: _queryParams, 667 uploadOptions: _uploadOptions,
641 uploadOptions: _uploadOptions, 668 uploadMedia: _uploadMedia,
642 uploadMedia: _uploadMedia, 669 downloadOptions: _downloadOptions);
643 downloadOptions: _downloadOptions);
644 return _response.then((data) => new EntityUserLinks.fromJson(data)); 670 return _response.then((data) => new EntityUserLinks.fromJson(data));
645 } 671 }
646 672
647 /** 673 /// Updates permissions for an existing user on the given account.
648 * Updates permissions for an existing user on the given account. 674 ///
649 * 675 /// [request] - The metadata request object.
650 * [request] - The metadata request object. 676 ///
651 * 677 /// Request parameters:
652 * Request parameters: 678 ///
653 * 679 /// [accountId] - Account ID to update the account-user link for.
654 * [accountId] - Account ID to update the account-user link for. 680 ///
655 * 681 /// [linkId] - Link ID to update the account-user link for.
656 * [linkId] - Link ID to update the account-user link for. 682 ///
657 * 683 /// Completes with a [EntityUserLink].
658 * Completes with a [EntityUserLink]. 684 ///
659 * 685 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
660 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 686 /// an error.
661 * error. 687 ///
662 * 688 /// If the used [http.Client] completes with an error when making a REST
663 * If the used [http.Client] completes with an error when making a REST call, 689 /// call, this method will complete with the same error.
664 * this method will complete with the same error. 690 async.Future<EntityUserLink> update(
665 */ 691 EntityUserLink request, core.String accountId, core.String linkId) {
666 async.Future<EntityUserLink> update(EntityUserLink request, core.String accoun tId, core.String linkId) {
667 var _url = null; 692 var _url = null;
668 var _queryParams = new core.Map(); 693 var _queryParams = new core.Map();
669 var _uploadMedia = null; 694 var _uploadMedia = null;
670 var _uploadOptions = null; 695 var _uploadOptions = null;
671 var _downloadOptions = commons.DownloadOptions.Metadata; 696 var _downloadOptions = commons.DownloadOptions.Metadata;
672 var _body = null; 697 var _body = null;
673 698
674 if (request != null) { 699 if (request != null) {
675 _body = convert.JSON.encode((request).toJson()); 700 _body = convert.JSON.encode((request).toJson());
676 } 701 }
677 if (accountId == null) { 702 if (accountId == null) {
678 throw new core.ArgumentError("Parameter accountId is required."); 703 throw new core.ArgumentError("Parameter accountId is required.");
679 } 704 }
680 if (linkId == null) { 705 if (linkId == null) {
681 throw new core.ArgumentError("Parameter linkId is required."); 706 throw new core.ArgumentError("Parameter linkId is required.");
682 } 707 }
683 708
684 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/entityUserLinks/' + commons.Escaper.ecapeVariable('$linkId'); 709 _url = 'management/accounts/' +
710 commons.Escaper.ecapeVariable('$accountId') +
711 '/entityUserLinks/' +
712 commons.Escaper.ecapeVariable('$linkId');
685 713
686 var _response = _requester.request(_url, 714 var _response = _requester.request(_url, "PUT",
687 "PUT", 715 body: _body,
688 body: _body, 716 queryParams: _queryParams,
689 queryParams: _queryParams, 717 uploadOptions: _uploadOptions,
690 uploadOptions: _uploadOptions, 718 uploadMedia: _uploadMedia,
691 uploadMedia: _uploadMedia, 719 downloadOptions: _downloadOptions);
692 downloadOptions: _downloadOptions);
693 return _response.then((data) => new EntityUserLink.fromJson(data)); 720 return _response.then((data) => new EntityUserLink.fromJson(data));
694 } 721 }
695
696 } 722 }
697 723
698
699 class ManagementAccountsResourceApi { 724 class ManagementAccountsResourceApi {
700 final commons.ApiRequester _requester; 725 final commons.ApiRequester _requester;
701 726
702 ManagementAccountsResourceApi(commons.ApiRequester client) : 727 ManagementAccountsResourceApi(commons.ApiRequester client)
703 _requester = client; 728 : _requester = client;
704 729
705 /** 730 /// Lists all accounts to which the user has access.
706 * Lists all accounts to which the user has access. 731 ///
707 * 732 /// Request parameters:
708 * Request parameters: 733 ///
709 * 734 /// [max_results] - The maximum number of accounts to include in this
710 * [max_results] - The maximum number of accounts to include in this response. 735 /// response.
711 * 736 ///
712 * [start_index] - An index of the first account to retrieve. Use this 737 /// [start_index] - An index of the first account to retrieve. Use this
713 * parameter as a pagination mechanism along with the max-results parameter. 738 /// parameter as a pagination mechanism along with the max-results parameter.
714 * 739 ///
715 * Completes with a [Accounts]. 740 /// Completes with a [Accounts].
716 * 741 ///
717 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 742 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
718 * error. 743 /// an error.
719 * 744 ///
720 * If the used [http.Client] completes with an error when making a REST call, 745 /// If the used [http.Client] completes with an error when making a REST
721 * this method will complete with the same error. 746 /// call, this method will complete with the same error.
722 */
723 async.Future<Accounts> list({core.int max_results, core.int start_index}) { 747 async.Future<Accounts> list({core.int max_results, core.int start_index}) {
724 var _url = null; 748 var _url = null;
725 var _queryParams = new core.Map(); 749 var _queryParams = new core.Map();
726 var _uploadMedia = null; 750 var _uploadMedia = null;
727 var _uploadOptions = null; 751 var _uploadOptions = null;
728 var _downloadOptions = commons.DownloadOptions.Metadata; 752 var _downloadOptions = commons.DownloadOptions.Metadata;
729 var _body = null; 753 var _body = null;
730 754
731 if (max_results != null) { 755 if (max_results != null) {
732 _queryParams["max-results"] = ["${max_results}"]; 756 _queryParams["max-results"] = ["${max_results}"];
733 } 757 }
734 if (start_index != null) { 758 if (start_index != null) {
735 _queryParams["start-index"] = ["${start_index}"]; 759 _queryParams["start-index"] = ["${start_index}"];
736 } 760 }
737 761
738 _url = 'management/accounts'; 762 _url = 'management/accounts';
739 763
740 var _response = _requester.request(_url, 764 var _response = _requester.request(_url, "GET",
741 "GET", 765 body: _body,
742 body: _body, 766 queryParams: _queryParams,
743 queryParams: _queryParams, 767 uploadOptions: _uploadOptions,
744 uploadOptions: _uploadOptions, 768 uploadMedia: _uploadMedia,
745 uploadMedia: _uploadMedia, 769 downloadOptions: _downloadOptions);
746 downloadOptions: _downloadOptions);
747 return _response.then((data) => new Accounts.fromJson(data)); 770 return _response.then((data) => new Accounts.fromJson(data));
748 } 771 }
749
750 } 772 }
751 773
752
753 class ManagementCustomDataSourcesResourceApi { 774 class ManagementCustomDataSourcesResourceApi {
754 final commons.ApiRequester _requester; 775 final commons.ApiRequester _requester;
755 776
756 ManagementCustomDataSourcesResourceApi(commons.ApiRequester client) : 777 ManagementCustomDataSourcesResourceApi(commons.ApiRequester client)
757 _requester = client; 778 : _requester = client;
758 779
759 /** 780 /// List custom data sources to which the user has access.
760 * List custom data sources to which the user has access. 781 ///
761 * 782 /// Request parameters:
762 * Request parameters: 783 ///
763 * 784 /// [accountId] - Account Id for the custom data sources to retrieve.
764 * [accountId] - Account Id for the custom data sources to retrieve. 785 /// Value must have pattern "\d+".
765 * Value must have pattern "\d+". 786 ///
766 * 787 /// [webPropertyId] - Web property Id for the custom data sources to
767 * [webPropertyId] - Web property Id for the custom data sources to retrieve. 788 /// retrieve.
768 * Value must have pattern "UA-(\d+)-(\d+)". 789 /// Value must have pattern "UA-(\d+)-(\d+)".
769 * 790 ///
770 * [max_results] - The maximum number of custom data sources to include in 791 /// [max_results] - The maximum number of custom data sources to include in
771 * this response. 792 /// this response.
772 * 793 ///
773 * [start_index] - A 1-based index of the first custom data source to 794 /// [start_index] - A 1-based index of the first custom data source to
774 * retrieve. Use this parameter as a pagination mechanism along with the 795 /// retrieve. Use this parameter as a pagination mechanism along with the
775 * max-results parameter. 796 /// max-results parameter.
776 * 797 ///
777 * Completes with a [CustomDataSources]. 798 /// Completes with a [CustomDataSources].
778 * 799 ///
779 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 800 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
780 * error. 801 /// an error.
781 * 802 ///
782 * If the used [http.Client] completes with an error when making a REST call, 803 /// If the used [http.Client] completes with an error when making a REST
783 * this method will complete with the same error. 804 /// call, this method will complete with the same error.
784 */ 805 async.Future<CustomDataSources> list(
785 async.Future<CustomDataSources> list(core.String accountId, core.String webPro pertyId, {core.int max_results, core.int start_index}) { 806 core.String accountId, core.String webPropertyId,
807 {core.int max_results, core.int start_index}) {
786 var _url = null; 808 var _url = null;
787 var _queryParams = new core.Map(); 809 var _queryParams = new core.Map();
788 var _uploadMedia = null; 810 var _uploadMedia = null;
789 var _uploadOptions = null; 811 var _uploadOptions = null;
790 var _downloadOptions = commons.DownloadOptions.Metadata; 812 var _downloadOptions = commons.DownloadOptions.Metadata;
791 var _body = null; 813 var _body = null;
792 814
793 if (accountId == null) { 815 if (accountId == null) {
794 throw new core.ArgumentError("Parameter accountId is required."); 816 throw new core.ArgumentError("Parameter accountId is required.");
795 } 817 }
796 if (webPropertyId == null) { 818 if (webPropertyId == null) {
797 throw new core.ArgumentError("Parameter webPropertyId is required."); 819 throw new core.ArgumentError("Parameter webPropertyId is required.");
798 } 820 }
799 if (max_results != null) { 821 if (max_results != null) {
800 _queryParams["max-results"] = ["${max_results}"]; 822 _queryParams["max-results"] = ["${max_results}"];
801 } 823 }
802 if (start_index != null) { 824 if (start_index != null) {
803 _queryParams["start-index"] = ["${start_index}"]; 825 _queryParams["start-index"] = ["${start_index}"];
804 } 826 }
805 827
806 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom DataSources'; 828 _url = 'management/accounts/' +
829 commons.Escaper.ecapeVariable('$accountId') +
830 '/webproperties/' +
831 commons.Escaper.ecapeVariable('$webPropertyId') +
832 '/customDataSources';
807 833
808 var _response = _requester.request(_url, 834 var _response = _requester.request(_url, "GET",
809 "GET", 835 body: _body,
810 body: _body, 836 queryParams: _queryParams,
811 queryParams: _queryParams, 837 uploadOptions: _uploadOptions,
812 uploadOptions: _uploadOptions, 838 uploadMedia: _uploadMedia,
813 uploadMedia: _uploadMedia, 839 downloadOptions: _downloadOptions);
814 downloadOptions: _downloadOptions);
815 return _response.then((data) => new CustomDataSources.fromJson(data)); 840 return _response.then((data) => new CustomDataSources.fromJson(data));
816 } 841 }
817
818 } 842 }
819 843
820
821 class ManagementCustomDimensionsResourceApi { 844 class ManagementCustomDimensionsResourceApi {
822 final commons.ApiRequester _requester; 845 final commons.ApiRequester _requester;
823 846
824 ManagementCustomDimensionsResourceApi(commons.ApiRequester client) : 847 ManagementCustomDimensionsResourceApi(commons.ApiRequester client)
825 _requester = client; 848 : _requester = client;
826 849
827 /** 850 /// Get a custom dimension to which the user has access.
828 * Get a custom dimension to which the user has access. 851 ///
829 * 852 /// Request parameters:
830 * Request parameters: 853 ///
831 * 854 /// [accountId] - Account ID for the custom dimension to retrieve.
832 * [accountId] - Account ID for the custom dimension to retrieve. 855 ///
833 * 856 /// [webPropertyId] - Web property ID for the custom dimension to retrieve.
834 * [webPropertyId] - Web property ID for the custom dimension to retrieve. 857 ///
835 * 858 /// [customDimensionId] - The ID of the custom dimension to retrieve.
836 * [customDimensionId] - The ID of the custom dimension to retrieve. 859 ///
837 * 860 /// Completes with a [CustomDimension].
838 * Completes with a [CustomDimension]. 861 ///
839 * 862 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
840 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 863 /// an error.
841 * error. 864 ///
842 * 865 /// If the used [http.Client] completes with an error when making a REST
843 * If the used [http.Client] completes with an error when making a REST call, 866 /// call, this method will complete with the same error.
844 * this method will complete with the same error. 867 async.Future<CustomDimension> get(core.String accountId,
845 */ 868 core.String webPropertyId, core.String customDimensionId) {
846 async.Future<CustomDimension> get(core.String accountId, core.String webProper tyId, core.String customDimensionId) {
847 var _url = null; 869 var _url = null;
848 var _queryParams = new core.Map(); 870 var _queryParams = new core.Map();
849 var _uploadMedia = null; 871 var _uploadMedia = null;
850 var _uploadOptions = null; 872 var _uploadOptions = null;
851 var _downloadOptions = commons.DownloadOptions.Metadata; 873 var _downloadOptions = commons.DownloadOptions.Metadata;
852 var _body = null; 874 var _body = null;
853 875
854 if (accountId == null) { 876 if (accountId == null) {
855 throw new core.ArgumentError("Parameter accountId is required."); 877 throw new core.ArgumentError("Parameter accountId is required.");
856 } 878 }
857 if (webPropertyId == null) { 879 if (webPropertyId == null) {
858 throw new core.ArgumentError("Parameter webPropertyId is required."); 880 throw new core.ArgumentError("Parameter webPropertyId is required.");
859 } 881 }
860 if (customDimensionId == null) { 882 if (customDimensionId == null) {
861 throw new core.ArgumentError("Parameter customDimensionId is required."); 883 throw new core.ArgumentError("Parameter customDimensionId is required.");
862 } 884 }
863 885
864 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Dimensions/' + commons.Escaper.ecapeVariable('$customDimensionId'); 886 _url = 'management/accounts/' +
887 commons.Escaper.ecapeVariable('$accountId') +
888 '/webproperties/' +
889 commons.Escaper.ecapeVariable('$webPropertyId') +
890 '/customDimensions/' +
891 commons.Escaper.ecapeVariable('$customDimensionId');
865 892
866 var _response = _requester.request(_url, 893 var _response = _requester.request(_url, "GET",
867 "GET", 894 body: _body,
868 body: _body, 895 queryParams: _queryParams,
869 queryParams: _queryParams, 896 uploadOptions: _uploadOptions,
870 uploadOptions: _uploadOptions, 897 uploadMedia: _uploadMedia,
871 uploadMedia: _uploadMedia, 898 downloadOptions: _downloadOptions);
872 downloadOptions: _downloadOptions);
873 return _response.then((data) => new CustomDimension.fromJson(data)); 899 return _response.then((data) => new CustomDimension.fromJson(data));
874 } 900 }
875 901
876 /** 902 /// Create a new custom dimension.
877 * Create a new custom dimension. 903 ///
878 * 904 /// [request] - The metadata request object.
879 * [request] - The metadata request object. 905 ///
880 * 906 /// Request parameters:
881 * Request parameters: 907 ///
882 * 908 /// [accountId] - Account ID for the custom dimension to create.
883 * [accountId] - Account ID for the custom dimension to create. 909 ///
884 * 910 /// [webPropertyId] - Web property ID for the custom dimension to create.
885 * [webPropertyId] - Web property ID for the custom dimension to create. 911 ///
886 * 912 /// Completes with a [CustomDimension].
887 * Completes with a [CustomDimension]. 913 ///
888 * 914 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
889 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 915 /// an error.
890 * error. 916 ///
891 * 917 /// If the used [http.Client] completes with an error when making a REST
892 * If the used [http.Client] completes with an error when making a REST call, 918 /// call, this method will complete with the same error.
893 * this method will complete with the same error. 919 async.Future<CustomDimension> insert(CustomDimension request,
894 */ 920 core.String accountId, core.String webPropertyId) {
895 async.Future<CustomDimension> insert(CustomDimension request, core.String acco untId, core.String webPropertyId) {
896 var _url = null; 921 var _url = null;
897 var _queryParams = new core.Map(); 922 var _queryParams = new core.Map();
898 var _uploadMedia = null; 923 var _uploadMedia = null;
899 var _uploadOptions = null; 924 var _uploadOptions = null;
900 var _downloadOptions = commons.DownloadOptions.Metadata; 925 var _downloadOptions = commons.DownloadOptions.Metadata;
901 var _body = null; 926 var _body = null;
902 927
903 if (request != null) { 928 if (request != null) {
904 _body = convert.JSON.encode((request).toJson()); 929 _body = convert.JSON.encode((request).toJson());
905 } 930 }
906 if (accountId == null) { 931 if (accountId == null) {
907 throw new core.ArgumentError("Parameter accountId is required."); 932 throw new core.ArgumentError("Parameter accountId is required.");
908 } 933 }
909 if (webPropertyId == null) { 934 if (webPropertyId == null) {
910 throw new core.ArgumentError("Parameter webPropertyId is required."); 935 throw new core.ArgumentError("Parameter webPropertyId is required.");
911 } 936 }
912 937
913 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Dimensions'; 938 _url = 'management/accounts/' +
939 commons.Escaper.ecapeVariable('$accountId') +
940 '/webproperties/' +
941 commons.Escaper.ecapeVariable('$webPropertyId') +
942 '/customDimensions';
914 943
915 var _response = _requester.request(_url, 944 var _response = _requester.request(_url, "POST",
916 "POST", 945 body: _body,
917 body: _body, 946 queryParams: _queryParams,
918 queryParams: _queryParams, 947 uploadOptions: _uploadOptions,
919 uploadOptions: _uploadOptions, 948 uploadMedia: _uploadMedia,
920 uploadMedia: _uploadMedia, 949 downloadOptions: _downloadOptions);
921 downloadOptions: _downloadOptions);
922 return _response.then((data) => new CustomDimension.fromJson(data)); 950 return _response.then((data) => new CustomDimension.fromJson(data));
923 } 951 }
924 952
925 /** 953 /// Lists custom dimensions to which the user has access.
926 * Lists custom dimensions to which the user has access. 954 ///
927 * 955 /// Request parameters:
928 * Request parameters: 956 ///
929 * 957 /// [accountId] - Account ID for the custom dimensions to retrieve.
930 * [accountId] - Account ID for the custom dimensions to retrieve. 958 ///
931 * 959 /// [webPropertyId] - Web property ID for the custom dimensions to retrieve.
932 * [webPropertyId] - Web property ID for the custom dimensions to retrieve. 960 ///
933 * 961 /// [max_results] - The maximum number of custom dimensions to include in
934 * [max_results] - The maximum number of custom dimensions to include in this 962 /// this response.
935 * response. 963 ///
936 * 964 /// [start_index] - An index of the first entity to retrieve. Use this
937 * [start_index] - An index of the first entity to retrieve. Use this 965 /// parameter as a pagination mechanism along with the max-results parameter.
938 * parameter as a pagination mechanism along with the max-results parameter. 966 ///
939 * 967 /// Completes with a [CustomDimensions].
940 * Completes with a [CustomDimensions]. 968 ///
941 * 969 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
942 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 970 /// an error.
943 * error. 971 ///
944 * 972 /// If the used [http.Client] completes with an error when making a REST
945 * If the used [http.Client] completes with an error when making a REST call, 973 /// call, this method will complete with the same error.
946 * this method will complete with the same error. 974 async.Future<CustomDimensions> list(
947 */ 975 core.String accountId, core.String webPropertyId,
948 async.Future<CustomDimensions> list(core.String accountId, core.String webProp ertyId, {core.int max_results, core.int start_index}) { 976 {core.int max_results, core.int start_index}) {
949 var _url = null; 977 var _url = null;
950 var _queryParams = new core.Map(); 978 var _queryParams = new core.Map();
951 var _uploadMedia = null; 979 var _uploadMedia = null;
952 var _uploadOptions = null; 980 var _uploadOptions = null;
953 var _downloadOptions = commons.DownloadOptions.Metadata; 981 var _downloadOptions = commons.DownloadOptions.Metadata;
954 var _body = null; 982 var _body = null;
955 983
956 if (accountId == null) { 984 if (accountId == null) {
957 throw new core.ArgumentError("Parameter accountId is required."); 985 throw new core.ArgumentError("Parameter accountId is required.");
958 } 986 }
959 if (webPropertyId == null) { 987 if (webPropertyId == null) {
960 throw new core.ArgumentError("Parameter webPropertyId is required."); 988 throw new core.ArgumentError("Parameter webPropertyId is required.");
961 } 989 }
962 if (max_results != null) { 990 if (max_results != null) {
963 _queryParams["max-results"] = ["${max_results}"]; 991 _queryParams["max-results"] = ["${max_results}"];
964 } 992 }
965 if (start_index != null) { 993 if (start_index != null) {
966 _queryParams["start-index"] = ["${start_index}"]; 994 _queryParams["start-index"] = ["${start_index}"];
967 } 995 }
968 996
969 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Dimensions'; 997 _url = 'management/accounts/' +
998 commons.Escaper.ecapeVariable('$accountId') +
999 '/webproperties/' +
1000 commons.Escaper.ecapeVariable('$webPropertyId') +
1001 '/customDimensions';
970 1002
971 var _response = _requester.request(_url, 1003 var _response = _requester.request(_url, "GET",
972 "GET", 1004 body: _body,
973 body: _body, 1005 queryParams: _queryParams,
974 queryParams: _queryParams, 1006 uploadOptions: _uploadOptions,
975 uploadOptions: _uploadOptions, 1007 uploadMedia: _uploadMedia,
976 uploadMedia: _uploadMedia, 1008 downloadOptions: _downloadOptions);
977 downloadOptions: _downloadOptions);
978 return _response.then((data) => new CustomDimensions.fromJson(data)); 1009 return _response.then((data) => new CustomDimensions.fromJson(data));
979 } 1010 }
980 1011
981 /** 1012 /// Updates an existing custom dimension. This method supports patch
982 * Updates an existing custom dimension. This method supports patch semantics. 1013 /// semantics.
983 * 1014 ///
984 * [request] - The metadata request object. 1015 /// [request] - The metadata request object.
985 * 1016 ///
986 * Request parameters: 1017 /// Request parameters:
987 * 1018 ///
988 * [accountId] - Account ID for the custom dimension to update. 1019 /// [accountId] - Account ID for the custom dimension to update.
989 * 1020 ///
990 * [webPropertyId] - Web property ID for the custom dimension to update. 1021 /// [webPropertyId] - Web property ID for the custom dimension to update.
991 * 1022 ///
992 * [customDimensionId] - Custom dimension ID for the custom dimension to 1023 /// [customDimensionId] - Custom dimension ID for the custom dimension to
993 * update. 1024 /// update.
994 * 1025 ///
995 * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings 1026 /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
996 * related to the custom dimension being linked to a custom data source / data 1027 /// related to the custom dimension being linked to a custom data source /
997 * set. 1028 /// data set.
998 * 1029 ///
999 * Completes with a [CustomDimension]. 1030 /// Completes with a [CustomDimension].
1000 * 1031 ///
1001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1032 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1002 * error. 1033 /// an error.
1003 * 1034 ///
1004 * If the used [http.Client] completes with an error when making a REST call, 1035 /// If the used [http.Client] completes with an error when making a REST
1005 * this method will complete with the same error. 1036 /// call, this method will complete with the same error.
1006 */ 1037 async.Future<CustomDimension> patch(
1007 async.Future<CustomDimension> patch(CustomDimension request, core.String accou ntId, core.String webPropertyId, core.String customDimensionId, {core.bool ignor eCustomDataSourceLinks}) { 1038 CustomDimension request,
1039 core.String accountId,
1040 core.String webPropertyId,
1041 core.String customDimensionId,
1042 {core.bool ignoreCustomDataSourceLinks}) {
1008 var _url = null; 1043 var _url = null;
1009 var _queryParams = new core.Map(); 1044 var _queryParams = new core.Map();
1010 var _uploadMedia = null; 1045 var _uploadMedia = null;
1011 var _uploadOptions = null; 1046 var _uploadOptions = null;
1012 var _downloadOptions = commons.DownloadOptions.Metadata; 1047 var _downloadOptions = commons.DownloadOptions.Metadata;
1013 var _body = null; 1048 var _body = null;
1014 1049
1015 if (request != null) { 1050 if (request != null) {
1016 _body = convert.JSON.encode((request).toJson()); 1051 _body = convert.JSON.encode((request).toJson());
1017 } 1052 }
1018 if (accountId == null) { 1053 if (accountId == null) {
1019 throw new core.ArgumentError("Parameter accountId is required."); 1054 throw new core.ArgumentError("Parameter accountId is required.");
1020 } 1055 }
1021 if (webPropertyId == null) { 1056 if (webPropertyId == null) {
1022 throw new core.ArgumentError("Parameter webPropertyId is required."); 1057 throw new core.ArgumentError("Parameter webPropertyId is required.");
1023 } 1058 }
1024 if (customDimensionId == null) { 1059 if (customDimensionId == null) {
1025 throw new core.ArgumentError("Parameter customDimensionId is required."); 1060 throw new core.ArgumentError("Parameter customDimensionId is required.");
1026 } 1061 }
1027 if (ignoreCustomDataSourceLinks != null) { 1062 if (ignoreCustomDataSourceLinks != null) {
1028 _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLi nks}"]; 1063 _queryParams["ignoreCustomDataSourceLinks"] = [
1064 "${ignoreCustomDataSourceLinks}"
1065 ];
1029 } 1066 }
1030 1067
1031 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Dimensions/' + commons.Escaper.ecapeVariable('$customDimensionId'); 1068 _url = 'management/accounts/' +
1069 commons.Escaper.ecapeVariable('$accountId') +
1070 '/webproperties/' +
1071 commons.Escaper.ecapeVariable('$webPropertyId') +
1072 '/customDimensions/' +
1073 commons.Escaper.ecapeVariable('$customDimensionId');
1032 1074
1033 var _response = _requester.request(_url, 1075 var _response = _requester.request(_url, "PATCH",
1034 "PATCH", 1076 body: _body,
1035 body: _body, 1077 queryParams: _queryParams,
1036 queryParams: _queryParams, 1078 uploadOptions: _uploadOptions,
1037 uploadOptions: _uploadOptions, 1079 uploadMedia: _uploadMedia,
1038 uploadMedia: _uploadMedia, 1080 downloadOptions: _downloadOptions);
1039 downloadOptions: _downloadOptions);
1040 return _response.then((data) => new CustomDimension.fromJson(data)); 1081 return _response.then((data) => new CustomDimension.fromJson(data));
1041 } 1082 }
1042 1083
1043 /** 1084 /// Updates an existing custom dimension.
1044 * Updates an existing custom dimension. 1085 ///
1045 * 1086 /// [request] - The metadata request object.
1046 * [request] - The metadata request object. 1087 ///
1047 * 1088 /// Request parameters:
1048 * Request parameters: 1089 ///
1049 * 1090 /// [accountId] - Account ID for the custom dimension to update.
1050 * [accountId] - Account ID for the custom dimension to update. 1091 ///
1051 * 1092 /// [webPropertyId] - Web property ID for the custom dimension to update.
1052 * [webPropertyId] - Web property ID for the custom dimension to update. 1093 ///
1053 * 1094 /// [customDimensionId] - Custom dimension ID for the custom dimension to
1054 * [customDimensionId] - Custom dimension ID for the custom dimension to 1095 /// update.
1055 * update. 1096 ///
1056 * 1097 /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
1057 * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings 1098 /// related to the custom dimension being linked to a custom data source /
1058 * related to the custom dimension being linked to a custom data source / data 1099 /// data set.
1059 * set. 1100 ///
1060 * 1101 /// Completes with a [CustomDimension].
1061 * Completes with a [CustomDimension]. 1102 ///
1062 * 1103 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1063 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1104 /// an error.
1064 * error. 1105 ///
1065 * 1106 /// If the used [http.Client] completes with an error when making a REST
1066 * If the used [http.Client] completes with an error when making a REST call, 1107 /// call, this method will complete with the same error.
1067 * this method will complete with the same error. 1108 async.Future<CustomDimension> update(
1068 */ 1109 CustomDimension request,
1069 async.Future<CustomDimension> update(CustomDimension request, core.String acco untId, core.String webPropertyId, core.String customDimensionId, {core.bool igno reCustomDataSourceLinks}) { 1110 core.String accountId,
1111 core.String webPropertyId,
1112 core.String customDimensionId,
1113 {core.bool ignoreCustomDataSourceLinks}) {
1070 var _url = null; 1114 var _url = null;
1071 var _queryParams = new core.Map(); 1115 var _queryParams = new core.Map();
1072 var _uploadMedia = null; 1116 var _uploadMedia = null;
1073 var _uploadOptions = null; 1117 var _uploadOptions = null;
1074 var _downloadOptions = commons.DownloadOptions.Metadata; 1118 var _downloadOptions = commons.DownloadOptions.Metadata;
1075 var _body = null; 1119 var _body = null;
1076 1120
1077 if (request != null) { 1121 if (request != null) {
1078 _body = convert.JSON.encode((request).toJson()); 1122 _body = convert.JSON.encode((request).toJson());
1079 } 1123 }
1080 if (accountId == null) { 1124 if (accountId == null) {
1081 throw new core.ArgumentError("Parameter accountId is required."); 1125 throw new core.ArgumentError("Parameter accountId is required.");
1082 } 1126 }
1083 if (webPropertyId == null) { 1127 if (webPropertyId == null) {
1084 throw new core.ArgumentError("Parameter webPropertyId is required."); 1128 throw new core.ArgumentError("Parameter webPropertyId is required.");
1085 } 1129 }
1086 if (customDimensionId == null) { 1130 if (customDimensionId == null) {
1087 throw new core.ArgumentError("Parameter customDimensionId is required."); 1131 throw new core.ArgumentError("Parameter customDimensionId is required.");
1088 } 1132 }
1089 if (ignoreCustomDataSourceLinks != null) { 1133 if (ignoreCustomDataSourceLinks != null) {
1090 _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLi nks}"]; 1134 _queryParams["ignoreCustomDataSourceLinks"] = [
1135 "${ignoreCustomDataSourceLinks}"
1136 ];
1091 } 1137 }
1092 1138
1093 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Dimensions/' + commons.Escaper.ecapeVariable('$customDimensionId'); 1139 _url = 'management/accounts/' +
1140 commons.Escaper.ecapeVariable('$accountId') +
1141 '/webproperties/' +
1142 commons.Escaper.ecapeVariable('$webPropertyId') +
1143 '/customDimensions/' +
1144 commons.Escaper.ecapeVariable('$customDimensionId');
1094 1145
1095 var _response = _requester.request(_url, 1146 var _response = _requester.request(_url, "PUT",
1096 "PUT", 1147 body: _body,
1097 body: _body, 1148 queryParams: _queryParams,
1098 queryParams: _queryParams, 1149 uploadOptions: _uploadOptions,
1099 uploadOptions: _uploadOptions, 1150 uploadMedia: _uploadMedia,
1100 uploadMedia: _uploadMedia, 1151 downloadOptions: _downloadOptions);
1101 downloadOptions: _downloadOptions);
1102 return _response.then((data) => new CustomDimension.fromJson(data)); 1152 return _response.then((data) => new CustomDimension.fromJson(data));
1103 } 1153 }
1104
1105 } 1154 }
1106 1155
1107
1108 class ManagementCustomMetricsResourceApi { 1156 class ManagementCustomMetricsResourceApi {
1109 final commons.ApiRequester _requester; 1157 final commons.ApiRequester _requester;
1110 1158
1111 ManagementCustomMetricsResourceApi(commons.ApiRequester client) : 1159 ManagementCustomMetricsResourceApi(commons.ApiRequester client)
1112 _requester = client; 1160 : _requester = client;
1113 1161
1114 /** 1162 /// Get a custom metric to which the user has access.
1115 * Get a custom metric to which the user has access. 1163 ///
1116 * 1164 /// Request parameters:
1117 * Request parameters: 1165 ///
1118 * 1166 /// [accountId] - Account ID for the custom metric to retrieve.
1119 * [accountId] - Account ID for the custom metric to retrieve. 1167 ///
1120 * 1168 /// [webPropertyId] - Web property ID for the custom metric to retrieve.
1121 * [webPropertyId] - Web property ID for the custom metric to retrieve. 1169 ///
1122 * 1170 /// [customMetricId] - The ID of the custom metric to retrieve.
1123 * [customMetricId] - The ID of the custom metric to retrieve. 1171 ///
1124 * 1172 /// Completes with a [CustomMetric].
1125 * Completes with a [CustomMetric]. 1173 ///
1126 * 1174 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1127 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1175 /// an error.
1128 * error. 1176 ///
1129 * 1177 /// If the used [http.Client] completes with an error when making a REST
1130 * If the used [http.Client] completes with an error when making a REST call, 1178 /// call, this method will complete with the same error.
1131 * this method will complete with the same error. 1179 async.Future<CustomMetric> get(core.String accountId,
1132 */ 1180 core.String webPropertyId, core.String customMetricId) {
1133 async.Future<CustomMetric> get(core.String accountId, core.String webPropertyI d, core.String customMetricId) {
1134 var _url = null; 1181 var _url = null;
1135 var _queryParams = new core.Map(); 1182 var _queryParams = new core.Map();
1136 var _uploadMedia = null; 1183 var _uploadMedia = null;
1137 var _uploadOptions = null; 1184 var _uploadOptions = null;
1138 var _downloadOptions = commons.DownloadOptions.Metadata; 1185 var _downloadOptions = commons.DownloadOptions.Metadata;
1139 var _body = null; 1186 var _body = null;
1140 1187
1141 if (accountId == null) { 1188 if (accountId == null) {
1142 throw new core.ArgumentError("Parameter accountId is required."); 1189 throw new core.ArgumentError("Parameter accountId is required.");
1143 } 1190 }
1144 if (webPropertyId == null) { 1191 if (webPropertyId == null) {
1145 throw new core.ArgumentError("Parameter webPropertyId is required."); 1192 throw new core.ArgumentError("Parameter webPropertyId is required.");
1146 } 1193 }
1147 if (customMetricId == null) { 1194 if (customMetricId == null) {
1148 throw new core.ArgumentError("Parameter customMetricId is required."); 1195 throw new core.ArgumentError("Parameter customMetricId is required.");
1149 } 1196 }
1150 1197
1151 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Metrics/' + commons.Escaper.ecapeVariable('$customMetricId'); 1198 _url = 'management/accounts/' +
1199 commons.Escaper.ecapeVariable('$accountId') +
1200 '/webproperties/' +
1201 commons.Escaper.ecapeVariable('$webPropertyId') +
1202 '/customMetrics/' +
1203 commons.Escaper.ecapeVariable('$customMetricId');
1152 1204
1153 var _response = _requester.request(_url, 1205 var _response = _requester.request(_url, "GET",
1154 "GET", 1206 body: _body,
1155 body: _body, 1207 queryParams: _queryParams,
1156 queryParams: _queryParams, 1208 uploadOptions: _uploadOptions,
1157 uploadOptions: _uploadOptions, 1209 uploadMedia: _uploadMedia,
1158 uploadMedia: _uploadMedia, 1210 downloadOptions: _downloadOptions);
1159 downloadOptions: _downloadOptions);
1160 return _response.then((data) => new CustomMetric.fromJson(data)); 1211 return _response.then((data) => new CustomMetric.fromJson(data));
1161 } 1212 }
1162 1213
1163 /** 1214 /// Create a new custom metric.
1164 * Create a new custom metric. 1215 ///
1165 * 1216 /// [request] - The metadata request object.
1166 * [request] - The metadata request object. 1217 ///
1167 * 1218 /// Request parameters:
1168 * Request parameters: 1219 ///
1169 * 1220 /// [accountId] - Account ID for the custom metric to create.
1170 * [accountId] - Account ID for the custom metric to create. 1221 ///
1171 * 1222 /// [webPropertyId] - Web property ID for the custom dimension to create.
1172 * [webPropertyId] - Web property ID for the custom dimension to create. 1223 ///
1173 * 1224 /// Completes with a [CustomMetric].
1174 * Completes with a [CustomMetric]. 1225 ///
1175 * 1226 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1176 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1227 /// an error.
1177 * error. 1228 ///
1178 * 1229 /// If the used [http.Client] completes with an error when making a REST
1179 * If the used [http.Client] completes with an error when making a REST call, 1230 /// call, this method will complete with the same error.
1180 * this method will complete with the same error. 1231 async.Future<CustomMetric> insert(
1181 */ 1232 CustomMetric request, core.String accountId, core.String webPropertyId) {
1182 async.Future<CustomMetric> insert(CustomMetric request, core.String accountId, core.String webPropertyId) {
1183 var _url = null; 1233 var _url = null;
1184 var _queryParams = new core.Map(); 1234 var _queryParams = new core.Map();
1185 var _uploadMedia = null; 1235 var _uploadMedia = null;
1186 var _uploadOptions = null; 1236 var _uploadOptions = null;
1187 var _downloadOptions = commons.DownloadOptions.Metadata; 1237 var _downloadOptions = commons.DownloadOptions.Metadata;
1188 var _body = null; 1238 var _body = null;
1189 1239
1190 if (request != null) { 1240 if (request != null) {
1191 _body = convert.JSON.encode((request).toJson()); 1241 _body = convert.JSON.encode((request).toJson());
1192 } 1242 }
1193 if (accountId == null) { 1243 if (accountId == null) {
1194 throw new core.ArgumentError("Parameter accountId is required."); 1244 throw new core.ArgumentError("Parameter accountId is required.");
1195 } 1245 }
1196 if (webPropertyId == null) { 1246 if (webPropertyId == null) {
1197 throw new core.ArgumentError("Parameter webPropertyId is required."); 1247 throw new core.ArgumentError("Parameter webPropertyId is required.");
1198 } 1248 }
1199 1249
1200 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Metrics'; 1250 _url = 'management/accounts/' +
1251 commons.Escaper.ecapeVariable('$accountId') +
1252 '/webproperties/' +
1253 commons.Escaper.ecapeVariable('$webPropertyId') +
1254 '/customMetrics';
1201 1255
1202 var _response = _requester.request(_url, 1256 var _response = _requester.request(_url, "POST",
1203 "POST", 1257 body: _body,
1204 body: _body, 1258 queryParams: _queryParams,
1205 queryParams: _queryParams, 1259 uploadOptions: _uploadOptions,
1206 uploadOptions: _uploadOptions, 1260 uploadMedia: _uploadMedia,
1207 uploadMedia: _uploadMedia, 1261 downloadOptions: _downloadOptions);
1208 downloadOptions: _downloadOptions);
1209 return _response.then((data) => new CustomMetric.fromJson(data)); 1262 return _response.then((data) => new CustomMetric.fromJson(data));
1210 } 1263 }
1211 1264
1212 /** 1265 /// Lists custom metrics to which the user has access.
1213 * Lists custom metrics to which the user has access. 1266 ///
1214 * 1267 /// Request parameters:
1215 * Request parameters: 1268 ///
1216 * 1269 /// [accountId] - Account ID for the custom metrics to retrieve.
1217 * [accountId] - Account ID for the custom metrics to retrieve. 1270 ///
1218 * 1271 /// [webPropertyId] - Web property ID for the custom metrics to retrieve.
1219 * [webPropertyId] - Web property ID for the custom metrics to retrieve. 1272 ///
1220 * 1273 /// [max_results] - The maximum number of custom metrics to include in this
1221 * [max_results] - The maximum number of custom metrics to include in this 1274 /// response.
1222 * response. 1275 ///
1223 * 1276 /// [start_index] - An index of the first entity to retrieve. Use this
1224 * [start_index] - An index of the first entity to retrieve. Use this 1277 /// parameter as a pagination mechanism along with the max-results parameter.
1225 * parameter as a pagination mechanism along with the max-results parameter. 1278 ///
1226 * 1279 /// Completes with a [CustomMetrics].
1227 * Completes with a [CustomMetrics]. 1280 ///
1228 * 1281 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1229 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1282 /// an error.
1230 * error. 1283 ///
1231 * 1284 /// If the used [http.Client] completes with an error when making a REST
1232 * If the used [http.Client] completes with an error when making a REST call, 1285 /// call, this method will complete with the same error.
1233 * this method will complete with the same error. 1286 async.Future<CustomMetrics> list(
1234 */ 1287 core.String accountId, core.String webPropertyId,
1235 async.Future<CustomMetrics> list(core.String accountId, core.String webPropert yId, {core.int max_results, core.int start_index}) { 1288 {core.int max_results, core.int start_index}) {
1236 var _url = null; 1289 var _url = null;
1237 var _queryParams = new core.Map(); 1290 var _queryParams = new core.Map();
1238 var _uploadMedia = null; 1291 var _uploadMedia = null;
1239 var _uploadOptions = null; 1292 var _uploadOptions = null;
1240 var _downloadOptions = commons.DownloadOptions.Metadata; 1293 var _downloadOptions = commons.DownloadOptions.Metadata;
1241 var _body = null; 1294 var _body = null;
1242 1295
1243 if (accountId == null) { 1296 if (accountId == null) {
1244 throw new core.ArgumentError("Parameter accountId is required."); 1297 throw new core.ArgumentError("Parameter accountId is required.");
1245 } 1298 }
1246 if (webPropertyId == null) { 1299 if (webPropertyId == null) {
1247 throw new core.ArgumentError("Parameter webPropertyId is required."); 1300 throw new core.ArgumentError("Parameter webPropertyId is required.");
1248 } 1301 }
1249 if (max_results != null) { 1302 if (max_results != null) {
1250 _queryParams["max-results"] = ["${max_results}"]; 1303 _queryParams["max-results"] = ["${max_results}"];
1251 } 1304 }
1252 if (start_index != null) { 1305 if (start_index != null) {
1253 _queryParams["start-index"] = ["${start_index}"]; 1306 _queryParams["start-index"] = ["${start_index}"];
1254 } 1307 }
1255 1308
1256 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Metrics'; 1309 _url = 'management/accounts/' +
1310 commons.Escaper.ecapeVariable('$accountId') +
1311 '/webproperties/' +
1312 commons.Escaper.ecapeVariable('$webPropertyId') +
1313 '/customMetrics';
1257 1314
1258 var _response = _requester.request(_url, 1315 var _response = _requester.request(_url, "GET",
1259 "GET", 1316 body: _body,
1260 body: _body, 1317 queryParams: _queryParams,
1261 queryParams: _queryParams, 1318 uploadOptions: _uploadOptions,
1262 uploadOptions: _uploadOptions, 1319 uploadMedia: _uploadMedia,
1263 uploadMedia: _uploadMedia, 1320 downloadOptions: _downloadOptions);
1264 downloadOptions: _downloadOptions);
1265 return _response.then((data) => new CustomMetrics.fromJson(data)); 1321 return _response.then((data) => new CustomMetrics.fromJson(data));
1266 } 1322 }
1267 1323
1268 /** 1324 /// Updates an existing custom metric. This method supports patch semantics.
1269 * Updates an existing custom metric. This method supports patch semantics. 1325 ///
1270 * 1326 /// [request] - The metadata request object.
1271 * [request] - The metadata request object. 1327 ///
1272 * 1328 /// Request parameters:
1273 * Request parameters: 1329 ///
1274 * 1330 /// [accountId] - Account ID for the custom metric to update.
1275 * [accountId] - Account ID for the custom metric to update. 1331 ///
1276 * 1332 /// [webPropertyId] - Web property ID for the custom metric to update.
1277 * [webPropertyId] - Web property ID for the custom metric to update. 1333 ///
1278 * 1334 /// [customMetricId] - Custom metric ID for the custom metric to update.
1279 * [customMetricId] - Custom metric ID for the custom metric to update. 1335 ///
1280 * 1336 /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
1281 * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings 1337 /// related to the custom metric being linked to a custom data source / data
1282 * related to the custom metric being linked to a custom data source / data 1338 /// set.
1283 * set. 1339 ///
1284 * 1340 /// Completes with a [CustomMetric].
1285 * Completes with a [CustomMetric]. 1341 ///
1286 * 1342 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1287 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1343 /// an error.
1288 * error. 1344 ///
1289 * 1345 /// If the used [http.Client] completes with an error when making a REST
1290 * If the used [http.Client] completes with an error when making a REST call, 1346 /// call, this method will complete with the same error.
1291 * this method will complete with the same error. 1347 async.Future<CustomMetric> patch(CustomMetric request, core.String accountId,
1292 */ 1348 core.String webPropertyId, core.String customMetricId,
1293 async.Future<CustomMetric> patch(CustomMetric request, core.String accountId, core.String webPropertyId, core.String customMetricId, {core.bool ignoreCustomDa taSourceLinks}) { 1349 {core.bool ignoreCustomDataSourceLinks}) {
1294 var _url = null; 1350 var _url = null;
1295 var _queryParams = new core.Map(); 1351 var _queryParams = new core.Map();
1296 var _uploadMedia = null; 1352 var _uploadMedia = null;
1297 var _uploadOptions = null; 1353 var _uploadOptions = null;
1298 var _downloadOptions = commons.DownloadOptions.Metadata; 1354 var _downloadOptions = commons.DownloadOptions.Metadata;
1299 var _body = null; 1355 var _body = null;
1300 1356
1301 if (request != null) { 1357 if (request != null) {
1302 _body = convert.JSON.encode((request).toJson()); 1358 _body = convert.JSON.encode((request).toJson());
1303 } 1359 }
1304 if (accountId == null) { 1360 if (accountId == null) {
1305 throw new core.ArgumentError("Parameter accountId is required."); 1361 throw new core.ArgumentError("Parameter accountId is required.");
1306 } 1362 }
1307 if (webPropertyId == null) { 1363 if (webPropertyId == null) {
1308 throw new core.ArgumentError("Parameter webPropertyId is required."); 1364 throw new core.ArgumentError("Parameter webPropertyId is required.");
1309 } 1365 }
1310 if (customMetricId == null) { 1366 if (customMetricId == null) {
1311 throw new core.ArgumentError("Parameter customMetricId is required."); 1367 throw new core.ArgumentError("Parameter customMetricId is required.");
1312 } 1368 }
1313 if (ignoreCustomDataSourceLinks != null) { 1369 if (ignoreCustomDataSourceLinks != null) {
1314 _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLi nks}"]; 1370 _queryParams["ignoreCustomDataSourceLinks"] = [
1371 "${ignoreCustomDataSourceLinks}"
1372 ];
1315 } 1373 }
1316 1374
1317 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Metrics/' + commons.Escaper.ecapeVariable('$customMetricId'); 1375 _url = 'management/accounts/' +
1376 commons.Escaper.ecapeVariable('$accountId') +
1377 '/webproperties/' +
1378 commons.Escaper.ecapeVariable('$webPropertyId') +
1379 '/customMetrics/' +
1380 commons.Escaper.ecapeVariable('$customMetricId');
1318 1381
1319 var _response = _requester.request(_url, 1382 var _response = _requester.request(_url, "PATCH",
1320 "PATCH", 1383 body: _body,
1321 body: _body, 1384 queryParams: _queryParams,
1322 queryParams: _queryParams, 1385 uploadOptions: _uploadOptions,
1323 uploadOptions: _uploadOptions, 1386 uploadMedia: _uploadMedia,
1324 uploadMedia: _uploadMedia, 1387 downloadOptions: _downloadOptions);
1325 downloadOptions: _downloadOptions);
1326 return _response.then((data) => new CustomMetric.fromJson(data)); 1388 return _response.then((data) => new CustomMetric.fromJson(data));
1327 } 1389 }
1328 1390
1329 /** 1391 /// Updates an existing custom metric.
1330 * Updates an existing custom metric. 1392 ///
1331 * 1393 /// [request] - The metadata request object.
1332 * [request] - The metadata request object. 1394 ///
1333 * 1395 /// Request parameters:
1334 * Request parameters: 1396 ///
1335 * 1397 /// [accountId] - Account ID for the custom metric to update.
1336 * [accountId] - Account ID for the custom metric to update. 1398 ///
1337 * 1399 /// [webPropertyId] - Web property ID for the custom metric to update.
1338 * [webPropertyId] - Web property ID for the custom metric to update. 1400 ///
1339 * 1401 /// [customMetricId] - Custom metric ID for the custom metric to update.
1340 * [customMetricId] - Custom metric ID for the custom metric to update. 1402 ///
1341 * 1403 /// [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings
1342 * [ignoreCustomDataSourceLinks] - Force the update and ignore any warnings 1404 /// related to the custom metric being linked to a custom data source / data
1343 * related to the custom metric being linked to a custom data source / data 1405 /// set.
1344 * set. 1406 ///
1345 * 1407 /// Completes with a [CustomMetric].
1346 * Completes with a [CustomMetric]. 1408 ///
1347 * 1409 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1410 /// an error.
1349 * error. 1411 ///
1350 * 1412 /// If the used [http.Client] completes with an error when making a REST
1351 * If the used [http.Client] completes with an error when making a REST call, 1413 /// call, this method will complete with the same error.
1352 * this method will complete with the same error. 1414 async.Future<CustomMetric> update(CustomMetric request, core.String accountId,
1353 */ 1415 core.String webPropertyId, core.String customMetricId,
1354 async.Future<CustomMetric> update(CustomMetric request, core.String accountId, core.String webPropertyId, core.String customMetricId, {core.bool ignoreCustomD ataSourceLinks}) { 1416 {core.bool ignoreCustomDataSourceLinks}) {
1355 var _url = null; 1417 var _url = null;
1356 var _queryParams = new core.Map(); 1418 var _queryParams = new core.Map();
1357 var _uploadMedia = null; 1419 var _uploadMedia = null;
1358 var _uploadOptions = null; 1420 var _uploadOptions = null;
1359 var _downloadOptions = commons.DownloadOptions.Metadata; 1421 var _downloadOptions = commons.DownloadOptions.Metadata;
1360 var _body = null; 1422 var _body = null;
1361 1423
1362 if (request != null) { 1424 if (request != null) {
1363 _body = convert.JSON.encode((request).toJson()); 1425 _body = convert.JSON.encode((request).toJson());
1364 } 1426 }
1365 if (accountId == null) { 1427 if (accountId == null) {
1366 throw new core.ArgumentError("Parameter accountId is required."); 1428 throw new core.ArgumentError("Parameter accountId is required.");
1367 } 1429 }
1368 if (webPropertyId == null) { 1430 if (webPropertyId == null) {
1369 throw new core.ArgumentError("Parameter webPropertyId is required."); 1431 throw new core.ArgumentError("Parameter webPropertyId is required.");
1370 } 1432 }
1371 if (customMetricId == null) { 1433 if (customMetricId == null) {
1372 throw new core.ArgumentError("Parameter customMetricId is required."); 1434 throw new core.ArgumentError("Parameter customMetricId is required.");
1373 } 1435 }
1374 if (ignoreCustomDataSourceLinks != null) { 1436 if (ignoreCustomDataSourceLinks != null) {
1375 _queryParams["ignoreCustomDataSourceLinks"] = ["${ignoreCustomDataSourceLi nks}"]; 1437 _queryParams["ignoreCustomDataSourceLinks"] = [
1438 "${ignoreCustomDataSourceLinks}"
1439 ];
1376 } 1440 }
1377 1441
1378 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom Metrics/' + commons.Escaper.ecapeVariable('$customMetricId'); 1442 _url = 'management/accounts/' +
1443 commons.Escaper.ecapeVariable('$accountId') +
1444 '/webproperties/' +
1445 commons.Escaper.ecapeVariable('$webPropertyId') +
1446 '/customMetrics/' +
1447 commons.Escaper.ecapeVariable('$customMetricId');
1379 1448
1380 var _response = _requester.request(_url, 1449 var _response = _requester.request(_url, "PUT",
1381 "PUT", 1450 body: _body,
1382 body: _body, 1451 queryParams: _queryParams,
1383 queryParams: _queryParams, 1452 uploadOptions: _uploadOptions,
1384 uploadOptions: _uploadOptions, 1453 uploadMedia: _uploadMedia,
1385 uploadMedia: _uploadMedia, 1454 downloadOptions: _downloadOptions);
1386 downloadOptions: _downloadOptions);
1387 return _response.then((data) => new CustomMetric.fromJson(data)); 1455 return _response.then((data) => new CustomMetric.fromJson(data));
1388 } 1456 }
1389
1390 } 1457 }
1391 1458
1392
1393 class ManagementExperimentsResourceApi { 1459 class ManagementExperimentsResourceApi {
1394 final commons.ApiRequester _requester; 1460 final commons.ApiRequester _requester;
1395 1461
1396 ManagementExperimentsResourceApi(commons.ApiRequester client) : 1462 ManagementExperimentsResourceApi(commons.ApiRequester client)
1397 _requester = client; 1463 : _requester = client;
1398 1464
1399 /** 1465 /// Delete an experiment.
1400 * Delete an experiment. 1466 ///
1401 * 1467 /// Request parameters:
1402 * Request parameters: 1468 ///
1403 * 1469 /// [accountId] - Account ID to which the experiment belongs
1404 * [accountId] - Account ID to which the experiment belongs 1470 ///
1405 * 1471 /// [webPropertyId] - Web property ID to which the experiment belongs
1406 * [webPropertyId] - Web property ID to which the experiment belongs 1472 ///
1407 * 1473 /// [profileId] - View (Profile) ID to which the experiment belongs
1408 * [profileId] - View (Profile) ID to which the experiment belongs 1474 ///
1409 * 1475 /// [experimentId] - ID of the experiment to delete
1410 * [experimentId] - ID of the experiment to delete 1476 ///
1411 * 1477 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1412 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1478 /// an error.
1413 * error. 1479 ///
1414 * 1480 /// If the used [http.Client] completes with an error when making a REST
1415 * If the used [http.Client] completes with an error when making a REST call, 1481 /// call, this method will complete with the same error.
1416 * this method will complete with the same error. 1482 async.Future delete(core.String accountId, core.String webPropertyId,
1417 */ 1483 core.String profileId, core.String experimentId) {
1418 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing profileId, core.String experimentId) {
1419 var _url = null; 1484 var _url = null;
1420 var _queryParams = new core.Map(); 1485 var _queryParams = new core.Map();
1421 var _uploadMedia = null; 1486 var _uploadMedia = null;
1422 var _uploadOptions = null; 1487 var _uploadOptions = null;
1423 var _downloadOptions = commons.DownloadOptions.Metadata; 1488 var _downloadOptions = commons.DownloadOptions.Metadata;
1424 var _body = null; 1489 var _body = null;
1425 1490
1426 if (accountId == null) { 1491 if (accountId == null) {
1427 throw new core.ArgumentError("Parameter accountId is required."); 1492 throw new core.ArgumentError("Parameter accountId is required.");
1428 } 1493 }
1429 if (webPropertyId == null) { 1494 if (webPropertyId == null) {
1430 throw new core.ArgumentError("Parameter webPropertyId is required."); 1495 throw new core.ArgumentError("Parameter webPropertyId is required.");
1431 } 1496 }
1432 if (profileId == null) { 1497 if (profileId == null) {
1433 throw new core.ArgumentError("Parameter profileId is required."); 1498 throw new core.ArgumentError("Parameter profileId is required.");
1434 } 1499 }
1435 if (experimentId == null) { 1500 if (experimentId == null) {
1436 throw new core.ArgumentError("Parameter experimentId is required."); 1501 throw new core.ArgumentError("Parameter experimentId is required.");
1437 } 1502 }
1438 1503
1439 _downloadOptions = null; 1504 _downloadOptions = null;
1440 1505
1441 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.E scaper.ecapeVariable('$experimentId'); 1506 _url = 'management/accounts/' +
1507 commons.Escaper.ecapeVariable('$accountId') +
1508 '/webproperties/' +
1509 commons.Escaper.ecapeVariable('$webPropertyId') +
1510 '/profiles/' +
1511 commons.Escaper.ecapeVariable('$profileId') +
1512 '/experiments/' +
1513 commons.Escaper.ecapeVariable('$experimentId');
1442 1514
1443 var _response = _requester.request(_url, 1515 var _response = _requester.request(_url, "DELETE",
1444 "DELETE", 1516 body: _body,
1445 body: _body, 1517 queryParams: _queryParams,
1446 queryParams: _queryParams, 1518 uploadOptions: _uploadOptions,
1447 uploadOptions: _uploadOptions, 1519 uploadMedia: _uploadMedia,
1448 uploadMedia: _uploadMedia, 1520 downloadOptions: _downloadOptions);
1449 downloadOptions: _downloadOptions);
1450 return _response.then((data) => null); 1521 return _response.then((data) => null);
1451 } 1522 }
1452 1523
1453 /** 1524 /// Returns an experiment to which the user has access.
1454 * Returns an experiment to which the user has access. 1525 ///
1455 * 1526 /// Request parameters:
1456 * Request parameters: 1527 ///
1457 * 1528 /// [accountId] - Account ID to retrieve the experiment for.
1458 * [accountId] - Account ID to retrieve the experiment for. 1529 ///
1459 * 1530 /// [webPropertyId] - Web property ID to retrieve the experiment for.
1460 * [webPropertyId] - Web property ID to retrieve the experiment for. 1531 ///
1461 * 1532 /// [profileId] - View (Profile) ID to retrieve the experiment for.
1462 * [profileId] - View (Profile) ID to retrieve the experiment for. 1533 ///
1463 * 1534 /// [experimentId] - Experiment ID to retrieve the experiment for.
1464 * [experimentId] - Experiment ID to retrieve the experiment for. 1535 ///
1465 * 1536 /// Completes with a [Experiment].
1466 * Completes with a [Experiment]. 1537 ///
1467 * 1538 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1468 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1539 /// an error.
1469 * error. 1540 ///
1470 * 1541 /// If the used [http.Client] completes with an error when making a REST
1471 * If the used [http.Client] completes with an error when making a REST call, 1542 /// call, this method will complete with the same error.
1472 * this method will complete with the same error. 1543 async.Future<Experiment> get(core.String accountId, core.String webPropertyId,
1473 */ 1544 core.String profileId, core.String experimentId) {
1474 async.Future<Experiment> get(core.String accountId, core.String webPropertyId, core.String profileId, core.String experimentId) {
1475 var _url = null; 1545 var _url = null;
1476 var _queryParams = new core.Map(); 1546 var _queryParams = new core.Map();
1477 var _uploadMedia = null; 1547 var _uploadMedia = null;
1478 var _uploadOptions = null; 1548 var _uploadOptions = null;
1479 var _downloadOptions = commons.DownloadOptions.Metadata; 1549 var _downloadOptions = commons.DownloadOptions.Metadata;
1480 var _body = null; 1550 var _body = null;
1481 1551
1482 if (accountId == null) { 1552 if (accountId == null) {
1483 throw new core.ArgumentError("Parameter accountId is required."); 1553 throw new core.ArgumentError("Parameter accountId is required.");
1484 } 1554 }
1485 if (webPropertyId == null) { 1555 if (webPropertyId == null) {
1486 throw new core.ArgumentError("Parameter webPropertyId is required."); 1556 throw new core.ArgumentError("Parameter webPropertyId is required.");
1487 } 1557 }
1488 if (profileId == null) { 1558 if (profileId == null) {
1489 throw new core.ArgumentError("Parameter profileId is required."); 1559 throw new core.ArgumentError("Parameter profileId is required.");
1490 } 1560 }
1491 if (experimentId == null) { 1561 if (experimentId == null) {
1492 throw new core.ArgumentError("Parameter experimentId is required."); 1562 throw new core.ArgumentError("Parameter experimentId is required.");
1493 } 1563 }
1494 1564
1495 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.E scaper.ecapeVariable('$experimentId'); 1565 _url = 'management/accounts/' +
1566 commons.Escaper.ecapeVariable('$accountId') +
1567 '/webproperties/' +
1568 commons.Escaper.ecapeVariable('$webPropertyId') +
1569 '/profiles/' +
1570 commons.Escaper.ecapeVariable('$profileId') +
1571 '/experiments/' +
1572 commons.Escaper.ecapeVariable('$experimentId');
1496 1573
1497 var _response = _requester.request(_url, 1574 var _response = _requester.request(_url, "GET",
1498 "GET", 1575 body: _body,
1499 body: _body, 1576 queryParams: _queryParams,
1500 queryParams: _queryParams, 1577 uploadOptions: _uploadOptions,
1501 uploadOptions: _uploadOptions, 1578 uploadMedia: _uploadMedia,
1502 uploadMedia: _uploadMedia, 1579 downloadOptions: _downloadOptions);
1503 downloadOptions: _downloadOptions);
1504 return _response.then((data) => new Experiment.fromJson(data)); 1580 return _response.then((data) => new Experiment.fromJson(data));
1505 } 1581 }
1506 1582
1507 /** 1583 /// Create a new experiment.
1508 * Create a new experiment. 1584 ///
1509 * 1585 /// [request] - The metadata request object.
1510 * [request] - The metadata request object. 1586 ///
1511 * 1587 /// Request parameters:
1512 * Request parameters: 1588 ///
1513 * 1589 /// [accountId] - Account ID to create the experiment for.
1514 * [accountId] - Account ID to create the experiment for. 1590 ///
1515 * 1591 /// [webPropertyId] - Web property ID to create the experiment for.
1516 * [webPropertyId] - Web property ID to create the experiment for. 1592 ///
1517 * 1593 /// [profileId] - View (Profile) ID to create the experiment for.
1518 * [profileId] - View (Profile) ID to create the experiment for. 1594 ///
1519 * 1595 /// Completes with a [Experiment].
1520 * Completes with a [Experiment]. 1596 ///
1521 * 1597 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1522 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1598 /// an error.
1523 * error. 1599 ///
1524 * 1600 /// If the used [http.Client] completes with an error when making a REST
1525 * If the used [http.Client] completes with an error when making a REST call, 1601 /// call, this method will complete with the same error.
1526 * this method will complete with the same error. 1602 async.Future<Experiment> insert(Experiment request, core.String accountId,
1527 */ 1603 core.String webPropertyId, core.String profileId) {
1528 async.Future<Experiment> insert(Experiment request, core.String accountId, cor e.String webPropertyId, core.String profileId) {
1529 var _url = null; 1604 var _url = null;
1530 var _queryParams = new core.Map(); 1605 var _queryParams = new core.Map();
1531 var _uploadMedia = null; 1606 var _uploadMedia = null;
1532 var _uploadOptions = null; 1607 var _uploadOptions = null;
1533 var _downloadOptions = commons.DownloadOptions.Metadata; 1608 var _downloadOptions = commons.DownloadOptions.Metadata;
1534 var _body = null; 1609 var _body = null;
1535 1610
1536 if (request != null) { 1611 if (request != null) {
1537 _body = convert.JSON.encode((request).toJson()); 1612 _body = convert.JSON.encode((request).toJson());
1538 } 1613 }
1539 if (accountId == null) { 1614 if (accountId == null) {
1540 throw new core.ArgumentError("Parameter accountId is required."); 1615 throw new core.ArgumentError("Parameter accountId is required.");
1541 } 1616 }
1542 if (webPropertyId == null) { 1617 if (webPropertyId == null) {
1543 throw new core.ArgumentError("Parameter webPropertyId is required."); 1618 throw new core.ArgumentError("Parameter webPropertyId is required.");
1544 } 1619 }
1545 if (profileId == null) { 1620 if (profileId == null) {
1546 throw new core.ArgumentError("Parameter profileId is required."); 1621 throw new core.ArgumentError("Parameter profileId is required.");
1547 } 1622 }
1548 1623
1549 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments'; 1624 _url = 'management/accounts/' +
1625 commons.Escaper.ecapeVariable('$accountId') +
1626 '/webproperties/' +
1627 commons.Escaper.ecapeVariable('$webPropertyId') +
1628 '/profiles/' +
1629 commons.Escaper.ecapeVariable('$profileId') +
1630 '/experiments';
1550 1631
1551 var _response = _requester.request(_url, 1632 var _response = _requester.request(_url, "POST",
1552 "POST", 1633 body: _body,
1553 body: _body, 1634 queryParams: _queryParams,
1554 queryParams: _queryParams, 1635 uploadOptions: _uploadOptions,
1555 uploadOptions: _uploadOptions, 1636 uploadMedia: _uploadMedia,
1556 uploadMedia: _uploadMedia, 1637 downloadOptions: _downloadOptions);
1557 downloadOptions: _downloadOptions);
1558 return _response.then((data) => new Experiment.fromJson(data)); 1638 return _response.then((data) => new Experiment.fromJson(data));
1559 } 1639 }
1560 1640
1561 /** 1641 /// Lists experiments to which the user has access.
1562 * Lists experiments to which the user has access. 1642 ///
1563 * 1643 /// Request parameters:
1564 * Request parameters: 1644 ///
1565 * 1645 /// [accountId] - Account ID to retrieve experiments for.
1566 * [accountId] - Account ID to retrieve experiments for. 1646 /// Value must have pattern "\d+".
1567 * Value must have pattern "\d+". 1647 ///
1568 * 1648 /// [webPropertyId] - Web property ID to retrieve experiments for.
1569 * [webPropertyId] - Web property ID to retrieve experiments for. 1649 /// Value must have pattern "UA-(\d+)-(\d+)".
1570 * Value must have pattern "UA-(\d+)-(\d+)". 1650 ///
1571 * 1651 /// [profileId] - View (Profile) ID to retrieve experiments for.
1572 * [profileId] - View (Profile) ID to retrieve experiments for. 1652 /// Value must have pattern "\d+".
1573 * Value must have pattern "\d+". 1653 ///
1574 * 1654 /// [max_results] - The maximum number of experiments to include in this
1575 * [max_results] - The maximum number of experiments to include in this 1655 /// response.
1576 * response. 1656 ///
1577 * 1657 /// [start_index] - An index of the first experiment to retrieve. Use this
1578 * [start_index] - An index of the first experiment to retrieve. Use this 1658 /// parameter as a pagination mechanism along with the max-results parameter.
1579 * parameter as a pagination mechanism along with the max-results parameter. 1659 ///
1580 * 1660 /// Completes with a [Experiments].
1581 * Completes with a [Experiments]. 1661 ///
1582 * 1662 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1583 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1663 /// an error.
1584 * error. 1664 ///
1585 * 1665 /// If the used [http.Client] completes with an error when making a REST
1586 * If the used [http.Client] completes with an error when making a REST call, 1666 /// call, this method will complete with the same error.
1587 * this method will complete with the same error. 1667 async.Future<Experiments> list(
1588 */ 1668 core.String accountId, core.String webPropertyId, core.String profileId,
1589 async.Future<Experiments> list(core.String accountId, core.String webPropertyI d, core.String profileId, {core.int max_results, core.int start_index}) { 1669 {core.int max_results, core.int start_index}) {
1590 var _url = null; 1670 var _url = null;
1591 var _queryParams = new core.Map(); 1671 var _queryParams = new core.Map();
1592 var _uploadMedia = null; 1672 var _uploadMedia = null;
1593 var _uploadOptions = null; 1673 var _uploadOptions = null;
1594 var _downloadOptions = commons.DownloadOptions.Metadata; 1674 var _downloadOptions = commons.DownloadOptions.Metadata;
1595 var _body = null; 1675 var _body = null;
1596 1676
1597 if (accountId == null) { 1677 if (accountId == null) {
1598 throw new core.ArgumentError("Parameter accountId is required."); 1678 throw new core.ArgumentError("Parameter accountId is required.");
1599 } 1679 }
1600 if (webPropertyId == null) { 1680 if (webPropertyId == null) {
1601 throw new core.ArgumentError("Parameter webPropertyId is required."); 1681 throw new core.ArgumentError("Parameter webPropertyId is required.");
1602 } 1682 }
1603 if (profileId == null) { 1683 if (profileId == null) {
1604 throw new core.ArgumentError("Parameter profileId is required."); 1684 throw new core.ArgumentError("Parameter profileId is required.");
1605 } 1685 }
1606 if (max_results != null) { 1686 if (max_results != null) {
1607 _queryParams["max-results"] = ["${max_results}"]; 1687 _queryParams["max-results"] = ["${max_results}"];
1608 } 1688 }
1609 if (start_index != null) { 1689 if (start_index != null) {
1610 _queryParams["start-index"] = ["${start_index}"]; 1690 _queryParams["start-index"] = ["${start_index}"];
1611 } 1691 }
1612 1692
1613 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments'; 1693 _url = 'management/accounts/' +
1694 commons.Escaper.ecapeVariable('$accountId') +
1695 '/webproperties/' +
1696 commons.Escaper.ecapeVariable('$webPropertyId') +
1697 '/profiles/' +
1698 commons.Escaper.ecapeVariable('$profileId') +
1699 '/experiments';
1614 1700
1615 var _response = _requester.request(_url, 1701 var _response = _requester.request(_url, "GET",
1616 "GET", 1702 body: _body,
1617 body: _body, 1703 queryParams: _queryParams,
1618 queryParams: _queryParams, 1704 uploadOptions: _uploadOptions,
1619 uploadOptions: _uploadOptions, 1705 uploadMedia: _uploadMedia,
1620 uploadMedia: _uploadMedia, 1706 downloadOptions: _downloadOptions);
1621 downloadOptions: _downloadOptions);
1622 return _response.then((data) => new Experiments.fromJson(data)); 1707 return _response.then((data) => new Experiments.fromJson(data));
1623 } 1708 }
1624 1709
1625 /** 1710 /// Update an existing experiment. This method supports patch semantics.
1626 * Update an existing experiment. This method supports patch semantics. 1711 ///
1627 * 1712 /// [request] - The metadata request object.
1628 * [request] - The metadata request object. 1713 ///
1629 * 1714 /// Request parameters:
1630 * Request parameters: 1715 ///
1631 * 1716 /// [accountId] - Account ID of the experiment to update.
1632 * [accountId] - Account ID of the experiment to update. 1717 ///
1633 * 1718 /// [webPropertyId] - Web property ID of the experiment to update.
1634 * [webPropertyId] - Web property ID of the experiment to update. 1719 ///
1635 * 1720 /// [profileId] - View (Profile) ID of the experiment to update.
1636 * [profileId] - View (Profile) ID of the experiment to update. 1721 ///
1637 * 1722 /// [experimentId] - Experiment ID of the experiment to update.
1638 * [experimentId] - Experiment ID of the experiment to update. 1723 ///
1639 * 1724 /// Completes with a [Experiment].
1640 * Completes with a [Experiment]. 1725 ///
1641 * 1726 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1642 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1727 /// an error.
1643 * error. 1728 ///
1644 * 1729 /// If the used [http.Client] completes with an error when making a REST
1645 * If the used [http.Client] completes with an error when making a REST call, 1730 /// call, this method will complete with the same error.
1646 * this method will complete with the same error. 1731 async.Future<Experiment> patch(
1647 */ 1732 Experiment request,
1648 async.Future<Experiment> patch(Experiment request, core.String accountId, core .String webPropertyId, core.String profileId, core.String experimentId) { 1733 core.String accountId,
1734 core.String webPropertyId,
1735 core.String profileId,
1736 core.String experimentId) {
1649 var _url = null; 1737 var _url = null;
1650 var _queryParams = new core.Map(); 1738 var _queryParams = new core.Map();
1651 var _uploadMedia = null; 1739 var _uploadMedia = null;
1652 var _uploadOptions = null; 1740 var _uploadOptions = null;
1653 var _downloadOptions = commons.DownloadOptions.Metadata; 1741 var _downloadOptions = commons.DownloadOptions.Metadata;
1654 var _body = null; 1742 var _body = null;
1655 1743
1656 if (request != null) { 1744 if (request != null) {
1657 _body = convert.JSON.encode((request).toJson()); 1745 _body = convert.JSON.encode((request).toJson());
1658 } 1746 }
1659 if (accountId == null) { 1747 if (accountId == null) {
1660 throw new core.ArgumentError("Parameter accountId is required."); 1748 throw new core.ArgumentError("Parameter accountId is required.");
1661 } 1749 }
1662 if (webPropertyId == null) { 1750 if (webPropertyId == null) {
1663 throw new core.ArgumentError("Parameter webPropertyId is required."); 1751 throw new core.ArgumentError("Parameter webPropertyId is required.");
1664 } 1752 }
1665 if (profileId == null) { 1753 if (profileId == null) {
1666 throw new core.ArgumentError("Parameter profileId is required."); 1754 throw new core.ArgumentError("Parameter profileId is required.");
1667 } 1755 }
1668 if (experimentId == null) { 1756 if (experimentId == null) {
1669 throw new core.ArgumentError("Parameter experimentId is required."); 1757 throw new core.ArgumentError("Parameter experimentId is required.");
1670 } 1758 }
1671 1759
1672 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.E scaper.ecapeVariable('$experimentId'); 1760 _url = 'management/accounts/' +
1761 commons.Escaper.ecapeVariable('$accountId') +
1762 '/webproperties/' +
1763 commons.Escaper.ecapeVariable('$webPropertyId') +
1764 '/profiles/' +
1765 commons.Escaper.ecapeVariable('$profileId') +
1766 '/experiments/' +
1767 commons.Escaper.ecapeVariable('$experimentId');
1673 1768
1674 var _response = _requester.request(_url, 1769 var _response = _requester.request(_url, "PATCH",
1675 "PATCH", 1770 body: _body,
1676 body: _body, 1771 queryParams: _queryParams,
1677 queryParams: _queryParams, 1772 uploadOptions: _uploadOptions,
1678 uploadOptions: _uploadOptions, 1773 uploadMedia: _uploadMedia,
1679 uploadMedia: _uploadMedia, 1774 downloadOptions: _downloadOptions);
1680 downloadOptions: _downloadOptions);
1681 return _response.then((data) => new Experiment.fromJson(data)); 1775 return _response.then((data) => new Experiment.fromJson(data));
1682 } 1776 }
1683 1777
1684 /** 1778 /// Update an existing experiment.
1685 * Update an existing experiment. 1779 ///
1686 * 1780 /// [request] - The metadata request object.
1687 * [request] - The metadata request object. 1781 ///
1688 * 1782 /// Request parameters:
1689 * Request parameters: 1783 ///
1690 * 1784 /// [accountId] - Account ID of the experiment to update.
1691 * [accountId] - Account ID of the experiment to update. 1785 ///
1692 * 1786 /// [webPropertyId] - Web property ID of the experiment to update.
1693 * [webPropertyId] - Web property ID of the experiment to update. 1787 ///
1694 * 1788 /// [profileId] - View (Profile) ID of the experiment to update.
1695 * [profileId] - View (Profile) ID of the experiment to update. 1789 ///
1696 * 1790 /// [experimentId] - Experiment ID of the experiment to update.
1697 * [experimentId] - Experiment ID of the experiment to update. 1791 ///
1698 * 1792 /// Completes with a [Experiment].
1699 * Completes with a [Experiment]. 1793 ///
1700 * 1794 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1701 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1795 /// an error.
1702 * error. 1796 ///
1703 * 1797 /// If the used [http.Client] completes with an error when making a REST
1704 * If the used [http.Client] completes with an error when making a REST call, 1798 /// call, this method will complete with the same error.
1705 * this method will complete with the same error. 1799 async.Future<Experiment> update(
1706 */ 1800 Experiment request,
1707 async.Future<Experiment> update(Experiment request, core.String accountId, cor e.String webPropertyId, core.String profileId, core.String experimentId) { 1801 core.String accountId,
1802 core.String webPropertyId,
1803 core.String profileId,
1804 core.String experimentId) {
1708 var _url = null; 1805 var _url = null;
1709 var _queryParams = new core.Map(); 1806 var _queryParams = new core.Map();
1710 var _uploadMedia = null; 1807 var _uploadMedia = null;
1711 var _uploadOptions = null; 1808 var _uploadOptions = null;
1712 var _downloadOptions = commons.DownloadOptions.Metadata; 1809 var _downloadOptions = commons.DownloadOptions.Metadata;
1713 var _body = null; 1810 var _body = null;
1714 1811
1715 if (request != null) { 1812 if (request != null) {
1716 _body = convert.JSON.encode((request).toJson()); 1813 _body = convert.JSON.encode((request).toJson());
1717 } 1814 }
1718 if (accountId == null) { 1815 if (accountId == null) {
1719 throw new core.ArgumentError("Parameter accountId is required."); 1816 throw new core.ArgumentError("Parameter accountId is required.");
1720 } 1817 }
1721 if (webPropertyId == null) { 1818 if (webPropertyId == null) {
1722 throw new core.ArgumentError("Parameter webPropertyId is required."); 1819 throw new core.ArgumentError("Parameter webPropertyId is required.");
1723 } 1820 }
1724 if (profileId == null) { 1821 if (profileId == null) {
1725 throw new core.ArgumentError("Parameter profileId is required."); 1822 throw new core.ArgumentError("Parameter profileId is required.");
1726 } 1823 }
1727 if (experimentId == null) { 1824 if (experimentId == null) {
1728 throw new core.ArgumentError("Parameter experimentId is required."); 1825 throw new core.ArgumentError("Parameter experimentId is required.");
1729 } 1826 }
1730 1827
1731 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/experiments/' + commons.E scaper.ecapeVariable('$experimentId'); 1828 _url = 'management/accounts/' +
1829 commons.Escaper.ecapeVariable('$accountId') +
1830 '/webproperties/' +
1831 commons.Escaper.ecapeVariable('$webPropertyId') +
1832 '/profiles/' +
1833 commons.Escaper.ecapeVariable('$profileId') +
1834 '/experiments/' +
1835 commons.Escaper.ecapeVariable('$experimentId');
1732 1836
1733 var _response = _requester.request(_url, 1837 var _response = _requester.request(_url, "PUT",
1734 "PUT", 1838 body: _body,
1735 body: _body, 1839 queryParams: _queryParams,
1736 queryParams: _queryParams, 1840 uploadOptions: _uploadOptions,
1737 uploadOptions: _uploadOptions, 1841 uploadMedia: _uploadMedia,
1738 uploadMedia: _uploadMedia, 1842 downloadOptions: _downloadOptions);
1739 downloadOptions: _downloadOptions);
1740 return _response.then((data) => new Experiment.fromJson(data)); 1843 return _response.then((data) => new Experiment.fromJson(data));
1741 } 1844 }
1742
1743 } 1845 }
1744 1846
1745
1746 class ManagementFiltersResourceApi { 1847 class ManagementFiltersResourceApi {
1747 final commons.ApiRequester _requester; 1848 final commons.ApiRequester _requester;
1748 1849
1749 ManagementFiltersResourceApi(commons.ApiRequester client) : 1850 ManagementFiltersResourceApi(commons.ApiRequester client)
1750 _requester = client; 1851 : _requester = client;
1751 1852
1752 /** 1853 /// Delete a filter.
1753 * Delete a filter. 1854 ///
1754 * 1855 /// Request parameters:
1755 * Request parameters: 1856 ///
1756 * 1857 /// [accountId] - Account ID to delete the filter for.
1757 * [accountId] - Account ID to delete the filter for. 1858 ///
1758 * 1859 /// [filterId] - ID of the filter to be deleted.
1759 * [filterId] - ID of the filter to be deleted. 1860 ///
1760 * 1861 /// Completes with a [Filter].
1761 * Completes with a [Filter]. 1862 ///
1762 * 1863 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1763 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1864 /// an error.
1764 * error. 1865 ///
1765 * 1866 /// If the used [http.Client] completes with an error when making a REST
1766 * If the used [http.Client] completes with an error when making a REST call, 1867 /// call, this method will complete with the same error.
1767 * this method will complete with the same error.
1768 */
1769 async.Future<Filter> delete(core.String accountId, core.String filterId) { 1868 async.Future<Filter> delete(core.String accountId, core.String filterId) {
1770 var _url = null; 1869 var _url = null;
1771 var _queryParams = new core.Map(); 1870 var _queryParams = new core.Map();
1772 var _uploadMedia = null; 1871 var _uploadMedia = null;
1773 var _uploadOptions = null; 1872 var _uploadOptions = null;
1774 var _downloadOptions = commons.DownloadOptions.Metadata; 1873 var _downloadOptions = commons.DownloadOptions.Metadata;
1775 var _body = null; 1874 var _body = null;
1776 1875
1777 if (accountId == null) { 1876 if (accountId == null) {
1778 throw new core.ArgumentError("Parameter accountId is required."); 1877 throw new core.ArgumentError("Parameter accountId is required.");
1779 } 1878 }
1780 if (filterId == null) { 1879 if (filterId == null) {
1781 throw new core.ArgumentError("Parameter filterId is required."); 1880 throw new core.ArgumentError("Parameter filterId is required.");
1782 } 1881 }
1783 1882
1784 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId'); 1883 _url = 'management/accounts/' +
1884 commons.Escaper.ecapeVariable('$accountId') +
1885 '/filters/' +
1886 commons.Escaper.ecapeVariable('$filterId');
1785 1887
1786 var _response = _requester.request(_url, 1888 var _response = _requester.request(_url, "DELETE",
1787 "DELETE", 1889 body: _body,
1788 body: _body, 1890 queryParams: _queryParams,
1789 queryParams: _queryParams, 1891 uploadOptions: _uploadOptions,
1790 uploadOptions: _uploadOptions, 1892 uploadMedia: _uploadMedia,
1791 uploadMedia: _uploadMedia, 1893 downloadOptions: _downloadOptions);
1792 downloadOptions: _downloadOptions);
1793 return _response.then((data) => new Filter.fromJson(data)); 1894 return _response.then((data) => new Filter.fromJson(data));
1794 } 1895 }
1795 1896
1796 /** 1897 /// Returns a filters to which the user has access.
1797 * Returns a filters to which the user has access. 1898 ///
1798 * 1899 /// Request parameters:
1799 * Request parameters: 1900 ///
1800 * 1901 /// [accountId] - Account ID to retrieve filters for.
1801 * [accountId] - Account ID to retrieve filters for. 1902 ///
1802 * 1903 /// [filterId] - Filter ID to retrieve filters for.
1803 * [filterId] - Filter ID to retrieve filters for. 1904 ///
1804 * 1905 /// Completes with a [Filter].
1805 * Completes with a [Filter]. 1906 ///
1806 * 1907 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1807 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1908 /// an error.
1808 * error. 1909 ///
1809 * 1910 /// If the used [http.Client] completes with an error when making a REST
1810 * If the used [http.Client] completes with an error when making a REST call, 1911 /// call, this method will complete with the same error.
1811 * this method will complete with the same error.
1812 */
1813 async.Future<Filter> get(core.String accountId, core.String filterId) { 1912 async.Future<Filter> get(core.String accountId, core.String filterId) {
1814 var _url = null; 1913 var _url = null;
1815 var _queryParams = new core.Map(); 1914 var _queryParams = new core.Map();
1816 var _uploadMedia = null; 1915 var _uploadMedia = null;
1817 var _uploadOptions = null; 1916 var _uploadOptions = null;
1818 var _downloadOptions = commons.DownloadOptions.Metadata; 1917 var _downloadOptions = commons.DownloadOptions.Metadata;
1819 var _body = null; 1918 var _body = null;
1820 1919
1821 if (accountId == null) { 1920 if (accountId == null) {
1822 throw new core.ArgumentError("Parameter accountId is required."); 1921 throw new core.ArgumentError("Parameter accountId is required.");
1823 } 1922 }
1824 if (filterId == null) { 1923 if (filterId == null) {
1825 throw new core.ArgumentError("Parameter filterId is required."); 1924 throw new core.ArgumentError("Parameter filterId is required.");
1826 } 1925 }
1827 1926
1828 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId'); 1927 _url = 'management/accounts/' +
1928 commons.Escaper.ecapeVariable('$accountId') +
1929 '/filters/' +
1930 commons.Escaper.ecapeVariable('$filterId');
1829 1931
1830 var _response = _requester.request(_url, 1932 var _response = _requester.request(_url, "GET",
1831 "GET", 1933 body: _body,
1832 body: _body, 1934 queryParams: _queryParams,
1833 queryParams: _queryParams, 1935 uploadOptions: _uploadOptions,
1834 uploadOptions: _uploadOptions, 1936 uploadMedia: _uploadMedia,
1835 uploadMedia: _uploadMedia, 1937 downloadOptions: _downloadOptions);
1836 downloadOptions: _downloadOptions);
1837 return _response.then((data) => new Filter.fromJson(data)); 1938 return _response.then((data) => new Filter.fromJson(data));
1838 } 1939 }
1839 1940
1840 /** 1941 /// Create a new filter.
1841 * Create a new filter. 1942 ///
1842 * 1943 /// [request] - The metadata request object.
1843 * [request] - The metadata request object. 1944 ///
1844 * 1945 /// Request parameters:
1845 * Request parameters: 1946 ///
1846 * 1947 /// [accountId] - Account ID to create filter for.
1847 * [accountId] - Account ID to create filter for. 1948 ///
1848 * 1949 /// Completes with a [Filter].
1849 * Completes with a [Filter]. 1950 ///
1850 * 1951 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1851 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1952 /// an error.
1852 * error. 1953 ///
1853 * 1954 /// If the used [http.Client] completes with an error when making a REST
1854 * If the used [http.Client] completes with an error when making a REST call, 1955 /// call, this method will complete with the same error.
1855 * this method will complete with the same error.
1856 */
1857 async.Future<Filter> insert(Filter request, core.String accountId) { 1956 async.Future<Filter> insert(Filter request, core.String accountId) {
1858 var _url = null; 1957 var _url = null;
1859 var _queryParams = new core.Map(); 1958 var _queryParams = new core.Map();
1860 var _uploadMedia = null; 1959 var _uploadMedia = null;
1861 var _uploadOptions = null; 1960 var _uploadOptions = null;
1862 var _downloadOptions = commons.DownloadOptions.Metadata; 1961 var _downloadOptions = commons.DownloadOptions.Metadata;
1863 var _body = null; 1962 var _body = null;
1864 1963
1865 if (request != null) { 1964 if (request != null) {
1866 _body = convert.JSON.encode((request).toJson()); 1965 _body = convert.JSON.encode((request).toJson());
1867 } 1966 }
1868 if (accountId == null) { 1967 if (accountId == null) {
1869 throw new core.ArgumentError("Parameter accountId is required."); 1968 throw new core.ArgumentError("Parameter accountId is required.");
1870 } 1969 }
1871 1970
1872 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters'; 1971 _url = 'management/accounts/' +
1972 commons.Escaper.ecapeVariable('$accountId') +
1973 '/filters';
1873 1974
1874 var _response = _requester.request(_url, 1975 var _response = _requester.request(_url, "POST",
1875 "POST", 1976 body: _body,
1876 body: _body, 1977 queryParams: _queryParams,
1877 queryParams: _queryParams, 1978 uploadOptions: _uploadOptions,
1878 uploadOptions: _uploadOptions, 1979 uploadMedia: _uploadMedia,
1879 uploadMedia: _uploadMedia, 1980 downloadOptions: _downloadOptions);
1880 downloadOptions: _downloadOptions);
1881 return _response.then((data) => new Filter.fromJson(data)); 1981 return _response.then((data) => new Filter.fromJson(data));
1882 } 1982 }
1883 1983
1884 /** 1984 /// Lists all filters for an account
1885 * Lists all filters for an account 1985 ///
1886 * 1986 /// Request parameters:
1887 * Request parameters: 1987 ///
1888 * 1988 /// [accountId] - Account ID to retrieve filters for.
1889 * [accountId] - Account ID to retrieve filters for. 1989 /// Value must have pattern "\d+".
1890 * Value must have pattern "\d+". 1990 ///
1891 * 1991 /// [max_results] - The maximum number of filters to include in this
1892 * [max_results] - The maximum number of filters to include in this response. 1992 /// response.
1893 * 1993 ///
1894 * [start_index] - An index of the first entity to retrieve. Use this 1994 /// [start_index] - An index of the first entity to retrieve. Use this
1895 * parameter as a pagination mechanism along with the max-results parameter. 1995 /// parameter as a pagination mechanism along with the max-results parameter.
1896 * 1996 ///
1897 * Completes with a [Filters]. 1997 /// Completes with a [Filters].
1898 * 1998 ///
1899 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1999 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1900 * error. 2000 /// an error.
1901 * 2001 ///
1902 * If the used [http.Client] completes with an error when making a REST call, 2002 /// If the used [http.Client] completes with an error when making a REST
1903 * this method will complete with the same error. 2003 /// call, this method will complete with the same error.
1904 */ 2004 async.Future<Filters> list(core.String accountId,
1905 async.Future<Filters> list(core.String accountId, {core.int max_results, core. int start_index}) { 2005 {core.int max_results, core.int start_index}) {
1906 var _url = null; 2006 var _url = null;
1907 var _queryParams = new core.Map(); 2007 var _queryParams = new core.Map();
1908 var _uploadMedia = null; 2008 var _uploadMedia = null;
1909 var _uploadOptions = null; 2009 var _uploadOptions = null;
1910 var _downloadOptions = commons.DownloadOptions.Metadata; 2010 var _downloadOptions = commons.DownloadOptions.Metadata;
1911 var _body = null; 2011 var _body = null;
1912 2012
1913 if (accountId == null) { 2013 if (accountId == null) {
1914 throw new core.ArgumentError("Parameter accountId is required."); 2014 throw new core.ArgumentError("Parameter accountId is required.");
1915 } 2015 }
1916 if (max_results != null) { 2016 if (max_results != null) {
1917 _queryParams["max-results"] = ["${max_results}"]; 2017 _queryParams["max-results"] = ["${max_results}"];
1918 } 2018 }
1919 if (start_index != null) { 2019 if (start_index != null) {
1920 _queryParams["start-index"] = ["${start_index}"]; 2020 _queryParams["start-index"] = ["${start_index}"];
1921 } 2021 }
1922 2022
1923 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters'; 2023 _url = 'management/accounts/' +
2024 commons.Escaper.ecapeVariable('$accountId') +
2025 '/filters';
1924 2026
1925 var _response = _requester.request(_url, 2027 var _response = _requester.request(_url, "GET",
1926 "GET", 2028 body: _body,
1927 body: _body, 2029 queryParams: _queryParams,
1928 queryParams: _queryParams, 2030 uploadOptions: _uploadOptions,
1929 uploadOptions: _uploadOptions, 2031 uploadMedia: _uploadMedia,
1930 uploadMedia: _uploadMedia, 2032 downloadOptions: _downloadOptions);
1931 downloadOptions: _downloadOptions);
1932 return _response.then((data) => new Filters.fromJson(data)); 2033 return _response.then((data) => new Filters.fromJson(data));
1933 } 2034 }
1934 2035
1935 /** 2036 /// Updates an existing filter. This method supports patch semantics.
1936 * Updates an existing filter. This method supports patch semantics. 2037 ///
1937 * 2038 /// [request] - The metadata request object.
1938 * [request] - The metadata request object. 2039 ///
1939 * 2040 /// Request parameters:
1940 * Request parameters: 2041 ///
1941 * 2042 /// [accountId] - Account ID to which the filter belongs.
1942 * [accountId] - Account ID to which the filter belongs. 2043 ///
1943 * 2044 /// [filterId] - ID of the filter to be updated.
1944 * [filterId] - ID of the filter to be updated. 2045 ///
1945 * 2046 /// Completes with a [Filter].
1946 * Completes with a [Filter]. 2047 ///
1947 * 2048 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1948 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2049 /// an error.
1949 * error. 2050 ///
1950 * 2051 /// If the used [http.Client] completes with an error when making a REST
1951 * If the used [http.Client] completes with an error when making a REST call, 2052 /// call, this method will complete with the same error.
1952 * this method will complete with the same error. 2053 async.Future<Filter> patch(
1953 */ 2054 Filter request, core.String accountId, core.String filterId) {
1954 async.Future<Filter> patch(Filter request, core.String accountId, core.String filterId) {
1955 var _url = null; 2055 var _url = null;
1956 var _queryParams = new core.Map(); 2056 var _queryParams = new core.Map();
1957 var _uploadMedia = null; 2057 var _uploadMedia = null;
1958 var _uploadOptions = null; 2058 var _uploadOptions = null;
1959 var _downloadOptions = commons.DownloadOptions.Metadata; 2059 var _downloadOptions = commons.DownloadOptions.Metadata;
1960 var _body = null; 2060 var _body = null;
1961 2061
1962 if (request != null) { 2062 if (request != null) {
1963 _body = convert.JSON.encode((request).toJson()); 2063 _body = convert.JSON.encode((request).toJson());
1964 } 2064 }
1965 if (accountId == null) { 2065 if (accountId == null) {
1966 throw new core.ArgumentError("Parameter accountId is required."); 2066 throw new core.ArgumentError("Parameter accountId is required.");
1967 } 2067 }
1968 if (filterId == null) { 2068 if (filterId == null) {
1969 throw new core.ArgumentError("Parameter filterId is required."); 2069 throw new core.ArgumentError("Parameter filterId is required.");
1970 } 2070 }
1971 2071
1972 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId'); 2072 _url = 'management/accounts/' +
2073 commons.Escaper.ecapeVariable('$accountId') +
2074 '/filters/' +
2075 commons.Escaper.ecapeVariable('$filterId');
1973 2076
1974 var _response = _requester.request(_url, 2077 var _response = _requester.request(_url, "PATCH",
1975 "PATCH", 2078 body: _body,
1976 body: _body, 2079 queryParams: _queryParams,
1977 queryParams: _queryParams, 2080 uploadOptions: _uploadOptions,
1978 uploadOptions: _uploadOptions, 2081 uploadMedia: _uploadMedia,
1979 uploadMedia: _uploadMedia, 2082 downloadOptions: _downloadOptions);
1980 downloadOptions: _downloadOptions);
1981 return _response.then((data) => new Filter.fromJson(data)); 2083 return _response.then((data) => new Filter.fromJson(data));
1982 } 2084 }
1983 2085
1984 /** 2086 /// Updates an existing filter.
1985 * Updates an existing filter. 2087 ///
1986 * 2088 /// [request] - The metadata request object.
1987 * [request] - The metadata request object. 2089 ///
1988 * 2090 /// Request parameters:
1989 * Request parameters: 2091 ///
1990 * 2092 /// [accountId] - Account ID to which the filter belongs.
1991 * [accountId] - Account ID to which the filter belongs. 2093 ///
1992 * 2094 /// [filterId] - ID of the filter to be updated.
1993 * [filterId] - ID of the filter to be updated. 2095 ///
1994 * 2096 /// Completes with a [Filter].
1995 * Completes with a [Filter]. 2097 ///
1996 * 2098 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1997 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2099 /// an error.
1998 * error. 2100 ///
1999 * 2101 /// If the used [http.Client] completes with an error when making a REST
2000 * If the used [http.Client] completes with an error when making a REST call, 2102 /// call, this method will complete with the same error.
2001 * this method will complete with the same error. 2103 async.Future<Filter> update(
2002 */ 2104 Filter request, core.String accountId, core.String filterId) {
2003 async.Future<Filter> update(Filter request, core.String accountId, core.String filterId) {
2004 var _url = null; 2105 var _url = null;
2005 var _queryParams = new core.Map(); 2106 var _queryParams = new core.Map();
2006 var _uploadMedia = null; 2107 var _uploadMedia = null;
2007 var _uploadOptions = null; 2108 var _uploadOptions = null;
2008 var _downloadOptions = commons.DownloadOptions.Metadata; 2109 var _downloadOptions = commons.DownloadOptions.Metadata;
2009 var _body = null; 2110 var _body = null;
2010 2111
2011 if (request != null) { 2112 if (request != null) {
2012 _body = convert.JSON.encode((request).toJson()); 2113 _body = convert.JSON.encode((request).toJson());
2013 } 2114 }
2014 if (accountId == null) { 2115 if (accountId == null) {
2015 throw new core.ArgumentError("Parameter accountId is required."); 2116 throw new core.ArgumentError("Parameter accountId is required.");
2016 } 2117 }
2017 if (filterId == null) { 2118 if (filterId == null) {
2018 throw new core.ArgumentError("Parameter filterId is required."); 2119 throw new core.ArgumentError("Parameter filterId is required.");
2019 } 2120 }
2020 2121
2021 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filters/' + commons.Escaper.ecapeVariable('$filterId'); 2122 _url = 'management/accounts/' +
2123 commons.Escaper.ecapeVariable('$accountId') +
2124 '/filters/' +
2125 commons.Escaper.ecapeVariable('$filterId');
2022 2126
2023 var _response = _requester.request(_url, 2127 var _response = _requester.request(_url, "PUT",
2024 "PUT", 2128 body: _body,
2025 body: _body, 2129 queryParams: _queryParams,
2026 queryParams: _queryParams, 2130 uploadOptions: _uploadOptions,
2027 uploadOptions: _uploadOptions, 2131 uploadMedia: _uploadMedia,
2028 uploadMedia: _uploadMedia, 2132 downloadOptions: _downloadOptions);
2029 downloadOptions: _downloadOptions);
2030 return _response.then((data) => new Filter.fromJson(data)); 2133 return _response.then((data) => new Filter.fromJson(data));
2031 } 2134 }
2032
2033 } 2135 }
2034 2136
2035
2036 class ManagementGoalsResourceApi { 2137 class ManagementGoalsResourceApi {
2037 final commons.ApiRequester _requester; 2138 final commons.ApiRequester _requester;
2038 2139
2039 ManagementGoalsResourceApi(commons.ApiRequester client) : 2140 ManagementGoalsResourceApi(commons.ApiRequester client) : _requester = client;
2040 _requester = client;
2041 2141
2042 /** 2142 /// Gets a goal to which the user has access.
2043 * Gets a goal to which the user has access. 2143 ///
2044 * 2144 /// Request parameters:
2045 * Request parameters: 2145 ///
2046 * 2146 /// [accountId] - Account ID to retrieve the goal for.
2047 * [accountId] - Account ID to retrieve the goal for. 2147 ///
2048 * 2148 /// [webPropertyId] - Web property ID to retrieve the goal for.
2049 * [webPropertyId] - Web property ID to retrieve the goal for. 2149 ///
2050 * 2150 /// [profileId] - View (Profile) ID to retrieve the goal for.
2051 * [profileId] - View (Profile) ID to retrieve the goal for. 2151 ///
2052 * 2152 /// [goalId] - Goal ID to retrieve the goal for.
2053 * [goalId] - Goal ID to retrieve the goal for. 2153 ///
2054 * 2154 /// Completes with a [Goal].
2055 * Completes with a [Goal]. 2155 ///
2056 * 2156 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2057 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2157 /// an error.
2058 * error. 2158 ///
2059 * 2159 /// If the used [http.Client] completes with an error when making a REST
2060 * If the used [http.Client] completes with an error when making a REST call, 2160 /// call, this method will complete with the same error.
2061 * this method will complete with the same error. 2161 async.Future<Goal> get(core.String accountId, core.String webPropertyId,
2062 */ 2162 core.String profileId, core.String goalId) {
2063 async.Future<Goal> get(core.String accountId, core.String webPropertyId, core. String profileId, core.String goalId) {
2064 var _url = null; 2163 var _url = null;
2065 var _queryParams = new core.Map(); 2164 var _queryParams = new core.Map();
2066 var _uploadMedia = null; 2165 var _uploadMedia = null;
2067 var _uploadOptions = null; 2166 var _uploadOptions = null;
2068 var _downloadOptions = commons.DownloadOptions.Metadata; 2167 var _downloadOptions = commons.DownloadOptions.Metadata;
2069 var _body = null; 2168 var _body = null;
2070 2169
2071 if (accountId == null) { 2170 if (accountId == null) {
2072 throw new core.ArgumentError("Parameter accountId is required."); 2171 throw new core.ArgumentError("Parameter accountId is required.");
2073 } 2172 }
2074 if (webPropertyId == null) { 2173 if (webPropertyId == null) {
2075 throw new core.ArgumentError("Parameter webPropertyId is required."); 2174 throw new core.ArgumentError("Parameter webPropertyId is required.");
2076 } 2175 }
2077 if (profileId == null) { 2176 if (profileId == null) {
2078 throw new core.ArgumentError("Parameter profileId is required."); 2177 throw new core.ArgumentError("Parameter profileId is required.");
2079 } 2178 }
2080 if (goalId == null) { 2179 if (goalId == null) {
2081 throw new core.ArgumentError("Parameter goalId is required."); 2180 throw new core.ArgumentError("Parameter goalId is required.");
2082 } 2181 }
2083 2182
2084 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/goals/' + commons.Escaper .ecapeVariable('$goalId'); 2183 _url = 'management/accounts/' +
2184 commons.Escaper.ecapeVariable('$accountId') +
2185 '/webproperties/' +
2186 commons.Escaper.ecapeVariable('$webPropertyId') +
2187 '/profiles/' +
2188 commons.Escaper.ecapeVariable('$profileId') +
2189 '/goals/' +
2190 commons.Escaper.ecapeVariable('$goalId');
2085 2191
2086 var _response = _requester.request(_url, 2192 var _response = _requester.request(_url, "GET",
2087 "GET", 2193 body: _body,
2088 body: _body, 2194 queryParams: _queryParams,
2089 queryParams: _queryParams, 2195 uploadOptions: _uploadOptions,
2090 uploadOptions: _uploadOptions, 2196 uploadMedia: _uploadMedia,
2091 uploadMedia: _uploadMedia, 2197 downloadOptions: _downloadOptions);
2092 downloadOptions: _downloadOptions);
2093 return _response.then((data) => new Goal.fromJson(data)); 2198 return _response.then((data) => new Goal.fromJson(data));
2094 } 2199 }
2095 2200
2096 /** 2201 /// Create a new goal.
2097 * Create a new goal. 2202 ///
2098 * 2203 /// [request] - The metadata request object.
2099 * [request] - The metadata request object. 2204 ///
2100 * 2205 /// Request parameters:
2101 * Request parameters: 2206 ///
2102 * 2207 /// [accountId] - Account ID to create the goal for.
2103 * [accountId] - Account ID to create the goal for. 2208 ///
2104 * 2209 /// [webPropertyId] - Web property ID to create the goal for.
2105 * [webPropertyId] - Web property ID to create the goal for. 2210 ///
2106 * 2211 /// [profileId] - View (Profile) ID to create the goal for.
2107 * [profileId] - View (Profile) ID to create the goal for. 2212 ///
2108 * 2213 /// Completes with a [Goal].
2109 * Completes with a [Goal]. 2214 ///
2110 * 2215 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2111 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2216 /// an error.
2112 * error. 2217 ///
2113 * 2218 /// If the used [http.Client] completes with an error when making a REST
2114 * If the used [http.Client] completes with an error when making a REST call, 2219 /// call, this method will complete with the same error.
2115 * this method will complete with the same error. 2220 async.Future<Goal> insert(Goal request, core.String accountId,
2116 */ 2221 core.String webPropertyId, core.String profileId) {
2117 async.Future<Goal> insert(Goal request, core.String accountId, core.String web PropertyId, core.String profileId) {
2118 var _url = null; 2222 var _url = null;
2119 var _queryParams = new core.Map(); 2223 var _queryParams = new core.Map();
2120 var _uploadMedia = null; 2224 var _uploadMedia = null;
2121 var _uploadOptions = null; 2225 var _uploadOptions = null;
2122 var _downloadOptions = commons.DownloadOptions.Metadata; 2226 var _downloadOptions = commons.DownloadOptions.Metadata;
2123 var _body = null; 2227 var _body = null;
2124 2228
2125 if (request != null) { 2229 if (request != null) {
2126 _body = convert.JSON.encode((request).toJson()); 2230 _body = convert.JSON.encode((request).toJson());
2127 } 2231 }
2128 if (accountId == null) { 2232 if (accountId == null) {
2129 throw new core.ArgumentError("Parameter accountId is required."); 2233 throw new core.ArgumentError("Parameter accountId is required.");
2130 } 2234 }
2131 if (webPropertyId == null) { 2235 if (webPropertyId == null) {
2132 throw new core.ArgumentError("Parameter webPropertyId is required."); 2236 throw new core.ArgumentError("Parameter webPropertyId is required.");
2133 } 2237 }
2134 if (profileId == null) { 2238 if (profileId == null) {
2135 throw new core.ArgumentError("Parameter profileId is required."); 2239 throw new core.ArgumentError("Parameter profileId is required.");
2136 } 2240 }
2137 2241
2138 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/goals'; 2242 _url = 'management/accounts/' +
2243 commons.Escaper.ecapeVariable('$accountId') +
2244 '/webproperties/' +
2245 commons.Escaper.ecapeVariable('$webPropertyId') +
2246 '/profiles/' +
2247 commons.Escaper.ecapeVariable('$profileId') +
2248 '/goals';
2139 2249
2140 var _response = _requester.request(_url, 2250 var _response = _requester.request(_url, "POST",
2141 "POST", 2251 body: _body,
2142 body: _body, 2252 queryParams: _queryParams,
2143 queryParams: _queryParams, 2253 uploadOptions: _uploadOptions,
2144 uploadOptions: _uploadOptions, 2254 uploadMedia: _uploadMedia,
2145 uploadMedia: _uploadMedia, 2255 downloadOptions: _downloadOptions);
2146 downloadOptions: _downloadOptions);
2147 return _response.then((data) => new Goal.fromJson(data)); 2256 return _response.then((data) => new Goal.fromJson(data));
2148 } 2257 }
2149 2258
2150 /** 2259 /// Lists goals to which the user has access.
2151 * Lists goals to which the user has access. 2260 ///
2152 * 2261 /// Request parameters:
2153 * Request parameters: 2262 ///
2154 * 2263 /// [accountId] - Account ID to retrieve goals for. Can either be a specific
2155 * [accountId] - Account ID to retrieve goals for. Can either be a specific 2264 /// account ID or '~all', which refers to all the accounts that user has
2156 * account ID or '~all', which refers to all the accounts that user has access 2265 /// access to.
2157 * to. 2266 ///
2158 * 2267 /// [webPropertyId] - Web property ID to retrieve goals for. Can either be a
2159 * [webPropertyId] - Web property ID to retrieve goals for. Can either be a 2268 /// specific web property ID or '~all', which refers to all the web
2160 * specific web property ID or '~all', which refers to all the web properties 2269 /// properties that user has access to.
2161 * that user has access to. 2270 ///
2162 * 2271 /// [profileId] - View (Profile) ID to retrieve goals for. Can either be a
2163 * [profileId] - View (Profile) ID to retrieve goals for. Can either be a 2272 /// specific view (profile) ID or '~all', which refers to all the views
2164 * specific view (profile) ID or '~all', which refers to all the views 2273 /// (profiles) that user has access to.
2165 * (profiles) that user has access to. 2274 ///
2166 * 2275 /// [max_results] - The maximum number of goals to include in this response.
2167 * [max_results] - The maximum number of goals to include in this response. 2276 ///
2168 * 2277 /// [start_index] - An index of the first goal to retrieve. Use this
2169 * [start_index] - An index of the first goal to retrieve. Use this parameter 2278 /// parameter as a pagination mechanism along with the max-results parameter.
2170 * as a pagination mechanism along with the max-results parameter. 2279 ///
2171 * 2280 /// Completes with a [Goals].
2172 * Completes with a [Goals]. 2281 ///
2173 * 2282 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2174 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2283 /// an error.
2175 * error. 2284 ///
2176 * 2285 /// If the used [http.Client] completes with an error when making a REST
2177 * If the used [http.Client] completes with an error when making a REST call, 2286 /// call, this method will complete with the same error.
2178 * this method will complete with the same error. 2287 async.Future<Goals> list(
2179 */ 2288 core.String accountId, core.String webPropertyId, core.String profileId,
2180 async.Future<Goals> list(core.String accountId, core.String webPropertyId, cor e.String profileId, {core.int max_results, core.int start_index}) { 2289 {core.int max_results, core.int start_index}) {
2181 var _url = null; 2290 var _url = null;
2182 var _queryParams = new core.Map(); 2291 var _queryParams = new core.Map();
2183 var _uploadMedia = null; 2292 var _uploadMedia = null;
2184 var _uploadOptions = null; 2293 var _uploadOptions = null;
2185 var _downloadOptions = commons.DownloadOptions.Metadata; 2294 var _downloadOptions = commons.DownloadOptions.Metadata;
2186 var _body = null; 2295 var _body = null;
2187 2296
2188 if (accountId == null) { 2297 if (accountId == null) {
2189 throw new core.ArgumentError("Parameter accountId is required."); 2298 throw new core.ArgumentError("Parameter accountId is required.");
2190 } 2299 }
2191 if (webPropertyId == null) { 2300 if (webPropertyId == null) {
2192 throw new core.ArgumentError("Parameter webPropertyId is required."); 2301 throw new core.ArgumentError("Parameter webPropertyId is required.");
2193 } 2302 }
2194 if (profileId == null) { 2303 if (profileId == null) {
2195 throw new core.ArgumentError("Parameter profileId is required."); 2304 throw new core.ArgumentError("Parameter profileId is required.");
2196 } 2305 }
2197 if (max_results != null) { 2306 if (max_results != null) {
2198 _queryParams["max-results"] = ["${max_results}"]; 2307 _queryParams["max-results"] = ["${max_results}"];
2199 } 2308 }
2200 if (start_index != null) { 2309 if (start_index != null) {
2201 _queryParams["start-index"] = ["${start_index}"]; 2310 _queryParams["start-index"] = ["${start_index}"];
2202 } 2311 }
2203 2312
2204 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/goals'; 2313 _url = 'management/accounts/' +
2314 commons.Escaper.ecapeVariable('$accountId') +
2315 '/webproperties/' +
2316 commons.Escaper.ecapeVariable('$webPropertyId') +
2317 '/profiles/' +
2318 commons.Escaper.ecapeVariable('$profileId') +
2319 '/goals';
2205 2320
2206 var _response = _requester.request(_url, 2321 var _response = _requester.request(_url, "GET",
2207 "GET", 2322 body: _body,
2208 body: _body, 2323 queryParams: _queryParams,
2209 queryParams: _queryParams, 2324 uploadOptions: _uploadOptions,
2210 uploadOptions: _uploadOptions, 2325 uploadMedia: _uploadMedia,
2211 uploadMedia: _uploadMedia, 2326 downloadOptions: _downloadOptions);
2212 downloadOptions: _downloadOptions);
2213 return _response.then((data) => new Goals.fromJson(data)); 2327 return _response.then((data) => new Goals.fromJson(data));
2214 } 2328 }
2215 2329
2216 /** 2330 /// Updates an existing goal. This method supports patch semantics.
2217 * Updates an existing goal. This method supports patch semantics. 2331 ///
2218 * 2332 /// [request] - The metadata request object.
2219 * [request] - The metadata request object. 2333 ///
2220 * 2334 /// Request parameters:
2221 * Request parameters: 2335 ///
2222 * 2336 /// [accountId] - Account ID to update the goal.
2223 * [accountId] - Account ID to update the goal. 2337 ///
2224 * 2338 /// [webPropertyId] - Web property ID to update the goal.
2225 * [webPropertyId] - Web property ID to update the goal. 2339 ///
2226 * 2340 /// [profileId] - View (Profile) ID to update the goal.
2227 * [profileId] - View (Profile) ID to update the goal. 2341 ///
2228 * 2342 /// [goalId] - Index of the goal to be updated.
2229 * [goalId] - Index of the goal to be updated. 2343 ///
2230 * 2344 /// Completes with a [Goal].
2231 * Completes with a [Goal]. 2345 ///
2232 * 2346 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2347 /// an error.
2234 * error. 2348 ///
2235 * 2349 /// If the used [http.Client] completes with an error when making a REST
2236 * If the used [http.Client] completes with an error when making a REST call, 2350 /// call, this method will complete with the same error.
2237 * this method will complete with the same error. 2351 async.Future<Goal> patch(Goal request, core.String accountId,
2238 */ 2352 core.String webPropertyId, core.String profileId, core.String goalId) {
2239 async.Future<Goal> patch(Goal request, core.String accountId, core.String webP ropertyId, core.String profileId, core.String goalId) {
2240 var _url = null; 2353 var _url = null;
2241 var _queryParams = new core.Map(); 2354 var _queryParams = new core.Map();
2242 var _uploadMedia = null; 2355 var _uploadMedia = null;
2243 var _uploadOptions = null; 2356 var _uploadOptions = null;
2244 var _downloadOptions = commons.DownloadOptions.Metadata; 2357 var _downloadOptions = commons.DownloadOptions.Metadata;
2245 var _body = null; 2358 var _body = null;
2246 2359
2247 if (request != null) { 2360 if (request != null) {
2248 _body = convert.JSON.encode((request).toJson()); 2361 _body = convert.JSON.encode((request).toJson());
2249 } 2362 }
2250 if (accountId == null) { 2363 if (accountId == null) {
2251 throw new core.ArgumentError("Parameter accountId is required."); 2364 throw new core.ArgumentError("Parameter accountId is required.");
2252 } 2365 }
2253 if (webPropertyId == null) { 2366 if (webPropertyId == null) {
2254 throw new core.ArgumentError("Parameter webPropertyId is required."); 2367 throw new core.ArgumentError("Parameter webPropertyId is required.");
2255 } 2368 }
2256 if (profileId == null) { 2369 if (profileId == null) {
2257 throw new core.ArgumentError("Parameter profileId is required."); 2370 throw new core.ArgumentError("Parameter profileId is required.");
2258 } 2371 }
2259 if (goalId == null) { 2372 if (goalId == null) {
2260 throw new core.ArgumentError("Parameter goalId is required."); 2373 throw new core.ArgumentError("Parameter goalId is required.");
2261 } 2374 }
2262 2375
2263 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/goals/' + commons.Escaper .ecapeVariable('$goalId'); 2376 _url = 'management/accounts/' +
2377 commons.Escaper.ecapeVariable('$accountId') +
2378 '/webproperties/' +
2379 commons.Escaper.ecapeVariable('$webPropertyId') +
2380 '/profiles/' +
2381 commons.Escaper.ecapeVariable('$profileId') +
2382 '/goals/' +
2383 commons.Escaper.ecapeVariable('$goalId');
2264 2384
2265 var _response = _requester.request(_url, 2385 var _response = _requester.request(_url, "PATCH",
2266 "PATCH", 2386 body: _body,
2267 body: _body, 2387 queryParams: _queryParams,
2268 queryParams: _queryParams, 2388 uploadOptions: _uploadOptions,
2269 uploadOptions: _uploadOptions, 2389 uploadMedia: _uploadMedia,
2270 uploadMedia: _uploadMedia, 2390 downloadOptions: _downloadOptions);
2271 downloadOptions: _downloadOptions);
2272 return _response.then((data) => new Goal.fromJson(data)); 2391 return _response.then((data) => new Goal.fromJson(data));
2273 } 2392 }
2274 2393
2275 /** 2394 /// Updates an existing goal.
2276 * Updates an existing goal. 2395 ///
2277 * 2396 /// [request] - The metadata request object.
2278 * [request] - The metadata request object. 2397 ///
2279 * 2398 /// Request parameters:
2280 * Request parameters: 2399 ///
2281 * 2400 /// [accountId] - Account ID to update the goal.
2282 * [accountId] - Account ID to update the goal. 2401 ///
2283 * 2402 /// [webPropertyId] - Web property ID to update the goal.
2284 * [webPropertyId] - Web property ID to update the goal. 2403 ///
2285 * 2404 /// [profileId] - View (Profile) ID to update the goal.
2286 * [profileId] - View (Profile) ID to update the goal. 2405 ///
2287 * 2406 /// [goalId] - Index of the goal to be updated.
2288 * [goalId] - Index of the goal to be updated. 2407 ///
2289 * 2408 /// Completes with a [Goal].
2290 * Completes with a [Goal]. 2409 ///
2291 * 2410 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2292 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2411 /// an error.
2293 * error. 2412 ///
2294 * 2413 /// If the used [http.Client] completes with an error when making a REST
2295 * If the used [http.Client] completes with an error when making a REST call, 2414 /// call, this method will complete with the same error.
2296 * this method will complete with the same error. 2415 async.Future<Goal> update(Goal request, core.String accountId,
2297 */ 2416 core.String webPropertyId, core.String profileId, core.String goalId) {
2298 async.Future<Goal> update(Goal request, core.String accountId, core.String web PropertyId, core.String profileId, core.String goalId) {
2299 var _url = null; 2417 var _url = null;
2300 var _queryParams = new core.Map(); 2418 var _queryParams = new core.Map();
2301 var _uploadMedia = null; 2419 var _uploadMedia = null;
2302 var _uploadOptions = null; 2420 var _uploadOptions = null;
2303 var _downloadOptions = commons.DownloadOptions.Metadata; 2421 var _downloadOptions = commons.DownloadOptions.Metadata;
2304 var _body = null; 2422 var _body = null;
2305 2423
2306 if (request != null) { 2424 if (request != null) {
2307 _body = convert.JSON.encode((request).toJson()); 2425 _body = convert.JSON.encode((request).toJson());
2308 } 2426 }
2309 if (accountId == null) { 2427 if (accountId == null) {
2310 throw new core.ArgumentError("Parameter accountId is required."); 2428 throw new core.ArgumentError("Parameter accountId is required.");
2311 } 2429 }
2312 if (webPropertyId == null) { 2430 if (webPropertyId == null) {
2313 throw new core.ArgumentError("Parameter webPropertyId is required."); 2431 throw new core.ArgumentError("Parameter webPropertyId is required.");
2314 } 2432 }
2315 if (profileId == null) { 2433 if (profileId == null) {
2316 throw new core.ArgumentError("Parameter profileId is required."); 2434 throw new core.ArgumentError("Parameter profileId is required.");
2317 } 2435 }
2318 if (goalId == null) { 2436 if (goalId == null) {
2319 throw new core.ArgumentError("Parameter goalId is required."); 2437 throw new core.ArgumentError("Parameter goalId is required.");
2320 } 2438 }
2321 2439
2322 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/goals/' + commons.Escaper .ecapeVariable('$goalId'); 2440 _url = 'management/accounts/' +
2441 commons.Escaper.ecapeVariable('$accountId') +
2442 '/webproperties/' +
2443 commons.Escaper.ecapeVariable('$webPropertyId') +
2444 '/profiles/' +
2445 commons.Escaper.ecapeVariable('$profileId') +
2446 '/goals/' +
2447 commons.Escaper.ecapeVariable('$goalId');
2323 2448
2324 var _response = _requester.request(_url, 2449 var _response = _requester.request(_url, "PUT",
2325 "PUT", 2450 body: _body,
2326 body: _body, 2451 queryParams: _queryParams,
2327 queryParams: _queryParams, 2452 uploadOptions: _uploadOptions,
2328 uploadOptions: _uploadOptions, 2453 uploadMedia: _uploadMedia,
2329 uploadMedia: _uploadMedia, 2454 downloadOptions: _downloadOptions);
2330 downloadOptions: _downloadOptions);
2331 return _response.then((data) => new Goal.fromJson(data)); 2455 return _response.then((data) => new Goal.fromJson(data));
2332 } 2456 }
2333
2334 } 2457 }
2335 2458
2336
2337 class ManagementProfileFilterLinksResourceApi { 2459 class ManagementProfileFilterLinksResourceApi {
2338 final commons.ApiRequester _requester; 2460 final commons.ApiRequester _requester;
2339 2461
2340 ManagementProfileFilterLinksResourceApi(commons.ApiRequester client) : 2462 ManagementProfileFilterLinksResourceApi(commons.ApiRequester client)
2341 _requester = client; 2463 : _requester = client;
2342 2464
2343 /** 2465 /// Delete a profile filter link.
2344 * Delete a profile filter link. 2466 ///
2345 * 2467 /// Request parameters:
2346 * Request parameters: 2468 ///
2347 * 2469 /// [accountId] - Account ID to which the profile filter link belongs.
2348 * [accountId] - Account ID to which the profile filter link belongs. 2470 /// Value must have pattern "\d+".
2349 * Value must have pattern "\d+". 2471 ///
2350 * 2472 /// [webPropertyId] - Web property Id to which the profile filter link
2351 * [webPropertyId] - Web property Id to which the profile filter link belongs. 2473 /// belongs.
2352 * Value must have pattern "UA-(\d+)-(\d+)". 2474 /// Value must have pattern "UA-(\d+)-(\d+)".
2353 * 2475 ///
2354 * [profileId] - Profile ID to which the filter link belongs. 2476 /// [profileId] - Profile ID to which the filter link belongs.
2355 * Value must have pattern "\d+". 2477 /// Value must have pattern "\d+".
2356 * 2478 ///
2357 * [linkId] - ID of the profile filter link to delete. 2479 /// [linkId] - ID of the profile filter link to delete.
2358 * Value must have pattern "\d+:\d+". 2480 /// Value must have pattern "\d+:\d+".
2359 * 2481 ///
2360 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2482 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2361 * error. 2483 /// an error.
2362 * 2484 ///
2363 * If the used [http.Client] completes with an error when making a REST call, 2485 /// If the used [http.Client] completes with an error when making a REST
2364 * this method will complete with the same error. 2486 /// call, this method will complete with the same error.
2365 */ 2487 async.Future delete(core.String accountId, core.String webPropertyId,
2366 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing profileId, core.String linkId) { 2488 core.String profileId, core.String linkId) {
2367 var _url = null; 2489 var _url = null;
2368 var _queryParams = new core.Map(); 2490 var _queryParams = new core.Map();
2369 var _uploadMedia = null; 2491 var _uploadMedia = null;
2370 var _uploadOptions = null; 2492 var _uploadOptions = null;
2371 var _downloadOptions = commons.DownloadOptions.Metadata; 2493 var _downloadOptions = commons.DownloadOptions.Metadata;
2372 var _body = null; 2494 var _body = null;
2373 2495
2374 if (accountId == null) { 2496 if (accountId == null) {
2375 throw new core.ArgumentError("Parameter accountId is required."); 2497 throw new core.ArgumentError("Parameter accountId is required.");
2376 } 2498 }
2377 if (webPropertyId == null) { 2499 if (webPropertyId == null) {
2378 throw new core.ArgumentError("Parameter webPropertyId is required."); 2500 throw new core.ArgumentError("Parameter webPropertyId is required.");
2379 } 2501 }
2380 if (profileId == null) { 2502 if (profileId == null) {
2381 throw new core.ArgumentError("Parameter profileId is required."); 2503 throw new core.ArgumentError("Parameter profileId is required.");
2382 } 2504 }
2383 if (linkId == null) { 2505 if (linkId == null) {
2384 throw new core.ArgumentError("Parameter linkId is required."); 2506 throw new core.ArgumentError("Parameter linkId is required.");
2385 } 2507 }
2386 2508
2387 _downloadOptions = null; 2509 _downloadOptions = null;
2388 2510
2389 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + co mmons.Escaper.ecapeVariable('$linkId'); 2511 _url = 'management/accounts/' +
2512 commons.Escaper.ecapeVariable('$accountId') +
2513 '/webproperties/' +
2514 commons.Escaper.ecapeVariable('$webPropertyId') +
2515 '/profiles/' +
2516 commons.Escaper.ecapeVariable('$profileId') +
2517 '/profileFilterLinks/' +
2518 commons.Escaper.ecapeVariable('$linkId');
2390 2519
2391 var _response = _requester.request(_url, 2520 var _response = _requester.request(_url, "DELETE",
2392 "DELETE", 2521 body: _body,
2393 body: _body, 2522 queryParams: _queryParams,
2394 queryParams: _queryParams, 2523 uploadOptions: _uploadOptions,
2395 uploadOptions: _uploadOptions, 2524 uploadMedia: _uploadMedia,
2396 uploadMedia: _uploadMedia, 2525 downloadOptions: _downloadOptions);
2397 downloadOptions: _downloadOptions);
2398 return _response.then((data) => null); 2526 return _response.then((data) => null);
2399 } 2527 }
2400 2528
2401 /** 2529 /// Returns a single profile filter link.
2402 * Returns a single profile filter link. 2530 ///
2403 * 2531 /// Request parameters:
2404 * Request parameters: 2532 ///
2405 * 2533 /// [accountId] - Account ID to retrieve profile filter link for.
2406 * [accountId] - Account ID to retrieve profile filter link for. 2534 /// Value must have pattern "\d+".
2407 * Value must have pattern "\d+". 2535 ///
2408 * 2536 /// [webPropertyId] - Web property Id to retrieve profile filter link for.
2409 * [webPropertyId] - Web property Id to retrieve profile filter link for. 2537 /// Value must have pattern "UA-(\d+)-(\d+)".
2410 * Value must have pattern "UA-(\d+)-(\d+)". 2538 ///
2411 * 2539 /// [profileId] - Profile ID to retrieve filter link for.
2412 * [profileId] - Profile ID to retrieve filter link for. 2540 /// Value must have pattern "\d+".
2413 * Value must have pattern "\d+". 2541 ///
2414 * 2542 /// [linkId] - ID of the profile filter link.
2415 * [linkId] - ID of the profile filter link. 2543 /// Value must have pattern "\d+:\d+".
2416 * Value must have pattern "\d+:\d+". 2544 ///
2417 * 2545 /// Completes with a [ProfileFilterLink].
2418 * Completes with a [ProfileFilterLink]. 2546 ///
2419 * 2547 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2420 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2548 /// an error.
2421 * error. 2549 ///
2422 * 2550 /// If the used [http.Client] completes with an error when making a REST
2423 * If the used [http.Client] completes with an error when making a REST call, 2551 /// call, this method will complete with the same error.
2424 * this method will complete with the same error. 2552 async.Future<ProfileFilterLink> get(core.String accountId,
2425 */ 2553 core.String webPropertyId, core.String profileId, core.String linkId) {
2426 async.Future<ProfileFilterLink> get(core.String accountId, core.String webProp ertyId, core.String profileId, core.String linkId) {
2427 var _url = null; 2554 var _url = null;
2428 var _queryParams = new core.Map(); 2555 var _queryParams = new core.Map();
2429 var _uploadMedia = null; 2556 var _uploadMedia = null;
2430 var _uploadOptions = null; 2557 var _uploadOptions = null;
2431 var _downloadOptions = commons.DownloadOptions.Metadata; 2558 var _downloadOptions = commons.DownloadOptions.Metadata;
2432 var _body = null; 2559 var _body = null;
2433 2560
2434 if (accountId == null) { 2561 if (accountId == null) {
2435 throw new core.ArgumentError("Parameter accountId is required."); 2562 throw new core.ArgumentError("Parameter accountId is required.");
2436 } 2563 }
2437 if (webPropertyId == null) { 2564 if (webPropertyId == null) {
2438 throw new core.ArgumentError("Parameter webPropertyId is required."); 2565 throw new core.ArgumentError("Parameter webPropertyId is required.");
2439 } 2566 }
2440 if (profileId == null) { 2567 if (profileId == null) {
2441 throw new core.ArgumentError("Parameter profileId is required."); 2568 throw new core.ArgumentError("Parameter profileId is required.");
2442 } 2569 }
2443 if (linkId == null) { 2570 if (linkId == null) {
2444 throw new core.ArgumentError("Parameter linkId is required."); 2571 throw new core.ArgumentError("Parameter linkId is required.");
2445 } 2572 }
2446 2573
2447 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + co mmons.Escaper.ecapeVariable('$linkId'); 2574 _url = 'management/accounts/' +
2575 commons.Escaper.ecapeVariable('$accountId') +
2576 '/webproperties/' +
2577 commons.Escaper.ecapeVariable('$webPropertyId') +
2578 '/profiles/' +
2579 commons.Escaper.ecapeVariable('$profileId') +
2580 '/profileFilterLinks/' +
2581 commons.Escaper.ecapeVariable('$linkId');
2448 2582
2449 var _response = _requester.request(_url, 2583 var _response = _requester.request(_url, "GET",
2450 "GET", 2584 body: _body,
2451 body: _body, 2585 queryParams: _queryParams,
2452 queryParams: _queryParams, 2586 uploadOptions: _uploadOptions,
2453 uploadOptions: _uploadOptions, 2587 uploadMedia: _uploadMedia,
2454 uploadMedia: _uploadMedia, 2588 downloadOptions: _downloadOptions);
2455 downloadOptions: _downloadOptions);
2456 return _response.then((data) => new ProfileFilterLink.fromJson(data)); 2589 return _response.then((data) => new ProfileFilterLink.fromJson(data));
2457 } 2590 }
2458 2591
2459 /** 2592 /// Create a new profile filter link.
2460 * Create a new profile filter link. 2593 ///
2461 * 2594 /// [request] - The metadata request object.
2462 * [request] - The metadata request object. 2595 ///
2463 * 2596 /// Request parameters:
2464 * Request parameters: 2597 ///
2465 * 2598 /// [accountId] - Account ID to create profile filter link for.
2466 * [accountId] - Account ID to create profile filter link for. 2599 /// Value must have pattern "\d+".
2467 * Value must have pattern "\d+". 2600 ///
2468 * 2601 /// [webPropertyId] - Web property Id to create profile filter link for.
2469 * [webPropertyId] - Web property Id to create profile filter link for. 2602 /// Value must have pattern "UA-(\d+)-(\d+)".
2470 * Value must have pattern "UA-(\d+)-(\d+)". 2603 ///
2471 * 2604 /// [profileId] - Profile ID to create filter link for.
2472 * [profileId] - Profile ID to create filter link for. 2605 /// Value must have pattern "\d+".
2473 * Value must have pattern "\d+". 2606 ///
2474 * 2607 /// Completes with a [ProfileFilterLink].
2475 * Completes with a [ProfileFilterLink]. 2608 ///
2476 * 2609 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2477 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2610 /// an error.
2478 * error. 2611 ///
2479 * 2612 /// If the used [http.Client] completes with an error when making a REST
2480 * If the used [http.Client] completes with an error when making a REST call, 2613 /// call, this method will complete with the same error.
2481 * this method will complete with the same error. 2614 async.Future<ProfileFilterLink> insert(ProfileFilterLink request,
2482 */ 2615 core.String accountId, core.String webPropertyId, core.String profileId) {
2483 async.Future<ProfileFilterLink> insert(ProfileFilterLink request, core.String accountId, core.String webPropertyId, core.String profileId) {
2484 var _url = null; 2616 var _url = null;
2485 var _queryParams = new core.Map(); 2617 var _queryParams = new core.Map();
2486 var _uploadMedia = null; 2618 var _uploadMedia = null;
2487 var _uploadOptions = null; 2619 var _uploadOptions = null;
2488 var _downloadOptions = commons.DownloadOptions.Metadata; 2620 var _downloadOptions = commons.DownloadOptions.Metadata;
2489 var _body = null; 2621 var _body = null;
2490 2622
2491 if (request != null) { 2623 if (request != null) {
2492 _body = convert.JSON.encode((request).toJson()); 2624 _body = convert.JSON.encode((request).toJson());
2493 } 2625 }
2494 if (accountId == null) { 2626 if (accountId == null) {
2495 throw new core.ArgumentError("Parameter accountId is required."); 2627 throw new core.ArgumentError("Parameter accountId is required.");
2496 } 2628 }
2497 if (webPropertyId == null) { 2629 if (webPropertyId == null) {
2498 throw new core.ArgumentError("Parameter webPropertyId is required."); 2630 throw new core.ArgumentError("Parameter webPropertyId is required.");
2499 } 2631 }
2500 if (profileId == null) { 2632 if (profileId == null) {
2501 throw new core.ArgumentError("Parameter profileId is required."); 2633 throw new core.ArgumentError("Parameter profileId is required.");
2502 } 2634 }
2503 2635
2504 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks'; 2636 _url = 'management/accounts/' +
2637 commons.Escaper.ecapeVariable('$accountId') +
2638 '/webproperties/' +
2639 commons.Escaper.ecapeVariable('$webPropertyId') +
2640 '/profiles/' +
2641 commons.Escaper.ecapeVariable('$profileId') +
2642 '/profileFilterLinks';
2505 2643
2506 var _response = _requester.request(_url, 2644 var _response = _requester.request(_url, "POST",
2507 "POST", 2645 body: _body,
2508 body: _body, 2646 queryParams: _queryParams,
2509 queryParams: _queryParams, 2647 uploadOptions: _uploadOptions,
2510 uploadOptions: _uploadOptions, 2648 uploadMedia: _uploadMedia,
2511 uploadMedia: _uploadMedia, 2649 downloadOptions: _downloadOptions);
2512 downloadOptions: _downloadOptions);
2513 return _response.then((data) => new ProfileFilterLink.fromJson(data)); 2650 return _response.then((data) => new ProfileFilterLink.fromJson(data));
2514 } 2651 }
2515 2652
2516 /** 2653 /// Lists all profile filter links for a profile.
2517 * Lists all profile filter links for a profile. 2654 ///
2518 * 2655 /// Request parameters:
2519 * Request parameters: 2656 ///
2520 * 2657 /// [accountId] - Account ID to retrieve profile filter links for.
2521 * [accountId] - Account ID to retrieve profile filter links for. 2658 /// Value must have pattern "\d+".
2522 * Value must have pattern "\d+". 2659 ///
2523 * 2660 /// [webPropertyId] - Web property Id for profile filter links for. Can
2524 * [webPropertyId] - Web property Id for profile filter links for. Can either 2661 /// either be a specific web property ID or '~all', which refers to all the
2525 * be a specific web property ID or '~all', which refers to all the web 2662 /// web properties that user has access to.
2526 * properties that user has access to. 2663 ///
2527 * 2664 /// [profileId] - Profile ID to retrieve filter links for. Can either be a
2528 * [profileId] - Profile ID to retrieve filter links for. Can either be a 2665 /// specific profile ID or '~all', which refers to all the profiles that user
2529 * specific profile ID or '~all', which refers to all the profiles that user 2666 /// has access to.
2530 * has access to. 2667 ///
2531 * 2668 /// [max_results] - The maximum number of profile filter links to include in
2532 * [max_results] - The maximum number of profile filter links to include in 2669 /// this response.
2533 * this response. 2670 ///
2534 * 2671 /// [start_index] - An index of the first entity to retrieve. Use this
2535 * [start_index] - An index of the first entity to retrieve. Use this 2672 /// parameter as a pagination mechanism along with the max-results parameter.
2536 * parameter as a pagination mechanism along with the max-results parameter. 2673 ///
2537 * 2674 /// Completes with a [ProfileFilterLinks].
2538 * Completes with a [ProfileFilterLinks]. 2675 ///
2539 * 2676 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2540 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2677 /// an error.
2541 * error. 2678 ///
2542 * 2679 /// If the used [http.Client] completes with an error when making a REST
2543 * If the used [http.Client] completes with an error when making a REST call, 2680 /// call, this method will complete with the same error.
2544 * this method will complete with the same error. 2681 async.Future<ProfileFilterLinks> list(
2545 */ 2682 core.String accountId, core.String webPropertyId, core.String profileId,
2546 async.Future<ProfileFilterLinks> list(core.String accountId, core.String webPr opertyId, core.String profileId, {core.int max_results, core.int start_index}) { 2683 {core.int max_results, core.int start_index}) {
2547 var _url = null; 2684 var _url = null;
2548 var _queryParams = new core.Map(); 2685 var _queryParams = new core.Map();
2549 var _uploadMedia = null; 2686 var _uploadMedia = null;
2550 var _uploadOptions = null; 2687 var _uploadOptions = null;
2551 var _downloadOptions = commons.DownloadOptions.Metadata; 2688 var _downloadOptions = commons.DownloadOptions.Metadata;
2552 var _body = null; 2689 var _body = null;
2553 2690
2554 if (accountId == null) { 2691 if (accountId == null) {
2555 throw new core.ArgumentError("Parameter accountId is required."); 2692 throw new core.ArgumentError("Parameter accountId is required.");
2556 } 2693 }
2557 if (webPropertyId == null) { 2694 if (webPropertyId == null) {
2558 throw new core.ArgumentError("Parameter webPropertyId is required."); 2695 throw new core.ArgumentError("Parameter webPropertyId is required.");
2559 } 2696 }
2560 if (profileId == null) { 2697 if (profileId == null) {
2561 throw new core.ArgumentError("Parameter profileId is required."); 2698 throw new core.ArgumentError("Parameter profileId is required.");
2562 } 2699 }
2563 if (max_results != null) { 2700 if (max_results != null) {
2564 _queryParams["max-results"] = ["${max_results}"]; 2701 _queryParams["max-results"] = ["${max_results}"];
2565 } 2702 }
2566 if (start_index != null) { 2703 if (start_index != null) {
2567 _queryParams["start-index"] = ["${start_index}"]; 2704 _queryParams["start-index"] = ["${start_index}"];
2568 } 2705 }
2569 2706
2570 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks'; 2707 _url = 'management/accounts/' +
2708 commons.Escaper.ecapeVariable('$accountId') +
2709 '/webproperties/' +
2710 commons.Escaper.ecapeVariable('$webPropertyId') +
2711 '/profiles/' +
2712 commons.Escaper.ecapeVariable('$profileId') +
2713 '/profileFilterLinks';
2571 2714
2572 var _response = _requester.request(_url, 2715 var _response = _requester.request(_url, "GET",
2573 "GET", 2716 body: _body,
2574 body: _body, 2717 queryParams: _queryParams,
2575 queryParams: _queryParams, 2718 uploadOptions: _uploadOptions,
2576 uploadOptions: _uploadOptions, 2719 uploadMedia: _uploadMedia,
2577 uploadMedia: _uploadMedia, 2720 downloadOptions: _downloadOptions);
2578 downloadOptions: _downloadOptions);
2579 return _response.then((data) => new ProfileFilterLinks.fromJson(data)); 2721 return _response.then((data) => new ProfileFilterLinks.fromJson(data));
2580 } 2722 }
2581 2723
2582 /** 2724 /// Update an existing profile filter link. This method supports patch
2583 * Update an existing profile filter link. This method supports patch 2725 /// semantics.
2584 * semantics. 2726 ///
2585 * 2727 /// [request] - The metadata request object.
2586 * [request] - The metadata request object. 2728 ///
2587 * 2729 /// Request parameters:
2588 * Request parameters: 2730 ///
2589 * 2731 /// [accountId] - Account ID to which profile filter link belongs.
2590 * [accountId] - Account ID to which profile filter link belongs. 2732 /// Value must have pattern "\d+".
2591 * Value must have pattern "\d+". 2733 ///
2592 * 2734 /// [webPropertyId] - Web property Id to which profile filter link belongs
2593 * [webPropertyId] - Web property Id to which profile filter link belongs 2735 /// Value must have pattern "UA-(\d+)-(\d+)".
2594 * Value must have pattern "UA-(\d+)-(\d+)". 2736 ///
2595 * 2737 /// [profileId] - Profile ID to which filter link belongs
2596 * [profileId] - Profile ID to which filter link belongs 2738 /// Value must have pattern "\d+".
2597 * Value must have pattern "\d+". 2739 ///
2598 * 2740 /// [linkId] - ID of the profile filter link to be updated.
2599 * [linkId] - ID of the profile filter link to be updated. 2741 /// Value must have pattern "\d+:\d+".
2600 * Value must have pattern "\d+:\d+". 2742 ///
2601 * 2743 /// Completes with a [ProfileFilterLink].
2602 * Completes with a [ProfileFilterLink]. 2744 ///
2603 * 2745 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2604 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2746 /// an error.
2605 * error. 2747 ///
2606 * 2748 /// If the used [http.Client] completes with an error when making a REST
2607 * If the used [http.Client] completes with an error when making a REST call, 2749 /// call, this method will complete with the same error.
2608 * this method will complete with the same error. 2750 async.Future<ProfileFilterLink> patch(
2609 */ 2751 ProfileFilterLink request,
2610 async.Future<ProfileFilterLink> patch(ProfileFilterLink request, core.String a ccountId, core.String webPropertyId, core.String profileId, core.String linkId) { 2752 core.String accountId,
2753 core.String webPropertyId,
2754 core.String profileId,
2755 core.String linkId) {
2611 var _url = null; 2756 var _url = null;
2612 var _queryParams = new core.Map(); 2757 var _queryParams = new core.Map();
2613 var _uploadMedia = null; 2758 var _uploadMedia = null;
2614 var _uploadOptions = null; 2759 var _uploadOptions = null;
2615 var _downloadOptions = commons.DownloadOptions.Metadata; 2760 var _downloadOptions = commons.DownloadOptions.Metadata;
2616 var _body = null; 2761 var _body = null;
2617 2762
2618 if (request != null) { 2763 if (request != null) {
2619 _body = convert.JSON.encode((request).toJson()); 2764 _body = convert.JSON.encode((request).toJson());
2620 } 2765 }
2621 if (accountId == null) { 2766 if (accountId == null) {
2622 throw new core.ArgumentError("Parameter accountId is required."); 2767 throw new core.ArgumentError("Parameter accountId is required.");
2623 } 2768 }
2624 if (webPropertyId == null) { 2769 if (webPropertyId == null) {
2625 throw new core.ArgumentError("Parameter webPropertyId is required."); 2770 throw new core.ArgumentError("Parameter webPropertyId is required.");
2626 } 2771 }
2627 if (profileId == null) { 2772 if (profileId == null) {
2628 throw new core.ArgumentError("Parameter profileId is required."); 2773 throw new core.ArgumentError("Parameter profileId is required.");
2629 } 2774 }
2630 if (linkId == null) { 2775 if (linkId == null) {
2631 throw new core.ArgumentError("Parameter linkId is required."); 2776 throw new core.ArgumentError("Parameter linkId is required.");
2632 } 2777 }
2633 2778
2634 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + co mmons.Escaper.ecapeVariable('$linkId'); 2779 _url = 'management/accounts/' +
2780 commons.Escaper.ecapeVariable('$accountId') +
2781 '/webproperties/' +
2782 commons.Escaper.ecapeVariable('$webPropertyId') +
2783 '/profiles/' +
2784 commons.Escaper.ecapeVariable('$profileId') +
2785 '/profileFilterLinks/' +
2786 commons.Escaper.ecapeVariable('$linkId');
2635 2787
2636 var _response = _requester.request(_url, 2788 var _response = _requester.request(_url, "PATCH",
2637 "PATCH", 2789 body: _body,
2638 body: _body, 2790 queryParams: _queryParams,
2639 queryParams: _queryParams, 2791 uploadOptions: _uploadOptions,
2640 uploadOptions: _uploadOptions, 2792 uploadMedia: _uploadMedia,
2641 uploadMedia: _uploadMedia, 2793 downloadOptions: _downloadOptions);
2642 downloadOptions: _downloadOptions);
2643 return _response.then((data) => new ProfileFilterLink.fromJson(data)); 2794 return _response.then((data) => new ProfileFilterLink.fromJson(data));
2644 } 2795 }
2645 2796
2646 /** 2797 /// Update an existing profile filter link.
2647 * Update an existing profile filter link. 2798 ///
2648 * 2799 /// [request] - The metadata request object.
2649 * [request] - The metadata request object. 2800 ///
2650 * 2801 /// Request parameters:
2651 * Request parameters: 2802 ///
2652 * 2803 /// [accountId] - Account ID to which profile filter link belongs.
2653 * [accountId] - Account ID to which profile filter link belongs. 2804 /// Value must have pattern "\d+".
2654 * Value must have pattern "\d+". 2805 ///
2655 * 2806 /// [webPropertyId] - Web property Id to which profile filter link belongs
2656 * [webPropertyId] - Web property Id to which profile filter link belongs 2807 /// Value must have pattern "UA-(\d+)-(\d+)".
2657 * Value must have pattern "UA-(\d+)-(\d+)". 2808 ///
2658 * 2809 /// [profileId] - Profile ID to which filter link belongs
2659 * [profileId] - Profile ID to which filter link belongs 2810 /// Value must have pattern "\d+".
2660 * Value must have pattern "\d+". 2811 ///
2661 * 2812 /// [linkId] - ID of the profile filter link to be updated.
2662 * [linkId] - ID of the profile filter link to be updated. 2813 /// Value must have pattern "\d+:\d+".
2663 * Value must have pattern "\d+:\d+". 2814 ///
2664 * 2815 /// Completes with a [ProfileFilterLink].
2665 * Completes with a [ProfileFilterLink]. 2816 ///
2666 * 2817 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2667 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2818 /// an error.
2668 * error. 2819 ///
2669 * 2820 /// If the used [http.Client] completes with an error when making a REST
2670 * If the used [http.Client] completes with an error when making a REST call, 2821 /// call, this method will complete with the same error.
2671 * this method will complete with the same error. 2822 async.Future<ProfileFilterLink> update(
2672 */ 2823 ProfileFilterLink request,
2673 async.Future<ProfileFilterLink> update(ProfileFilterLink request, core.String accountId, core.String webPropertyId, core.String profileId, core.String linkId) { 2824 core.String accountId,
2825 core.String webPropertyId,
2826 core.String profileId,
2827 core.String linkId) {
2674 var _url = null; 2828 var _url = null;
2675 var _queryParams = new core.Map(); 2829 var _queryParams = new core.Map();
2676 var _uploadMedia = null; 2830 var _uploadMedia = null;
2677 var _uploadOptions = null; 2831 var _uploadOptions = null;
2678 var _downloadOptions = commons.DownloadOptions.Metadata; 2832 var _downloadOptions = commons.DownloadOptions.Metadata;
2679 var _body = null; 2833 var _body = null;
2680 2834
2681 if (request != null) { 2835 if (request != null) {
2682 _body = convert.JSON.encode((request).toJson()); 2836 _body = convert.JSON.encode((request).toJson());
2683 } 2837 }
2684 if (accountId == null) { 2838 if (accountId == null) {
2685 throw new core.ArgumentError("Parameter accountId is required."); 2839 throw new core.ArgumentError("Parameter accountId is required.");
2686 } 2840 }
2687 if (webPropertyId == null) { 2841 if (webPropertyId == null) {
2688 throw new core.ArgumentError("Parameter webPropertyId is required."); 2842 throw new core.ArgumentError("Parameter webPropertyId is required.");
2689 } 2843 }
2690 if (profileId == null) { 2844 if (profileId == null) {
2691 throw new core.ArgumentError("Parameter profileId is required."); 2845 throw new core.ArgumentError("Parameter profileId is required.");
2692 } 2846 }
2693 if (linkId == null) { 2847 if (linkId == null) {
2694 throw new core.ArgumentError("Parameter linkId is required."); 2848 throw new core.ArgumentError("Parameter linkId is required.");
2695 } 2849 }
2696 2850
2697 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/profileFilterLinks/' + co mmons.Escaper.ecapeVariable('$linkId'); 2851 _url = 'management/accounts/' +
2852 commons.Escaper.ecapeVariable('$accountId') +
2853 '/webproperties/' +
2854 commons.Escaper.ecapeVariable('$webPropertyId') +
2855 '/profiles/' +
2856 commons.Escaper.ecapeVariable('$profileId') +
2857 '/profileFilterLinks/' +
2858 commons.Escaper.ecapeVariable('$linkId');
2698 2859
2699 var _response = _requester.request(_url, 2860 var _response = _requester.request(_url, "PUT",
2700 "PUT", 2861 body: _body,
2701 body: _body, 2862 queryParams: _queryParams,
2702 queryParams: _queryParams, 2863 uploadOptions: _uploadOptions,
2703 uploadOptions: _uploadOptions, 2864 uploadMedia: _uploadMedia,
2704 uploadMedia: _uploadMedia, 2865 downloadOptions: _downloadOptions);
2705 downloadOptions: _downloadOptions);
2706 return _response.then((data) => new ProfileFilterLink.fromJson(data)); 2866 return _response.then((data) => new ProfileFilterLink.fromJson(data));
2707 } 2867 }
2708
2709 } 2868 }
2710 2869
2711
2712 class ManagementProfileUserLinksResourceApi { 2870 class ManagementProfileUserLinksResourceApi {
2713 final commons.ApiRequester _requester; 2871 final commons.ApiRequester _requester;
2714 2872
2715 ManagementProfileUserLinksResourceApi(commons.ApiRequester client) : 2873 ManagementProfileUserLinksResourceApi(commons.ApiRequester client)
2716 _requester = client; 2874 : _requester = client;
2717 2875
2718 /** 2876 /// Removes a user from the given view (profile).
2719 * Removes a user from the given view (profile). 2877 ///
2720 * 2878 /// Request parameters:
2721 * Request parameters: 2879 ///
2722 * 2880 /// [accountId] - Account ID to delete the user link for.
2723 * [accountId] - Account ID to delete the user link for. 2881 ///
2724 * 2882 /// [webPropertyId] - Web Property ID to delete the user link for.
2725 * [webPropertyId] - Web Property ID to delete the user link for. 2883 ///
2726 * 2884 /// [profileId] - View (Profile) ID to delete the user link for.
2727 * [profileId] - View (Profile) ID to delete the user link for. 2885 ///
2728 * 2886 /// [linkId] - Link ID to delete the user link for.
2729 * [linkId] - Link ID to delete the user link for. 2887 ///
2730 * 2888 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2731 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2889 /// an error.
2732 * error. 2890 ///
2733 * 2891 /// If the used [http.Client] completes with an error when making a REST
2734 * If the used [http.Client] completes with an error when making a REST call, 2892 /// call, this method will complete with the same error.
2735 * this method will complete with the same error. 2893 async.Future delete(core.String accountId, core.String webPropertyId,
2736 */ 2894 core.String profileId, core.String linkId) {
2737 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing profileId, core.String linkId) {
2738 var _url = null; 2895 var _url = null;
2739 var _queryParams = new core.Map(); 2896 var _queryParams = new core.Map();
2740 var _uploadMedia = null; 2897 var _uploadMedia = null;
2741 var _uploadOptions = null; 2898 var _uploadOptions = null;
2742 var _downloadOptions = commons.DownloadOptions.Metadata; 2899 var _downloadOptions = commons.DownloadOptions.Metadata;
2743 var _body = null; 2900 var _body = null;
2744 2901
2745 if (accountId == null) { 2902 if (accountId == null) {
2746 throw new core.ArgumentError("Parameter accountId is required."); 2903 throw new core.ArgumentError("Parameter accountId is required.");
2747 } 2904 }
2748 if (webPropertyId == null) { 2905 if (webPropertyId == null) {
2749 throw new core.ArgumentError("Parameter webPropertyId is required."); 2906 throw new core.ArgumentError("Parameter webPropertyId is required.");
2750 } 2907 }
2751 if (profileId == null) { 2908 if (profileId == null) {
2752 throw new core.ArgumentError("Parameter profileId is required."); 2909 throw new core.ArgumentError("Parameter profileId is required.");
2753 } 2910 }
2754 if (linkId == null) { 2911 if (linkId == null) {
2755 throw new core.ArgumentError("Parameter linkId is required."); 2912 throw new core.ArgumentError("Parameter linkId is required.");
2756 } 2913 }
2757 2914
2758 _downloadOptions = null; 2915 _downloadOptions = null;
2759 2916
2760 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks/' + commo ns.Escaper.ecapeVariable('$linkId'); 2917 _url = 'management/accounts/' +
2918 commons.Escaper.ecapeVariable('$accountId') +
2919 '/webproperties/' +
2920 commons.Escaper.ecapeVariable('$webPropertyId') +
2921 '/profiles/' +
2922 commons.Escaper.ecapeVariable('$profileId') +
2923 '/entityUserLinks/' +
2924 commons.Escaper.ecapeVariable('$linkId');
2761 2925
2762 var _response = _requester.request(_url, 2926 var _response = _requester.request(_url, "DELETE",
2763 "DELETE", 2927 body: _body,
2764 body: _body, 2928 queryParams: _queryParams,
2765 queryParams: _queryParams, 2929 uploadOptions: _uploadOptions,
2766 uploadOptions: _uploadOptions, 2930 uploadMedia: _uploadMedia,
2767 uploadMedia: _uploadMedia, 2931 downloadOptions: _downloadOptions);
2768 downloadOptions: _downloadOptions);
2769 return _response.then((data) => null); 2932 return _response.then((data) => null);
2770 } 2933 }
2771 2934
2772 /** 2935 /// Adds a new user to the given view (profile).
2773 * Adds a new user to the given view (profile). 2936 ///
2774 * 2937 /// [request] - The metadata request object.
2775 * [request] - The metadata request object. 2938 ///
2776 * 2939 /// Request parameters:
2777 * Request parameters: 2940 ///
2778 * 2941 /// [accountId] - Account ID to create the user link for.
2779 * [accountId] - Account ID to create the user link for. 2942 ///
2780 * 2943 /// [webPropertyId] - Web Property ID to create the user link for.
2781 * [webPropertyId] - Web Property ID to create the user link for. 2944 ///
2782 * 2945 /// [profileId] - View (Profile) ID to create the user link for.
2783 * [profileId] - View (Profile) ID to create the user link for. 2946 ///
2784 * 2947 /// Completes with a [EntityUserLink].
2785 * Completes with a [EntityUserLink]. 2948 ///
2786 * 2949 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2787 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2950 /// an error.
2788 * error. 2951 ///
2789 * 2952 /// If the used [http.Client] completes with an error when making a REST
2790 * If the used [http.Client] completes with an error when making a REST call, 2953 /// call, this method will complete with the same error.
2791 * this method will complete with the same error. 2954 async.Future<EntityUserLink> insert(EntityUserLink request,
2792 */ 2955 core.String accountId, core.String webPropertyId, core.String profileId) {
2793 async.Future<EntityUserLink> insert(EntityUserLink request, core.String accoun tId, core.String webPropertyId, core.String profileId) {
2794 var _url = null; 2956 var _url = null;
2795 var _queryParams = new core.Map(); 2957 var _queryParams = new core.Map();
2796 var _uploadMedia = null; 2958 var _uploadMedia = null;
2797 var _uploadOptions = null; 2959 var _uploadOptions = null;
2798 var _downloadOptions = commons.DownloadOptions.Metadata; 2960 var _downloadOptions = commons.DownloadOptions.Metadata;
2799 var _body = null; 2961 var _body = null;
2800 2962
2801 if (request != null) { 2963 if (request != null) {
2802 _body = convert.JSON.encode((request).toJson()); 2964 _body = convert.JSON.encode((request).toJson());
2803 } 2965 }
2804 if (accountId == null) { 2966 if (accountId == null) {
2805 throw new core.ArgumentError("Parameter accountId is required."); 2967 throw new core.ArgumentError("Parameter accountId is required.");
2806 } 2968 }
2807 if (webPropertyId == null) { 2969 if (webPropertyId == null) {
2808 throw new core.ArgumentError("Parameter webPropertyId is required."); 2970 throw new core.ArgumentError("Parameter webPropertyId is required.");
2809 } 2971 }
2810 if (profileId == null) { 2972 if (profileId == null) {
2811 throw new core.ArgumentError("Parameter profileId is required."); 2973 throw new core.ArgumentError("Parameter profileId is required.");
2812 } 2974 }
2813 2975
2814 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks'; 2976 _url = 'management/accounts/' +
2977 commons.Escaper.ecapeVariable('$accountId') +
2978 '/webproperties/' +
2979 commons.Escaper.ecapeVariable('$webPropertyId') +
2980 '/profiles/' +
2981 commons.Escaper.ecapeVariable('$profileId') +
2982 '/entityUserLinks';
2815 2983
2816 var _response = _requester.request(_url, 2984 var _response = _requester.request(_url, "POST",
2817 "POST", 2985 body: _body,
2818 body: _body, 2986 queryParams: _queryParams,
2819 queryParams: _queryParams, 2987 uploadOptions: _uploadOptions,
2820 uploadOptions: _uploadOptions, 2988 uploadMedia: _uploadMedia,
2821 uploadMedia: _uploadMedia, 2989 downloadOptions: _downloadOptions);
2822 downloadOptions: _downloadOptions);
2823 return _response.then((data) => new EntityUserLink.fromJson(data)); 2990 return _response.then((data) => new EntityUserLink.fromJson(data));
2824 } 2991 }
2825 2992
2826 /** 2993 /// Lists profile-user links for a given view (profile).
2827 * Lists profile-user links for a given view (profile). 2994 ///
2828 * 2995 /// Request parameters:
2829 * Request parameters: 2996 ///
2830 * 2997 /// [accountId] - Account ID which the given view (profile) belongs to.
2831 * [accountId] - Account ID which the given view (profile) belongs to. 2998 ///
2832 * 2999 /// [webPropertyId] - Web Property ID which the given view (profile) belongs
2833 * [webPropertyId] - Web Property ID which the given view (profile) belongs 3000 /// to. Can either be a specific web property ID or '~all', which refers to
2834 * to. Can either be a specific web property ID or '~all', which refers to all 3001 /// all the web properties that user has access to.
2835 * the web properties that user has access to. 3002 ///
2836 * 3003 /// [profileId] - View (Profile) ID to retrieve the profile-user links for.
2837 * [profileId] - View (Profile) ID to retrieve the profile-user links for. Can 3004 /// Can either be a specific profile ID or '~all', which refers to all the
2838 * either be a specific profile ID or '~all', which refers to all the profiles 3005 /// profiles that user has access to.
2839 * that user has access to. 3006 ///
2840 * 3007 /// [max_results] - The maximum number of profile-user links to include in
2841 * [max_results] - The maximum number of profile-user links to include in this 3008 /// this response.
2842 * response. 3009 ///
2843 * 3010 /// [start_index] - An index of the first profile-user link to retrieve. Use
2844 * [start_index] - An index of the first profile-user link to retrieve. Use 3011 /// this parameter as a pagination mechanism along with the max-results
2845 * this parameter as a pagination mechanism along with the max-results 3012 /// parameter.
2846 * parameter. 3013 ///
2847 * 3014 /// Completes with a [EntityUserLinks].
2848 * Completes with a [EntityUserLinks]. 3015 ///
2849 * 3016 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2850 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3017 /// an error.
2851 * error. 3018 ///
2852 * 3019 /// If the used [http.Client] completes with an error when making a REST
2853 * If the used [http.Client] completes with an error when making a REST call, 3020 /// call, this method will complete with the same error.
2854 * this method will complete with the same error. 3021 async.Future<EntityUserLinks> list(
2855 */ 3022 core.String accountId, core.String webPropertyId, core.String profileId,
2856 async.Future<EntityUserLinks> list(core.String accountId, core.String webPrope rtyId, core.String profileId, {core.int max_results, core.int start_index}) { 3023 {core.int max_results, core.int start_index}) {
2857 var _url = null; 3024 var _url = null;
2858 var _queryParams = new core.Map(); 3025 var _queryParams = new core.Map();
2859 var _uploadMedia = null; 3026 var _uploadMedia = null;
2860 var _uploadOptions = null; 3027 var _uploadOptions = null;
2861 var _downloadOptions = commons.DownloadOptions.Metadata; 3028 var _downloadOptions = commons.DownloadOptions.Metadata;
2862 var _body = null; 3029 var _body = null;
2863 3030
2864 if (accountId == null) { 3031 if (accountId == null) {
2865 throw new core.ArgumentError("Parameter accountId is required."); 3032 throw new core.ArgumentError("Parameter accountId is required.");
2866 } 3033 }
2867 if (webPropertyId == null) { 3034 if (webPropertyId == null) {
2868 throw new core.ArgumentError("Parameter webPropertyId is required."); 3035 throw new core.ArgumentError("Parameter webPropertyId is required.");
2869 } 3036 }
2870 if (profileId == null) { 3037 if (profileId == null) {
2871 throw new core.ArgumentError("Parameter profileId is required."); 3038 throw new core.ArgumentError("Parameter profileId is required.");
2872 } 3039 }
2873 if (max_results != null) { 3040 if (max_results != null) {
2874 _queryParams["max-results"] = ["${max_results}"]; 3041 _queryParams["max-results"] = ["${max_results}"];
2875 } 3042 }
2876 if (start_index != null) { 3043 if (start_index != null) {
2877 _queryParams["start-index"] = ["${start_index}"]; 3044 _queryParams["start-index"] = ["${start_index}"];
2878 } 3045 }
2879 3046
2880 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks'; 3047 _url = 'management/accounts/' +
3048 commons.Escaper.ecapeVariable('$accountId') +
3049 '/webproperties/' +
3050 commons.Escaper.ecapeVariable('$webPropertyId') +
3051 '/profiles/' +
3052 commons.Escaper.ecapeVariable('$profileId') +
3053 '/entityUserLinks';
2881 3054
2882 var _response = _requester.request(_url, 3055 var _response = _requester.request(_url, "GET",
2883 "GET", 3056 body: _body,
2884 body: _body, 3057 queryParams: _queryParams,
2885 queryParams: _queryParams, 3058 uploadOptions: _uploadOptions,
2886 uploadOptions: _uploadOptions, 3059 uploadMedia: _uploadMedia,
2887 uploadMedia: _uploadMedia, 3060 downloadOptions: _downloadOptions);
2888 downloadOptions: _downloadOptions);
2889 return _response.then((data) => new EntityUserLinks.fromJson(data)); 3061 return _response.then((data) => new EntityUserLinks.fromJson(data));
2890 } 3062 }
2891 3063
2892 /** 3064 /// Updates permissions for an existing user on the given view (profile).
2893 * Updates permissions for an existing user on the given view (profile). 3065 ///
2894 * 3066 /// [request] - The metadata request object.
2895 * [request] - The metadata request object. 3067 ///
2896 * 3068 /// Request parameters:
2897 * Request parameters: 3069 ///
2898 * 3070 /// [accountId] - Account ID to update the user link for.
2899 * [accountId] - Account ID to update the user link for. 3071 ///
2900 * 3072 /// [webPropertyId] - Web Property ID to update the user link for.
2901 * [webPropertyId] - Web Property ID to update the user link for. 3073 ///
2902 * 3074 /// [profileId] - View (Profile ID) to update the user link for.
2903 * [profileId] - View (Profile ID) to update the user link for. 3075 ///
2904 * 3076 /// [linkId] - Link ID to update the user link for.
2905 * [linkId] - Link ID to update the user link for. 3077 ///
2906 * 3078 /// Completes with a [EntityUserLink].
2907 * Completes with a [EntityUserLink]. 3079 ///
2908 * 3080 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2909 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3081 /// an error.
2910 * error. 3082 ///
2911 * 3083 /// If the used [http.Client] completes with an error when making a REST
2912 * If the used [http.Client] completes with an error when making a REST call, 3084 /// call, this method will complete with the same error.
2913 * this method will complete with the same error. 3085 async.Future<EntityUserLink> update(
2914 */ 3086 EntityUserLink request,
2915 async.Future<EntityUserLink> update(EntityUserLink request, core.String accoun tId, core.String webPropertyId, core.String profileId, core.String linkId) { 3087 core.String accountId,
3088 core.String webPropertyId,
3089 core.String profileId,
3090 core.String linkId) {
2916 var _url = null; 3091 var _url = null;
2917 var _queryParams = new core.Map(); 3092 var _queryParams = new core.Map();
2918 var _uploadMedia = null; 3093 var _uploadMedia = null;
2919 var _uploadOptions = null; 3094 var _uploadOptions = null;
2920 var _downloadOptions = commons.DownloadOptions.Metadata; 3095 var _downloadOptions = commons.DownloadOptions.Metadata;
2921 var _body = null; 3096 var _body = null;
2922 3097
2923 if (request != null) { 3098 if (request != null) {
2924 _body = convert.JSON.encode((request).toJson()); 3099 _body = convert.JSON.encode((request).toJson());
2925 } 3100 }
2926 if (accountId == null) { 3101 if (accountId == null) {
2927 throw new core.ArgumentError("Parameter accountId is required."); 3102 throw new core.ArgumentError("Parameter accountId is required.");
2928 } 3103 }
2929 if (webPropertyId == null) { 3104 if (webPropertyId == null) {
2930 throw new core.ArgumentError("Parameter webPropertyId is required."); 3105 throw new core.ArgumentError("Parameter webPropertyId is required.");
2931 } 3106 }
2932 if (profileId == null) { 3107 if (profileId == null) {
2933 throw new core.ArgumentError("Parameter profileId is required."); 3108 throw new core.ArgumentError("Parameter profileId is required.");
2934 } 3109 }
2935 if (linkId == null) { 3110 if (linkId == null) {
2936 throw new core.ArgumentError("Parameter linkId is required."); 3111 throw new core.ArgumentError("Parameter linkId is required.");
2937 } 3112 }
2938 3113
2939 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/entityUserLinks/' + commo ns.Escaper.ecapeVariable('$linkId'); 3114 _url = 'management/accounts/' +
3115 commons.Escaper.ecapeVariable('$accountId') +
3116 '/webproperties/' +
3117 commons.Escaper.ecapeVariable('$webPropertyId') +
3118 '/profiles/' +
3119 commons.Escaper.ecapeVariable('$profileId') +
3120 '/entityUserLinks/' +
3121 commons.Escaper.ecapeVariable('$linkId');
2940 3122
2941 var _response = _requester.request(_url, 3123 var _response = _requester.request(_url, "PUT",
2942 "PUT", 3124 body: _body,
2943 body: _body, 3125 queryParams: _queryParams,
2944 queryParams: _queryParams, 3126 uploadOptions: _uploadOptions,
2945 uploadOptions: _uploadOptions, 3127 uploadMedia: _uploadMedia,
2946 uploadMedia: _uploadMedia, 3128 downloadOptions: _downloadOptions);
2947 downloadOptions: _downloadOptions);
2948 return _response.then((data) => new EntityUserLink.fromJson(data)); 3129 return _response.then((data) => new EntityUserLink.fromJson(data));
2949 } 3130 }
2950
2951 } 3131 }
2952 3132
2953
2954 class ManagementProfilesResourceApi { 3133 class ManagementProfilesResourceApi {
2955 final commons.ApiRequester _requester; 3134 final commons.ApiRequester _requester;
2956 3135
2957 ManagementProfilesResourceApi(commons.ApiRequester client) : 3136 ManagementProfilesResourceApi(commons.ApiRequester client)
2958 _requester = client; 3137 : _requester = client;
2959 3138
2960 /** 3139 /// Deletes a view (profile).
2961 * Deletes a view (profile). 3140 ///
2962 * 3141 /// Request parameters:
2963 * Request parameters: 3142 ///
2964 * 3143 /// [accountId] - Account ID to delete the view (profile) for.
2965 * [accountId] - Account ID to delete the view (profile) for. 3144 ///
2966 * 3145 /// [webPropertyId] - Web property ID to delete the view (profile) for.
2967 * [webPropertyId] - Web property ID to delete the view (profile) for. 3146 ///
2968 * 3147 /// [profileId] - ID of the view (profile) to be deleted.
2969 * [profileId] - ID of the view (profile) to be deleted. 3148 ///
2970 * 3149 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2971 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3150 /// an error.
2972 * error. 3151 ///
2973 * 3152 /// If the used [http.Client] completes with an error when making a REST
2974 * If the used [http.Client] completes with an error when making a REST call, 3153 /// call, this method will complete with the same error.
2975 * this method will complete with the same error. 3154 async.Future delete(
2976 */ 3155 core.String accountId, core.String webPropertyId, core.String profileId) {
2977 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing profileId) {
2978 var _url = null; 3156 var _url = null;
2979 var _queryParams = new core.Map(); 3157 var _queryParams = new core.Map();
2980 var _uploadMedia = null; 3158 var _uploadMedia = null;
2981 var _uploadOptions = null; 3159 var _uploadOptions = null;
2982 var _downloadOptions = commons.DownloadOptions.Metadata; 3160 var _downloadOptions = commons.DownloadOptions.Metadata;
2983 var _body = null; 3161 var _body = null;
2984 3162
2985 if (accountId == null) { 3163 if (accountId == null) {
2986 throw new core.ArgumentError("Parameter accountId is required."); 3164 throw new core.ArgumentError("Parameter accountId is required.");
2987 } 3165 }
2988 if (webPropertyId == null) { 3166 if (webPropertyId == null) {
2989 throw new core.ArgumentError("Parameter webPropertyId is required."); 3167 throw new core.ArgumentError("Parameter webPropertyId is required.");
2990 } 3168 }
2991 if (profileId == null) { 3169 if (profileId == null) {
2992 throw new core.ArgumentError("Parameter profileId is required."); 3170 throw new core.ArgumentError("Parameter profileId is required.");
2993 } 3171 }
2994 3172
2995 _downloadOptions = null; 3173 _downloadOptions = null;
2996 3174
2997 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId'); 3175 _url = 'management/accounts/' +
3176 commons.Escaper.ecapeVariable('$accountId') +
3177 '/webproperties/' +
3178 commons.Escaper.ecapeVariable('$webPropertyId') +
3179 '/profiles/' +
3180 commons.Escaper.ecapeVariable('$profileId');
2998 3181
2999 var _response = _requester.request(_url, 3182 var _response = _requester.request(_url, "DELETE",
3000 "DELETE", 3183 body: _body,
3001 body: _body, 3184 queryParams: _queryParams,
3002 queryParams: _queryParams, 3185 uploadOptions: _uploadOptions,
3003 uploadOptions: _uploadOptions, 3186 uploadMedia: _uploadMedia,
3004 uploadMedia: _uploadMedia, 3187 downloadOptions: _downloadOptions);
3005 downloadOptions: _downloadOptions);
3006 return _response.then((data) => null); 3188 return _response.then((data) => null);
3007 } 3189 }
3008 3190
3009 /** 3191 /// Gets a view (profile) to which the user has access.
3010 * Gets a view (profile) to which the user has access. 3192 ///
3011 * 3193 /// Request parameters:
3012 * Request parameters: 3194 ///
3013 * 3195 /// [accountId] - Account ID to retrieve the view (profile) for.
3014 * [accountId] - Account ID to retrieve the view (profile) for. 3196 /// Value must have pattern "[0-9]+".
3015 * Value must have pattern "[0-9]+". 3197 ///
3016 * 3198 /// [webPropertyId] - Web property ID to retrieve the view (profile) for.
3017 * [webPropertyId] - Web property ID to retrieve the view (profile) for. 3199 /// Value must have pattern "UA-[0-9]+-[0-9]+".
3018 * Value must have pattern "UA-[0-9]+-[0-9]+". 3200 ///
3019 * 3201 /// [profileId] - View (Profile) ID to retrieve the view (profile) for.
3020 * [profileId] - View (Profile) ID to retrieve the view (profile) for. 3202 /// Value must have pattern "[0-9]+".
3021 * Value must have pattern "[0-9]+". 3203 ///
3022 * 3204 /// Completes with a [Profile].
3023 * Completes with a [Profile]. 3205 ///
3024 * 3206 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3025 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3207 /// an error.
3026 * error. 3208 ///
3027 * 3209 /// If the used [http.Client] completes with an error when making a REST
3028 * If the used [http.Client] completes with an error when making a REST call, 3210 /// call, this method will complete with the same error.
3029 * this method will complete with the same error. 3211 async.Future<Profile> get(
3030 */ 3212 core.String accountId, core.String webPropertyId, core.String profileId) {
3031 async.Future<Profile> get(core.String accountId, core.String webPropertyId, co re.String profileId) {
3032 var _url = null; 3213 var _url = null;
3033 var _queryParams = new core.Map(); 3214 var _queryParams = new core.Map();
3034 var _uploadMedia = null; 3215 var _uploadMedia = null;
3035 var _uploadOptions = null; 3216 var _uploadOptions = null;
3036 var _downloadOptions = commons.DownloadOptions.Metadata; 3217 var _downloadOptions = commons.DownloadOptions.Metadata;
3037 var _body = null; 3218 var _body = null;
3038 3219
3039 if (accountId == null) { 3220 if (accountId == null) {
3040 throw new core.ArgumentError("Parameter accountId is required."); 3221 throw new core.ArgumentError("Parameter accountId is required.");
3041 } 3222 }
3042 if (webPropertyId == null) { 3223 if (webPropertyId == null) {
3043 throw new core.ArgumentError("Parameter webPropertyId is required."); 3224 throw new core.ArgumentError("Parameter webPropertyId is required.");
3044 } 3225 }
3045 if (profileId == null) { 3226 if (profileId == null) {
3046 throw new core.ArgumentError("Parameter profileId is required."); 3227 throw new core.ArgumentError("Parameter profileId is required.");
3047 } 3228 }
3048 3229
3049 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId'); 3230 _url = 'management/accounts/' +
3231 commons.Escaper.ecapeVariable('$accountId') +
3232 '/webproperties/' +
3233 commons.Escaper.ecapeVariable('$webPropertyId') +
3234 '/profiles/' +
3235 commons.Escaper.ecapeVariable('$profileId');
3050 3236
3051 var _response = _requester.request(_url, 3237 var _response = _requester.request(_url, "GET",
3052 "GET", 3238 body: _body,
3053 body: _body, 3239 queryParams: _queryParams,
3054 queryParams: _queryParams, 3240 uploadOptions: _uploadOptions,
3055 uploadOptions: _uploadOptions, 3241 uploadMedia: _uploadMedia,
3056 uploadMedia: _uploadMedia, 3242 downloadOptions: _downloadOptions);
3057 downloadOptions: _downloadOptions);
3058 return _response.then((data) => new Profile.fromJson(data)); 3243 return _response.then((data) => new Profile.fromJson(data));
3059 } 3244 }
3060 3245
3061 /** 3246 /// Create a new view (profile).
3062 * Create a new view (profile). 3247 ///
3063 * 3248 /// [request] - The metadata request object.
3064 * [request] - The metadata request object. 3249 ///
3065 * 3250 /// Request parameters:
3066 * Request parameters: 3251 ///
3067 * 3252 /// [accountId] - Account ID to create the view (profile) for.
3068 * [accountId] - Account ID to create the view (profile) for. 3253 ///
3069 * 3254 /// [webPropertyId] - Web property ID to create the view (profile) for.
3070 * [webPropertyId] - Web property ID to create the view (profile) for. 3255 ///
3071 * 3256 /// Completes with a [Profile].
3072 * Completes with a [Profile]. 3257 ///
3073 * 3258 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3074 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3259 /// an error.
3075 * error. 3260 ///
3076 * 3261 /// If the used [http.Client] completes with an error when making a REST
3077 * If the used [http.Client] completes with an error when making a REST call, 3262 /// call, this method will complete with the same error.
3078 * this method will complete with the same error. 3263 async.Future<Profile> insert(
3079 */ 3264 Profile request, core.String accountId, core.String webPropertyId) {
3080 async.Future<Profile> insert(Profile request, core.String accountId, core.Stri ng webPropertyId) {
3081 var _url = null; 3265 var _url = null;
3082 var _queryParams = new core.Map(); 3266 var _queryParams = new core.Map();
3083 var _uploadMedia = null; 3267 var _uploadMedia = null;
3084 var _uploadOptions = null; 3268 var _uploadOptions = null;
3085 var _downloadOptions = commons.DownloadOptions.Metadata; 3269 var _downloadOptions = commons.DownloadOptions.Metadata;
3086 var _body = null; 3270 var _body = null;
3087 3271
3088 if (request != null) { 3272 if (request != null) {
3089 _body = convert.JSON.encode((request).toJson()); 3273 _body = convert.JSON.encode((request).toJson());
3090 } 3274 }
3091 if (accountId == null) { 3275 if (accountId == null) {
3092 throw new core.ArgumentError("Parameter accountId is required."); 3276 throw new core.ArgumentError("Parameter accountId is required.");
3093 } 3277 }
3094 if (webPropertyId == null) { 3278 if (webPropertyId == null) {
3095 throw new core.ArgumentError("Parameter webPropertyId is required."); 3279 throw new core.ArgumentError("Parameter webPropertyId is required.");
3096 } 3280 }
3097 3281
3098 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es'; 3282 _url = 'management/accounts/' +
3283 commons.Escaper.ecapeVariable('$accountId') +
3284 '/webproperties/' +
3285 commons.Escaper.ecapeVariable('$webPropertyId') +
3286 '/profiles';
3099 3287
3100 var _response = _requester.request(_url, 3288 var _response = _requester.request(_url, "POST",
3101 "POST", 3289 body: _body,
3102 body: _body, 3290 queryParams: _queryParams,
3103 queryParams: _queryParams, 3291 uploadOptions: _uploadOptions,
3104 uploadOptions: _uploadOptions, 3292 uploadMedia: _uploadMedia,
3105 uploadMedia: _uploadMedia, 3293 downloadOptions: _downloadOptions);
3106 downloadOptions: _downloadOptions);
3107 return _response.then((data) => new Profile.fromJson(data)); 3294 return _response.then((data) => new Profile.fromJson(data));
3108 } 3295 }
3109 3296
3110 /** 3297 /// Lists views (profiles) to which the user has access.
3111 * Lists views (profiles) to which the user has access. 3298 ///
3112 * 3299 /// Request parameters:
3113 * Request parameters: 3300 ///
3114 * 3301 /// [accountId] - Account ID for the view (profiles) to retrieve. Can either
3115 * [accountId] - Account ID for the view (profiles) to retrieve. Can either be 3302 /// be a specific account ID or '~all', which refers to all the accounts to
3116 * a specific account ID or '~all', which refers to all the accounts to which 3303 /// which the user has access.
3117 * the user has access. 3304 ///
3118 * 3305 /// [webPropertyId] - Web property ID for the views (profiles) to retrieve.
3119 * [webPropertyId] - Web property ID for the views (profiles) to retrieve. Can 3306 /// Can either be a specific web property ID or '~all', which refers to all
3120 * either be a specific web property ID or '~all', which refers to all the web 3307 /// the web properties to which the user has access.
3121 * properties to which the user has access. 3308 ///
3122 * 3309 /// [max_results] - The maximum number of views (profiles) to include in this
3123 * [max_results] - The maximum number of views (profiles) to include in this 3310 /// response.
3124 * response. 3311 ///
3125 * 3312 /// [start_index] - An index of the first entity to retrieve. Use this
3126 * [start_index] - An index of the first entity to retrieve. Use this 3313 /// parameter as a pagination mechanism along with the max-results parameter.
3127 * parameter as a pagination mechanism along with the max-results parameter. 3314 ///
3128 * 3315 /// Completes with a [Profiles].
3129 * Completes with a [Profiles]. 3316 ///
3130 * 3317 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3318 /// an error.
3132 * error. 3319 ///
3133 * 3320 /// If the used [http.Client] completes with an error when making a REST
3134 * If the used [http.Client] completes with an error when making a REST call, 3321 /// call, this method will complete with the same error.
3135 * this method will complete with the same error. 3322 async.Future<Profiles> list(core.String accountId, core.String webPropertyId,
3136 */ 3323 {core.int max_results, core.int start_index}) {
3137 async.Future<Profiles> list(core.String accountId, core.String webPropertyId, {core.int max_results, core.int start_index}) {
3138 var _url = null; 3324 var _url = null;
3139 var _queryParams = new core.Map(); 3325 var _queryParams = new core.Map();
3140 var _uploadMedia = null; 3326 var _uploadMedia = null;
3141 var _uploadOptions = null; 3327 var _uploadOptions = null;
3142 var _downloadOptions = commons.DownloadOptions.Metadata; 3328 var _downloadOptions = commons.DownloadOptions.Metadata;
3143 var _body = null; 3329 var _body = null;
3144 3330
3145 if (accountId == null) { 3331 if (accountId == null) {
3146 throw new core.ArgumentError("Parameter accountId is required."); 3332 throw new core.ArgumentError("Parameter accountId is required.");
3147 } 3333 }
3148 if (webPropertyId == null) { 3334 if (webPropertyId == null) {
3149 throw new core.ArgumentError("Parameter webPropertyId is required."); 3335 throw new core.ArgumentError("Parameter webPropertyId is required.");
3150 } 3336 }
3151 if (max_results != null) { 3337 if (max_results != null) {
3152 _queryParams["max-results"] = ["${max_results}"]; 3338 _queryParams["max-results"] = ["${max_results}"];
3153 } 3339 }
3154 if (start_index != null) { 3340 if (start_index != null) {
3155 _queryParams["start-index"] = ["${start_index}"]; 3341 _queryParams["start-index"] = ["${start_index}"];
3156 } 3342 }
3157 3343
3158 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es'; 3344 _url = 'management/accounts/' +
3345 commons.Escaper.ecapeVariable('$accountId') +
3346 '/webproperties/' +
3347 commons.Escaper.ecapeVariable('$webPropertyId') +
3348 '/profiles';
3159 3349
3160 var _response = _requester.request(_url, 3350 var _response = _requester.request(_url, "GET",
3161 "GET", 3351 body: _body,
3162 body: _body, 3352 queryParams: _queryParams,
3163 queryParams: _queryParams, 3353 uploadOptions: _uploadOptions,
3164 uploadOptions: _uploadOptions, 3354 uploadMedia: _uploadMedia,
3165 uploadMedia: _uploadMedia, 3355 downloadOptions: _downloadOptions);
3166 downloadOptions: _downloadOptions);
3167 return _response.then((data) => new Profiles.fromJson(data)); 3356 return _response.then((data) => new Profiles.fromJson(data));
3168 } 3357 }
3169 3358
3170 /** 3359 /// Updates an existing view (profile). This method supports patch semantics.
3171 * Updates an existing view (profile). This method supports patch semantics. 3360 ///
3172 * 3361 /// [request] - The metadata request object.
3173 * [request] - The metadata request object. 3362 ///
3174 * 3363 /// Request parameters:
3175 * Request parameters: 3364 ///
3176 * 3365 /// [accountId] - Account ID to which the view (profile) belongs
3177 * [accountId] - Account ID to which the view (profile) belongs 3366 ///
3178 * 3367 /// [webPropertyId] - Web property ID to which the view (profile) belongs
3179 * [webPropertyId] - Web property ID to which the view (profile) belongs 3368 ///
3180 * 3369 /// [profileId] - ID of the view (profile) to be updated.
3181 * [profileId] - ID of the view (profile) to be updated. 3370 ///
3182 * 3371 /// Completes with a [Profile].
3183 * Completes with a [Profile]. 3372 ///
3184 * 3373 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3374 /// an error.
3186 * error. 3375 ///
3187 * 3376 /// If the used [http.Client] completes with an error when making a REST
3188 * If the used [http.Client] completes with an error when making a REST call, 3377 /// call, this method will complete with the same error.
3189 * this method will complete with the same error. 3378 async.Future<Profile> patch(Profile request, core.String accountId,
3190 */ 3379 core.String webPropertyId, core.String profileId) {
3191 async.Future<Profile> patch(Profile request, core.String accountId, core.Strin g webPropertyId, core.String profileId) {
3192 var _url = null; 3380 var _url = null;
3193 var _queryParams = new core.Map(); 3381 var _queryParams = new core.Map();
3194 var _uploadMedia = null; 3382 var _uploadMedia = null;
3195 var _uploadOptions = null; 3383 var _uploadOptions = null;
3196 var _downloadOptions = commons.DownloadOptions.Metadata; 3384 var _downloadOptions = commons.DownloadOptions.Metadata;
3197 var _body = null; 3385 var _body = null;
3198 3386
3199 if (request != null) { 3387 if (request != null) {
3200 _body = convert.JSON.encode((request).toJson()); 3388 _body = convert.JSON.encode((request).toJson());
3201 } 3389 }
3202 if (accountId == null) { 3390 if (accountId == null) {
3203 throw new core.ArgumentError("Parameter accountId is required."); 3391 throw new core.ArgumentError("Parameter accountId is required.");
3204 } 3392 }
3205 if (webPropertyId == null) { 3393 if (webPropertyId == null) {
3206 throw new core.ArgumentError("Parameter webPropertyId is required."); 3394 throw new core.ArgumentError("Parameter webPropertyId is required.");
3207 } 3395 }
3208 if (profileId == null) { 3396 if (profileId == null) {
3209 throw new core.ArgumentError("Parameter profileId is required."); 3397 throw new core.ArgumentError("Parameter profileId is required.");
3210 } 3398 }
3211 3399
3212 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId'); 3400 _url = 'management/accounts/' +
3401 commons.Escaper.ecapeVariable('$accountId') +
3402 '/webproperties/' +
3403 commons.Escaper.ecapeVariable('$webPropertyId') +
3404 '/profiles/' +
3405 commons.Escaper.ecapeVariable('$profileId');
3213 3406
3214 var _response = _requester.request(_url, 3407 var _response = _requester.request(_url, "PATCH",
3215 "PATCH", 3408 body: _body,
3216 body: _body, 3409 queryParams: _queryParams,
3217 queryParams: _queryParams, 3410 uploadOptions: _uploadOptions,
3218 uploadOptions: _uploadOptions, 3411 uploadMedia: _uploadMedia,
3219 uploadMedia: _uploadMedia, 3412 downloadOptions: _downloadOptions);
3220 downloadOptions: _downloadOptions);
3221 return _response.then((data) => new Profile.fromJson(data)); 3413 return _response.then((data) => new Profile.fromJson(data));
3222 } 3414 }
3223 3415
3224 /** 3416 /// Updates an existing view (profile).
3225 * Updates an existing view (profile). 3417 ///
3226 * 3418 /// [request] - The metadata request object.
3227 * [request] - The metadata request object. 3419 ///
3228 * 3420 /// Request parameters:
3229 * Request parameters: 3421 ///
3230 * 3422 /// [accountId] - Account ID to which the view (profile) belongs
3231 * [accountId] - Account ID to which the view (profile) belongs 3423 ///
3232 * 3424 /// [webPropertyId] - Web property ID to which the view (profile) belongs
3233 * [webPropertyId] - Web property ID to which the view (profile) belongs 3425 ///
3234 * 3426 /// [profileId] - ID of the view (profile) to be updated.
3235 * [profileId] - ID of the view (profile) to be updated. 3427 ///
3236 * 3428 /// Completes with a [Profile].
3237 * Completes with a [Profile]. 3429 ///
3238 * 3430 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3431 /// an error.
3240 * error. 3432 ///
3241 * 3433 /// If the used [http.Client] completes with an error when making a REST
3242 * If the used [http.Client] completes with an error when making a REST call, 3434 /// call, this method will complete with the same error.
3243 * this method will complete with the same error. 3435 async.Future<Profile> update(Profile request, core.String accountId,
3244 */ 3436 core.String webPropertyId, core.String profileId) {
3245 async.Future<Profile> update(Profile request, core.String accountId, core.Stri ng webPropertyId, core.String profileId) {
3246 var _url = null; 3437 var _url = null;
3247 var _queryParams = new core.Map(); 3438 var _queryParams = new core.Map();
3248 var _uploadMedia = null; 3439 var _uploadMedia = null;
3249 var _uploadOptions = null; 3440 var _uploadOptions = null;
3250 var _downloadOptions = commons.DownloadOptions.Metadata; 3441 var _downloadOptions = commons.DownloadOptions.Metadata;
3251 var _body = null; 3442 var _body = null;
3252 3443
3253 if (request != null) { 3444 if (request != null) {
3254 _body = convert.JSON.encode((request).toJson()); 3445 _body = convert.JSON.encode((request).toJson());
3255 } 3446 }
3256 if (accountId == null) { 3447 if (accountId == null) {
3257 throw new core.ArgumentError("Parameter accountId is required."); 3448 throw new core.ArgumentError("Parameter accountId is required.");
3258 } 3449 }
3259 if (webPropertyId == null) { 3450 if (webPropertyId == null) {
3260 throw new core.ArgumentError("Parameter webPropertyId is required."); 3451 throw new core.ArgumentError("Parameter webPropertyId is required.");
3261 } 3452 }
3262 if (profileId == null) { 3453 if (profileId == null) {
3263 throw new core.ArgumentError("Parameter profileId is required."); 3454 throw new core.ArgumentError("Parameter profileId is required.");
3264 } 3455 }
3265 3456
3266 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId'); 3457 _url = 'management/accounts/' +
3458 commons.Escaper.ecapeVariable('$accountId') +
3459 '/webproperties/' +
3460 commons.Escaper.ecapeVariable('$webPropertyId') +
3461 '/profiles/' +
3462 commons.Escaper.ecapeVariable('$profileId');
3267 3463
3268 var _response = _requester.request(_url, 3464 var _response = _requester.request(_url, "PUT",
3269 "PUT", 3465 body: _body,
3270 body: _body, 3466 queryParams: _queryParams,
3271 queryParams: _queryParams, 3467 uploadOptions: _uploadOptions,
3272 uploadOptions: _uploadOptions, 3468 uploadMedia: _uploadMedia,
3273 uploadMedia: _uploadMedia, 3469 downloadOptions: _downloadOptions);
3274 downloadOptions: _downloadOptions);
3275 return _response.then((data) => new Profile.fromJson(data)); 3470 return _response.then((data) => new Profile.fromJson(data));
3276 } 3471 }
3277
3278 } 3472 }
3279 3473
3280
3281 class ManagementRemarketingAudienceResourceApi { 3474 class ManagementRemarketingAudienceResourceApi {
3282 final commons.ApiRequester _requester; 3475 final commons.ApiRequester _requester;
3283 3476
3284 ManagementRemarketingAudienceResourceApi(commons.ApiRequester client) : 3477 ManagementRemarketingAudienceResourceApi(commons.ApiRequester client)
3285 _requester = client; 3478 : _requester = client;
3286 3479
3287 /** 3480 /// Delete a remarketing audience.
3288 * Delete a remarketing audience. 3481 ///
3289 * 3482 /// Request parameters:
3290 * Request parameters: 3483 ///
3291 * 3484 /// [accountId] - Account ID to which the remarketing audience belongs.
3292 * [accountId] - Account ID to which the remarketing audience belongs. 3485 ///
3293 * 3486 /// [webPropertyId] - Web property ID to which the remarketing audience
3294 * [webPropertyId] - Web property ID to which the remarketing audience 3487 /// belongs.
3295 * belongs. 3488 ///
3296 * 3489 /// [remarketingAudienceId] - The ID of the remarketing audience to delete.
3297 * [remarketingAudienceId] - The ID of the remarketing audience to delete. 3490 ///
3298 * 3491 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3299 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3492 /// an error.
3300 * error. 3493 ///
3301 * 3494 /// If the used [http.Client] completes with an error when making a REST
3302 * If the used [http.Client] completes with an error when making a REST call, 3495 /// call, this method will complete with the same error.
3303 * this method will complete with the same error. 3496 async.Future delete(core.String accountId, core.String webPropertyId,
3304 */ 3497 core.String remarketingAudienceId) {
3305 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing remarketingAudienceId) {
3306 var _url = null; 3498 var _url = null;
3307 var _queryParams = new core.Map(); 3499 var _queryParams = new core.Map();
3308 var _uploadMedia = null; 3500 var _uploadMedia = null;
3309 var _uploadOptions = null; 3501 var _uploadOptions = null;
3310 var _downloadOptions = commons.DownloadOptions.Metadata; 3502 var _downloadOptions = commons.DownloadOptions.Metadata;
3311 var _body = null; 3503 var _body = null;
3312 3504
3313 if (accountId == null) { 3505 if (accountId == null) {
3314 throw new core.ArgumentError("Parameter accountId is required."); 3506 throw new core.ArgumentError("Parameter accountId is required.");
3315 } 3507 }
3316 if (webPropertyId == null) { 3508 if (webPropertyId == null) {
3317 throw new core.ArgumentError("Parameter webPropertyId is required."); 3509 throw new core.ArgumentError("Parameter webPropertyId is required.");
3318 } 3510 }
3319 if (remarketingAudienceId == null) { 3511 if (remarketingAudienceId == null) {
3320 throw new core.ArgumentError("Parameter remarketingAudienceId is required. "); 3512 throw new core.ArgumentError(
3513 "Parameter remarketingAudienceId is required.");
3321 } 3514 }
3322 3515
3323 _downloadOptions = null; 3516 _downloadOptions = null;
3324 3517
3325 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark etingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId'); 3518 _url = 'management/accounts/' +
3519 commons.Escaper.ecapeVariable('$accountId') +
3520 '/webproperties/' +
3521 commons.Escaper.ecapeVariable('$webPropertyId') +
3522 '/remarketingAudiences/' +
3523 commons.Escaper.ecapeVariable('$remarketingAudienceId');
3326 3524
3327 var _response = _requester.request(_url, 3525 var _response = _requester.request(_url, "DELETE",
3328 "DELETE", 3526 body: _body,
3329 body: _body, 3527 queryParams: _queryParams,
3330 queryParams: _queryParams, 3528 uploadOptions: _uploadOptions,
3331 uploadOptions: _uploadOptions, 3529 uploadMedia: _uploadMedia,
3332 uploadMedia: _uploadMedia, 3530 downloadOptions: _downloadOptions);
3333 downloadOptions: _downloadOptions);
3334 return _response.then((data) => null); 3531 return _response.then((data) => null);
3335 } 3532 }
3336 3533
3337 /** 3534 /// Gets a remarketing audience to which the user has access.
3338 * Gets a remarketing audience to which the user has access. 3535 ///
3339 * 3536 /// Request parameters:
3340 * Request parameters: 3537 ///
3341 * 3538 /// [accountId] - The account ID of the remarketing audience to retrieve.
3342 * [accountId] - The account ID of the remarketing audience to retrieve. 3539 ///
3343 * 3540 /// [webPropertyId] - The web property ID of the remarketing audience to
3344 * [webPropertyId] - The web property ID of the remarketing audience to 3541 /// retrieve.
3345 * retrieve. 3542 ///
3346 * 3543 /// [remarketingAudienceId] - The ID of the remarketing audience to retrieve.
3347 * [remarketingAudienceId] - The ID of the remarketing audience to retrieve. 3544 ///
3348 * 3545 /// Completes with a [RemarketingAudience].
3349 * Completes with a [RemarketingAudience]. 3546 ///
3350 * 3547 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3548 /// an error.
3352 * error. 3549 ///
3353 * 3550 /// If the used [http.Client] completes with an error when making a REST
3354 * If the used [http.Client] completes with an error when making a REST call, 3551 /// call, this method will complete with the same error.
3355 * this method will complete with the same error. 3552 async.Future<RemarketingAudience> get(core.String accountId,
3356 */ 3553 core.String webPropertyId, core.String remarketingAudienceId) {
3357 async.Future<RemarketingAudience> get(core.String accountId, core.String webPr opertyId, core.String remarketingAudienceId) {
3358 var _url = null; 3554 var _url = null;
3359 var _queryParams = new core.Map(); 3555 var _queryParams = new core.Map();
3360 var _uploadMedia = null; 3556 var _uploadMedia = null;
3361 var _uploadOptions = null; 3557 var _uploadOptions = null;
3362 var _downloadOptions = commons.DownloadOptions.Metadata; 3558 var _downloadOptions = commons.DownloadOptions.Metadata;
3363 var _body = null; 3559 var _body = null;
3364 3560
3365 if (accountId == null) { 3561 if (accountId == null) {
3366 throw new core.ArgumentError("Parameter accountId is required."); 3562 throw new core.ArgumentError("Parameter accountId is required.");
3367 } 3563 }
3368 if (webPropertyId == null) { 3564 if (webPropertyId == null) {
3369 throw new core.ArgumentError("Parameter webPropertyId is required."); 3565 throw new core.ArgumentError("Parameter webPropertyId is required.");
3370 } 3566 }
3371 if (remarketingAudienceId == null) { 3567 if (remarketingAudienceId == null) {
3372 throw new core.ArgumentError("Parameter remarketingAudienceId is required. "); 3568 throw new core.ArgumentError(
3569 "Parameter remarketingAudienceId is required.");
3373 } 3570 }
3374 3571
3375 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark etingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId'); 3572 _url = 'management/accounts/' +
3573 commons.Escaper.ecapeVariable('$accountId') +
3574 '/webproperties/' +
3575 commons.Escaper.ecapeVariable('$webPropertyId') +
3576 '/remarketingAudiences/' +
3577 commons.Escaper.ecapeVariable('$remarketingAudienceId');
3376 3578
3377 var _response = _requester.request(_url, 3579 var _response = _requester.request(_url, "GET",
3378 "GET", 3580 body: _body,
3379 body: _body, 3581 queryParams: _queryParams,
3380 queryParams: _queryParams, 3582 uploadOptions: _uploadOptions,
3381 uploadOptions: _uploadOptions, 3583 uploadMedia: _uploadMedia,
3382 uploadMedia: _uploadMedia, 3584 downloadOptions: _downloadOptions);
3383 downloadOptions: _downloadOptions);
3384 return _response.then((data) => new RemarketingAudience.fromJson(data)); 3585 return _response.then((data) => new RemarketingAudience.fromJson(data));
3385 } 3586 }
3386 3587
3387 /** 3588 /// Creates a new remarketing audience.
3388 * Creates a new remarketing audience. 3589 ///
3389 * 3590 /// [request] - The metadata request object.
3390 * [request] - The metadata request object. 3591 ///
3391 * 3592 /// Request parameters:
3392 * Request parameters: 3593 ///
3393 * 3594 /// [accountId] - The account ID for which to create the remarketing
3394 * [accountId] - The account ID for which to create the remarketing audience. 3595 /// audience.
3395 * 3596 ///
3396 * [webPropertyId] - Web property ID for which to create the remarketing 3597 /// [webPropertyId] - Web property ID for which to create the remarketing
3397 * audience. 3598 /// audience.
3398 * 3599 ///
3399 * Completes with a [RemarketingAudience]. 3600 /// Completes with a [RemarketingAudience].
3400 * 3601 ///
3401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3602 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3402 * error. 3603 /// an error.
3403 * 3604 ///
3404 * If the used [http.Client] completes with an error when making a REST call, 3605 /// If the used [http.Client] completes with an error when making a REST
3405 * this method will complete with the same error. 3606 /// call, this method will complete with the same error.
3406 */ 3607 async.Future<RemarketingAudience> insert(RemarketingAudience request,
3407 async.Future<RemarketingAudience> insert(RemarketingAudience request, core.Str ing accountId, core.String webPropertyId) { 3608 core.String accountId, core.String webPropertyId) {
3408 var _url = null; 3609 var _url = null;
3409 var _queryParams = new core.Map(); 3610 var _queryParams = new core.Map();
3410 var _uploadMedia = null; 3611 var _uploadMedia = null;
3411 var _uploadOptions = null; 3612 var _uploadOptions = null;
3412 var _downloadOptions = commons.DownloadOptions.Metadata; 3613 var _downloadOptions = commons.DownloadOptions.Metadata;
3413 var _body = null; 3614 var _body = null;
3414 3615
3415 if (request != null) { 3616 if (request != null) {
3416 _body = convert.JSON.encode((request).toJson()); 3617 _body = convert.JSON.encode((request).toJson());
3417 } 3618 }
3418 if (accountId == null) { 3619 if (accountId == null) {
3419 throw new core.ArgumentError("Parameter accountId is required."); 3620 throw new core.ArgumentError("Parameter accountId is required.");
3420 } 3621 }
3421 if (webPropertyId == null) { 3622 if (webPropertyId == null) {
3422 throw new core.ArgumentError("Parameter webPropertyId is required."); 3623 throw new core.ArgumentError("Parameter webPropertyId is required.");
3423 } 3624 }
3424 3625
3425 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark etingAudiences'; 3626 _url = 'management/accounts/' +
3627 commons.Escaper.ecapeVariable('$accountId') +
3628 '/webproperties/' +
3629 commons.Escaper.ecapeVariable('$webPropertyId') +
3630 '/remarketingAudiences';
3426 3631
3427 var _response = _requester.request(_url, 3632 var _response = _requester.request(_url, "POST",
3428 "POST", 3633 body: _body,
3429 body: _body, 3634 queryParams: _queryParams,
3430 queryParams: _queryParams, 3635 uploadOptions: _uploadOptions,
3431 uploadOptions: _uploadOptions, 3636 uploadMedia: _uploadMedia,
3432 uploadMedia: _uploadMedia, 3637 downloadOptions: _downloadOptions);
3433 downloadOptions: _downloadOptions);
3434 return _response.then((data) => new RemarketingAudience.fromJson(data)); 3638 return _response.then((data) => new RemarketingAudience.fromJson(data));
3435 } 3639 }
3436 3640
3437 /** 3641 /// Lists remarketing audiences to which the user has access.
3438 * Lists remarketing audiences to which the user has access. 3642 ///
3439 * 3643 /// Request parameters:
3440 * Request parameters: 3644 ///
3441 * 3645 /// [accountId] - The account ID of the remarketing audiences to retrieve.
3442 * [accountId] - The account ID of the remarketing audiences to retrieve. 3646 ///
3443 * 3647 /// [webPropertyId] - The web property ID of the remarketing audiences to
3444 * [webPropertyId] - The web property ID of the remarketing audiences to 3648 /// retrieve.
3445 * retrieve. 3649 ///
3446 * 3650 /// [max_results] - The maximum number of remarketing audiences to include in
3447 * [max_results] - The maximum number of remarketing audiences to include in 3651 /// this response.
3448 * this response. 3652 ///
3449 * 3653 /// [start_index] - An index of the first entity to retrieve. Use this
3450 * [start_index] - An index of the first entity to retrieve. Use this 3654 /// parameter as a pagination mechanism along with the max-results parameter.
3451 * parameter as a pagination mechanism along with the max-results parameter. 3655 ///
3452 * 3656 /// [type] - null
3453 * [type] - null 3657 ///
3454 * 3658 /// Completes with a [RemarketingAudiences].
3455 * Completes with a [RemarketingAudiences]. 3659 ///
3456 * 3660 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3457 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3661 /// an error.
3458 * error. 3662 ///
3459 * 3663 /// If the used [http.Client] completes with an error when making a REST
3460 * If the used [http.Client] completes with an error when making a REST call, 3664 /// call, this method will complete with the same error.
3461 * this method will complete with the same error. 3665 async.Future<RemarketingAudiences> list(
3462 */ 3666 core.String accountId, core.String webPropertyId,
3463 async.Future<RemarketingAudiences> list(core.String accountId, core.String web PropertyId, {core.int max_results, core.int start_index, core.String type}) { 3667 {core.int max_results, core.int start_index, core.String type}) {
3464 var _url = null; 3668 var _url = null;
3465 var _queryParams = new core.Map(); 3669 var _queryParams = new core.Map();
3466 var _uploadMedia = null; 3670 var _uploadMedia = null;
3467 var _uploadOptions = null; 3671 var _uploadOptions = null;
3468 var _downloadOptions = commons.DownloadOptions.Metadata; 3672 var _downloadOptions = commons.DownloadOptions.Metadata;
3469 var _body = null; 3673 var _body = null;
3470 3674
3471 if (accountId == null) { 3675 if (accountId == null) {
3472 throw new core.ArgumentError("Parameter accountId is required."); 3676 throw new core.ArgumentError("Parameter accountId is required.");
3473 } 3677 }
3474 if (webPropertyId == null) { 3678 if (webPropertyId == null) {
3475 throw new core.ArgumentError("Parameter webPropertyId is required."); 3679 throw new core.ArgumentError("Parameter webPropertyId is required.");
3476 } 3680 }
3477 if (max_results != null) { 3681 if (max_results != null) {
3478 _queryParams["max-results"] = ["${max_results}"]; 3682 _queryParams["max-results"] = ["${max_results}"];
3479 } 3683 }
3480 if (start_index != null) { 3684 if (start_index != null) {
3481 _queryParams["start-index"] = ["${start_index}"]; 3685 _queryParams["start-index"] = ["${start_index}"];
3482 } 3686 }
3483 if (type != null) { 3687 if (type != null) {
3484 _queryParams["type"] = [type]; 3688 _queryParams["type"] = [type];
3485 } 3689 }
3486 3690
3487 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark etingAudiences'; 3691 _url = 'management/accounts/' +
3692 commons.Escaper.ecapeVariable('$accountId') +
3693 '/webproperties/' +
3694 commons.Escaper.ecapeVariable('$webPropertyId') +
3695 '/remarketingAudiences';
3488 3696
3489 var _response = _requester.request(_url, 3697 var _response = _requester.request(_url, "GET",
3490 "GET", 3698 body: _body,
3491 body: _body, 3699 queryParams: _queryParams,
3492 queryParams: _queryParams, 3700 uploadOptions: _uploadOptions,
3493 uploadOptions: _uploadOptions, 3701 uploadMedia: _uploadMedia,
3494 uploadMedia: _uploadMedia, 3702 downloadOptions: _downloadOptions);
3495 downloadOptions: _downloadOptions);
3496 return _response.then((data) => new RemarketingAudiences.fromJson(data)); 3703 return _response.then((data) => new RemarketingAudiences.fromJson(data));
3497 } 3704 }
3498 3705
3499 /** 3706 /// Updates an existing remarketing audience. This method supports patch
3500 * Updates an existing remarketing audience. This method supports patch 3707 /// semantics.
3501 * semantics. 3708 ///
3502 * 3709 /// [request] - The metadata request object.
3503 * [request] - The metadata request object. 3710 ///
3504 * 3711 /// Request parameters:
3505 * Request parameters: 3712 ///
3506 * 3713 /// [accountId] - The account ID of the remarketing audience to update.
3507 * [accountId] - The account ID of the remarketing audience to update. 3714 ///
3508 * 3715 /// [webPropertyId] - The web property ID of the remarketing audience to
3509 * [webPropertyId] - The web property ID of the remarketing audience to 3716 /// update.
3510 * update. 3717 ///
3511 * 3718 /// [remarketingAudienceId] - The ID of the remarketing audience to update.
3512 * [remarketingAudienceId] - The ID of the remarketing audience to update. 3719 ///
3513 * 3720 /// Completes with a [RemarketingAudience].
3514 * Completes with a [RemarketingAudience]. 3721 ///
3515 * 3722 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3516 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3723 /// an error.
3517 * error. 3724 ///
3518 * 3725 /// If the used [http.Client] completes with an error when making a REST
3519 * If the used [http.Client] completes with an error when making a REST call, 3726 /// call, this method will complete with the same error.
3520 * this method will complete with the same error. 3727 async.Future<RemarketingAudience> patch(
3521 */ 3728 RemarketingAudience request,
3522 async.Future<RemarketingAudience> patch(RemarketingAudience request, core.Stri ng accountId, core.String webPropertyId, core.String remarketingAudienceId) { 3729 core.String accountId,
3730 core.String webPropertyId,
3731 core.String remarketingAudienceId) {
3523 var _url = null; 3732 var _url = null;
3524 var _queryParams = new core.Map(); 3733 var _queryParams = new core.Map();
3525 var _uploadMedia = null; 3734 var _uploadMedia = null;
3526 var _uploadOptions = null; 3735 var _uploadOptions = null;
3527 var _downloadOptions = commons.DownloadOptions.Metadata; 3736 var _downloadOptions = commons.DownloadOptions.Metadata;
3528 var _body = null; 3737 var _body = null;
3529 3738
3530 if (request != null) { 3739 if (request != null) {
3531 _body = convert.JSON.encode((request).toJson()); 3740 _body = convert.JSON.encode((request).toJson());
3532 } 3741 }
3533 if (accountId == null) { 3742 if (accountId == null) {
3534 throw new core.ArgumentError("Parameter accountId is required."); 3743 throw new core.ArgumentError("Parameter accountId is required.");
3535 } 3744 }
3536 if (webPropertyId == null) { 3745 if (webPropertyId == null) {
3537 throw new core.ArgumentError("Parameter webPropertyId is required."); 3746 throw new core.ArgumentError("Parameter webPropertyId is required.");
3538 } 3747 }
3539 if (remarketingAudienceId == null) { 3748 if (remarketingAudienceId == null) {
3540 throw new core.ArgumentError("Parameter remarketingAudienceId is required. "); 3749 throw new core.ArgumentError(
3750 "Parameter remarketingAudienceId is required.");
3541 } 3751 }
3542 3752
3543 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark etingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId'); 3753 _url = 'management/accounts/' +
3754 commons.Escaper.ecapeVariable('$accountId') +
3755 '/webproperties/' +
3756 commons.Escaper.ecapeVariable('$webPropertyId') +
3757 '/remarketingAudiences/' +
3758 commons.Escaper.ecapeVariable('$remarketingAudienceId');
3544 3759
3545 var _response = _requester.request(_url, 3760 var _response = _requester.request(_url, "PATCH",
3546 "PATCH", 3761 body: _body,
3547 body: _body, 3762 queryParams: _queryParams,
3548 queryParams: _queryParams, 3763 uploadOptions: _uploadOptions,
3549 uploadOptions: _uploadOptions, 3764 uploadMedia: _uploadMedia,
3550 uploadMedia: _uploadMedia, 3765 downloadOptions: _downloadOptions);
3551 downloadOptions: _downloadOptions);
3552 return _response.then((data) => new RemarketingAudience.fromJson(data)); 3766 return _response.then((data) => new RemarketingAudience.fromJson(data));
3553 } 3767 }
3554 3768
3555 /** 3769 /// Updates an existing remarketing audience.
3556 * Updates an existing remarketing audience. 3770 ///
3557 * 3771 /// [request] - The metadata request object.
3558 * [request] - The metadata request object. 3772 ///
3559 * 3773 /// Request parameters:
3560 * Request parameters: 3774 ///
3561 * 3775 /// [accountId] - The account ID of the remarketing audience to update.
3562 * [accountId] - The account ID of the remarketing audience to update. 3776 ///
3563 * 3777 /// [webPropertyId] - The web property ID of the remarketing audience to
3564 * [webPropertyId] - The web property ID of the remarketing audience to 3778 /// update.
3565 * update. 3779 ///
3566 * 3780 /// [remarketingAudienceId] - The ID of the remarketing audience to update.
3567 * [remarketingAudienceId] - The ID of the remarketing audience to update. 3781 ///
3568 * 3782 /// Completes with a [RemarketingAudience].
3569 * Completes with a [RemarketingAudience]. 3783 ///
3570 * 3784 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3571 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3785 /// an error.
3572 * error. 3786 ///
3573 * 3787 /// If the used [http.Client] completes with an error when making a REST
3574 * If the used [http.Client] completes with an error when making a REST call, 3788 /// call, this method will complete with the same error.
3575 * this method will complete with the same error. 3789 async.Future<RemarketingAudience> update(
3576 */ 3790 RemarketingAudience request,
3577 async.Future<RemarketingAudience> update(RemarketingAudience request, core.Str ing accountId, core.String webPropertyId, core.String remarketingAudienceId) { 3791 core.String accountId,
3792 core.String webPropertyId,
3793 core.String remarketingAudienceId) {
3578 var _url = null; 3794 var _url = null;
3579 var _queryParams = new core.Map(); 3795 var _queryParams = new core.Map();
3580 var _uploadMedia = null; 3796 var _uploadMedia = null;
3581 var _uploadOptions = null; 3797 var _uploadOptions = null;
3582 var _downloadOptions = commons.DownloadOptions.Metadata; 3798 var _downloadOptions = commons.DownloadOptions.Metadata;
3583 var _body = null; 3799 var _body = null;
3584 3800
3585 if (request != null) { 3801 if (request != null) {
3586 _body = convert.JSON.encode((request).toJson()); 3802 _body = convert.JSON.encode((request).toJson());
3587 } 3803 }
3588 if (accountId == null) { 3804 if (accountId == null) {
3589 throw new core.ArgumentError("Parameter accountId is required."); 3805 throw new core.ArgumentError("Parameter accountId is required.");
3590 } 3806 }
3591 if (webPropertyId == null) { 3807 if (webPropertyId == null) {
3592 throw new core.ArgumentError("Parameter webPropertyId is required."); 3808 throw new core.ArgumentError("Parameter webPropertyId is required.");
3593 } 3809 }
3594 if (remarketingAudienceId == null) { 3810 if (remarketingAudienceId == null) {
3595 throw new core.ArgumentError("Parameter remarketingAudienceId is required. "); 3811 throw new core.ArgumentError(
3812 "Parameter remarketingAudienceId is required.");
3596 } 3813 }
3597 3814
3598 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/remark etingAudiences/' + commons.Escaper.ecapeVariable('$remarketingAudienceId'); 3815 _url = 'management/accounts/' +
3816 commons.Escaper.ecapeVariable('$accountId') +
3817 '/webproperties/' +
3818 commons.Escaper.ecapeVariable('$webPropertyId') +
3819 '/remarketingAudiences/' +
3820 commons.Escaper.ecapeVariable('$remarketingAudienceId');
3599 3821
3600 var _response = _requester.request(_url, 3822 var _response = _requester.request(_url, "PUT",
3601 "PUT", 3823 body: _body,
3602 body: _body, 3824 queryParams: _queryParams,
3603 queryParams: _queryParams, 3825 uploadOptions: _uploadOptions,
3604 uploadOptions: _uploadOptions, 3826 uploadMedia: _uploadMedia,
3605 uploadMedia: _uploadMedia, 3827 downloadOptions: _downloadOptions);
3606 downloadOptions: _downloadOptions);
3607 return _response.then((data) => new RemarketingAudience.fromJson(data)); 3828 return _response.then((data) => new RemarketingAudience.fromJson(data));
3608 } 3829 }
3609
3610 } 3830 }
3611 3831
3612
3613 class ManagementSegmentsResourceApi { 3832 class ManagementSegmentsResourceApi {
3614 final commons.ApiRequester _requester; 3833 final commons.ApiRequester _requester;
3615 3834
3616 ManagementSegmentsResourceApi(commons.ApiRequester client) : 3835 ManagementSegmentsResourceApi(commons.ApiRequester client)
3617 _requester = client; 3836 : _requester = client;
3618 3837
3619 /** 3838 /// Lists segments to which the user has access.
3620 * Lists segments to which the user has access. 3839 ///
3621 * 3840 /// Request parameters:
3622 * Request parameters: 3841 ///
3623 * 3842 /// [max_results] - The maximum number of segments to include in this
3624 * [max_results] - The maximum number of segments to include in this response. 3843 /// response.
3625 * 3844 ///
3626 * [start_index] - An index of the first segment to retrieve. Use this 3845 /// [start_index] - An index of the first segment to retrieve. Use this
3627 * parameter as a pagination mechanism along with the max-results parameter. 3846 /// parameter as a pagination mechanism along with the max-results parameter.
3628 * 3847 ///
3629 * Completes with a [Segments]. 3848 /// Completes with a [Segments].
3630 * 3849 ///
3631 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3850 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3632 * error. 3851 /// an error.
3633 * 3852 ///
3634 * If the used [http.Client] completes with an error when making a REST call, 3853 /// If the used [http.Client] completes with an error when making a REST
3635 * this method will complete with the same error. 3854 /// call, this method will complete with the same error.
3636 */
3637 async.Future<Segments> list({core.int max_results, core.int start_index}) { 3855 async.Future<Segments> list({core.int max_results, core.int start_index}) {
3638 var _url = null; 3856 var _url = null;
3639 var _queryParams = new core.Map(); 3857 var _queryParams = new core.Map();
3640 var _uploadMedia = null; 3858 var _uploadMedia = null;
3641 var _uploadOptions = null; 3859 var _uploadOptions = null;
3642 var _downloadOptions = commons.DownloadOptions.Metadata; 3860 var _downloadOptions = commons.DownloadOptions.Metadata;
3643 var _body = null; 3861 var _body = null;
3644 3862
3645 if (max_results != null) { 3863 if (max_results != null) {
3646 _queryParams["max-results"] = ["${max_results}"]; 3864 _queryParams["max-results"] = ["${max_results}"];
3647 } 3865 }
3648 if (start_index != null) { 3866 if (start_index != null) {
3649 _queryParams["start-index"] = ["${start_index}"]; 3867 _queryParams["start-index"] = ["${start_index}"];
3650 } 3868 }
3651 3869
3652 _url = 'management/segments'; 3870 _url = 'management/segments';
3653 3871
3654 var _response = _requester.request(_url, 3872 var _response = _requester.request(_url, "GET",
3655 "GET", 3873 body: _body,
3656 body: _body, 3874 queryParams: _queryParams,
3657 queryParams: _queryParams, 3875 uploadOptions: _uploadOptions,
3658 uploadOptions: _uploadOptions, 3876 uploadMedia: _uploadMedia,
3659 uploadMedia: _uploadMedia, 3877 downloadOptions: _downloadOptions);
3660 downloadOptions: _downloadOptions);
3661 return _response.then((data) => new Segments.fromJson(data)); 3878 return _response.then((data) => new Segments.fromJson(data));
3662 } 3879 }
3663
3664 } 3880 }
3665 3881
3666
3667 class ManagementUnsampledReportsResourceApi { 3882 class ManagementUnsampledReportsResourceApi {
3668 final commons.ApiRequester _requester; 3883 final commons.ApiRequester _requester;
3669 3884
3670 ManagementUnsampledReportsResourceApi(commons.ApiRequester client) : 3885 ManagementUnsampledReportsResourceApi(commons.ApiRequester client)
3671 _requester = client; 3886 : _requester = client;
3672 3887
3673 /** 3888 /// Deletes an unsampled report.
3674 * Deletes an unsampled report. 3889 ///
3675 * 3890 /// Request parameters:
3676 * Request parameters: 3891 ///
3677 * 3892 /// [accountId] - Account ID to delete the unsampled report for.
3678 * [accountId] - Account ID to delete the unsampled report for. 3893 ///
3679 * 3894 /// [webPropertyId] - Web property ID to delete the unsampled reports for.
3680 * [webPropertyId] - Web property ID to delete the unsampled reports for. 3895 ///
3681 * 3896 /// [profileId] - View (Profile) ID to delete the unsampled report for.
3682 * [profileId] - View (Profile) ID to delete the unsampled report for. 3897 ///
3683 * 3898 /// [unsampledReportId] - ID of the unsampled report to be deleted.
3684 * [unsampledReportId] - ID of the unsampled report to be deleted. 3899 ///
3685 * 3900 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3686 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3901 /// an error.
3687 * error. 3902 ///
3688 * 3903 /// If the used [http.Client] completes with an error when making a REST
3689 * If the used [http.Client] completes with an error when making a REST call, 3904 /// call, this method will complete with the same error.
3690 * this method will complete with the same error. 3905 async.Future delete(core.String accountId, core.String webPropertyId,
3691 */ 3906 core.String profileId, core.String unsampledReportId) {
3692 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing profileId, core.String unsampledReportId) {
3693 var _url = null; 3907 var _url = null;
3694 var _queryParams = new core.Map(); 3908 var _queryParams = new core.Map();
3695 var _uploadMedia = null; 3909 var _uploadMedia = null;
3696 var _uploadOptions = null; 3910 var _uploadOptions = null;
3697 var _downloadOptions = commons.DownloadOptions.Metadata; 3911 var _downloadOptions = commons.DownloadOptions.Metadata;
3698 var _body = null; 3912 var _body = null;
3699 3913
3700 if (accountId == null) { 3914 if (accountId == null) {
3701 throw new core.ArgumentError("Parameter accountId is required."); 3915 throw new core.ArgumentError("Parameter accountId is required.");
3702 } 3916 }
3703 if (webPropertyId == null) { 3917 if (webPropertyId == null) {
3704 throw new core.ArgumentError("Parameter webPropertyId is required."); 3918 throw new core.ArgumentError("Parameter webPropertyId is required.");
3705 } 3919 }
3706 if (profileId == null) { 3920 if (profileId == null) {
3707 throw new core.ArgumentError("Parameter profileId is required."); 3921 throw new core.ArgumentError("Parameter profileId is required.");
3708 } 3922 }
3709 if (unsampledReportId == null) { 3923 if (unsampledReportId == null) {
3710 throw new core.ArgumentError("Parameter unsampledReportId is required."); 3924 throw new core.ArgumentError("Parameter unsampledReportId is required.");
3711 } 3925 }
3712 3926
3713 _downloadOptions = null; 3927 _downloadOptions = null;
3714 3928
3715 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports/' + comm ons.Escaper.ecapeVariable('$unsampledReportId'); 3929 _url = 'management/accounts/' +
3930 commons.Escaper.ecapeVariable('$accountId') +
3931 '/webproperties/' +
3932 commons.Escaper.ecapeVariable('$webPropertyId') +
3933 '/profiles/' +
3934 commons.Escaper.ecapeVariable('$profileId') +
3935 '/unsampledReports/' +
3936 commons.Escaper.ecapeVariable('$unsampledReportId');
3716 3937
3717 var _response = _requester.request(_url, 3938 var _response = _requester.request(_url, "DELETE",
3718 "DELETE", 3939 body: _body,
3719 body: _body, 3940 queryParams: _queryParams,
3720 queryParams: _queryParams, 3941 uploadOptions: _uploadOptions,
3721 uploadOptions: _uploadOptions, 3942 uploadMedia: _uploadMedia,
3722 uploadMedia: _uploadMedia, 3943 downloadOptions: _downloadOptions);
3723 downloadOptions: _downloadOptions);
3724 return _response.then((data) => null); 3944 return _response.then((data) => null);
3725 } 3945 }
3726 3946
3727 /** 3947 /// Returns a single unsampled report.
3728 * Returns a single unsampled report. 3948 ///
3729 * 3949 /// Request parameters:
3730 * Request parameters: 3950 ///
3731 * 3951 /// [accountId] - Account ID to retrieve unsampled report for.
3732 * [accountId] - Account ID to retrieve unsampled report for. 3952 ///
3733 * 3953 /// [webPropertyId] - Web property ID to retrieve unsampled reports for.
3734 * [webPropertyId] - Web property ID to retrieve unsampled reports for. 3954 ///
3735 * 3955 /// [profileId] - View (Profile) ID to retrieve unsampled report for.
3736 * [profileId] - View (Profile) ID to retrieve unsampled report for. 3956 ///
3737 * 3957 /// [unsampledReportId] - ID of the unsampled report to retrieve.
3738 * [unsampledReportId] - ID of the unsampled report to retrieve. 3958 ///
3739 * 3959 /// Completes with a [UnsampledReport].
3740 * Completes with a [UnsampledReport]. 3960 ///
3741 * 3961 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3742 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3962 /// an error.
3743 * error. 3963 ///
3744 * 3964 /// If the used [http.Client] completes with an error when making a REST
3745 * If the used [http.Client] completes with an error when making a REST call, 3965 /// call, this method will complete with the same error.
3746 * this method will complete with the same error. 3966 async.Future<UnsampledReport> get(
3747 */ 3967 core.String accountId,
3748 async.Future<UnsampledReport> get(core.String accountId, core.String webProper tyId, core.String profileId, core.String unsampledReportId) { 3968 core.String webPropertyId,
3969 core.String profileId,
3970 core.String unsampledReportId) {
3749 var _url = null; 3971 var _url = null;
3750 var _queryParams = new core.Map(); 3972 var _queryParams = new core.Map();
3751 var _uploadMedia = null; 3973 var _uploadMedia = null;
3752 var _uploadOptions = null; 3974 var _uploadOptions = null;
3753 var _downloadOptions = commons.DownloadOptions.Metadata; 3975 var _downloadOptions = commons.DownloadOptions.Metadata;
3754 var _body = null; 3976 var _body = null;
3755 3977
3756 if (accountId == null) { 3978 if (accountId == null) {
3757 throw new core.ArgumentError("Parameter accountId is required."); 3979 throw new core.ArgumentError("Parameter accountId is required.");
3758 } 3980 }
3759 if (webPropertyId == null) { 3981 if (webPropertyId == null) {
3760 throw new core.ArgumentError("Parameter webPropertyId is required."); 3982 throw new core.ArgumentError("Parameter webPropertyId is required.");
3761 } 3983 }
3762 if (profileId == null) { 3984 if (profileId == null) {
3763 throw new core.ArgumentError("Parameter profileId is required."); 3985 throw new core.ArgumentError("Parameter profileId is required.");
3764 } 3986 }
3765 if (unsampledReportId == null) { 3987 if (unsampledReportId == null) {
3766 throw new core.ArgumentError("Parameter unsampledReportId is required."); 3988 throw new core.ArgumentError("Parameter unsampledReportId is required.");
3767 } 3989 }
3768 3990
3769 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports/' + comm ons.Escaper.ecapeVariable('$unsampledReportId'); 3991 _url = 'management/accounts/' +
3992 commons.Escaper.ecapeVariable('$accountId') +
3993 '/webproperties/' +
3994 commons.Escaper.ecapeVariable('$webPropertyId') +
3995 '/profiles/' +
3996 commons.Escaper.ecapeVariable('$profileId') +
3997 '/unsampledReports/' +
3998 commons.Escaper.ecapeVariable('$unsampledReportId');
3770 3999
3771 var _response = _requester.request(_url, 4000 var _response = _requester.request(_url, "GET",
3772 "GET", 4001 body: _body,
3773 body: _body, 4002 queryParams: _queryParams,
3774 queryParams: _queryParams, 4003 uploadOptions: _uploadOptions,
3775 uploadOptions: _uploadOptions, 4004 uploadMedia: _uploadMedia,
3776 uploadMedia: _uploadMedia, 4005 downloadOptions: _downloadOptions);
3777 downloadOptions: _downloadOptions);
3778 return _response.then((data) => new UnsampledReport.fromJson(data)); 4006 return _response.then((data) => new UnsampledReport.fromJson(data));
3779 } 4007 }
3780 4008
3781 /** 4009 /// Create a new unsampled report.
3782 * Create a new unsampled report. 4010 ///
3783 * 4011 /// [request] - The metadata request object.
3784 * [request] - The metadata request object. 4012 ///
3785 * 4013 /// Request parameters:
3786 * Request parameters: 4014 ///
3787 * 4015 /// [accountId] - Account ID to create the unsampled report for.
3788 * [accountId] - Account ID to create the unsampled report for. 4016 ///
3789 * 4017 /// [webPropertyId] - Web property ID to create the unsampled report for.
3790 * [webPropertyId] - Web property ID to create the unsampled report for. 4018 ///
3791 * 4019 /// [profileId] - View (Profile) ID to create the unsampled report for.
3792 * [profileId] - View (Profile) ID to create the unsampled report for. 4020 ///
3793 * 4021 /// Completes with a [UnsampledReport].
3794 * Completes with a [UnsampledReport]. 4022 ///
3795 * 4023 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3796 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4024 /// an error.
3797 * error. 4025 ///
3798 * 4026 /// If the used [http.Client] completes with an error when making a REST
3799 * If the used [http.Client] completes with an error when making a REST call, 4027 /// call, this method will complete with the same error.
3800 * this method will complete with the same error. 4028 async.Future<UnsampledReport> insert(UnsampledReport request,
3801 */ 4029 core.String accountId, core.String webPropertyId, core.String profileId) {
3802 async.Future<UnsampledReport> insert(UnsampledReport request, core.String acco untId, core.String webPropertyId, core.String profileId) {
3803 var _url = null; 4030 var _url = null;
3804 var _queryParams = new core.Map(); 4031 var _queryParams = new core.Map();
3805 var _uploadMedia = null; 4032 var _uploadMedia = null;
3806 var _uploadOptions = null; 4033 var _uploadOptions = null;
3807 var _downloadOptions = commons.DownloadOptions.Metadata; 4034 var _downloadOptions = commons.DownloadOptions.Metadata;
3808 var _body = null; 4035 var _body = null;
3809 4036
3810 if (request != null) { 4037 if (request != null) {
3811 _body = convert.JSON.encode((request).toJson()); 4038 _body = convert.JSON.encode((request).toJson());
3812 } 4039 }
3813 if (accountId == null) { 4040 if (accountId == null) {
3814 throw new core.ArgumentError("Parameter accountId is required."); 4041 throw new core.ArgumentError("Parameter accountId is required.");
3815 } 4042 }
3816 if (webPropertyId == null) { 4043 if (webPropertyId == null) {
3817 throw new core.ArgumentError("Parameter webPropertyId is required."); 4044 throw new core.ArgumentError("Parameter webPropertyId is required.");
3818 } 4045 }
3819 if (profileId == null) { 4046 if (profileId == null) {
3820 throw new core.ArgumentError("Parameter profileId is required."); 4047 throw new core.ArgumentError("Parameter profileId is required.");
3821 } 4048 }
3822 4049
3823 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports'; 4050 _url = 'management/accounts/' +
4051 commons.Escaper.ecapeVariable('$accountId') +
4052 '/webproperties/' +
4053 commons.Escaper.ecapeVariable('$webPropertyId') +
4054 '/profiles/' +
4055 commons.Escaper.ecapeVariable('$profileId') +
4056 '/unsampledReports';
3824 4057
3825 var _response = _requester.request(_url, 4058 var _response = _requester.request(_url, "POST",
3826 "POST", 4059 body: _body,
3827 body: _body, 4060 queryParams: _queryParams,
3828 queryParams: _queryParams, 4061 uploadOptions: _uploadOptions,
3829 uploadOptions: _uploadOptions, 4062 uploadMedia: _uploadMedia,
3830 uploadMedia: _uploadMedia, 4063 downloadOptions: _downloadOptions);
3831 downloadOptions: _downloadOptions);
3832 return _response.then((data) => new UnsampledReport.fromJson(data)); 4064 return _response.then((data) => new UnsampledReport.fromJson(data));
3833 } 4065 }
3834 4066
3835 /** 4067 /// Lists unsampled reports to which the user has access.
3836 * Lists unsampled reports to which the user has access. 4068 ///
3837 * 4069 /// Request parameters:
3838 * Request parameters: 4070 ///
3839 * 4071 /// [accountId] - Account ID to retrieve unsampled reports for. Must be a
3840 * [accountId] - Account ID to retrieve unsampled reports for. Must be a 4072 /// specific account ID, ~all is not supported.
3841 * specific account ID, ~all is not supported. 4073 ///
3842 * 4074 /// [webPropertyId] - Web property ID to retrieve unsampled reports for. Must
3843 * [webPropertyId] - Web property ID to retrieve unsampled reports for. Must 4075 /// be a specific web property ID, ~all is not supported.
3844 * be a specific web property ID, ~all is not supported. 4076 ///
3845 * 4077 /// [profileId] - View (Profile) ID to retrieve unsampled reports for. Must
3846 * [profileId] - View (Profile) ID to retrieve unsampled reports for. Must be 4078 /// be a specific view (profile) ID, ~all is not supported.
3847 * a specific view (profile) ID, ~all is not supported. 4079 ///
3848 * 4080 /// [max_results] - The maximum number of unsampled reports to include in
3849 * [max_results] - The maximum number of unsampled reports to include in this 4081 /// this response.
3850 * response. 4082 ///
3851 * 4083 /// [start_index] - An index of the first unsampled report to retrieve. Use
3852 * [start_index] - An index of the first unsampled report to retrieve. Use 4084 /// this parameter as a pagination mechanism along with the max-results
3853 * this parameter as a pagination mechanism along with the max-results 4085 /// parameter.
3854 * parameter. 4086 ///
3855 * 4087 /// Completes with a [UnsampledReports].
3856 * Completes with a [UnsampledReports]. 4088 ///
3857 * 4089 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3858 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4090 /// an error.
3859 * error. 4091 ///
3860 * 4092 /// If the used [http.Client] completes with an error when making a REST
3861 * If the used [http.Client] completes with an error when making a REST call, 4093 /// call, this method will complete with the same error.
3862 * this method will complete with the same error. 4094 async.Future<UnsampledReports> list(
3863 */ 4095 core.String accountId, core.String webPropertyId, core.String profileId,
3864 async.Future<UnsampledReports> list(core.String accountId, core.String webProp ertyId, core.String profileId, {core.int max_results, core.int start_index}) { 4096 {core.int max_results, core.int start_index}) {
3865 var _url = null; 4097 var _url = null;
3866 var _queryParams = new core.Map(); 4098 var _queryParams = new core.Map();
3867 var _uploadMedia = null; 4099 var _uploadMedia = null;
3868 var _uploadOptions = null; 4100 var _uploadOptions = null;
3869 var _downloadOptions = commons.DownloadOptions.Metadata; 4101 var _downloadOptions = commons.DownloadOptions.Metadata;
3870 var _body = null; 4102 var _body = null;
3871 4103
3872 if (accountId == null) { 4104 if (accountId == null) {
3873 throw new core.ArgumentError("Parameter accountId is required."); 4105 throw new core.ArgumentError("Parameter accountId is required.");
3874 } 4106 }
3875 if (webPropertyId == null) { 4107 if (webPropertyId == null) {
3876 throw new core.ArgumentError("Parameter webPropertyId is required."); 4108 throw new core.ArgumentError("Parameter webPropertyId is required.");
3877 } 4109 }
3878 if (profileId == null) { 4110 if (profileId == null) {
3879 throw new core.ArgumentError("Parameter profileId is required."); 4111 throw new core.ArgumentError("Parameter profileId is required.");
3880 } 4112 }
3881 if (max_results != null) { 4113 if (max_results != null) {
3882 _queryParams["max-results"] = ["${max_results}"]; 4114 _queryParams["max-results"] = ["${max_results}"];
3883 } 4115 }
3884 if (start_index != null) { 4116 if (start_index != null) {
3885 _queryParams["start-index"] = ["${start_index}"]; 4117 _queryParams["start-index"] = ["${start_index}"];
3886 } 4118 }
3887 4119
3888 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/profil es/' + commons.Escaper.ecapeVariable('$profileId') + '/unsampledReports'; 4120 _url = 'management/accounts/' +
4121 commons.Escaper.ecapeVariable('$accountId') +
4122 '/webproperties/' +
4123 commons.Escaper.ecapeVariable('$webPropertyId') +
4124 '/profiles/' +
4125 commons.Escaper.ecapeVariable('$profileId') +
4126 '/unsampledReports';
3889 4127
3890 var _response = _requester.request(_url, 4128 var _response = _requester.request(_url, "GET",
3891 "GET", 4129 body: _body,
3892 body: _body, 4130 queryParams: _queryParams,
3893 queryParams: _queryParams, 4131 uploadOptions: _uploadOptions,
3894 uploadOptions: _uploadOptions, 4132 uploadMedia: _uploadMedia,
3895 uploadMedia: _uploadMedia, 4133 downloadOptions: _downloadOptions);
3896 downloadOptions: _downloadOptions);
3897 return _response.then((data) => new UnsampledReports.fromJson(data)); 4134 return _response.then((data) => new UnsampledReports.fromJson(data));
3898 } 4135 }
3899
3900 } 4136 }
3901 4137
3902
3903 class ManagementUploadsResourceApi { 4138 class ManagementUploadsResourceApi {
3904 final commons.ApiRequester _requester; 4139 final commons.ApiRequester _requester;
3905 4140
3906 ManagementUploadsResourceApi(commons.ApiRequester client) : 4141 ManagementUploadsResourceApi(commons.ApiRequester client)
3907 _requester = client; 4142 : _requester = client;
3908 4143
3909 /** 4144 /// Delete data associated with a previous upload.
3910 * Delete data associated with a previous upload. 4145 ///
3911 * 4146 /// [request] - The metadata request object.
3912 * [request] - The metadata request object. 4147 ///
3913 * 4148 /// Request parameters:
3914 * Request parameters: 4149 ///
3915 * 4150 /// [accountId] - Account Id for the uploads to be deleted.
3916 * [accountId] - Account Id for the uploads to be deleted. 4151 /// Value must have pattern "\d+".
3917 * Value must have pattern "\d+". 4152 ///
3918 * 4153 /// [webPropertyId] - Web property Id for the uploads to be deleted.
3919 * [webPropertyId] - Web property Id for the uploads to be deleted. 4154 /// Value must have pattern "UA-(\d+)-(\d+)".
3920 * Value must have pattern "UA-(\d+)-(\d+)". 4155 ///
3921 * 4156 /// [customDataSourceId] - Custom data source Id for the uploads to be
3922 * [customDataSourceId] - Custom data source Id for the uploads to be deleted. 4157 /// deleted.
3923 * Value must have pattern ".{22}". 4158 /// Value must have pattern ".{22}".
3924 * 4159 ///
3925 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4160 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3926 * error. 4161 /// an error.
3927 * 4162 ///
3928 * If the used [http.Client] completes with an error when making a REST call, 4163 /// If the used [http.Client] completes with an error when making a REST
3929 * this method will complete with the same error. 4164 /// call, this method will complete with the same error.
3930 */ 4165 async.Future deleteUploadData(
3931 async.Future deleteUploadData(AnalyticsDataimportDeleteUploadDataRequest reque st, core.String accountId, core.String webPropertyId, core.String customDataSour ceId) { 4166 AnalyticsDataimportDeleteUploadDataRequest request,
4167 core.String accountId,
4168 core.String webPropertyId,
4169 core.String customDataSourceId) {
3932 var _url = null; 4170 var _url = null;
3933 var _queryParams = new core.Map(); 4171 var _queryParams = new core.Map();
3934 var _uploadMedia = null; 4172 var _uploadMedia = null;
3935 var _uploadOptions = null; 4173 var _uploadOptions = null;
3936 var _downloadOptions = commons.DownloadOptions.Metadata; 4174 var _downloadOptions = commons.DownloadOptions.Metadata;
3937 var _body = null; 4175 var _body = null;
3938 4176
3939 if (request != null) { 4177 if (request != null) {
3940 _body = convert.JSON.encode((request).toJson()); 4178 _body = convert.JSON.encode((request).toJson());
3941 } 4179 }
3942 if (accountId == null) { 4180 if (accountId == null) {
3943 throw new core.ArgumentError("Parameter accountId is required."); 4181 throw new core.ArgumentError("Parameter accountId is required.");
3944 } 4182 }
3945 if (webPropertyId == null) { 4183 if (webPropertyId == null) {
3946 throw new core.ArgumentError("Parameter webPropertyId is required."); 4184 throw new core.ArgumentError("Parameter webPropertyId is required.");
3947 } 4185 }
3948 if (customDataSourceId == null) { 4186 if (customDataSourceId == null) {
3949 throw new core.ArgumentError("Parameter customDataSourceId is required."); 4187 throw new core.ArgumentError("Parameter customDataSourceId is required.");
3950 } 4188 }
3951 4189
3952 _downloadOptions = null; 4190 _downloadOptions = null;
3953 4191
3954 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom DataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/deleteU ploadData'; 4192 _url = 'management/accounts/' +
4193 commons.Escaper.ecapeVariable('$accountId') +
4194 '/webproperties/' +
4195 commons.Escaper.ecapeVariable('$webPropertyId') +
4196 '/customDataSources/' +
4197 commons.Escaper.ecapeVariable('$customDataSourceId') +
4198 '/deleteUploadData';
3955 4199
3956 var _response = _requester.request(_url, 4200 var _response = _requester.request(_url, "POST",
3957 "POST", 4201 body: _body,
3958 body: _body, 4202 queryParams: _queryParams,
3959 queryParams: _queryParams, 4203 uploadOptions: _uploadOptions,
3960 uploadOptions: _uploadOptions, 4204 uploadMedia: _uploadMedia,
3961 uploadMedia: _uploadMedia, 4205 downloadOptions: _downloadOptions);
3962 downloadOptions: _downloadOptions);
3963 return _response.then((data) => null); 4206 return _response.then((data) => null);
3964 } 4207 }
3965 4208
3966 /** 4209 /// List uploads to which the user has access.
3967 * List uploads to which the user has access. 4210 ///
3968 * 4211 /// Request parameters:
3969 * Request parameters: 4212 ///
3970 * 4213 /// [accountId] - Account Id for the upload to retrieve.
3971 * [accountId] - Account Id for the upload to retrieve. 4214 /// Value must have pattern "\d+".
3972 * Value must have pattern "\d+". 4215 ///
3973 * 4216 /// [webPropertyId] - Web property Id for the upload to retrieve.
3974 * [webPropertyId] - Web property Id for the upload to retrieve. 4217 /// Value must have pattern "UA-(\d+)-(\d+)".
3975 * Value must have pattern "UA-(\d+)-(\d+)". 4218 ///
3976 * 4219 /// [customDataSourceId] - Custom data source Id for upload to retrieve.
3977 * [customDataSourceId] - Custom data source Id for upload to retrieve. 4220 /// Value must have pattern ".{22}".
3978 * Value must have pattern ".{22}". 4221 ///
3979 * 4222 /// [uploadId] - Upload Id to retrieve.
3980 * [uploadId] - Upload Id to retrieve. 4223 /// Value must have pattern ".{22}".
3981 * Value must have pattern ".{22}". 4224 ///
3982 * 4225 /// Completes with a [Upload].
3983 * Completes with a [Upload]. 4226 ///
3984 * 4227 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
3985 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4228 /// an error.
3986 * error. 4229 ///
3987 * 4230 /// If the used [http.Client] completes with an error when making a REST
3988 * If the used [http.Client] completes with an error when making a REST call, 4231 /// call, this method will complete with the same error.
3989 * this method will complete with the same error. 4232 async.Future<Upload> get(core.String accountId, core.String webPropertyId,
3990 */ 4233 core.String customDataSourceId, core.String uploadId) {
3991 async.Future<Upload> get(core.String accountId, core.String webPropertyId, cor e.String customDataSourceId, core.String uploadId) {
3992 var _url = null; 4234 var _url = null;
3993 var _queryParams = new core.Map(); 4235 var _queryParams = new core.Map();
3994 var _uploadMedia = null; 4236 var _uploadMedia = null;
3995 var _uploadOptions = null; 4237 var _uploadOptions = null;
3996 var _downloadOptions = commons.DownloadOptions.Metadata; 4238 var _downloadOptions = commons.DownloadOptions.Metadata;
3997 var _body = null; 4239 var _body = null;
3998 4240
3999 if (accountId == null) { 4241 if (accountId == null) {
4000 throw new core.ArgumentError("Parameter accountId is required."); 4242 throw new core.ArgumentError("Parameter accountId is required.");
4001 } 4243 }
4002 if (webPropertyId == null) { 4244 if (webPropertyId == null) {
4003 throw new core.ArgumentError("Parameter webPropertyId is required."); 4245 throw new core.ArgumentError("Parameter webPropertyId is required.");
4004 } 4246 }
4005 if (customDataSourceId == null) { 4247 if (customDataSourceId == null) {
4006 throw new core.ArgumentError("Parameter customDataSourceId is required."); 4248 throw new core.ArgumentError("Parameter customDataSourceId is required.");
4007 } 4249 }
4008 if (uploadId == null) { 4250 if (uploadId == null) {
4009 throw new core.ArgumentError("Parameter uploadId is required."); 4251 throw new core.ArgumentError("Parameter uploadId is required.");
4010 } 4252 }
4011 4253
4012 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom DataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploads /' + commons.Escaper.ecapeVariable('$uploadId'); 4254 _url = 'management/accounts/' +
4255 commons.Escaper.ecapeVariable('$accountId') +
4256 '/webproperties/' +
4257 commons.Escaper.ecapeVariable('$webPropertyId') +
4258 '/customDataSources/' +
4259 commons.Escaper.ecapeVariable('$customDataSourceId') +
4260 '/uploads/' +
4261 commons.Escaper.ecapeVariable('$uploadId');
4013 4262
4014 var _response = _requester.request(_url, 4263 var _response = _requester.request(_url, "GET",
4015 "GET", 4264 body: _body,
4016 body: _body, 4265 queryParams: _queryParams,
4017 queryParams: _queryParams, 4266 uploadOptions: _uploadOptions,
4018 uploadOptions: _uploadOptions, 4267 uploadMedia: _uploadMedia,
4019 uploadMedia: _uploadMedia, 4268 downloadOptions: _downloadOptions);
4020 downloadOptions: _downloadOptions);
4021 return _response.then((data) => new Upload.fromJson(data)); 4269 return _response.then((data) => new Upload.fromJson(data));
4022 } 4270 }
4023 4271
4024 /** 4272 /// List uploads to which the user has access.
4025 * List uploads to which the user has access. 4273 ///
4026 * 4274 /// Request parameters:
4027 * Request parameters: 4275 ///
4028 * 4276 /// [accountId] - Account Id for the uploads to retrieve.
4029 * [accountId] - Account Id for the uploads to retrieve. 4277 /// Value must have pattern "\d+".
4030 * Value must have pattern "\d+". 4278 ///
4031 * 4279 /// [webPropertyId] - Web property Id for the uploads to retrieve.
4032 * [webPropertyId] - Web property Id for the uploads to retrieve. 4280 /// Value must have pattern "UA-(\d+)-(\d+)".
4033 * Value must have pattern "UA-(\d+)-(\d+)". 4281 ///
4034 * 4282 /// [customDataSourceId] - Custom data source Id for uploads to retrieve.
4035 * [customDataSourceId] - Custom data source Id for uploads to retrieve. 4283 /// Value must have pattern ".{22}".
4036 * Value must have pattern ".{22}". 4284 ///
4037 * 4285 /// [max_results] - The maximum number of uploads to include in this
4038 * [max_results] - The maximum number of uploads to include in this response. 4286 /// response.
4039 * 4287 ///
4040 * [start_index] - A 1-based index of the first upload to retrieve. Use this 4288 /// [start_index] - A 1-based index of the first upload to retrieve. Use this
4041 * parameter as a pagination mechanism along with the max-results parameter. 4289 /// parameter as a pagination mechanism along with the max-results parameter.
4042 * 4290 ///
4043 * Completes with a [Uploads]. 4291 /// Completes with a [Uploads].
4044 * 4292 ///
4045 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4293 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4046 * error. 4294 /// an error.
4047 * 4295 ///
4048 * If the used [http.Client] completes with an error when making a REST call, 4296 /// If the used [http.Client] completes with an error when making a REST
4049 * this method will complete with the same error. 4297 /// call, this method will complete with the same error.
4050 */ 4298 async.Future<Uploads> list(core.String accountId, core.String webPropertyId,
4051 async.Future<Uploads> list(core.String accountId, core.String webPropertyId, c ore.String customDataSourceId, {core.int max_results, core.int start_index}) { 4299 core.String customDataSourceId,
4300 {core.int max_results, core.int start_index}) {
4052 var _url = null; 4301 var _url = null;
4053 var _queryParams = new core.Map(); 4302 var _queryParams = new core.Map();
4054 var _uploadMedia = null; 4303 var _uploadMedia = null;
4055 var _uploadOptions = null; 4304 var _uploadOptions = null;
4056 var _downloadOptions = commons.DownloadOptions.Metadata; 4305 var _downloadOptions = commons.DownloadOptions.Metadata;
4057 var _body = null; 4306 var _body = null;
4058 4307
4059 if (accountId == null) { 4308 if (accountId == null) {
4060 throw new core.ArgumentError("Parameter accountId is required."); 4309 throw new core.ArgumentError("Parameter accountId is required.");
4061 } 4310 }
4062 if (webPropertyId == null) { 4311 if (webPropertyId == null) {
4063 throw new core.ArgumentError("Parameter webPropertyId is required."); 4312 throw new core.ArgumentError("Parameter webPropertyId is required.");
4064 } 4313 }
4065 if (customDataSourceId == null) { 4314 if (customDataSourceId == null) {
4066 throw new core.ArgumentError("Parameter customDataSourceId is required."); 4315 throw new core.ArgumentError("Parameter customDataSourceId is required.");
4067 } 4316 }
4068 if (max_results != null) { 4317 if (max_results != null) {
4069 _queryParams["max-results"] = ["${max_results}"]; 4318 _queryParams["max-results"] = ["${max_results}"];
4070 } 4319 }
4071 if (start_index != null) { 4320 if (start_index != null) {
4072 _queryParams["start-index"] = ["${start_index}"]; 4321 _queryParams["start-index"] = ["${start_index}"];
4073 } 4322 }
4074 4323
4075 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/custom DataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploads '; 4324 _url = 'management/accounts/' +
4325 commons.Escaper.ecapeVariable('$accountId') +
4326 '/webproperties/' +
4327 commons.Escaper.ecapeVariable('$webPropertyId') +
4328 '/customDataSources/' +
4329 commons.Escaper.ecapeVariable('$customDataSourceId') +
4330 '/uploads';
4076 4331
4077 var _response = _requester.request(_url, 4332 var _response = _requester.request(_url, "GET",
4078 "GET", 4333 body: _body,
4079 body: _body, 4334 queryParams: _queryParams,
4080 queryParams: _queryParams, 4335 uploadOptions: _uploadOptions,
4081 uploadOptions: _uploadOptions, 4336 uploadMedia: _uploadMedia,
4082 uploadMedia: _uploadMedia, 4337 downloadOptions: _downloadOptions);
4083 downloadOptions: _downloadOptions);
4084 return _response.then((data) => new Uploads.fromJson(data)); 4338 return _response.then((data) => new Uploads.fromJson(data));
4085 } 4339 }
4086 4340
4087 /** 4341 /// Upload data for a custom data source.
4088 * Upload data for a custom data source. 4342 ///
4089 * 4343 /// Request parameters:
4090 * Request parameters: 4344 ///
4091 * 4345 /// [accountId] - Account Id associated with the upload.
4092 * [accountId] - Account Id associated with the upload. 4346 /// Value must have pattern "\d+".
4093 * Value must have pattern "\d+". 4347 ///
4094 * 4348 /// [webPropertyId] - Web property UA-string associated with the upload.
4095 * [webPropertyId] - Web property UA-string associated with the upload. 4349 /// Value must have pattern "UA-\d+-\d+".
4096 * Value must have pattern "UA-\d+-\d+". 4350 ///
4097 * 4351 /// [customDataSourceId] - Custom data source Id to which the data being
4098 * [customDataSourceId] - Custom data source Id to which the data being 4352 /// uploaded belongs.
4099 * uploaded belongs. 4353 ///
4100 * 4354 /// [uploadMedia] - The media to upload.
4101 * [uploadMedia] - The media to upload. 4355 ///
4102 * 4356 /// [uploadOptions] - Options for the media upload. Streaming Media without
4103 * [uploadOptions] - Options for the media upload. Streaming Media without the 4357 /// the length being known ahead of time is only supported via resumable
4104 * length being known ahead of time is only supported via resumable uploads. 4358 /// uploads.
4105 * 4359 ///
4106 * Completes with a [Upload]. 4360 /// Completes with a [Upload].
4107 * 4361 ///
4108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4362 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4109 * error. 4363 /// an error.
4110 * 4364 ///
4111 * If the used [http.Client] completes with an error when making a REST call, 4365 /// If the used [http.Client] completes with an error when making a REST
4112 * this method will complete with the same error. 4366 /// call, this method will complete with the same error.
4113 */ 4367 async.Future<Upload> uploadData(core.String accountId,
4114 async.Future<Upload> uploadData(core.String accountId, core.String webProperty Id, core.String customDataSourceId, {commons.UploadOptions uploadOptions : commo ns.UploadOptions.Default, commons.Media uploadMedia}) { 4368 core.String webPropertyId, core.String customDataSourceId,
4369 {commons.UploadOptions uploadOptions: commons.UploadOptions.Default,
4370 commons.Media uploadMedia}) {
4115 var _url = null; 4371 var _url = null;
4116 var _queryParams = new core.Map(); 4372 var _queryParams = new core.Map();
4117 var _uploadMedia = null; 4373 var _uploadMedia = null;
4118 var _uploadOptions = null; 4374 var _uploadOptions = null;
4119 var _downloadOptions = commons.DownloadOptions.Metadata; 4375 var _downloadOptions = commons.DownloadOptions.Metadata;
4120 var _body = null; 4376 var _body = null;
4121 4377
4122 if (accountId == null) { 4378 if (accountId == null) {
4123 throw new core.ArgumentError("Parameter accountId is required."); 4379 throw new core.ArgumentError("Parameter accountId is required.");
4124 } 4380 }
4125 if (webPropertyId == null) { 4381 if (webPropertyId == null) {
4126 throw new core.ArgumentError("Parameter webPropertyId is required."); 4382 throw new core.ArgumentError("Parameter webPropertyId is required.");
4127 } 4383 }
4128 if (customDataSourceId == null) { 4384 if (customDataSourceId == null) {
4129 throw new core.ArgumentError("Parameter customDataSourceId is required."); 4385 throw new core.ArgumentError("Parameter customDataSourceId is required.");
4130 } 4386 }
4131 4387
4132 _uploadMedia = uploadMedia; 4388 _uploadMedia = uploadMedia;
4133 _uploadOptions = uploadOptions; 4389 _uploadOptions = uploadOptions;
4134 4390
4135 if (_uploadMedia == null) { 4391 if (_uploadMedia == null) {
4136 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId' ) + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/cust omDataSources/' + commons.Escaper.ecapeVariable('$customDataSourceId') + '/uploa ds'; 4392 _url = 'management/accounts/' +
4393 commons.Escaper.ecapeVariable('$accountId') +
4394 '/webproperties/' +
4395 commons.Escaper.ecapeVariable('$webPropertyId') +
4396 '/customDataSources/' +
4397 commons.Escaper.ecapeVariable('$customDataSourceId') +
4398 '/uploads';
4137 } else if (_uploadOptions is commons.ResumableUploadOptions) { 4399 } else if (_uploadOptions is commons.ResumableUploadOptions) {
4138 _url = '/resumable/upload/analytics/v3/management/accounts/' + commons.Esc aper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVari able('$webPropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable(' $customDataSourceId') + '/uploads'; 4400 _url = '/resumable/upload/analytics/v3/management/accounts/' +
4401 commons.Escaper.ecapeVariable('$accountId') +
4402 '/webproperties/' +
4403 commons.Escaper.ecapeVariable('$webPropertyId') +
4404 '/customDataSources/' +
4405 commons.Escaper.ecapeVariable('$customDataSourceId') +
4406 '/uploads';
4139 } else { 4407 } else {
4140 _url = '/upload/analytics/v3/management/accounts/' + commons.Escaper.ecape Variable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$web PropertyId') + '/customDataSources/' + commons.Escaper.ecapeVariable('$customDat aSourceId') + '/uploads'; 4408 _url = '/upload/analytics/v3/management/accounts/' +
4409 commons.Escaper.ecapeVariable('$accountId') +
4410 '/webproperties/' +
4411 commons.Escaper.ecapeVariable('$webPropertyId') +
4412 '/customDataSources/' +
4413 commons.Escaper.ecapeVariable('$customDataSourceId') +
4414 '/uploads';
4141 } 4415 }
4142 4416
4143 4417 var _response = _requester.request(_url, "POST",
4144 var _response = _requester.request(_url, 4418 body: _body,
4145 "POST", 4419 queryParams: _queryParams,
4146 body: _body, 4420 uploadOptions: _uploadOptions,
4147 queryParams: _queryParams, 4421 uploadMedia: _uploadMedia,
4148 uploadOptions: _uploadOptions, 4422 downloadOptions: _downloadOptions);
4149 uploadMedia: _uploadMedia,
4150 downloadOptions: _downloadOptions);
4151 return _response.then((data) => new Upload.fromJson(data)); 4423 return _response.then((data) => new Upload.fromJson(data));
4152 } 4424 }
4153
4154 } 4425 }
4155 4426
4156
4157 class ManagementWebPropertyAdWordsLinksResourceApi { 4427 class ManagementWebPropertyAdWordsLinksResourceApi {
4158 final commons.ApiRequester _requester; 4428 final commons.ApiRequester _requester;
4159 4429
4160 ManagementWebPropertyAdWordsLinksResourceApi(commons.ApiRequester client) : 4430 ManagementWebPropertyAdWordsLinksResourceApi(commons.ApiRequester client)
4161 _requester = client; 4431 : _requester = client;
4162 4432
4163 /** 4433 /// Deletes a web property-AdWords link.
4164 * Deletes a web property-AdWords link. 4434 ///
4165 * 4435 /// Request parameters:
4166 * Request parameters: 4436 ///
4167 * 4437 /// [accountId] - ID of the account which the given web property belongs to.
4168 * [accountId] - ID of the account which the given web property belongs to. 4438 ///
4169 * 4439 /// [webPropertyId] - Web property ID to delete the AdWords link for.
4170 * [webPropertyId] - Web property ID to delete the AdWords link for. 4440 ///
4171 * 4441 /// [webPropertyAdWordsLinkId] - Web property AdWords link ID.
4172 * [webPropertyAdWordsLinkId] - Web property AdWords link ID. 4442 ///
4173 * 4443 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4174 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4444 /// an error.
4175 * error. 4445 ///
4176 * 4446 /// If the used [http.Client] completes with an error when making a REST
4177 * If the used [http.Client] completes with an error when making a REST call, 4447 /// call, this method will complete with the same error.
4178 * this method will complete with the same error. 4448 async.Future delete(core.String accountId, core.String webPropertyId,
4179 */ 4449 core.String webPropertyAdWordsLinkId) {
4180 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing webPropertyAdWordsLinkId) {
4181 var _url = null; 4450 var _url = null;
4182 var _queryParams = new core.Map(); 4451 var _queryParams = new core.Map();
4183 var _uploadMedia = null; 4452 var _uploadMedia = null;
4184 var _uploadOptions = null; 4453 var _uploadOptions = null;
4185 var _downloadOptions = commons.DownloadOptions.Metadata; 4454 var _downloadOptions = commons.DownloadOptions.Metadata;
4186 var _body = null; 4455 var _body = null;
4187 4456
4188 if (accountId == null) { 4457 if (accountId == null) {
4189 throw new core.ArgumentError("Parameter accountId is required."); 4458 throw new core.ArgumentError("Parameter accountId is required.");
4190 } 4459 }
4191 if (webPropertyId == null) { 4460 if (webPropertyId == null) {
4192 throw new core.ArgumentError("Parameter webPropertyId is required."); 4461 throw new core.ArgumentError("Parameter webPropertyId is required.");
4193 } 4462 }
4194 if (webPropertyAdWordsLinkId == null) { 4463 if (webPropertyAdWordsLinkId == null) {
4195 throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is requir ed."); 4464 throw new core.ArgumentError(
4465 "Parameter webPropertyAdWordsLinkId is required.");
4196 } 4466 }
4197 4467
4198 _downloadOptions = null; 4468 _downloadOptions = null;
4199 4469
4200 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity AdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId'); 4470 _url = 'management/accounts/' +
4471 commons.Escaper.ecapeVariable('$accountId') +
4472 '/webproperties/' +
4473 commons.Escaper.ecapeVariable('$webPropertyId') +
4474 '/entityAdWordsLinks/' +
4475 commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
4201 4476
4202 var _response = _requester.request(_url, 4477 var _response = _requester.request(_url, "DELETE",
4203 "DELETE", 4478 body: _body,
4204 body: _body, 4479 queryParams: _queryParams,
4205 queryParams: _queryParams, 4480 uploadOptions: _uploadOptions,
4206 uploadOptions: _uploadOptions, 4481 uploadMedia: _uploadMedia,
4207 uploadMedia: _uploadMedia, 4482 downloadOptions: _downloadOptions);
4208 downloadOptions: _downloadOptions);
4209 return _response.then((data) => null); 4483 return _response.then((data) => null);
4210 } 4484 }
4211 4485
4212 /** 4486 /// Returns a web property-AdWords link to which the user has access.
4213 * Returns a web property-AdWords link to which the user has access. 4487 ///
4214 * 4488 /// Request parameters:
4215 * Request parameters: 4489 ///
4216 * 4490 /// [accountId] - ID of the account which the given web property belongs to.
4217 * [accountId] - ID of the account which the given web property belongs to. 4491 ///
4218 * 4492 /// [webPropertyId] - Web property ID to retrieve the AdWords link for.
4219 * [webPropertyId] - Web property ID to retrieve the AdWords link for. 4493 ///
4220 * 4494 /// [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
4221 * [webPropertyAdWordsLinkId] - Web property-AdWords link ID. 4495 ///
4222 * 4496 /// Completes with a [EntityAdWordsLink].
4223 * Completes with a [EntityAdWordsLink]. 4497 ///
4224 * 4498 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4225 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4499 /// an error.
4226 * error. 4500 ///
4227 * 4501 /// If the used [http.Client] completes with an error when making a REST
4228 * If the used [http.Client] completes with an error when making a REST call, 4502 /// call, this method will complete with the same error.
4229 * this method will complete with the same error. 4503 async.Future<EntityAdWordsLink> get(core.String accountId,
4230 */ 4504 core.String webPropertyId, core.String webPropertyAdWordsLinkId) {
4231 async.Future<EntityAdWordsLink> get(core.String accountId, core.String webProp ertyId, core.String webPropertyAdWordsLinkId) {
4232 var _url = null; 4505 var _url = null;
4233 var _queryParams = new core.Map(); 4506 var _queryParams = new core.Map();
4234 var _uploadMedia = null; 4507 var _uploadMedia = null;
4235 var _uploadOptions = null; 4508 var _uploadOptions = null;
4236 var _downloadOptions = commons.DownloadOptions.Metadata; 4509 var _downloadOptions = commons.DownloadOptions.Metadata;
4237 var _body = null; 4510 var _body = null;
4238 4511
4239 if (accountId == null) { 4512 if (accountId == null) {
4240 throw new core.ArgumentError("Parameter accountId is required."); 4513 throw new core.ArgumentError("Parameter accountId is required.");
4241 } 4514 }
4242 if (webPropertyId == null) { 4515 if (webPropertyId == null) {
4243 throw new core.ArgumentError("Parameter webPropertyId is required."); 4516 throw new core.ArgumentError("Parameter webPropertyId is required.");
4244 } 4517 }
4245 if (webPropertyAdWordsLinkId == null) { 4518 if (webPropertyAdWordsLinkId == null) {
4246 throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is requir ed."); 4519 throw new core.ArgumentError(
4520 "Parameter webPropertyAdWordsLinkId is required.");
4247 } 4521 }
4248 4522
4249 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity AdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId'); 4523 _url = 'management/accounts/' +
4524 commons.Escaper.ecapeVariable('$accountId') +
4525 '/webproperties/' +
4526 commons.Escaper.ecapeVariable('$webPropertyId') +
4527 '/entityAdWordsLinks/' +
4528 commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
4250 4529
4251 var _response = _requester.request(_url, 4530 var _response = _requester.request(_url, "GET",
4252 "GET", 4531 body: _body,
4253 body: _body, 4532 queryParams: _queryParams,
4254 queryParams: _queryParams, 4533 uploadOptions: _uploadOptions,
4255 uploadOptions: _uploadOptions, 4534 uploadMedia: _uploadMedia,
4256 uploadMedia: _uploadMedia, 4535 downloadOptions: _downloadOptions);
4257 downloadOptions: _downloadOptions);
4258 return _response.then((data) => new EntityAdWordsLink.fromJson(data)); 4536 return _response.then((data) => new EntityAdWordsLink.fromJson(data));
4259 } 4537 }
4260 4538
4261 /** 4539 /// Creates a webProperty-AdWords link.
4262 * Creates a webProperty-AdWords link. 4540 ///
4263 * 4541 /// [request] - The metadata request object.
4264 * [request] - The metadata request object. 4542 ///
4265 * 4543 /// Request parameters:
4266 * Request parameters: 4544 ///
4267 * 4545 /// [accountId] - ID of the Google Analytics account to create the link for.
4268 * [accountId] - ID of the Google Analytics account to create the link for. 4546 ///
4269 * 4547 /// [webPropertyId] - Web property ID to create the link for.
4270 * [webPropertyId] - Web property ID to create the link for. 4548 ///
4271 * 4549 /// Completes with a [EntityAdWordsLink].
4272 * Completes with a [EntityAdWordsLink]. 4550 ///
4273 * 4551 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4274 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4552 /// an error.
4275 * error. 4553 ///
4276 * 4554 /// If the used [http.Client] completes with an error when making a REST
4277 * If the used [http.Client] completes with an error when making a REST call, 4555 /// call, this method will complete with the same error.
4278 * this method will complete with the same error. 4556 async.Future<EntityAdWordsLink> insert(EntityAdWordsLink request,
4279 */ 4557 core.String accountId, core.String webPropertyId) {
4280 async.Future<EntityAdWordsLink> insert(EntityAdWordsLink request, core.String accountId, core.String webPropertyId) {
4281 var _url = null; 4558 var _url = null;
4282 var _queryParams = new core.Map(); 4559 var _queryParams = new core.Map();
4283 var _uploadMedia = null; 4560 var _uploadMedia = null;
4284 var _uploadOptions = null; 4561 var _uploadOptions = null;
4285 var _downloadOptions = commons.DownloadOptions.Metadata; 4562 var _downloadOptions = commons.DownloadOptions.Metadata;
4286 var _body = null; 4563 var _body = null;
4287 4564
4288 if (request != null) { 4565 if (request != null) {
4289 _body = convert.JSON.encode((request).toJson()); 4566 _body = convert.JSON.encode((request).toJson());
4290 } 4567 }
4291 if (accountId == null) { 4568 if (accountId == null) {
4292 throw new core.ArgumentError("Parameter accountId is required."); 4569 throw new core.ArgumentError("Parameter accountId is required.");
4293 } 4570 }
4294 if (webPropertyId == null) { 4571 if (webPropertyId == null) {
4295 throw new core.ArgumentError("Parameter webPropertyId is required."); 4572 throw new core.ArgumentError("Parameter webPropertyId is required.");
4296 } 4573 }
4297 4574
4298 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity AdWordsLinks'; 4575 _url = 'management/accounts/' +
4576 commons.Escaper.ecapeVariable('$accountId') +
4577 '/webproperties/' +
4578 commons.Escaper.ecapeVariable('$webPropertyId') +
4579 '/entityAdWordsLinks';
4299 4580
4300 var _response = _requester.request(_url, 4581 var _response = _requester.request(_url, "POST",
4301 "POST", 4582 body: _body,
4302 body: _body, 4583 queryParams: _queryParams,
4303 queryParams: _queryParams, 4584 uploadOptions: _uploadOptions,
4304 uploadOptions: _uploadOptions, 4585 uploadMedia: _uploadMedia,
4305 uploadMedia: _uploadMedia, 4586 downloadOptions: _downloadOptions);
4306 downloadOptions: _downloadOptions);
4307 return _response.then((data) => new EntityAdWordsLink.fromJson(data)); 4587 return _response.then((data) => new EntityAdWordsLink.fromJson(data));
4308 } 4588 }
4309 4589
4310 /** 4590 /// Lists webProperty-AdWords links for a given web property.
4311 * Lists webProperty-AdWords links for a given web property. 4591 ///
4312 * 4592 /// Request parameters:
4313 * Request parameters: 4593 ///
4314 * 4594 /// [accountId] - ID of the account which the given web property belongs to.
4315 * [accountId] - ID of the account which the given web property belongs to. 4595 /// Value must have pattern "\d+".
4316 * Value must have pattern "\d+". 4596 ///
4317 * 4597 /// [webPropertyId] - Web property ID to retrieve the AdWords links for.
4318 * [webPropertyId] - Web property ID to retrieve the AdWords links for. 4598 ///
4319 * 4599 /// [max_results] - The maximum number of webProperty-AdWords links to
4320 * [max_results] - The maximum number of webProperty-AdWords links to include 4600 /// include in this response.
4321 * in this response. 4601 ///
4322 * 4602 /// [start_index] - An index of the first webProperty-AdWords link to
4323 * [start_index] - An index of the first webProperty-AdWords link to retrieve. 4603 /// retrieve. Use this parameter as a pagination mechanism along with the
4324 * Use this parameter as a pagination mechanism along with the max-results 4604 /// max-results parameter.
4325 * parameter. 4605 ///
4326 * 4606 /// Completes with a [EntityAdWordsLinks].
4327 * Completes with a [EntityAdWordsLinks]. 4607 ///
4328 * 4608 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4329 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4609 /// an error.
4330 * error. 4610 ///
4331 * 4611 /// If the used [http.Client] completes with an error when making a REST
4332 * If the used [http.Client] completes with an error when making a REST call, 4612 /// call, this method will complete with the same error.
4333 * this method will complete with the same error. 4613 async.Future<EntityAdWordsLinks> list(
4334 */ 4614 core.String accountId, core.String webPropertyId,
4335 async.Future<EntityAdWordsLinks> list(core.String accountId, core.String webPr opertyId, {core.int max_results, core.int start_index}) { 4615 {core.int max_results, core.int start_index}) {
4336 var _url = null; 4616 var _url = null;
4337 var _queryParams = new core.Map(); 4617 var _queryParams = new core.Map();
4338 var _uploadMedia = null; 4618 var _uploadMedia = null;
4339 var _uploadOptions = null; 4619 var _uploadOptions = null;
4340 var _downloadOptions = commons.DownloadOptions.Metadata; 4620 var _downloadOptions = commons.DownloadOptions.Metadata;
4341 var _body = null; 4621 var _body = null;
4342 4622
4343 if (accountId == null) { 4623 if (accountId == null) {
4344 throw new core.ArgumentError("Parameter accountId is required."); 4624 throw new core.ArgumentError("Parameter accountId is required.");
4345 } 4625 }
4346 if (webPropertyId == null) { 4626 if (webPropertyId == null) {
4347 throw new core.ArgumentError("Parameter webPropertyId is required."); 4627 throw new core.ArgumentError("Parameter webPropertyId is required.");
4348 } 4628 }
4349 if (max_results != null) { 4629 if (max_results != null) {
4350 _queryParams["max-results"] = ["${max_results}"]; 4630 _queryParams["max-results"] = ["${max_results}"];
4351 } 4631 }
4352 if (start_index != null) { 4632 if (start_index != null) {
4353 _queryParams["start-index"] = ["${start_index}"]; 4633 _queryParams["start-index"] = ["${start_index}"];
4354 } 4634 }
4355 4635
4356 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity AdWordsLinks'; 4636 _url = 'management/accounts/' +
4637 commons.Escaper.ecapeVariable('$accountId') +
4638 '/webproperties/' +
4639 commons.Escaper.ecapeVariable('$webPropertyId') +
4640 '/entityAdWordsLinks';
4357 4641
4358 var _response = _requester.request(_url, 4642 var _response = _requester.request(_url, "GET",
4359 "GET", 4643 body: _body,
4360 body: _body, 4644 queryParams: _queryParams,
4361 queryParams: _queryParams, 4645 uploadOptions: _uploadOptions,
4362 uploadOptions: _uploadOptions, 4646 uploadMedia: _uploadMedia,
4363 uploadMedia: _uploadMedia, 4647 downloadOptions: _downloadOptions);
4364 downloadOptions: _downloadOptions);
4365 return _response.then((data) => new EntityAdWordsLinks.fromJson(data)); 4648 return _response.then((data) => new EntityAdWordsLinks.fromJson(data));
4366 } 4649 }
4367 4650
4368 /** 4651 /// Updates an existing webProperty-AdWords link. This method supports patch
4369 * Updates an existing webProperty-AdWords link. This method supports patch 4652 /// semantics.
4370 * semantics. 4653 ///
4371 * 4654 /// [request] - The metadata request object.
4372 * [request] - The metadata request object. 4655 ///
4373 * 4656 /// Request parameters:
4374 * Request parameters: 4657 ///
4375 * 4658 /// [accountId] - ID of the account which the given web property belongs to.
4376 * [accountId] - ID of the account which the given web property belongs to. 4659 ///
4377 * 4660 /// [webPropertyId] - Web property ID to retrieve the AdWords link for.
4378 * [webPropertyId] - Web property ID to retrieve the AdWords link for. 4661 ///
4379 * 4662 /// [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
4380 * [webPropertyAdWordsLinkId] - Web property-AdWords link ID. 4663 ///
4381 * 4664 /// Completes with a [EntityAdWordsLink].
4382 * Completes with a [EntityAdWordsLink]. 4665 ///
4383 * 4666 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4384 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4667 /// an error.
4385 * error. 4668 ///
4386 * 4669 /// If the used [http.Client] completes with an error when making a REST
4387 * If the used [http.Client] completes with an error when making a REST call, 4670 /// call, this method will complete with the same error.
4388 * this method will complete with the same error. 4671 async.Future<EntityAdWordsLink> patch(
4389 */ 4672 EntityAdWordsLink request,
4390 async.Future<EntityAdWordsLink> patch(EntityAdWordsLink request, core.String a ccountId, core.String webPropertyId, core.String webPropertyAdWordsLinkId) { 4673 core.String accountId,
4674 core.String webPropertyId,
4675 core.String webPropertyAdWordsLinkId) {
4391 var _url = null; 4676 var _url = null;
4392 var _queryParams = new core.Map(); 4677 var _queryParams = new core.Map();
4393 var _uploadMedia = null; 4678 var _uploadMedia = null;
4394 var _uploadOptions = null; 4679 var _uploadOptions = null;
4395 var _downloadOptions = commons.DownloadOptions.Metadata; 4680 var _downloadOptions = commons.DownloadOptions.Metadata;
4396 var _body = null; 4681 var _body = null;
4397 4682
4398 if (request != null) { 4683 if (request != null) {
4399 _body = convert.JSON.encode((request).toJson()); 4684 _body = convert.JSON.encode((request).toJson());
4400 } 4685 }
4401 if (accountId == null) { 4686 if (accountId == null) {
4402 throw new core.ArgumentError("Parameter accountId is required."); 4687 throw new core.ArgumentError("Parameter accountId is required.");
4403 } 4688 }
4404 if (webPropertyId == null) { 4689 if (webPropertyId == null) {
4405 throw new core.ArgumentError("Parameter webPropertyId is required."); 4690 throw new core.ArgumentError("Parameter webPropertyId is required.");
4406 } 4691 }
4407 if (webPropertyAdWordsLinkId == null) { 4692 if (webPropertyAdWordsLinkId == null) {
4408 throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is requir ed."); 4693 throw new core.ArgumentError(
4694 "Parameter webPropertyAdWordsLinkId is required.");
4409 } 4695 }
4410 4696
4411 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity AdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId'); 4697 _url = 'management/accounts/' +
4698 commons.Escaper.ecapeVariable('$accountId') +
4699 '/webproperties/' +
4700 commons.Escaper.ecapeVariable('$webPropertyId') +
4701 '/entityAdWordsLinks/' +
4702 commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
4412 4703
4413 var _response = _requester.request(_url, 4704 var _response = _requester.request(_url, "PATCH",
4414 "PATCH", 4705 body: _body,
4415 body: _body, 4706 queryParams: _queryParams,
4416 queryParams: _queryParams, 4707 uploadOptions: _uploadOptions,
4417 uploadOptions: _uploadOptions, 4708 uploadMedia: _uploadMedia,
4418 uploadMedia: _uploadMedia, 4709 downloadOptions: _downloadOptions);
4419 downloadOptions: _downloadOptions);
4420 return _response.then((data) => new EntityAdWordsLink.fromJson(data)); 4710 return _response.then((data) => new EntityAdWordsLink.fromJson(data));
4421 } 4711 }
4422 4712
4423 /** 4713 /// Updates an existing webProperty-AdWords link.
4424 * Updates an existing webProperty-AdWords link. 4714 ///
4425 * 4715 /// [request] - The metadata request object.
4426 * [request] - The metadata request object. 4716 ///
4427 * 4717 /// Request parameters:
4428 * Request parameters: 4718 ///
4429 * 4719 /// [accountId] - ID of the account which the given web property belongs to.
4430 * [accountId] - ID of the account which the given web property belongs to. 4720 ///
4431 * 4721 /// [webPropertyId] - Web property ID to retrieve the AdWords link for.
4432 * [webPropertyId] - Web property ID to retrieve the AdWords link for. 4722 ///
4433 * 4723 /// [webPropertyAdWordsLinkId] - Web property-AdWords link ID.
4434 * [webPropertyAdWordsLinkId] - Web property-AdWords link ID. 4724 ///
4435 * 4725 /// Completes with a [EntityAdWordsLink].
4436 * Completes with a [EntityAdWordsLink]. 4726 ///
4437 * 4727 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4438 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4728 /// an error.
4439 * error. 4729 ///
4440 * 4730 /// If the used [http.Client] completes with an error when making a REST
4441 * If the used [http.Client] completes with an error when making a REST call, 4731 /// call, this method will complete with the same error.
4442 * this method will complete with the same error. 4732 async.Future<EntityAdWordsLink> update(
4443 */ 4733 EntityAdWordsLink request,
4444 async.Future<EntityAdWordsLink> update(EntityAdWordsLink request, core.String accountId, core.String webPropertyId, core.String webPropertyAdWordsLinkId) { 4734 core.String accountId,
4735 core.String webPropertyId,
4736 core.String webPropertyAdWordsLinkId) {
4445 var _url = null; 4737 var _url = null;
4446 var _queryParams = new core.Map(); 4738 var _queryParams = new core.Map();
4447 var _uploadMedia = null; 4739 var _uploadMedia = null;
4448 var _uploadOptions = null; 4740 var _uploadOptions = null;
4449 var _downloadOptions = commons.DownloadOptions.Metadata; 4741 var _downloadOptions = commons.DownloadOptions.Metadata;
4450 var _body = null; 4742 var _body = null;
4451 4743
4452 if (request != null) { 4744 if (request != null) {
4453 _body = convert.JSON.encode((request).toJson()); 4745 _body = convert.JSON.encode((request).toJson());
4454 } 4746 }
4455 if (accountId == null) { 4747 if (accountId == null) {
4456 throw new core.ArgumentError("Parameter accountId is required."); 4748 throw new core.ArgumentError("Parameter accountId is required.");
4457 } 4749 }
4458 if (webPropertyId == null) { 4750 if (webPropertyId == null) {
4459 throw new core.ArgumentError("Parameter webPropertyId is required."); 4751 throw new core.ArgumentError("Parameter webPropertyId is required.");
4460 } 4752 }
4461 if (webPropertyAdWordsLinkId == null) { 4753 if (webPropertyAdWordsLinkId == null) {
4462 throw new core.ArgumentError("Parameter webPropertyAdWordsLinkId is requir ed."); 4754 throw new core.ArgumentError(
4755 "Parameter webPropertyAdWordsLinkId is required.");
4463 } 4756 }
4464 4757
4465 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity AdWordsLinks/' + commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId'); 4758 _url = 'management/accounts/' +
4759 commons.Escaper.ecapeVariable('$accountId') +
4760 '/webproperties/' +
4761 commons.Escaper.ecapeVariable('$webPropertyId') +
4762 '/entityAdWordsLinks/' +
4763 commons.Escaper.ecapeVariable('$webPropertyAdWordsLinkId');
4466 4764
4467 var _response = _requester.request(_url, 4765 var _response = _requester.request(_url, "PUT",
4468 "PUT", 4766 body: _body,
4469 body: _body, 4767 queryParams: _queryParams,
4470 queryParams: _queryParams, 4768 uploadOptions: _uploadOptions,
4471 uploadOptions: _uploadOptions, 4769 uploadMedia: _uploadMedia,
4472 uploadMedia: _uploadMedia, 4770 downloadOptions: _downloadOptions);
4473 downloadOptions: _downloadOptions);
4474 return _response.then((data) => new EntityAdWordsLink.fromJson(data)); 4771 return _response.then((data) => new EntityAdWordsLink.fromJson(data));
4475 } 4772 }
4476
4477 } 4773 }
4478 4774
4479
4480 class ManagementWebpropertiesResourceApi { 4775 class ManagementWebpropertiesResourceApi {
4481 final commons.ApiRequester _requester; 4776 final commons.ApiRequester _requester;
4482 4777
4483 ManagementWebpropertiesResourceApi(commons.ApiRequester client) : 4778 ManagementWebpropertiesResourceApi(commons.ApiRequester client)
4484 _requester = client; 4779 : _requester = client;
4485 4780
4486 /** 4781 /// Gets a web property to which the user has access.
4487 * Gets a web property to which the user has access. 4782 ///
4488 * 4783 /// Request parameters:
4489 * Request parameters: 4784 ///
4490 * 4785 /// [accountId] - Account ID to retrieve the web property for.
4491 * [accountId] - Account ID to retrieve the web property for. 4786 /// Value must have pattern "[0-9]+".
4492 * Value must have pattern "[0-9]+". 4787 ///
4493 * 4788 /// [webPropertyId] - ID to retrieve the web property for.
4494 * [webPropertyId] - ID to retrieve the web property for. 4789 /// Value must have pattern "UA-[0-9]+-[0-9]+".
4495 * Value must have pattern "UA-[0-9]+-[0-9]+". 4790 ///
4496 * 4791 /// Completes with a [Webproperty].
4497 * Completes with a [Webproperty]. 4792 ///
4498 * 4793 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4499 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4794 /// an error.
4500 * error. 4795 ///
4501 * 4796 /// If the used [http.Client] completes with an error when making a REST
4502 * If the used [http.Client] completes with an error when making a REST call, 4797 /// call, this method will complete with the same error.
4503 * this method will complete with the same error. 4798 async.Future<Webproperty> get(
4504 */ 4799 core.String accountId, core.String webPropertyId) {
4505 async.Future<Webproperty> get(core.String accountId, core.String webPropertyId ) {
4506 var _url = null; 4800 var _url = null;
4507 var _queryParams = new core.Map(); 4801 var _queryParams = new core.Map();
4508 var _uploadMedia = null; 4802 var _uploadMedia = null;
4509 var _uploadOptions = null; 4803 var _uploadOptions = null;
4510 var _downloadOptions = commons.DownloadOptions.Metadata; 4804 var _downloadOptions = commons.DownloadOptions.Metadata;
4511 var _body = null; 4805 var _body = null;
4512 4806
4513 if (accountId == null) { 4807 if (accountId == null) {
4514 throw new core.ArgumentError("Parameter accountId is required."); 4808 throw new core.ArgumentError("Parameter accountId is required.");
4515 } 4809 }
4516 if (webPropertyId == null) { 4810 if (webPropertyId == null) {
4517 throw new core.ArgumentError("Parameter webPropertyId is required."); 4811 throw new core.ArgumentError("Parameter webPropertyId is required.");
4518 } 4812 }
4519 4813
4520 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId'); 4814 _url = 'management/accounts/' +
4815 commons.Escaper.ecapeVariable('$accountId') +
4816 '/webproperties/' +
4817 commons.Escaper.ecapeVariable('$webPropertyId');
4521 4818
4522 var _response = _requester.request(_url, 4819 var _response = _requester.request(_url, "GET",
4523 "GET", 4820 body: _body,
4524 body: _body, 4821 queryParams: _queryParams,
4525 queryParams: _queryParams, 4822 uploadOptions: _uploadOptions,
4526 uploadOptions: _uploadOptions, 4823 uploadMedia: _uploadMedia,
4527 uploadMedia: _uploadMedia, 4824 downloadOptions: _downloadOptions);
4528 downloadOptions: _downloadOptions);
4529 return _response.then((data) => new Webproperty.fromJson(data)); 4825 return _response.then((data) => new Webproperty.fromJson(data));
4530 } 4826 }
4531 4827
4532 /** 4828 /// Create a new property if the account has fewer than 20 properties. Web
4533 * Create a new property if the account has fewer than 20 properties. Web 4829 /// properties are visible in the Google Analytics interface only if they
4534 * properties are visible in the Google Analytics interface only if they have 4830 /// have at least one profile.
4535 * at least one profile. 4831 ///
4536 * 4832 /// [request] - The metadata request object.
4537 * [request] - The metadata request object. 4833 ///
4538 * 4834 /// Request parameters:
4539 * Request parameters: 4835 ///
4540 * 4836 /// [accountId] - Account ID to create the web property for.
4541 * [accountId] - Account ID to create the web property for. 4837 ///
4542 * 4838 /// Completes with a [Webproperty].
4543 * Completes with a [Webproperty]. 4839 ///
4544 * 4840 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4545 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4841 /// an error.
4546 * error. 4842 ///
4547 * 4843 /// If the used [http.Client] completes with an error when making a REST
4548 * If the used [http.Client] completes with an error when making a REST call, 4844 /// call, this method will complete with the same error.
4549 * this method will complete with the same error.
4550 */
4551 async.Future<Webproperty> insert(Webproperty request, core.String accountId) { 4845 async.Future<Webproperty> insert(Webproperty request, core.String accountId) {
4552 var _url = null; 4846 var _url = null;
4553 var _queryParams = new core.Map(); 4847 var _queryParams = new core.Map();
4554 var _uploadMedia = null; 4848 var _uploadMedia = null;
4555 var _uploadOptions = null; 4849 var _uploadOptions = null;
4556 var _downloadOptions = commons.DownloadOptions.Metadata; 4850 var _downloadOptions = commons.DownloadOptions.Metadata;
4557 var _body = null; 4851 var _body = null;
4558 4852
4559 if (request != null) { 4853 if (request != null) {
4560 _body = convert.JSON.encode((request).toJson()); 4854 _body = convert.JSON.encode((request).toJson());
4561 } 4855 }
4562 if (accountId == null) { 4856 if (accountId == null) {
4563 throw new core.ArgumentError("Parameter accountId is required."); 4857 throw new core.ArgumentError("Parameter accountId is required.");
4564 } 4858 }
4565 4859
4566 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties'; 4860 _url = 'management/accounts/' +
4861 commons.Escaper.ecapeVariable('$accountId') +
4862 '/webproperties';
4567 4863
4568 var _response = _requester.request(_url, 4864 var _response = _requester.request(_url, "POST",
4569 "POST", 4865 body: _body,
4570 body: _body, 4866 queryParams: _queryParams,
4571 queryParams: _queryParams, 4867 uploadOptions: _uploadOptions,
4572 uploadOptions: _uploadOptions, 4868 uploadMedia: _uploadMedia,
4573 uploadMedia: _uploadMedia, 4869 downloadOptions: _downloadOptions);
4574 downloadOptions: _downloadOptions);
4575 return _response.then((data) => new Webproperty.fromJson(data)); 4870 return _response.then((data) => new Webproperty.fromJson(data));
4576 } 4871 }
4577 4872
4578 /** 4873 /// Lists web properties to which the user has access.
4579 * Lists web properties to which the user has access. 4874 ///
4580 * 4875 /// Request parameters:
4581 * Request parameters: 4876 ///
4582 * 4877 /// [accountId] - Account ID to retrieve web properties for. Can either be a
4583 * [accountId] - Account ID to retrieve web properties for. Can either be a 4878 /// specific account ID or '~all', which refers to all the accounts that user
4584 * specific account ID or '~all', which refers to all the accounts that user 4879 /// has access to.
4585 * has access to. 4880 ///
4586 * 4881 /// [max_results] - The maximum number of web properties to include in this
4587 * [max_results] - The maximum number of web properties to include in this 4882 /// response.
4588 * response. 4883 ///
4589 * 4884 /// [start_index] - An index of the first entity to retrieve. Use this
4590 * [start_index] - An index of the first entity to retrieve. Use this 4885 /// parameter as a pagination mechanism along with the max-results parameter.
4591 * parameter as a pagination mechanism along with the max-results parameter. 4886 ///
4592 * 4887 /// Completes with a [Webproperties].
4593 * Completes with a [Webproperties]. 4888 ///
4594 * 4889 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4595 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4890 /// an error.
4596 * error. 4891 ///
4597 * 4892 /// If the used [http.Client] completes with an error when making a REST
4598 * If the used [http.Client] completes with an error when making a REST call, 4893 /// call, this method will complete with the same error.
4599 * this method will complete with the same error. 4894 async.Future<Webproperties> list(core.String accountId,
4600 */ 4895 {core.int max_results, core.int start_index}) {
4601 async.Future<Webproperties> list(core.String accountId, {core.int max_results, core.int start_index}) {
4602 var _url = null; 4896 var _url = null;
4603 var _queryParams = new core.Map(); 4897 var _queryParams = new core.Map();
4604 var _uploadMedia = null; 4898 var _uploadMedia = null;
4605 var _uploadOptions = null; 4899 var _uploadOptions = null;
4606 var _downloadOptions = commons.DownloadOptions.Metadata; 4900 var _downloadOptions = commons.DownloadOptions.Metadata;
4607 var _body = null; 4901 var _body = null;
4608 4902
4609 if (accountId == null) { 4903 if (accountId == null) {
4610 throw new core.ArgumentError("Parameter accountId is required."); 4904 throw new core.ArgumentError("Parameter accountId is required.");
4611 } 4905 }
4612 if (max_results != null) { 4906 if (max_results != null) {
4613 _queryParams["max-results"] = ["${max_results}"]; 4907 _queryParams["max-results"] = ["${max_results}"];
4614 } 4908 }
4615 if (start_index != null) { 4909 if (start_index != null) {
4616 _queryParams["start-index"] = ["${start_index}"]; 4910 _queryParams["start-index"] = ["${start_index}"];
4617 } 4911 }
4618 4912
4619 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties'; 4913 _url = 'management/accounts/' +
4914 commons.Escaper.ecapeVariable('$accountId') +
4915 '/webproperties';
4620 4916
4621 var _response = _requester.request(_url, 4917 var _response = _requester.request(_url, "GET",
4622 "GET", 4918 body: _body,
4623 body: _body, 4919 queryParams: _queryParams,
4624 queryParams: _queryParams, 4920 uploadOptions: _uploadOptions,
4625 uploadOptions: _uploadOptions, 4921 uploadMedia: _uploadMedia,
4626 uploadMedia: _uploadMedia, 4922 downloadOptions: _downloadOptions);
4627 downloadOptions: _downloadOptions);
4628 return _response.then((data) => new Webproperties.fromJson(data)); 4923 return _response.then((data) => new Webproperties.fromJson(data));
4629 } 4924 }
4630 4925
4631 /** 4926 /// Updates an existing web property. This method supports patch semantics.
4632 * Updates an existing web property. This method supports patch semantics. 4927 ///
4633 * 4928 /// [request] - The metadata request object.
4634 * [request] - The metadata request object. 4929 ///
4635 * 4930 /// Request parameters:
4636 * Request parameters: 4931 ///
4637 * 4932 /// [accountId] - Account ID to which the web property belongs
4638 * [accountId] - Account ID to which the web property belongs 4933 ///
4639 * 4934 /// [webPropertyId] - Web property ID
4640 * [webPropertyId] - Web property ID 4935 ///
4641 * 4936 /// Completes with a [Webproperty].
4642 * Completes with a [Webproperty]. 4937 ///
4643 * 4938 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4939 /// an error.
4645 * error. 4940 ///
4646 * 4941 /// If the used [http.Client] completes with an error when making a REST
4647 * If the used [http.Client] completes with an error when making a REST call, 4942 /// call, this method will complete with the same error.
4648 * this method will complete with the same error. 4943 async.Future<Webproperty> patch(
4649 */ 4944 Webproperty request, core.String accountId, core.String webPropertyId) {
4650 async.Future<Webproperty> patch(Webproperty request, core.String accountId, co re.String webPropertyId) {
4651 var _url = null; 4945 var _url = null;
4652 var _queryParams = new core.Map(); 4946 var _queryParams = new core.Map();
4653 var _uploadMedia = null; 4947 var _uploadMedia = null;
4654 var _uploadOptions = null; 4948 var _uploadOptions = null;
4655 var _downloadOptions = commons.DownloadOptions.Metadata; 4949 var _downloadOptions = commons.DownloadOptions.Metadata;
4656 var _body = null; 4950 var _body = null;
4657 4951
4658 if (request != null) { 4952 if (request != null) {
4659 _body = convert.JSON.encode((request).toJson()); 4953 _body = convert.JSON.encode((request).toJson());
4660 } 4954 }
4661 if (accountId == null) { 4955 if (accountId == null) {
4662 throw new core.ArgumentError("Parameter accountId is required."); 4956 throw new core.ArgumentError("Parameter accountId is required.");
4663 } 4957 }
4664 if (webPropertyId == null) { 4958 if (webPropertyId == null) {
4665 throw new core.ArgumentError("Parameter webPropertyId is required."); 4959 throw new core.ArgumentError("Parameter webPropertyId is required.");
4666 } 4960 }
4667 4961
4668 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId'); 4962 _url = 'management/accounts/' +
4963 commons.Escaper.ecapeVariable('$accountId') +
4964 '/webproperties/' +
4965 commons.Escaper.ecapeVariable('$webPropertyId');
4669 4966
4670 var _response = _requester.request(_url, 4967 var _response = _requester.request(_url, "PATCH",
4671 "PATCH", 4968 body: _body,
4672 body: _body, 4969 queryParams: _queryParams,
4673 queryParams: _queryParams, 4970 uploadOptions: _uploadOptions,
4674 uploadOptions: _uploadOptions, 4971 uploadMedia: _uploadMedia,
4675 uploadMedia: _uploadMedia, 4972 downloadOptions: _downloadOptions);
4676 downloadOptions: _downloadOptions);
4677 return _response.then((data) => new Webproperty.fromJson(data)); 4973 return _response.then((data) => new Webproperty.fromJson(data));
4678 } 4974 }
4679 4975
4680 /** 4976 /// Updates an existing web property.
4681 * Updates an existing web property. 4977 ///
4682 * 4978 /// [request] - The metadata request object.
4683 * [request] - The metadata request object. 4979 ///
4684 * 4980 /// Request parameters:
4685 * Request parameters: 4981 ///
4686 * 4982 /// [accountId] - Account ID to which the web property belongs
4687 * [accountId] - Account ID to which the web property belongs 4983 ///
4688 * 4984 /// [webPropertyId] - Web property ID
4689 * [webPropertyId] - Web property ID 4985 ///
4690 * 4986 /// Completes with a [Webproperty].
4691 * Completes with a [Webproperty]. 4987 ///
4692 * 4988 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4693 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 4989 /// an error.
4694 * error. 4990 ///
4695 * 4991 /// If the used [http.Client] completes with an error when making a REST
4696 * If the used [http.Client] completes with an error when making a REST call, 4992 /// call, this method will complete with the same error.
4697 * this method will complete with the same error. 4993 async.Future<Webproperty> update(
4698 */ 4994 Webproperty request, core.String accountId, core.String webPropertyId) {
4699 async.Future<Webproperty> update(Webproperty request, core.String accountId, c ore.String webPropertyId) {
4700 var _url = null; 4995 var _url = null;
4701 var _queryParams = new core.Map(); 4996 var _queryParams = new core.Map();
4702 var _uploadMedia = null; 4997 var _uploadMedia = null;
4703 var _uploadOptions = null; 4998 var _uploadOptions = null;
4704 var _downloadOptions = commons.DownloadOptions.Metadata; 4999 var _downloadOptions = commons.DownloadOptions.Metadata;
4705 var _body = null; 5000 var _body = null;
4706 5001
4707 if (request != null) { 5002 if (request != null) {
4708 _body = convert.JSON.encode((request).toJson()); 5003 _body = convert.JSON.encode((request).toJson());
4709 } 5004 }
4710 if (accountId == null) { 5005 if (accountId == null) {
4711 throw new core.ArgumentError("Parameter accountId is required."); 5006 throw new core.ArgumentError("Parameter accountId is required.");
4712 } 5007 }
4713 if (webPropertyId == null) { 5008 if (webPropertyId == null) {
4714 throw new core.ArgumentError("Parameter webPropertyId is required."); 5009 throw new core.ArgumentError("Parameter webPropertyId is required.");
4715 } 5010 }
4716 5011
4717 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId'); 5012 _url = 'management/accounts/' +
5013 commons.Escaper.ecapeVariable('$accountId') +
5014 '/webproperties/' +
5015 commons.Escaper.ecapeVariable('$webPropertyId');
4718 5016
4719 var _response = _requester.request(_url, 5017 var _response = _requester.request(_url, "PUT",
4720 "PUT", 5018 body: _body,
4721 body: _body, 5019 queryParams: _queryParams,
4722 queryParams: _queryParams, 5020 uploadOptions: _uploadOptions,
4723 uploadOptions: _uploadOptions, 5021 uploadMedia: _uploadMedia,
4724 uploadMedia: _uploadMedia, 5022 downloadOptions: _downloadOptions);
4725 downloadOptions: _downloadOptions);
4726 return _response.then((data) => new Webproperty.fromJson(data)); 5023 return _response.then((data) => new Webproperty.fromJson(data));
4727 } 5024 }
4728
4729 } 5025 }
4730 5026
4731
4732 class ManagementWebpropertyUserLinksResourceApi { 5027 class ManagementWebpropertyUserLinksResourceApi {
4733 final commons.ApiRequester _requester; 5028 final commons.ApiRequester _requester;
4734 5029
4735 ManagementWebpropertyUserLinksResourceApi(commons.ApiRequester client) : 5030 ManagementWebpropertyUserLinksResourceApi(commons.ApiRequester client)
4736 _requester = client; 5031 : _requester = client;
4737 5032
4738 /** 5033 /// Removes a user from the given web property.
4739 * Removes a user from the given web property. 5034 ///
4740 * 5035 /// Request parameters:
4741 * Request parameters: 5036 ///
4742 * 5037 /// [accountId] - Account ID to delete the user link for.
4743 * [accountId] - Account ID to delete the user link for. 5038 ///
4744 * 5039 /// [webPropertyId] - Web Property ID to delete the user link for.
4745 * [webPropertyId] - Web Property ID to delete the user link for. 5040 ///
4746 * 5041 /// [linkId] - Link ID to delete the user link for.
4747 * [linkId] - Link ID to delete the user link for. 5042 ///
4748 * 5043 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4749 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 5044 /// an error.
4750 * error. 5045 ///
4751 * 5046 /// If the used [http.Client] completes with an error when making a REST
4752 * If the used [http.Client] completes with an error when making a REST call, 5047 /// call, this method will complete with the same error.
4753 * this method will complete with the same error. 5048 async.Future delete(
4754 */ 5049 core.String accountId, core.String webPropertyId, core.String linkId) {
4755 async.Future delete(core.String accountId, core.String webPropertyId, core.Str ing linkId) {
4756 var _url = null; 5050 var _url = null;
4757 var _queryParams = new core.Map(); 5051 var _queryParams = new core.Map();
4758 var _uploadMedia = null; 5052 var _uploadMedia = null;
4759 var _uploadOptions = null; 5053 var _uploadOptions = null;
4760 var _downloadOptions = commons.DownloadOptions.Metadata; 5054 var _downloadOptions = commons.DownloadOptions.Metadata;
4761 var _body = null; 5055 var _body = null;
4762 5056
4763 if (accountId == null) { 5057 if (accountId == null) {
4764 throw new core.ArgumentError("Parameter accountId is required."); 5058 throw new core.ArgumentError("Parameter accountId is required.");
4765 } 5059 }
4766 if (webPropertyId == null) { 5060 if (webPropertyId == null) {
4767 throw new core.ArgumentError("Parameter webPropertyId is required."); 5061 throw new core.ArgumentError("Parameter webPropertyId is required.");
4768 } 5062 }
4769 if (linkId == null) { 5063 if (linkId == null) {
4770 throw new core.ArgumentError("Parameter linkId is required."); 5064 throw new core.ArgumentError("Parameter linkId is required.");
4771 } 5065 }
4772 5066
4773 _downloadOptions = null; 5067 _downloadOptions = null;
4774 5068
4775 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity UserLinks/' + commons.Escaper.ecapeVariable('$linkId'); 5069 _url = 'management/accounts/' +
5070 commons.Escaper.ecapeVariable('$accountId') +
5071 '/webproperties/' +
5072 commons.Escaper.ecapeVariable('$webPropertyId') +
5073 '/entityUserLinks/' +
5074 commons.Escaper.ecapeVariable('$linkId');
4776 5075
4777 var _response = _requester.request(_url, 5076 var _response = _requester.request(_url, "DELETE",
4778 "DELETE", 5077 body: _body,
4779 body: _body, 5078 queryParams: _queryParams,
4780 queryParams: _queryParams, 5079 uploadOptions: _uploadOptions,
4781 uploadOptions: _uploadOptions, 5080 uploadMedia: _uploadMedia,
4782 uploadMedia: _uploadMedia, 5081 downloadOptions: _downloadOptions);
4783 downloadOptions: _downloadOptions);
4784 return _response.then((data) => null); 5082 return _response.then((data) => null);
4785 } 5083 }
4786 5084
4787 /** 5085 /// Adds a new user to the given web property.
4788 * Adds a new user to the given web property. 5086 ///
4789 * 5087 /// [request] - The metadata request object.
4790 * [request] - The metadata request object. 5088 ///
4791 * 5089 /// Request parameters:
4792 * Request parameters: 5090 ///
4793 * 5091 /// [accountId] - Account ID to create the user link for.
4794 * [accountId] - Account ID to create the user link for. 5092 ///
4795 * 5093 /// [webPropertyId] - Web Property ID to create the user link for.
4796 * [webPropertyId] - Web Property ID to create the user link for. 5094 ///
4797 * 5095 /// Completes with a [EntityUserLink].
4798 * Completes with a [EntityUserLink]. 5096 ///
4799 * 5097 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4800 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 5098 /// an error.
4801 * error. 5099 ///
4802 * 5100 /// If the used [http.Client] completes with an error when making a REST
4803 * If the used [http.Client] completes with an error when making a REST call, 5101 /// call, this method will complete with the same error.
4804 * this method will complete with the same error. 5102 async.Future<EntityUserLink> insert(EntityUserLink request,
4805 */ 5103 core.String accountId, core.String webPropertyId) {
4806 async.Future<EntityUserLink> insert(EntityUserLink request, core.String accoun tId, core.String webPropertyId) {
4807 var _url = null; 5104 var _url = null;
4808 var _queryParams = new core.Map(); 5105 var _queryParams = new core.Map();
4809 var _uploadMedia = null; 5106 var _uploadMedia = null;
4810 var _uploadOptions = null; 5107 var _uploadOptions = null;
4811 var _downloadOptions = commons.DownloadOptions.Metadata; 5108 var _downloadOptions = commons.DownloadOptions.Metadata;
4812 var _body = null; 5109 var _body = null;
4813 5110
4814 if (request != null) { 5111 if (request != null) {
4815 _body = convert.JSON.encode((request).toJson()); 5112 _body = convert.JSON.encode((request).toJson());
4816 } 5113 }
4817 if (accountId == null) { 5114 if (accountId == null) {
4818 throw new core.ArgumentError("Parameter accountId is required."); 5115 throw new core.ArgumentError("Parameter accountId is required.");
4819 } 5116 }
4820 if (webPropertyId == null) { 5117 if (webPropertyId == null) {
4821 throw new core.ArgumentError("Parameter webPropertyId is required."); 5118 throw new core.ArgumentError("Parameter webPropertyId is required.");
4822 } 5119 }
4823 5120
4824 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity UserLinks'; 5121 _url = 'management/accounts/' +
5122 commons.Escaper.ecapeVariable('$accountId') +
5123 '/webproperties/' +
5124 commons.Escaper.ecapeVariable('$webPropertyId') +
5125 '/entityUserLinks';
4825 5126
4826 var _response = _requester.request(_url, 5127 var _response = _requester.request(_url, "POST",
4827 "POST", 5128 body: _body,
4828 body: _body, 5129 queryParams: _queryParams,
4829 queryParams: _queryParams, 5130 uploadOptions: _uploadOptions,
4830 uploadOptions: _uploadOptions, 5131 uploadMedia: _uploadMedia,
4831 uploadMedia: _uploadMedia, 5132 downloadOptions: _downloadOptions);
4832 downloadOptions: _downloadOptions);
4833 return _response.then((data) => new EntityUserLink.fromJson(data)); 5133 return _response.then((data) => new EntityUserLink.fromJson(data));
4834 } 5134 }
4835 5135
4836 /** 5136 /// Lists webProperty-user links for a given web property.
4837 * Lists webProperty-user links for a given web property. 5137 ///
4838 * 5138 /// Request parameters:
4839 * Request parameters: 5139 ///
4840 * 5140 /// [accountId] - Account ID which the given web property belongs to.
4841 * [accountId] - Account ID which the given web property belongs to. 5141 ///
4842 * 5142 /// [webPropertyId] - Web Property ID for the webProperty-user links to
4843 * [webPropertyId] - Web Property ID for the webProperty-user links to 5143 /// retrieve. Can either be a specific web property ID or '~all', which
4844 * retrieve. Can either be a specific web property ID or '~all', which refers 5144 /// refers to all the web properties that user has access to.
4845 * to all the web properties that user has access to. 5145 ///
4846 * 5146 /// [max_results] - The maximum number of webProperty-user Links to include
4847 * [max_results] - The maximum number of webProperty-user Links to include in 5147 /// in this response.
4848 * this response. 5148 ///
4849 * 5149 /// [start_index] - An index of the first webProperty-user link to retrieve.
4850 * [start_index] - An index of the first webProperty-user link to retrieve. 5150 /// Use this parameter as a pagination mechanism along with the max-results
4851 * Use this parameter as a pagination mechanism along with the max-results 5151 /// parameter.
4852 * parameter. 5152 ///
4853 * 5153 /// Completes with a [EntityUserLinks].
4854 * Completes with a [EntityUserLinks]. 5154 ///
4855 * 5155 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4856 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 5156 /// an error.
4857 * error. 5157 ///
4858 * 5158 /// If the used [http.Client] completes with an error when making a REST
4859 * If the used [http.Client] completes with an error when making a REST call, 5159 /// call, this method will complete with the same error.
4860 * this method will complete with the same error. 5160 async.Future<EntityUserLinks> list(
4861 */ 5161 core.String accountId, core.String webPropertyId,
4862 async.Future<EntityUserLinks> list(core.String accountId, core.String webPrope rtyId, {core.int max_results, core.int start_index}) { 5162 {core.int max_results, core.int start_index}) {
4863 var _url = null; 5163 var _url = null;
4864 var _queryParams = new core.Map(); 5164 var _queryParams = new core.Map();
4865 var _uploadMedia = null; 5165 var _uploadMedia = null;
4866 var _uploadOptions = null; 5166 var _uploadOptions = null;
4867 var _downloadOptions = commons.DownloadOptions.Metadata; 5167 var _downloadOptions = commons.DownloadOptions.Metadata;
4868 var _body = null; 5168 var _body = null;
4869 5169
4870 if (accountId == null) { 5170 if (accountId == null) {
4871 throw new core.ArgumentError("Parameter accountId is required."); 5171 throw new core.ArgumentError("Parameter accountId is required.");
4872 } 5172 }
4873 if (webPropertyId == null) { 5173 if (webPropertyId == null) {
4874 throw new core.ArgumentError("Parameter webPropertyId is required."); 5174 throw new core.ArgumentError("Parameter webPropertyId is required.");
4875 } 5175 }
4876 if (max_results != null) { 5176 if (max_results != null) {
4877 _queryParams["max-results"] = ["${max_results}"]; 5177 _queryParams["max-results"] = ["${max_results}"];
4878 } 5178 }
4879 if (start_index != null) { 5179 if (start_index != null) {
4880 _queryParams["start-index"] = ["${start_index}"]; 5180 _queryParams["start-index"] = ["${start_index}"];
4881 } 5181 }
4882 5182
4883 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity UserLinks'; 5183 _url = 'management/accounts/' +
5184 commons.Escaper.ecapeVariable('$accountId') +
5185 '/webproperties/' +
5186 commons.Escaper.ecapeVariable('$webPropertyId') +
5187 '/entityUserLinks';
4884 5188
4885 var _response = _requester.request(_url, 5189 var _response = _requester.request(_url, "GET",
4886 "GET", 5190 body: _body,
4887 body: _body, 5191 queryParams: _queryParams,
4888 queryParams: _queryParams, 5192 uploadOptions: _uploadOptions,
4889 uploadOptions: _uploadOptions, 5193 uploadMedia: _uploadMedia,
4890 uploadMedia: _uploadMedia, 5194 downloadOptions: _downloadOptions);
4891 downloadOptions: _downloadOptions);
4892 return _response.then((data) => new EntityUserLinks.fromJson(data)); 5195 return _response.then((data) => new EntityUserLinks.fromJson(data));
4893 } 5196 }
4894 5197
4895 /** 5198 /// Updates permissions for an existing user on the given web property.
4896 * Updates permissions for an existing user on the given web property. 5199 ///
4897 * 5200 /// [request] - The metadata request object.
4898 * [request] - The metadata request object. 5201 ///
4899 * 5202 /// Request parameters:
4900 * Request parameters: 5203 ///
4901 * 5204 /// [accountId] - Account ID to update the account-user link for.
4902 * [accountId] - Account ID to update the account-user link for. 5205 ///
4903 * 5206 /// [webPropertyId] - Web property ID to update the account-user link for.
4904 * [webPropertyId] - Web property ID to update the account-user link for. 5207 ///
4905 * 5208 /// [linkId] - Link ID to update the account-user link for.
4906 * [linkId] - Link ID to update the account-user link for. 5209 ///
4907 * 5210 /// Completes with a [EntityUserLink].
4908 * Completes with a [EntityUserLink]. 5211 ///
4909 * 5212 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4910 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 5213 /// an error.
4911 * error. 5214 ///
4912 * 5215 /// If the used [http.Client] completes with an error when making a REST
4913 * If the used [http.Client] completes with an error when making a REST call, 5216 /// call, this method will complete with the same error.
4914 * this method will complete with the same error. 5217 async.Future<EntityUserLink> update(EntityUserLink request,
4915 */ 5218 core.String accountId, core.String webPropertyId, core.String linkId) {
4916 async.Future<EntityUserLink> update(EntityUserLink request, core.String accoun tId, core.String webPropertyId, core.String linkId) {
4917 var _url = null; 5219 var _url = null;
4918 var _queryParams = new core.Map(); 5220 var _queryParams = new core.Map();
4919 var _uploadMedia = null; 5221 var _uploadMedia = null;
4920 var _uploadOptions = null; 5222 var _uploadOptions = null;
4921 var _downloadOptions = commons.DownloadOptions.Metadata; 5223 var _downloadOptions = commons.DownloadOptions.Metadata;
4922 var _body = null; 5224 var _body = null;
4923 5225
4924 if (request != null) { 5226 if (request != null) {
4925 _body = convert.JSON.encode((request).toJson()); 5227 _body = convert.JSON.encode((request).toJson());
4926 } 5228 }
4927 if (accountId == null) { 5229 if (accountId == null) {
4928 throw new core.ArgumentError("Parameter accountId is required."); 5230 throw new core.ArgumentError("Parameter accountId is required.");
4929 } 5231 }
4930 if (webPropertyId == null) { 5232 if (webPropertyId == null) {
4931 throw new core.ArgumentError("Parameter webPropertyId is required."); 5233 throw new core.ArgumentError("Parameter webPropertyId is required.");
4932 } 5234 }
4933 if (linkId == null) { 5235 if (linkId == null) {
4934 throw new core.ArgumentError("Parameter linkId is required."); 5236 throw new core.ArgumentError("Parameter linkId is required.");
4935 } 5237 }
4936 5238
4937 _url = 'management/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/webproperties/' + commons.Escaper.ecapeVariable('$webPropertyId') + '/entity UserLinks/' + commons.Escaper.ecapeVariable('$linkId'); 5239 _url = 'management/accounts/' +
5240 commons.Escaper.ecapeVariable('$accountId') +
5241 '/webproperties/' +
5242 commons.Escaper.ecapeVariable('$webPropertyId') +
5243 '/entityUserLinks/' +
5244 commons.Escaper.ecapeVariable('$linkId');
4938 5245
4939 var _response = _requester.request(_url, 5246 var _response = _requester.request(_url, "PUT",
4940 "PUT", 5247 body: _body,
4941 body: _body, 5248 queryParams: _queryParams,
4942 queryParams: _queryParams, 5249 uploadOptions: _uploadOptions,
4943 uploadOptions: _uploadOptions, 5250 uploadMedia: _uploadMedia,
4944 uploadMedia: _uploadMedia, 5251 downloadOptions: _downloadOptions);
4945 downloadOptions: _downloadOptions);
4946 return _response.then((data) => new EntityUserLink.fromJson(data)); 5252 return _response.then((data) => new EntityUserLink.fromJson(data));
4947 } 5253 }
4948
4949 } 5254 }
4950 5255
4951
4952 class MetadataResourceApi { 5256 class MetadataResourceApi {
4953 final commons.ApiRequester _requester; 5257 final commons.ApiRequester _requester;
4954 5258
4955 MetadataColumnsResourceApi get columns => new MetadataColumnsResourceApi(_requ ester); 5259 MetadataColumnsResourceApi get columns =>
5260 new MetadataColumnsResourceApi(_requester);
4956 5261
4957 MetadataResourceApi(commons.ApiRequester client) : 5262 MetadataResourceApi(commons.ApiRequester client) : _requester = client;
4958 _requester = client;
4959 } 5263 }
4960 5264
4961
4962 class MetadataColumnsResourceApi { 5265 class MetadataColumnsResourceApi {
4963 final commons.ApiRequester _requester; 5266 final commons.ApiRequester _requester;
4964 5267
4965 MetadataColumnsResourceApi(commons.ApiRequester client) : 5268 MetadataColumnsResourceApi(commons.ApiRequester client) : _requester = client;
4966 _requester = client;
4967 5269
4968 /** 5270 /// Lists all columns for a report type
4969 * Lists all columns for a report type 5271 ///
4970 * 5272 /// Request parameters:
4971 * Request parameters: 5273 ///
4972 * 5274 /// [reportType] - Report type. Allowed Values: 'ga'. Where 'ga' corresponds
4973 * [reportType] - Report type. Allowed Values: 'ga'. Where 'ga' corresponds to 5275 /// to the Core Reporting API
4974 * the Core Reporting API 5276 /// Value must have pattern "ga".
4975 * Value must have pattern "ga". 5277 ///
4976 * 5278 /// Completes with a [Columns].
4977 * Completes with a [Columns]. 5279 ///
4978 * 5280 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
4979 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 5281 /// an error.
4980 * error. 5282 ///
4981 * 5283 /// If the used [http.Client] completes with an error when making a REST
4982 * If the used [http.Client] completes with an error when making a REST call, 5284 /// call, this method will complete with the same error.
4983 * this method will complete with the same error.
4984 */
4985 async.Future<Columns> list(core.String reportType) { 5285 async.Future<Columns> list(core.String reportType) {
4986 var _url = null; 5286 var _url = null;
4987 var _queryParams = new core.Map(); 5287 var _queryParams = new core.Map();
4988 var _uploadMedia = null; 5288 var _uploadMedia = null;
4989 var _uploadOptions = null; 5289 var _uploadOptions = null;
4990 var _downloadOptions = commons.DownloadOptions.Metadata; 5290 var _downloadOptions = commons.DownloadOptions.Metadata;
4991 var _body = null; 5291 var _body = null;
4992 5292
4993 if (reportType == null) { 5293 if (reportType == null) {
4994 throw new core.ArgumentError("Parameter reportType is required."); 5294 throw new core.ArgumentError("Parameter reportType is required.");
4995 } 5295 }
4996 5296
4997 _url = 'metadata/' + commons.Escaper.ecapeVariable('$reportType') + '/column s'; 5297 _url =
5298 'metadata/' + commons.Escaper.ecapeVariable('$reportType') + '/columns';
4998 5299
4999 var _response = _requester.request(_url, 5300 var _response = _requester.request(_url, "GET",
5000 "GET", 5301 body: _body,
5001 body: _body, 5302 queryParams: _queryParams,
5002 queryParams: _queryParams, 5303 uploadOptions: _uploadOptions,
5003 uploadOptions: _uploadOptions, 5304 uploadMedia: _uploadMedia,
5004 uploadMedia: _uploadMedia, 5305 downloadOptions: _downloadOptions);
5005 downloadOptions: _downloadOptions);
5006 return _response.then((data) => new Columns.fromJson(data)); 5306 return _response.then((data) => new Columns.fromJson(data));
5007 } 5307 }
5008
5009 } 5308 }
5010 5309
5011
5012 class ProvisioningResourceApi { 5310 class ProvisioningResourceApi {
5013 final commons.ApiRequester _requester; 5311 final commons.ApiRequester _requester;
5014 5312
5015 ProvisioningResourceApi(commons.ApiRequester client) : 5313 ProvisioningResourceApi(commons.ApiRequester client) : _requester = client;
5016 _requester = client;
5017 5314
5018 /** 5315 /// Creates an account ticket.
5019 * Creates an account ticket. 5316 ///
5020 * 5317 /// [request] - The metadata request object.
5021 * [request] - The metadata request object. 5318 ///
5022 * 5319 /// Request parameters:
5023 * Request parameters: 5320 ///
5024 * 5321 /// Completes with a [AccountTicket].
5025 * Completes with a [AccountTicket]. 5322 ///
5026 * 5323 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
5027 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 5324 /// an error.
5028 * error. 5325 ///
5029 * 5326 /// If the used [http.Client] completes with an error when making a REST
5030 * If the used [http.Client] completes with an error when making a REST call, 5327 /// call, this method will complete with the same error.
5031 * this method will complete with the same error.
5032 */
5033 async.Future<AccountTicket> createAccountTicket(AccountTicket request) { 5328 async.Future<AccountTicket> createAccountTicket(AccountTicket request) {
5034 var _url = null; 5329 var _url = null;
5035 var _queryParams = new core.Map(); 5330 var _queryParams = new core.Map();
5036 var _uploadMedia = null; 5331 var _uploadMedia = null;
5037 var _uploadOptions = null; 5332 var _uploadOptions = null;
5038 var _downloadOptions = commons.DownloadOptions.Metadata; 5333 var _downloadOptions = commons.DownloadOptions.Metadata;
5039 var _body = null; 5334 var _body = null;
5040 5335
5041 if (request != null) { 5336 if (request != null) {
5042 _body = convert.JSON.encode((request).toJson()); 5337 _body = convert.JSON.encode((request).toJson());
5043 } 5338 }
5044 5339
5045 _url = 'provisioning/createAccountTicket'; 5340 _url = 'provisioning/createAccountTicket';
5046 5341
5047 var _response = _requester.request(_url, 5342 var _response = _requester.request(_url, "POST",
5048 "POST", 5343 body: _body,
5049 body: _body, 5344 queryParams: _queryParams,
5050 queryParams: _queryParams, 5345 uploadOptions: _uploadOptions,
5051 uploadOptions: _uploadOptions, 5346 uploadMedia: _uploadMedia,
5052 uploadMedia: _uploadMedia, 5347 downloadOptions: _downloadOptions);
5053 downloadOptions: _downloadOptions);
5054 return _response.then((data) => new AccountTicket.fromJson(data)); 5348 return _response.then((data) => new AccountTicket.fromJson(data));
5055 } 5349 }
5056
5057 } 5350 }
5058 5351
5352 /// Child link for an account entry. Points to the list of web properties for
5353 /// this account.
5354 class AccountChildLink {
5355 /// Link to the list of web properties for this account.
5356 core.String href;
5059 5357
5060 5358 /// Type of the child link. Its value is "analytics#webproperties".
5061 /**
5062 * Child link for an account entry. Points to the list of web properties for
5063 * this account.
5064 */
5065 class AccountChildLink {
5066 /** Link to the list of web properties for this account. */
5067 core.String href;
5068 /** Type of the child link. Its value is "analytics#webproperties". */
5069 core.String type; 5359 core.String type;
5070 5360
5071 AccountChildLink(); 5361 AccountChildLink();
5072 5362
5073 AccountChildLink.fromJson(core.Map _json) { 5363 AccountChildLink.fromJson(core.Map _json) {
5074 if (_json.containsKey("href")) { 5364 if (_json.containsKey("href")) {
5075 href = _json["href"]; 5365 href = _json["href"];
5076 } 5366 }
5077 if (_json.containsKey("type")) { 5367 if (_json.containsKey("type")) {
5078 type = _json["type"]; 5368 type = _json["type"];
5079 } 5369 }
5080 } 5370 }
5081 5371
5082 core.Map<core.String, core.Object> toJson() { 5372 core.Map<core.String, core.Object> toJson() {
5083 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5373 final core.Map<core.String, core.Object> _json =
5374 new core.Map<core.String, core.Object>();
5084 if (href != null) { 5375 if (href != null) {
5085 _json["href"] = href; 5376 _json["href"] = href;
5086 } 5377 }
5087 if (type != null) { 5378 if (type != null) {
5088 _json["type"] = type; 5379 _json["type"] = type;
5089 } 5380 }
5090 return _json; 5381 return _json;
5091 } 5382 }
5092 } 5383 }
5093 5384
5094 /** Permissions the user has for this account. */ 5385 /// Permissions the user has for this account.
5095 class AccountPermissions { 5386 class AccountPermissions {
5096 /** 5387 /// All the permissions that the user has for this account. These include any
5097 * All the permissions that the user has for this account. These include any 5388 /// implied permissions (e.g., EDIT implies VIEW).
5098 * implied permissions (e.g., EDIT implies VIEW).
5099 */
5100 core.List<core.String> effective; 5389 core.List<core.String> effective;
5101 5390
5102 AccountPermissions(); 5391 AccountPermissions();
5103 5392
5104 AccountPermissions.fromJson(core.Map _json) { 5393 AccountPermissions.fromJson(core.Map _json) {
5105 if (_json.containsKey("effective")) { 5394 if (_json.containsKey("effective")) {
5106 effective = _json["effective"]; 5395 effective = _json["effective"];
5107 } 5396 }
5108 } 5397 }
5109 5398
5110 core.Map<core.String, core.Object> toJson() { 5399 core.Map<core.String, core.Object> toJson() {
5111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5400 final core.Map<core.String, core.Object> _json =
5401 new core.Map<core.String, core.Object>();
5112 if (effective != null) { 5402 if (effective != null) {
5113 _json["effective"] = effective; 5403 _json["effective"] = effective;
5114 } 5404 }
5115 return _json; 5405 return _json;
5116 } 5406 }
5117 } 5407 }
5118 5408
5119 /** JSON template for Analytics account entry. */ 5409 /// JSON template for Analytics account entry.
5120 class Account { 5410 class Account {
5121 /** 5411 /// Child link for an account entry. Points to the list of web properties for
5122 * Child link for an account entry. Points to the list of web properties for 5412 /// this account.
5123 * this account.
5124 */
5125 AccountChildLink childLink; 5413 AccountChildLink childLink;
5126 /** Time the account was created. */ 5414
5415 /// Time the account was created.
5127 core.DateTime created; 5416 core.DateTime created;
5128 /** Account ID. */ 5417
5418 /// Account ID.
5129 core.String id; 5419 core.String id;
5130 /** Resource type for Analytics account. */ 5420
5421 /// Resource type for Analytics account.
5131 core.String kind; 5422 core.String kind;
5132 /** Account name. */ 5423
5424 /// Account name.
5133 core.String name; 5425 core.String name;
5134 /** Permissions the user has for this account. */ 5426
5427 /// Permissions the user has for this account.
5135 AccountPermissions permissions; 5428 AccountPermissions permissions;
5136 /** Link for this account. */ 5429
5430 /// Link for this account.
5137 core.String selfLink; 5431 core.String selfLink;
5138 /** Indicates whether this account is starred or not. */ 5432
5433 /// Indicates whether this account is starred or not.
5139 core.bool starred; 5434 core.bool starred;
5140 /** Time the account was last modified. */ 5435
5436 /// Time the account was last modified.
5141 core.DateTime updated; 5437 core.DateTime updated;
5142 5438
5143 Account(); 5439 Account();
5144 5440
5145 Account.fromJson(core.Map _json) { 5441 Account.fromJson(core.Map _json) {
5146 if (_json.containsKey("childLink")) { 5442 if (_json.containsKey("childLink")) {
5147 childLink = new AccountChildLink.fromJson(_json["childLink"]); 5443 childLink = new AccountChildLink.fromJson(_json["childLink"]);
5148 } 5444 }
5149 if (_json.containsKey("created")) { 5445 if (_json.containsKey("created")) {
5150 created = core.DateTime.parse(_json["created"]); 5446 created = core.DateTime.parse(_json["created"]);
(...skipping 15 matching lines...) Expand all
5166 } 5462 }
5167 if (_json.containsKey("starred")) { 5463 if (_json.containsKey("starred")) {
5168 starred = _json["starred"]; 5464 starred = _json["starred"];
5169 } 5465 }
5170 if (_json.containsKey("updated")) { 5466 if (_json.containsKey("updated")) {
5171 updated = core.DateTime.parse(_json["updated"]); 5467 updated = core.DateTime.parse(_json["updated"]);
5172 } 5468 }
5173 } 5469 }
5174 5470
5175 core.Map<core.String, core.Object> toJson() { 5471 core.Map<core.String, core.Object> toJson() {
5176 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5472 final core.Map<core.String, core.Object> _json =
5473 new core.Map<core.String, core.Object>();
5177 if (childLink != null) { 5474 if (childLink != null) {
5178 _json["childLink"] = (childLink).toJson(); 5475 _json["childLink"] = (childLink).toJson();
5179 } 5476 }
5180 if (created != null) { 5477 if (created != null) {
5181 _json["created"] = (created).toIso8601String(); 5478 _json["created"] = (created).toIso8601String();
5182 } 5479 }
5183 if (id != null) { 5480 if (id != null) {
5184 _json["id"] = id; 5481 _json["id"] = id;
5185 } 5482 }
5186 if (kind != null) { 5483 if (kind != null) {
(...skipping 11 matching lines...) Expand all
5198 if (starred != null) { 5495 if (starred != null) {
5199 _json["starred"] = starred; 5496 _json["starred"] = starred;
5200 } 5497 }
5201 if (updated != null) { 5498 if (updated != null) {
5202 _json["updated"] = (updated).toIso8601String(); 5499 _json["updated"] = (updated).toIso8601String();
5203 } 5500 }
5204 return _json; 5501 return _json;
5205 } 5502 }
5206 } 5503 }
5207 5504
5208 /** JSON template for a linked account. */ 5505 /// JSON template for a linked account.
5209 class AccountRef { 5506 class AccountRef {
5210 /** Link for this account. */ 5507 /// Link for this account.
5211 core.String href; 5508 core.String href;
5212 /** Account ID. */ 5509
5510 /// Account ID.
5213 core.String id; 5511 core.String id;
5214 /** Analytics account reference. */ 5512
5513 /// Analytics account reference.
5215 core.String kind; 5514 core.String kind;
5216 /** Account name. */ 5515
5516 /// Account name.
5217 core.String name; 5517 core.String name;
5218 5518
5219 AccountRef(); 5519 AccountRef();
5220 5520
5221 AccountRef.fromJson(core.Map _json) { 5521 AccountRef.fromJson(core.Map _json) {
5222 if (_json.containsKey("href")) { 5522 if (_json.containsKey("href")) {
5223 href = _json["href"]; 5523 href = _json["href"];
5224 } 5524 }
5225 if (_json.containsKey("id")) { 5525 if (_json.containsKey("id")) {
5226 id = _json["id"]; 5526 id = _json["id"];
5227 } 5527 }
5228 if (_json.containsKey("kind")) { 5528 if (_json.containsKey("kind")) {
5229 kind = _json["kind"]; 5529 kind = _json["kind"];
5230 } 5530 }
5231 if (_json.containsKey("name")) { 5531 if (_json.containsKey("name")) {
5232 name = _json["name"]; 5532 name = _json["name"];
5233 } 5533 }
5234 } 5534 }
5235 5535
5236 core.Map<core.String, core.Object> toJson() { 5536 core.Map<core.String, core.Object> toJson() {
5237 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5537 final core.Map<core.String, core.Object> _json =
5538 new core.Map<core.String, core.Object>();
5238 if (href != null) { 5539 if (href != null) {
5239 _json["href"] = href; 5540 _json["href"] = href;
5240 } 5541 }
5241 if (id != null) { 5542 if (id != null) {
5242 _json["id"] = id; 5543 _json["id"] = id;
5243 } 5544 }
5244 if (kind != null) { 5545 if (kind != null) {
5245 _json["kind"] = kind; 5546 _json["kind"] = kind;
5246 } 5547 }
5247 if (name != null) { 5548 if (name != null) {
5248 _json["name"] = name; 5549 _json["name"] = name;
5249 } 5550 }
5250 return _json; 5551 return _json;
5251 } 5552 }
5252 } 5553 }
5253 5554
5254 /** 5555 /// An AccountSummary collection lists a summary of accounts, properties and
5255 * An AccountSummary collection lists a summary of accounts, properties and 5556 /// views (profiles) to which the user has access. Each resource in the
5256 * views (profiles) to which the user has access. Each resource in the 5557 /// collection corresponds to a single AccountSummary.
5257 * collection corresponds to a single AccountSummary.
5258 */
5259 class AccountSummaries { 5558 class AccountSummaries {
5260 /** A list of AccountSummaries. */ 5559 /// A list of AccountSummaries.
5261 core.List<AccountSummary> items; 5560 core.List<AccountSummary> items;
5262 /** 5561
5263 * The maximum number of resources the response can contain, regardless of the 5562 /// The maximum number of resources the response can contain, regardless of
5264 * actual number of resources returned. Its value ranges from 1 to 1000 with a 5563 /// the actual number of resources returned. Its value ranges from 1 to 1000
5265 * value of 1000 by default, or otherwise specified by the max-results query 5564 /// with a value of 1000 by default, or otherwise specified by the
5266 * parameter. 5565 /// max-results query parameter.
5267 */
5268 core.int itemsPerPage; 5566 core.int itemsPerPage;
5269 /** Collection type. */ 5567
5568 /// Collection type.
5270 core.String kind; 5569 core.String kind;
5271 /** Link to next page for this AccountSummary collection. */ 5570
5571 /// Link to next page for this AccountSummary collection.
5272 core.String nextLink; 5572 core.String nextLink;
5273 /** Link to previous page for this AccountSummary collection. */ 5573
5574 /// Link to previous page for this AccountSummary collection.
5274 core.String previousLink; 5575 core.String previousLink;
5275 /** 5576
5276 * The starting index of the resources, which is 1 by default or otherwise 5577 /// The starting index of the resources, which is 1 by default or otherwise
5277 * specified by the start-index query parameter. 5578 /// specified by the start-index query parameter.
5278 */
5279 core.int startIndex; 5579 core.int startIndex;
5280 /** 5580
5281 * The total number of results for the query, regardless of the number of 5581 /// The total number of results for the query, regardless of the number of
5282 * results in the response. 5582 /// results in the response.
5283 */
5284 core.int totalResults; 5583 core.int totalResults;
5285 /** Email ID of the authenticated user */ 5584
5585 /// Email ID of the authenticated user
5286 core.String username; 5586 core.String username;
5287 5587
5288 AccountSummaries(); 5588 AccountSummaries();
5289 5589
5290 AccountSummaries.fromJson(core.Map _json) { 5590 AccountSummaries.fromJson(core.Map _json) {
5291 if (_json.containsKey("items")) { 5591 if (_json.containsKey("items")) {
5292 items = _json["items"].map((value) => new AccountSummary.fromJson(value)). toList(); 5592 items = _json["items"]
5593 .map((value) => new AccountSummary.fromJson(value))
5594 .toList();
5293 } 5595 }
5294 if (_json.containsKey("itemsPerPage")) { 5596 if (_json.containsKey("itemsPerPage")) {
5295 itemsPerPage = _json["itemsPerPage"]; 5597 itemsPerPage = _json["itemsPerPage"];
5296 } 5598 }
5297 if (_json.containsKey("kind")) { 5599 if (_json.containsKey("kind")) {
5298 kind = _json["kind"]; 5600 kind = _json["kind"];
5299 } 5601 }
5300 if (_json.containsKey("nextLink")) { 5602 if (_json.containsKey("nextLink")) {
5301 nextLink = _json["nextLink"]; 5603 nextLink = _json["nextLink"];
5302 } 5604 }
5303 if (_json.containsKey("previousLink")) { 5605 if (_json.containsKey("previousLink")) {
5304 previousLink = _json["previousLink"]; 5606 previousLink = _json["previousLink"];
5305 } 5607 }
5306 if (_json.containsKey("startIndex")) { 5608 if (_json.containsKey("startIndex")) {
5307 startIndex = _json["startIndex"]; 5609 startIndex = _json["startIndex"];
5308 } 5610 }
5309 if (_json.containsKey("totalResults")) { 5611 if (_json.containsKey("totalResults")) {
5310 totalResults = _json["totalResults"]; 5612 totalResults = _json["totalResults"];
5311 } 5613 }
5312 if (_json.containsKey("username")) { 5614 if (_json.containsKey("username")) {
5313 username = _json["username"]; 5615 username = _json["username"];
5314 } 5616 }
5315 } 5617 }
5316 5618
5317 core.Map<core.String, core.Object> toJson() { 5619 core.Map<core.String, core.Object> toJson() {
5318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5620 final core.Map<core.String, core.Object> _json =
5621 new core.Map<core.String, core.Object>();
5319 if (items != null) { 5622 if (items != null) {
5320 _json["items"] = items.map((value) => (value).toJson()).toList(); 5623 _json["items"] = items.map((value) => (value).toJson()).toList();
5321 } 5624 }
5322 if (itemsPerPage != null) { 5625 if (itemsPerPage != null) {
5323 _json["itemsPerPage"] = itemsPerPage; 5626 _json["itemsPerPage"] = itemsPerPage;
5324 } 5627 }
5325 if (kind != null) { 5628 if (kind != null) {
5326 _json["kind"] = kind; 5629 _json["kind"] = kind;
5327 } 5630 }
5328 if (nextLink != null) { 5631 if (nextLink != null) {
5329 _json["nextLink"] = nextLink; 5632 _json["nextLink"] = nextLink;
5330 } 5633 }
5331 if (previousLink != null) { 5634 if (previousLink != null) {
5332 _json["previousLink"] = previousLink; 5635 _json["previousLink"] = previousLink;
5333 } 5636 }
5334 if (startIndex != null) { 5637 if (startIndex != null) {
5335 _json["startIndex"] = startIndex; 5638 _json["startIndex"] = startIndex;
5336 } 5639 }
5337 if (totalResults != null) { 5640 if (totalResults != null) {
5338 _json["totalResults"] = totalResults; 5641 _json["totalResults"] = totalResults;
5339 } 5642 }
5340 if (username != null) { 5643 if (username != null) {
5341 _json["username"] = username; 5644 _json["username"] = username;
5342 } 5645 }
5343 return _json; 5646 return _json;
5344 } 5647 }
5345 } 5648 }
5346 5649
5347 /** 5650 /// JSON template for an Analytics AccountSummary. An AccountSummary is a
5348 * JSON template for an Analytics AccountSummary. An AccountSummary is a 5651 /// lightweight tree comprised of properties/profiles.
5349 * lightweight tree comprised of properties/profiles.
5350 */
5351 class AccountSummary { 5652 class AccountSummary {
5352 /** Account ID. */ 5653 /// Account ID.
5353 core.String id; 5654 core.String id;
5354 /** Resource type for Analytics AccountSummary. */ 5655
5656 /// Resource type for Analytics AccountSummary.
5355 core.String kind; 5657 core.String kind;
5356 /** Account name. */ 5658
5659 /// Account name.
5357 core.String name; 5660 core.String name;
5358 /** Indicates whether this account is starred or not. */ 5661
5662 /// Indicates whether this account is starred or not.
5359 core.bool starred; 5663 core.bool starred;
5360 /** List of web properties under this account. */ 5664
5665 /// List of web properties under this account.
5361 core.List<WebPropertySummary> webProperties; 5666 core.List<WebPropertySummary> webProperties;
5362 5667
5363 AccountSummary(); 5668 AccountSummary();
5364 5669
5365 AccountSummary.fromJson(core.Map _json) { 5670 AccountSummary.fromJson(core.Map _json) {
5366 if (_json.containsKey("id")) { 5671 if (_json.containsKey("id")) {
5367 id = _json["id"]; 5672 id = _json["id"];
5368 } 5673 }
5369 if (_json.containsKey("kind")) { 5674 if (_json.containsKey("kind")) {
5370 kind = _json["kind"]; 5675 kind = _json["kind"];
5371 } 5676 }
5372 if (_json.containsKey("name")) { 5677 if (_json.containsKey("name")) {
5373 name = _json["name"]; 5678 name = _json["name"];
5374 } 5679 }
5375 if (_json.containsKey("starred")) { 5680 if (_json.containsKey("starred")) {
5376 starred = _json["starred"]; 5681 starred = _json["starred"];
5377 } 5682 }
5378 if (_json.containsKey("webProperties")) { 5683 if (_json.containsKey("webProperties")) {
5379 webProperties = _json["webProperties"].map((value) => new WebPropertySumma ry.fromJson(value)).toList(); 5684 webProperties = _json["webProperties"]
5685 .map((value) => new WebPropertySummary.fromJson(value))
5686 .toList();
5380 } 5687 }
5381 } 5688 }
5382 5689
5383 core.Map<core.String, core.Object> toJson() { 5690 core.Map<core.String, core.Object> toJson() {
5384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5691 final core.Map<core.String, core.Object> _json =
5692 new core.Map<core.String, core.Object>();
5385 if (id != null) { 5693 if (id != null) {
5386 _json["id"] = id; 5694 _json["id"] = id;
5387 } 5695 }
5388 if (kind != null) { 5696 if (kind != null) {
5389 _json["kind"] = kind; 5697 _json["kind"] = kind;
5390 } 5698 }
5391 if (name != null) { 5699 if (name != null) {
5392 _json["name"] = name; 5700 _json["name"] = name;
5393 } 5701 }
5394 if (starred != null) { 5702 if (starred != null) {
5395 _json["starred"] = starred; 5703 _json["starred"] = starred;
5396 } 5704 }
5397 if (webProperties != null) { 5705 if (webProperties != null) {
5398 _json["webProperties"] = webProperties.map((value) => (value).toJson()).to List(); 5706 _json["webProperties"] =
5707 webProperties.map((value) => (value).toJson()).toList();
5399 } 5708 }
5400 return _json; 5709 return _json;
5401 } 5710 }
5402 } 5711 }
5403 5712
5404 /** 5713 /// JSON template for an Analytics account ticket. The account ticket consists
5405 * JSON template for an Analytics account ticket. The account ticket consists of 5714 /// of the ticket ID and the basic information for the account, property and
5406 * the ticket ID and the basic information for the account, property and 5715 /// profile.
5407 * profile.
5408 */
5409 class AccountTicket { 5716 class AccountTicket {
5410 /** Account for this ticket. */ 5717 /// Account for this ticket.
5411 Account account; 5718 Account account;
5412 /** Account ticket ID used to access the account ticket. */ 5719
5720 /// Account ticket ID used to access the account ticket.
5413 core.String id; 5721 core.String id;
5414 /** Resource type for account ticket. */ 5722
5723 /// Resource type for account ticket.
5415 core.String kind; 5724 core.String kind;
5416 /** View (Profile) for the account. */ 5725
5726 /// View (Profile) for the account.
5417 Profile profile; 5727 Profile profile;
5418 /** 5728
5419 * Redirect URI where the user will be sent after accepting Terms of Service. 5729 /// Redirect URI where the user will be sent after accepting Terms of
5420 * Must be configured in APIs console as a callback URL. 5730 /// Service. Must be configured in APIs console as a callback URL.
5421 */
5422 core.String redirectUri; 5731 core.String redirectUri;
5423 /** Web property for the account. */ 5732
5733 /// Web property for the account.
5424 Webproperty webproperty; 5734 Webproperty webproperty;
5425 5735
5426 AccountTicket(); 5736 AccountTicket();
5427 5737
5428 AccountTicket.fromJson(core.Map _json) { 5738 AccountTicket.fromJson(core.Map _json) {
5429 if (_json.containsKey("account")) { 5739 if (_json.containsKey("account")) {
5430 account = new Account.fromJson(_json["account"]); 5740 account = new Account.fromJson(_json["account"]);
5431 } 5741 }
5432 if (_json.containsKey("id")) { 5742 if (_json.containsKey("id")) {
5433 id = _json["id"]; 5743 id = _json["id"];
5434 } 5744 }
5435 if (_json.containsKey("kind")) { 5745 if (_json.containsKey("kind")) {
5436 kind = _json["kind"]; 5746 kind = _json["kind"];
5437 } 5747 }
5438 if (_json.containsKey("profile")) { 5748 if (_json.containsKey("profile")) {
5439 profile = new Profile.fromJson(_json["profile"]); 5749 profile = new Profile.fromJson(_json["profile"]);
5440 } 5750 }
5441 if (_json.containsKey("redirectUri")) { 5751 if (_json.containsKey("redirectUri")) {
5442 redirectUri = _json["redirectUri"]; 5752 redirectUri = _json["redirectUri"];
5443 } 5753 }
5444 if (_json.containsKey("webproperty")) { 5754 if (_json.containsKey("webproperty")) {
5445 webproperty = new Webproperty.fromJson(_json["webproperty"]); 5755 webproperty = new Webproperty.fromJson(_json["webproperty"]);
5446 } 5756 }
5447 } 5757 }
5448 5758
5449 core.Map<core.String, core.Object> toJson() { 5759 core.Map<core.String, core.Object> toJson() {
5450 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5760 final core.Map<core.String, core.Object> _json =
5761 new core.Map<core.String, core.Object>();
5451 if (account != null) { 5762 if (account != null) {
5452 _json["account"] = (account).toJson(); 5763 _json["account"] = (account).toJson();
5453 } 5764 }
5454 if (id != null) { 5765 if (id != null) {
5455 _json["id"] = id; 5766 _json["id"] = id;
5456 } 5767 }
5457 if (kind != null) { 5768 if (kind != null) {
5458 _json["kind"] = kind; 5769 _json["kind"] = kind;
5459 } 5770 }
5460 if (profile != null) { 5771 if (profile != null) {
5461 _json["profile"] = (profile).toJson(); 5772 _json["profile"] = (profile).toJson();
5462 } 5773 }
5463 if (redirectUri != null) { 5774 if (redirectUri != null) {
5464 _json["redirectUri"] = redirectUri; 5775 _json["redirectUri"] = redirectUri;
5465 } 5776 }
5466 if (webproperty != null) { 5777 if (webproperty != null) {
5467 _json["webproperty"] = (webproperty).toJson(); 5778 _json["webproperty"] = (webproperty).toJson();
5468 } 5779 }
5469 return _json; 5780 return _json;
5470 } 5781 }
5471 } 5782 }
5472 5783
5473 /** 5784 /// An account collection provides a list of Analytics accounts to which a user
5474 * An account collection provides a list of Analytics accounts to which a user 5785 /// has access. The account collection is the entry point to all management
5475 * has access. The account collection is the entry point to all management 5786 /// information. Each resource in the collection corresponds to a single
5476 * information. Each resource in the collection corresponds to a single 5787 /// Analytics account.
5477 * Analytics account.
5478 */
5479 class Accounts { 5788 class Accounts {
5480 /** A list of accounts. */ 5789 /// A list of accounts.
5481 core.List<Account> items; 5790 core.List<Account> items;
5482 /** 5791
5483 * The maximum number of entries the response can contain, regardless of the 5792 /// The maximum number of entries the response can contain, regardless of the
5484 * actual number of entries returned. Its value ranges from 1 to 1000 with a 5793 /// actual number of entries returned. Its value ranges from 1 to 1000 with a
5485 * value of 1000 by default, or otherwise specified by the max-results query 5794 /// value of 1000 by default, or otherwise specified by the max-results query
5486 * parameter. 5795 /// parameter.
5487 */
5488 core.int itemsPerPage; 5796 core.int itemsPerPage;
5489 /** Collection type. */ 5797
5798 /// Collection type.
5490 core.String kind; 5799 core.String kind;
5491 /** Next link for this account collection. */ 5800
5801 /// Next link for this account collection.
5492 core.String nextLink; 5802 core.String nextLink;
5493 /** Previous link for this account collection. */ 5803
5804 /// Previous link for this account collection.
5494 core.String previousLink; 5805 core.String previousLink;
5495 /** 5806
5496 * The starting index of the entries, which is 1 by default or otherwise 5807 /// The starting index of the entries, which is 1 by default or otherwise
5497 * specified by the start-index query parameter. 5808 /// specified by the start-index query parameter.
5498 */
5499 core.int startIndex; 5809 core.int startIndex;
5500 /** 5810
5501 * The total number of results for the query, regardless of the number of 5811 /// The total number of results for the query, regardless of the number of
5502 * results in the response. 5812 /// results in the response.
5503 */
5504 core.int totalResults; 5813 core.int totalResults;
5505 /** Email ID of the authenticated user */ 5814
5815 /// Email ID of the authenticated user
5506 core.String username; 5816 core.String username;
5507 5817
5508 Accounts(); 5818 Accounts();
5509 5819
5510 Accounts.fromJson(core.Map _json) { 5820 Accounts.fromJson(core.Map _json) {
5511 if (_json.containsKey("items")) { 5821 if (_json.containsKey("items")) {
5512 items = _json["items"].map((value) => new Account.fromJson(value)).toList( ); 5822 items =
5823 _json["items"].map((value) => new Account.fromJson(value)).toList();
5513 } 5824 }
5514 if (_json.containsKey("itemsPerPage")) { 5825 if (_json.containsKey("itemsPerPage")) {
5515 itemsPerPage = _json["itemsPerPage"]; 5826 itemsPerPage = _json["itemsPerPage"];
5516 } 5827 }
5517 if (_json.containsKey("kind")) { 5828 if (_json.containsKey("kind")) {
5518 kind = _json["kind"]; 5829 kind = _json["kind"];
5519 } 5830 }
5520 if (_json.containsKey("nextLink")) { 5831 if (_json.containsKey("nextLink")) {
5521 nextLink = _json["nextLink"]; 5832 nextLink = _json["nextLink"];
5522 } 5833 }
5523 if (_json.containsKey("previousLink")) { 5834 if (_json.containsKey("previousLink")) {
5524 previousLink = _json["previousLink"]; 5835 previousLink = _json["previousLink"];
5525 } 5836 }
5526 if (_json.containsKey("startIndex")) { 5837 if (_json.containsKey("startIndex")) {
5527 startIndex = _json["startIndex"]; 5838 startIndex = _json["startIndex"];
5528 } 5839 }
5529 if (_json.containsKey("totalResults")) { 5840 if (_json.containsKey("totalResults")) {
5530 totalResults = _json["totalResults"]; 5841 totalResults = _json["totalResults"];
5531 } 5842 }
5532 if (_json.containsKey("username")) { 5843 if (_json.containsKey("username")) {
5533 username = _json["username"]; 5844 username = _json["username"];
5534 } 5845 }
5535 } 5846 }
5536 5847
5537 core.Map<core.String, core.Object> toJson() { 5848 core.Map<core.String, core.Object> toJson() {
5538 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5849 final core.Map<core.String, core.Object> _json =
5850 new core.Map<core.String, core.Object>();
5539 if (items != null) { 5851 if (items != null) {
5540 _json["items"] = items.map((value) => (value).toJson()).toList(); 5852 _json["items"] = items.map((value) => (value).toJson()).toList();
5541 } 5853 }
5542 if (itemsPerPage != null) { 5854 if (itemsPerPage != null) {
5543 _json["itemsPerPage"] = itemsPerPage; 5855 _json["itemsPerPage"] = itemsPerPage;
5544 } 5856 }
5545 if (kind != null) { 5857 if (kind != null) {
5546 _json["kind"] = kind; 5858 _json["kind"] = kind;
5547 } 5859 }
5548 if (nextLink != null) { 5860 if (nextLink != null) {
5549 _json["nextLink"] = nextLink; 5861 _json["nextLink"] = nextLink;
5550 } 5862 }
5551 if (previousLink != null) { 5863 if (previousLink != null) {
5552 _json["previousLink"] = previousLink; 5864 _json["previousLink"] = previousLink;
5553 } 5865 }
5554 if (startIndex != null) { 5866 if (startIndex != null) {
5555 _json["startIndex"] = startIndex; 5867 _json["startIndex"] = startIndex;
5556 } 5868 }
5557 if (totalResults != null) { 5869 if (totalResults != null) {
5558 _json["totalResults"] = totalResults; 5870 _json["totalResults"] = totalResults;
5559 } 5871 }
5560 if (username != null) { 5872 if (username != null) {
5561 _json["username"] = username; 5873 _json["username"] = username;
5562 } 5874 }
5563 return _json; 5875 return _json;
5564 } 5876 }
5565 } 5877 }
5566 5878
5567 /** JSON template for an AdWords account. */ 5879 /// JSON template for an AdWords account.
5568 class AdWordsAccount { 5880 class AdWordsAccount {
5569 /** 5881 /// True if auto-tagging is enabled on the AdWords account. Read-only after
5570 * True if auto-tagging is enabled on the AdWords account. Read-only after the 5882 /// the insert operation.
5571 * insert operation.
5572 */
5573 core.bool autoTaggingEnabled; 5883 core.bool autoTaggingEnabled;
5574 /** Customer ID. This field is required when creating an AdWords link. */ 5884
5885 /// Customer ID. This field is required when creating an AdWords link.
5575 core.String customerId; 5886 core.String customerId;
5576 /** Resource type for AdWords account. */ 5887
5888 /// Resource type for AdWords account.
5577 core.String kind; 5889 core.String kind;
5578 5890
5579 AdWordsAccount(); 5891 AdWordsAccount();
5580 5892
5581 AdWordsAccount.fromJson(core.Map _json) { 5893 AdWordsAccount.fromJson(core.Map _json) {
5582 if (_json.containsKey("autoTaggingEnabled")) { 5894 if (_json.containsKey("autoTaggingEnabled")) {
5583 autoTaggingEnabled = _json["autoTaggingEnabled"]; 5895 autoTaggingEnabled = _json["autoTaggingEnabled"];
5584 } 5896 }
5585 if (_json.containsKey("customerId")) { 5897 if (_json.containsKey("customerId")) {
5586 customerId = _json["customerId"]; 5898 customerId = _json["customerId"];
5587 } 5899 }
5588 if (_json.containsKey("kind")) { 5900 if (_json.containsKey("kind")) {
5589 kind = _json["kind"]; 5901 kind = _json["kind"];
5590 } 5902 }
5591 } 5903 }
5592 5904
5593 core.Map<core.String, core.Object> toJson() { 5905 core.Map<core.String, core.Object> toJson() {
5594 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5906 final core.Map<core.String, core.Object> _json =
5907 new core.Map<core.String, core.Object>();
5595 if (autoTaggingEnabled != null) { 5908 if (autoTaggingEnabled != null) {
5596 _json["autoTaggingEnabled"] = autoTaggingEnabled; 5909 _json["autoTaggingEnabled"] = autoTaggingEnabled;
5597 } 5910 }
5598 if (customerId != null) { 5911 if (customerId != null) {
5599 _json["customerId"] = customerId; 5912 _json["customerId"] = customerId;
5600 } 5913 }
5601 if (kind != null) { 5914 if (kind != null) {
5602 _json["kind"] = kind; 5915 _json["kind"] = kind;
5603 } 5916 }
5604 return _json; 5917 return _json;
5605 } 5918 }
5606 } 5919 }
5607 5920
5608 /** Request template for the delete upload data request. */ 5921 /// Request template for the delete upload data request.
5609 class AnalyticsDataimportDeleteUploadDataRequest { 5922 class AnalyticsDataimportDeleteUploadDataRequest {
5610 /** A list of upload UIDs. */ 5923 /// A list of upload UIDs.
5611 core.List<core.String> customDataImportUids; 5924 core.List<core.String> customDataImportUids;
5612 5925
5613 AnalyticsDataimportDeleteUploadDataRequest(); 5926 AnalyticsDataimportDeleteUploadDataRequest();
5614 5927
5615 AnalyticsDataimportDeleteUploadDataRequest.fromJson(core.Map _json) { 5928 AnalyticsDataimportDeleteUploadDataRequest.fromJson(core.Map _json) {
5616 if (_json.containsKey("customDataImportUids")) { 5929 if (_json.containsKey("customDataImportUids")) {
5617 customDataImportUids = _json["customDataImportUids"]; 5930 customDataImportUids = _json["customDataImportUids"];
5618 } 5931 }
5619 } 5932 }
5620 5933
5621 core.Map<core.String, core.Object> toJson() { 5934 core.Map<core.String, core.Object> toJson() {
5622 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5935 final core.Map<core.String, core.Object> _json =
5936 new core.Map<core.String, core.Object>();
5623 if (customDataImportUids != null) { 5937 if (customDataImportUids != null) {
5624 _json["customDataImportUids"] = customDataImportUids; 5938 _json["customDataImportUids"] = customDataImportUids;
5625 } 5939 }
5626 return _json; 5940 return _json;
5627 } 5941 }
5628 } 5942 }
5629 5943
5630 /** JSON template for a metadata column. */ 5944 /// JSON template for a metadata column.
5631 class Column { 5945 class Column {
5632 /** Map of attribute name and value for this column. */ 5946 /// Map of attribute name and value for this column.
5633 core.Map<core.String, core.String> attributes; 5947 core.Map<core.String, core.String> attributes;
5634 /** Column id. */ 5948
5949 /// Column id.
5635 core.String id; 5950 core.String id;
5636 /** Resource type for Analytics column. */ 5951
5952 /// Resource type for Analytics column.
5637 core.String kind; 5953 core.String kind;
5638 5954
5639 Column(); 5955 Column();
5640 5956
5641 Column.fromJson(core.Map _json) { 5957 Column.fromJson(core.Map _json) {
5642 if (_json.containsKey("attributes")) { 5958 if (_json.containsKey("attributes")) {
5643 attributes = _json["attributes"]; 5959 attributes = _json["attributes"];
5644 } 5960 }
5645 if (_json.containsKey("id")) { 5961 if (_json.containsKey("id")) {
5646 id = _json["id"]; 5962 id = _json["id"];
5647 } 5963 }
5648 if (_json.containsKey("kind")) { 5964 if (_json.containsKey("kind")) {
5649 kind = _json["kind"]; 5965 kind = _json["kind"];
5650 } 5966 }
5651 } 5967 }
5652 5968
5653 core.Map<core.String, core.Object> toJson() { 5969 core.Map<core.String, core.Object> toJson() {
5654 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 5970 final core.Map<core.String, core.Object> _json =
5971 new core.Map<core.String, core.Object>();
5655 if (attributes != null) { 5972 if (attributes != null) {
5656 _json["attributes"] = attributes; 5973 _json["attributes"] = attributes;
5657 } 5974 }
5658 if (id != null) { 5975 if (id != null) {
5659 _json["id"] = id; 5976 _json["id"] = id;
5660 } 5977 }
5661 if (kind != null) { 5978 if (kind != null) {
5662 _json["kind"] = kind; 5979 _json["kind"] = kind;
5663 } 5980 }
5664 return _json; 5981 return _json;
5665 } 5982 }
5666 } 5983 }
5667 5984
5668 /** Lists columns (dimensions and metrics) for a particular report type. */ 5985 /// Lists columns (dimensions and metrics) for a particular report type.
5669 class Columns { 5986 class Columns {
5670 /** List of attributes names returned by columns. */ 5987 /// List of attributes names returned by columns.
5671 core.List<core.String> attributeNames; 5988 core.List<core.String> attributeNames;
5672 /** 5989
5673 * Etag of collection. This etag can be compared with the last response etag 5990 /// Etag of collection. This etag can be compared with the last response etag
5674 * to check if response has changed. 5991 /// to check if response has changed.
5675 */
5676 core.String etag; 5992 core.String etag;
5677 /** List of columns for a report type. */ 5993
5994 /// List of columns for a report type.
5678 core.List<Column> items; 5995 core.List<Column> items;
5679 /** Collection type. */ 5996
5997 /// Collection type.
5680 core.String kind; 5998 core.String kind;
5681 /** Total number of columns returned in the response. */ 5999
6000 /// Total number of columns returned in the response.
5682 core.int totalResults; 6001 core.int totalResults;
5683 6002
5684 Columns(); 6003 Columns();
5685 6004
5686 Columns.fromJson(core.Map _json) { 6005 Columns.fromJson(core.Map _json) {
5687 if (_json.containsKey("attributeNames")) { 6006 if (_json.containsKey("attributeNames")) {
5688 attributeNames = _json["attributeNames"]; 6007 attributeNames = _json["attributeNames"];
5689 } 6008 }
5690 if (_json.containsKey("etag")) { 6009 if (_json.containsKey("etag")) {
5691 etag = _json["etag"]; 6010 etag = _json["etag"];
5692 } 6011 }
5693 if (_json.containsKey("items")) { 6012 if (_json.containsKey("items")) {
5694 items = _json["items"].map((value) => new Column.fromJson(value)).toList() ; 6013 items =
6014 _json["items"].map((value) => new Column.fromJson(value)).toList();
5695 } 6015 }
5696 if (_json.containsKey("kind")) { 6016 if (_json.containsKey("kind")) {
5697 kind = _json["kind"]; 6017 kind = _json["kind"];
5698 } 6018 }
5699 if (_json.containsKey("totalResults")) { 6019 if (_json.containsKey("totalResults")) {
5700 totalResults = _json["totalResults"]; 6020 totalResults = _json["totalResults"];
5701 } 6021 }
5702 } 6022 }
5703 6023
5704 core.Map<core.String, core.Object> toJson() { 6024 core.Map<core.String, core.Object> toJson() {
5705 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6025 final core.Map<core.String, core.Object> _json =
6026 new core.Map<core.String, core.Object>();
5706 if (attributeNames != null) { 6027 if (attributeNames != null) {
5707 _json["attributeNames"] = attributeNames; 6028 _json["attributeNames"] = attributeNames;
5708 } 6029 }
5709 if (etag != null) { 6030 if (etag != null) {
5710 _json["etag"] = etag; 6031 _json["etag"] = etag;
5711 } 6032 }
5712 if (items != null) { 6033 if (items != null) {
5713 _json["items"] = items.map((value) => (value).toJson()).toList(); 6034 _json["items"] = items.map((value) => (value).toJson()).toList();
5714 } 6035 }
5715 if (kind != null) { 6036 if (kind != null) {
5716 _json["kind"] = kind; 6037 _json["kind"] = kind;
5717 } 6038 }
5718 if (totalResults != null) { 6039 if (totalResults != null) {
5719 _json["totalResults"] = totalResults; 6040 _json["totalResults"] = totalResults;
5720 } 6041 }
5721 return _json; 6042 return _json;
5722 } 6043 }
5723 } 6044 }
5724 6045
5725 class CustomDataSourceChildLink { 6046 class CustomDataSourceChildLink {
5726 /** 6047 /// Link to the list of daily uploads for this custom data source. Link to
5727 * Link to the list of daily uploads for this custom data source. Link to the 6048 /// the list of uploads for this custom data source.
5728 * list of uploads for this custom data source.
5729 */
5730 core.String href; 6049 core.String href;
5731 /** Value is "analytics#dailyUploads". Value is "analytics#uploads". */ 6050
6051 /// Value is "analytics#dailyUploads". Value is "analytics#uploads".
5732 core.String type; 6052 core.String type;
5733 6053
5734 CustomDataSourceChildLink(); 6054 CustomDataSourceChildLink();
5735 6055
5736 CustomDataSourceChildLink.fromJson(core.Map _json) { 6056 CustomDataSourceChildLink.fromJson(core.Map _json) {
5737 if (_json.containsKey("href")) { 6057 if (_json.containsKey("href")) {
5738 href = _json["href"]; 6058 href = _json["href"];
5739 } 6059 }
5740 if (_json.containsKey("type")) { 6060 if (_json.containsKey("type")) {
5741 type = _json["type"]; 6061 type = _json["type"];
5742 } 6062 }
5743 } 6063 }
5744 6064
5745 core.Map<core.String, core.Object> toJson() { 6065 core.Map<core.String, core.Object> toJson() {
5746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6066 final core.Map<core.String, core.Object> _json =
6067 new core.Map<core.String, core.Object>();
5747 if (href != null) { 6068 if (href != null) {
5748 _json["href"] = href; 6069 _json["href"] = href;
5749 } 6070 }
5750 if (type != null) { 6071 if (type != null) {
5751 _json["type"] = type; 6072 _json["type"] = type;
5752 } 6073 }
5753 return _json; 6074 return _json;
5754 } 6075 }
5755 } 6076 }
5756 6077
5757 /** 6078 /// Parent link for this custom data source. Points to the web property to
5758 * Parent link for this custom data source. Points to the web property to which 6079 /// which this custom data source belongs.
5759 * this custom data source belongs.
5760 */
5761 class CustomDataSourceParentLink { 6080 class CustomDataSourceParentLink {
5762 /** Link to the web property to which this custom data source belongs. */ 6081 /// Link to the web property to which this custom data source belongs.
5763 core.String href; 6082 core.String href;
5764 /** Value is "analytics#webproperty". */ 6083
6084 /// Value is "analytics#webproperty".
5765 core.String type; 6085 core.String type;
5766 6086
5767 CustomDataSourceParentLink(); 6087 CustomDataSourceParentLink();
5768 6088
5769 CustomDataSourceParentLink.fromJson(core.Map _json) { 6089 CustomDataSourceParentLink.fromJson(core.Map _json) {
5770 if (_json.containsKey("href")) { 6090 if (_json.containsKey("href")) {
5771 href = _json["href"]; 6091 href = _json["href"];
5772 } 6092 }
5773 if (_json.containsKey("type")) { 6093 if (_json.containsKey("type")) {
5774 type = _json["type"]; 6094 type = _json["type"];
5775 } 6095 }
5776 } 6096 }
5777 6097
5778 core.Map<core.String, core.Object> toJson() { 6098 core.Map<core.String, core.Object> toJson() {
5779 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6099 final core.Map<core.String, core.Object> _json =
6100 new core.Map<core.String, core.Object>();
5780 if (href != null) { 6101 if (href != null) {
5781 _json["href"] = href; 6102 _json["href"] = href;
5782 } 6103 }
5783 if (type != null) { 6104 if (type != null) {
5784 _json["type"] = type; 6105 _json["type"] = type;
5785 } 6106 }
5786 return _json; 6107 return _json;
5787 } 6108 }
5788 } 6109 }
5789 6110
5790 /** JSON template for an Analytics custom data source. */ 6111 /// JSON template for an Analytics custom data source.
5791 class CustomDataSource { 6112 class CustomDataSource {
5792 /** Account ID to which this custom data source belongs. */ 6113 /// Account ID to which this custom data source belongs.
5793 core.String accountId; 6114 core.String accountId;
5794 CustomDataSourceChildLink childLink; 6115 CustomDataSourceChildLink childLink;
5795 /** Time this custom data source was created. */ 6116
6117 /// Time this custom data source was created.
5796 core.DateTime created; 6118 core.DateTime created;
5797 /** Description of custom data source. */ 6119
6120 /// Description of custom data source.
5798 core.String description; 6121 core.String description;
5799 /** Custom data source ID. */ 6122
6123 /// Custom data source ID.
5800 core.String id; 6124 core.String id;
5801 core.String importBehavior; 6125 core.String importBehavior;
5802 /** Resource type for Analytics custom data source. */ 6126
6127 /// Resource type for Analytics custom data source.
5803 core.String kind; 6128 core.String kind;
5804 /** Name of this custom data source. */ 6129
6130 /// Name of this custom data source.
5805 core.String name; 6131 core.String name;
5806 /** 6132
5807 * Parent link for this custom data source. Points to the web property to 6133 /// Parent link for this custom data source. Points to the web property to
5808 * which this custom data source belongs. 6134 /// which this custom data source belongs.
5809 */
5810 CustomDataSourceParentLink parentLink; 6135 CustomDataSourceParentLink parentLink;
5811 /** IDs of views (profiles) linked to the custom data source. */ 6136
6137 /// IDs of views (profiles) linked to the custom data source.
5812 core.List<core.String> profilesLinked; 6138 core.List<core.String> profilesLinked;
5813 /** Collection of schema headers of the custom data source. */ 6139
6140 /// Collection of schema headers of the custom data source.
5814 core.List<core.String> schema; 6141 core.List<core.String> schema;
5815 /** Link for this Analytics custom data source. */ 6142
6143 /// Link for this Analytics custom data source.
5816 core.String selfLink; 6144 core.String selfLink;
5817 /** Type of the custom data source. */ 6145
6146 /// Type of the custom data source.
5818 core.String type; 6147 core.String type;
5819 /** Time this custom data source was last modified. */ 6148
6149 /// Time this custom data source was last modified.
5820 core.DateTime updated; 6150 core.DateTime updated;
5821 /** Upload type of the custom data source. */ 6151
6152 /// Upload type of the custom data source.
5822 core.String uploadType; 6153 core.String uploadType;
5823 /** 6154
5824 * Web property ID of the form UA-XXXXX-YY to which this custom data source 6155 /// Web property ID of the form UA-XXXXX-YY to which this custom data source
5825 * belongs. 6156 /// belongs.
5826 */
5827 core.String webPropertyId; 6157 core.String webPropertyId;
5828 6158
5829 CustomDataSource(); 6159 CustomDataSource();
5830 6160
5831 CustomDataSource.fromJson(core.Map _json) { 6161 CustomDataSource.fromJson(core.Map _json) {
5832 if (_json.containsKey("accountId")) { 6162 if (_json.containsKey("accountId")) {
5833 accountId = _json["accountId"]; 6163 accountId = _json["accountId"];
5834 } 6164 }
5835 if (_json.containsKey("childLink")) { 6165 if (_json.containsKey("childLink")) {
5836 childLink = new CustomDataSourceChildLink.fromJson(_json["childLink"]); 6166 childLink = new CustomDataSourceChildLink.fromJson(_json["childLink"]);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5873 } 6203 }
5874 if (_json.containsKey("uploadType")) { 6204 if (_json.containsKey("uploadType")) {
5875 uploadType = _json["uploadType"]; 6205 uploadType = _json["uploadType"];
5876 } 6206 }
5877 if (_json.containsKey("webPropertyId")) { 6207 if (_json.containsKey("webPropertyId")) {
5878 webPropertyId = _json["webPropertyId"]; 6208 webPropertyId = _json["webPropertyId"];
5879 } 6209 }
5880 } 6210 }
5881 6211
5882 core.Map<core.String, core.Object> toJson() { 6212 core.Map<core.String, core.Object> toJson() {
5883 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6213 final core.Map<core.String, core.Object> _json =
6214 new core.Map<core.String, core.Object>();
5884 if (accountId != null) { 6215 if (accountId != null) {
5885 _json["accountId"] = accountId; 6216 _json["accountId"] = accountId;
5886 } 6217 }
5887 if (childLink != null) { 6218 if (childLink != null) {
5888 _json["childLink"] = (childLink).toJson(); 6219 _json["childLink"] = (childLink).toJson();
5889 } 6220 }
5890 if (created != null) { 6221 if (created != null) {
5891 _json["created"] = (created).toIso8601String(); 6222 _json["created"] = (created).toIso8601String();
5892 } 6223 }
5893 if (description != null) { 6224 if (description != null) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
5926 if (uploadType != null) { 6257 if (uploadType != null) {
5927 _json["uploadType"] = uploadType; 6258 _json["uploadType"] = uploadType;
5928 } 6259 }
5929 if (webPropertyId != null) { 6260 if (webPropertyId != null) {
5930 _json["webPropertyId"] = webPropertyId; 6261 _json["webPropertyId"] = webPropertyId;
5931 } 6262 }
5932 return _json; 6263 return _json;
5933 } 6264 }
5934 } 6265 }
5935 6266
5936 /** 6267 /// Lists Analytics custom data sources to which the user has access. Each
5937 * Lists Analytics custom data sources to which the user has access. Each 6268 /// resource in the collection corresponds to a single Analytics custom data
5938 * resource in the collection corresponds to a single Analytics custom data 6269 /// source.
5939 * source.
5940 */
5941 class CustomDataSources { 6270 class CustomDataSources {
5942 /** Collection of custom data sources. */ 6271 /// Collection of custom data sources.
5943 core.List<CustomDataSource> items; 6272 core.List<CustomDataSource> items;
5944 /** 6273
5945 * The maximum number of resources the response can contain, regardless of the 6274 /// The maximum number of resources the response can contain, regardless of
5946 * actual number of resources returned. Its value ranges from 1 to 1000 with a 6275 /// the actual number of resources returned. Its value ranges from 1 to 1000
5947 * value of 1000 by default, or otherwise specified by the max-results query 6276 /// with a value of 1000 by default, or otherwise specified by the
5948 * parameter. 6277 /// max-results query parameter.
5949 */
5950 core.int itemsPerPage; 6278 core.int itemsPerPage;
5951 /** Collection type. */ 6279
6280 /// Collection type.
5952 core.String kind; 6281 core.String kind;
5953 /** Link to next page for this custom data source collection. */ 6282
6283 /// Link to next page for this custom data source collection.
5954 core.String nextLink; 6284 core.String nextLink;
5955 /** Link to previous page for this custom data source collection. */ 6285
6286 /// Link to previous page for this custom data source collection.
5956 core.String previousLink; 6287 core.String previousLink;
5957 /** 6288
5958 * The starting index of the resources, which is 1 by default or otherwise 6289 /// The starting index of the resources, which is 1 by default or otherwise
5959 * specified by the start-index query parameter. 6290 /// specified by the start-index query parameter.
5960 */
5961 core.int startIndex; 6291 core.int startIndex;
5962 /** 6292
5963 * The total number of results for the query, regardless of the number of 6293 /// The total number of results for the query, regardless of the number of
5964 * results in the response. 6294 /// results in the response.
5965 */
5966 core.int totalResults; 6295 core.int totalResults;
5967 /** Email ID of the authenticated user */ 6296
6297 /// Email ID of the authenticated user
5968 core.String username; 6298 core.String username;
5969 6299
5970 CustomDataSources(); 6300 CustomDataSources();
5971 6301
5972 CustomDataSources.fromJson(core.Map _json) { 6302 CustomDataSources.fromJson(core.Map _json) {
5973 if (_json.containsKey("items")) { 6303 if (_json.containsKey("items")) {
5974 items = _json["items"].map((value) => new CustomDataSource.fromJson(value) ).toList(); 6304 items = _json["items"]
6305 .map((value) => new CustomDataSource.fromJson(value))
6306 .toList();
5975 } 6307 }
5976 if (_json.containsKey("itemsPerPage")) { 6308 if (_json.containsKey("itemsPerPage")) {
5977 itemsPerPage = _json["itemsPerPage"]; 6309 itemsPerPage = _json["itemsPerPage"];
5978 } 6310 }
5979 if (_json.containsKey("kind")) { 6311 if (_json.containsKey("kind")) {
5980 kind = _json["kind"]; 6312 kind = _json["kind"];
5981 } 6313 }
5982 if (_json.containsKey("nextLink")) { 6314 if (_json.containsKey("nextLink")) {
5983 nextLink = _json["nextLink"]; 6315 nextLink = _json["nextLink"];
5984 } 6316 }
5985 if (_json.containsKey("previousLink")) { 6317 if (_json.containsKey("previousLink")) {
5986 previousLink = _json["previousLink"]; 6318 previousLink = _json["previousLink"];
5987 } 6319 }
5988 if (_json.containsKey("startIndex")) { 6320 if (_json.containsKey("startIndex")) {
5989 startIndex = _json["startIndex"]; 6321 startIndex = _json["startIndex"];
5990 } 6322 }
5991 if (_json.containsKey("totalResults")) { 6323 if (_json.containsKey("totalResults")) {
5992 totalResults = _json["totalResults"]; 6324 totalResults = _json["totalResults"];
5993 } 6325 }
5994 if (_json.containsKey("username")) { 6326 if (_json.containsKey("username")) {
5995 username = _json["username"]; 6327 username = _json["username"];
5996 } 6328 }
5997 } 6329 }
5998 6330
5999 core.Map<core.String, core.Object> toJson() { 6331 core.Map<core.String, core.Object> toJson() {
6000 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6332 final core.Map<core.String, core.Object> _json =
6333 new core.Map<core.String, core.Object>();
6001 if (items != null) { 6334 if (items != null) {
6002 _json["items"] = items.map((value) => (value).toJson()).toList(); 6335 _json["items"] = items.map((value) => (value).toJson()).toList();
6003 } 6336 }
6004 if (itemsPerPage != null) { 6337 if (itemsPerPage != null) {
6005 _json["itemsPerPage"] = itemsPerPage; 6338 _json["itemsPerPage"] = itemsPerPage;
6006 } 6339 }
6007 if (kind != null) { 6340 if (kind != null) {
6008 _json["kind"] = kind; 6341 _json["kind"] = kind;
6009 } 6342 }
6010 if (nextLink != null) { 6343 if (nextLink != null) {
6011 _json["nextLink"] = nextLink; 6344 _json["nextLink"] = nextLink;
6012 } 6345 }
6013 if (previousLink != null) { 6346 if (previousLink != null) {
6014 _json["previousLink"] = previousLink; 6347 _json["previousLink"] = previousLink;
6015 } 6348 }
6016 if (startIndex != null) { 6349 if (startIndex != null) {
6017 _json["startIndex"] = startIndex; 6350 _json["startIndex"] = startIndex;
6018 } 6351 }
6019 if (totalResults != null) { 6352 if (totalResults != null) {
6020 _json["totalResults"] = totalResults; 6353 _json["totalResults"] = totalResults;
6021 } 6354 }
6022 if (username != null) { 6355 if (username != null) {
6023 _json["username"] = username; 6356 _json["username"] = username;
6024 } 6357 }
6025 return _json; 6358 return _json;
6026 } 6359 }
6027 } 6360 }
6028 6361
6029 /** 6362 /// Parent link for the custom dimension. Points to the property to which the
6030 * Parent link for the custom dimension. Points to the property to which the 6363 /// custom dimension belongs.
6031 * custom dimension belongs.
6032 */
6033 class CustomDimensionParentLink { 6364 class CustomDimensionParentLink {
6034 /** Link to the property to which the custom dimension belongs. */ 6365 /// Link to the property to which the custom dimension belongs.
6035 core.String href; 6366 core.String href;
6036 /** Type of the parent link. Set to "analytics#webproperty". */ 6367
6368 /// Type of the parent link. Set to "analytics#webproperty".
6037 core.String type; 6369 core.String type;
6038 6370
6039 CustomDimensionParentLink(); 6371 CustomDimensionParentLink();
6040 6372
6041 CustomDimensionParentLink.fromJson(core.Map _json) { 6373 CustomDimensionParentLink.fromJson(core.Map _json) {
6042 if (_json.containsKey("href")) { 6374 if (_json.containsKey("href")) {
6043 href = _json["href"]; 6375 href = _json["href"];
6044 } 6376 }
6045 if (_json.containsKey("type")) { 6377 if (_json.containsKey("type")) {
6046 type = _json["type"]; 6378 type = _json["type"];
6047 } 6379 }
6048 } 6380 }
6049 6381
6050 core.Map<core.String, core.Object> toJson() { 6382 core.Map<core.String, core.Object> toJson() {
6051 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6383 final core.Map<core.String, core.Object> _json =
6384 new core.Map<core.String, core.Object>();
6052 if (href != null) { 6385 if (href != null) {
6053 _json["href"] = href; 6386 _json["href"] = href;
6054 } 6387 }
6055 if (type != null) { 6388 if (type != null) {
6056 _json["type"] = type; 6389 _json["type"] = type;
6057 } 6390 }
6058 return _json; 6391 return _json;
6059 } 6392 }
6060 } 6393 }
6061 6394
6062 /** JSON template for Analytics Custom Dimension. */ 6395 /// JSON template for Analytics Custom Dimension.
6063 class CustomDimension { 6396 class CustomDimension {
6064 /** Account ID. */ 6397 /// Account ID.
6065 core.String accountId; 6398 core.String accountId;
6066 /** Boolean indicating whether the custom dimension is active. */ 6399
6400 /// Boolean indicating whether the custom dimension is active.
6067 core.bool active; 6401 core.bool active;
6068 /** Time the custom dimension was created. */ 6402
6403 /// Time the custom dimension was created.
6069 core.DateTime created; 6404 core.DateTime created;
6070 /** Custom dimension ID. */ 6405
6406 /// Custom dimension ID.
6071 core.String id; 6407 core.String id;
6072 /** Index of the custom dimension. */ 6408
6409 /// Index of the custom dimension.
6073 core.int index; 6410 core.int index;
6074 /** 6411
6075 * Kind value for a custom dimension. Set to "analytics#customDimension". It 6412 /// Kind value for a custom dimension. Set to "analytics#customDimension". It
6076 * is a read-only field. 6413 /// is a read-only field.
6077 */
6078 core.String kind; 6414 core.String kind;
6079 /** Name of the custom dimension. */ 6415
6416 /// Name of the custom dimension.
6080 core.String name; 6417 core.String name;
6081 /** 6418
6082 * Parent link for the custom dimension. Points to the property to which the 6419 /// Parent link for the custom dimension. Points to the property to which the
6083 * custom dimension belongs. 6420 /// custom dimension belongs.
6084 */
6085 CustomDimensionParentLink parentLink; 6421 CustomDimensionParentLink parentLink;
6086 /** Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. */ 6422
6423 /// Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
6087 core.String scope; 6424 core.String scope;
6088 /** Link for the custom dimension */ 6425
6426 /// Link for the custom dimension
6089 core.String selfLink; 6427 core.String selfLink;
6090 /** Time the custom dimension was last modified. */ 6428
6429 /// Time the custom dimension was last modified.
6091 core.DateTime updated; 6430 core.DateTime updated;
6092 /** Property ID. */ 6431
6432 /// Property ID.
6093 core.String webPropertyId; 6433 core.String webPropertyId;
6094 6434
6095 CustomDimension(); 6435 CustomDimension();
6096 6436
6097 CustomDimension.fromJson(core.Map _json) { 6437 CustomDimension.fromJson(core.Map _json) {
6098 if (_json.containsKey("accountId")) { 6438 if (_json.containsKey("accountId")) {
6099 accountId = _json["accountId"]; 6439 accountId = _json["accountId"];
6100 } 6440 }
6101 if (_json.containsKey("active")) { 6441 if (_json.containsKey("active")) {
6102 active = _json["active"]; 6442 active = _json["active"];
(...skipping 24 matching lines...) Expand all
6127 } 6467 }
6128 if (_json.containsKey("updated")) { 6468 if (_json.containsKey("updated")) {
6129 updated = core.DateTime.parse(_json["updated"]); 6469 updated = core.DateTime.parse(_json["updated"]);
6130 } 6470 }
6131 if (_json.containsKey("webPropertyId")) { 6471 if (_json.containsKey("webPropertyId")) {
6132 webPropertyId = _json["webPropertyId"]; 6472 webPropertyId = _json["webPropertyId"];
6133 } 6473 }
6134 } 6474 }
6135 6475
6136 core.Map<core.String, core.Object> toJson() { 6476 core.Map<core.String, core.Object> toJson() {
6137 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6477 final core.Map<core.String, core.Object> _json =
6478 new core.Map<core.String, core.Object>();
6138 if (accountId != null) { 6479 if (accountId != null) {
6139 _json["accountId"] = accountId; 6480 _json["accountId"] = accountId;
6140 } 6481 }
6141 if (active != null) { 6482 if (active != null) {
6142 _json["active"] = active; 6483 _json["active"] = active;
6143 } 6484 }
6144 if (created != null) { 6485 if (created != null) {
6145 _json["created"] = (created).toIso8601String(); 6486 _json["created"] = (created).toIso8601String();
6146 } 6487 }
6147 if (id != null) { 6488 if (id != null) {
(...skipping 20 matching lines...) Expand all
6168 if (updated != null) { 6509 if (updated != null) {
6169 _json["updated"] = (updated).toIso8601String(); 6510 _json["updated"] = (updated).toIso8601String();
6170 } 6511 }
6171 if (webPropertyId != null) { 6512 if (webPropertyId != null) {
6172 _json["webPropertyId"] = webPropertyId; 6513 _json["webPropertyId"] = webPropertyId;
6173 } 6514 }
6174 return _json; 6515 return _json;
6175 } 6516 }
6176 } 6517 }
6177 6518
6178 /** 6519 /// A custom dimension collection lists Analytics custom dimensions to which
6179 * A custom dimension collection lists Analytics custom dimensions to which the 6520 /// the user has access. Each resource in the collection corresponds to a
6180 * user has access. Each resource in the collection corresponds to a single 6521 /// single Analytics custom dimension.
6181 * Analytics custom dimension.
6182 */
6183 class CustomDimensions { 6522 class CustomDimensions {
6184 /** Collection of custom dimensions. */ 6523 /// Collection of custom dimensions.
6185 core.List<CustomDimension> items; 6524 core.List<CustomDimension> items;
6186 /** 6525
6187 * The maximum number of resources the response can contain, regardless of the 6526 /// The maximum number of resources the response can contain, regardless of
6188 * actual number of resources returned. Its value ranges from 1 to 1000 with a 6527 /// the actual number of resources returned. Its value ranges from 1 to 1000
6189 * value of 1000 by default, or otherwise specified by the max-results query 6528 /// with a value of 1000 by default, or otherwise specified by the
6190 * parameter. 6529 /// max-results query parameter.
6191 */
6192 core.int itemsPerPage; 6530 core.int itemsPerPage;
6193 /** Collection type. */ 6531
6532 /// Collection type.
6194 core.String kind; 6533 core.String kind;
6195 /** Link to next page for this custom dimension collection. */ 6534
6535 /// Link to next page for this custom dimension collection.
6196 core.String nextLink; 6536 core.String nextLink;
6197 /** Link to previous page for this custom dimension collection. */ 6537
6538 /// Link to previous page for this custom dimension collection.
6198 core.String previousLink; 6539 core.String previousLink;
6199 /** 6540
6200 * The starting index of the resources, which is 1 by default or otherwise 6541 /// The starting index of the resources, which is 1 by default or otherwise
6201 * specified by the start-index query parameter. 6542 /// specified by the start-index query parameter.
6202 */
6203 core.int startIndex; 6543 core.int startIndex;
6204 /** 6544
6205 * The total number of results for the query, regardless of the number of 6545 /// The total number of results for the query, regardless of the number of
6206 * results in the response. 6546 /// results in the response.
6207 */
6208 core.int totalResults; 6547 core.int totalResults;
6209 /** Email ID of the authenticated user */ 6548
6549 /// Email ID of the authenticated user
6210 core.String username; 6550 core.String username;
6211 6551
6212 CustomDimensions(); 6552 CustomDimensions();
6213 6553
6214 CustomDimensions.fromJson(core.Map _json) { 6554 CustomDimensions.fromJson(core.Map _json) {
6215 if (_json.containsKey("items")) { 6555 if (_json.containsKey("items")) {
6216 items = _json["items"].map((value) => new CustomDimension.fromJson(value)) .toList(); 6556 items = _json["items"]
6557 .map((value) => new CustomDimension.fromJson(value))
6558 .toList();
6217 } 6559 }
6218 if (_json.containsKey("itemsPerPage")) { 6560 if (_json.containsKey("itemsPerPage")) {
6219 itemsPerPage = _json["itemsPerPage"]; 6561 itemsPerPage = _json["itemsPerPage"];
6220 } 6562 }
6221 if (_json.containsKey("kind")) { 6563 if (_json.containsKey("kind")) {
6222 kind = _json["kind"]; 6564 kind = _json["kind"];
6223 } 6565 }
6224 if (_json.containsKey("nextLink")) { 6566 if (_json.containsKey("nextLink")) {
6225 nextLink = _json["nextLink"]; 6567 nextLink = _json["nextLink"];
6226 } 6568 }
6227 if (_json.containsKey("previousLink")) { 6569 if (_json.containsKey("previousLink")) {
6228 previousLink = _json["previousLink"]; 6570 previousLink = _json["previousLink"];
6229 } 6571 }
6230 if (_json.containsKey("startIndex")) { 6572 if (_json.containsKey("startIndex")) {
6231 startIndex = _json["startIndex"]; 6573 startIndex = _json["startIndex"];
6232 } 6574 }
6233 if (_json.containsKey("totalResults")) { 6575 if (_json.containsKey("totalResults")) {
6234 totalResults = _json["totalResults"]; 6576 totalResults = _json["totalResults"];
6235 } 6577 }
6236 if (_json.containsKey("username")) { 6578 if (_json.containsKey("username")) {
6237 username = _json["username"]; 6579 username = _json["username"];
6238 } 6580 }
6239 } 6581 }
6240 6582
6241 core.Map<core.String, core.Object> toJson() { 6583 core.Map<core.String, core.Object> toJson() {
6242 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6584 final core.Map<core.String, core.Object> _json =
6585 new core.Map<core.String, core.Object>();
6243 if (items != null) { 6586 if (items != null) {
6244 _json["items"] = items.map((value) => (value).toJson()).toList(); 6587 _json["items"] = items.map((value) => (value).toJson()).toList();
6245 } 6588 }
6246 if (itemsPerPage != null) { 6589 if (itemsPerPage != null) {
6247 _json["itemsPerPage"] = itemsPerPage; 6590 _json["itemsPerPage"] = itemsPerPage;
6248 } 6591 }
6249 if (kind != null) { 6592 if (kind != null) {
6250 _json["kind"] = kind; 6593 _json["kind"] = kind;
6251 } 6594 }
6252 if (nextLink != null) { 6595 if (nextLink != null) {
6253 _json["nextLink"] = nextLink; 6596 _json["nextLink"] = nextLink;
6254 } 6597 }
6255 if (previousLink != null) { 6598 if (previousLink != null) {
6256 _json["previousLink"] = previousLink; 6599 _json["previousLink"] = previousLink;
6257 } 6600 }
6258 if (startIndex != null) { 6601 if (startIndex != null) {
6259 _json["startIndex"] = startIndex; 6602 _json["startIndex"] = startIndex;
6260 } 6603 }
6261 if (totalResults != null) { 6604 if (totalResults != null) {
6262 _json["totalResults"] = totalResults; 6605 _json["totalResults"] = totalResults;
6263 } 6606 }
6264 if (username != null) { 6607 if (username != null) {
6265 _json["username"] = username; 6608 _json["username"] = username;
6266 } 6609 }
6267 return _json; 6610 return _json;
6268 } 6611 }
6269 } 6612 }
6270 6613
6271 /** 6614 /// Parent link for the custom metric. Points to the property to which the
6272 * Parent link for the custom metric. Points to the property to which the custom 6615 /// custom metric belongs.
6273 * metric belongs.
6274 */
6275 class CustomMetricParentLink { 6616 class CustomMetricParentLink {
6276 /** Link to the property to which the custom metric belongs. */ 6617 /// Link to the property to which the custom metric belongs.
6277 core.String href; 6618 core.String href;
6278 /** Type of the parent link. Set to "analytics#webproperty". */ 6619
6620 /// Type of the parent link. Set to "analytics#webproperty".
6279 core.String type; 6621 core.String type;
6280 6622
6281 CustomMetricParentLink(); 6623 CustomMetricParentLink();
6282 6624
6283 CustomMetricParentLink.fromJson(core.Map _json) { 6625 CustomMetricParentLink.fromJson(core.Map _json) {
6284 if (_json.containsKey("href")) { 6626 if (_json.containsKey("href")) {
6285 href = _json["href"]; 6627 href = _json["href"];
6286 } 6628 }
6287 if (_json.containsKey("type")) { 6629 if (_json.containsKey("type")) {
6288 type = _json["type"]; 6630 type = _json["type"];
6289 } 6631 }
6290 } 6632 }
6291 6633
6292 core.Map<core.String, core.Object> toJson() { 6634 core.Map<core.String, core.Object> toJson() {
6293 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6635 final core.Map<core.String, core.Object> _json =
6636 new core.Map<core.String, core.Object>();
6294 if (href != null) { 6637 if (href != null) {
6295 _json["href"] = href; 6638 _json["href"] = href;
6296 } 6639 }
6297 if (type != null) { 6640 if (type != null) {
6298 _json["type"] = type; 6641 _json["type"] = type;
6299 } 6642 }
6300 return _json; 6643 return _json;
6301 } 6644 }
6302 } 6645 }
6303 6646
6304 /** JSON template for Analytics Custom Metric. */ 6647 /// JSON template for Analytics Custom Metric.
6305 class CustomMetric { 6648 class CustomMetric {
6306 /** Account ID. */ 6649 /// Account ID.
6307 core.String accountId; 6650 core.String accountId;
6308 /** Boolean indicating whether the custom metric is active. */ 6651
6652 /// Boolean indicating whether the custom metric is active.
6309 core.bool active; 6653 core.bool active;
6310 /** Time the custom metric was created. */ 6654
6655 /// Time the custom metric was created.
6311 core.DateTime created; 6656 core.DateTime created;
6312 /** Custom metric ID. */ 6657
6658 /// Custom metric ID.
6313 core.String id; 6659 core.String id;
6314 /** Index of the custom metric. */ 6660
6661 /// Index of the custom metric.
6315 core.int index; 6662 core.int index;
6316 /** 6663
6317 * Kind value for a custom metric. Set to "analytics#customMetric". It is a 6664 /// Kind value for a custom metric. Set to "analytics#customMetric". It is a
6318 * read-only field. 6665 /// read-only field.
6319 */
6320 core.String kind; 6666 core.String kind;
6321 /** Max value of custom metric. */ 6667
6668 /// Max value of custom metric.
6322 core.String maxValue; 6669 core.String maxValue;
6323 /** Min value of custom metric. */ 6670
6671 /// Min value of custom metric.
6324 core.String minValue; 6672 core.String minValue;
6325 /** Name of the custom metric. */ 6673
6674 /// Name of the custom metric.
6326 core.String name; 6675 core.String name;
6327 /** 6676
6328 * Parent link for the custom metric. Points to the property to which the 6677 /// Parent link for the custom metric. Points to the property to which the
6329 * custom metric belongs. 6678 /// custom metric belongs.
6330 */
6331 CustomMetricParentLink parentLink; 6679 CustomMetricParentLink parentLink;
6332 /** Scope of the custom metric: HIT or PRODUCT. */ 6680
6681 /// Scope of the custom metric: HIT or PRODUCT.
6333 core.String scope; 6682 core.String scope;
6334 /** Link for the custom metric */ 6683
6684 /// Link for the custom metric
6335 core.String selfLink; 6685 core.String selfLink;
6336 /** Data type of custom metric. */ 6686
6687 /// Data type of custom metric.
6337 core.String type; 6688 core.String type;
6338 /** Time the custom metric was last modified. */ 6689
6690 /// Time the custom metric was last modified.
6339 core.DateTime updated; 6691 core.DateTime updated;
6340 /** Property ID. */ 6692
6693 /// Property ID.
6341 core.String webPropertyId; 6694 core.String webPropertyId;
6342 6695
6343 CustomMetric(); 6696 CustomMetric();
6344 6697
6345 CustomMetric.fromJson(core.Map _json) { 6698 CustomMetric.fromJson(core.Map _json) {
6346 if (_json.containsKey("accountId")) { 6699 if (_json.containsKey("accountId")) {
6347 accountId = _json["accountId"]; 6700 accountId = _json["accountId"];
6348 } 6701 }
6349 if (_json.containsKey("active")) { 6702 if (_json.containsKey("active")) {
6350 active = _json["active"]; 6703 active = _json["active"];
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6384 } 6737 }
6385 if (_json.containsKey("updated")) { 6738 if (_json.containsKey("updated")) {
6386 updated = core.DateTime.parse(_json["updated"]); 6739 updated = core.DateTime.parse(_json["updated"]);
6387 } 6740 }
6388 if (_json.containsKey("webPropertyId")) { 6741 if (_json.containsKey("webPropertyId")) {
6389 webPropertyId = _json["webPropertyId"]; 6742 webPropertyId = _json["webPropertyId"];
6390 } 6743 }
6391 } 6744 }
6392 6745
6393 core.Map<core.String, core.Object> toJson() { 6746 core.Map<core.String, core.Object> toJson() {
6394 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6747 final core.Map<core.String, core.Object> _json =
6748 new core.Map<core.String, core.Object>();
6395 if (accountId != null) { 6749 if (accountId != null) {
6396 _json["accountId"] = accountId; 6750 _json["accountId"] = accountId;
6397 } 6751 }
6398 if (active != null) { 6752 if (active != null) {
6399 _json["active"] = active; 6753 _json["active"] = active;
6400 } 6754 }
6401 if (created != null) { 6755 if (created != null) {
6402 _json["created"] = (created).toIso8601String(); 6756 _json["created"] = (created).toIso8601String();
6403 } 6757 }
6404 if (id != null) { 6758 if (id != null) {
(...skipping 29 matching lines...) Expand all
6434 if (updated != null) { 6788 if (updated != null) {
6435 _json["updated"] = (updated).toIso8601String(); 6789 _json["updated"] = (updated).toIso8601String();
6436 } 6790 }
6437 if (webPropertyId != null) { 6791 if (webPropertyId != null) {
6438 _json["webPropertyId"] = webPropertyId; 6792 _json["webPropertyId"] = webPropertyId;
6439 } 6793 }
6440 return _json; 6794 return _json;
6441 } 6795 }
6442 } 6796 }
6443 6797
6444 /** 6798 /// A custom metric collection lists Analytics custom metrics to which the user
6445 * A custom metric collection lists Analytics custom metrics to which the user 6799 /// has access. Each resource in the collection corresponds to a single
6446 * has access. Each resource in the collection corresponds to a single Analytics 6800 /// Analytics custom metric.
6447 * custom metric.
6448 */
6449 class CustomMetrics { 6801 class CustomMetrics {
6450 /** Collection of custom metrics. */ 6802 /// Collection of custom metrics.
6451 core.List<CustomMetric> items; 6803 core.List<CustomMetric> items;
6452 /** 6804
6453 * The maximum number of resources the response can contain, regardless of the 6805 /// The maximum number of resources the response can contain, regardless of
6454 * actual number of resources returned. Its value ranges from 1 to 1000 with a 6806 /// the actual number of resources returned. Its value ranges from 1 to 1000
6455 * value of 1000 by default, or otherwise specified by the max-results query 6807 /// with a value of 1000 by default, or otherwise specified by the
6456 * parameter. 6808 /// max-results query parameter.
6457 */
6458 core.int itemsPerPage; 6809 core.int itemsPerPage;
6459 /** Collection type. */ 6810
6811 /// Collection type.
6460 core.String kind; 6812 core.String kind;
6461 /** Link to next page for this custom metric collection. */ 6813
6814 /// Link to next page for this custom metric collection.
6462 core.String nextLink; 6815 core.String nextLink;
6463 /** Link to previous page for this custom metric collection. */ 6816
6817 /// Link to previous page for this custom metric collection.
6464 core.String previousLink; 6818 core.String previousLink;
6465 /** 6819
6466 * The starting index of the resources, which is 1 by default or otherwise 6820 /// The starting index of the resources, which is 1 by default or otherwise
6467 * specified by the start-index query parameter. 6821 /// specified by the start-index query parameter.
6468 */
6469 core.int startIndex; 6822 core.int startIndex;
6470 /** 6823
6471 * The total number of results for the query, regardless of the number of 6824 /// The total number of results for the query, regardless of the number of
6472 * results in the response. 6825 /// results in the response.
6473 */
6474 core.int totalResults; 6826 core.int totalResults;
6475 /** Email ID of the authenticated user */ 6827
6828 /// Email ID of the authenticated user
6476 core.String username; 6829 core.String username;
6477 6830
6478 CustomMetrics(); 6831 CustomMetrics();
6479 6832
6480 CustomMetrics.fromJson(core.Map _json) { 6833 CustomMetrics.fromJson(core.Map _json) {
6481 if (_json.containsKey("items")) { 6834 if (_json.containsKey("items")) {
6482 items = _json["items"].map((value) => new CustomMetric.fromJson(value)).to List(); 6835 items = _json["items"]
6836 .map((value) => new CustomMetric.fromJson(value))
6837 .toList();
6483 } 6838 }
6484 if (_json.containsKey("itemsPerPage")) { 6839 if (_json.containsKey("itemsPerPage")) {
6485 itemsPerPage = _json["itemsPerPage"]; 6840 itemsPerPage = _json["itemsPerPage"];
6486 } 6841 }
6487 if (_json.containsKey("kind")) { 6842 if (_json.containsKey("kind")) {
6488 kind = _json["kind"]; 6843 kind = _json["kind"];
6489 } 6844 }
6490 if (_json.containsKey("nextLink")) { 6845 if (_json.containsKey("nextLink")) {
6491 nextLink = _json["nextLink"]; 6846 nextLink = _json["nextLink"];
6492 } 6847 }
6493 if (_json.containsKey("previousLink")) { 6848 if (_json.containsKey("previousLink")) {
6494 previousLink = _json["previousLink"]; 6849 previousLink = _json["previousLink"];
6495 } 6850 }
6496 if (_json.containsKey("startIndex")) { 6851 if (_json.containsKey("startIndex")) {
6497 startIndex = _json["startIndex"]; 6852 startIndex = _json["startIndex"];
6498 } 6853 }
6499 if (_json.containsKey("totalResults")) { 6854 if (_json.containsKey("totalResults")) {
6500 totalResults = _json["totalResults"]; 6855 totalResults = _json["totalResults"];
6501 } 6856 }
6502 if (_json.containsKey("username")) { 6857 if (_json.containsKey("username")) {
6503 username = _json["username"]; 6858 username = _json["username"];
6504 } 6859 }
6505 } 6860 }
6506 6861
6507 core.Map<core.String, core.Object> toJson() { 6862 core.Map<core.String, core.Object> toJson() {
6508 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6863 final core.Map<core.String, core.Object> _json =
6864 new core.Map<core.String, core.Object>();
6509 if (items != null) { 6865 if (items != null) {
6510 _json["items"] = items.map((value) => (value).toJson()).toList(); 6866 _json["items"] = items.map((value) => (value).toJson()).toList();
6511 } 6867 }
6512 if (itemsPerPage != null) { 6868 if (itemsPerPage != null) {
6513 _json["itemsPerPage"] = itemsPerPage; 6869 _json["itemsPerPage"] = itemsPerPage;
6514 } 6870 }
6515 if (kind != null) { 6871 if (kind != null) {
6516 _json["kind"] = kind; 6872 _json["kind"] = kind;
6517 } 6873 }
6518 if (nextLink != null) { 6874 if (nextLink != null) {
6519 _json["nextLink"] = nextLink; 6875 _json["nextLink"] = nextLink;
6520 } 6876 }
6521 if (previousLink != null) { 6877 if (previousLink != null) {
6522 _json["previousLink"] = previousLink; 6878 _json["previousLink"] = previousLink;
6523 } 6879 }
6524 if (startIndex != null) { 6880 if (startIndex != null) {
6525 _json["startIndex"] = startIndex; 6881 _json["startIndex"] = startIndex;
6526 } 6882 }
6527 if (totalResults != null) { 6883 if (totalResults != null) {
6528 _json["totalResults"] = totalResults; 6884 _json["totalResults"] = totalResults;
6529 } 6885 }
6530 if (username != null) { 6886 if (username != null) {
6531 _json["username"] = username; 6887 _json["username"] = username;
6532 } 6888 }
6533 return _json; 6889 return _json;
6534 } 6890 }
6535 } 6891 }
6536 6892
6537 /** Web property being linked. */ 6893 /// Web property being linked.
6538 class EntityAdWordsLinkEntity { 6894 class EntityAdWordsLinkEntity {
6539 WebPropertyRef webPropertyRef; 6895 WebPropertyRef webPropertyRef;
6540 6896
6541 EntityAdWordsLinkEntity(); 6897 EntityAdWordsLinkEntity();
6542 6898
6543 EntityAdWordsLinkEntity.fromJson(core.Map _json) { 6899 EntityAdWordsLinkEntity.fromJson(core.Map _json) {
6544 if (_json.containsKey("webPropertyRef")) { 6900 if (_json.containsKey("webPropertyRef")) {
6545 webPropertyRef = new WebPropertyRef.fromJson(_json["webPropertyRef"]); 6901 webPropertyRef = new WebPropertyRef.fromJson(_json["webPropertyRef"]);
6546 } 6902 }
6547 } 6903 }
6548 6904
6549 core.Map<core.String, core.Object> toJson() { 6905 core.Map<core.String, core.Object> toJson() {
6550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6906 final core.Map<core.String, core.Object> _json =
6907 new core.Map<core.String, core.Object>();
6551 if (webPropertyRef != null) { 6908 if (webPropertyRef != null) {
6552 _json["webPropertyRef"] = (webPropertyRef).toJson(); 6909 _json["webPropertyRef"] = (webPropertyRef).toJson();
6553 } 6910 }
6554 return _json; 6911 return _json;
6555 } 6912 }
6556 } 6913 }
6557 6914
6558 /** JSON template for Analytics Entity AdWords Link. */ 6915 /// JSON template for Analytics Entity AdWords Link.
6559 class EntityAdWordsLink { 6916 class EntityAdWordsLink {
6560 /** 6917 /// A list of AdWords client accounts. These cannot be MCC accounts. This
6561 * A list of AdWords client accounts. These cannot be MCC accounts. This field 6918 /// field is required when creating an AdWords link. It cannot be empty.
6562 * is required when creating an AdWords link. It cannot be empty.
6563 */
6564 core.List<AdWordsAccount> adWordsAccounts; 6919 core.List<AdWordsAccount> adWordsAccounts;
6565 /** Web property being linked. */ 6920
6921 /// Web property being linked.
6566 EntityAdWordsLinkEntity entity; 6922 EntityAdWordsLinkEntity entity;
6567 /** Entity AdWords link ID */ 6923
6924 /// Entity AdWords link ID
6568 core.String id; 6925 core.String id;
6569 /** Resource type for entity AdWords link. */ 6926
6927 /// Resource type for entity AdWords link.
6570 core.String kind; 6928 core.String kind;
6571 /** 6929
6572 * Name of the link. This field is required when creating an AdWords link. 6930 /// Name of the link. This field is required when creating an AdWords link.
6573 */
6574 core.String name; 6931 core.String name;
6575 /** IDs of linked Views (Profiles) represented as strings. */ 6932
6933 /// IDs of linked Views (Profiles) represented as strings.
6576 core.List<core.String> profileIds; 6934 core.List<core.String> profileIds;
6577 /** URL link for this Google Analytics - Google AdWords link. */ 6935
6936 /// URL link for this Google Analytics - Google AdWords link.
6578 core.String selfLink; 6937 core.String selfLink;
6579 6938
6580 EntityAdWordsLink(); 6939 EntityAdWordsLink();
6581 6940
6582 EntityAdWordsLink.fromJson(core.Map _json) { 6941 EntityAdWordsLink.fromJson(core.Map _json) {
6583 if (_json.containsKey("adWordsAccounts")) { 6942 if (_json.containsKey("adWordsAccounts")) {
6584 adWordsAccounts = _json["adWordsAccounts"].map((value) => new AdWordsAccou nt.fromJson(value)).toList(); 6943 adWordsAccounts = _json["adWordsAccounts"]
6944 .map((value) => new AdWordsAccount.fromJson(value))
6945 .toList();
6585 } 6946 }
6586 if (_json.containsKey("entity")) { 6947 if (_json.containsKey("entity")) {
6587 entity = new EntityAdWordsLinkEntity.fromJson(_json["entity"]); 6948 entity = new EntityAdWordsLinkEntity.fromJson(_json["entity"]);
6588 } 6949 }
6589 if (_json.containsKey("id")) { 6950 if (_json.containsKey("id")) {
6590 id = _json["id"]; 6951 id = _json["id"];
6591 } 6952 }
6592 if (_json.containsKey("kind")) { 6953 if (_json.containsKey("kind")) {
6593 kind = _json["kind"]; 6954 kind = _json["kind"];
6594 } 6955 }
6595 if (_json.containsKey("name")) { 6956 if (_json.containsKey("name")) {
6596 name = _json["name"]; 6957 name = _json["name"];
6597 } 6958 }
6598 if (_json.containsKey("profileIds")) { 6959 if (_json.containsKey("profileIds")) {
6599 profileIds = _json["profileIds"]; 6960 profileIds = _json["profileIds"];
6600 } 6961 }
6601 if (_json.containsKey("selfLink")) { 6962 if (_json.containsKey("selfLink")) {
6602 selfLink = _json["selfLink"]; 6963 selfLink = _json["selfLink"];
6603 } 6964 }
6604 } 6965 }
6605 6966
6606 core.Map<core.String, core.Object> toJson() { 6967 core.Map<core.String, core.Object> toJson() {
6607 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 6968 final core.Map<core.String, core.Object> _json =
6969 new core.Map<core.String, core.Object>();
6608 if (adWordsAccounts != null) { 6970 if (adWordsAccounts != null) {
6609 _json["adWordsAccounts"] = adWordsAccounts.map((value) => (value).toJson() ).toList(); 6971 _json["adWordsAccounts"] =
6972 adWordsAccounts.map((value) => (value).toJson()).toList();
6610 } 6973 }
6611 if (entity != null) { 6974 if (entity != null) {
6612 _json["entity"] = (entity).toJson(); 6975 _json["entity"] = (entity).toJson();
6613 } 6976 }
6614 if (id != null) { 6977 if (id != null) {
6615 _json["id"] = id; 6978 _json["id"] = id;
6616 } 6979 }
6617 if (kind != null) { 6980 if (kind != null) {
6618 _json["kind"] = kind; 6981 _json["kind"] = kind;
6619 } 6982 }
6620 if (name != null) { 6983 if (name != null) {
6621 _json["name"] = name; 6984 _json["name"] = name;
6622 } 6985 }
6623 if (profileIds != null) { 6986 if (profileIds != null) {
6624 _json["profileIds"] = profileIds; 6987 _json["profileIds"] = profileIds;
6625 } 6988 }
6626 if (selfLink != null) { 6989 if (selfLink != null) {
6627 _json["selfLink"] = selfLink; 6990 _json["selfLink"] = selfLink;
6628 } 6991 }
6629 return _json; 6992 return _json;
6630 } 6993 }
6631 } 6994 }
6632 6995
6633 /** 6996 /// An entity AdWords link collection provides a list of GA-AdWords links Each
6634 * An entity AdWords link collection provides a list of GA-AdWords links Each 6997 /// resource in this collection corresponds to a single link.
6635 * resource in this collection corresponds to a single link.
6636 */
6637 class EntityAdWordsLinks { 6998 class EntityAdWordsLinks {
6638 /** A list of entity AdWords links. */ 6999 /// A list of entity AdWords links.
6639 core.List<EntityAdWordsLink> items; 7000 core.List<EntityAdWordsLink> items;
6640 /** 7001
6641 * The maximum number of entries the response can contain, regardless of the 7002 /// The maximum number of entries the response can contain, regardless of the
6642 * actual number of entries returned. Its value ranges from 1 to 1000 with a 7003 /// actual number of entries returned. Its value ranges from 1 to 1000 with a
6643 * value of 1000 by default, or otherwise specified by the max-results query 7004 /// value of 1000 by default, or otherwise specified by the max-results query
6644 * parameter. 7005 /// parameter.
6645 */
6646 core.int itemsPerPage; 7006 core.int itemsPerPage;
6647 /** Collection type. */ 7007
7008 /// Collection type.
6648 core.String kind; 7009 core.String kind;
6649 /** Next link for this AdWords link collection. */ 7010
7011 /// Next link for this AdWords link collection.
6650 core.String nextLink; 7012 core.String nextLink;
6651 /** Previous link for this AdWords link collection. */ 7013
7014 /// Previous link for this AdWords link collection.
6652 core.String previousLink; 7015 core.String previousLink;
6653 /** 7016
6654 * The starting index of the entries, which is 1 by default or otherwise 7017 /// The starting index of the entries, which is 1 by default or otherwise
6655 * specified by the start-index query parameter. 7018 /// specified by the start-index query parameter.
6656 */
6657 core.int startIndex; 7019 core.int startIndex;
6658 /** 7020
6659 * The total number of results for the query, regardless of the number of 7021 /// The total number of results for the query, regardless of the number of
6660 * results in the response. 7022 /// results in the response.
6661 */
6662 core.int totalResults; 7023 core.int totalResults;
6663 7024
6664 EntityAdWordsLinks(); 7025 EntityAdWordsLinks();
6665 7026
6666 EntityAdWordsLinks.fromJson(core.Map _json) { 7027 EntityAdWordsLinks.fromJson(core.Map _json) {
6667 if (_json.containsKey("items")) { 7028 if (_json.containsKey("items")) {
6668 items = _json["items"].map((value) => new EntityAdWordsLink.fromJson(value )).toList(); 7029 items = _json["items"]
7030 .map((value) => new EntityAdWordsLink.fromJson(value))
7031 .toList();
6669 } 7032 }
6670 if (_json.containsKey("itemsPerPage")) { 7033 if (_json.containsKey("itemsPerPage")) {
6671 itemsPerPage = _json["itemsPerPage"]; 7034 itemsPerPage = _json["itemsPerPage"];
6672 } 7035 }
6673 if (_json.containsKey("kind")) { 7036 if (_json.containsKey("kind")) {
6674 kind = _json["kind"]; 7037 kind = _json["kind"];
6675 } 7038 }
6676 if (_json.containsKey("nextLink")) { 7039 if (_json.containsKey("nextLink")) {
6677 nextLink = _json["nextLink"]; 7040 nextLink = _json["nextLink"];
6678 } 7041 }
6679 if (_json.containsKey("previousLink")) { 7042 if (_json.containsKey("previousLink")) {
6680 previousLink = _json["previousLink"]; 7043 previousLink = _json["previousLink"];
6681 } 7044 }
6682 if (_json.containsKey("startIndex")) { 7045 if (_json.containsKey("startIndex")) {
6683 startIndex = _json["startIndex"]; 7046 startIndex = _json["startIndex"];
6684 } 7047 }
6685 if (_json.containsKey("totalResults")) { 7048 if (_json.containsKey("totalResults")) {
6686 totalResults = _json["totalResults"]; 7049 totalResults = _json["totalResults"];
6687 } 7050 }
6688 } 7051 }
6689 7052
6690 core.Map<core.String, core.Object> toJson() { 7053 core.Map<core.String, core.Object> toJson() {
6691 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7054 final core.Map<core.String, core.Object> _json =
7055 new core.Map<core.String, core.Object>();
6692 if (items != null) { 7056 if (items != null) {
6693 _json["items"] = items.map((value) => (value).toJson()).toList(); 7057 _json["items"] = items.map((value) => (value).toJson()).toList();
6694 } 7058 }
6695 if (itemsPerPage != null) { 7059 if (itemsPerPage != null) {
6696 _json["itemsPerPage"] = itemsPerPage; 7060 _json["itemsPerPage"] = itemsPerPage;
6697 } 7061 }
6698 if (kind != null) { 7062 if (kind != null) {
6699 _json["kind"] = kind; 7063 _json["kind"] = kind;
6700 } 7064 }
6701 if (nextLink != null) { 7065 if (nextLink != null) {
6702 _json["nextLink"] = nextLink; 7066 _json["nextLink"] = nextLink;
6703 } 7067 }
6704 if (previousLink != null) { 7068 if (previousLink != null) {
6705 _json["previousLink"] = previousLink; 7069 _json["previousLink"] = previousLink;
6706 } 7070 }
6707 if (startIndex != null) { 7071 if (startIndex != null) {
6708 _json["startIndex"] = startIndex; 7072 _json["startIndex"] = startIndex;
6709 } 7073 }
6710 if (totalResults != null) { 7074 if (totalResults != null) {
6711 _json["totalResults"] = totalResults; 7075 _json["totalResults"] = totalResults;
6712 } 7076 }
6713 return _json; 7077 return _json;
6714 } 7078 }
6715 } 7079 }
6716 7080
6717 /** 7081 /// Entity for this link. It can be an account, a web property, or a view
6718 * Entity for this link. It can be an account, a web property, or a view 7082 /// (profile).
6719 * (profile).
6720 */
6721 class EntityUserLinkEntity { 7083 class EntityUserLinkEntity {
6722 /** Account for this link. */ 7084 /// Account for this link.
6723 AccountRef accountRef; 7085 AccountRef accountRef;
6724 /** View (Profile) for this link. */ 7086
7087 /// View (Profile) for this link.
6725 ProfileRef profileRef; 7088 ProfileRef profileRef;
6726 /** Web property for this link. */ 7089
7090 /// Web property for this link.
6727 WebPropertyRef webPropertyRef; 7091 WebPropertyRef webPropertyRef;
6728 7092
6729 EntityUserLinkEntity(); 7093 EntityUserLinkEntity();
6730 7094
6731 EntityUserLinkEntity.fromJson(core.Map _json) { 7095 EntityUserLinkEntity.fromJson(core.Map _json) {
6732 if (_json.containsKey("accountRef")) { 7096 if (_json.containsKey("accountRef")) {
6733 accountRef = new AccountRef.fromJson(_json["accountRef"]); 7097 accountRef = new AccountRef.fromJson(_json["accountRef"]);
6734 } 7098 }
6735 if (_json.containsKey("profileRef")) { 7099 if (_json.containsKey("profileRef")) {
6736 profileRef = new ProfileRef.fromJson(_json["profileRef"]); 7100 profileRef = new ProfileRef.fromJson(_json["profileRef"]);
6737 } 7101 }
6738 if (_json.containsKey("webPropertyRef")) { 7102 if (_json.containsKey("webPropertyRef")) {
6739 webPropertyRef = new WebPropertyRef.fromJson(_json["webPropertyRef"]); 7103 webPropertyRef = new WebPropertyRef.fromJson(_json["webPropertyRef"]);
6740 } 7104 }
6741 } 7105 }
6742 7106
6743 core.Map<core.String, core.Object> toJson() { 7107 core.Map<core.String, core.Object> toJson() {
6744 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7108 final core.Map<core.String, core.Object> _json =
7109 new core.Map<core.String, core.Object>();
6745 if (accountRef != null) { 7110 if (accountRef != null) {
6746 _json["accountRef"] = (accountRef).toJson(); 7111 _json["accountRef"] = (accountRef).toJson();
6747 } 7112 }
6748 if (profileRef != null) { 7113 if (profileRef != null) {
6749 _json["profileRef"] = (profileRef).toJson(); 7114 _json["profileRef"] = (profileRef).toJson();
6750 } 7115 }
6751 if (webPropertyRef != null) { 7116 if (webPropertyRef != null) {
6752 _json["webPropertyRef"] = (webPropertyRef).toJson(); 7117 _json["webPropertyRef"] = (webPropertyRef).toJson();
6753 } 7118 }
6754 return _json; 7119 return _json;
6755 } 7120 }
6756 } 7121 }
6757 7122
6758 /** Permissions the user has for this entity. */ 7123 /// Permissions the user has for this entity.
6759 class EntityUserLinkPermissions { 7124 class EntityUserLinkPermissions {
6760 /** 7125 /// Effective permissions represent all the permissions that a user has for
6761 * Effective permissions represent all the permissions that a user has for 7126 /// this entity. These include any implied permissions (e.g., EDIT implies
6762 * this entity. These include any implied permissions (e.g., EDIT implies 7127 /// VIEW) or inherited permissions from the parent entity. Effective
6763 * VIEW) or inherited permissions from the parent entity. Effective 7128 /// permissions are read-only.
6764 * permissions are read-only.
6765 */
6766 core.List<core.String> effective; 7129 core.List<core.String> effective;
6767 /** 7130
6768 * Permissions that a user has been assigned at this very level. Does not 7131 /// Permissions that a user has been assigned at this very level. Does not
6769 * include any implied or inherited permissions. Local permissions are 7132 /// include any implied or inherited permissions. Local permissions are
6770 * modifiable. 7133 /// modifiable.
6771 */
6772 core.List<core.String> local; 7134 core.List<core.String> local;
6773 7135
6774 EntityUserLinkPermissions(); 7136 EntityUserLinkPermissions();
6775 7137
6776 EntityUserLinkPermissions.fromJson(core.Map _json) { 7138 EntityUserLinkPermissions.fromJson(core.Map _json) {
6777 if (_json.containsKey("effective")) { 7139 if (_json.containsKey("effective")) {
6778 effective = _json["effective"]; 7140 effective = _json["effective"];
6779 } 7141 }
6780 if (_json.containsKey("local")) { 7142 if (_json.containsKey("local")) {
6781 local = _json["local"]; 7143 local = _json["local"];
6782 } 7144 }
6783 } 7145 }
6784 7146
6785 core.Map<core.String, core.Object> toJson() { 7147 core.Map<core.String, core.Object> toJson() {
6786 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7148 final core.Map<core.String, core.Object> _json =
7149 new core.Map<core.String, core.Object>();
6787 if (effective != null) { 7150 if (effective != null) {
6788 _json["effective"] = effective; 7151 _json["effective"] = effective;
6789 } 7152 }
6790 if (local != null) { 7153 if (local != null) {
6791 _json["local"] = local; 7154 _json["local"] = local;
6792 } 7155 }
6793 return _json; 7156 return _json;
6794 } 7157 }
6795 } 7158 }
6796 7159
6797 /** 7160 /// JSON template for an Analytics Entity-User Link. Returns permissions that a
6798 * JSON template for an Analytics Entity-User Link. Returns permissions that a 7161 /// user has for an entity.
6799 * user has for an entity.
6800 */
6801 class EntityUserLink { 7162 class EntityUserLink {
6802 /** 7163 /// Entity for this link. It can be an account, a web property, or a view
6803 * Entity for this link. It can be an account, a web property, or a view 7164 /// (profile).
6804 * (profile).
6805 */
6806 EntityUserLinkEntity entity; 7165 EntityUserLinkEntity entity;
6807 /** Entity user link ID */ 7166
7167 /// Entity user link ID
6808 core.String id; 7168 core.String id;
6809 /** Resource type for entity user link. */ 7169
7170 /// Resource type for entity user link.
6810 core.String kind; 7171 core.String kind;
6811 /** Permissions the user has for this entity. */ 7172
7173 /// Permissions the user has for this entity.
6812 EntityUserLinkPermissions permissions; 7174 EntityUserLinkPermissions permissions;
6813 /** Self link for this resource. */ 7175
7176 /// Self link for this resource.
6814 core.String selfLink; 7177 core.String selfLink;
6815 /** User reference. */ 7178
7179 /// User reference.
6816 UserRef userRef; 7180 UserRef userRef;
6817 7181
6818 EntityUserLink(); 7182 EntityUserLink();
6819 7183
6820 EntityUserLink.fromJson(core.Map _json) { 7184 EntityUserLink.fromJson(core.Map _json) {
6821 if (_json.containsKey("entity")) { 7185 if (_json.containsKey("entity")) {
6822 entity = new EntityUserLinkEntity.fromJson(_json["entity"]); 7186 entity = new EntityUserLinkEntity.fromJson(_json["entity"]);
6823 } 7187 }
6824 if (_json.containsKey("id")) { 7188 if (_json.containsKey("id")) {
6825 id = _json["id"]; 7189 id = _json["id"];
6826 } 7190 }
6827 if (_json.containsKey("kind")) { 7191 if (_json.containsKey("kind")) {
6828 kind = _json["kind"]; 7192 kind = _json["kind"];
6829 } 7193 }
6830 if (_json.containsKey("permissions")) { 7194 if (_json.containsKey("permissions")) {
6831 permissions = new EntityUserLinkPermissions.fromJson(_json["permissions"]) ; 7195 permissions =
7196 new EntityUserLinkPermissions.fromJson(_json["permissions"]);
6832 } 7197 }
6833 if (_json.containsKey("selfLink")) { 7198 if (_json.containsKey("selfLink")) {
6834 selfLink = _json["selfLink"]; 7199 selfLink = _json["selfLink"];
6835 } 7200 }
6836 if (_json.containsKey("userRef")) { 7201 if (_json.containsKey("userRef")) {
6837 userRef = new UserRef.fromJson(_json["userRef"]); 7202 userRef = new UserRef.fromJson(_json["userRef"]);
6838 } 7203 }
6839 } 7204 }
6840 7205
6841 core.Map<core.String, core.Object> toJson() { 7206 core.Map<core.String, core.Object> toJson() {
6842 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7207 final core.Map<core.String, core.Object> _json =
7208 new core.Map<core.String, core.Object>();
6843 if (entity != null) { 7209 if (entity != null) {
6844 _json["entity"] = (entity).toJson(); 7210 _json["entity"] = (entity).toJson();
6845 } 7211 }
6846 if (id != null) { 7212 if (id != null) {
6847 _json["id"] = id; 7213 _json["id"] = id;
6848 } 7214 }
6849 if (kind != null) { 7215 if (kind != null) {
6850 _json["kind"] = kind; 7216 _json["kind"] = kind;
6851 } 7217 }
6852 if (permissions != null) { 7218 if (permissions != null) {
6853 _json["permissions"] = (permissions).toJson(); 7219 _json["permissions"] = (permissions).toJson();
6854 } 7220 }
6855 if (selfLink != null) { 7221 if (selfLink != null) {
6856 _json["selfLink"] = selfLink; 7222 _json["selfLink"] = selfLink;
6857 } 7223 }
6858 if (userRef != null) { 7224 if (userRef != null) {
6859 _json["userRef"] = (userRef).toJson(); 7225 _json["userRef"] = (userRef).toJson();
6860 } 7226 }
6861 return _json; 7227 return _json;
6862 } 7228 }
6863 } 7229 }
6864 7230
6865 /** 7231 /// An entity user link collection provides a list of Analytics ACL links Each
6866 * An entity user link collection provides a list of Analytics ACL links Each 7232 /// resource in this collection corresponds to a single link.
6867 * resource in this collection corresponds to a single link.
6868 */
6869 class EntityUserLinks { 7233 class EntityUserLinks {
6870 /** A list of entity user links. */ 7234 /// A list of entity user links.
6871 core.List<EntityUserLink> items; 7235 core.List<EntityUserLink> items;
6872 /** 7236
6873 * The maximum number of entries the response can contain, regardless of the 7237 /// The maximum number of entries the response can contain, regardless of the
6874 * actual number of entries returned. Its value ranges from 1 to 1000 with a 7238 /// actual number of entries returned. Its value ranges from 1 to 1000 with a
6875 * value of 1000 by default, or otherwise specified by the max-results query 7239 /// value of 1000 by default, or otherwise specified by the max-results query
6876 * parameter. 7240 /// parameter.
6877 */
6878 core.int itemsPerPage; 7241 core.int itemsPerPage;
6879 /** Collection type. */ 7242
7243 /// Collection type.
6880 core.String kind; 7244 core.String kind;
6881 /** Next link for this account collection. */ 7245
7246 /// Next link for this account collection.
6882 core.String nextLink; 7247 core.String nextLink;
6883 /** Previous link for this account collection. */ 7248
7249 /// Previous link for this account collection.
6884 core.String previousLink; 7250 core.String previousLink;
6885 /** 7251
6886 * The starting index of the entries, which is 1 by default or otherwise 7252 /// The starting index of the entries, which is 1 by default or otherwise
6887 * specified by the start-index query parameter. 7253 /// specified by the start-index query parameter.
6888 */
6889 core.int startIndex; 7254 core.int startIndex;
6890 /** 7255
6891 * The total number of results for the query, regardless of the number of 7256 /// The total number of results for the query, regardless of the number of
6892 * results in the response. 7257 /// results in the response.
6893 */
6894 core.int totalResults; 7258 core.int totalResults;
6895 7259
6896 EntityUserLinks(); 7260 EntityUserLinks();
6897 7261
6898 EntityUserLinks.fromJson(core.Map _json) { 7262 EntityUserLinks.fromJson(core.Map _json) {
6899 if (_json.containsKey("items")) { 7263 if (_json.containsKey("items")) {
6900 items = _json["items"].map((value) => new EntityUserLink.fromJson(value)). toList(); 7264 items = _json["items"]
7265 .map((value) => new EntityUserLink.fromJson(value))
7266 .toList();
6901 } 7267 }
6902 if (_json.containsKey("itemsPerPage")) { 7268 if (_json.containsKey("itemsPerPage")) {
6903 itemsPerPage = _json["itemsPerPage"]; 7269 itemsPerPage = _json["itemsPerPage"];
6904 } 7270 }
6905 if (_json.containsKey("kind")) { 7271 if (_json.containsKey("kind")) {
6906 kind = _json["kind"]; 7272 kind = _json["kind"];
6907 } 7273 }
6908 if (_json.containsKey("nextLink")) { 7274 if (_json.containsKey("nextLink")) {
6909 nextLink = _json["nextLink"]; 7275 nextLink = _json["nextLink"];
6910 } 7276 }
6911 if (_json.containsKey("previousLink")) { 7277 if (_json.containsKey("previousLink")) {
6912 previousLink = _json["previousLink"]; 7278 previousLink = _json["previousLink"];
6913 } 7279 }
6914 if (_json.containsKey("startIndex")) { 7280 if (_json.containsKey("startIndex")) {
6915 startIndex = _json["startIndex"]; 7281 startIndex = _json["startIndex"];
6916 } 7282 }
6917 if (_json.containsKey("totalResults")) { 7283 if (_json.containsKey("totalResults")) {
6918 totalResults = _json["totalResults"]; 7284 totalResults = _json["totalResults"];
6919 } 7285 }
6920 } 7286 }
6921 7287
6922 core.Map<core.String, core.Object> toJson() { 7288 core.Map<core.String, core.Object> toJson() {
6923 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7289 final core.Map<core.String, core.Object> _json =
7290 new core.Map<core.String, core.Object>();
6924 if (items != null) { 7291 if (items != null) {
6925 _json["items"] = items.map((value) => (value).toJson()).toList(); 7292 _json["items"] = items.map((value) => (value).toJson()).toList();
6926 } 7293 }
6927 if (itemsPerPage != null) { 7294 if (itemsPerPage != null) {
6928 _json["itemsPerPage"] = itemsPerPage; 7295 _json["itemsPerPage"] = itemsPerPage;
6929 } 7296 }
6930 if (kind != null) { 7297 if (kind != null) {
6931 _json["kind"] = kind; 7298 _json["kind"] = kind;
6932 } 7299 }
6933 if (nextLink != null) { 7300 if (nextLink != null) {
6934 _json["nextLink"] = nextLink; 7301 _json["nextLink"] = nextLink;
6935 } 7302 }
6936 if (previousLink != null) { 7303 if (previousLink != null) {
6937 _json["previousLink"] = previousLink; 7304 _json["previousLink"] = previousLink;
6938 } 7305 }
6939 if (startIndex != null) { 7306 if (startIndex != null) {
6940 _json["startIndex"] = startIndex; 7307 _json["startIndex"] = startIndex;
6941 } 7308 }
6942 if (totalResults != null) { 7309 if (totalResults != null) {
6943 _json["totalResults"] = totalResults; 7310 _json["totalResults"] = totalResults;
6944 } 7311 }
6945 return _json; 7312 return _json;
6946 } 7313 }
6947 } 7314 }
6948 7315
6949 /** 7316 /// Parent link for an experiment. Points to the view (profile) to which this
6950 * Parent link for an experiment. Points to the view (profile) to which this 7317 /// experiment belongs.
6951 * experiment belongs.
6952 */
6953 class ExperimentParentLink { 7318 class ExperimentParentLink {
6954 /** 7319 /// Link to the view (profile) to which this experiment belongs. This field
6955 * Link to the view (profile) to which this experiment belongs. This field is 7320 /// is read-only.
6956 * read-only.
6957 */
6958 core.String href; 7321 core.String href;
6959 /** Value is "analytics#profile". This field is read-only. */ 7322
7323 /// Value is "analytics#profile". This field is read-only.
6960 core.String type; 7324 core.String type;
6961 7325
6962 ExperimentParentLink(); 7326 ExperimentParentLink();
6963 7327
6964 ExperimentParentLink.fromJson(core.Map _json) { 7328 ExperimentParentLink.fromJson(core.Map _json) {
6965 if (_json.containsKey("href")) { 7329 if (_json.containsKey("href")) {
6966 href = _json["href"]; 7330 href = _json["href"];
6967 } 7331 }
6968 if (_json.containsKey("type")) { 7332 if (_json.containsKey("type")) {
6969 type = _json["type"]; 7333 type = _json["type"];
6970 } 7334 }
6971 } 7335 }
6972 7336
6973 core.Map<core.String, core.Object> toJson() { 7337 core.Map<core.String, core.Object> toJson() {
6974 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7338 final core.Map<core.String, core.Object> _json =
7339 new core.Map<core.String, core.Object>();
6975 if (href != null) { 7340 if (href != null) {
6976 _json["href"] = href; 7341 _json["href"] = href;
6977 } 7342 }
6978 if (type != null) { 7343 if (type != null) {
6979 _json["type"] = type; 7344 _json["type"] = type;
6980 } 7345 }
6981 return _json; 7346 return _json;
6982 } 7347 }
6983 } 7348 }
6984 7349
6985 class ExperimentVariations { 7350 class ExperimentVariations {
6986 /** 7351 /// The name of the variation. This field is required when creating an
6987 * The name of the variation. This field is required when creating an 7352 /// experiment. This field may not be changed for an experiment whose status
6988 * experiment. This field may not be changed for an experiment whose status is 7353 /// is ENDED.
6989 * ENDED.
6990 */
6991 core.String name; 7354 core.String name;
6992 /** 7355
6993 * Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE 7356 /// Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE
6994 * variations are not served. This field may not be changed for an experiment 7357 /// variations are not served. This field may not be changed for an
6995 * whose status is ENDED. 7358 /// experiment whose status is ENDED.
6996 */
6997 core.String status; 7359 core.String status;
6998 /** 7360
6999 * The URL of the variation. This field may not be changed for an experiment 7361 /// The URL of the variation. This field may not be changed for an experiment
7000 * whose status is RUNNING or ENDED. 7362 /// whose status is RUNNING or ENDED.
7001 */
7002 core.String url; 7363 core.String url;
7003 /** 7364
7004 * Weight that this variation should receive. Only present if the experiment 7365 /// Weight that this variation should receive. Only present if the experiment
7005 * is running. This field is read-only. 7366 /// is running. This field is read-only.
7006 */
7007 core.double weight; 7367 core.double weight;
7008 /** 7368
7009 * True if the experiment has ended and this variation performed 7369 /// True if the experiment has ended and this variation performed
7010 * (statistically) significantly better than the original. This field is 7370 /// (statistically) significantly better than the original. This field is
7011 * read-only. 7371 /// read-only.
7012 */
7013 core.bool won; 7372 core.bool won;
7014 7373
7015 ExperimentVariations(); 7374 ExperimentVariations();
7016 7375
7017 ExperimentVariations.fromJson(core.Map _json) { 7376 ExperimentVariations.fromJson(core.Map _json) {
7018 if (_json.containsKey("name")) { 7377 if (_json.containsKey("name")) {
7019 name = _json["name"]; 7378 name = _json["name"];
7020 } 7379 }
7021 if (_json.containsKey("status")) { 7380 if (_json.containsKey("status")) {
7022 status = _json["status"]; 7381 status = _json["status"];
7023 } 7382 }
7024 if (_json.containsKey("url")) { 7383 if (_json.containsKey("url")) {
7025 url = _json["url"]; 7384 url = _json["url"];
7026 } 7385 }
7027 if (_json.containsKey("weight")) { 7386 if (_json.containsKey("weight")) {
7028 weight = _json["weight"]; 7387 weight = _json["weight"];
7029 } 7388 }
7030 if (_json.containsKey("won")) { 7389 if (_json.containsKey("won")) {
7031 won = _json["won"]; 7390 won = _json["won"];
7032 } 7391 }
7033 } 7392 }
7034 7393
7035 core.Map<core.String, core.Object> toJson() { 7394 core.Map<core.String, core.Object> toJson() {
7036 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7395 final core.Map<core.String, core.Object> _json =
7396 new core.Map<core.String, core.Object>();
7037 if (name != null) { 7397 if (name != null) {
7038 _json["name"] = name; 7398 _json["name"] = name;
7039 } 7399 }
7040 if (status != null) { 7400 if (status != null) {
7041 _json["status"] = status; 7401 _json["status"] = status;
7042 } 7402 }
7043 if (url != null) { 7403 if (url != null) {
7044 _json["url"] = url; 7404 _json["url"] = url;
7045 } 7405 }
7046 if (weight != null) { 7406 if (weight != null) {
7047 _json["weight"] = weight; 7407 _json["weight"] = weight;
7048 } 7408 }
7049 if (won != null) { 7409 if (won != null) {
7050 _json["won"] = won; 7410 _json["won"] = won;
7051 } 7411 }
7052 return _json; 7412 return _json;
7053 } 7413 }
7054 } 7414 }
7055 7415
7056 /** JSON template for Analytics experiment resource. */ 7416 /// JSON template for Analytics experiment resource.
7057 class Experiment { 7417 class Experiment {
7058 /** Account ID to which this experiment belongs. This field is read-only. */ 7418 /// Account ID to which this experiment belongs. This field is read-only.
7059 core.String accountId; 7419 core.String accountId;
7060 /** Time the experiment was created. This field is read-only. */ 7420
7421 /// Time the experiment was created. This field is read-only.
7061 core.DateTime created; 7422 core.DateTime created;
7062 /** Notes about this experiment. */ 7423
7424 /// Notes about this experiment.
7063 core.String description; 7425 core.String description;
7064 /** 7426
7065 * If true, the end user will be able to edit the experiment via the Google 7427 /// If true, the end user will be able to edit the experiment via the Google
7066 * Analytics user interface. 7428 /// Analytics user interface.
7067 */
7068 core.bool editableInGaUi; 7429 core.bool editableInGaUi;
7069 /** 7430
7070 * The ending time of the experiment (the time the status changed from RUNNING 7431 /// The ending time of the experiment (the time the status changed from
7071 * to ENDED). This field is present only if the experiment has ended. This 7432 /// RUNNING to ENDED). This field is present only if the experiment has
7072 * field is read-only. 7433 /// ended. This field is read-only.
7073 */
7074 core.DateTime endTime; 7434 core.DateTime endTime;
7075 /** 7435
7076 * Boolean specifying whether to distribute traffic evenly across all 7436 /// Boolean specifying whether to distribute traffic evenly across all
7077 * variations. If the value is False, content experiments follows the default 7437 /// variations. If the value is False, content experiments follows the
7078 * behavior of adjusting traffic dynamically based on variation performance. 7438 /// default behavior of adjusting traffic dynamically based on variation
7079 * Optional -- defaults to False. This field may not be changed for an 7439 /// performance. Optional -- defaults to False. This field may not be changed
7080 * experiment whose status is ENDED. 7440 /// for an experiment whose status is ENDED.
7081 */
7082 core.bool equalWeighting; 7441 core.bool equalWeighting;
7083 /** Experiment ID. Required for patch and update. Disallowed for create. */ 7442
7443 /// Experiment ID. Required for patch and update. Disallowed for create.
7084 core.String id; 7444 core.String id;
7085 /** 7445
7086 * Internal ID for the web property to which this experiment belongs. This 7446 /// Internal ID for the web property to which this experiment belongs. This
7087 * field is read-only. 7447 /// field is read-only.
7088 */
7089 core.String internalWebPropertyId; 7448 core.String internalWebPropertyId;
7090 /** Resource type for an Analytics experiment. This field is read-only. */ 7449
7450 /// Resource type for an Analytics experiment. This field is read-only.
7091 core.String kind; 7451 core.String kind;
7092 /** 7452
7093 * An integer number in [3, 90]. Specifies the minimum length of the 7453 /// An integer number in [3, 90]. Specifies the minimum length of the
7094 * experiment. Can be changed for a running experiment. This field may not be 7454 /// experiment. Can be changed for a running experiment. This field may not
7095 * changed for an experiments whose status is ENDED. 7455 /// be changed for an experiments whose status is ENDED.
7096 */
7097 core.int minimumExperimentLengthInDays; 7456 core.int minimumExperimentLengthInDays;
7098 /** 7457
7099 * Experiment name. This field may not be changed for an experiment whose 7458 /// Experiment name. This field may not be changed for an experiment whose
7100 * status is ENDED. This field is required when creating an experiment. 7459 /// status is ENDED. This field is required when creating an experiment.
7101 */
7102 core.String name; 7460 core.String name;
7103 /** 7461
7104 * The metric that the experiment is optimizing. Valid values: 7462 /// The metric that the experiment is optimizing. Valid values:
7105 * "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed", 7463 /// "ga:goal(n)Completions", "ga:adsenseAdsClicks", "ga:adsenseAdsViewed",
7106 * "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration", 7464 /// "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration",
7107 * "ga:transactions", "ga:transactionRevenue". This field is required if 7465 /// "ga:transactions", "ga:transactionRevenue". This field is required if
7108 * status is "RUNNING" and servingFramework is one of "REDIRECT" or "API". 7466 /// status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
7109 */
7110 core.String objectiveMetric; 7467 core.String objectiveMetric;
7111 /** 7468
7112 * Whether the objectiveMetric should be minimized or maximized. Possible 7469 /// Whether the objectiveMetric should be minimized or maximized. Possible
7113 * values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be 7470 /// values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be
7114 * specified without objectiveMetric. Cannot be modified when status is 7471 /// specified without objectiveMetric. Cannot be modified when status is
7115 * "RUNNING" or "ENDED". 7472 /// "RUNNING" or "ENDED".
7116 */
7117 core.String optimizationType; 7473 core.String optimizationType;
7118 /** 7474
7119 * Parent link for an experiment. Points to the view (profile) to which this 7475 /// Parent link for an experiment. Points to the view (profile) to which this
7120 * experiment belongs. 7476 /// experiment belongs.
7121 */
7122 ExperimentParentLink parentLink; 7477 ExperimentParentLink parentLink;
7123 /** 7478
7124 * View (Profile) ID to which this experiment belongs. This field is 7479 /// View (Profile) ID to which this experiment belongs. This field is
7125 * read-only. 7480 /// read-only.
7126 */
7127 core.String profileId; 7481 core.String profileId;
7128 /** 7482
7129 * Why the experiment ended. Possible values: "STOPPED_BY_USER", 7483 /// Why the experiment ended. Possible values: "STOPPED_BY_USER",
7130 * "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", 7484 /// "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER",
7131 * "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment 7485 /// "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the
7132 * didn't expire but no winner was projected to be found. If the experiment 7486 /// experiment didn't expire but no winner was projected to be found. If the
7133 * status is changed via the API to ENDED this field is set to 7487 /// experiment status is changed via the API to ENDED this field is set to
7134 * STOPPED_BY_USER. This field is read-only. 7488 /// STOPPED_BY_USER. This field is read-only.
7135 */
7136 core.String reasonExperimentEnded; 7489 core.String reasonExperimentEnded;
7137 /** 7490
7138 * Boolean specifying whether variations URLS are rewritten to match those of 7491 /// Boolean specifying whether variations URLS are rewritten to match those
7139 * the original. This field may not be changed for an experiments whose status 7492 /// of the original. This field may not be changed for an experiments whose
7140 * is ENDED. 7493 /// status is ENDED.
7141 */
7142 core.bool rewriteVariationUrlsAsOriginal; 7494 core.bool rewriteVariationUrlsAsOriginal;
7143 /** Link for this experiment. This field is read-only. */ 7495
7496 /// Link for this experiment. This field is read-only.
7144 core.String selfLink; 7497 core.String selfLink;
7145 /** 7498
7146 * The framework used to serve the experiment variations and evaluate the 7499 /// The framework used to serve the experiment variations and evaluate the
7147 * results. One of: 7500 /// results. One of:
7148 * - REDIRECT: Google Analytics redirects traffic to different variation 7501 /// - REDIRECT: Google Analytics redirects traffic to different variation
7149 * pages, reports the chosen variation and evaluates the results. 7502 /// pages, reports the chosen variation and evaluates the results.
7150 * - API: Google Analytics chooses and reports the variation to serve and 7503 /// - API: Google Analytics chooses and reports the variation to serve and
7151 * evaluates the results; the caller is responsible for serving the selected 7504 /// evaluates the results; the caller is responsible for serving the selected
7152 * variation. 7505 /// variation.
7153 * - EXTERNAL: The variations will be served externally and the chosen 7506 /// - EXTERNAL: The variations will be served externally and the chosen
7154 * variation reported to Google Analytics. The caller is responsible for 7507 /// variation reported to Google Analytics. The caller is responsible for
7155 * serving the selected variation and evaluating the results. 7508 /// serving the selected variation and evaluating the results.
7156 */
7157 core.String servingFramework; 7509 core.String servingFramework;
7158 /** 7510
7159 * The snippet of code to include on the control page(s). This field is 7511 /// The snippet of code to include on the control page(s). This field is
7160 * read-only. 7512 /// read-only.
7161 */
7162 core.String snippet; 7513 core.String snippet;
7163 /** 7514
7164 * The starting time of the experiment (the time the status changed from 7515 /// The starting time of the experiment (the time the status changed from
7165 * READY_TO_RUN to RUNNING). This field is present only if the experiment has 7516 /// READY_TO_RUN to RUNNING). This field is present only if the experiment
7166 * started. This field is read-only. 7517 /// has started. This field is read-only.
7167 */
7168 core.DateTime startTime; 7518 core.DateTime startTime;
7169 /** 7519
7170 * Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", 7520 /// Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING",
7171 * "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or 7521 /// "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or
7172 * "RUNNING" state. This field is required when creating an experiment. 7522 /// "RUNNING" state. This field is required when creating an experiment.
7173 */
7174 core.String status; 7523 core.String status;
7175 /** 7524
7176 * A floating-point number in (0, 1]. Specifies the fraction of the traffic 7525 /// A floating-point number in (0, 1]. Specifies the fraction of the traffic
7177 * that participates in the experiment. Can be changed for a running 7526 /// that participates in the experiment. Can be changed for a running
7178 * experiment. This field may not be changed for an experiments whose status 7527 /// experiment. This field may not be changed for an experiments whose status
7179 * is ENDED. 7528 /// is ENDED.
7180 */
7181 core.double trafficCoverage; 7529 core.double trafficCoverage;
7182 /** Time the experiment was last modified. This field is read-only. */ 7530
7531 /// Time the experiment was last modified. This field is read-only.
7183 core.DateTime updated; 7532 core.DateTime updated;
7184 /** 7533
7185 * Array of variations. The first variation in the array is the original. The 7534 /// Array of variations. The first variation in the array is the original.
7186 * number of variations may not change once an experiment is in the RUNNING 7535 /// The number of variations may not change once an experiment is in the
7187 * state. At least two variations are required before status can be set to 7536 /// RUNNING state. At least two variations are required before status can be
7188 * RUNNING. 7537 /// set to RUNNING.
7189 */
7190 core.List<ExperimentVariations> variations; 7538 core.List<ExperimentVariations> variations;
7191 /** 7539
7192 * Web property ID to which this experiment belongs. The web property ID is of 7540 /// Web property ID to which this experiment belongs. The web property ID is
7193 * the form UA-XXXXX-YY. This field is read-only. 7541 /// of the form UA-XXXXX-YY. This field is read-only.
7194 */
7195 core.String webPropertyId; 7542 core.String webPropertyId;
7196 /** 7543
7197 * A floating-point number in (0, 1). Specifies the necessary confidence level 7544 /// A floating-point number in (0, 1). Specifies the necessary confidence
7198 * to choose a winner. This field may not be changed for an experiments whose 7545 /// level to choose a winner. This field may not be changed for an
7199 * status is ENDED. 7546 /// experiments whose status is ENDED.
7200 */
7201 core.double winnerConfidenceLevel; 7547 core.double winnerConfidenceLevel;
7202 /** 7548
7203 * Boolean specifying whether a winner has been found for this experiment. 7549 /// Boolean specifying whether a winner has been found for this experiment.
7204 * This field is read-only. 7550 /// This field is read-only.
7205 */
7206 core.bool winnerFound; 7551 core.bool winnerFound;
7207 7552
7208 Experiment(); 7553 Experiment();
7209 7554
7210 Experiment.fromJson(core.Map _json) { 7555 Experiment.fromJson(core.Map _json) {
7211 if (_json.containsKey("accountId")) { 7556 if (_json.containsKey("accountId")) {
7212 accountId = _json["accountId"]; 7557 accountId = _json["accountId"];
7213 } 7558 }
7214 if (_json.containsKey("created")) { 7559 if (_json.containsKey("created")) {
7215 created = core.DateTime.parse(_json["created"]); 7560 created = core.DateTime.parse(_json["created"]);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
7274 if (_json.containsKey("status")) { 7619 if (_json.containsKey("status")) {
7275 status = _json["status"]; 7620 status = _json["status"];
7276 } 7621 }
7277 if (_json.containsKey("trafficCoverage")) { 7622 if (_json.containsKey("trafficCoverage")) {
7278 trafficCoverage = _json["trafficCoverage"]; 7623 trafficCoverage = _json["trafficCoverage"];
7279 } 7624 }
7280 if (_json.containsKey("updated")) { 7625 if (_json.containsKey("updated")) {
7281 updated = core.DateTime.parse(_json["updated"]); 7626 updated = core.DateTime.parse(_json["updated"]);
7282 } 7627 }
7283 if (_json.containsKey("variations")) { 7628 if (_json.containsKey("variations")) {
7284 variations = _json["variations"].map((value) => new ExperimentVariations.f romJson(value)).toList(); 7629 variations = _json["variations"]
7630 .map((value) => new ExperimentVariations.fromJson(value))
7631 .toList();
7285 } 7632 }
7286 if (_json.containsKey("webPropertyId")) { 7633 if (_json.containsKey("webPropertyId")) {
7287 webPropertyId = _json["webPropertyId"]; 7634 webPropertyId = _json["webPropertyId"];
7288 } 7635 }
7289 if (_json.containsKey("winnerConfidenceLevel")) { 7636 if (_json.containsKey("winnerConfidenceLevel")) {
7290 winnerConfidenceLevel = _json["winnerConfidenceLevel"]; 7637 winnerConfidenceLevel = _json["winnerConfidenceLevel"];
7291 } 7638 }
7292 if (_json.containsKey("winnerFound")) { 7639 if (_json.containsKey("winnerFound")) {
7293 winnerFound = _json["winnerFound"]; 7640 winnerFound = _json["winnerFound"];
7294 } 7641 }
7295 } 7642 }
7296 7643
7297 core.Map<core.String, core.Object> toJson() { 7644 core.Map<core.String, core.Object> toJson() {
7298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7645 final core.Map<core.String, core.Object> _json =
7646 new core.Map<core.String, core.Object>();
7299 if (accountId != null) { 7647 if (accountId != null) {
7300 _json["accountId"] = accountId; 7648 _json["accountId"] = accountId;
7301 } 7649 }
7302 if (created != null) { 7650 if (created != null) {
7303 _json["created"] = (created).toIso8601String(); 7651 _json["created"] = (created).toIso8601String();
7304 } 7652 }
7305 if (description != null) { 7653 if (description != null) {
7306 _json["description"] = description; 7654 _json["description"] = description;
7307 } 7655 }
7308 if (editableInGaUi != null) { 7656 if (editableInGaUi != null) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
7362 if (status != null) { 7710 if (status != null) {
7363 _json["status"] = status; 7711 _json["status"] = status;
7364 } 7712 }
7365 if (trafficCoverage != null) { 7713 if (trafficCoverage != null) {
7366 _json["trafficCoverage"] = trafficCoverage; 7714 _json["trafficCoverage"] = trafficCoverage;
7367 } 7715 }
7368 if (updated != null) { 7716 if (updated != null) {
7369 _json["updated"] = (updated).toIso8601String(); 7717 _json["updated"] = (updated).toIso8601String();
7370 } 7718 }
7371 if (variations != null) { 7719 if (variations != null) {
7372 _json["variations"] = variations.map((value) => (value).toJson()).toList() ; 7720 _json["variations"] =
7721 variations.map((value) => (value).toJson()).toList();
7373 } 7722 }
7374 if (webPropertyId != null) { 7723 if (webPropertyId != null) {
7375 _json["webPropertyId"] = webPropertyId; 7724 _json["webPropertyId"] = webPropertyId;
7376 } 7725 }
7377 if (winnerConfidenceLevel != null) { 7726 if (winnerConfidenceLevel != null) {
7378 _json["winnerConfidenceLevel"] = winnerConfidenceLevel; 7727 _json["winnerConfidenceLevel"] = winnerConfidenceLevel;
7379 } 7728 }
7380 if (winnerFound != null) { 7729 if (winnerFound != null) {
7381 _json["winnerFound"] = winnerFound; 7730 _json["winnerFound"] = winnerFound;
7382 } 7731 }
7383 return _json; 7732 return _json;
7384 } 7733 }
7385 } 7734 }
7386 7735
7387 /** 7736 /// An experiment collection lists Analytics experiments to which the user has
7388 * An experiment collection lists Analytics experiments to which the user has 7737 /// access. Each view (profile) can have a set of experiments. Each resource in
7389 * access. Each view (profile) can have a set of experiments. Each resource in 7738 /// the Experiment collection corresponds to a single Analytics experiment.
7390 * the Experiment collection corresponds to a single Analytics experiment.
7391 */
7392 class Experiments { 7739 class Experiments {
7393 /** A list of experiments. */ 7740 /// A list of experiments.
7394 core.List<Experiment> items; 7741 core.List<Experiment> items;
7395 /** 7742
7396 * The maximum number of resources the response can contain, regardless of the 7743 /// The maximum number of resources the response can contain, regardless of
7397 * actual number of resources returned. Its value ranges from 1 to 1000 with a 7744 /// the actual number of resources returned. Its value ranges from 1 to 1000
7398 * value of 1000 by default, or otherwise specified by the max-results query 7745 /// with a value of 1000 by default, or otherwise specified by the
7399 * parameter. 7746 /// max-results query parameter.
7400 */
7401 core.int itemsPerPage; 7747 core.int itemsPerPage;
7402 /** Collection type. */ 7748
7749 /// Collection type.
7403 core.String kind; 7750 core.String kind;
7404 /** Link to next page for this experiment collection. */ 7751
7752 /// Link to next page for this experiment collection.
7405 core.String nextLink; 7753 core.String nextLink;
7406 /** Link to previous page for this experiment collection. */ 7754
7755 /// Link to previous page for this experiment collection.
7407 core.String previousLink; 7756 core.String previousLink;
7408 /** 7757
7409 * The starting index of the resources, which is 1 by default or otherwise 7758 /// The starting index of the resources, which is 1 by default or otherwise
7410 * specified by the start-index query parameter. 7759 /// specified by the start-index query parameter.
7411 */
7412 core.int startIndex; 7760 core.int startIndex;
7413 /** 7761
7414 * The total number of results for the query, regardless of the number of 7762 /// The total number of results for the query, regardless of the number of
7415 * resources in the result. 7763 /// resources in the result.
7416 */
7417 core.int totalResults; 7764 core.int totalResults;
7418 /** Email ID of the authenticated user */ 7765
7766 /// Email ID of the authenticated user
7419 core.String username; 7767 core.String username;
7420 7768
7421 Experiments(); 7769 Experiments();
7422 7770
7423 Experiments.fromJson(core.Map _json) { 7771 Experiments.fromJson(core.Map _json) {
7424 if (_json.containsKey("items")) { 7772 if (_json.containsKey("items")) {
7425 items = _json["items"].map((value) => new Experiment.fromJson(value)).toLi st(); 7773 items = _json["items"]
7774 .map((value) => new Experiment.fromJson(value))
7775 .toList();
7426 } 7776 }
7427 if (_json.containsKey("itemsPerPage")) { 7777 if (_json.containsKey("itemsPerPage")) {
7428 itemsPerPage = _json["itemsPerPage"]; 7778 itemsPerPage = _json["itemsPerPage"];
7429 } 7779 }
7430 if (_json.containsKey("kind")) { 7780 if (_json.containsKey("kind")) {
7431 kind = _json["kind"]; 7781 kind = _json["kind"];
7432 } 7782 }
7433 if (_json.containsKey("nextLink")) { 7783 if (_json.containsKey("nextLink")) {
7434 nextLink = _json["nextLink"]; 7784 nextLink = _json["nextLink"];
7435 } 7785 }
7436 if (_json.containsKey("previousLink")) { 7786 if (_json.containsKey("previousLink")) {
7437 previousLink = _json["previousLink"]; 7787 previousLink = _json["previousLink"];
7438 } 7788 }
7439 if (_json.containsKey("startIndex")) { 7789 if (_json.containsKey("startIndex")) {
7440 startIndex = _json["startIndex"]; 7790 startIndex = _json["startIndex"];
7441 } 7791 }
7442 if (_json.containsKey("totalResults")) { 7792 if (_json.containsKey("totalResults")) {
7443 totalResults = _json["totalResults"]; 7793 totalResults = _json["totalResults"];
7444 } 7794 }
7445 if (_json.containsKey("username")) { 7795 if (_json.containsKey("username")) {
7446 username = _json["username"]; 7796 username = _json["username"];
7447 } 7797 }
7448 } 7798 }
7449 7799
7450 core.Map<core.String, core.Object> toJson() { 7800 core.Map<core.String, core.Object> toJson() {
7451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7801 final core.Map<core.String, core.Object> _json =
7802 new core.Map<core.String, core.Object>();
7452 if (items != null) { 7803 if (items != null) {
7453 _json["items"] = items.map((value) => (value).toJson()).toList(); 7804 _json["items"] = items.map((value) => (value).toJson()).toList();
7454 } 7805 }
7455 if (itemsPerPage != null) { 7806 if (itemsPerPage != null) {
7456 _json["itemsPerPage"] = itemsPerPage; 7807 _json["itemsPerPage"] = itemsPerPage;
7457 } 7808 }
7458 if (kind != null) { 7809 if (kind != null) {
7459 _json["kind"] = kind; 7810 _json["kind"] = kind;
7460 } 7811 }
7461 if (nextLink != null) { 7812 if (nextLink != null) {
7462 _json["nextLink"] = nextLink; 7813 _json["nextLink"] = nextLink;
7463 } 7814 }
7464 if (previousLink != null) { 7815 if (previousLink != null) {
7465 _json["previousLink"] = previousLink; 7816 _json["previousLink"] = previousLink;
7466 } 7817 }
7467 if (startIndex != null) { 7818 if (startIndex != null) {
7468 _json["startIndex"] = startIndex; 7819 _json["startIndex"] = startIndex;
7469 } 7820 }
7470 if (totalResults != null) { 7821 if (totalResults != null) {
7471 _json["totalResults"] = totalResults; 7822 _json["totalResults"] = totalResults;
7472 } 7823 }
7473 if (username != null) { 7824 if (username != null) {
7474 _json["username"] = username; 7825 _json["username"] = username;
7475 } 7826 }
7476 return _json; 7827 return _json;
7477 } 7828 }
7478 } 7829 }
7479 7830
7480 /** Details for the filter of the type ADVANCED. */ 7831 /// Details for the filter of the type ADVANCED.
7481 class FilterAdvancedDetails { 7832 class FilterAdvancedDetails {
7482 /** Indicates if the filter expressions are case sensitive. */ 7833 /// Indicates if the filter expressions are case sensitive.
7483 core.bool caseSensitive; 7834 core.bool caseSensitive;
7484 /** Expression to extract from field A. */ 7835
7836 /// Expression to extract from field A.
7485 core.String extractA; 7837 core.String extractA;
7486 /** Expression to extract from field B. */ 7838
7839 /// Expression to extract from field B.
7487 core.String extractB; 7840 core.String extractB;
7488 /** Field A. */ 7841
7842 /// Field A.
7489 core.String fieldA; 7843 core.String fieldA;
7490 /** 7844
7491 * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION. 7845 /// The Index of the custom dimension. Required if field is a
7492 */ 7846 /// CUSTOM_DIMENSION.
7493 core.int fieldAIndex; 7847 core.int fieldAIndex;
7494 /** Indicates if field A is required to match. */ 7848
7849 /// Indicates if field A is required to match.
7495 core.bool fieldARequired; 7850 core.bool fieldARequired;
7496 /** Field B. */ 7851
7852 /// Field B.
7497 core.String fieldB; 7853 core.String fieldB;
7498 /** 7854
7499 * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION. 7855 /// The Index of the custom dimension. Required if field is a
7500 */ 7856 /// CUSTOM_DIMENSION.
7501 core.int fieldBIndex; 7857 core.int fieldBIndex;
7502 /** Indicates if field B is required to match. */ 7858
7859 /// Indicates if field B is required to match.
7503 core.bool fieldBRequired; 7860 core.bool fieldBRequired;
7504 /** Expression used to construct the output value. */ 7861
7862 /// Expression used to construct the output value.
7505 core.String outputConstructor; 7863 core.String outputConstructor;
7506 /** Output field. */ 7864
7865 /// Output field.
7507 core.String outputToField; 7866 core.String outputToField;
7508 /** 7867
7509 * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION. 7868 /// The Index of the custom dimension. Required if field is a
7510 */ 7869 /// CUSTOM_DIMENSION.
7511 core.int outputToFieldIndex; 7870 core.int outputToFieldIndex;
7512 /** 7871
7513 * Indicates if the existing value of the output field, if any, should be 7872 /// Indicates if the existing value of the output field, if any, should be
7514 * overridden by the output expression. 7873 /// overridden by the output expression.
7515 */
7516 core.bool overrideOutputField; 7874 core.bool overrideOutputField;
7517 7875
7518 FilterAdvancedDetails(); 7876 FilterAdvancedDetails();
7519 7877
7520 FilterAdvancedDetails.fromJson(core.Map _json) { 7878 FilterAdvancedDetails.fromJson(core.Map _json) {
7521 if (_json.containsKey("caseSensitive")) { 7879 if (_json.containsKey("caseSensitive")) {
7522 caseSensitive = _json["caseSensitive"]; 7880 caseSensitive = _json["caseSensitive"];
7523 } 7881 }
7524 if (_json.containsKey("extractA")) { 7882 if (_json.containsKey("extractA")) {
7525 extractA = _json["extractA"]; 7883 extractA = _json["extractA"];
(...skipping 27 matching lines...) Expand all
7553 } 7911 }
7554 if (_json.containsKey("outputToFieldIndex")) { 7912 if (_json.containsKey("outputToFieldIndex")) {
7555 outputToFieldIndex = _json["outputToFieldIndex"]; 7913 outputToFieldIndex = _json["outputToFieldIndex"];
7556 } 7914 }
7557 if (_json.containsKey("overrideOutputField")) { 7915 if (_json.containsKey("overrideOutputField")) {
7558 overrideOutputField = _json["overrideOutputField"]; 7916 overrideOutputField = _json["overrideOutputField"];
7559 } 7917 }
7560 } 7918 }
7561 7919
7562 core.Map<core.String, core.Object> toJson() { 7920 core.Map<core.String, core.Object> toJson() {
7563 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7921 final core.Map<core.String, core.Object> _json =
7922 new core.Map<core.String, core.Object>();
7564 if (caseSensitive != null) { 7923 if (caseSensitive != null) {
7565 _json["caseSensitive"] = caseSensitive; 7924 _json["caseSensitive"] = caseSensitive;
7566 } 7925 }
7567 if (extractA != null) { 7926 if (extractA != null) {
7568 _json["extractA"] = extractA; 7927 _json["extractA"] = extractA;
7569 } 7928 }
7570 if (extractB != null) { 7929 if (extractB != null) {
7571 _json["extractB"] = extractB; 7930 _json["extractB"] = extractB;
7572 } 7931 }
7573 if (fieldA != null) { 7932 if (fieldA != null) {
(...skipping 23 matching lines...) Expand all
7597 if (outputToFieldIndex != null) { 7956 if (outputToFieldIndex != null) {
7598 _json["outputToFieldIndex"] = outputToFieldIndex; 7957 _json["outputToFieldIndex"] = outputToFieldIndex;
7599 } 7958 }
7600 if (overrideOutputField != null) { 7959 if (overrideOutputField != null) {
7601 _json["overrideOutputField"] = overrideOutputField; 7960 _json["overrideOutputField"] = overrideOutputField;
7602 } 7961 }
7603 return _json; 7962 return _json;
7604 } 7963 }
7605 } 7964 }
7606 7965
7607 /** Details for the filter of the type LOWER. */ 7966 /// Details for the filter of the type LOWER.
7608 class FilterLowercaseDetails { 7967 class FilterLowercaseDetails {
7609 /** Field to use in the filter. */ 7968 /// Field to use in the filter.
7610 core.String field; 7969 core.String field;
7611 /** 7970
7612 * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION. 7971 /// The Index of the custom dimension. Required if field is a
7613 */ 7972 /// CUSTOM_DIMENSION.
7614 core.int fieldIndex; 7973 core.int fieldIndex;
7615 7974
7616 FilterLowercaseDetails(); 7975 FilterLowercaseDetails();
7617 7976
7618 FilterLowercaseDetails.fromJson(core.Map _json) { 7977 FilterLowercaseDetails.fromJson(core.Map _json) {
7619 if (_json.containsKey("field")) { 7978 if (_json.containsKey("field")) {
7620 field = _json["field"]; 7979 field = _json["field"];
7621 } 7980 }
7622 if (_json.containsKey("fieldIndex")) { 7981 if (_json.containsKey("fieldIndex")) {
7623 fieldIndex = _json["fieldIndex"]; 7982 fieldIndex = _json["fieldIndex"];
7624 } 7983 }
7625 } 7984 }
7626 7985
7627 core.Map<core.String, core.Object> toJson() { 7986 core.Map<core.String, core.Object> toJson() {
7628 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 7987 final core.Map<core.String, core.Object> _json =
7988 new core.Map<core.String, core.Object>();
7629 if (field != null) { 7989 if (field != null) {
7630 _json["field"] = field; 7990 _json["field"] = field;
7631 } 7991 }
7632 if (fieldIndex != null) { 7992 if (fieldIndex != null) {
7633 _json["fieldIndex"] = fieldIndex; 7993 _json["fieldIndex"] = fieldIndex;
7634 } 7994 }
7635 return _json; 7995 return _json;
7636 } 7996 }
7637 } 7997 }
7638 7998
7639 /** 7999 /// Parent link for this filter. Points to the account to which this filter
7640 * Parent link for this filter. Points to the account to which this filter 8000 /// belongs.
7641 * belongs.
7642 */
7643 class FilterParentLink { 8001 class FilterParentLink {
7644 /** Link to the account to which this filter belongs. */ 8002 /// Link to the account to which this filter belongs.
7645 core.String href; 8003 core.String href;
7646 /** Value is "analytics#account". */ 8004
8005 /// Value is "analytics#account".
7647 core.String type; 8006 core.String type;
7648 8007
7649 FilterParentLink(); 8008 FilterParentLink();
7650 8009
7651 FilterParentLink.fromJson(core.Map _json) { 8010 FilterParentLink.fromJson(core.Map _json) {
7652 if (_json.containsKey("href")) { 8011 if (_json.containsKey("href")) {
7653 href = _json["href"]; 8012 href = _json["href"];
7654 } 8013 }
7655 if (_json.containsKey("type")) { 8014 if (_json.containsKey("type")) {
7656 type = _json["type"]; 8015 type = _json["type"];
7657 } 8016 }
7658 } 8017 }
7659 8018
7660 core.Map<core.String, core.Object> toJson() { 8019 core.Map<core.String, core.Object> toJson() {
7661 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8020 final core.Map<core.String, core.Object> _json =
8021 new core.Map<core.String, core.Object>();
7662 if (href != null) { 8022 if (href != null) {
7663 _json["href"] = href; 8023 _json["href"] = href;
7664 } 8024 }
7665 if (type != null) { 8025 if (type != null) {
7666 _json["type"] = type; 8026 _json["type"] = type;
7667 } 8027 }
7668 return _json; 8028 return _json;
7669 } 8029 }
7670 } 8030 }
7671 8031
7672 /** Details for the filter of the type SEARCH_AND_REPLACE. */ 8032 /// Details for the filter of the type SEARCH_AND_REPLACE.
7673 class FilterSearchAndReplaceDetails { 8033 class FilterSearchAndReplaceDetails {
7674 /** Determines if the filter is case sensitive. */ 8034 /// Determines if the filter is case sensitive.
7675 core.bool caseSensitive; 8035 core.bool caseSensitive;
7676 /** Field to use in the filter. */ 8036
8037 /// Field to use in the filter.
7677 core.String field; 8038 core.String field;
7678 /** 8039
7679 * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION. 8040 /// The Index of the custom dimension. Required if field is a
7680 */ 8041 /// CUSTOM_DIMENSION.
7681 core.int fieldIndex; 8042 core.int fieldIndex;
7682 /** Term to replace the search term with. */ 8043
8044 /// Term to replace the search term with.
7683 core.String replaceString; 8045 core.String replaceString;
7684 /** Term to search. */ 8046
8047 /// Term to search.
7685 core.String searchString; 8048 core.String searchString;
7686 8049
7687 FilterSearchAndReplaceDetails(); 8050 FilterSearchAndReplaceDetails();
7688 8051
7689 FilterSearchAndReplaceDetails.fromJson(core.Map _json) { 8052 FilterSearchAndReplaceDetails.fromJson(core.Map _json) {
7690 if (_json.containsKey("caseSensitive")) { 8053 if (_json.containsKey("caseSensitive")) {
7691 caseSensitive = _json["caseSensitive"]; 8054 caseSensitive = _json["caseSensitive"];
7692 } 8055 }
7693 if (_json.containsKey("field")) { 8056 if (_json.containsKey("field")) {
7694 field = _json["field"]; 8057 field = _json["field"];
7695 } 8058 }
7696 if (_json.containsKey("fieldIndex")) { 8059 if (_json.containsKey("fieldIndex")) {
7697 fieldIndex = _json["fieldIndex"]; 8060 fieldIndex = _json["fieldIndex"];
7698 } 8061 }
7699 if (_json.containsKey("replaceString")) { 8062 if (_json.containsKey("replaceString")) {
7700 replaceString = _json["replaceString"]; 8063 replaceString = _json["replaceString"];
7701 } 8064 }
7702 if (_json.containsKey("searchString")) { 8065 if (_json.containsKey("searchString")) {
7703 searchString = _json["searchString"]; 8066 searchString = _json["searchString"];
7704 } 8067 }
7705 } 8068 }
7706 8069
7707 core.Map<core.String, core.Object> toJson() { 8070 core.Map<core.String, core.Object> toJson() {
7708 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8071 final core.Map<core.String, core.Object> _json =
8072 new core.Map<core.String, core.Object>();
7709 if (caseSensitive != null) { 8073 if (caseSensitive != null) {
7710 _json["caseSensitive"] = caseSensitive; 8074 _json["caseSensitive"] = caseSensitive;
7711 } 8075 }
7712 if (field != null) { 8076 if (field != null) {
7713 _json["field"] = field; 8077 _json["field"] = field;
7714 } 8078 }
7715 if (fieldIndex != null) { 8079 if (fieldIndex != null) {
7716 _json["fieldIndex"] = fieldIndex; 8080 _json["fieldIndex"] = fieldIndex;
7717 } 8081 }
7718 if (replaceString != null) { 8082 if (replaceString != null) {
7719 _json["replaceString"] = replaceString; 8083 _json["replaceString"] = replaceString;
7720 } 8084 }
7721 if (searchString != null) { 8085 if (searchString != null) {
7722 _json["searchString"] = searchString; 8086 _json["searchString"] = searchString;
7723 } 8087 }
7724 return _json; 8088 return _json;
7725 } 8089 }
7726 } 8090 }
7727 8091
7728 /** Details for the filter of the type UPPER. */ 8092 /// Details for the filter of the type UPPER.
7729 class FilterUppercaseDetails { 8093 class FilterUppercaseDetails {
7730 /** Field to use in the filter. */ 8094 /// Field to use in the filter.
7731 core.String field; 8095 core.String field;
7732 /** 8096
7733 * The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION. 8097 /// The Index of the custom dimension. Required if field is a
7734 */ 8098 /// CUSTOM_DIMENSION.
7735 core.int fieldIndex; 8099 core.int fieldIndex;
7736 8100
7737 FilterUppercaseDetails(); 8101 FilterUppercaseDetails();
7738 8102
7739 FilterUppercaseDetails.fromJson(core.Map _json) { 8103 FilterUppercaseDetails.fromJson(core.Map _json) {
7740 if (_json.containsKey("field")) { 8104 if (_json.containsKey("field")) {
7741 field = _json["field"]; 8105 field = _json["field"];
7742 } 8106 }
7743 if (_json.containsKey("fieldIndex")) { 8107 if (_json.containsKey("fieldIndex")) {
7744 fieldIndex = _json["fieldIndex"]; 8108 fieldIndex = _json["fieldIndex"];
7745 } 8109 }
7746 } 8110 }
7747 8111
7748 core.Map<core.String, core.Object> toJson() { 8112 core.Map<core.String, core.Object> toJson() {
7749 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8113 final core.Map<core.String, core.Object> _json =
8114 new core.Map<core.String, core.Object>();
7750 if (field != null) { 8115 if (field != null) {
7751 _json["field"] = field; 8116 _json["field"] = field;
7752 } 8117 }
7753 if (fieldIndex != null) { 8118 if (fieldIndex != null) {
7754 _json["fieldIndex"] = fieldIndex; 8119 _json["fieldIndex"] = fieldIndex;
7755 } 8120 }
7756 return _json; 8121 return _json;
7757 } 8122 }
7758 } 8123 }
7759 8124
7760 /** JSON template for an Analytics account filter. */ 8125 /// JSON template for an Analytics account filter.
7761 class Filter { 8126 class Filter {
7762 /** Account ID to which this filter belongs. */ 8127 /// Account ID to which this filter belongs.
7763 core.String accountId; 8128 core.String accountId;
7764 /** Details for the filter of the type ADVANCED. */ 8129
8130 /// Details for the filter of the type ADVANCED.
7765 FilterAdvancedDetails advancedDetails; 8131 FilterAdvancedDetails advancedDetails;
7766 /** Time this filter was created. */ 8132
8133 /// Time this filter was created.
7767 core.DateTime created; 8134 core.DateTime created;
7768 /** Details for the filter of the type EXCLUDE. */ 8135
8136 /// Details for the filter of the type EXCLUDE.
7769 FilterExpression excludeDetails; 8137 FilterExpression excludeDetails;
7770 /** Filter ID. */ 8138
8139 /// Filter ID.
7771 core.String id; 8140 core.String id;
7772 /** Details for the filter of the type INCLUDE. */ 8141
8142 /// Details for the filter of the type INCLUDE.
7773 FilterExpression includeDetails; 8143 FilterExpression includeDetails;
7774 /** Resource type for Analytics filter. */ 8144
8145 /// Resource type for Analytics filter.
7775 core.String kind; 8146 core.String kind;
7776 /** Details for the filter of the type LOWER. */ 8147
8148 /// Details for the filter of the type LOWER.
7777 FilterLowercaseDetails lowercaseDetails; 8149 FilterLowercaseDetails lowercaseDetails;
7778 /** Name of this filter. */ 8150
8151 /// Name of this filter.
7779 core.String name; 8152 core.String name;
7780 /** 8153
7781 * Parent link for this filter. Points to the account to which this filter 8154 /// Parent link for this filter. Points to the account to which this filter
7782 * belongs. 8155 /// belongs.
7783 */
7784 FilterParentLink parentLink; 8156 FilterParentLink parentLink;
7785 /** Details for the filter of the type SEARCH_AND_REPLACE. */ 8157
8158 /// Details for the filter of the type SEARCH_AND_REPLACE.
7786 FilterSearchAndReplaceDetails searchAndReplaceDetails; 8159 FilterSearchAndReplaceDetails searchAndReplaceDetails;
7787 /** Link for this filter. */ 8160
8161 /// Link for this filter.
7788 core.String selfLink; 8162 core.String selfLink;
7789 /** 8163
7790 * Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE, 8164 /// Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE,
7791 * UPPERCASE, SEARCH_AND_REPLACE and ADVANCED. 8165 /// UPPERCASE, SEARCH_AND_REPLACE and ADVANCED.
7792 */
7793 core.String type; 8166 core.String type;
7794 /** Time this filter was last modified. */ 8167
8168 /// Time this filter was last modified.
7795 core.DateTime updated; 8169 core.DateTime updated;
7796 /** Details for the filter of the type UPPER. */ 8170
8171 /// Details for the filter of the type UPPER.
7797 FilterUppercaseDetails uppercaseDetails; 8172 FilterUppercaseDetails uppercaseDetails;
7798 8173
7799 Filter(); 8174 Filter();
7800 8175
7801 Filter.fromJson(core.Map _json) { 8176 Filter.fromJson(core.Map _json) {
7802 if (_json.containsKey("accountId")) { 8177 if (_json.containsKey("accountId")) {
7803 accountId = _json["accountId"]; 8178 accountId = _json["accountId"];
7804 } 8179 }
7805 if (_json.containsKey("advancedDetails")) { 8180 if (_json.containsKey("advancedDetails")) {
7806 advancedDetails = new FilterAdvancedDetails.fromJson(_json["advancedDetail s"]); 8181 advancedDetails =
8182 new FilterAdvancedDetails.fromJson(_json["advancedDetails"]);
7807 } 8183 }
7808 if (_json.containsKey("created")) { 8184 if (_json.containsKey("created")) {
7809 created = core.DateTime.parse(_json["created"]); 8185 created = core.DateTime.parse(_json["created"]);
7810 } 8186 }
7811 if (_json.containsKey("excludeDetails")) { 8187 if (_json.containsKey("excludeDetails")) {
7812 excludeDetails = new FilterExpression.fromJson(_json["excludeDetails"]); 8188 excludeDetails = new FilterExpression.fromJson(_json["excludeDetails"]);
7813 } 8189 }
7814 if (_json.containsKey("id")) { 8190 if (_json.containsKey("id")) {
7815 id = _json["id"]; 8191 id = _json["id"];
7816 } 8192 }
7817 if (_json.containsKey("includeDetails")) { 8193 if (_json.containsKey("includeDetails")) {
7818 includeDetails = new FilterExpression.fromJson(_json["includeDetails"]); 8194 includeDetails = new FilterExpression.fromJson(_json["includeDetails"]);
7819 } 8195 }
7820 if (_json.containsKey("kind")) { 8196 if (_json.containsKey("kind")) {
7821 kind = _json["kind"]; 8197 kind = _json["kind"];
7822 } 8198 }
7823 if (_json.containsKey("lowercaseDetails")) { 8199 if (_json.containsKey("lowercaseDetails")) {
7824 lowercaseDetails = new FilterLowercaseDetails.fromJson(_json["lowercaseDet ails"]); 8200 lowercaseDetails =
8201 new FilterLowercaseDetails.fromJson(_json["lowercaseDetails"]);
7825 } 8202 }
7826 if (_json.containsKey("name")) { 8203 if (_json.containsKey("name")) {
7827 name = _json["name"]; 8204 name = _json["name"];
7828 } 8205 }
7829 if (_json.containsKey("parentLink")) { 8206 if (_json.containsKey("parentLink")) {
7830 parentLink = new FilterParentLink.fromJson(_json["parentLink"]); 8207 parentLink = new FilterParentLink.fromJson(_json["parentLink"]);
7831 } 8208 }
7832 if (_json.containsKey("searchAndReplaceDetails")) { 8209 if (_json.containsKey("searchAndReplaceDetails")) {
7833 searchAndReplaceDetails = new FilterSearchAndReplaceDetails.fromJson(_json ["searchAndReplaceDetails"]); 8210 searchAndReplaceDetails = new FilterSearchAndReplaceDetails.fromJson(
8211 _json["searchAndReplaceDetails"]);
7834 } 8212 }
7835 if (_json.containsKey("selfLink")) { 8213 if (_json.containsKey("selfLink")) {
7836 selfLink = _json["selfLink"]; 8214 selfLink = _json["selfLink"];
7837 } 8215 }
7838 if (_json.containsKey("type")) { 8216 if (_json.containsKey("type")) {
7839 type = _json["type"]; 8217 type = _json["type"];
7840 } 8218 }
7841 if (_json.containsKey("updated")) { 8219 if (_json.containsKey("updated")) {
7842 updated = core.DateTime.parse(_json["updated"]); 8220 updated = core.DateTime.parse(_json["updated"]);
7843 } 8221 }
7844 if (_json.containsKey("uppercaseDetails")) { 8222 if (_json.containsKey("uppercaseDetails")) {
7845 uppercaseDetails = new FilterUppercaseDetails.fromJson(_json["uppercaseDet ails"]); 8223 uppercaseDetails =
8224 new FilterUppercaseDetails.fromJson(_json["uppercaseDetails"]);
7846 } 8225 }
7847 } 8226 }
7848 8227
7849 core.Map<core.String, core.Object> toJson() { 8228 core.Map<core.String, core.Object> toJson() {
7850 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8229 final core.Map<core.String, core.Object> _json =
8230 new core.Map<core.String, core.Object>();
7851 if (accountId != null) { 8231 if (accountId != null) {
7852 _json["accountId"] = accountId; 8232 _json["accountId"] = accountId;
7853 } 8233 }
7854 if (advancedDetails != null) { 8234 if (advancedDetails != null) {
7855 _json["advancedDetails"] = (advancedDetails).toJson(); 8235 _json["advancedDetails"] = (advancedDetails).toJson();
7856 } 8236 }
7857 if (created != null) { 8237 if (created != null) {
7858 _json["created"] = (created).toIso8601String(); 8238 _json["created"] = (created).toIso8601String();
7859 } 8239 }
7860 if (excludeDetails != null) { 8240 if (excludeDetails != null) {
(...skipping 29 matching lines...) Expand all
7890 if (updated != null) { 8270 if (updated != null) {
7891 _json["updated"] = (updated).toIso8601String(); 8271 _json["updated"] = (updated).toIso8601String();
7892 } 8272 }
7893 if (uppercaseDetails != null) { 8273 if (uppercaseDetails != null) {
7894 _json["uppercaseDetails"] = (uppercaseDetails).toJson(); 8274 _json["uppercaseDetails"] = (uppercaseDetails).toJson();
7895 } 8275 }
7896 return _json; 8276 return _json;
7897 } 8277 }
7898 } 8278 }
7899 8279
7900 /** JSON template for an Analytics filter expression. */ 8280 /// JSON template for an Analytics filter expression.
7901 class FilterExpression { 8281 class FilterExpression {
7902 /** Determines if the filter is case sensitive. */ 8282 /// Determines if the filter is case sensitive.
7903 core.bool caseSensitive; 8283 core.bool caseSensitive;
7904 /** Filter expression value */ 8284
8285 /// Filter expression value
7905 core.String expressionValue; 8286 core.String expressionValue;
7906 /** 8287
7907 * Field to filter. Possible values: 8288 /// Field to filter. Possible values:
7908 * - Content and Traffic 8289 /// - Content and Traffic
7909 * - PAGE_REQUEST_URI, 8290 /// - PAGE_REQUEST_URI,
7910 * - PAGE_HOSTNAME, 8291 /// - PAGE_HOSTNAME,
7911 * - PAGE_TITLE, 8292 /// - PAGE_TITLE,
7912 * - REFERRAL, 8293 /// - REFERRAL,
7913 * - COST_DATA_URI (Campaign target URL), 8294 /// - COST_DATA_URI (Campaign target URL),
7914 * - HIT_TYPE, 8295 /// - HIT_TYPE,
7915 * - INTERNAL_SEARCH_TERM, 8296 /// - INTERNAL_SEARCH_TERM,
7916 * - INTERNAL_SEARCH_TYPE, 8297 /// - INTERNAL_SEARCH_TYPE,
7917 * - SOURCE_PROPERTY_TRACKING_ID, 8298 /// - SOURCE_PROPERTY_TRACKING_ID,
7918 * - Campaign or AdGroup 8299 /// - Campaign or AdGroup
7919 * - CAMPAIGN_SOURCE, 8300 /// - CAMPAIGN_SOURCE,
7920 * - CAMPAIGN_MEDIUM, 8301 /// - CAMPAIGN_MEDIUM,
7921 * - CAMPAIGN_NAME, 8302 /// - CAMPAIGN_NAME,
7922 * - CAMPAIGN_AD_GROUP, 8303 /// - CAMPAIGN_AD_GROUP,
7923 * - CAMPAIGN_TERM, 8304 /// - CAMPAIGN_TERM,
7924 * - CAMPAIGN_CONTENT, 8305 /// - CAMPAIGN_CONTENT,
7925 * - CAMPAIGN_CODE, 8306 /// - CAMPAIGN_CODE,
7926 * - CAMPAIGN_REFERRAL_PATH, 8307 /// - CAMPAIGN_REFERRAL_PATH,
7927 * - E-Commerce 8308 /// - E-Commerce
7928 * - TRANSACTION_COUNTRY, 8309 /// - TRANSACTION_COUNTRY,
7929 * - TRANSACTION_REGION, 8310 /// - TRANSACTION_REGION,
7930 * - TRANSACTION_CITY, 8311 /// - TRANSACTION_CITY,
7931 * - TRANSACTION_AFFILIATION (Store or order location), 8312 /// - TRANSACTION_AFFILIATION (Store or order location),
7932 * - ITEM_NAME, 8313 /// - ITEM_NAME,
7933 * - ITEM_CODE, 8314 /// - ITEM_CODE,
7934 * - ITEM_VARIATION, 8315 /// - ITEM_VARIATION,
7935 * - TRANSACTION_ID, 8316 /// - TRANSACTION_ID,
7936 * - TRANSACTION_CURRENCY_CODE, 8317 /// - TRANSACTION_CURRENCY_CODE,
7937 * - PRODUCT_ACTION_TYPE, 8318 /// - PRODUCT_ACTION_TYPE,
7938 * - Audience/Users 8319 /// - Audience/Users
7939 * - BROWSER, 8320 /// - BROWSER,
7940 * - BROWSER_VERSION, 8321 /// - BROWSER_VERSION,
7941 * - BROWSER_SIZE, 8322 /// - BROWSER_SIZE,
7942 * - PLATFORM, 8323 /// - PLATFORM,
7943 * - PLATFORM_VERSION, 8324 /// - PLATFORM_VERSION,
7944 * - LANGUAGE, 8325 /// - LANGUAGE,
7945 * - SCREEN_RESOLUTION, 8326 /// - SCREEN_RESOLUTION,
7946 * - SCREEN_COLORS, 8327 /// - SCREEN_COLORS,
7947 * - JAVA_ENABLED (Boolean Field), 8328 /// - JAVA_ENABLED (Boolean Field),
7948 * - FLASH_VERSION, 8329 /// - FLASH_VERSION,
7949 * - GEO_SPEED (Connection speed), 8330 /// - GEO_SPEED (Connection speed),
7950 * - VISITOR_TYPE, 8331 /// - VISITOR_TYPE,
7951 * - GEO_ORGANIZATION (ISP organization), 8332 /// - GEO_ORGANIZATION (ISP organization),
7952 * - GEO_DOMAIN, 8333 /// - GEO_DOMAIN,
7953 * - GEO_IP_ADDRESS, 8334 /// - GEO_IP_ADDRESS,
7954 * - GEO_IP_VERSION, 8335 /// - GEO_IP_VERSION,
7955 * - Location 8336 /// - Location
7956 * - GEO_COUNTRY, 8337 /// - GEO_COUNTRY,
7957 * - GEO_REGION, 8338 /// - GEO_REGION,
7958 * - GEO_CITY, 8339 /// - GEO_CITY,
7959 * - Event 8340 /// - Event
7960 * - EVENT_CATEGORY, 8341 /// - EVENT_CATEGORY,
7961 * - EVENT_ACTION, 8342 /// - EVENT_ACTION,
7962 * - EVENT_LABEL, 8343 /// - EVENT_LABEL,
7963 * - Other 8344 /// - Other
7964 * - CUSTOM_FIELD_1, 8345 /// - CUSTOM_FIELD_1,
7965 * - CUSTOM_FIELD_2, 8346 /// - CUSTOM_FIELD_2,
7966 * - USER_DEFINED_VALUE, 8347 /// - USER_DEFINED_VALUE,
7967 * - Application 8348 /// - Application
7968 * - APP_ID, 8349 /// - APP_ID,
7969 * - APP_INSTALLER_ID, 8350 /// - APP_INSTALLER_ID,
7970 * - APP_NAME, 8351 /// - APP_NAME,
7971 * - APP_VERSION, 8352 /// - APP_VERSION,
7972 * - SCREEN, 8353 /// - SCREEN,
7973 * - IS_APP (Boolean Field), 8354 /// - IS_APP (Boolean Field),
7974 * - IS_FATAL_EXCEPTION (Boolean Field), 8355 /// - IS_FATAL_EXCEPTION (Boolean Field),
7975 * - EXCEPTION_DESCRIPTION, 8356 /// - EXCEPTION_DESCRIPTION,
7976 * - Mobile device 8357 /// - Mobile device
7977 * - IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile), 8358 /// - IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile),
7978 * - IS_TABLET (Boolean Field, Deprecated. Use DEVICE_CATEGORY=tablet), 8359 /// - IS_TABLET (Boolean Field, Deprecated. Use DEVICE_CATEGORY=tablet),
7979 * - DEVICE_CATEGORY, 8360 /// - DEVICE_CATEGORY,
7980 * - MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field), 8361 /// - MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field),
7981 * - MOBILE_HAS_NFC_SUPPORT (Boolean Field), 8362 /// - MOBILE_HAS_NFC_SUPPORT (Boolean Field),
7982 * - MOBILE_HAS_CELLULAR_RADIO (Boolean Field), 8363 /// - MOBILE_HAS_CELLULAR_RADIO (Boolean Field),
7983 * - MOBILE_HAS_WIFI_SUPPORT (Boolean Field), 8364 /// - MOBILE_HAS_WIFI_SUPPORT (Boolean Field),
7984 * - MOBILE_BRAND_NAME, 8365 /// - MOBILE_BRAND_NAME,
7985 * - MOBILE_MODEL_NAME, 8366 /// - MOBILE_MODEL_NAME,
7986 * - MOBILE_MARKETING_NAME, 8367 /// - MOBILE_MARKETING_NAME,
7987 * - MOBILE_POINTING_METHOD, 8368 /// - MOBILE_POINTING_METHOD,
7988 * - Social 8369 /// - Social
7989 * - SOCIAL_NETWORK, 8370 /// - SOCIAL_NETWORK,
7990 * - SOCIAL_ACTION, 8371 /// - SOCIAL_ACTION,
7991 * - SOCIAL_ACTION_TARGET, 8372 /// - SOCIAL_ACTION_TARGET,
7992 * - Custom dimension 8373 /// - Custom dimension
7993 * - CUSTOM_DIMENSION (See accompanying field index), 8374 /// - CUSTOM_DIMENSION (See accompanying field index),
7994 */
7995 core.String field; 8375 core.String field;
7996 /** 8376
7997 * The Index of the custom dimension. Set only if the field is a is 8377 /// The Index of the custom dimension. Set only if the field is a is
7998 * CUSTOM_DIMENSION. 8378 /// CUSTOM_DIMENSION.
7999 */
8000 core.int fieldIndex; 8379 core.int fieldIndex;
8001 /** Kind value for filter expression */ 8380
8381 /// Kind value for filter expression
8002 core.String kind; 8382 core.String kind;
8003 /** 8383
8004 * Match type for this filter. Possible values are BEGINS_WITH, EQUAL, 8384 /// Match type for this filter. Possible values are BEGINS_WITH, EQUAL,
8005 * ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS, 8385 /// ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS,
8006 * PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all 8386 /// PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all
8007 * other filters must use MATCHES. 8387 /// other filters must use MATCHES.
8008 */
8009 core.String matchType; 8388 core.String matchType;
8010 8389
8011 FilterExpression(); 8390 FilterExpression();
8012 8391
8013 FilterExpression.fromJson(core.Map _json) { 8392 FilterExpression.fromJson(core.Map _json) {
8014 if (_json.containsKey("caseSensitive")) { 8393 if (_json.containsKey("caseSensitive")) {
8015 caseSensitive = _json["caseSensitive"]; 8394 caseSensitive = _json["caseSensitive"];
8016 } 8395 }
8017 if (_json.containsKey("expressionValue")) { 8396 if (_json.containsKey("expressionValue")) {
8018 expressionValue = _json["expressionValue"]; 8397 expressionValue = _json["expressionValue"];
8019 } 8398 }
8020 if (_json.containsKey("field")) { 8399 if (_json.containsKey("field")) {
8021 field = _json["field"]; 8400 field = _json["field"];
8022 } 8401 }
8023 if (_json.containsKey("fieldIndex")) { 8402 if (_json.containsKey("fieldIndex")) {
8024 fieldIndex = _json["fieldIndex"]; 8403 fieldIndex = _json["fieldIndex"];
8025 } 8404 }
8026 if (_json.containsKey("kind")) { 8405 if (_json.containsKey("kind")) {
8027 kind = _json["kind"]; 8406 kind = _json["kind"];
8028 } 8407 }
8029 if (_json.containsKey("matchType")) { 8408 if (_json.containsKey("matchType")) {
8030 matchType = _json["matchType"]; 8409 matchType = _json["matchType"];
8031 } 8410 }
8032 } 8411 }
8033 8412
8034 core.Map<core.String, core.Object> toJson() { 8413 core.Map<core.String, core.Object> toJson() {
8035 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8414 final core.Map<core.String, core.Object> _json =
8415 new core.Map<core.String, core.Object>();
8036 if (caseSensitive != null) { 8416 if (caseSensitive != null) {
8037 _json["caseSensitive"] = caseSensitive; 8417 _json["caseSensitive"] = caseSensitive;
8038 } 8418 }
8039 if (expressionValue != null) { 8419 if (expressionValue != null) {
8040 _json["expressionValue"] = expressionValue; 8420 _json["expressionValue"] = expressionValue;
8041 } 8421 }
8042 if (field != null) { 8422 if (field != null) {
8043 _json["field"] = field; 8423 _json["field"] = field;
8044 } 8424 }
8045 if (fieldIndex != null) { 8425 if (fieldIndex != null) {
8046 _json["fieldIndex"] = fieldIndex; 8426 _json["fieldIndex"] = fieldIndex;
8047 } 8427 }
8048 if (kind != null) { 8428 if (kind != null) {
8049 _json["kind"] = kind; 8429 _json["kind"] = kind;
8050 } 8430 }
8051 if (matchType != null) { 8431 if (matchType != null) {
8052 _json["matchType"] = matchType; 8432 _json["matchType"] = matchType;
8053 } 8433 }
8054 return _json; 8434 return _json;
8055 } 8435 }
8056 } 8436 }
8057 8437
8058 /** JSON template for a profile filter link. */ 8438 /// JSON template for a profile filter link.
8059 class FilterRef { 8439 class FilterRef {
8060 /** Account ID to which this filter belongs. */ 8440 /// Account ID to which this filter belongs.
8061 core.String accountId; 8441 core.String accountId;
8062 /** Link for this filter. */ 8442
8443 /// Link for this filter.
8063 core.String href; 8444 core.String href;
8064 /** Filter ID. */ 8445
8446 /// Filter ID.
8065 core.String id; 8447 core.String id;
8066 /** Kind value for filter reference. */ 8448
8449 /// Kind value for filter reference.
8067 core.String kind; 8450 core.String kind;
8068 /** Name of this filter. */ 8451
8452 /// Name of this filter.
8069 core.String name; 8453 core.String name;
8070 8454
8071 FilterRef(); 8455 FilterRef();
8072 8456
8073 FilterRef.fromJson(core.Map _json) { 8457 FilterRef.fromJson(core.Map _json) {
8074 if (_json.containsKey("accountId")) { 8458 if (_json.containsKey("accountId")) {
8075 accountId = _json["accountId"]; 8459 accountId = _json["accountId"];
8076 } 8460 }
8077 if (_json.containsKey("href")) { 8461 if (_json.containsKey("href")) {
8078 href = _json["href"]; 8462 href = _json["href"];
8079 } 8463 }
8080 if (_json.containsKey("id")) { 8464 if (_json.containsKey("id")) {
8081 id = _json["id"]; 8465 id = _json["id"];
8082 } 8466 }
8083 if (_json.containsKey("kind")) { 8467 if (_json.containsKey("kind")) {
8084 kind = _json["kind"]; 8468 kind = _json["kind"];
8085 } 8469 }
8086 if (_json.containsKey("name")) { 8470 if (_json.containsKey("name")) {
8087 name = _json["name"]; 8471 name = _json["name"];
8088 } 8472 }
8089 } 8473 }
8090 8474
8091 core.Map<core.String, core.Object> toJson() { 8475 core.Map<core.String, core.Object> toJson() {
8092 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8476 final core.Map<core.String, core.Object> _json =
8477 new core.Map<core.String, core.Object>();
8093 if (accountId != null) { 8478 if (accountId != null) {
8094 _json["accountId"] = accountId; 8479 _json["accountId"] = accountId;
8095 } 8480 }
8096 if (href != null) { 8481 if (href != null) {
8097 _json["href"] = href; 8482 _json["href"] = href;
8098 } 8483 }
8099 if (id != null) { 8484 if (id != null) {
8100 _json["id"] = id; 8485 _json["id"] = id;
8101 } 8486 }
8102 if (kind != null) { 8487 if (kind != null) {
8103 _json["kind"] = kind; 8488 _json["kind"] = kind;
8104 } 8489 }
8105 if (name != null) { 8490 if (name != null) {
8106 _json["name"] = name; 8491 _json["name"] = name;
8107 } 8492 }
8108 return _json; 8493 return _json;
8109 } 8494 }
8110 } 8495 }
8111 8496
8112 /** 8497 /// A filter collection lists filters created by users in an Analytics account.
8113 * A filter collection lists filters created by users in an Analytics account. 8498 /// Each resource in the collection corresponds to a filter.
8114 * Each resource in the collection corresponds to a filter.
8115 */
8116 class Filters { 8499 class Filters {
8117 /** A list of filters. */ 8500 /// A list of filters.
8118 core.List<Filter> items; 8501 core.List<Filter> items;
8119 /** 8502
8120 * The maximum number of resources the response can contain, regardless of the 8503 /// The maximum number of resources the response can contain, regardless of
8121 * actual number of resources returned. Its value ranges from 1 to 1,000 with 8504 /// the actual number of resources returned. Its value ranges from 1 to 1,000
8122 * a value of 1000 by default, or otherwise specified by the max-results query 8505 /// with a value of 1000 by default, or otherwise specified by the
8123 * parameter. 8506 /// max-results query parameter.
8124 */
8125 core.int itemsPerPage; 8507 core.int itemsPerPage;
8126 /** Collection type. */ 8508
8509 /// Collection type.
8127 core.String kind; 8510 core.String kind;
8128 /** Link to next page for this filter collection. */ 8511
8512 /// Link to next page for this filter collection.
8129 core.String nextLink; 8513 core.String nextLink;
8130 /** Link to previous page for this filter collection. */ 8514
8515 /// Link to previous page for this filter collection.
8131 core.String previousLink; 8516 core.String previousLink;
8132 /** 8517
8133 * The starting index of the resources, which is 1 by default or otherwise 8518 /// The starting index of the resources, which is 1 by default or otherwise
8134 * specified by the start-index query parameter. 8519 /// specified by the start-index query parameter.
8135 */
8136 core.int startIndex; 8520 core.int startIndex;
8137 /** 8521
8138 * The total number of results for the query, regardless of the number of 8522 /// The total number of results for the query, regardless of the number of
8139 * results in the response. 8523 /// results in the response.
8140 */
8141 core.int totalResults; 8524 core.int totalResults;
8142 /** Email ID of the authenticated user */ 8525
8526 /// Email ID of the authenticated user
8143 core.String username; 8527 core.String username;
8144 8528
8145 Filters(); 8529 Filters();
8146 8530
8147 Filters.fromJson(core.Map _json) { 8531 Filters.fromJson(core.Map _json) {
8148 if (_json.containsKey("items")) { 8532 if (_json.containsKey("items")) {
8149 items = _json["items"].map((value) => new Filter.fromJson(value)).toList() ; 8533 items =
8534 _json["items"].map((value) => new Filter.fromJson(value)).toList();
8150 } 8535 }
8151 if (_json.containsKey("itemsPerPage")) { 8536 if (_json.containsKey("itemsPerPage")) {
8152 itemsPerPage = _json["itemsPerPage"]; 8537 itemsPerPage = _json["itemsPerPage"];
8153 } 8538 }
8154 if (_json.containsKey("kind")) { 8539 if (_json.containsKey("kind")) {
8155 kind = _json["kind"]; 8540 kind = _json["kind"];
8156 } 8541 }
8157 if (_json.containsKey("nextLink")) { 8542 if (_json.containsKey("nextLink")) {
8158 nextLink = _json["nextLink"]; 8543 nextLink = _json["nextLink"];
8159 } 8544 }
8160 if (_json.containsKey("previousLink")) { 8545 if (_json.containsKey("previousLink")) {
8161 previousLink = _json["previousLink"]; 8546 previousLink = _json["previousLink"];
8162 } 8547 }
8163 if (_json.containsKey("startIndex")) { 8548 if (_json.containsKey("startIndex")) {
8164 startIndex = _json["startIndex"]; 8549 startIndex = _json["startIndex"];
8165 } 8550 }
8166 if (_json.containsKey("totalResults")) { 8551 if (_json.containsKey("totalResults")) {
8167 totalResults = _json["totalResults"]; 8552 totalResults = _json["totalResults"];
8168 } 8553 }
8169 if (_json.containsKey("username")) { 8554 if (_json.containsKey("username")) {
8170 username = _json["username"]; 8555 username = _json["username"];
8171 } 8556 }
8172 } 8557 }
8173 8558
8174 core.Map<core.String, core.Object> toJson() { 8559 core.Map<core.String, core.Object> toJson() {
8175 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8560 final core.Map<core.String, core.Object> _json =
8561 new core.Map<core.String, core.Object>();
8176 if (items != null) { 8562 if (items != null) {
8177 _json["items"] = items.map((value) => (value).toJson()).toList(); 8563 _json["items"] = items.map((value) => (value).toJson()).toList();
8178 } 8564 }
8179 if (itemsPerPage != null) { 8565 if (itemsPerPage != null) {
8180 _json["itemsPerPage"] = itemsPerPage; 8566 _json["itemsPerPage"] = itemsPerPage;
8181 } 8567 }
8182 if (kind != null) { 8568 if (kind != null) {
8183 _json["kind"] = kind; 8569 _json["kind"] = kind;
8184 } 8570 }
8185 if (nextLink != null) { 8571 if (nextLink != null) {
8186 _json["nextLink"] = nextLink; 8572 _json["nextLink"] = nextLink;
8187 } 8573 }
8188 if (previousLink != null) { 8574 if (previousLink != null) {
8189 _json["previousLink"] = previousLink; 8575 _json["previousLink"] = previousLink;
8190 } 8576 }
8191 if (startIndex != null) { 8577 if (startIndex != null) {
8192 _json["startIndex"] = startIndex; 8578 _json["startIndex"] = startIndex;
8193 } 8579 }
8194 if (totalResults != null) { 8580 if (totalResults != null) {
8195 _json["totalResults"] = totalResults; 8581 _json["totalResults"] = totalResults;
8196 } 8582 }
8197 if (username != null) { 8583 if (username != null) {
8198 _json["username"] = username; 8584 _json["username"] = username;
8199 } 8585 }
8200 return _json; 8586 return _json;
8201 } 8587 }
8202 } 8588 }
8203 8589
8204 class GaDataColumnHeaders { 8590 class GaDataColumnHeaders {
8205 /** Column Type. Either DIMENSION or METRIC. */ 8591 /// Column Type. Either DIMENSION or METRIC.
8206 core.String columnType; 8592 core.String columnType;
8207 /** 8593
8208 * Data type. Dimension column headers have only STRING as the data type. 8594 /// Data type. Dimension column headers have only STRING as the data type.
8209 * Metric column headers have data types for metric values such as INTEGER, 8595 /// Metric column headers have data types for metric values such as INTEGER,
8210 * DOUBLE, CURRENCY etc. 8596 /// DOUBLE, CURRENCY etc.
8211 */
8212 core.String dataType; 8597 core.String dataType;
8213 /** Column name. */ 8598
8599 /// Column name.
8214 core.String name; 8600 core.String name;
8215 8601
8216 GaDataColumnHeaders(); 8602 GaDataColumnHeaders();
8217 8603
8218 GaDataColumnHeaders.fromJson(core.Map _json) { 8604 GaDataColumnHeaders.fromJson(core.Map _json) {
8219 if (_json.containsKey("columnType")) { 8605 if (_json.containsKey("columnType")) {
8220 columnType = _json["columnType"]; 8606 columnType = _json["columnType"];
8221 } 8607 }
8222 if (_json.containsKey("dataType")) { 8608 if (_json.containsKey("dataType")) {
8223 dataType = _json["dataType"]; 8609 dataType = _json["dataType"];
8224 } 8610 }
8225 if (_json.containsKey("name")) { 8611 if (_json.containsKey("name")) {
8226 name = _json["name"]; 8612 name = _json["name"];
8227 } 8613 }
8228 } 8614 }
8229 8615
8230 core.Map<core.String, core.Object> toJson() { 8616 core.Map<core.String, core.Object> toJson() {
8231 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8617 final core.Map<core.String, core.Object> _json =
8618 new core.Map<core.String, core.Object>();
8232 if (columnType != null) { 8619 if (columnType != null) {
8233 _json["columnType"] = columnType; 8620 _json["columnType"] = columnType;
8234 } 8621 }
8235 if (dataType != null) { 8622 if (dataType != null) {
8236 _json["dataType"] = dataType; 8623 _json["dataType"] = dataType;
8237 } 8624 }
8238 if (name != null) { 8625 if (name != null) {
8239 _json["name"] = name; 8626 _json["name"] = name;
8240 } 8627 }
8241 return _json; 8628 return _json;
(...skipping 13 matching lines...) Expand all
8255 } 8642 }
8256 if (_json.containsKey("label")) { 8643 if (_json.containsKey("label")) {
8257 label = _json["label"]; 8644 label = _json["label"];
8258 } 8645 }
8259 if (_json.containsKey("type")) { 8646 if (_json.containsKey("type")) {
8260 type = _json["type"]; 8647 type = _json["type"];
8261 } 8648 }
8262 } 8649 }
8263 8650
8264 core.Map<core.String, core.Object> toJson() { 8651 core.Map<core.String, core.Object> toJson() {
8265 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8652 final core.Map<core.String, core.Object> _json =
8653 new core.Map<core.String, core.Object>();
8266 if (id != null) { 8654 if (id != null) {
8267 _json["id"] = id; 8655 _json["id"] = id;
8268 } 8656 }
8269 if (label != null) { 8657 if (label != null) {
8270 _json["label"] = label; 8658 _json["label"] = label;
8271 } 8659 }
8272 if (type != null) { 8660 if (type != null) {
8273 _json["type"] = type; 8661 _json["type"] = type;
8274 } 8662 }
8275 return _json; 8663 return _json;
8276 } 8664 }
8277 } 8665 }
8278 8666
8279 class GaDataDataTableRowsC { 8667 class GaDataDataTableRowsC {
8280 core.String v; 8668 core.String v;
8281 8669
8282 GaDataDataTableRowsC(); 8670 GaDataDataTableRowsC();
8283 8671
8284 GaDataDataTableRowsC.fromJson(core.Map _json) { 8672 GaDataDataTableRowsC.fromJson(core.Map _json) {
8285 if (_json.containsKey("v")) { 8673 if (_json.containsKey("v")) {
8286 v = _json["v"]; 8674 v = _json["v"];
8287 } 8675 }
8288 } 8676 }
8289 8677
8290 core.Map<core.String, core.Object> toJson() { 8678 core.Map<core.String, core.Object> toJson() {
8291 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8679 final core.Map<core.String, core.Object> _json =
8680 new core.Map<core.String, core.Object>();
8292 if (v != null) { 8681 if (v != null) {
8293 _json["v"] = v; 8682 _json["v"] = v;
8294 } 8683 }
8295 return _json; 8684 return _json;
8296 } 8685 }
8297 } 8686 }
8298 8687
8299 class GaDataDataTableRows { 8688 class GaDataDataTableRows {
8300 core.List<GaDataDataTableRowsC> c; 8689 core.List<GaDataDataTableRowsC> c;
8301 8690
8302 GaDataDataTableRows(); 8691 GaDataDataTableRows();
8303 8692
8304 GaDataDataTableRows.fromJson(core.Map _json) { 8693 GaDataDataTableRows.fromJson(core.Map _json) {
8305 if (_json.containsKey("c")) { 8694 if (_json.containsKey("c")) {
8306 c = _json["c"].map((value) => new GaDataDataTableRowsC.fromJson(value)).to List(); 8695 c = _json["c"]
8696 .map((value) => new GaDataDataTableRowsC.fromJson(value))
8697 .toList();
8307 } 8698 }
8308 } 8699 }
8309 8700
8310 core.Map<core.String, core.Object> toJson() { 8701 core.Map<core.String, core.Object> toJson() {
8311 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8702 final core.Map<core.String, core.Object> _json =
8703 new core.Map<core.String, core.Object>();
8312 if (c != null) { 8704 if (c != null) {
8313 _json["c"] = c.map((value) => (value).toJson()).toList(); 8705 _json["c"] = c.map((value) => (value).toJson()).toList();
8314 } 8706 }
8315 return _json; 8707 return _json;
8316 } 8708 }
8317 } 8709 }
8318 8710
8319 class GaDataDataTable { 8711 class GaDataDataTable {
8320 core.List<GaDataDataTableCols> cols; 8712 core.List<GaDataDataTableCols> cols;
8321 core.List<GaDataDataTableRows> rows; 8713 core.List<GaDataDataTableRows> rows;
8322 8714
8323 GaDataDataTable(); 8715 GaDataDataTable();
8324 8716
8325 GaDataDataTable.fromJson(core.Map _json) { 8717 GaDataDataTable.fromJson(core.Map _json) {
8326 if (_json.containsKey("cols")) { 8718 if (_json.containsKey("cols")) {
8327 cols = _json["cols"].map((value) => new GaDataDataTableCols.fromJson(value )).toList(); 8719 cols = _json["cols"]
8720 .map((value) => new GaDataDataTableCols.fromJson(value))
8721 .toList();
8328 } 8722 }
8329 if (_json.containsKey("rows")) { 8723 if (_json.containsKey("rows")) {
8330 rows = _json["rows"].map((value) => new GaDataDataTableRows.fromJson(value )).toList(); 8724 rows = _json["rows"]
8725 .map((value) => new GaDataDataTableRows.fromJson(value))
8726 .toList();
8331 } 8727 }
8332 } 8728 }
8333 8729
8334 core.Map<core.String, core.Object> toJson() { 8730 core.Map<core.String, core.Object> toJson() {
8335 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8731 final core.Map<core.String, core.Object> _json =
8732 new core.Map<core.String, core.Object>();
8336 if (cols != null) { 8733 if (cols != null) {
8337 _json["cols"] = cols.map((value) => (value).toJson()).toList(); 8734 _json["cols"] = cols.map((value) => (value).toJson()).toList();
8338 } 8735 }
8339 if (rows != null) { 8736 if (rows != null) {
8340 _json["rows"] = rows.map((value) => (value).toJson()).toList(); 8737 _json["rows"] = rows.map((value) => (value).toJson()).toList();
8341 } 8738 }
8342 return _json; 8739 return _json;
8343 } 8740 }
8344 } 8741 }
8345 8742
8346 /** 8743 /// Information for the view (profile), for which the Analytics data was
8347 * Information for the view (profile), for which the Analytics data was 8744 /// requested.
8348 * requested.
8349 */
8350 class GaDataProfileInfo { 8745 class GaDataProfileInfo {
8351 /** Account ID to which this view (profile) belongs. */ 8746 /// Account ID to which this view (profile) belongs.
8352 core.String accountId; 8747 core.String accountId;
8353 /** Internal ID for the web property to which this view (profile) belongs. */ 8748
8749 /// Internal ID for the web property to which this view (profile) belongs.
8354 core.String internalWebPropertyId; 8750 core.String internalWebPropertyId;
8355 /** View (Profile) ID. */ 8751
8752 /// View (Profile) ID.
8356 core.String profileId; 8753 core.String profileId;
8357 /** View (Profile) name. */ 8754
8755 /// View (Profile) name.
8358 core.String profileName; 8756 core.String profileName;
8359 /** Table ID for view (profile). */ 8757
8758 /// Table ID for view (profile).
8360 core.String tableId; 8759 core.String tableId;
8361 /** Web Property ID to which this view (profile) belongs. */ 8760
8761 /// Web Property ID to which this view (profile) belongs.
8362 core.String webPropertyId; 8762 core.String webPropertyId;
8363 8763
8364 GaDataProfileInfo(); 8764 GaDataProfileInfo();
8365 8765
8366 GaDataProfileInfo.fromJson(core.Map _json) { 8766 GaDataProfileInfo.fromJson(core.Map _json) {
8367 if (_json.containsKey("accountId")) { 8767 if (_json.containsKey("accountId")) {
8368 accountId = _json["accountId"]; 8768 accountId = _json["accountId"];
8369 } 8769 }
8370 if (_json.containsKey("internalWebPropertyId")) { 8770 if (_json.containsKey("internalWebPropertyId")) {
8371 internalWebPropertyId = _json["internalWebPropertyId"]; 8771 internalWebPropertyId = _json["internalWebPropertyId"];
8372 } 8772 }
8373 if (_json.containsKey("profileId")) { 8773 if (_json.containsKey("profileId")) {
8374 profileId = _json["profileId"]; 8774 profileId = _json["profileId"];
8375 } 8775 }
8376 if (_json.containsKey("profileName")) { 8776 if (_json.containsKey("profileName")) {
8377 profileName = _json["profileName"]; 8777 profileName = _json["profileName"];
8378 } 8778 }
8379 if (_json.containsKey("tableId")) { 8779 if (_json.containsKey("tableId")) {
8380 tableId = _json["tableId"]; 8780 tableId = _json["tableId"];
8381 } 8781 }
8382 if (_json.containsKey("webPropertyId")) { 8782 if (_json.containsKey("webPropertyId")) {
8383 webPropertyId = _json["webPropertyId"]; 8783 webPropertyId = _json["webPropertyId"];
8384 } 8784 }
8385 } 8785 }
8386 8786
8387 core.Map<core.String, core.Object> toJson() { 8787 core.Map<core.String, core.Object> toJson() {
8388 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8788 final core.Map<core.String, core.Object> _json =
8789 new core.Map<core.String, core.Object>();
8389 if (accountId != null) { 8790 if (accountId != null) {
8390 _json["accountId"] = accountId; 8791 _json["accountId"] = accountId;
8391 } 8792 }
8392 if (internalWebPropertyId != null) { 8793 if (internalWebPropertyId != null) {
8393 _json["internalWebPropertyId"] = internalWebPropertyId; 8794 _json["internalWebPropertyId"] = internalWebPropertyId;
8394 } 8795 }
8395 if (profileId != null) { 8796 if (profileId != null) {
8396 _json["profileId"] = profileId; 8797 _json["profileId"] = profileId;
8397 } 8798 }
8398 if (profileName != null) { 8799 if (profileName != null) {
8399 _json["profileName"] = profileName; 8800 _json["profileName"] = profileName;
8400 } 8801 }
8401 if (tableId != null) { 8802 if (tableId != null) {
8402 _json["tableId"] = tableId; 8803 _json["tableId"] = tableId;
8403 } 8804 }
8404 if (webPropertyId != null) { 8805 if (webPropertyId != null) {
8405 _json["webPropertyId"] = webPropertyId; 8806 _json["webPropertyId"] = webPropertyId;
8406 } 8807 }
8407 return _json; 8808 return _json;
8408 } 8809 }
8409 } 8810 }
8410 8811
8411 /** Analytics data request query parameters. */ 8812 /// Analytics data request query parameters.
8412 class GaDataQuery { 8813 class GaDataQuery {
8413 /** List of analytics dimensions. */ 8814 /// List of analytics dimensions.
8414 core.String dimensions; 8815 core.String dimensions;
8415 /** End date. */ 8816
8817 /// End date.
8416 core.String end_date; 8818 core.String end_date;
8417 /** Comma-separated list of dimension or metric filters. */ 8819
8820 /// Comma-separated list of dimension or metric filters.
8418 core.String filters; 8821 core.String filters;
8419 /** Unique table ID. */ 8822
8823 /// Unique table ID.
8420 core.String ids; 8824 core.String ids;
8421 /** Maximum results per page. */ 8825
8826 /// Maximum results per page.
8422 core.int max_results; 8827 core.int max_results;
8423 /** List of analytics metrics. */ 8828
8829 /// List of analytics metrics.
8424 core.List<core.String> metrics; 8830 core.List<core.String> metrics;
8425 /** Desired sampling level */ 8831
8832 /// Desired sampling level
8426 core.String samplingLevel; 8833 core.String samplingLevel;
8427 /** Analytics advanced segment. */ 8834
8835 /// Analytics advanced segment.
8428 core.String segment; 8836 core.String segment;
8429 /** List of dimensions or metrics based on which Analytics data is sorted. */ 8837
8838 /// List of dimensions or metrics based on which Analytics data is sorted.
8430 core.List<core.String> sort; 8839 core.List<core.String> sort;
8431 /** Start date. */ 8840
8841 /// Start date.
8432 core.String start_date; 8842 core.String start_date;
8433 /** Start index. */ 8843
8844 /// Start index.
8434 core.int start_index; 8845 core.int start_index;
8435 8846
8436 GaDataQuery(); 8847 GaDataQuery();
8437 8848
8438 GaDataQuery.fromJson(core.Map _json) { 8849 GaDataQuery.fromJson(core.Map _json) {
8439 if (_json.containsKey("dimensions")) { 8850 if (_json.containsKey("dimensions")) {
8440 dimensions = _json["dimensions"]; 8851 dimensions = _json["dimensions"];
8441 } 8852 }
8442 if (_json.containsKey("end-date")) { 8853 if (_json.containsKey("end-date")) {
8443 end_date = _json["end-date"]; 8854 end_date = _json["end-date"];
(...skipping 21 matching lines...) Expand all
8465 } 8876 }
8466 if (_json.containsKey("start-date")) { 8877 if (_json.containsKey("start-date")) {
8467 start_date = _json["start-date"]; 8878 start_date = _json["start-date"];
8468 } 8879 }
8469 if (_json.containsKey("start-index")) { 8880 if (_json.containsKey("start-index")) {
8470 start_index = _json["start-index"]; 8881 start_index = _json["start-index"];
8471 } 8882 }
8472 } 8883 }
8473 8884
8474 core.Map<core.String, core.Object> toJson() { 8885 core.Map<core.String, core.Object> toJson() {
8475 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 8886 final core.Map<core.String, core.Object> _json =
8887 new core.Map<core.String, core.Object>();
8476 if (dimensions != null) { 8888 if (dimensions != null) {
8477 _json["dimensions"] = dimensions; 8889 _json["dimensions"] = dimensions;
8478 } 8890 }
8479 if (end_date != null) { 8891 if (end_date != null) {
8480 _json["end-date"] = end_date; 8892 _json["end-date"] = end_date;
8481 } 8893 }
8482 if (filters != null) { 8894 if (filters != null) {
8483 _json["filters"] = filters; 8895 _json["filters"] = filters;
8484 } 8896 }
8485 if (ids != null) { 8897 if (ids != null) {
(...skipping 17 matching lines...) Expand all
8503 if (start_date != null) { 8915 if (start_date != null) {
8504 _json["start-date"] = start_date; 8916 _json["start-date"] = start_date;
8505 } 8917 }
8506 if (start_index != null) { 8918 if (start_index != null) {
8507 _json["start-index"] = start_index; 8919 _json["start-index"] = start_index;
8508 } 8920 }
8509 return _json; 8921 return _json;
8510 } 8922 }
8511 } 8923 }
8512 8924
8513 /** Analytics data for a given view (profile). */ 8925 /// Analytics data for a given view (profile).
8514 class GaData { 8926 class GaData {
8515 /** 8927 /// Column headers that list dimension names followed by the metric names.
8516 * Column headers that list dimension names followed by the metric names. The 8928 /// The order of dimensions and metrics is same as specified in the request.
8517 * order of dimensions and metrics is same as specified in the request.
8518 */
8519 core.List<GaDataColumnHeaders> columnHeaders; 8929 core.List<GaDataColumnHeaders> columnHeaders;
8520 /** Determines if Analytics data contains samples. */ 8930
8931 /// Determines if Analytics data contains samples.
8521 core.bool containsSampledData; 8932 core.bool containsSampledData;
8522 /** The last refreshed time in seconds for Analytics data. */ 8933
8934 /// The last refreshed time in seconds for Analytics data.
8523 core.String dataLastRefreshed; 8935 core.String dataLastRefreshed;
8524 GaDataDataTable dataTable; 8936 GaDataDataTable dataTable;
8525 /** Unique ID for this data response. */ 8937
8938 /// Unique ID for this data response.
8526 core.String id; 8939 core.String id;
8527 /** 8940
8528 * The maximum number of rows the response can contain, regardless of the 8941 /// The maximum number of rows the response can contain, regardless of the
8529 * actual number of rows returned. Its value ranges from 1 to 10,000 with a 8942 /// actual number of rows returned. Its value ranges from 1 to 10,000 with a
8530 * value of 1000 by default, or otherwise specified by the max-results query 8943 /// value of 1000 by default, or otherwise specified by the max-results query
8531 * parameter. 8944 /// parameter.
8532 */
8533 core.int itemsPerPage; 8945 core.int itemsPerPage;
8534 /** Resource type. */ 8946
8947 /// Resource type.
8535 core.String kind; 8948 core.String kind;
8536 /** Link to next page for this Analytics data query. */ 8949
8950 /// Link to next page for this Analytics data query.
8537 core.String nextLink; 8951 core.String nextLink;
8538 /** Link to previous page for this Analytics data query. */ 8952
8953 /// Link to previous page for this Analytics data query.
8539 core.String previousLink; 8954 core.String previousLink;
8540 /** 8955
8541 * Information for the view (profile), for which the Analytics data was 8956 /// Information for the view (profile), for which the Analytics data was
8542 * requested. 8957 /// requested.
8543 */
8544 GaDataProfileInfo profileInfo; 8958 GaDataProfileInfo profileInfo;
8545 /** Analytics data request query parameters. */ 8959
8960 /// Analytics data request query parameters.
8546 GaDataQuery query; 8961 GaDataQuery query;
8547 /** 8962
8548 * Analytics data rows, where each row contains a list of dimension values 8963 /// Analytics data rows, where each row contains a list of dimension values
8549 * followed by the metric values. The order of dimensions and metrics is same 8964 /// followed by the metric values. The order of dimensions and metrics is
8550 * as specified in the request. 8965 /// same as specified in the request.
8551 */
8552 core.List<core.List<core.String>> rows; 8966 core.List<core.List<core.String>> rows;
8553 /** The number of samples used to calculate the result. */ 8967
8968 /// The number of samples used to calculate the result.
8554 core.String sampleSize; 8969 core.String sampleSize;
8555 /** Total size of the sample space from which the samples were selected. */ 8970
8971 /// Total size of the sample space from which the samples were selected.
8556 core.String sampleSpace; 8972 core.String sampleSpace;
8557 /** Link to this page. */ 8973
8974 /// Link to this page.
8558 core.String selfLink; 8975 core.String selfLink;
8559 /** 8976
8560 * The total number of rows for the query, regardless of the number of rows in 8977 /// The total number of rows for the query, regardless of the number of rows
8561 * the response. 8978 /// in the response.
8562 */
8563 core.int totalResults; 8979 core.int totalResults;
8564 /** 8980
8565 * Total values for the requested metrics over all the results, not just the 8981 /// Total values for the requested metrics over all the results, not just the
8566 * results returned in this response. The order of the metric totals is same 8982 /// results returned in this response. The order of the metric totals is same
8567 * as the metric order specified in the request. 8983 /// as the metric order specified in the request.
8568 */
8569 core.Map<core.String, core.String> totalsForAllResults; 8984 core.Map<core.String, core.String> totalsForAllResults;
8570 8985
8571 GaData(); 8986 GaData();
8572 8987
8573 GaData.fromJson(core.Map _json) { 8988 GaData.fromJson(core.Map _json) {
8574 if (_json.containsKey("columnHeaders")) { 8989 if (_json.containsKey("columnHeaders")) {
8575 columnHeaders = _json["columnHeaders"].map((value) => new GaDataColumnHead ers.fromJson(value)).toList(); 8990 columnHeaders = _json["columnHeaders"]
8991 .map((value) => new GaDataColumnHeaders.fromJson(value))
8992 .toList();
8576 } 8993 }
8577 if (_json.containsKey("containsSampledData")) { 8994 if (_json.containsKey("containsSampledData")) {
8578 containsSampledData = _json["containsSampledData"]; 8995 containsSampledData = _json["containsSampledData"];
8579 } 8996 }
8580 if (_json.containsKey("dataLastRefreshed")) { 8997 if (_json.containsKey("dataLastRefreshed")) {
8581 dataLastRefreshed = _json["dataLastRefreshed"]; 8998 dataLastRefreshed = _json["dataLastRefreshed"];
8582 } 8999 }
8583 if (_json.containsKey("dataTable")) { 9000 if (_json.containsKey("dataTable")) {
8584 dataTable = new GaDataDataTable.fromJson(_json["dataTable"]); 9001 dataTable = new GaDataDataTable.fromJson(_json["dataTable"]);
8585 } 9002 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
8618 } 9035 }
8619 if (_json.containsKey("totalResults")) { 9036 if (_json.containsKey("totalResults")) {
8620 totalResults = _json["totalResults"]; 9037 totalResults = _json["totalResults"];
8621 } 9038 }
8622 if (_json.containsKey("totalsForAllResults")) { 9039 if (_json.containsKey("totalsForAllResults")) {
8623 totalsForAllResults = _json["totalsForAllResults"]; 9040 totalsForAllResults = _json["totalsForAllResults"];
8624 } 9041 }
8625 } 9042 }
8626 9043
8627 core.Map<core.String, core.Object> toJson() { 9044 core.Map<core.String, core.Object> toJson() {
8628 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9045 final core.Map<core.String, core.Object> _json =
9046 new core.Map<core.String, core.Object>();
8629 if (columnHeaders != null) { 9047 if (columnHeaders != null) {
8630 _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).to List(); 9048 _json["columnHeaders"] =
9049 columnHeaders.map((value) => (value).toJson()).toList();
8631 } 9050 }
8632 if (containsSampledData != null) { 9051 if (containsSampledData != null) {
8633 _json["containsSampledData"] = containsSampledData; 9052 _json["containsSampledData"] = containsSampledData;
8634 } 9053 }
8635 if (dataLastRefreshed != null) { 9054 if (dataLastRefreshed != null) {
8636 _json["dataLastRefreshed"] = dataLastRefreshed; 9055 _json["dataLastRefreshed"] = dataLastRefreshed;
8637 } 9056 }
8638 if (dataTable != null) { 9057 if (dataTable != null) {
8639 _json["dataTable"] = (dataTable).toJson(); 9058 _json["dataTable"] = (dataTable).toJson();
8640 } 9059 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
8675 _json["totalResults"] = totalResults; 9094 _json["totalResults"] = totalResults;
8676 } 9095 }
8677 if (totalsForAllResults != null) { 9096 if (totalsForAllResults != null) {
8678 _json["totalsForAllResults"] = totalsForAllResults; 9097 _json["totalsForAllResults"] = totalsForAllResults;
8679 } 9098 }
8680 return _json; 9099 return _json;
8681 } 9100 }
8682 } 9101 }
8683 9102
8684 class GoalEventDetailsEventConditions { 9103 class GoalEventDetailsEventConditions {
8685 /** 9104 /// Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
8686 * Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
8687 */
8688 core.String comparisonType; 9105 core.String comparisonType;
8689 /** Value used for this comparison. */ 9106
9107 /// Value used for this comparison.
8690 core.String comparisonValue; 9108 core.String comparisonValue;
8691 /** Expression used for this match. */ 9109
9110 /// Expression used for this match.
8692 core.String expression; 9111 core.String expression;
8693 /** 9112
8694 * Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, 9113 /// Type of the match to be performed. Possible values are REGEXP,
8695 * or EXACT. 9114 /// BEGINS_WITH, or EXACT.
8696 */
8697 core.String matchType; 9115 core.String matchType;
8698 /** 9116
8699 * Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, 9117 /// Type of this event condition. Possible values are CATEGORY, ACTION,
8700 * or VALUE. 9118 /// LABEL, or VALUE.
8701 */
8702 core.String type; 9119 core.String type;
8703 9120
8704 GoalEventDetailsEventConditions(); 9121 GoalEventDetailsEventConditions();
8705 9122
8706 GoalEventDetailsEventConditions.fromJson(core.Map _json) { 9123 GoalEventDetailsEventConditions.fromJson(core.Map _json) {
8707 if (_json.containsKey("comparisonType")) { 9124 if (_json.containsKey("comparisonType")) {
8708 comparisonType = _json["comparisonType"]; 9125 comparisonType = _json["comparisonType"];
8709 } 9126 }
8710 if (_json.containsKey("comparisonValue")) { 9127 if (_json.containsKey("comparisonValue")) {
8711 comparisonValue = _json["comparisonValue"]; 9128 comparisonValue = _json["comparisonValue"];
8712 } 9129 }
8713 if (_json.containsKey("expression")) { 9130 if (_json.containsKey("expression")) {
8714 expression = _json["expression"]; 9131 expression = _json["expression"];
8715 } 9132 }
8716 if (_json.containsKey("matchType")) { 9133 if (_json.containsKey("matchType")) {
8717 matchType = _json["matchType"]; 9134 matchType = _json["matchType"];
8718 } 9135 }
8719 if (_json.containsKey("type")) { 9136 if (_json.containsKey("type")) {
8720 type = _json["type"]; 9137 type = _json["type"];
8721 } 9138 }
8722 } 9139 }
8723 9140
8724 core.Map<core.String, core.Object> toJson() { 9141 core.Map<core.String, core.Object> toJson() {
8725 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9142 final core.Map<core.String, core.Object> _json =
9143 new core.Map<core.String, core.Object>();
8726 if (comparisonType != null) { 9144 if (comparisonType != null) {
8727 _json["comparisonType"] = comparisonType; 9145 _json["comparisonType"] = comparisonType;
8728 } 9146 }
8729 if (comparisonValue != null) { 9147 if (comparisonValue != null) {
8730 _json["comparisonValue"] = comparisonValue; 9148 _json["comparisonValue"] = comparisonValue;
8731 } 9149 }
8732 if (expression != null) { 9150 if (expression != null) {
8733 _json["expression"] = expression; 9151 _json["expression"] = expression;
8734 } 9152 }
8735 if (matchType != null) { 9153 if (matchType != null) {
8736 _json["matchType"] = matchType; 9154 _json["matchType"] = matchType;
8737 } 9155 }
8738 if (type != null) { 9156 if (type != null) {
8739 _json["type"] = type; 9157 _json["type"] = type;
8740 } 9158 }
8741 return _json; 9159 return _json;
8742 } 9160 }
8743 } 9161 }
8744 9162
8745 /** Details for the goal of the type EVENT. */ 9163 /// Details for the goal of the type EVENT.
8746 class GoalEventDetails { 9164 class GoalEventDetails {
8747 /** List of event conditions. */ 9165 /// List of event conditions.
8748 core.List<GoalEventDetailsEventConditions> eventConditions; 9166 core.List<GoalEventDetailsEventConditions> eventConditions;
8749 /** 9167
8750 * Determines if the event value should be used as the value for this goal. 9168 /// Determines if the event value should be used as the value for this goal.
8751 */
8752 core.bool useEventValue; 9169 core.bool useEventValue;
8753 9170
8754 GoalEventDetails(); 9171 GoalEventDetails();
8755 9172
8756 GoalEventDetails.fromJson(core.Map _json) { 9173 GoalEventDetails.fromJson(core.Map _json) {
8757 if (_json.containsKey("eventConditions")) { 9174 if (_json.containsKey("eventConditions")) {
8758 eventConditions = _json["eventConditions"].map((value) => new GoalEventDet ailsEventConditions.fromJson(value)).toList(); 9175 eventConditions = _json["eventConditions"]
9176 .map((value) => new GoalEventDetailsEventConditions.fromJson(value))
9177 .toList();
8759 } 9178 }
8760 if (_json.containsKey("useEventValue")) { 9179 if (_json.containsKey("useEventValue")) {
8761 useEventValue = _json["useEventValue"]; 9180 useEventValue = _json["useEventValue"];
8762 } 9181 }
8763 } 9182 }
8764 9183
8765 core.Map<core.String, core.Object> toJson() { 9184 core.Map<core.String, core.Object> toJson() {
8766 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9185 final core.Map<core.String, core.Object> _json =
9186 new core.Map<core.String, core.Object>();
8767 if (eventConditions != null) { 9187 if (eventConditions != null) {
8768 _json["eventConditions"] = eventConditions.map((value) => (value).toJson() ).toList(); 9188 _json["eventConditions"] =
9189 eventConditions.map((value) => (value).toJson()).toList();
8769 } 9190 }
8770 if (useEventValue != null) { 9191 if (useEventValue != null) {
8771 _json["useEventValue"] = useEventValue; 9192 _json["useEventValue"] = useEventValue;
8772 } 9193 }
8773 return _json; 9194 return _json;
8774 } 9195 }
8775 } 9196 }
8776 9197
8777 /** 9198 /// Parent link for a goal. Points to the view (profile) to which this goal
8778 * Parent link for a goal. Points to the view (profile) to which this goal 9199 /// belongs.
8779 * belongs.
8780 */
8781 class GoalParentLink { 9200 class GoalParentLink {
8782 /** Link to the view (profile) to which this goal belongs. */ 9201 /// Link to the view (profile) to which this goal belongs.
8783 core.String href; 9202 core.String href;
8784 /** Value is "analytics#profile". */ 9203
9204 /// Value is "analytics#profile".
8785 core.String type; 9205 core.String type;
8786 9206
8787 GoalParentLink(); 9207 GoalParentLink();
8788 9208
8789 GoalParentLink.fromJson(core.Map _json) { 9209 GoalParentLink.fromJson(core.Map _json) {
8790 if (_json.containsKey("href")) { 9210 if (_json.containsKey("href")) {
8791 href = _json["href"]; 9211 href = _json["href"];
8792 } 9212 }
8793 if (_json.containsKey("type")) { 9213 if (_json.containsKey("type")) {
8794 type = _json["type"]; 9214 type = _json["type"];
8795 } 9215 }
8796 } 9216 }
8797 9217
8798 core.Map<core.String, core.Object> toJson() { 9218 core.Map<core.String, core.Object> toJson() {
8799 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9219 final core.Map<core.String, core.Object> _json =
9220 new core.Map<core.String, core.Object>();
8800 if (href != null) { 9221 if (href != null) {
8801 _json["href"] = href; 9222 _json["href"] = href;
8802 } 9223 }
8803 if (type != null) { 9224 if (type != null) {
8804 _json["type"] = type; 9225 _json["type"] = type;
8805 } 9226 }
8806 return _json; 9227 return _json;
8807 } 9228 }
8808 } 9229 }
8809 9230
8810 class GoalUrlDestinationDetailsSteps { 9231 class GoalUrlDestinationDetailsSteps {
8811 /** Step name. */ 9232 /// Step name.
8812 core.String name; 9233 core.String name;
8813 /** Step number. */ 9234
9235 /// Step number.
8814 core.int number; 9236 core.int number;
8815 /** URL for this step. */ 9237
9238 /// URL for this step.
8816 core.String url; 9239 core.String url;
8817 9240
8818 GoalUrlDestinationDetailsSteps(); 9241 GoalUrlDestinationDetailsSteps();
8819 9242
8820 GoalUrlDestinationDetailsSteps.fromJson(core.Map _json) { 9243 GoalUrlDestinationDetailsSteps.fromJson(core.Map _json) {
8821 if (_json.containsKey("name")) { 9244 if (_json.containsKey("name")) {
8822 name = _json["name"]; 9245 name = _json["name"];
8823 } 9246 }
8824 if (_json.containsKey("number")) { 9247 if (_json.containsKey("number")) {
8825 number = _json["number"]; 9248 number = _json["number"];
8826 } 9249 }
8827 if (_json.containsKey("url")) { 9250 if (_json.containsKey("url")) {
8828 url = _json["url"]; 9251 url = _json["url"];
8829 } 9252 }
8830 } 9253 }
8831 9254
8832 core.Map<core.String, core.Object> toJson() { 9255 core.Map<core.String, core.Object> toJson() {
8833 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9256 final core.Map<core.String, core.Object> _json =
9257 new core.Map<core.String, core.Object>();
8834 if (name != null) { 9258 if (name != null) {
8835 _json["name"] = name; 9259 _json["name"] = name;
8836 } 9260 }
8837 if (number != null) { 9261 if (number != null) {
8838 _json["number"] = number; 9262 _json["number"] = number;
8839 } 9263 }
8840 if (url != null) { 9264 if (url != null) {
8841 _json["url"] = url; 9265 _json["url"] = url;
8842 } 9266 }
8843 return _json; 9267 return _json;
8844 } 9268 }
8845 } 9269 }
8846 9270
8847 /** Details for the goal of the type URL_DESTINATION. */ 9271 /// Details for the goal of the type URL_DESTINATION.
8848 class GoalUrlDestinationDetails { 9272 class GoalUrlDestinationDetails {
8849 /** 9273 /// Determines if the goal URL must exactly match the capitalization of
8850 * Determines if the goal URL must exactly match the capitalization of visited 9274 /// visited URLs.
8851 * URLs.
8852 */
8853 core.bool caseSensitive; 9275 core.bool caseSensitive;
8854 /** Determines if the first step in this goal is required. */ 9276
9277 /// Determines if the first step in this goal is required.
8855 core.bool firstStepRequired; 9278 core.bool firstStepRequired;
8856 /** 9279
8857 * Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX. 9280 /// Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
8858 */
8859 core.String matchType; 9281 core.String matchType;
8860 /** List of steps configured for this goal funnel. */ 9282
9283 /// List of steps configured for this goal funnel.
8861 core.List<GoalUrlDestinationDetailsSteps> steps; 9284 core.List<GoalUrlDestinationDetailsSteps> steps;
8862 /** URL for this goal. */ 9285
9286 /// URL for this goal.
8863 core.String url; 9287 core.String url;
8864 9288
8865 GoalUrlDestinationDetails(); 9289 GoalUrlDestinationDetails();
8866 9290
8867 GoalUrlDestinationDetails.fromJson(core.Map _json) { 9291 GoalUrlDestinationDetails.fromJson(core.Map _json) {
8868 if (_json.containsKey("caseSensitive")) { 9292 if (_json.containsKey("caseSensitive")) {
8869 caseSensitive = _json["caseSensitive"]; 9293 caseSensitive = _json["caseSensitive"];
8870 } 9294 }
8871 if (_json.containsKey("firstStepRequired")) { 9295 if (_json.containsKey("firstStepRequired")) {
8872 firstStepRequired = _json["firstStepRequired"]; 9296 firstStepRequired = _json["firstStepRequired"];
8873 } 9297 }
8874 if (_json.containsKey("matchType")) { 9298 if (_json.containsKey("matchType")) {
8875 matchType = _json["matchType"]; 9299 matchType = _json["matchType"];
8876 } 9300 }
8877 if (_json.containsKey("steps")) { 9301 if (_json.containsKey("steps")) {
8878 steps = _json["steps"].map((value) => new GoalUrlDestinationDetailsSteps.f romJson(value)).toList(); 9302 steps = _json["steps"]
9303 .map((value) => new GoalUrlDestinationDetailsSteps.fromJson(value))
9304 .toList();
8879 } 9305 }
8880 if (_json.containsKey("url")) { 9306 if (_json.containsKey("url")) {
8881 url = _json["url"]; 9307 url = _json["url"];
8882 } 9308 }
8883 } 9309 }
8884 9310
8885 core.Map<core.String, core.Object> toJson() { 9311 core.Map<core.String, core.Object> toJson() {
8886 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9312 final core.Map<core.String, core.Object> _json =
9313 new core.Map<core.String, core.Object>();
8887 if (caseSensitive != null) { 9314 if (caseSensitive != null) {
8888 _json["caseSensitive"] = caseSensitive; 9315 _json["caseSensitive"] = caseSensitive;
8889 } 9316 }
8890 if (firstStepRequired != null) { 9317 if (firstStepRequired != null) {
8891 _json["firstStepRequired"] = firstStepRequired; 9318 _json["firstStepRequired"] = firstStepRequired;
8892 } 9319 }
8893 if (matchType != null) { 9320 if (matchType != null) {
8894 _json["matchType"] = matchType; 9321 _json["matchType"] = matchType;
8895 } 9322 }
8896 if (steps != null) { 9323 if (steps != null) {
8897 _json["steps"] = steps.map((value) => (value).toJson()).toList(); 9324 _json["steps"] = steps.map((value) => (value).toJson()).toList();
8898 } 9325 }
8899 if (url != null) { 9326 if (url != null) {
8900 _json["url"] = url; 9327 _json["url"] = url;
8901 } 9328 }
8902 return _json; 9329 return _json;
8903 } 9330 }
8904 } 9331 }
8905 9332
8906 /** Details for the goal of the type VISIT_NUM_PAGES. */ 9333 /// Details for the goal of the type VISIT_NUM_PAGES.
8907 class GoalVisitNumPagesDetails { 9334 class GoalVisitNumPagesDetails {
8908 /** 9335 /// Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or
8909 * Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL. 9336 /// EQUAL.
8910 */
8911 core.String comparisonType; 9337 core.String comparisonType;
8912 /** Value used for this comparison. */ 9338
9339 /// Value used for this comparison.
8913 core.String comparisonValue; 9340 core.String comparisonValue;
8914 9341
8915 GoalVisitNumPagesDetails(); 9342 GoalVisitNumPagesDetails();
8916 9343
8917 GoalVisitNumPagesDetails.fromJson(core.Map _json) { 9344 GoalVisitNumPagesDetails.fromJson(core.Map _json) {
8918 if (_json.containsKey("comparisonType")) { 9345 if (_json.containsKey("comparisonType")) {
8919 comparisonType = _json["comparisonType"]; 9346 comparisonType = _json["comparisonType"];
8920 } 9347 }
8921 if (_json.containsKey("comparisonValue")) { 9348 if (_json.containsKey("comparisonValue")) {
8922 comparisonValue = _json["comparisonValue"]; 9349 comparisonValue = _json["comparisonValue"];
8923 } 9350 }
8924 } 9351 }
8925 9352
8926 core.Map<core.String, core.Object> toJson() { 9353 core.Map<core.String, core.Object> toJson() {
8927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9354 final core.Map<core.String, core.Object> _json =
9355 new core.Map<core.String, core.Object>();
8928 if (comparisonType != null) { 9356 if (comparisonType != null) {
8929 _json["comparisonType"] = comparisonType; 9357 _json["comparisonType"] = comparisonType;
8930 } 9358 }
8931 if (comparisonValue != null) { 9359 if (comparisonValue != null) {
8932 _json["comparisonValue"] = comparisonValue; 9360 _json["comparisonValue"] = comparisonValue;
8933 } 9361 }
8934 return _json; 9362 return _json;
8935 } 9363 }
8936 } 9364 }
8937 9365
8938 /** Details for the goal of the type VISIT_TIME_ON_SITE. */ 9366 /// Details for the goal of the type VISIT_TIME_ON_SITE.
8939 class GoalVisitTimeOnSiteDetails { 9367 class GoalVisitTimeOnSiteDetails {
8940 /** Type of comparison. Possible values are LESS_THAN or GREATER_THAN. */ 9368 /// Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
8941 core.String comparisonType; 9369 core.String comparisonType;
8942 /** Value used for this comparison. */ 9370
9371 /// Value used for this comparison.
8943 core.String comparisonValue; 9372 core.String comparisonValue;
8944 9373
8945 GoalVisitTimeOnSiteDetails(); 9374 GoalVisitTimeOnSiteDetails();
8946 9375
8947 GoalVisitTimeOnSiteDetails.fromJson(core.Map _json) { 9376 GoalVisitTimeOnSiteDetails.fromJson(core.Map _json) {
8948 if (_json.containsKey("comparisonType")) { 9377 if (_json.containsKey("comparisonType")) {
8949 comparisonType = _json["comparisonType"]; 9378 comparisonType = _json["comparisonType"];
8950 } 9379 }
8951 if (_json.containsKey("comparisonValue")) { 9380 if (_json.containsKey("comparisonValue")) {
8952 comparisonValue = _json["comparisonValue"]; 9381 comparisonValue = _json["comparisonValue"];
8953 } 9382 }
8954 } 9383 }
8955 9384
8956 core.Map<core.String, core.Object> toJson() { 9385 core.Map<core.String, core.Object> toJson() {
8957 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9386 final core.Map<core.String, core.Object> _json =
9387 new core.Map<core.String, core.Object>();
8958 if (comparisonType != null) { 9388 if (comparisonType != null) {
8959 _json["comparisonType"] = comparisonType; 9389 _json["comparisonType"] = comparisonType;
8960 } 9390 }
8961 if (comparisonValue != null) { 9391 if (comparisonValue != null) {
8962 _json["comparisonValue"] = comparisonValue; 9392 _json["comparisonValue"] = comparisonValue;
8963 } 9393 }
8964 return _json; 9394 return _json;
8965 } 9395 }
8966 } 9396 }
8967 9397
8968 /** JSON template for Analytics goal resource. */ 9398 /// JSON template for Analytics goal resource.
8969 class Goal { 9399 class Goal {
8970 /** Account ID to which this goal belongs. */ 9400 /// Account ID to which this goal belongs.
8971 core.String accountId; 9401 core.String accountId;
8972 /** Determines whether this goal is active. */ 9402
9403 /// Determines whether this goal is active.
8973 core.bool active; 9404 core.bool active;
8974 /** Time this goal was created. */ 9405
9406 /// Time this goal was created.
8975 core.DateTime created; 9407 core.DateTime created;
8976 /** Details for the goal of the type EVENT. */ 9408
9409 /// Details for the goal of the type EVENT.
8977 GoalEventDetails eventDetails; 9410 GoalEventDetails eventDetails;
8978 /** Goal ID. */ 9411
9412 /// Goal ID.
8979 core.String id; 9413 core.String id;
8980 /** Internal ID for the web property to which this goal belongs. */ 9414
9415 /// Internal ID for the web property to which this goal belongs.
8981 core.String internalWebPropertyId; 9416 core.String internalWebPropertyId;
8982 /** Resource type for an Analytics goal. */ 9417
9418 /// Resource type for an Analytics goal.
8983 core.String kind; 9419 core.String kind;
8984 /** Goal name. */ 9420
9421 /// Goal name.
8985 core.String name; 9422 core.String name;
8986 /** 9423
8987 * Parent link for a goal. Points to the view (profile) to which this goal 9424 /// Parent link for a goal. Points to the view (profile) to which this goal
8988 * belongs. 9425 /// belongs.
8989 */
8990 GoalParentLink parentLink; 9426 GoalParentLink parentLink;
8991 /** View (Profile) ID to which this goal belongs. */ 9427
9428 /// View (Profile) ID to which this goal belongs.
8992 core.String profileId; 9429 core.String profileId;
8993 /** Link for this goal. */ 9430
9431 /// Link for this goal.
8994 core.String selfLink; 9432 core.String selfLink;
8995 /** 9433
8996 * Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, 9434 /// Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE,
8997 * VISIT_NUM_PAGES, AND EVENT. 9435 /// VISIT_NUM_PAGES, AND EVENT.
8998 */
8999 core.String type; 9436 core.String type;
9000 /** Time this goal was last modified. */ 9437
9438 /// Time this goal was last modified.
9001 core.DateTime updated; 9439 core.DateTime updated;
9002 /** Details for the goal of the type URL_DESTINATION. */ 9440
9441 /// Details for the goal of the type URL_DESTINATION.
9003 GoalUrlDestinationDetails urlDestinationDetails; 9442 GoalUrlDestinationDetails urlDestinationDetails;
9004 /** Goal value. */ 9443
9444 /// Goal value.
9005 core.double value; 9445 core.double value;
9006 /** Details for the goal of the type VISIT_NUM_PAGES. */ 9446
9447 /// Details for the goal of the type VISIT_NUM_PAGES.
9007 GoalVisitNumPagesDetails visitNumPagesDetails; 9448 GoalVisitNumPagesDetails visitNumPagesDetails;
9008 /** Details for the goal of the type VISIT_TIME_ON_SITE. */ 9449
9450 /// Details for the goal of the type VISIT_TIME_ON_SITE.
9009 GoalVisitTimeOnSiteDetails visitTimeOnSiteDetails; 9451 GoalVisitTimeOnSiteDetails visitTimeOnSiteDetails;
9010 /** 9452
9011 * Web property ID to which this goal belongs. The web property ID is of the 9453 /// Web property ID to which this goal belongs. The web property ID is of the
9012 * form UA-XXXXX-YY. 9454 /// form UA-XXXXX-YY.
9013 */
9014 core.String webPropertyId; 9455 core.String webPropertyId;
9015 9456
9016 Goal(); 9457 Goal();
9017 9458
9018 Goal.fromJson(core.Map _json) { 9459 Goal.fromJson(core.Map _json) {
9019 if (_json.containsKey("accountId")) { 9460 if (_json.containsKey("accountId")) {
9020 accountId = _json["accountId"]; 9461 accountId = _json["accountId"];
9021 } 9462 }
9022 if (_json.containsKey("active")) { 9463 if (_json.containsKey("active")) {
9023 active = _json["active"]; 9464 active = _json["active"];
(...skipping 25 matching lines...) Expand all
9049 if (_json.containsKey("selfLink")) { 9490 if (_json.containsKey("selfLink")) {
9050 selfLink = _json["selfLink"]; 9491 selfLink = _json["selfLink"];
9051 } 9492 }
9052 if (_json.containsKey("type")) { 9493 if (_json.containsKey("type")) {
9053 type = _json["type"]; 9494 type = _json["type"];
9054 } 9495 }
9055 if (_json.containsKey("updated")) { 9496 if (_json.containsKey("updated")) {
9056 updated = core.DateTime.parse(_json["updated"]); 9497 updated = core.DateTime.parse(_json["updated"]);
9057 } 9498 }
9058 if (_json.containsKey("urlDestinationDetails")) { 9499 if (_json.containsKey("urlDestinationDetails")) {
9059 urlDestinationDetails = new GoalUrlDestinationDetails.fromJson(_json["urlD estinationDetails"]); 9500 urlDestinationDetails = new GoalUrlDestinationDetails.fromJson(
9501 _json["urlDestinationDetails"]);
9060 } 9502 }
9061 if (_json.containsKey("value")) { 9503 if (_json.containsKey("value")) {
9062 value = _json["value"]; 9504 value = _json["value"];
9063 } 9505 }
9064 if (_json.containsKey("visitNumPagesDetails")) { 9506 if (_json.containsKey("visitNumPagesDetails")) {
9065 visitNumPagesDetails = new GoalVisitNumPagesDetails.fromJson(_json["visitN umPagesDetails"]); 9507 visitNumPagesDetails =
9508 new GoalVisitNumPagesDetails.fromJson(_json["visitNumPagesDetails"]);
9066 } 9509 }
9067 if (_json.containsKey("visitTimeOnSiteDetails")) { 9510 if (_json.containsKey("visitTimeOnSiteDetails")) {
9068 visitTimeOnSiteDetails = new GoalVisitTimeOnSiteDetails.fromJson(_json["vi sitTimeOnSiteDetails"]); 9511 visitTimeOnSiteDetails = new GoalVisitTimeOnSiteDetails.fromJson(
9512 _json["visitTimeOnSiteDetails"]);
9069 } 9513 }
9070 if (_json.containsKey("webPropertyId")) { 9514 if (_json.containsKey("webPropertyId")) {
9071 webPropertyId = _json["webPropertyId"]; 9515 webPropertyId = _json["webPropertyId"];
9072 } 9516 }
9073 } 9517 }
9074 9518
9075 core.Map<core.String, core.Object> toJson() { 9519 core.Map<core.String, core.Object> toJson() {
9076 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9520 final core.Map<core.String, core.Object> _json =
9521 new core.Map<core.String, core.Object>();
9077 if (accountId != null) { 9522 if (accountId != null) {
9078 _json["accountId"] = accountId; 9523 _json["accountId"] = accountId;
9079 } 9524 }
9080 if (active != null) { 9525 if (active != null) {
9081 _json["active"] = active; 9526 _json["active"] = active;
9082 } 9527 }
9083 if (created != null) { 9528 if (created != null) {
9084 _json["created"] = (created).toIso8601String(); 9529 _json["created"] = (created).toIso8601String();
9085 } 9530 }
9086 if (eventDetails != null) { 9531 if (eventDetails != null) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
9125 if (visitTimeOnSiteDetails != null) { 9570 if (visitTimeOnSiteDetails != null) {
9126 _json["visitTimeOnSiteDetails"] = (visitTimeOnSiteDetails).toJson(); 9571 _json["visitTimeOnSiteDetails"] = (visitTimeOnSiteDetails).toJson();
9127 } 9572 }
9128 if (webPropertyId != null) { 9573 if (webPropertyId != null) {
9129 _json["webPropertyId"] = webPropertyId; 9574 _json["webPropertyId"] = webPropertyId;
9130 } 9575 }
9131 return _json; 9576 return _json;
9132 } 9577 }
9133 } 9578 }
9134 9579
9135 /** 9580 /// A goal collection lists Analytics goals to which the user has access. Each
9136 * A goal collection lists Analytics goals to which the user has access. Each 9581 /// view (profile) can have a set of goals. Each resource in the Goal
9137 * view (profile) can have a set of goals. Each resource in the Goal collection 9582 /// collection corresponds to a single Analytics goal.
9138 * corresponds to a single Analytics goal.
9139 */
9140 class Goals { 9583 class Goals {
9141 /** A list of goals. */ 9584 /// A list of goals.
9142 core.List<Goal> items; 9585 core.List<Goal> items;
9143 /** 9586
9144 * The maximum number of resources the response can contain, regardless of the 9587 /// The maximum number of resources the response can contain, regardless of
9145 * actual number of resources returned. Its value ranges from 1 to 1000 with a 9588 /// the actual number of resources returned. Its value ranges from 1 to 1000
9146 * value of 1000 by default, or otherwise specified by the max-results query 9589 /// with a value of 1000 by default, or otherwise specified by the
9147 * parameter. 9590 /// max-results query parameter.
9148 */
9149 core.int itemsPerPage; 9591 core.int itemsPerPage;
9150 /** Collection type. */ 9592
9593 /// Collection type.
9151 core.String kind; 9594 core.String kind;
9152 /** Link to next page for this goal collection. */ 9595
9596 /// Link to next page for this goal collection.
9153 core.String nextLink; 9597 core.String nextLink;
9154 /** Link to previous page for this goal collection. */ 9598
9599 /// Link to previous page for this goal collection.
9155 core.String previousLink; 9600 core.String previousLink;
9156 /** 9601
9157 * The starting index of the resources, which is 1 by default or otherwise 9602 /// The starting index of the resources, which is 1 by default or otherwise
9158 * specified by the start-index query parameter. 9603 /// specified by the start-index query parameter.
9159 */
9160 core.int startIndex; 9604 core.int startIndex;
9161 /** 9605
9162 * The total number of results for the query, regardless of the number of 9606 /// The total number of results for the query, regardless of the number of
9163 * resources in the result. 9607 /// resources in the result.
9164 */
9165 core.int totalResults; 9608 core.int totalResults;
9166 /** Email ID of the authenticated user */ 9609
9610 /// Email ID of the authenticated user
9167 core.String username; 9611 core.String username;
9168 9612
9169 Goals(); 9613 Goals();
9170 9614
9171 Goals.fromJson(core.Map _json) { 9615 Goals.fromJson(core.Map _json) {
9172 if (_json.containsKey("items")) { 9616 if (_json.containsKey("items")) {
9173 items = _json["items"].map((value) => new Goal.fromJson(value)).toList(); 9617 items = _json["items"].map((value) => new Goal.fromJson(value)).toList();
9174 } 9618 }
9175 if (_json.containsKey("itemsPerPage")) { 9619 if (_json.containsKey("itemsPerPage")) {
9176 itemsPerPage = _json["itemsPerPage"]; 9620 itemsPerPage = _json["itemsPerPage"];
(...skipping 12 matching lines...) Expand all
9189 } 9633 }
9190 if (_json.containsKey("totalResults")) { 9634 if (_json.containsKey("totalResults")) {
9191 totalResults = _json["totalResults"]; 9635 totalResults = _json["totalResults"];
9192 } 9636 }
9193 if (_json.containsKey("username")) { 9637 if (_json.containsKey("username")) {
9194 username = _json["username"]; 9638 username = _json["username"];
9195 } 9639 }
9196 } 9640 }
9197 9641
9198 core.Map<core.String, core.Object> toJson() { 9642 core.Map<core.String, core.Object> toJson() {
9199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9643 final core.Map<core.String, core.Object> _json =
9644 new core.Map<core.String, core.Object>();
9200 if (items != null) { 9645 if (items != null) {
9201 _json["items"] = items.map((value) => (value).toJson()).toList(); 9646 _json["items"] = items.map((value) => (value).toJson()).toList();
9202 } 9647 }
9203 if (itemsPerPage != null) { 9648 if (itemsPerPage != null) {
9204 _json["itemsPerPage"] = itemsPerPage; 9649 _json["itemsPerPage"] = itemsPerPage;
9205 } 9650 }
9206 if (kind != null) { 9651 if (kind != null) {
9207 _json["kind"] = kind; 9652 _json["kind"] = kind;
9208 } 9653 }
9209 if (nextLink != null) { 9654 if (nextLink != null) {
9210 _json["nextLink"] = nextLink; 9655 _json["nextLink"] = nextLink;
9211 } 9656 }
9212 if (previousLink != null) { 9657 if (previousLink != null) {
9213 _json["previousLink"] = previousLink; 9658 _json["previousLink"] = previousLink;
9214 } 9659 }
9215 if (startIndex != null) { 9660 if (startIndex != null) {
9216 _json["startIndex"] = startIndex; 9661 _json["startIndex"] = startIndex;
9217 } 9662 }
9218 if (totalResults != null) { 9663 if (totalResults != null) {
9219 _json["totalResults"] = totalResults; 9664 _json["totalResults"] = totalResults;
9220 } 9665 }
9221 if (username != null) { 9666 if (username != null) {
9222 _json["username"] = username; 9667 _json["username"] = username;
9223 } 9668 }
9224 return _json; 9669 return _json;
9225 } 9670 }
9226 } 9671 }
9227 9672
9228 /** JSON template for an Analytics Remarketing Include Conditions. */ 9673 /// JSON template for an Analytics Remarketing Include Conditions.
9229 class IncludeConditions { 9674 class IncludeConditions {
9230 /** 9675 /// The look-back window lets you specify a time frame for evaluating the
9231 * The look-back window lets you specify a time frame for evaluating the 9676 /// behavior that qualifies users for your audience. For example, if your
9232 * behavior that qualifies users for your audience. For example, if your 9677 /// filters include users from Central Asia, and Transactions Greater than 2,
9233 * filters include users from Central Asia, and Transactions Greater than 2, 9678 /// and you set the look-back window to 14 days, then any user from Central
9234 * and you set the look-back window to 14 days, then any user from Central 9679 /// Asia whose cumulative transactions exceed 2 during the last 14 days is
9235 * Asia whose cumulative transactions exceed 2 during the last 14 days is 9680 /// added to the audience.
9236 * added to the audience.
9237 */
9238 core.int daysToLookBack; 9681 core.int daysToLookBack;
9239 /** 9682
9240 * Boolean indicating whether this segment is a smart list. 9683 /// Boolean indicating whether this segment is a smart list.
9241 * https://support.google.com/analytics/answer/4628577 9684 /// https://support.google.com/analytics/answer/4628577
9242 */
9243 core.bool isSmartList; 9685 core.bool isSmartList;
9244 /** Resource type for include conditions. */ 9686
9687 /// Resource type for include conditions.
9245 core.String kind; 9688 core.String kind;
9246 /** Number of days (in the range 1 to 540) a user remains in the audience. */ 9689
9690 /// Number of days (in the range 1 to 540) a user remains in the audience.
9247 core.int membershipDurationDays; 9691 core.int membershipDurationDays;
9248 /** 9692
9249 * The segment condition that will cause a user to be added to an audience. 9693 /// The segment condition that will cause a user to be added to an audience.
9250 */
9251 core.String segment; 9694 core.String segment;
9252 9695
9253 IncludeConditions(); 9696 IncludeConditions();
9254 9697
9255 IncludeConditions.fromJson(core.Map _json) { 9698 IncludeConditions.fromJson(core.Map _json) {
9256 if (_json.containsKey("daysToLookBack")) { 9699 if (_json.containsKey("daysToLookBack")) {
9257 daysToLookBack = _json["daysToLookBack"]; 9700 daysToLookBack = _json["daysToLookBack"];
9258 } 9701 }
9259 if (_json.containsKey("isSmartList")) { 9702 if (_json.containsKey("isSmartList")) {
9260 isSmartList = _json["isSmartList"]; 9703 isSmartList = _json["isSmartList"];
9261 } 9704 }
9262 if (_json.containsKey("kind")) { 9705 if (_json.containsKey("kind")) {
9263 kind = _json["kind"]; 9706 kind = _json["kind"];
9264 } 9707 }
9265 if (_json.containsKey("membershipDurationDays")) { 9708 if (_json.containsKey("membershipDurationDays")) {
9266 membershipDurationDays = _json["membershipDurationDays"]; 9709 membershipDurationDays = _json["membershipDurationDays"];
9267 } 9710 }
9268 if (_json.containsKey("segment")) { 9711 if (_json.containsKey("segment")) {
9269 segment = _json["segment"]; 9712 segment = _json["segment"];
9270 } 9713 }
9271 } 9714 }
9272 9715
9273 core.Map<core.String, core.Object> toJson() { 9716 core.Map<core.String, core.Object> toJson() {
9274 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9717 final core.Map<core.String, core.Object> _json =
9718 new core.Map<core.String, core.Object>();
9275 if (daysToLookBack != null) { 9719 if (daysToLookBack != null) {
9276 _json["daysToLookBack"] = daysToLookBack; 9720 _json["daysToLookBack"] = daysToLookBack;
9277 } 9721 }
9278 if (isSmartList != null) { 9722 if (isSmartList != null) {
9279 _json["isSmartList"] = isSmartList; 9723 _json["isSmartList"] = isSmartList;
9280 } 9724 }
9281 if (kind != null) { 9725 if (kind != null) {
9282 _json["kind"] = kind; 9726 _json["kind"] = kind;
9283 } 9727 }
9284 if (membershipDurationDays != null) { 9728 if (membershipDurationDays != null) {
9285 _json["membershipDurationDays"] = membershipDurationDays; 9729 _json["membershipDurationDays"] = membershipDurationDays;
9286 } 9730 }
9287 if (segment != null) { 9731 if (segment != null) {
9288 _json["segment"] = segment; 9732 _json["segment"] = segment;
9289 } 9733 }
9290 return _json; 9734 return _json;
9291 } 9735 }
9292 } 9736 }
9293 9737
9294 /** JSON template for an Analytics Remarketing Audience Foreign Link. */ 9738 /// JSON template for an Analytics Remarketing Audience Foreign Link.
9295 class LinkedForeignAccount { 9739 class LinkedForeignAccount {
9296 /** Account ID to which this linked foreign account belongs. */ 9740 /// Account ID to which this linked foreign account belongs.
9297 core.String accountId; 9741 core.String accountId;
9298 /** Boolean indicating whether this is eligible for search. */ 9742
9743 /// Boolean indicating whether this is eligible for search.
9299 core.bool eligibleForSearch; 9744 core.bool eligibleForSearch;
9300 /** Entity ad account link ID. */ 9745
9746 /// Entity ad account link ID.
9301 core.String id; 9747 core.String id;
9302 /** 9748
9303 * Internal ID for the web property to which this linked foreign account 9749 /// Internal ID for the web property to which this linked foreign account
9304 * belongs. 9750 /// belongs.
9305 */
9306 core.String internalWebPropertyId; 9751 core.String internalWebPropertyId;
9307 /** Resource type for linked foreign account. */ 9752
9753 /// Resource type for linked foreign account.
9308 core.String kind; 9754 core.String kind;
9309 /** 9755
9310 * The foreign account ID. For example the an AdWords `linkedAccountId` has 9756 /// The foreign account ID. For example the an AdWords `linkedAccountId` has
9311 * the following format XXX-XXX-XXXX. 9757 /// the following format XXX-XXX-XXXX.
9312 */
9313 core.String linkedAccountId; 9758 core.String linkedAccountId;
9314 /** Remarketing audience ID to which this linked foreign account belongs. */ 9759
9760 /// Remarketing audience ID to which this linked foreign account belongs.
9315 core.String remarketingAudienceId; 9761 core.String remarketingAudienceId;
9316 /** The status of this foreign account link. */ 9762
9763 /// The status of this foreign account link.
9317 core.String status; 9764 core.String status;
9318 /** 9765
9319 * The type of the foreign account. For example, `ADWORDS_LINKS`, `DBM_LINKS`, 9766 /// The type of the foreign account. For example, `ADWORDS_LINKS`,
9320 * `MCC_LINKS` or `OPTIMIZE`. 9767 /// `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`.
9321 */
9322 core.String type; 9768 core.String type;
9323 /** 9769
9324 * Web property ID of the form UA-XXXXX-YY to which this linked foreign 9770 /// Web property ID of the form UA-XXXXX-YY to which this linked foreign
9325 * account belongs. 9771 /// account belongs.
9326 */
9327 core.String webPropertyId; 9772 core.String webPropertyId;
9328 9773
9329 LinkedForeignAccount(); 9774 LinkedForeignAccount();
9330 9775
9331 LinkedForeignAccount.fromJson(core.Map _json) { 9776 LinkedForeignAccount.fromJson(core.Map _json) {
9332 if (_json.containsKey("accountId")) { 9777 if (_json.containsKey("accountId")) {
9333 accountId = _json["accountId"]; 9778 accountId = _json["accountId"];
9334 } 9779 }
9335 if (_json.containsKey("eligibleForSearch")) { 9780 if (_json.containsKey("eligibleForSearch")) {
9336 eligibleForSearch = _json["eligibleForSearch"]; 9781 eligibleForSearch = _json["eligibleForSearch"];
(...skipping 18 matching lines...) Expand all
9355 } 9800 }
9356 if (_json.containsKey("type")) { 9801 if (_json.containsKey("type")) {
9357 type = _json["type"]; 9802 type = _json["type"];
9358 } 9803 }
9359 if (_json.containsKey("webPropertyId")) { 9804 if (_json.containsKey("webPropertyId")) {
9360 webPropertyId = _json["webPropertyId"]; 9805 webPropertyId = _json["webPropertyId"];
9361 } 9806 }
9362 } 9807 }
9363 9808
9364 core.Map<core.String, core.Object> toJson() { 9809 core.Map<core.String, core.Object> toJson() {
9365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9810 final core.Map<core.String, core.Object> _json =
9811 new core.Map<core.String, core.Object>();
9366 if (accountId != null) { 9812 if (accountId != null) {
9367 _json["accountId"] = accountId; 9813 _json["accountId"] = accountId;
9368 } 9814 }
9369 if (eligibleForSearch != null) { 9815 if (eligibleForSearch != null) {
9370 _json["eligibleForSearch"] = eligibleForSearch; 9816 _json["eligibleForSearch"] = eligibleForSearch;
9371 } 9817 }
9372 if (id != null) { 9818 if (id != null) {
9373 _json["id"] = id; 9819 _json["id"] = id;
9374 } 9820 }
9375 if (internalWebPropertyId != null) { 9821 if (internalWebPropertyId != null) {
(...skipping 15 matching lines...) Expand all
9391 _json["type"] = type; 9837 _json["type"] = type;
9392 } 9838 }
9393 if (webPropertyId != null) { 9839 if (webPropertyId != null) {
9394 _json["webPropertyId"] = webPropertyId; 9840 _json["webPropertyId"] = webPropertyId;
9395 } 9841 }
9396 return _json; 9842 return _json;
9397 } 9843 }
9398 } 9844 }
9399 9845
9400 class McfDataColumnHeaders { 9846 class McfDataColumnHeaders {
9401 /** Column Type. Either DIMENSION or METRIC. */ 9847 /// Column Type. Either DIMENSION or METRIC.
9402 core.String columnType; 9848 core.String columnType;
9403 /** 9849
9404 * Data type. Dimension and metric values data types such as INTEGER, DOUBLE, 9850 /// Data type. Dimension and metric values data types such as INTEGER,
9405 * CURRENCY, MCF_SEQUENCE etc. 9851 /// DOUBLE, CURRENCY, MCF_SEQUENCE etc.
9406 */
9407 core.String dataType; 9852 core.String dataType;
9408 /** Column name. */ 9853
9854 /// Column name.
9409 core.String name; 9855 core.String name;
9410 9856
9411 McfDataColumnHeaders(); 9857 McfDataColumnHeaders();
9412 9858
9413 McfDataColumnHeaders.fromJson(core.Map _json) { 9859 McfDataColumnHeaders.fromJson(core.Map _json) {
9414 if (_json.containsKey("columnType")) { 9860 if (_json.containsKey("columnType")) {
9415 columnType = _json["columnType"]; 9861 columnType = _json["columnType"];
9416 } 9862 }
9417 if (_json.containsKey("dataType")) { 9863 if (_json.containsKey("dataType")) {
9418 dataType = _json["dataType"]; 9864 dataType = _json["dataType"];
9419 } 9865 }
9420 if (_json.containsKey("name")) { 9866 if (_json.containsKey("name")) {
9421 name = _json["name"]; 9867 name = _json["name"];
9422 } 9868 }
9423 } 9869 }
9424 9870
9425 core.Map<core.String, core.Object> toJson() { 9871 core.Map<core.String, core.Object> toJson() {
9426 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9872 final core.Map<core.String, core.Object> _json =
9873 new core.Map<core.String, core.Object>();
9427 if (columnType != null) { 9874 if (columnType != null) {
9428 _json["columnType"] = columnType; 9875 _json["columnType"] = columnType;
9429 } 9876 }
9430 if (dataType != null) { 9877 if (dataType != null) {
9431 _json["dataType"] = dataType; 9878 _json["dataType"] = dataType;
9432 } 9879 }
9433 if (name != null) { 9880 if (name != null) {
9434 _json["name"] = name; 9881 _json["name"] = name;
9435 } 9882 }
9436 return _json; 9883 return _json;
9437 } 9884 }
9438 } 9885 }
9439 9886
9440 /** 9887 /// Information for the view (profile), for which the Analytics data was
9441 * Information for the view (profile), for which the Analytics data was 9888 /// requested.
9442 * requested.
9443 */
9444 class McfDataProfileInfo { 9889 class McfDataProfileInfo {
9445 /** Account ID to which this view (profile) belongs. */ 9890 /// Account ID to which this view (profile) belongs.
9446 core.String accountId; 9891 core.String accountId;
9447 /** Internal ID for the web property to which this view (profile) belongs. */ 9892
9893 /// Internal ID for the web property to which this view (profile) belongs.
9448 core.String internalWebPropertyId; 9894 core.String internalWebPropertyId;
9449 /** View (Profile) ID. */ 9895
9896 /// View (Profile) ID.
9450 core.String profileId; 9897 core.String profileId;
9451 /** View (Profile) name. */ 9898
9899 /// View (Profile) name.
9452 core.String profileName; 9900 core.String profileName;
9453 /** Table ID for view (profile). */ 9901
9902 /// Table ID for view (profile).
9454 core.String tableId; 9903 core.String tableId;
9455 /** Web Property ID to which this view (profile) belongs. */ 9904
9905 /// Web Property ID to which this view (profile) belongs.
9456 core.String webPropertyId; 9906 core.String webPropertyId;
9457 9907
9458 McfDataProfileInfo(); 9908 McfDataProfileInfo();
9459 9909
9460 McfDataProfileInfo.fromJson(core.Map _json) { 9910 McfDataProfileInfo.fromJson(core.Map _json) {
9461 if (_json.containsKey("accountId")) { 9911 if (_json.containsKey("accountId")) {
9462 accountId = _json["accountId"]; 9912 accountId = _json["accountId"];
9463 } 9913 }
9464 if (_json.containsKey("internalWebPropertyId")) { 9914 if (_json.containsKey("internalWebPropertyId")) {
9465 internalWebPropertyId = _json["internalWebPropertyId"]; 9915 internalWebPropertyId = _json["internalWebPropertyId"];
9466 } 9916 }
9467 if (_json.containsKey("profileId")) { 9917 if (_json.containsKey("profileId")) {
9468 profileId = _json["profileId"]; 9918 profileId = _json["profileId"];
9469 } 9919 }
9470 if (_json.containsKey("profileName")) { 9920 if (_json.containsKey("profileName")) {
9471 profileName = _json["profileName"]; 9921 profileName = _json["profileName"];
9472 } 9922 }
9473 if (_json.containsKey("tableId")) { 9923 if (_json.containsKey("tableId")) {
9474 tableId = _json["tableId"]; 9924 tableId = _json["tableId"];
9475 } 9925 }
9476 if (_json.containsKey("webPropertyId")) { 9926 if (_json.containsKey("webPropertyId")) {
9477 webPropertyId = _json["webPropertyId"]; 9927 webPropertyId = _json["webPropertyId"];
9478 } 9928 }
9479 } 9929 }
9480 9930
9481 core.Map<core.String, core.Object> toJson() { 9931 core.Map<core.String, core.Object> toJson() {
9482 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 9932 final core.Map<core.String, core.Object> _json =
9933 new core.Map<core.String, core.Object>();
9483 if (accountId != null) { 9934 if (accountId != null) {
9484 _json["accountId"] = accountId; 9935 _json["accountId"] = accountId;
9485 } 9936 }
9486 if (internalWebPropertyId != null) { 9937 if (internalWebPropertyId != null) {
9487 _json["internalWebPropertyId"] = internalWebPropertyId; 9938 _json["internalWebPropertyId"] = internalWebPropertyId;
9488 } 9939 }
9489 if (profileId != null) { 9940 if (profileId != null) {
9490 _json["profileId"] = profileId; 9941 _json["profileId"] = profileId;
9491 } 9942 }
9492 if (profileName != null) { 9943 if (profileName != null) {
9493 _json["profileName"] = profileName; 9944 _json["profileName"] = profileName;
9494 } 9945 }
9495 if (tableId != null) { 9946 if (tableId != null) {
9496 _json["tableId"] = tableId; 9947 _json["tableId"] = tableId;
9497 } 9948 }
9498 if (webPropertyId != null) { 9949 if (webPropertyId != null) {
9499 _json["webPropertyId"] = webPropertyId; 9950 _json["webPropertyId"] = webPropertyId;
9500 } 9951 }
9501 return _json; 9952 return _json;
9502 } 9953 }
9503 } 9954 }
9504 9955
9505 /** Analytics data request query parameters. */ 9956 /// Analytics data request query parameters.
9506 class McfDataQuery { 9957 class McfDataQuery {
9507 /** List of analytics dimensions. */ 9958 /// List of analytics dimensions.
9508 core.String dimensions; 9959 core.String dimensions;
9509 /** End date. */ 9960
9961 /// End date.
9510 core.String end_date; 9962 core.String end_date;
9511 /** Comma-separated list of dimension or metric filters. */ 9963
9964 /// Comma-separated list of dimension or metric filters.
9512 core.String filters; 9965 core.String filters;
9513 /** Unique table ID. */ 9966
9967 /// Unique table ID.
9514 core.String ids; 9968 core.String ids;
9515 /** Maximum results per page. */ 9969
9970 /// Maximum results per page.
9516 core.int max_results; 9971 core.int max_results;
9517 /** List of analytics metrics. */ 9972
9973 /// List of analytics metrics.
9518 core.List<core.String> metrics; 9974 core.List<core.String> metrics;
9519 /** Desired sampling level */ 9975
9976 /// Desired sampling level
9520 core.String samplingLevel; 9977 core.String samplingLevel;
9521 /** Analytics advanced segment. */ 9978
9979 /// Analytics advanced segment.
9522 core.String segment; 9980 core.String segment;
9523 /** List of dimensions or metrics based on which Analytics data is sorted. */ 9981
9982 /// List of dimensions or metrics based on which Analytics data is sorted.
9524 core.List<core.String> sort; 9983 core.List<core.String> sort;
9525 /** Start date. */ 9984
9985 /// Start date.
9526 core.String start_date; 9986 core.String start_date;
9527 /** Start index. */ 9987
9988 /// Start index.
9528 core.int start_index; 9989 core.int start_index;
9529 9990
9530 McfDataQuery(); 9991 McfDataQuery();
9531 9992
9532 McfDataQuery.fromJson(core.Map _json) { 9993 McfDataQuery.fromJson(core.Map _json) {
9533 if (_json.containsKey("dimensions")) { 9994 if (_json.containsKey("dimensions")) {
9534 dimensions = _json["dimensions"]; 9995 dimensions = _json["dimensions"];
9535 } 9996 }
9536 if (_json.containsKey("end-date")) { 9997 if (_json.containsKey("end-date")) {
9537 end_date = _json["end-date"]; 9998 end_date = _json["end-date"];
(...skipping 21 matching lines...) Expand all
9559 } 10020 }
9560 if (_json.containsKey("start-date")) { 10021 if (_json.containsKey("start-date")) {
9561 start_date = _json["start-date"]; 10022 start_date = _json["start-date"];
9562 } 10023 }
9563 if (_json.containsKey("start-index")) { 10024 if (_json.containsKey("start-index")) {
9564 start_index = _json["start-index"]; 10025 start_index = _json["start-index"];
9565 } 10026 }
9566 } 10027 }
9567 10028
9568 core.Map<core.String, core.Object> toJson() { 10029 core.Map<core.String, core.Object> toJson() {
9569 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10030 final core.Map<core.String, core.Object> _json =
10031 new core.Map<core.String, core.Object>();
9570 if (dimensions != null) { 10032 if (dimensions != null) {
9571 _json["dimensions"] = dimensions; 10033 _json["dimensions"] = dimensions;
9572 } 10034 }
9573 if (end_date != null) { 10035 if (end_date != null) {
9574 _json["end-date"] = end_date; 10036 _json["end-date"] = end_date;
9575 } 10037 }
9576 if (filters != null) { 10038 if (filters != null) {
9577 _json["filters"] = filters; 10039 _json["filters"] = filters;
9578 } 10040 }
9579 if (ids != null) { 10041 if (ids != null) {
(...skipping 18 matching lines...) Expand all
9598 _json["start-date"] = start_date; 10060 _json["start-date"] = start_date;
9599 } 10061 }
9600 if (start_index != null) { 10062 if (start_index != null) {
9601 _json["start-index"] = start_index; 10063 _json["start-index"] = start_index;
9602 } 10064 }
9603 return _json; 10065 return _json;
9604 } 10066 }
9605 } 10067 }
9606 10068
9607 class McfDataRowsConversionPathValue { 10069 class McfDataRowsConversionPathValue {
9608 /** 10070 /// Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc.
9609 * Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc.
9610 */
9611 core.String interactionType; 10071 core.String interactionType;
9612 /** 10072
9613 * Node value of an interaction on conversion path. Such as source, medium 10073 /// Node value of an interaction on conversion path. Such as source, medium
9614 * etc. 10074 /// etc.
9615 */
9616 core.String nodeValue; 10075 core.String nodeValue;
9617 10076
9618 McfDataRowsConversionPathValue(); 10077 McfDataRowsConversionPathValue();
9619 10078
9620 McfDataRowsConversionPathValue.fromJson(core.Map _json) { 10079 McfDataRowsConversionPathValue.fromJson(core.Map _json) {
9621 if (_json.containsKey("interactionType")) { 10080 if (_json.containsKey("interactionType")) {
9622 interactionType = _json["interactionType"]; 10081 interactionType = _json["interactionType"];
9623 } 10082 }
9624 if (_json.containsKey("nodeValue")) { 10083 if (_json.containsKey("nodeValue")) {
9625 nodeValue = _json["nodeValue"]; 10084 nodeValue = _json["nodeValue"];
9626 } 10085 }
9627 } 10086 }
9628 10087
9629 core.Map<core.String, core.Object> toJson() { 10088 core.Map<core.String, core.Object> toJson() {
9630 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10089 final core.Map<core.String, core.Object> _json =
10090 new core.Map<core.String, core.Object>();
9631 if (interactionType != null) { 10091 if (interactionType != null) {
9632 _json["interactionType"] = interactionType; 10092 _json["interactionType"] = interactionType;
9633 } 10093 }
9634 if (nodeValue != null) { 10094 if (nodeValue != null) {
9635 _json["nodeValue"] = nodeValue; 10095 _json["nodeValue"] = nodeValue;
9636 } 10096 }
9637 return _json; 10097 return _json;
9638 } 10098 }
9639 } 10099 }
9640 10100
9641 /** 10101 /// A union object representing a dimension or metric value. Only one of
9642 * A union object representing a dimension or metric value. Only one of 10102 /// "primitiveValue" or "conversionPathValue" attribute will be populated.
9643 * "primitiveValue" or "conversionPathValue" attribute will be populated.
9644 */
9645 class McfDataRows { 10103 class McfDataRows {
9646 /** 10104 /// A conversion path dimension value, containing a list of interactions with
9647 * A conversion path dimension value, containing a list of interactions with 10105 /// their attributes.
9648 * their attributes.
9649 */
9650 core.List<McfDataRowsConversionPathValue> conversionPathValue; 10106 core.List<McfDataRowsConversionPathValue> conversionPathValue;
9651 /** A primitive dimension value. A primitive metric value. */ 10107
10108 /// A primitive dimension value. A primitive metric value.
9652 core.String primitiveValue; 10109 core.String primitiveValue;
9653 10110
9654 McfDataRows(); 10111 McfDataRows();
9655 10112
9656 McfDataRows.fromJson(core.Map _json) { 10113 McfDataRows.fromJson(core.Map _json) {
9657 if (_json.containsKey("conversionPathValue")) { 10114 if (_json.containsKey("conversionPathValue")) {
9658 conversionPathValue = _json["conversionPathValue"].map((value) => new McfD ataRowsConversionPathValue.fromJson(value)).toList(); 10115 conversionPathValue = _json["conversionPathValue"]
10116 .map((value) => new McfDataRowsConversionPathValue.fromJson(value))
10117 .toList();
9659 } 10118 }
9660 if (_json.containsKey("primitiveValue")) { 10119 if (_json.containsKey("primitiveValue")) {
9661 primitiveValue = _json["primitiveValue"]; 10120 primitiveValue = _json["primitiveValue"];
9662 } 10121 }
9663 } 10122 }
9664 10123
9665 core.Map<core.String, core.Object> toJson() { 10124 core.Map<core.String, core.Object> toJson() {
9666 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10125 final core.Map<core.String, core.Object> _json =
10126 new core.Map<core.String, core.Object>();
9667 if (conversionPathValue != null) { 10127 if (conversionPathValue != null) {
9668 _json["conversionPathValue"] = conversionPathValue.map((value) => (value). toJson()).toList(); 10128 _json["conversionPathValue"] =
10129 conversionPathValue.map((value) => (value).toJson()).toList();
9669 } 10130 }
9670 if (primitiveValue != null) { 10131 if (primitiveValue != null) {
9671 _json["primitiveValue"] = primitiveValue; 10132 _json["primitiveValue"] = primitiveValue;
9672 } 10133 }
9673 return _json; 10134 return _json;
9674 } 10135 }
9675 } 10136 }
9676 10137
9677 /** Multi-Channel Funnels data for a given view (profile). */ 10138 /// Multi-Channel Funnels data for a given view (profile).
9678 class McfData { 10139 class McfData {
9679 /** 10140 /// Column headers that list dimension names followed by the metric names.
9680 * Column headers that list dimension names followed by the metric names. The 10141 /// The order of dimensions and metrics is same as specified in the request.
9681 * order of dimensions and metrics is same as specified in the request.
9682 */
9683 core.List<McfDataColumnHeaders> columnHeaders; 10142 core.List<McfDataColumnHeaders> columnHeaders;
9684 /** Determines if the Analytics data contains sampled data. */ 10143
10144 /// Determines if the Analytics data contains sampled data.
9685 core.bool containsSampledData; 10145 core.bool containsSampledData;
9686 /** Unique ID for this data response. */ 10146
10147 /// Unique ID for this data response.
9687 core.String id; 10148 core.String id;
9688 /** 10149
9689 * The maximum number of rows the response can contain, regardless of the 10150 /// The maximum number of rows the response can contain, regardless of the
9690 * actual number of rows returned. Its value ranges from 1 to 10,000 with a 10151 /// actual number of rows returned. Its value ranges from 1 to 10,000 with a
9691 * value of 1000 by default, or otherwise specified by the max-results query 10152 /// value of 1000 by default, or otherwise specified by the max-results query
9692 * parameter. 10153 /// parameter.
9693 */
9694 core.int itemsPerPage; 10154 core.int itemsPerPage;
9695 /** Resource type. */ 10155
10156 /// Resource type.
9696 core.String kind; 10157 core.String kind;
9697 /** Link to next page for this Analytics data query. */ 10158
10159 /// Link to next page for this Analytics data query.
9698 core.String nextLink; 10160 core.String nextLink;
9699 /** Link to previous page for this Analytics data query. */ 10161
10162 /// Link to previous page for this Analytics data query.
9700 core.String previousLink; 10163 core.String previousLink;
9701 /** 10164
9702 * Information for the view (profile), for which the Analytics data was 10165 /// Information for the view (profile), for which the Analytics data was
9703 * requested. 10166 /// requested.
9704 */
9705 McfDataProfileInfo profileInfo; 10167 McfDataProfileInfo profileInfo;
9706 /** Analytics data request query parameters. */ 10168
10169 /// Analytics data request query parameters.
9707 McfDataQuery query; 10170 McfDataQuery query;
9708 /** 10171
9709 * Analytics data rows, where each row contains a list of dimension values 10172 /// Analytics data rows, where each row contains a list of dimension values
9710 * followed by the metric values. The order of dimensions and metrics is same 10173 /// followed by the metric values. The order of dimensions and metrics is
9711 * as specified in the request. 10174 /// same as specified in the request.
9712 */
9713 core.List<core.List<McfDataRows>> rows; 10175 core.List<core.List<McfDataRows>> rows;
9714 /** The number of samples used to calculate the result. */ 10176
10177 /// The number of samples used to calculate the result.
9715 core.String sampleSize; 10178 core.String sampleSize;
9716 /** Total size of the sample space from which the samples were selected. */ 10179
10180 /// Total size of the sample space from which the samples were selected.
9717 core.String sampleSpace; 10181 core.String sampleSpace;
9718 /** Link to this page. */ 10182
10183 /// Link to this page.
9719 core.String selfLink; 10184 core.String selfLink;
9720 /** 10185
9721 * The total number of rows for the query, regardless of the number of rows in 10186 /// The total number of rows for the query, regardless of the number of rows
9722 * the response. 10187 /// in the response.
9723 */
9724 core.int totalResults; 10188 core.int totalResults;
9725 /** 10189
9726 * Total values for the requested metrics over all the results, not just the 10190 /// Total values for the requested metrics over all the results, not just the
9727 * results returned in this response. The order of the metric totals is same 10191 /// results returned in this response. The order of the metric totals is same
9728 * as the metric order specified in the request. 10192 /// as the metric order specified in the request.
9729 */
9730 core.Map<core.String, core.String> totalsForAllResults; 10193 core.Map<core.String, core.String> totalsForAllResults;
9731 10194
9732 McfData(); 10195 McfData();
9733 10196
9734 McfData.fromJson(core.Map _json) { 10197 McfData.fromJson(core.Map _json) {
9735 if (_json.containsKey("columnHeaders")) { 10198 if (_json.containsKey("columnHeaders")) {
9736 columnHeaders = _json["columnHeaders"].map((value) => new McfDataColumnHea ders.fromJson(value)).toList(); 10199 columnHeaders = _json["columnHeaders"]
10200 .map((value) => new McfDataColumnHeaders.fromJson(value))
10201 .toList();
9737 } 10202 }
9738 if (_json.containsKey("containsSampledData")) { 10203 if (_json.containsKey("containsSampledData")) {
9739 containsSampledData = _json["containsSampledData"]; 10204 containsSampledData = _json["containsSampledData"];
9740 } 10205 }
9741 if (_json.containsKey("id")) { 10206 if (_json.containsKey("id")) {
9742 id = _json["id"]; 10207 id = _json["id"];
9743 } 10208 }
9744 if (_json.containsKey("itemsPerPage")) { 10209 if (_json.containsKey("itemsPerPage")) {
9745 itemsPerPage = _json["itemsPerPage"]; 10210 itemsPerPage = _json["itemsPerPage"];
9746 } 10211 }
9747 if (_json.containsKey("kind")) { 10212 if (_json.containsKey("kind")) {
9748 kind = _json["kind"]; 10213 kind = _json["kind"];
9749 } 10214 }
9750 if (_json.containsKey("nextLink")) { 10215 if (_json.containsKey("nextLink")) {
9751 nextLink = _json["nextLink"]; 10216 nextLink = _json["nextLink"];
9752 } 10217 }
9753 if (_json.containsKey("previousLink")) { 10218 if (_json.containsKey("previousLink")) {
9754 previousLink = _json["previousLink"]; 10219 previousLink = _json["previousLink"];
9755 } 10220 }
9756 if (_json.containsKey("profileInfo")) { 10221 if (_json.containsKey("profileInfo")) {
9757 profileInfo = new McfDataProfileInfo.fromJson(_json["profileInfo"]); 10222 profileInfo = new McfDataProfileInfo.fromJson(_json["profileInfo"]);
9758 } 10223 }
9759 if (_json.containsKey("query")) { 10224 if (_json.containsKey("query")) {
9760 query = new McfDataQuery.fromJson(_json["query"]); 10225 query = new McfDataQuery.fromJson(_json["query"]);
9761 } 10226 }
9762 if (_json.containsKey("rows")) { 10227 if (_json.containsKey("rows")) {
9763 rows = _json["rows"].map((value) => value.map((value) => new McfDataRows.f romJson(value)).toList()).toList(); 10228 rows = _json["rows"]
10229 .map((value) =>
10230 value.map((value) => new McfDataRows.fromJson(value)).toList())
10231 .toList();
9764 } 10232 }
9765 if (_json.containsKey("sampleSize")) { 10233 if (_json.containsKey("sampleSize")) {
9766 sampleSize = _json["sampleSize"]; 10234 sampleSize = _json["sampleSize"];
9767 } 10235 }
9768 if (_json.containsKey("sampleSpace")) { 10236 if (_json.containsKey("sampleSpace")) {
9769 sampleSpace = _json["sampleSpace"]; 10237 sampleSpace = _json["sampleSpace"];
9770 } 10238 }
9771 if (_json.containsKey("selfLink")) { 10239 if (_json.containsKey("selfLink")) {
9772 selfLink = _json["selfLink"]; 10240 selfLink = _json["selfLink"];
9773 } 10241 }
9774 if (_json.containsKey("totalResults")) { 10242 if (_json.containsKey("totalResults")) {
9775 totalResults = _json["totalResults"]; 10243 totalResults = _json["totalResults"];
9776 } 10244 }
9777 if (_json.containsKey("totalsForAllResults")) { 10245 if (_json.containsKey("totalsForAllResults")) {
9778 totalsForAllResults = _json["totalsForAllResults"]; 10246 totalsForAllResults = _json["totalsForAllResults"];
9779 } 10247 }
9780 } 10248 }
9781 10249
9782 core.Map<core.String, core.Object> toJson() { 10250 core.Map<core.String, core.Object> toJson() {
9783 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10251 final core.Map<core.String, core.Object> _json =
10252 new core.Map<core.String, core.Object>();
9784 if (columnHeaders != null) { 10253 if (columnHeaders != null) {
9785 _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).to List(); 10254 _json["columnHeaders"] =
10255 columnHeaders.map((value) => (value).toJson()).toList();
9786 } 10256 }
9787 if (containsSampledData != null) { 10257 if (containsSampledData != null) {
9788 _json["containsSampledData"] = containsSampledData; 10258 _json["containsSampledData"] = containsSampledData;
9789 } 10259 }
9790 if (id != null) { 10260 if (id != null) {
9791 _json["id"] = id; 10261 _json["id"] = id;
9792 } 10262 }
9793 if (itemsPerPage != null) { 10263 if (itemsPerPage != null) {
9794 _json["itemsPerPage"] = itemsPerPage; 10264 _json["itemsPerPage"] = itemsPerPage;
9795 } 10265 }
9796 if (kind != null) { 10266 if (kind != null) {
9797 _json["kind"] = kind; 10267 _json["kind"] = kind;
9798 } 10268 }
9799 if (nextLink != null) { 10269 if (nextLink != null) {
9800 _json["nextLink"] = nextLink; 10270 _json["nextLink"] = nextLink;
9801 } 10271 }
9802 if (previousLink != null) { 10272 if (previousLink != null) {
9803 _json["previousLink"] = previousLink; 10273 _json["previousLink"] = previousLink;
9804 } 10274 }
9805 if (profileInfo != null) { 10275 if (profileInfo != null) {
9806 _json["profileInfo"] = (profileInfo).toJson(); 10276 _json["profileInfo"] = (profileInfo).toJson();
9807 } 10277 }
9808 if (query != null) { 10278 if (query != null) {
9809 _json["query"] = (query).toJson(); 10279 _json["query"] = (query).toJson();
9810 } 10280 }
9811 if (rows != null) { 10281 if (rows != null) {
9812 _json["rows"] = rows.map((value) => value.map((value) => (value).toJson()) .toList()).toList(); 10282 _json["rows"] = rows
10283 .map((value) => value.map((value) => (value).toJson()).toList())
10284 .toList();
9813 } 10285 }
9814 if (sampleSize != null) { 10286 if (sampleSize != null) {
9815 _json["sampleSize"] = sampleSize; 10287 _json["sampleSize"] = sampleSize;
9816 } 10288 }
9817 if (sampleSpace != null) { 10289 if (sampleSpace != null) {
9818 _json["sampleSpace"] = sampleSpace; 10290 _json["sampleSpace"] = sampleSpace;
9819 } 10291 }
9820 if (selfLink != null) { 10292 if (selfLink != null) {
9821 _json["selfLink"] = selfLink; 10293 _json["selfLink"] = selfLink;
9822 } 10294 }
9823 if (totalResults != null) { 10295 if (totalResults != null) {
9824 _json["totalResults"] = totalResults; 10296 _json["totalResults"] = totalResults;
9825 } 10297 }
9826 if (totalsForAllResults != null) { 10298 if (totalsForAllResults != null) {
9827 _json["totalsForAllResults"] = totalsForAllResults; 10299 _json["totalsForAllResults"] = totalsForAllResults;
9828 } 10300 }
9829 return _json; 10301 return _json;
9830 } 10302 }
9831 } 10303 }
9832 10304
9833 /** 10305 /// Child link for this view (profile). Points to the list of goals for this
9834 * Child link for this view (profile). Points to the list of goals for this view 10306 /// view (profile).
9835 * (profile).
9836 */
9837 class ProfileChildLink { 10307 class ProfileChildLink {
9838 /** Link to the list of goals for this view (profile). */ 10308 /// Link to the list of goals for this view (profile).
9839 core.String href; 10309 core.String href;
9840 /** Value is "analytics#goals". */ 10310
10311 /// Value is "analytics#goals".
9841 core.String type; 10312 core.String type;
9842 10313
9843 ProfileChildLink(); 10314 ProfileChildLink();
9844 10315
9845 ProfileChildLink.fromJson(core.Map _json) { 10316 ProfileChildLink.fromJson(core.Map _json) {
9846 if (_json.containsKey("href")) { 10317 if (_json.containsKey("href")) {
9847 href = _json["href"]; 10318 href = _json["href"];
9848 } 10319 }
9849 if (_json.containsKey("type")) { 10320 if (_json.containsKey("type")) {
9850 type = _json["type"]; 10321 type = _json["type"];
9851 } 10322 }
9852 } 10323 }
9853 10324
9854 core.Map<core.String, core.Object> toJson() { 10325 core.Map<core.String, core.Object> toJson() {
9855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10326 final core.Map<core.String, core.Object> _json =
10327 new core.Map<core.String, core.Object>();
9856 if (href != null) { 10328 if (href != null) {
9857 _json["href"] = href; 10329 _json["href"] = href;
9858 } 10330 }
9859 if (type != null) { 10331 if (type != null) {
9860 _json["type"] = type; 10332 _json["type"] = type;
9861 } 10333 }
9862 return _json; 10334 return _json;
9863 } 10335 }
9864 } 10336 }
9865 10337
9866 /** 10338 /// Parent link for this view (profile). Points to the web property to which
9867 * Parent link for this view (profile). Points to the web property to which this 10339 /// this view (profile) belongs.
9868 * view (profile) belongs.
9869 */
9870 class ProfileParentLink { 10340 class ProfileParentLink {
9871 /** Link to the web property to which this view (profile) belongs. */ 10341 /// Link to the web property to which this view (profile) belongs.
9872 core.String href; 10342 core.String href;
9873 /** Value is "analytics#webproperty". */ 10343
10344 /// Value is "analytics#webproperty".
9874 core.String type; 10345 core.String type;
9875 10346
9876 ProfileParentLink(); 10347 ProfileParentLink();
9877 10348
9878 ProfileParentLink.fromJson(core.Map _json) { 10349 ProfileParentLink.fromJson(core.Map _json) {
9879 if (_json.containsKey("href")) { 10350 if (_json.containsKey("href")) {
9880 href = _json["href"]; 10351 href = _json["href"];
9881 } 10352 }
9882 if (_json.containsKey("type")) { 10353 if (_json.containsKey("type")) {
9883 type = _json["type"]; 10354 type = _json["type"];
9884 } 10355 }
9885 } 10356 }
9886 10357
9887 core.Map<core.String, core.Object> toJson() { 10358 core.Map<core.String, core.Object> toJson() {
9888 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10359 final core.Map<core.String, core.Object> _json =
10360 new core.Map<core.String, core.Object>();
9889 if (href != null) { 10361 if (href != null) {
9890 _json["href"] = href; 10362 _json["href"] = href;
9891 } 10363 }
9892 if (type != null) { 10364 if (type != null) {
9893 _json["type"] = type; 10365 _json["type"] = type;
9894 } 10366 }
9895 return _json; 10367 return _json;
9896 } 10368 }
9897 } 10369 }
9898 10370
9899 /** Permissions the user has for this view (profile). */ 10371 /// Permissions the user has for this view (profile).
9900 class ProfilePermissions { 10372 class ProfilePermissions {
9901 /** 10373 /// All the permissions that the user has for this view (profile). These
9902 * All the permissions that the user has for this view (profile). These 10374 /// include any implied permissions (e.g., EDIT implies VIEW) or inherited
9903 * include any implied permissions (e.g., EDIT implies VIEW) or inherited 10375 /// permissions from the parent web property.
9904 * permissions from the parent web property.
9905 */
9906 core.List<core.String> effective; 10376 core.List<core.String> effective;
9907 10377
9908 ProfilePermissions(); 10378 ProfilePermissions();
9909 10379
9910 ProfilePermissions.fromJson(core.Map _json) { 10380 ProfilePermissions.fromJson(core.Map _json) {
9911 if (_json.containsKey("effective")) { 10381 if (_json.containsKey("effective")) {
9912 effective = _json["effective"]; 10382 effective = _json["effective"];
9913 } 10383 }
9914 } 10384 }
9915 10385
9916 core.Map<core.String, core.Object> toJson() { 10386 core.Map<core.String, core.Object> toJson() {
9917 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10387 final core.Map<core.String, core.Object> _json =
10388 new core.Map<core.String, core.Object>();
9918 if (effective != null) { 10389 if (effective != null) {
9919 _json["effective"] = effective; 10390 _json["effective"] = effective;
9920 } 10391 }
9921 return _json; 10392 return _json;
9922 } 10393 }
9923 } 10394 }
9924 10395
9925 /** JSON template for an Analytics view (profile). */ 10396 /// JSON template for an Analytics view (profile).
9926 class Profile { 10397 class Profile {
9927 /** Account ID to which this view (profile) belongs. */ 10398 /// Account ID to which this view (profile) belongs.
9928 core.String accountId; 10399 core.String accountId;
9929 /** Indicates whether bot filtering is enabled for this view (profile). */ 10400
10401 /// Indicates whether bot filtering is enabled for this view (profile).
9930 core.bool botFilteringEnabled; 10402 core.bool botFilteringEnabled;
9931 /** 10403
9932 * Child link for this view (profile). Points to the list of goals for this 10404 /// Child link for this view (profile). Points to the list of goals for this
9933 * view (profile). 10405 /// view (profile).
9934 */
9935 ProfileChildLink childLink; 10406 ProfileChildLink childLink;
9936 /** Time this view (profile) was created. */ 10407
10408 /// Time this view (profile) was created.
9937 core.DateTime created; 10409 core.DateTime created;
9938 /** 10410
9939 * The currency type associated with this view (profile), defaults to USD. The 10411 /// The currency type associated with this view (profile), defaults to USD.
9940 * supported values are: 10412 /// The supported values are:
9941 * USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, 10413 /// USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY,
9942 * HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, 10414 /// TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF,
9943 * ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, 10415 /// BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN,
9944 * SAR, SGD, VEF, LVL 10416 /// PKR, RON, RSD, SAR, SGD, VEF, LVL
9945 */
9946 core.String currency; 10417 core.String currency;
9947 /** Default page for this view (profile). */ 10418
10419 /// Default page for this view (profile).
9948 core.String defaultPage; 10420 core.String defaultPage;
9949 /** 10421
9950 * Indicates whether ecommerce tracking is enabled for this view (profile). 10422 /// Indicates whether ecommerce tracking is enabled for this view (profile).
9951 */
9952 core.bool eCommerceTracking; 10423 core.bool eCommerceTracking;
9953 /** 10424
9954 * Indicates whether enhanced ecommerce tracking is enabled for this view 10425 /// Indicates whether enhanced ecommerce tracking is enabled for this view
9955 * (profile). This property can only be enabled if ecommerce tracking is 10426 /// (profile). This property can only be enabled if ecommerce tracking is
9956 * enabled. 10427 /// enabled.
9957 */
9958 core.bool enhancedECommerceTracking; 10428 core.bool enhancedECommerceTracking;
9959 /** The query parameters that are excluded from this view (profile). */ 10429
10430 /// The query parameters that are excluded from this view (profile).
9960 core.String excludeQueryParameters; 10431 core.String excludeQueryParameters;
9961 /** View (Profile) ID. */ 10432
10433 /// View (Profile) ID.
9962 core.String id; 10434 core.String id;
9963 /** Internal ID for the web property to which this view (profile) belongs. */ 10435
10436 /// Internal ID for the web property to which this view (profile) belongs.
9964 core.String internalWebPropertyId; 10437 core.String internalWebPropertyId;
9965 /** Resource type for Analytics view (profile). */ 10438
10439 /// Resource type for Analytics view (profile).
9966 core.String kind; 10440 core.String kind;
9967 /** Name of this view (profile). */ 10441
10442 /// Name of this view (profile).
9968 core.String name; 10443 core.String name;
9969 /** 10444
9970 * Parent link for this view (profile). Points to the web property to which 10445 /// Parent link for this view (profile). Points to the web property to which
9971 * this view (profile) belongs. 10446 /// this view (profile) belongs.
9972 */
9973 ProfileParentLink parentLink; 10447 ProfileParentLink parentLink;
9974 /** Permissions the user has for this view (profile). */ 10448
10449 /// Permissions the user has for this view (profile).
9975 ProfilePermissions permissions; 10450 ProfilePermissions permissions;
9976 /** Link for this view (profile). */ 10451
10452 /// Link for this view (profile).
9977 core.String selfLink; 10453 core.String selfLink;
9978 /** Site search category parameters for this view (profile). */ 10454
10455 /// Site search category parameters for this view (profile).
9979 core.String siteSearchCategoryParameters; 10456 core.String siteSearchCategoryParameters;
9980 /** The site search query parameters for this view (profile). */ 10457
10458 /// The site search query parameters for this view (profile).
9981 core.String siteSearchQueryParameters; 10459 core.String siteSearchQueryParameters;
9982 /** Indicates whether this view (profile) is starred or not. */ 10460
10461 /// Indicates whether this view (profile) is starred or not.
9983 core.bool starred; 10462 core.bool starred;
9984 /** 10463
9985 * Whether or not Analytics will strip search category parameters from the 10464 /// Whether or not Analytics will strip search category parameters from the
9986 * URLs in your reports. 10465 /// URLs in your reports.
9987 */
9988 core.bool stripSiteSearchCategoryParameters; 10466 core.bool stripSiteSearchCategoryParameters;
9989 /** 10467
9990 * Whether or not Analytics will strip search query parameters from the URLs 10468 /// Whether or not Analytics will strip search query parameters from the URLs
9991 * in your reports. 10469 /// in your reports.
9992 */
9993 core.bool stripSiteSearchQueryParameters; 10470 core.bool stripSiteSearchQueryParameters;
9994 /** 10471
9995 * Time zone for which this view (profile) has been configured. Time zones are 10472 /// Time zone for which this view (profile) has been configured. Time zones
9996 * identified by strings from the TZ database. 10473 /// are identified by strings from the TZ database.
9997 */
9998 core.String timezone; 10474 core.String timezone;
9999 /** View (Profile) type. Supported types: WEB or APP. */ 10475
10476 /// View (Profile) type. Supported types: WEB or APP.
10000 core.String type; 10477 core.String type;
10001 /** Time this view (profile) was last modified. */ 10478
10479 /// Time this view (profile) was last modified.
10002 core.DateTime updated; 10480 core.DateTime updated;
10003 /** 10481
10004 * Web property ID of the form UA-XXXXX-YY to which this view (profile) 10482 /// Web property ID of the form UA-XXXXX-YY to which this view (profile)
10005 * belongs. 10483 /// belongs.
10006 */
10007 core.String webPropertyId; 10484 core.String webPropertyId;
10008 /** Website URL for this view (profile). */ 10485
10486 /// Website URL for this view (profile).
10009 core.String websiteUrl; 10487 core.String websiteUrl;
10010 10488
10011 Profile(); 10489 Profile();
10012 10490
10013 Profile.fromJson(core.Map _json) { 10491 Profile.fromJson(core.Map _json) {
10014 if (_json.containsKey("accountId")) { 10492 if (_json.containsKey("accountId")) {
10015 accountId = _json["accountId"]; 10493 accountId = _json["accountId"];
10016 } 10494 }
10017 if (_json.containsKey("botFilteringEnabled")) { 10495 if (_json.containsKey("botFilteringEnabled")) {
10018 botFilteringEnabled = _json["botFilteringEnabled"]; 10496 botFilteringEnabled = _json["botFilteringEnabled"];
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
10062 if (_json.containsKey("siteSearchCategoryParameters")) { 10540 if (_json.containsKey("siteSearchCategoryParameters")) {
10063 siteSearchCategoryParameters = _json["siteSearchCategoryParameters"]; 10541 siteSearchCategoryParameters = _json["siteSearchCategoryParameters"];
10064 } 10542 }
10065 if (_json.containsKey("siteSearchQueryParameters")) { 10543 if (_json.containsKey("siteSearchQueryParameters")) {
10066 siteSearchQueryParameters = _json["siteSearchQueryParameters"]; 10544 siteSearchQueryParameters = _json["siteSearchQueryParameters"];
10067 } 10545 }
10068 if (_json.containsKey("starred")) { 10546 if (_json.containsKey("starred")) {
10069 starred = _json["starred"]; 10547 starred = _json["starred"];
10070 } 10548 }
10071 if (_json.containsKey("stripSiteSearchCategoryParameters")) { 10549 if (_json.containsKey("stripSiteSearchCategoryParameters")) {
10072 stripSiteSearchCategoryParameters = _json["stripSiteSearchCategoryParamete rs"]; 10550 stripSiteSearchCategoryParameters =
10551 _json["stripSiteSearchCategoryParameters"];
10073 } 10552 }
10074 if (_json.containsKey("stripSiteSearchQueryParameters")) { 10553 if (_json.containsKey("stripSiteSearchQueryParameters")) {
10075 stripSiteSearchQueryParameters = _json["stripSiteSearchQueryParameters"]; 10554 stripSiteSearchQueryParameters = _json["stripSiteSearchQueryParameters"];
10076 } 10555 }
10077 if (_json.containsKey("timezone")) { 10556 if (_json.containsKey("timezone")) {
10078 timezone = _json["timezone"]; 10557 timezone = _json["timezone"];
10079 } 10558 }
10080 if (_json.containsKey("type")) { 10559 if (_json.containsKey("type")) {
10081 type = _json["type"]; 10560 type = _json["type"];
10082 } 10561 }
10083 if (_json.containsKey("updated")) { 10562 if (_json.containsKey("updated")) {
10084 updated = core.DateTime.parse(_json["updated"]); 10563 updated = core.DateTime.parse(_json["updated"]);
10085 } 10564 }
10086 if (_json.containsKey("webPropertyId")) { 10565 if (_json.containsKey("webPropertyId")) {
10087 webPropertyId = _json["webPropertyId"]; 10566 webPropertyId = _json["webPropertyId"];
10088 } 10567 }
10089 if (_json.containsKey("websiteUrl")) { 10568 if (_json.containsKey("websiteUrl")) {
10090 websiteUrl = _json["websiteUrl"]; 10569 websiteUrl = _json["websiteUrl"];
10091 } 10570 }
10092 } 10571 }
10093 10572
10094 core.Map<core.String, core.Object> toJson() { 10573 core.Map<core.String, core.Object> toJson() {
10095 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10574 final core.Map<core.String, core.Object> _json =
10575 new core.Map<core.String, core.Object>();
10096 if (accountId != null) { 10576 if (accountId != null) {
10097 _json["accountId"] = accountId; 10577 _json["accountId"] = accountId;
10098 } 10578 }
10099 if (botFilteringEnabled != null) { 10579 if (botFilteringEnabled != null) {
10100 _json["botFilteringEnabled"] = botFilteringEnabled; 10580 _json["botFilteringEnabled"] = botFilteringEnabled;
10101 } 10581 }
10102 if (childLink != null) { 10582 if (childLink != null) {
10103 _json["childLink"] = (childLink).toJson(); 10583 _json["childLink"] = (childLink).toJson();
10104 } 10584 }
10105 if (created != null) { 10585 if (created != null) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
10144 if (siteSearchCategoryParameters != null) { 10624 if (siteSearchCategoryParameters != null) {
10145 _json["siteSearchCategoryParameters"] = siteSearchCategoryParameters; 10625 _json["siteSearchCategoryParameters"] = siteSearchCategoryParameters;
10146 } 10626 }
10147 if (siteSearchQueryParameters != null) { 10627 if (siteSearchQueryParameters != null) {
10148 _json["siteSearchQueryParameters"] = siteSearchQueryParameters; 10628 _json["siteSearchQueryParameters"] = siteSearchQueryParameters;
10149 } 10629 }
10150 if (starred != null) { 10630 if (starred != null) {
10151 _json["starred"] = starred; 10631 _json["starred"] = starred;
10152 } 10632 }
10153 if (stripSiteSearchCategoryParameters != null) { 10633 if (stripSiteSearchCategoryParameters != null) {
10154 _json["stripSiteSearchCategoryParameters"] = stripSiteSearchCategoryParame ters; 10634 _json["stripSiteSearchCategoryParameters"] =
10635 stripSiteSearchCategoryParameters;
10155 } 10636 }
10156 if (stripSiteSearchQueryParameters != null) { 10637 if (stripSiteSearchQueryParameters != null) {
10157 _json["stripSiteSearchQueryParameters"] = stripSiteSearchQueryParameters; 10638 _json["stripSiteSearchQueryParameters"] = stripSiteSearchQueryParameters;
10158 } 10639 }
10159 if (timezone != null) { 10640 if (timezone != null) {
10160 _json["timezone"] = timezone; 10641 _json["timezone"] = timezone;
10161 } 10642 }
10162 if (type != null) { 10643 if (type != null) {
10163 _json["type"] = type; 10644 _json["type"] = type;
10164 } 10645 }
10165 if (updated != null) { 10646 if (updated != null) {
10166 _json["updated"] = (updated).toIso8601String(); 10647 _json["updated"] = (updated).toIso8601String();
10167 } 10648 }
10168 if (webPropertyId != null) { 10649 if (webPropertyId != null) {
10169 _json["webPropertyId"] = webPropertyId; 10650 _json["webPropertyId"] = webPropertyId;
10170 } 10651 }
10171 if (websiteUrl != null) { 10652 if (websiteUrl != null) {
10172 _json["websiteUrl"] = websiteUrl; 10653 _json["websiteUrl"] = websiteUrl;
10173 } 10654 }
10174 return _json; 10655 return _json;
10175 } 10656 }
10176 } 10657 }
10177 10658
10178 /** JSON template for an Analytics profile filter link. */ 10659 /// JSON template for an Analytics profile filter link.
10179 class ProfileFilterLink { 10660 class ProfileFilterLink {
10180 /** Filter for this link. */ 10661 /// Filter for this link.
10181 FilterRef filterRef; 10662 FilterRef filterRef;
10182 /** Profile filter link ID. */ 10663
10664 /// Profile filter link ID.
10183 core.String id; 10665 core.String id;
10184 /** Resource type for Analytics filter. */ 10666
10667 /// Resource type for Analytics filter.
10185 core.String kind; 10668 core.String kind;
10186 /** View (Profile) for this link. */ 10669
10670 /// View (Profile) for this link.
10187 ProfileRef profileRef; 10671 ProfileRef profileRef;
10188 /** 10672
10189 * The rank of this profile filter link relative to the other filters linked 10673 /// The rank of this profile filter link relative to the other filters linked
10190 * to the same profile. 10674 /// to the same profile.
10191 * For readonly (i.e., list and get) operations, the rank always starts at 1. 10675 /// For readonly (i.e., list and get) operations, the rank always starts at
10192 * For write (i.e., create, update, or delete) operations, you may specify a 10676 /// 1.
10193 * value between 0 and 255 inclusively, [0, 255]. In order to insert a link at 10677 /// For write (i.e., create, update, or delete) operations, you may specify a
10194 * the end of the list, either don't specify a rank or set a rank to a number 10678 /// value between 0 and 255 inclusively, [0, 255]. In order to insert a link
10195 * greater than the largest rank in the list. In order to insert a link to the 10679 /// at the end of the list, either don't specify a rank or set a rank to a
10196 * beginning of the list specify a rank that is less than or equal to 1. The 10680 /// number greater than the largest rank in the list. In order to insert a
10197 * new link will move all existing filters with the same or lower rank down 10681 /// link to the beginning of the list specify a rank that is less than or
10198 * the list. After the link is inserted/updated/deleted all profile filter 10682 /// equal to 1. The new link will move all existing filters with the same or
10199 * links will be renumbered starting at 1. 10683 /// lower rank down the list. After the link is inserted/updated/deleted all
10200 */ 10684 /// profile filter links will be renumbered starting at 1.
10201 core.int rank; 10685 core.int rank;
10202 /** Link for this profile filter link. */ 10686
10687 /// Link for this profile filter link.
10203 core.String selfLink; 10688 core.String selfLink;
10204 10689
10205 ProfileFilterLink(); 10690 ProfileFilterLink();
10206 10691
10207 ProfileFilterLink.fromJson(core.Map _json) { 10692 ProfileFilterLink.fromJson(core.Map _json) {
10208 if (_json.containsKey("filterRef")) { 10693 if (_json.containsKey("filterRef")) {
10209 filterRef = new FilterRef.fromJson(_json["filterRef"]); 10694 filterRef = new FilterRef.fromJson(_json["filterRef"]);
10210 } 10695 }
10211 if (_json.containsKey("id")) { 10696 if (_json.containsKey("id")) {
10212 id = _json["id"]; 10697 id = _json["id"];
10213 } 10698 }
10214 if (_json.containsKey("kind")) { 10699 if (_json.containsKey("kind")) {
10215 kind = _json["kind"]; 10700 kind = _json["kind"];
10216 } 10701 }
10217 if (_json.containsKey("profileRef")) { 10702 if (_json.containsKey("profileRef")) {
10218 profileRef = new ProfileRef.fromJson(_json["profileRef"]); 10703 profileRef = new ProfileRef.fromJson(_json["profileRef"]);
10219 } 10704 }
10220 if (_json.containsKey("rank")) { 10705 if (_json.containsKey("rank")) {
10221 rank = _json["rank"]; 10706 rank = _json["rank"];
10222 } 10707 }
10223 if (_json.containsKey("selfLink")) { 10708 if (_json.containsKey("selfLink")) {
10224 selfLink = _json["selfLink"]; 10709 selfLink = _json["selfLink"];
10225 } 10710 }
10226 } 10711 }
10227 10712
10228 core.Map<core.String, core.Object> toJson() { 10713 core.Map<core.String, core.Object> toJson() {
10229 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10714 final core.Map<core.String, core.Object> _json =
10715 new core.Map<core.String, core.Object>();
10230 if (filterRef != null) { 10716 if (filterRef != null) {
10231 _json["filterRef"] = (filterRef).toJson(); 10717 _json["filterRef"] = (filterRef).toJson();
10232 } 10718 }
10233 if (id != null) { 10719 if (id != null) {
10234 _json["id"] = id; 10720 _json["id"] = id;
10235 } 10721 }
10236 if (kind != null) { 10722 if (kind != null) {
10237 _json["kind"] = kind; 10723 _json["kind"] = kind;
10238 } 10724 }
10239 if (profileRef != null) { 10725 if (profileRef != null) {
10240 _json["profileRef"] = (profileRef).toJson(); 10726 _json["profileRef"] = (profileRef).toJson();
10241 } 10727 }
10242 if (rank != null) { 10728 if (rank != null) {
10243 _json["rank"] = rank; 10729 _json["rank"] = rank;
10244 } 10730 }
10245 if (selfLink != null) { 10731 if (selfLink != null) {
10246 _json["selfLink"] = selfLink; 10732 _json["selfLink"] = selfLink;
10247 } 10733 }
10248 return _json; 10734 return _json;
10249 } 10735 }
10250 } 10736 }
10251 10737
10252 /** 10738 /// A profile filter link collection lists profile filter links between
10253 * A profile filter link collection lists profile filter links between profiles 10739 /// profiles and filters. Each resource in the collection corresponds to a
10254 * and filters. Each resource in the collection corresponds to a profile filter 10740 /// profile filter link.
10255 * link.
10256 */
10257 class ProfileFilterLinks { 10741 class ProfileFilterLinks {
10258 /** A list of profile filter links. */ 10742 /// A list of profile filter links.
10259 core.List<ProfileFilterLink> items; 10743 core.List<ProfileFilterLink> items;
10260 /** 10744
10261 * The maximum number of resources the response can contain, regardless of the 10745 /// The maximum number of resources the response can contain, regardless of
10262 * actual number of resources returned. Its value ranges from 1 to 1,000 with 10746 /// the actual number of resources returned. Its value ranges from 1 to 1,000
10263 * a value of 1000 by default, or otherwise specified by the max-results query 10747 /// with a value of 1000 by default, or otherwise specified by the
10264 * parameter. 10748 /// max-results query parameter.
10265 */
10266 core.int itemsPerPage; 10749 core.int itemsPerPage;
10267 /** Collection type. */ 10750
10751 /// Collection type.
10268 core.String kind; 10752 core.String kind;
10269 /** Link to next page for this profile filter link collection. */ 10753
10754 /// Link to next page for this profile filter link collection.
10270 core.String nextLink; 10755 core.String nextLink;
10271 /** Link to previous page for this profile filter link collection. */ 10756
10757 /// Link to previous page for this profile filter link collection.
10272 core.String previousLink; 10758 core.String previousLink;
10273 /** 10759
10274 * The starting index of the resources, which is 1 by default or otherwise 10760 /// The starting index of the resources, which is 1 by default or otherwise
10275 * specified by the start-index query parameter. 10761 /// specified by the start-index query parameter.
10276 */
10277 core.int startIndex; 10762 core.int startIndex;
10278 /** 10763
10279 * The total number of results for the query, regardless of the number of 10764 /// The total number of results for the query, regardless of the number of
10280 * results in the response. 10765 /// results in the response.
10281 */
10282 core.int totalResults; 10766 core.int totalResults;
10283 /** Email ID of the authenticated user */ 10767
10768 /// Email ID of the authenticated user
10284 core.String username; 10769 core.String username;
10285 10770
10286 ProfileFilterLinks(); 10771 ProfileFilterLinks();
10287 10772
10288 ProfileFilterLinks.fromJson(core.Map _json) { 10773 ProfileFilterLinks.fromJson(core.Map _json) {
10289 if (_json.containsKey("items")) { 10774 if (_json.containsKey("items")) {
10290 items = _json["items"].map((value) => new ProfileFilterLink.fromJson(value )).toList(); 10775 items = _json["items"]
10776 .map((value) => new ProfileFilterLink.fromJson(value))
10777 .toList();
10291 } 10778 }
10292 if (_json.containsKey("itemsPerPage")) { 10779 if (_json.containsKey("itemsPerPage")) {
10293 itemsPerPage = _json["itemsPerPage"]; 10780 itemsPerPage = _json["itemsPerPage"];
10294 } 10781 }
10295 if (_json.containsKey("kind")) { 10782 if (_json.containsKey("kind")) {
10296 kind = _json["kind"]; 10783 kind = _json["kind"];
10297 } 10784 }
10298 if (_json.containsKey("nextLink")) { 10785 if (_json.containsKey("nextLink")) {
10299 nextLink = _json["nextLink"]; 10786 nextLink = _json["nextLink"];
10300 } 10787 }
10301 if (_json.containsKey("previousLink")) { 10788 if (_json.containsKey("previousLink")) {
10302 previousLink = _json["previousLink"]; 10789 previousLink = _json["previousLink"];
10303 } 10790 }
10304 if (_json.containsKey("startIndex")) { 10791 if (_json.containsKey("startIndex")) {
10305 startIndex = _json["startIndex"]; 10792 startIndex = _json["startIndex"];
10306 } 10793 }
10307 if (_json.containsKey("totalResults")) { 10794 if (_json.containsKey("totalResults")) {
10308 totalResults = _json["totalResults"]; 10795 totalResults = _json["totalResults"];
10309 } 10796 }
10310 if (_json.containsKey("username")) { 10797 if (_json.containsKey("username")) {
10311 username = _json["username"]; 10798 username = _json["username"];
10312 } 10799 }
10313 } 10800 }
10314 10801
10315 core.Map<core.String, core.Object> toJson() { 10802 core.Map<core.String, core.Object> toJson() {
10316 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10803 final core.Map<core.String, core.Object> _json =
10804 new core.Map<core.String, core.Object>();
10317 if (items != null) { 10805 if (items != null) {
10318 _json["items"] = items.map((value) => (value).toJson()).toList(); 10806 _json["items"] = items.map((value) => (value).toJson()).toList();
10319 } 10807 }
10320 if (itemsPerPage != null) { 10808 if (itemsPerPage != null) {
10321 _json["itemsPerPage"] = itemsPerPage; 10809 _json["itemsPerPage"] = itemsPerPage;
10322 } 10810 }
10323 if (kind != null) { 10811 if (kind != null) {
10324 _json["kind"] = kind; 10812 _json["kind"] = kind;
10325 } 10813 }
10326 if (nextLink != null) { 10814 if (nextLink != null) {
10327 _json["nextLink"] = nextLink; 10815 _json["nextLink"] = nextLink;
10328 } 10816 }
10329 if (previousLink != null) { 10817 if (previousLink != null) {
10330 _json["previousLink"] = previousLink; 10818 _json["previousLink"] = previousLink;
10331 } 10819 }
10332 if (startIndex != null) { 10820 if (startIndex != null) {
10333 _json["startIndex"] = startIndex; 10821 _json["startIndex"] = startIndex;
10334 } 10822 }
10335 if (totalResults != null) { 10823 if (totalResults != null) {
10336 _json["totalResults"] = totalResults; 10824 _json["totalResults"] = totalResults;
10337 } 10825 }
10338 if (username != null) { 10826 if (username != null) {
10339 _json["username"] = username; 10827 _json["username"] = username;
10340 } 10828 }
10341 return _json; 10829 return _json;
10342 } 10830 }
10343 } 10831 }
10344 10832
10345 /** JSON template for a linked view (profile). */ 10833 /// JSON template for a linked view (profile).
10346 class ProfileRef { 10834 class ProfileRef {
10347 /** Account ID to which this view (profile) belongs. */ 10835 /// Account ID to which this view (profile) belongs.
10348 core.String accountId; 10836 core.String accountId;
10349 /** Link for this view (profile). */ 10837
10838 /// Link for this view (profile).
10350 core.String href; 10839 core.String href;
10351 /** View (Profile) ID. */ 10840
10841 /// View (Profile) ID.
10352 core.String id; 10842 core.String id;
10353 /** Internal ID for the web property to which this view (profile) belongs. */ 10843
10844 /// Internal ID for the web property to which this view (profile) belongs.
10354 core.String internalWebPropertyId; 10845 core.String internalWebPropertyId;
10355 /** Analytics view (profile) reference. */ 10846
10847 /// Analytics view (profile) reference.
10356 core.String kind; 10848 core.String kind;
10357 /** Name of this view (profile). */ 10849
10850 /// Name of this view (profile).
10358 core.String name; 10851 core.String name;
10359 /** 10852
10360 * Web property ID of the form UA-XXXXX-YY to which this view (profile) 10853 /// Web property ID of the form UA-XXXXX-YY to which this view (profile)
10361 * belongs. 10854 /// belongs.
10362 */
10363 core.String webPropertyId; 10855 core.String webPropertyId;
10364 10856
10365 ProfileRef(); 10857 ProfileRef();
10366 10858
10367 ProfileRef.fromJson(core.Map _json) { 10859 ProfileRef.fromJson(core.Map _json) {
10368 if (_json.containsKey("accountId")) { 10860 if (_json.containsKey("accountId")) {
10369 accountId = _json["accountId"]; 10861 accountId = _json["accountId"];
10370 } 10862 }
10371 if (_json.containsKey("href")) { 10863 if (_json.containsKey("href")) {
10372 href = _json["href"]; 10864 href = _json["href"];
10373 } 10865 }
10374 if (_json.containsKey("id")) { 10866 if (_json.containsKey("id")) {
10375 id = _json["id"]; 10867 id = _json["id"];
10376 } 10868 }
10377 if (_json.containsKey("internalWebPropertyId")) { 10869 if (_json.containsKey("internalWebPropertyId")) {
10378 internalWebPropertyId = _json["internalWebPropertyId"]; 10870 internalWebPropertyId = _json["internalWebPropertyId"];
10379 } 10871 }
10380 if (_json.containsKey("kind")) { 10872 if (_json.containsKey("kind")) {
10381 kind = _json["kind"]; 10873 kind = _json["kind"];
10382 } 10874 }
10383 if (_json.containsKey("name")) { 10875 if (_json.containsKey("name")) {
10384 name = _json["name"]; 10876 name = _json["name"];
10385 } 10877 }
10386 if (_json.containsKey("webPropertyId")) { 10878 if (_json.containsKey("webPropertyId")) {
10387 webPropertyId = _json["webPropertyId"]; 10879 webPropertyId = _json["webPropertyId"];
10388 } 10880 }
10389 } 10881 }
10390 10882
10391 core.Map<core.String, core.Object> toJson() { 10883 core.Map<core.String, core.Object> toJson() {
10392 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10884 final core.Map<core.String, core.Object> _json =
10885 new core.Map<core.String, core.Object>();
10393 if (accountId != null) { 10886 if (accountId != null) {
10394 _json["accountId"] = accountId; 10887 _json["accountId"] = accountId;
10395 } 10888 }
10396 if (href != null) { 10889 if (href != null) {
10397 _json["href"] = href; 10890 _json["href"] = href;
10398 } 10891 }
10399 if (id != null) { 10892 if (id != null) {
10400 _json["id"] = id; 10893 _json["id"] = id;
10401 } 10894 }
10402 if (internalWebPropertyId != null) { 10895 if (internalWebPropertyId != null) {
10403 _json["internalWebPropertyId"] = internalWebPropertyId; 10896 _json["internalWebPropertyId"] = internalWebPropertyId;
10404 } 10897 }
10405 if (kind != null) { 10898 if (kind != null) {
10406 _json["kind"] = kind; 10899 _json["kind"] = kind;
10407 } 10900 }
10408 if (name != null) { 10901 if (name != null) {
10409 _json["name"] = name; 10902 _json["name"] = name;
10410 } 10903 }
10411 if (webPropertyId != null) { 10904 if (webPropertyId != null) {
10412 _json["webPropertyId"] = webPropertyId; 10905 _json["webPropertyId"] = webPropertyId;
10413 } 10906 }
10414 return _json; 10907 return _json;
10415 } 10908 }
10416 } 10909 }
10417 10910
10418 /** 10911 /// JSON template for an Analytics ProfileSummary. ProfileSummary returns basic
10419 * JSON template for an Analytics ProfileSummary. ProfileSummary returns basic 10912 /// information (i.e., summary) for a profile.
10420 * information (i.e., summary) for a profile.
10421 */
10422 class ProfileSummary { 10913 class ProfileSummary {
10423 /** View (profile) ID. */ 10914 /// View (profile) ID.
10424 core.String id; 10915 core.String id;
10425 /** Resource type for Analytics ProfileSummary. */ 10916
10917 /// Resource type for Analytics ProfileSummary.
10426 core.String kind; 10918 core.String kind;
10427 /** View (profile) name. */ 10919
10920 /// View (profile) name.
10428 core.String name; 10921 core.String name;
10429 /** Indicates whether this view (profile) is starred or not. */ 10922
10923 /// Indicates whether this view (profile) is starred or not.
10430 core.bool starred; 10924 core.bool starred;
10431 /** View (Profile) type. Supported types: WEB or APP. */ 10925
10926 /// View (Profile) type. Supported types: WEB or APP.
10432 core.String type; 10927 core.String type;
10433 10928
10434 ProfileSummary(); 10929 ProfileSummary();
10435 10930
10436 ProfileSummary.fromJson(core.Map _json) { 10931 ProfileSummary.fromJson(core.Map _json) {
10437 if (_json.containsKey("id")) { 10932 if (_json.containsKey("id")) {
10438 id = _json["id"]; 10933 id = _json["id"];
10439 } 10934 }
10440 if (_json.containsKey("kind")) { 10935 if (_json.containsKey("kind")) {
10441 kind = _json["kind"]; 10936 kind = _json["kind"];
10442 } 10937 }
10443 if (_json.containsKey("name")) { 10938 if (_json.containsKey("name")) {
10444 name = _json["name"]; 10939 name = _json["name"];
10445 } 10940 }
10446 if (_json.containsKey("starred")) { 10941 if (_json.containsKey("starred")) {
10447 starred = _json["starred"]; 10942 starred = _json["starred"];
10448 } 10943 }
10449 if (_json.containsKey("type")) { 10944 if (_json.containsKey("type")) {
10450 type = _json["type"]; 10945 type = _json["type"];
10451 } 10946 }
10452 } 10947 }
10453 10948
10454 core.Map<core.String, core.Object> toJson() { 10949 core.Map<core.String, core.Object> toJson() {
10455 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 10950 final core.Map<core.String, core.Object> _json =
10951 new core.Map<core.String, core.Object>();
10456 if (id != null) { 10952 if (id != null) {
10457 _json["id"] = id; 10953 _json["id"] = id;
10458 } 10954 }
10459 if (kind != null) { 10955 if (kind != null) {
10460 _json["kind"] = kind; 10956 _json["kind"] = kind;
10461 } 10957 }
10462 if (name != null) { 10958 if (name != null) {
10463 _json["name"] = name; 10959 _json["name"] = name;
10464 } 10960 }
10465 if (starred != null) { 10961 if (starred != null) {
10466 _json["starred"] = starred; 10962 _json["starred"] = starred;
10467 } 10963 }
10468 if (type != null) { 10964 if (type != null) {
10469 _json["type"] = type; 10965 _json["type"] = type;
10470 } 10966 }
10471 return _json; 10967 return _json;
10472 } 10968 }
10473 } 10969 }
10474 10970
10475 /** 10971 /// A view (profile) collection lists Analytics views (profiles) to which the
10476 * A view (profile) collection lists Analytics views (profiles) to which the 10972 /// user has access. Each resource in the collection corresponds to a single
10477 * user has access. Each resource in the collection corresponds to a single 10973 /// Analytics view (profile).
10478 * Analytics view (profile).
10479 */
10480 class Profiles { 10974 class Profiles {
10481 /** A list of views (profiles). */ 10975 /// A list of views (profiles).
10482 core.List<Profile> items; 10976 core.List<Profile> items;
10483 /** 10977
10484 * The maximum number of resources the response can contain, regardless of the 10978 /// The maximum number of resources the response can contain, regardless of
10485 * actual number of resources returned. Its value ranges from 1 to 1000 with a 10979 /// the actual number of resources returned. Its value ranges from 1 to 1000
10486 * value of 1000 by default, or otherwise specified by the max-results query 10980 /// with a value of 1000 by default, or otherwise specified by the
10487 * parameter. 10981 /// max-results query parameter.
10488 */
10489 core.int itemsPerPage; 10982 core.int itemsPerPage;
10490 /** Collection type. */ 10983
10984 /// Collection type.
10491 core.String kind; 10985 core.String kind;
10492 /** Link to next page for this view (profile) collection. */ 10986
10987 /// Link to next page for this view (profile) collection.
10493 core.String nextLink; 10988 core.String nextLink;
10494 /** Link to previous page for this view (profile) collection. */ 10989
10990 /// Link to previous page for this view (profile) collection.
10495 core.String previousLink; 10991 core.String previousLink;
10496 /** 10992
10497 * The starting index of the resources, which is 1 by default or otherwise 10993 /// The starting index of the resources, which is 1 by default or otherwise
10498 * specified by the start-index query parameter. 10994 /// specified by the start-index query parameter.
10499 */
10500 core.int startIndex; 10995 core.int startIndex;
10501 /** 10996
10502 * The total number of results for the query, regardless of the number of 10997 /// The total number of results for the query, regardless of the number of
10503 * results in the response. 10998 /// results in the response.
10504 */
10505 core.int totalResults; 10999 core.int totalResults;
10506 /** Email ID of the authenticated user */ 11000
11001 /// Email ID of the authenticated user
10507 core.String username; 11002 core.String username;
10508 11003
10509 Profiles(); 11004 Profiles();
10510 11005
10511 Profiles.fromJson(core.Map _json) { 11006 Profiles.fromJson(core.Map _json) {
10512 if (_json.containsKey("items")) { 11007 if (_json.containsKey("items")) {
10513 items = _json["items"].map((value) => new Profile.fromJson(value)).toList( ); 11008 items =
11009 _json["items"].map((value) => new Profile.fromJson(value)).toList();
10514 } 11010 }
10515 if (_json.containsKey("itemsPerPage")) { 11011 if (_json.containsKey("itemsPerPage")) {
10516 itemsPerPage = _json["itemsPerPage"]; 11012 itemsPerPage = _json["itemsPerPage"];
10517 } 11013 }
10518 if (_json.containsKey("kind")) { 11014 if (_json.containsKey("kind")) {
10519 kind = _json["kind"]; 11015 kind = _json["kind"];
10520 } 11016 }
10521 if (_json.containsKey("nextLink")) { 11017 if (_json.containsKey("nextLink")) {
10522 nextLink = _json["nextLink"]; 11018 nextLink = _json["nextLink"];
10523 } 11019 }
10524 if (_json.containsKey("previousLink")) { 11020 if (_json.containsKey("previousLink")) {
10525 previousLink = _json["previousLink"]; 11021 previousLink = _json["previousLink"];
10526 } 11022 }
10527 if (_json.containsKey("startIndex")) { 11023 if (_json.containsKey("startIndex")) {
10528 startIndex = _json["startIndex"]; 11024 startIndex = _json["startIndex"];
10529 } 11025 }
10530 if (_json.containsKey("totalResults")) { 11026 if (_json.containsKey("totalResults")) {
10531 totalResults = _json["totalResults"]; 11027 totalResults = _json["totalResults"];
10532 } 11028 }
10533 if (_json.containsKey("username")) { 11029 if (_json.containsKey("username")) {
10534 username = _json["username"]; 11030 username = _json["username"];
10535 } 11031 }
10536 } 11032 }
10537 11033
10538 core.Map<core.String, core.Object> toJson() { 11034 core.Map<core.String, core.Object> toJson() {
10539 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11035 final core.Map<core.String, core.Object> _json =
11036 new core.Map<core.String, core.Object>();
10540 if (items != null) { 11037 if (items != null) {
10541 _json["items"] = items.map((value) => (value).toJson()).toList(); 11038 _json["items"] = items.map((value) => (value).toJson()).toList();
10542 } 11039 }
10543 if (itemsPerPage != null) { 11040 if (itemsPerPage != null) {
10544 _json["itemsPerPage"] = itemsPerPage; 11041 _json["itemsPerPage"] = itemsPerPage;
10545 } 11042 }
10546 if (kind != null) { 11043 if (kind != null) {
10547 _json["kind"] = kind; 11044 _json["kind"] = kind;
10548 } 11045 }
10549 if (nextLink != null) { 11046 if (nextLink != null) {
10550 _json["nextLink"] = nextLink; 11047 _json["nextLink"] = nextLink;
10551 } 11048 }
10552 if (previousLink != null) { 11049 if (previousLink != null) {
10553 _json["previousLink"] = previousLink; 11050 _json["previousLink"] = previousLink;
10554 } 11051 }
10555 if (startIndex != null) { 11052 if (startIndex != null) {
10556 _json["startIndex"] = startIndex; 11053 _json["startIndex"] = startIndex;
10557 } 11054 }
10558 if (totalResults != null) { 11055 if (totalResults != null) {
10559 _json["totalResults"] = totalResults; 11056 _json["totalResults"] = totalResults;
10560 } 11057 }
10561 if (username != null) { 11058 if (username != null) {
10562 _json["username"] = username; 11059 _json["username"] = username;
10563 } 11060 }
10564 return _json; 11061 return _json;
10565 } 11062 }
10566 } 11063 }
10567 11064
10568 class RealtimeDataColumnHeaders { 11065 class RealtimeDataColumnHeaders {
10569 /** Column Type. Either DIMENSION or METRIC. */ 11066 /// Column Type. Either DIMENSION or METRIC.
10570 core.String columnType; 11067 core.String columnType;
10571 /** 11068
10572 * Data type. Dimension column headers have only STRING as the data type. 11069 /// Data type. Dimension column headers have only STRING as the data type.
10573 * Metric column headers have data types for metric values such as INTEGER, 11070 /// Metric column headers have data types for metric values such as INTEGER,
10574 * DOUBLE, CURRENCY etc. 11071 /// DOUBLE, CURRENCY etc.
10575 */
10576 core.String dataType; 11072 core.String dataType;
10577 /** Column name. */ 11073
11074 /// Column name.
10578 core.String name; 11075 core.String name;
10579 11076
10580 RealtimeDataColumnHeaders(); 11077 RealtimeDataColumnHeaders();
10581 11078
10582 RealtimeDataColumnHeaders.fromJson(core.Map _json) { 11079 RealtimeDataColumnHeaders.fromJson(core.Map _json) {
10583 if (_json.containsKey("columnType")) { 11080 if (_json.containsKey("columnType")) {
10584 columnType = _json["columnType"]; 11081 columnType = _json["columnType"];
10585 } 11082 }
10586 if (_json.containsKey("dataType")) { 11083 if (_json.containsKey("dataType")) {
10587 dataType = _json["dataType"]; 11084 dataType = _json["dataType"];
10588 } 11085 }
10589 if (_json.containsKey("name")) { 11086 if (_json.containsKey("name")) {
10590 name = _json["name"]; 11087 name = _json["name"];
10591 } 11088 }
10592 } 11089 }
10593 11090
10594 core.Map<core.String, core.Object> toJson() { 11091 core.Map<core.String, core.Object> toJson() {
10595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11092 final core.Map<core.String, core.Object> _json =
11093 new core.Map<core.String, core.Object>();
10596 if (columnType != null) { 11094 if (columnType != null) {
10597 _json["columnType"] = columnType; 11095 _json["columnType"] = columnType;
10598 } 11096 }
10599 if (dataType != null) { 11097 if (dataType != null) {
10600 _json["dataType"] = dataType; 11098 _json["dataType"] = dataType;
10601 } 11099 }
10602 if (name != null) { 11100 if (name != null) {
10603 _json["name"] = name; 11101 _json["name"] = name;
10604 } 11102 }
10605 return _json; 11103 return _json;
10606 } 11104 }
10607 } 11105 }
10608 11106
10609 /** 11107 /// Information for the view (profile), for which the real time data was
10610 * Information for the view (profile), for which the real time data was 11108 /// requested.
10611 * requested.
10612 */
10613 class RealtimeDataProfileInfo { 11109 class RealtimeDataProfileInfo {
10614 /** Account ID to which this view (profile) belongs. */ 11110 /// Account ID to which this view (profile) belongs.
10615 core.String accountId; 11111 core.String accountId;
10616 /** Internal ID for the web property to which this view (profile) belongs. */ 11112
11113 /// Internal ID for the web property to which this view (profile) belongs.
10617 core.String internalWebPropertyId; 11114 core.String internalWebPropertyId;
10618 /** View (Profile) ID. */ 11115
11116 /// View (Profile) ID.
10619 core.String profileId; 11117 core.String profileId;
10620 /** View (Profile) name. */ 11118
11119 /// View (Profile) name.
10621 core.String profileName; 11120 core.String profileName;
10622 /** Table ID for view (profile). */ 11121
11122 /// Table ID for view (profile).
10623 core.String tableId; 11123 core.String tableId;
10624 /** Web Property ID to which this view (profile) belongs. */ 11124
11125 /// Web Property ID to which this view (profile) belongs.
10625 core.String webPropertyId; 11126 core.String webPropertyId;
10626 11127
10627 RealtimeDataProfileInfo(); 11128 RealtimeDataProfileInfo();
10628 11129
10629 RealtimeDataProfileInfo.fromJson(core.Map _json) { 11130 RealtimeDataProfileInfo.fromJson(core.Map _json) {
10630 if (_json.containsKey("accountId")) { 11131 if (_json.containsKey("accountId")) {
10631 accountId = _json["accountId"]; 11132 accountId = _json["accountId"];
10632 } 11133 }
10633 if (_json.containsKey("internalWebPropertyId")) { 11134 if (_json.containsKey("internalWebPropertyId")) {
10634 internalWebPropertyId = _json["internalWebPropertyId"]; 11135 internalWebPropertyId = _json["internalWebPropertyId"];
10635 } 11136 }
10636 if (_json.containsKey("profileId")) { 11137 if (_json.containsKey("profileId")) {
10637 profileId = _json["profileId"]; 11138 profileId = _json["profileId"];
10638 } 11139 }
10639 if (_json.containsKey("profileName")) { 11140 if (_json.containsKey("profileName")) {
10640 profileName = _json["profileName"]; 11141 profileName = _json["profileName"];
10641 } 11142 }
10642 if (_json.containsKey("tableId")) { 11143 if (_json.containsKey("tableId")) {
10643 tableId = _json["tableId"]; 11144 tableId = _json["tableId"];
10644 } 11145 }
10645 if (_json.containsKey("webPropertyId")) { 11146 if (_json.containsKey("webPropertyId")) {
10646 webPropertyId = _json["webPropertyId"]; 11147 webPropertyId = _json["webPropertyId"];
10647 } 11148 }
10648 } 11149 }
10649 11150
10650 core.Map<core.String, core.Object> toJson() { 11151 core.Map<core.String, core.Object> toJson() {
10651 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11152 final core.Map<core.String, core.Object> _json =
11153 new core.Map<core.String, core.Object>();
10652 if (accountId != null) { 11154 if (accountId != null) {
10653 _json["accountId"] = accountId; 11155 _json["accountId"] = accountId;
10654 } 11156 }
10655 if (internalWebPropertyId != null) { 11157 if (internalWebPropertyId != null) {
10656 _json["internalWebPropertyId"] = internalWebPropertyId; 11158 _json["internalWebPropertyId"] = internalWebPropertyId;
10657 } 11159 }
10658 if (profileId != null) { 11160 if (profileId != null) {
10659 _json["profileId"] = profileId; 11161 _json["profileId"] = profileId;
10660 } 11162 }
10661 if (profileName != null) { 11163 if (profileName != null) {
10662 _json["profileName"] = profileName; 11164 _json["profileName"] = profileName;
10663 } 11165 }
10664 if (tableId != null) { 11166 if (tableId != null) {
10665 _json["tableId"] = tableId; 11167 _json["tableId"] = tableId;
10666 } 11168 }
10667 if (webPropertyId != null) { 11169 if (webPropertyId != null) {
10668 _json["webPropertyId"] = webPropertyId; 11170 _json["webPropertyId"] = webPropertyId;
10669 } 11171 }
10670 return _json; 11172 return _json;
10671 } 11173 }
10672 } 11174 }
10673 11175
10674 /** Real time data request query parameters. */ 11176 /// Real time data request query parameters.
10675 class RealtimeDataQuery { 11177 class RealtimeDataQuery {
10676 /** List of real time dimensions. */ 11178 /// List of real time dimensions.
10677 core.String dimensions; 11179 core.String dimensions;
10678 /** Comma-separated list of dimension or metric filters. */ 11180
11181 /// Comma-separated list of dimension or metric filters.
10679 core.String filters; 11182 core.String filters;
10680 /** Unique table ID. */ 11183
11184 /// Unique table ID.
10681 core.String ids; 11185 core.String ids;
10682 /** Maximum results per page. */ 11186
11187 /// Maximum results per page.
10683 core.int max_results; 11188 core.int max_results;
10684 /** List of real time metrics. */ 11189
11190 /// List of real time metrics.
10685 core.List<core.String> metrics; 11191 core.List<core.String> metrics;
10686 /** List of dimensions or metrics based on which real time data is sorted. */ 11192
11193 /// List of dimensions or metrics based on which real time data is sorted.
10687 core.List<core.String> sort; 11194 core.List<core.String> sort;
10688 11195
10689 RealtimeDataQuery(); 11196 RealtimeDataQuery();
10690 11197
10691 RealtimeDataQuery.fromJson(core.Map _json) { 11198 RealtimeDataQuery.fromJson(core.Map _json) {
10692 if (_json.containsKey("dimensions")) { 11199 if (_json.containsKey("dimensions")) {
10693 dimensions = _json["dimensions"]; 11200 dimensions = _json["dimensions"];
10694 } 11201 }
10695 if (_json.containsKey("filters")) { 11202 if (_json.containsKey("filters")) {
10696 filters = _json["filters"]; 11203 filters = _json["filters"];
10697 } 11204 }
10698 if (_json.containsKey("ids")) { 11205 if (_json.containsKey("ids")) {
10699 ids = _json["ids"]; 11206 ids = _json["ids"];
10700 } 11207 }
10701 if (_json.containsKey("max-results")) { 11208 if (_json.containsKey("max-results")) {
10702 max_results = _json["max-results"]; 11209 max_results = _json["max-results"];
10703 } 11210 }
10704 if (_json.containsKey("metrics")) { 11211 if (_json.containsKey("metrics")) {
10705 metrics = _json["metrics"]; 11212 metrics = _json["metrics"];
10706 } 11213 }
10707 if (_json.containsKey("sort")) { 11214 if (_json.containsKey("sort")) {
10708 sort = _json["sort"]; 11215 sort = _json["sort"];
10709 } 11216 }
10710 } 11217 }
10711 11218
10712 core.Map<core.String, core.Object> toJson() { 11219 core.Map<core.String, core.Object> toJson() {
10713 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11220 final core.Map<core.String, core.Object> _json =
11221 new core.Map<core.String, core.Object>();
10714 if (dimensions != null) { 11222 if (dimensions != null) {
10715 _json["dimensions"] = dimensions; 11223 _json["dimensions"] = dimensions;
10716 } 11224 }
10717 if (filters != null) { 11225 if (filters != null) {
10718 _json["filters"] = filters; 11226 _json["filters"] = filters;
10719 } 11227 }
10720 if (ids != null) { 11228 if (ids != null) {
10721 _json["ids"] = ids; 11229 _json["ids"] = ids;
10722 } 11230 }
10723 if (max_results != null) { 11231 if (max_results != null) {
10724 _json["max-results"] = max_results; 11232 _json["max-results"] = max_results;
10725 } 11233 }
10726 if (metrics != null) { 11234 if (metrics != null) {
10727 _json["metrics"] = metrics; 11235 _json["metrics"] = metrics;
10728 } 11236 }
10729 if (sort != null) { 11237 if (sort != null) {
10730 _json["sort"] = sort; 11238 _json["sort"] = sort;
10731 } 11239 }
10732 return _json; 11240 return _json;
10733 } 11241 }
10734 } 11242 }
10735 11243
10736 /** Real time data for a given view (profile). */ 11244 /// Real time data for a given view (profile).
10737 class RealtimeData { 11245 class RealtimeData {
10738 /** 11246 /// Column headers that list dimension names followed by the metric names.
10739 * Column headers that list dimension names followed by the metric names. The 11247 /// The order of dimensions and metrics is same as specified in the request.
10740 * order of dimensions and metrics is same as specified in the request.
10741 */
10742 core.List<RealtimeDataColumnHeaders> columnHeaders; 11248 core.List<RealtimeDataColumnHeaders> columnHeaders;
10743 /** Unique ID for this data response. */ 11249
11250 /// Unique ID for this data response.
10744 core.String id; 11251 core.String id;
10745 /** Resource type. */ 11252
11253 /// Resource type.
10746 core.String kind; 11254 core.String kind;
10747 /** 11255
10748 * Information for the view (profile), for which the real time data was 11256 /// Information for the view (profile), for which the real time data was
10749 * requested. 11257 /// requested.
10750 */
10751 RealtimeDataProfileInfo profileInfo; 11258 RealtimeDataProfileInfo profileInfo;
10752 /** Real time data request query parameters. */ 11259
11260 /// Real time data request query parameters.
10753 RealtimeDataQuery query; 11261 RealtimeDataQuery query;
10754 /** 11262
10755 * Real time data rows, where each row contains a list of dimension values 11263 /// Real time data rows, where each row contains a list of dimension values
10756 * followed by the metric values. The order of dimensions and metrics is same 11264 /// followed by the metric values. The order of dimensions and metrics is
10757 * as specified in the request. 11265 /// same as specified in the request.
10758 */
10759 core.List<core.List<core.String>> rows; 11266 core.List<core.List<core.String>> rows;
10760 /** Link to this page. */ 11267
11268 /// Link to this page.
10761 core.String selfLink; 11269 core.String selfLink;
10762 /** 11270
10763 * The total number of rows for the query, regardless of the number of rows in 11271 /// The total number of rows for the query, regardless of the number of rows
10764 * the response. 11272 /// in the response.
10765 */
10766 core.int totalResults; 11273 core.int totalResults;
10767 /** 11274
10768 * Total values for the requested metrics over all the results, not just the 11275 /// Total values for the requested metrics over all the results, not just the
10769 * results returned in this response. The order of the metric totals is same 11276 /// results returned in this response. The order of the metric totals is same
10770 * as the metric order specified in the request. 11277 /// as the metric order specified in the request.
10771 */
10772 core.Map<core.String, core.String> totalsForAllResults; 11278 core.Map<core.String, core.String> totalsForAllResults;
10773 11279
10774 RealtimeData(); 11280 RealtimeData();
10775 11281
10776 RealtimeData.fromJson(core.Map _json) { 11282 RealtimeData.fromJson(core.Map _json) {
10777 if (_json.containsKey("columnHeaders")) { 11283 if (_json.containsKey("columnHeaders")) {
10778 columnHeaders = _json["columnHeaders"].map((value) => new RealtimeDataColu mnHeaders.fromJson(value)).toList(); 11284 columnHeaders = _json["columnHeaders"]
11285 .map((value) => new RealtimeDataColumnHeaders.fromJson(value))
11286 .toList();
10779 } 11287 }
10780 if (_json.containsKey("id")) { 11288 if (_json.containsKey("id")) {
10781 id = _json["id"]; 11289 id = _json["id"];
10782 } 11290 }
10783 if (_json.containsKey("kind")) { 11291 if (_json.containsKey("kind")) {
10784 kind = _json["kind"]; 11292 kind = _json["kind"];
10785 } 11293 }
10786 if (_json.containsKey("profileInfo")) { 11294 if (_json.containsKey("profileInfo")) {
10787 profileInfo = new RealtimeDataProfileInfo.fromJson(_json["profileInfo"]); 11295 profileInfo = new RealtimeDataProfileInfo.fromJson(_json["profileInfo"]);
10788 } 11296 }
10789 if (_json.containsKey("query")) { 11297 if (_json.containsKey("query")) {
10790 query = new RealtimeDataQuery.fromJson(_json["query"]); 11298 query = new RealtimeDataQuery.fromJson(_json["query"]);
10791 } 11299 }
10792 if (_json.containsKey("rows")) { 11300 if (_json.containsKey("rows")) {
10793 rows = _json["rows"]; 11301 rows = _json["rows"];
10794 } 11302 }
10795 if (_json.containsKey("selfLink")) { 11303 if (_json.containsKey("selfLink")) {
10796 selfLink = _json["selfLink"]; 11304 selfLink = _json["selfLink"];
10797 } 11305 }
10798 if (_json.containsKey("totalResults")) { 11306 if (_json.containsKey("totalResults")) {
10799 totalResults = _json["totalResults"]; 11307 totalResults = _json["totalResults"];
10800 } 11308 }
10801 if (_json.containsKey("totalsForAllResults")) { 11309 if (_json.containsKey("totalsForAllResults")) {
10802 totalsForAllResults = _json["totalsForAllResults"]; 11310 totalsForAllResults = _json["totalsForAllResults"];
10803 } 11311 }
10804 } 11312 }
10805 11313
10806 core.Map<core.String, core.Object> toJson() { 11314 core.Map<core.String, core.Object> toJson() {
10807 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11315 final core.Map<core.String, core.Object> _json =
11316 new core.Map<core.String, core.Object>();
10808 if (columnHeaders != null) { 11317 if (columnHeaders != null) {
10809 _json["columnHeaders"] = columnHeaders.map((value) => (value).toJson()).to List(); 11318 _json["columnHeaders"] =
11319 columnHeaders.map((value) => (value).toJson()).toList();
10810 } 11320 }
10811 if (id != null) { 11321 if (id != null) {
10812 _json["id"] = id; 11322 _json["id"] = id;
10813 } 11323 }
10814 if (kind != null) { 11324 if (kind != null) {
10815 _json["kind"] = kind; 11325 _json["kind"] = kind;
10816 } 11326 }
10817 if (profileInfo != null) { 11327 if (profileInfo != null) {
10818 _json["profileInfo"] = (profileInfo).toJson(); 11328 _json["profileInfo"] = (profileInfo).toJson();
10819 } 11329 }
10820 if (query != null) { 11330 if (query != null) {
10821 _json["query"] = (query).toJson(); 11331 _json["query"] = (query).toJson();
10822 } 11332 }
10823 if (rows != null) { 11333 if (rows != null) {
10824 _json["rows"] = rows; 11334 _json["rows"] = rows;
10825 } 11335 }
10826 if (selfLink != null) { 11336 if (selfLink != null) {
10827 _json["selfLink"] = selfLink; 11337 _json["selfLink"] = selfLink;
10828 } 11338 }
10829 if (totalResults != null) { 11339 if (totalResults != null) {
10830 _json["totalResults"] = totalResults; 11340 _json["totalResults"] = totalResults;
10831 } 11341 }
10832 if (totalsForAllResults != null) { 11342 if (totalsForAllResults != null) {
10833 _json["totalsForAllResults"] = totalsForAllResults; 11343 _json["totalsForAllResults"] = totalsForAllResults;
10834 } 11344 }
10835 return _json; 11345 return _json;
10836 } 11346 }
10837 } 11347 }
10838 11348
10839 /** 11349 /// The simple audience definition that will cause a user to be added to an
10840 * The simple audience definition that will cause a user to be added to an 11350 /// audience.
10841 * audience.
10842 */
10843 class RemarketingAudienceAudienceDefinition { 11351 class RemarketingAudienceAudienceDefinition {
10844 /** Defines the conditions to include users to the audience. */ 11352 /// Defines the conditions to include users to the audience.
10845 IncludeConditions includeConditions; 11353 IncludeConditions includeConditions;
10846 11354
10847 RemarketingAudienceAudienceDefinition(); 11355 RemarketingAudienceAudienceDefinition();
10848 11356
10849 RemarketingAudienceAudienceDefinition.fromJson(core.Map _json) { 11357 RemarketingAudienceAudienceDefinition.fromJson(core.Map _json) {
10850 if (_json.containsKey("includeConditions")) { 11358 if (_json.containsKey("includeConditions")) {
10851 includeConditions = new IncludeConditions.fromJson(_json["includeCondition s"]); 11359 includeConditions =
11360 new IncludeConditions.fromJson(_json["includeConditions"]);
10852 } 11361 }
10853 } 11362 }
10854 11363
10855 core.Map<core.String, core.Object> toJson() { 11364 core.Map<core.String, core.Object> toJson() {
10856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11365 final core.Map<core.String, core.Object> _json =
11366 new core.Map<core.String, core.Object>();
10857 if (includeConditions != null) { 11367 if (includeConditions != null) {
10858 _json["includeConditions"] = (includeConditions).toJson(); 11368 _json["includeConditions"] = (includeConditions).toJson();
10859 } 11369 }
10860 return _json; 11370 return _json;
10861 } 11371 }
10862 } 11372 }
10863 11373
10864 /** Defines the conditions to exclude users from the audience. */ 11374 /// Defines the conditions to exclude users from the audience.
10865 class RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions { 11375 class RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions {
10866 /** Whether to make the exclusion TEMPORARY or PERMANENT. */ 11376 /// Whether to make the exclusion TEMPORARY or PERMANENT.
10867 core.String exclusionDuration; 11377 core.String exclusionDuration;
10868 /** 11378
10869 * The segment condition that will cause a user to be removed from an 11379 /// The segment condition that will cause a user to be removed from an
10870 * audience. 11380 /// audience.
10871 */
10872 core.String segment; 11381 core.String segment;
10873 11382
10874 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions(); 11383 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions();
10875 11384
10876 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.fromJson(core .Map _json) { 11385 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.fromJson(
11386 core.Map _json) {
10877 if (_json.containsKey("exclusionDuration")) { 11387 if (_json.containsKey("exclusionDuration")) {
10878 exclusionDuration = _json["exclusionDuration"]; 11388 exclusionDuration = _json["exclusionDuration"];
10879 } 11389 }
10880 if (_json.containsKey("segment")) { 11390 if (_json.containsKey("segment")) {
10881 segment = _json["segment"]; 11391 segment = _json["segment"];
10882 } 11392 }
10883 } 11393 }
10884 11394
10885 core.Map<core.String, core.Object> toJson() { 11395 core.Map<core.String, core.Object> toJson() {
10886 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11396 final core.Map<core.String, core.Object> _json =
11397 new core.Map<core.String, core.Object>();
10887 if (exclusionDuration != null) { 11398 if (exclusionDuration != null) {
10888 _json["exclusionDuration"] = exclusionDuration; 11399 _json["exclusionDuration"] = exclusionDuration;
10889 } 11400 }
10890 if (segment != null) { 11401 if (segment != null) {
10891 _json["segment"] = segment; 11402 _json["segment"] = segment;
10892 } 11403 }
10893 return _json; 11404 return _json;
10894 } 11405 }
10895 } 11406 }
10896 11407
10897 /** 11408 /// A state based audience definition that will cause a user to be added or
10898 * A state based audience definition that will cause a user to be added or 11409 /// removed from an audience.
10899 * removed from an audience.
10900 */
10901 class RemarketingAudienceStateBasedAudienceDefinition { 11410 class RemarketingAudienceStateBasedAudienceDefinition {
10902 /** Defines the conditions to exclude users from the audience. */ 11411 /// Defines the conditions to exclude users from the audience.
10903 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions excludeCondit ions; 11412 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
10904 /** Defines the conditions to include users to the audience. */ 11413 excludeConditions;
11414
11415 /// Defines the conditions to include users to the audience.
10905 IncludeConditions includeConditions; 11416 IncludeConditions includeConditions;
10906 11417
10907 RemarketingAudienceStateBasedAudienceDefinition(); 11418 RemarketingAudienceStateBasedAudienceDefinition();
10908 11419
10909 RemarketingAudienceStateBasedAudienceDefinition.fromJson(core.Map _json) { 11420 RemarketingAudienceStateBasedAudienceDefinition.fromJson(core.Map _json) {
10910 if (_json.containsKey("excludeConditions")) { 11421 if (_json.containsKey("excludeConditions")) {
10911 excludeConditions = new RemarketingAudienceStateBasedAudienceDefinitionExc ludeConditions.fromJson(_json["excludeConditions"]); 11422 excludeConditions =
11423 new RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
11424 .fromJson(_json["excludeConditions"]);
10912 } 11425 }
10913 if (_json.containsKey("includeConditions")) { 11426 if (_json.containsKey("includeConditions")) {
10914 includeConditions = new IncludeConditions.fromJson(_json["includeCondition s"]); 11427 includeConditions =
11428 new IncludeConditions.fromJson(_json["includeConditions"]);
10915 } 11429 }
10916 } 11430 }
10917 11431
10918 core.Map<core.String, core.Object> toJson() { 11432 core.Map<core.String, core.Object> toJson() {
10919 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11433 final core.Map<core.String, core.Object> _json =
11434 new core.Map<core.String, core.Object>();
10920 if (excludeConditions != null) { 11435 if (excludeConditions != null) {
10921 _json["excludeConditions"] = (excludeConditions).toJson(); 11436 _json["excludeConditions"] = (excludeConditions).toJson();
10922 } 11437 }
10923 if (includeConditions != null) { 11438 if (includeConditions != null) {
10924 _json["includeConditions"] = (includeConditions).toJson(); 11439 _json["includeConditions"] = (includeConditions).toJson();
10925 } 11440 }
10926 return _json; 11441 return _json;
10927 } 11442 }
10928 } 11443 }
10929 11444
10930 /** JSON template for an Analytics remarketing audience. */ 11445 /// JSON template for an Analytics remarketing audience.
10931 class RemarketingAudience { 11446 class RemarketingAudience {
10932 /** Account ID to which this remarketing audience belongs. */ 11447 /// Account ID to which this remarketing audience belongs.
10933 core.String accountId; 11448 core.String accountId;
10934 /** 11449
10935 * The simple audience definition that will cause a user to be added to an 11450 /// The simple audience definition that will cause a user to be added to an
10936 * audience. 11451 /// audience.
10937 */
10938 RemarketingAudienceAudienceDefinition audienceDefinition; 11452 RemarketingAudienceAudienceDefinition audienceDefinition;
10939 /** The type of audience, either SIMPLE or STATE_BASED. */ 11453
11454 /// The type of audience, either SIMPLE or STATE_BASED.
10940 core.String audienceType; 11455 core.String audienceType;
10941 /** Time this remarketing audience was created. */ 11456
11457 /// Time this remarketing audience was created.
10942 core.DateTime created; 11458 core.DateTime created;
10943 /** The description of this remarketing audience. */ 11459
11460 /// The description of this remarketing audience.
10944 core.String description; 11461 core.String description;
10945 /** Remarketing Audience ID. */ 11462
11463 /// Remarketing Audience ID.
10946 core.String id; 11464 core.String id;
10947 /** 11465
10948 * Internal ID for the web property to which this remarketing audience 11466 /// Internal ID for the web property to which this remarketing audience
10949 * belongs. 11467 /// belongs.
10950 */
10951 core.String internalWebPropertyId; 11468 core.String internalWebPropertyId;
10952 /** Collection type. */ 11469
11470 /// Collection type.
10953 core.String kind; 11471 core.String kind;
10954 /** 11472
10955 * The linked ad accounts associated with this remarketing audience. A 11473 /// The linked ad accounts associated with this remarketing audience. A
10956 * remarketing audience can have only one linkedAdAccount currently. 11474 /// remarketing audience can have only one linkedAdAccount currently.
10957 */
10958 core.List<LinkedForeignAccount> linkedAdAccounts; 11475 core.List<LinkedForeignAccount> linkedAdAccounts;
10959 /** The views (profiles) that this remarketing audience is linked to. */ 11476
11477 /// The views (profiles) that this remarketing audience is linked to.
10960 core.List<core.String> linkedViews; 11478 core.List<core.String> linkedViews;
10961 /** The name of this remarketing audience. */ 11479
11480 /// The name of this remarketing audience.
10962 core.String name; 11481 core.String name;
10963 /** 11482
10964 * A state based audience definition that will cause a user to be added or 11483 /// A state based audience definition that will cause a user to be added or
10965 * removed from an audience. 11484 /// removed from an audience.
10966 */
10967 RemarketingAudienceStateBasedAudienceDefinition stateBasedAudienceDefinition; 11485 RemarketingAudienceStateBasedAudienceDefinition stateBasedAudienceDefinition;
10968 /** Time this remarketing audience was last modified. */ 11486
11487 /// Time this remarketing audience was last modified.
10969 core.DateTime updated; 11488 core.DateTime updated;
10970 /** 11489
10971 * Web property ID of the form UA-XXXXX-YY to which this remarketing audience 11490 /// Web property ID of the form UA-XXXXX-YY to which this remarketing
10972 * belongs. 11491 /// audience belongs.
10973 */
10974 core.String webPropertyId; 11492 core.String webPropertyId;
10975 11493
10976 RemarketingAudience(); 11494 RemarketingAudience();
10977 11495
10978 RemarketingAudience.fromJson(core.Map _json) { 11496 RemarketingAudience.fromJson(core.Map _json) {
10979 if (_json.containsKey("accountId")) { 11497 if (_json.containsKey("accountId")) {
10980 accountId = _json["accountId"]; 11498 accountId = _json["accountId"];
10981 } 11499 }
10982 if (_json.containsKey("audienceDefinition")) { 11500 if (_json.containsKey("audienceDefinition")) {
10983 audienceDefinition = new RemarketingAudienceAudienceDefinition.fromJson(_j son["audienceDefinition"]); 11501 audienceDefinition = new RemarketingAudienceAudienceDefinition.fromJson(
11502 _json["audienceDefinition"]);
10984 } 11503 }
10985 if (_json.containsKey("audienceType")) { 11504 if (_json.containsKey("audienceType")) {
10986 audienceType = _json["audienceType"]; 11505 audienceType = _json["audienceType"];
10987 } 11506 }
10988 if (_json.containsKey("created")) { 11507 if (_json.containsKey("created")) {
10989 created = core.DateTime.parse(_json["created"]); 11508 created = core.DateTime.parse(_json["created"]);
10990 } 11509 }
10991 if (_json.containsKey("description")) { 11510 if (_json.containsKey("description")) {
10992 description = _json["description"]; 11511 description = _json["description"];
10993 } 11512 }
10994 if (_json.containsKey("id")) { 11513 if (_json.containsKey("id")) {
10995 id = _json["id"]; 11514 id = _json["id"];
10996 } 11515 }
10997 if (_json.containsKey("internalWebPropertyId")) { 11516 if (_json.containsKey("internalWebPropertyId")) {
10998 internalWebPropertyId = _json["internalWebPropertyId"]; 11517 internalWebPropertyId = _json["internalWebPropertyId"];
10999 } 11518 }
11000 if (_json.containsKey("kind")) { 11519 if (_json.containsKey("kind")) {
11001 kind = _json["kind"]; 11520 kind = _json["kind"];
11002 } 11521 }
11003 if (_json.containsKey("linkedAdAccounts")) { 11522 if (_json.containsKey("linkedAdAccounts")) {
11004 linkedAdAccounts = _json["linkedAdAccounts"].map((value) => new LinkedFore ignAccount.fromJson(value)).toList(); 11523 linkedAdAccounts = _json["linkedAdAccounts"]
11524 .map((value) => new LinkedForeignAccount.fromJson(value))
11525 .toList();
11005 } 11526 }
11006 if (_json.containsKey("linkedViews")) { 11527 if (_json.containsKey("linkedViews")) {
11007 linkedViews = _json["linkedViews"]; 11528 linkedViews = _json["linkedViews"];
11008 } 11529 }
11009 if (_json.containsKey("name")) { 11530 if (_json.containsKey("name")) {
11010 name = _json["name"]; 11531 name = _json["name"];
11011 } 11532 }
11012 if (_json.containsKey("stateBasedAudienceDefinition")) { 11533 if (_json.containsKey("stateBasedAudienceDefinition")) {
11013 stateBasedAudienceDefinition = new RemarketingAudienceStateBasedAudienceDe finition.fromJson(_json["stateBasedAudienceDefinition"]); 11534 stateBasedAudienceDefinition =
11535 new RemarketingAudienceStateBasedAudienceDefinition.fromJson(
11536 _json["stateBasedAudienceDefinition"]);
11014 } 11537 }
11015 if (_json.containsKey("updated")) { 11538 if (_json.containsKey("updated")) {
11016 updated = core.DateTime.parse(_json["updated"]); 11539 updated = core.DateTime.parse(_json["updated"]);
11017 } 11540 }
11018 if (_json.containsKey("webPropertyId")) { 11541 if (_json.containsKey("webPropertyId")) {
11019 webPropertyId = _json["webPropertyId"]; 11542 webPropertyId = _json["webPropertyId"];
11020 } 11543 }
11021 } 11544 }
11022 11545
11023 core.Map<core.String, core.Object> toJson() { 11546 core.Map<core.String, core.Object> toJson() {
11024 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11547 final core.Map<core.String, core.Object> _json =
11548 new core.Map<core.String, core.Object>();
11025 if (accountId != null) { 11549 if (accountId != null) {
11026 _json["accountId"] = accountId; 11550 _json["accountId"] = accountId;
11027 } 11551 }
11028 if (audienceDefinition != null) { 11552 if (audienceDefinition != null) {
11029 _json["audienceDefinition"] = (audienceDefinition).toJson(); 11553 _json["audienceDefinition"] = (audienceDefinition).toJson();
11030 } 11554 }
11031 if (audienceType != null) { 11555 if (audienceType != null) {
11032 _json["audienceType"] = audienceType; 11556 _json["audienceType"] = audienceType;
11033 } 11557 }
11034 if (created != null) { 11558 if (created != null) {
11035 _json["created"] = (created).toIso8601String(); 11559 _json["created"] = (created).toIso8601String();
11036 } 11560 }
11037 if (description != null) { 11561 if (description != null) {
11038 _json["description"] = description; 11562 _json["description"] = description;
11039 } 11563 }
11040 if (id != null) { 11564 if (id != null) {
11041 _json["id"] = id; 11565 _json["id"] = id;
11042 } 11566 }
11043 if (internalWebPropertyId != null) { 11567 if (internalWebPropertyId != null) {
11044 _json["internalWebPropertyId"] = internalWebPropertyId; 11568 _json["internalWebPropertyId"] = internalWebPropertyId;
11045 } 11569 }
11046 if (kind != null) { 11570 if (kind != null) {
11047 _json["kind"] = kind; 11571 _json["kind"] = kind;
11048 } 11572 }
11049 if (linkedAdAccounts != null) { 11573 if (linkedAdAccounts != null) {
11050 _json["linkedAdAccounts"] = linkedAdAccounts.map((value) => (value).toJson ()).toList(); 11574 _json["linkedAdAccounts"] =
11575 linkedAdAccounts.map((value) => (value).toJson()).toList();
11051 } 11576 }
11052 if (linkedViews != null) { 11577 if (linkedViews != null) {
11053 _json["linkedViews"] = linkedViews; 11578 _json["linkedViews"] = linkedViews;
11054 } 11579 }
11055 if (name != null) { 11580 if (name != null) {
11056 _json["name"] = name; 11581 _json["name"] = name;
11057 } 11582 }
11058 if (stateBasedAudienceDefinition != null) { 11583 if (stateBasedAudienceDefinition != null) {
11059 _json["stateBasedAudienceDefinition"] = (stateBasedAudienceDefinition).toJ son(); 11584 _json["stateBasedAudienceDefinition"] =
11585 (stateBasedAudienceDefinition).toJson();
11060 } 11586 }
11061 if (updated != null) { 11587 if (updated != null) {
11062 _json["updated"] = (updated).toIso8601String(); 11588 _json["updated"] = (updated).toIso8601String();
11063 } 11589 }
11064 if (webPropertyId != null) { 11590 if (webPropertyId != null) {
11065 _json["webPropertyId"] = webPropertyId; 11591 _json["webPropertyId"] = webPropertyId;
11066 } 11592 }
11067 return _json; 11593 return _json;
11068 } 11594 }
11069 } 11595 }
11070 11596
11071 /** 11597 /// A remarketing audience collection lists Analytics remarketing audiences to
11072 * A remarketing audience collection lists Analytics remarketing audiences to 11598 /// which the user has access. Each resource in the collection corresponds to a
11073 * which the user has access. Each resource in the collection corresponds to a 11599 /// single Analytics remarketing audience.
11074 * single Analytics remarketing audience.
11075 */
11076 class RemarketingAudiences { 11600 class RemarketingAudiences {
11077 /** A list of remarketing audiences. */ 11601 /// A list of remarketing audiences.
11078 core.List<RemarketingAudience> items; 11602 core.List<RemarketingAudience> items;
11079 /** 11603
11080 * The maximum number of resources the response can contain, regardless of the 11604 /// The maximum number of resources the response can contain, regardless of
11081 * actual number of resources returned. Its value ranges from 1 to 1000 with a 11605 /// the actual number of resources returned. Its value ranges from 1 to 1000
11082 * value of 1000 by default, or otherwise specified by the max-results query 11606 /// with a value of 1000 by default, or otherwise specified by the
11083 * parameter. 11607 /// max-results query parameter.
11084 */
11085 core.int itemsPerPage; 11608 core.int itemsPerPage;
11086 /** Collection type. */ 11609
11610 /// Collection type.
11087 core.String kind; 11611 core.String kind;
11088 /** Link to next page for this remarketing audience collection. */ 11612
11613 /// Link to next page for this remarketing audience collection.
11089 core.String nextLink; 11614 core.String nextLink;
11090 /** Link to previous page for this view (profile) collection. */ 11615
11616 /// Link to previous page for this view (profile) collection.
11091 core.String previousLink; 11617 core.String previousLink;
11092 /** 11618
11093 * The starting index of the resources, which is 1 by default or otherwise 11619 /// The starting index of the resources, which is 1 by default or otherwise
11094 * specified by the start-index query parameter. 11620 /// specified by the start-index query parameter.
11095 */
11096 core.int startIndex; 11621 core.int startIndex;
11097 /** 11622
11098 * The total number of results for the query, regardless of the number of 11623 /// The total number of results for the query, regardless of the number of
11099 * results in the response. 11624 /// results in the response.
11100 */
11101 core.int totalResults; 11625 core.int totalResults;
11102 /** Email ID of the authenticated user */ 11626
11627 /// Email ID of the authenticated user
11103 core.String username; 11628 core.String username;
11104 11629
11105 RemarketingAudiences(); 11630 RemarketingAudiences();
11106 11631
11107 RemarketingAudiences.fromJson(core.Map _json) { 11632 RemarketingAudiences.fromJson(core.Map _json) {
11108 if (_json.containsKey("items")) { 11633 if (_json.containsKey("items")) {
11109 items = _json["items"].map((value) => new RemarketingAudience.fromJson(val ue)).toList(); 11634 items = _json["items"]
11635 .map((value) => new RemarketingAudience.fromJson(value))
11636 .toList();
11110 } 11637 }
11111 if (_json.containsKey("itemsPerPage")) { 11638 if (_json.containsKey("itemsPerPage")) {
11112 itemsPerPage = _json["itemsPerPage"]; 11639 itemsPerPage = _json["itemsPerPage"];
11113 } 11640 }
11114 if (_json.containsKey("kind")) { 11641 if (_json.containsKey("kind")) {
11115 kind = _json["kind"]; 11642 kind = _json["kind"];
11116 } 11643 }
11117 if (_json.containsKey("nextLink")) { 11644 if (_json.containsKey("nextLink")) {
11118 nextLink = _json["nextLink"]; 11645 nextLink = _json["nextLink"];
11119 } 11646 }
11120 if (_json.containsKey("previousLink")) { 11647 if (_json.containsKey("previousLink")) {
11121 previousLink = _json["previousLink"]; 11648 previousLink = _json["previousLink"];
11122 } 11649 }
11123 if (_json.containsKey("startIndex")) { 11650 if (_json.containsKey("startIndex")) {
11124 startIndex = _json["startIndex"]; 11651 startIndex = _json["startIndex"];
11125 } 11652 }
11126 if (_json.containsKey("totalResults")) { 11653 if (_json.containsKey("totalResults")) {
11127 totalResults = _json["totalResults"]; 11654 totalResults = _json["totalResults"];
11128 } 11655 }
11129 if (_json.containsKey("username")) { 11656 if (_json.containsKey("username")) {
11130 username = _json["username"]; 11657 username = _json["username"];
11131 } 11658 }
11132 } 11659 }
11133 11660
11134 core.Map<core.String, core.Object> toJson() { 11661 core.Map<core.String, core.Object> toJson() {
11135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11662 final core.Map<core.String, core.Object> _json =
11663 new core.Map<core.String, core.Object>();
11136 if (items != null) { 11664 if (items != null) {
11137 _json["items"] = items.map((value) => (value).toJson()).toList(); 11665 _json["items"] = items.map((value) => (value).toJson()).toList();
11138 } 11666 }
11139 if (itemsPerPage != null) { 11667 if (itemsPerPage != null) {
11140 _json["itemsPerPage"] = itemsPerPage; 11668 _json["itemsPerPage"] = itemsPerPage;
11141 } 11669 }
11142 if (kind != null) { 11670 if (kind != null) {
11143 _json["kind"] = kind; 11671 _json["kind"] = kind;
11144 } 11672 }
11145 if (nextLink != null) { 11673 if (nextLink != null) {
11146 _json["nextLink"] = nextLink; 11674 _json["nextLink"] = nextLink;
11147 } 11675 }
11148 if (previousLink != null) { 11676 if (previousLink != null) {
11149 _json["previousLink"] = previousLink; 11677 _json["previousLink"] = previousLink;
11150 } 11678 }
11151 if (startIndex != null) { 11679 if (startIndex != null) {
11152 _json["startIndex"] = startIndex; 11680 _json["startIndex"] = startIndex;
11153 } 11681 }
11154 if (totalResults != null) { 11682 if (totalResults != null) {
11155 _json["totalResults"] = totalResults; 11683 _json["totalResults"] = totalResults;
11156 } 11684 }
11157 if (username != null) { 11685 if (username != null) {
11158 _json["username"] = username; 11686 _json["username"] = username;
11159 } 11687 }
11160 return _json; 11688 return _json;
11161 } 11689 }
11162 } 11690 }
11163 11691
11164 /** JSON template for an Analytics segment. */ 11692 /// JSON template for an Analytics segment.
11165 class Segment { 11693 class Segment {
11166 /** Time the segment was created. */ 11694 /// Time the segment was created.
11167 core.DateTime created; 11695 core.DateTime created;
11168 /** Segment definition. */ 11696
11697 /// Segment definition.
11169 core.String definition; 11698 core.String definition;
11170 /** Segment ID. */ 11699
11700 /// Segment ID.
11171 core.String id; 11701 core.String id;
11172 /** Resource type for Analytics segment. */ 11702
11703 /// Resource type for Analytics segment.
11173 core.String kind; 11704 core.String kind;
11174 /** Segment name. */ 11705
11706 /// Segment name.
11175 core.String name; 11707 core.String name;
11176 /** 11708
11177 * Segment ID. Can be used with the 'segment' parameter in Core Reporting API. 11709 /// Segment ID. Can be used with the 'segment' parameter in Core Reporting
11178 */ 11710 /// API.
11179 core.String segmentId; 11711 core.String segmentId;
11180 /** Link for this segment. */ 11712
11713 /// Link for this segment.
11181 core.String selfLink; 11714 core.String selfLink;
11182 /** Type for a segment. Possible values are "BUILT_IN" or "CUSTOM". */ 11715
11716 /// Type for a segment. Possible values are "BUILT_IN" or "CUSTOM".
11183 core.String type; 11717 core.String type;
11184 /** Time the segment was last modified. */ 11718
11719 /// Time the segment was last modified.
11185 core.DateTime updated; 11720 core.DateTime updated;
11186 11721
11187 Segment(); 11722 Segment();
11188 11723
11189 Segment.fromJson(core.Map _json) { 11724 Segment.fromJson(core.Map _json) {
11190 if (_json.containsKey("created")) { 11725 if (_json.containsKey("created")) {
11191 created = core.DateTime.parse(_json["created"]); 11726 created = core.DateTime.parse(_json["created"]);
11192 } 11727 }
11193 if (_json.containsKey("definition")) { 11728 if (_json.containsKey("definition")) {
11194 definition = _json["definition"]; 11729 definition = _json["definition"];
(...skipping 15 matching lines...) Expand all
11210 } 11745 }
11211 if (_json.containsKey("type")) { 11746 if (_json.containsKey("type")) {
11212 type = _json["type"]; 11747 type = _json["type"];
11213 } 11748 }
11214 if (_json.containsKey("updated")) { 11749 if (_json.containsKey("updated")) {
11215 updated = core.DateTime.parse(_json["updated"]); 11750 updated = core.DateTime.parse(_json["updated"]);
11216 } 11751 }
11217 } 11752 }
11218 11753
11219 core.Map<core.String, core.Object> toJson() { 11754 core.Map<core.String, core.Object> toJson() {
11220 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11755 final core.Map<core.String, core.Object> _json =
11756 new core.Map<core.String, core.Object>();
11221 if (created != null) { 11757 if (created != null) {
11222 _json["created"] = (created).toIso8601String(); 11758 _json["created"] = (created).toIso8601String();
11223 } 11759 }
11224 if (definition != null) { 11760 if (definition != null) {
11225 _json["definition"] = definition; 11761 _json["definition"] = definition;
11226 } 11762 }
11227 if (id != null) { 11763 if (id != null) {
11228 _json["id"] = id; 11764 _json["id"] = id;
11229 } 11765 }
11230 if (kind != null) { 11766 if (kind != null) {
(...skipping 11 matching lines...) Expand all
11242 if (type != null) { 11778 if (type != null) {
11243 _json["type"] = type; 11779 _json["type"] = type;
11244 } 11780 }
11245 if (updated != null) { 11781 if (updated != null) {
11246 _json["updated"] = (updated).toIso8601String(); 11782 _json["updated"] = (updated).toIso8601String();
11247 } 11783 }
11248 return _json; 11784 return _json;
11249 } 11785 }
11250 } 11786 }
11251 11787
11252 /** 11788 /// An segment collection lists Analytics segments that the user has access to.
11253 * An segment collection lists Analytics segments that the user has access to. 11789 /// Each resource in the collection corresponds to a single Analytics segment.
11254 * Each resource in the collection corresponds to a single Analytics segment.
11255 */
11256 class Segments { 11790 class Segments {
11257 /** A list of segments. */ 11791 /// A list of segments.
11258 core.List<Segment> items; 11792 core.List<Segment> items;
11259 /** 11793
11260 * The maximum number of resources the response can contain, regardless of the 11794 /// The maximum number of resources the response can contain, regardless of
11261 * actual number of resources returned. Its value ranges from 1 to 1000 with a 11795 /// the actual number of resources returned. Its value ranges from 1 to 1000
11262 * value of 1000 by default, or otherwise specified by the max-results query 11796 /// with a value of 1000 by default, or otherwise specified by the
11263 * parameter. 11797 /// max-results query parameter.
11264 */
11265 core.int itemsPerPage; 11798 core.int itemsPerPage;
11266 /** Collection type for segments. */ 11799
11800 /// Collection type for segments.
11267 core.String kind; 11801 core.String kind;
11268 /** Link to next page for this segment collection. */ 11802
11803 /// Link to next page for this segment collection.
11269 core.String nextLink; 11804 core.String nextLink;
11270 /** Link to previous page for this segment collection. */ 11805
11806 /// Link to previous page for this segment collection.
11271 core.String previousLink; 11807 core.String previousLink;
11272 /** 11808
11273 * The starting index of the resources, which is 1 by default or otherwise 11809 /// The starting index of the resources, which is 1 by default or otherwise
11274 * specified by the start-index query parameter. 11810 /// specified by the start-index query parameter.
11275 */
11276 core.int startIndex; 11811 core.int startIndex;
11277 /** 11812
11278 * The total number of results for the query, regardless of the number of 11813 /// The total number of results for the query, regardless of the number of
11279 * results in the response. 11814 /// results in the response.
11280 */
11281 core.int totalResults; 11815 core.int totalResults;
11282 /** Email ID of the authenticated user */ 11816
11817 /// Email ID of the authenticated user
11283 core.String username; 11818 core.String username;
11284 11819
11285 Segments(); 11820 Segments();
11286 11821
11287 Segments.fromJson(core.Map _json) { 11822 Segments.fromJson(core.Map _json) {
11288 if (_json.containsKey("items")) { 11823 if (_json.containsKey("items")) {
11289 items = _json["items"].map((value) => new Segment.fromJson(value)).toList( ); 11824 items =
11825 _json["items"].map((value) => new Segment.fromJson(value)).toList();
11290 } 11826 }
11291 if (_json.containsKey("itemsPerPage")) { 11827 if (_json.containsKey("itemsPerPage")) {
11292 itemsPerPage = _json["itemsPerPage"]; 11828 itemsPerPage = _json["itemsPerPage"];
11293 } 11829 }
11294 if (_json.containsKey("kind")) { 11830 if (_json.containsKey("kind")) {
11295 kind = _json["kind"]; 11831 kind = _json["kind"];
11296 } 11832 }
11297 if (_json.containsKey("nextLink")) { 11833 if (_json.containsKey("nextLink")) {
11298 nextLink = _json["nextLink"]; 11834 nextLink = _json["nextLink"];
11299 } 11835 }
11300 if (_json.containsKey("previousLink")) { 11836 if (_json.containsKey("previousLink")) {
11301 previousLink = _json["previousLink"]; 11837 previousLink = _json["previousLink"];
11302 } 11838 }
11303 if (_json.containsKey("startIndex")) { 11839 if (_json.containsKey("startIndex")) {
11304 startIndex = _json["startIndex"]; 11840 startIndex = _json["startIndex"];
11305 } 11841 }
11306 if (_json.containsKey("totalResults")) { 11842 if (_json.containsKey("totalResults")) {
11307 totalResults = _json["totalResults"]; 11843 totalResults = _json["totalResults"];
11308 } 11844 }
11309 if (_json.containsKey("username")) { 11845 if (_json.containsKey("username")) {
11310 username = _json["username"]; 11846 username = _json["username"];
11311 } 11847 }
11312 } 11848 }
11313 11849
11314 core.Map<core.String, core.Object> toJson() { 11850 core.Map<core.String, core.Object> toJson() {
11315 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11851 final core.Map<core.String, core.Object> _json =
11852 new core.Map<core.String, core.Object>();
11316 if (items != null) { 11853 if (items != null) {
11317 _json["items"] = items.map((value) => (value).toJson()).toList(); 11854 _json["items"] = items.map((value) => (value).toJson()).toList();
11318 } 11855 }
11319 if (itemsPerPage != null) { 11856 if (itemsPerPage != null) {
11320 _json["itemsPerPage"] = itemsPerPage; 11857 _json["itemsPerPage"] = itemsPerPage;
11321 } 11858 }
11322 if (kind != null) { 11859 if (kind != null) {
11323 _json["kind"] = kind; 11860 _json["kind"] = kind;
11324 } 11861 }
11325 if (nextLink != null) { 11862 if (nextLink != null) {
11326 _json["nextLink"] = nextLink; 11863 _json["nextLink"] = nextLink;
11327 } 11864 }
11328 if (previousLink != null) { 11865 if (previousLink != null) {
11329 _json["previousLink"] = previousLink; 11866 _json["previousLink"] = previousLink;
11330 } 11867 }
11331 if (startIndex != null) { 11868 if (startIndex != null) {
11332 _json["startIndex"] = startIndex; 11869 _json["startIndex"] = startIndex;
11333 } 11870 }
11334 if (totalResults != null) { 11871 if (totalResults != null) {
11335 _json["totalResults"] = totalResults; 11872 _json["totalResults"] = totalResults;
11336 } 11873 }
11337 if (username != null) { 11874 if (username != null) {
11338 _json["username"] = username; 11875 _json["username"] = username;
11339 } 11876 }
11340 return _json; 11877 return _json;
11341 } 11878 }
11342 } 11879 }
11343 11880
11344 /** Download details for a file stored in Google Cloud Storage. */ 11881 /// Download details for a file stored in Google Cloud Storage.
11345 class UnsampledReportCloudStorageDownloadDetails { 11882 class UnsampledReportCloudStorageDownloadDetails {
11346 /** Id of the bucket the file object is stored in. */ 11883 /// Id of the bucket the file object is stored in.
11347 core.String bucketId; 11884 core.String bucketId;
11348 /** Id of the file object containing the report data. */ 11885
11886 /// Id of the file object containing the report data.
11349 core.String objectId; 11887 core.String objectId;
11350 11888
11351 UnsampledReportCloudStorageDownloadDetails(); 11889 UnsampledReportCloudStorageDownloadDetails();
11352 11890
11353 UnsampledReportCloudStorageDownloadDetails.fromJson(core.Map _json) { 11891 UnsampledReportCloudStorageDownloadDetails.fromJson(core.Map _json) {
11354 if (_json.containsKey("bucketId")) { 11892 if (_json.containsKey("bucketId")) {
11355 bucketId = _json["bucketId"]; 11893 bucketId = _json["bucketId"];
11356 } 11894 }
11357 if (_json.containsKey("objectId")) { 11895 if (_json.containsKey("objectId")) {
11358 objectId = _json["objectId"]; 11896 objectId = _json["objectId"];
11359 } 11897 }
11360 } 11898 }
11361 11899
11362 core.Map<core.String, core.Object> toJson() { 11900 core.Map<core.String, core.Object> toJson() {
11363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11901 final core.Map<core.String, core.Object> _json =
11902 new core.Map<core.String, core.Object>();
11364 if (bucketId != null) { 11903 if (bucketId != null) {
11365 _json["bucketId"] = bucketId; 11904 _json["bucketId"] = bucketId;
11366 } 11905 }
11367 if (objectId != null) { 11906 if (objectId != null) {
11368 _json["objectId"] = objectId; 11907 _json["objectId"] = objectId;
11369 } 11908 }
11370 return _json; 11909 return _json;
11371 } 11910 }
11372 } 11911 }
11373 11912
11374 /** Download details for a file stored in Google Drive. */ 11913 /// Download details for a file stored in Google Drive.
11375 class UnsampledReportDriveDownloadDetails { 11914 class UnsampledReportDriveDownloadDetails {
11376 /** Id of the document/file containing the report data. */ 11915 /// Id of the document/file containing the report data.
11377 core.String documentId; 11916 core.String documentId;
11378 11917
11379 UnsampledReportDriveDownloadDetails(); 11918 UnsampledReportDriveDownloadDetails();
11380 11919
11381 UnsampledReportDriveDownloadDetails.fromJson(core.Map _json) { 11920 UnsampledReportDriveDownloadDetails.fromJson(core.Map _json) {
11382 if (_json.containsKey("documentId")) { 11921 if (_json.containsKey("documentId")) {
11383 documentId = _json["documentId"]; 11922 documentId = _json["documentId"];
11384 } 11923 }
11385 } 11924 }
11386 11925
11387 core.Map<core.String, core.Object> toJson() { 11926 core.Map<core.String, core.Object> toJson() {
11388 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 11927 final core.Map<core.String, core.Object> _json =
11928 new core.Map<core.String, core.Object>();
11389 if (documentId != null) { 11929 if (documentId != null) {
11390 _json["documentId"] = documentId; 11930 _json["documentId"] = documentId;
11391 } 11931 }
11392 return _json; 11932 return _json;
11393 } 11933 }
11394 } 11934 }
11395 11935
11396 /** JSON template for Analytics unsampled report resource. */ 11936 /// JSON template for Analytics unsampled report resource.
11397 class UnsampledReport { 11937 class UnsampledReport {
11398 /** Account ID to which this unsampled report belongs. */ 11938 /// Account ID to which this unsampled report belongs.
11399 core.String accountId; 11939 core.String accountId;
11400 /** Download details for a file stored in Google Cloud Storage. */ 11940
11941 /// Download details for a file stored in Google Cloud Storage.
11401 UnsampledReportCloudStorageDownloadDetails cloudStorageDownloadDetails; 11942 UnsampledReportCloudStorageDownloadDetails cloudStorageDownloadDetails;
11402 /** Time this unsampled report was created. */ 11943
11944 /// Time this unsampled report was created.
11403 core.DateTime created; 11945 core.DateTime created;
11404 /** The dimensions for the unsampled report. */ 11946
11947 /// The dimensions for the unsampled report.
11405 core.String dimensions; 11948 core.String dimensions;
11406 /** 11949
11407 * The type of download you need to use for the report data file. Possible 11950 /// The type of download you need to use for the report data file. Possible
11408 * values include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is 11951 /// values include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is
11409 * `GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is 11952 /// `GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is
11410 * `GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field. 11953 /// `GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field.
11411 */
11412 core.String downloadType; 11954 core.String downloadType;
11413 /** Download details for a file stored in Google Drive. */ 11955
11956 /// Download details for a file stored in Google Drive.
11414 UnsampledReportDriveDownloadDetails driveDownloadDetails; 11957 UnsampledReportDriveDownloadDetails driveDownloadDetails;
11415 /** The end date for the unsampled report. */ 11958
11959 /// The end date for the unsampled report.
11416 core.String end_date; 11960 core.String end_date;
11417 /** The filters for the unsampled report. */ 11961
11962 /// The filters for the unsampled report.
11418 core.String filters; 11963 core.String filters;
11419 /** Unsampled report ID. */ 11964
11965 /// Unsampled report ID.
11420 core.String id; 11966 core.String id;
11421 /** Resource type for an Analytics unsampled report. */ 11967
11968 /// Resource type for an Analytics unsampled report.
11422 core.String kind; 11969 core.String kind;
11423 /** The metrics for the unsampled report. */ 11970
11971 /// The metrics for the unsampled report.
11424 core.String metrics; 11972 core.String metrics;
11425 /** View (Profile) ID to which this unsampled report belongs. */ 11973
11974 /// View (Profile) ID to which this unsampled report belongs.
11426 core.String profileId; 11975 core.String profileId;
11427 /** The segment for the unsampled report. */ 11976
11977 /// The segment for the unsampled report.
11428 core.String segment; 11978 core.String segment;
11429 /** Link for this unsampled report. */ 11979
11980 /// Link for this unsampled report.
11430 core.String selfLink; 11981 core.String selfLink;
11431 /** The start date for the unsampled report. */ 11982
11983 /// The start date for the unsampled report.
11432 core.String start_date; 11984 core.String start_date;
11433 /** 11985
11434 * Status of this unsampled report. Possible values are PENDING, COMPLETED, or 11986 /// Status of this unsampled report. Possible values are PENDING, COMPLETED,
11435 * FAILED. 11987 /// or FAILED.
11436 */
11437 core.String status; 11988 core.String status;
11438 /** Title of the unsampled report. */ 11989
11990 /// Title of the unsampled report.
11439 core.String title; 11991 core.String title;
11440 /** Time this unsampled report was last modified. */ 11992
11993 /// Time this unsampled report was last modified.
11441 core.DateTime updated; 11994 core.DateTime updated;
11442 /** 11995
11443 * Web property ID to which this unsampled report belongs. The web property ID 11996 /// Web property ID to which this unsampled report belongs. The web property
11444 * is of the form UA-XXXXX-YY. 11997 /// ID is of the form UA-XXXXX-YY.
11445 */
11446 core.String webPropertyId; 11998 core.String webPropertyId;
11447 11999
11448 UnsampledReport(); 12000 UnsampledReport();
11449 12001
11450 UnsampledReport.fromJson(core.Map _json) { 12002 UnsampledReport.fromJson(core.Map _json) {
11451 if (_json.containsKey("accountId")) { 12003 if (_json.containsKey("accountId")) {
11452 accountId = _json["accountId"]; 12004 accountId = _json["accountId"];
11453 } 12005 }
11454 if (_json.containsKey("cloudStorageDownloadDetails")) { 12006 if (_json.containsKey("cloudStorageDownloadDetails")) {
11455 cloudStorageDownloadDetails = new UnsampledReportCloudStorageDownloadDetai ls.fromJson(_json["cloudStorageDownloadDetails"]); 12007 cloudStorageDownloadDetails =
12008 new UnsampledReportCloudStorageDownloadDetails.fromJson(
12009 _json["cloudStorageDownloadDetails"]);
11456 } 12010 }
11457 if (_json.containsKey("created")) { 12011 if (_json.containsKey("created")) {
11458 created = core.DateTime.parse(_json["created"]); 12012 created = core.DateTime.parse(_json["created"]);
11459 } 12013 }
11460 if (_json.containsKey("dimensions")) { 12014 if (_json.containsKey("dimensions")) {
11461 dimensions = _json["dimensions"]; 12015 dimensions = _json["dimensions"];
11462 } 12016 }
11463 if (_json.containsKey("downloadType")) { 12017 if (_json.containsKey("downloadType")) {
11464 downloadType = _json["downloadType"]; 12018 downloadType = _json["downloadType"];
11465 } 12019 }
11466 if (_json.containsKey("driveDownloadDetails")) { 12020 if (_json.containsKey("driveDownloadDetails")) {
11467 driveDownloadDetails = new UnsampledReportDriveDownloadDetails.fromJson(_j son["driveDownloadDetails"]); 12021 driveDownloadDetails = new UnsampledReportDriveDownloadDetails.fromJson(
12022 _json["driveDownloadDetails"]);
11468 } 12023 }
11469 if (_json.containsKey("end-date")) { 12024 if (_json.containsKey("end-date")) {
11470 end_date = _json["end-date"]; 12025 end_date = _json["end-date"];
11471 } 12026 }
11472 if (_json.containsKey("filters")) { 12027 if (_json.containsKey("filters")) {
11473 filters = _json["filters"]; 12028 filters = _json["filters"];
11474 } 12029 }
11475 if (_json.containsKey("id")) { 12030 if (_json.containsKey("id")) {
11476 id = _json["id"]; 12031 id = _json["id"];
11477 } 12032 }
(...skipping 23 matching lines...) Expand all
11501 } 12056 }
11502 if (_json.containsKey("updated")) { 12057 if (_json.containsKey("updated")) {
11503 updated = core.DateTime.parse(_json["updated"]); 12058 updated = core.DateTime.parse(_json["updated"]);
11504 } 12059 }
11505 if (_json.containsKey("webPropertyId")) { 12060 if (_json.containsKey("webPropertyId")) {
11506 webPropertyId = _json["webPropertyId"]; 12061 webPropertyId = _json["webPropertyId"];
11507 } 12062 }
11508 } 12063 }
11509 12064
11510 core.Map<core.String, core.Object> toJson() { 12065 core.Map<core.String, core.Object> toJson() {
11511 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12066 final core.Map<core.String, core.Object> _json =
12067 new core.Map<core.String, core.Object>();
11512 if (accountId != null) { 12068 if (accountId != null) {
11513 _json["accountId"] = accountId; 12069 _json["accountId"] = accountId;
11514 } 12070 }
11515 if (cloudStorageDownloadDetails != null) { 12071 if (cloudStorageDownloadDetails != null) {
11516 _json["cloudStorageDownloadDetails"] = (cloudStorageDownloadDetails).toJso n(); 12072 _json["cloudStorageDownloadDetails"] =
12073 (cloudStorageDownloadDetails).toJson();
11517 } 12074 }
11518 if (created != null) { 12075 if (created != null) {
11519 _json["created"] = (created).toIso8601String(); 12076 _json["created"] = (created).toIso8601String();
11520 } 12077 }
11521 if (dimensions != null) { 12078 if (dimensions != null) {
11522 _json["dimensions"] = dimensions; 12079 _json["dimensions"] = dimensions;
11523 } 12080 }
11524 if (downloadType != null) { 12081 if (downloadType != null) {
11525 _json["downloadType"] = downloadType; 12082 _json["downloadType"] = downloadType;
11526 } 12083 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
11563 if (updated != null) { 12120 if (updated != null) {
11564 _json["updated"] = (updated).toIso8601String(); 12121 _json["updated"] = (updated).toIso8601String();
11565 } 12122 }
11566 if (webPropertyId != null) { 12123 if (webPropertyId != null) {
11567 _json["webPropertyId"] = webPropertyId; 12124 _json["webPropertyId"] = webPropertyId;
11568 } 12125 }
11569 return _json; 12126 return _json;
11570 } 12127 }
11571 } 12128 }
11572 12129
11573 /** 12130 /// An unsampled report collection lists Analytics unsampled reports to which
11574 * An unsampled report collection lists Analytics unsampled reports to which the 12131 /// the user has access. Each view (profile) can have a set of unsampled
11575 * user has access. Each view (profile) can have a set of unsampled reports. 12132 /// reports. Each resource in the unsampled report collection corresponds to a
11576 * Each resource in the unsampled report collection corresponds to a single 12133 /// single Analytics unsampled report.
11577 * Analytics unsampled report.
11578 */
11579 class UnsampledReports { 12134 class UnsampledReports {
11580 /** A list of unsampled reports. */ 12135 /// A list of unsampled reports.
11581 core.List<UnsampledReport> items; 12136 core.List<UnsampledReport> items;
11582 /** 12137
11583 * The maximum number of resources the response can contain, regardless of the 12138 /// The maximum number of resources the response can contain, regardless of
11584 * actual number of resources returned. Its value ranges from 1 to 1000 with a 12139 /// the actual number of resources returned. Its value ranges from 1 to 1000
11585 * value of 1000 by default, or otherwise specified by the max-results query 12140 /// with a value of 1000 by default, or otherwise specified by the
11586 * parameter. 12141 /// max-results query parameter.
11587 */
11588 core.int itemsPerPage; 12142 core.int itemsPerPage;
11589 /** Collection type. */ 12143
12144 /// Collection type.
11590 core.String kind; 12145 core.String kind;
11591 /** Link to next page for this unsampled report collection. */ 12146
12147 /// Link to next page for this unsampled report collection.
11592 core.String nextLink; 12148 core.String nextLink;
11593 /** Link to previous page for this unsampled report collection. */ 12149
12150 /// Link to previous page for this unsampled report collection.
11594 core.String previousLink; 12151 core.String previousLink;
11595 /** 12152
11596 * The starting index of the resources, which is 1 by default or otherwise 12153 /// The starting index of the resources, which is 1 by default or otherwise
11597 * specified by the start-index query parameter. 12154 /// specified by the start-index query parameter.
11598 */
11599 core.int startIndex; 12155 core.int startIndex;
11600 /** 12156
11601 * The total number of results for the query, regardless of the number of 12157 /// The total number of results for the query, regardless of the number of
11602 * resources in the result. 12158 /// resources in the result.
11603 */
11604 core.int totalResults; 12159 core.int totalResults;
11605 /** Email ID of the authenticated user */ 12160
12161 /// Email ID of the authenticated user
11606 core.String username; 12162 core.String username;
11607 12163
11608 UnsampledReports(); 12164 UnsampledReports();
11609 12165
11610 UnsampledReports.fromJson(core.Map _json) { 12166 UnsampledReports.fromJson(core.Map _json) {
11611 if (_json.containsKey("items")) { 12167 if (_json.containsKey("items")) {
11612 items = _json["items"].map((value) => new UnsampledReport.fromJson(value)) .toList(); 12168 items = _json["items"]
12169 .map((value) => new UnsampledReport.fromJson(value))
12170 .toList();
11613 } 12171 }
11614 if (_json.containsKey("itemsPerPage")) { 12172 if (_json.containsKey("itemsPerPage")) {
11615 itemsPerPage = _json["itemsPerPage"]; 12173 itemsPerPage = _json["itemsPerPage"];
11616 } 12174 }
11617 if (_json.containsKey("kind")) { 12175 if (_json.containsKey("kind")) {
11618 kind = _json["kind"]; 12176 kind = _json["kind"];
11619 } 12177 }
11620 if (_json.containsKey("nextLink")) { 12178 if (_json.containsKey("nextLink")) {
11621 nextLink = _json["nextLink"]; 12179 nextLink = _json["nextLink"];
11622 } 12180 }
11623 if (_json.containsKey("previousLink")) { 12181 if (_json.containsKey("previousLink")) {
11624 previousLink = _json["previousLink"]; 12182 previousLink = _json["previousLink"];
11625 } 12183 }
11626 if (_json.containsKey("startIndex")) { 12184 if (_json.containsKey("startIndex")) {
11627 startIndex = _json["startIndex"]; 12185 startIndex = _json["startIndex"];
11628 } 12186 }
11629 if (_json.containsKey("totalResults")) { 12187 if (_json.containsKey("totalResults")) {
11630 totalResults = _json["totalResults"]; 12188 totalResults = _json["totalResults"];
11631 } 12189 }
11632 if (_json.containsKey("username")) { 12190 if (_json.containsKey("username")) {
11633 username = _json["username"]; 12191 username = _json["username"];
11634 } 12192 }
11635 } 12193 }
11636 12194
11637 core.Map<core.String, core.Object> toJson() { 12195 core.Map<core.String, core.Object> toJson() {
11638 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12196 final core.Map<core.String, core.Object> _json =
12197 new core.Map<core.String, core.Object>();
11639 if (items != null) { 12198 if (items != null) {
11640 _json["items"] = items.map((value) => (value).toJson()).toList(); 12199 _json["items"] = items.map((value) => (value).toJson()).toList();
11641 } 12200 }
11642 if (itemsPerPage != null) { 12201 if (itemsPerPage != null) {
11643 _json["itemsPerPage"] = itemsPerPage; 12202 _json["itemsPerPage"] = itemsPerPage;
11644 } 12203 }
11645 if (kind != null) { 12204 if (kind != null) {
11646 _json["kind"] = kind; 12205 _json["kind"] = kind;
11647 } 12206 }
11648 if (nextLink != null) { 12207 if (nextLink != null) {
11649 _json["nextLink"] = nextLink; 12208 _json["nextLink"] = nextLink;
11650 } 12209 }
11651 if (previousLink != null) { 12210 if (previousLink != null) {
11652 _json["previousLink"] = previousLink; 12211 _json["previousLink"] = previousLink;
11653 } 12212 }
11654 if (startIndex != null) { 12213 if (startIndex != null) {
11655 _json["startIndex"] = startIndex; 12214 _json["startIndex"] = startIndex;
11656 } 12215 }
11657 if (totalResults != null) { 12216 if (totalResults != null) {
11658 _json["totalResults"] = totalResults; 12217 _json["totalResults"] = totalResults;
11659 } 12218 }
11660 if (username != null) { 12219 if (username != null) {
11661 _json["username"] = username; 12220 _json["username"] = username;
11662 } 12221 }
11663 return _json; 12222 return _json;
11664 } 12223 }
11665 } 12224 }
11666 12225
11667 /** Metadata returned for an upload operation. */ 12226 /// Metadata returned for an upload operation.
11668 class Upload { 12227 class Upload {
11669 /** Account Id to which this upload belongs. */ 12228 /// Account Id to which this upload belongs.
11670 core.String accountId; 12229 core.String accountId;
11671 /** Custom data source Id to which this data import belongs. */ 12230
12231 /// Custom data source Id to which this data import belongs.
11672 core.String customDataSourceId; 12232 core.String customDataSourceId;
11673 /** Data import errors collection. */ 12233
12234 /// Data import errors collection.
11674 core.List<core.String> errors; 12235 core.List<core.String> errors;
11675 /** A unique ID for this upload. */ 12236
12237 /// A unique ID for this upload.
11676 core.String id; 12238 core.String id;
11677 /** Resource type for Analytics upload. */ 12239
12240 /// Resource type for Analytics upload.
11678 core.String kind; 12241 core.String kind;
11679 /** 12242
11680 * Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, 12243 /// Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING,
11681 * DELETED. 12244 /// DELETED.
11682 */
11683 core.String status; 12245 core.String status;
11684 /** Time this file is uploaded. */ 12246
12247 /// Time this file is uploaded.
11685 core.DateTime uploadTime; 12248 core.DateTime uploadTime;
11686 12249
11687 Upload(); 12250 Upload();
11688 12251
11689 Upload.fromJson(core.Map _json) { 12252 Upload.fromJson(core.Map _json) {
11690 if (_json.containsKey("accountId")) { 12253 if (_json.containsKey("accountId")) {
11691 accountId = _json["accountId"]; 12254 accountId = _json["accountId"];
11692 } 12255 }
11693 if (_json.containsKey("customDataSourceId")) { 12256 if (_json.containsKey("customDataSourceId")) {
11694 customDataSourceId = _json["customDataSourceId"]; 12257 customDataSourceId = _json["customDataSourceId"];
11695 } 12258 }
11696 if (_json.containsKey("errors")) { 12259 if (_json.containsKey("errors")) {
11697 errors = _json["errors"]; 12260 errors = _json["errors"];
11698 } 12261 }
11699 if (_json.containsKey("id")) { 12262 if (_json.containsKey("id")) {
11700 id = _json["id"]; 12263 id = _json["id"];
11701 } 12264 }
11702 if (_json.containsKey("kind")) { 12265 if (_json.containsKey("kind")) {
11703 kind = _json["kind"]; 12266 kind = _json["kind"];
11704 } 12267 }
11705 if (_json.containsKey("status")) { 12268 if (_json.containsKey("status")) {
11706 status = _json["status"]; 12269 status = _json["status"];
11707 } 12270 }
11708 if (_json.containsKey("uploadTime")) { 12271 if (_json.containsKey("uploadTime")) {
11709 uploadTime = core.DateTime.parse(_json["uploadTime"]); 12272 uploadTime = core.DateTime.parse(_json["uploadTime"]);
11710 } 12273 }
11711 } 12274 }
11712 12275
11713 core.Map<core.String, core.Object> toJson() { 12276 core.Map<core.String, core.Object> toJson() {
11714 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12277 final core.Map<core.String, core.Object> _json =
12278 new core.Map<core.String, core.Object>();
11715 if (accountId != null) { 12279 if (accountId != null) {
11716 _json["accountId"] = accountId; 12280 _json["accountId"] = accountId;
11717 } 12281 }
11718 if (customDataSourceId != null) { 12282 if (customDataSourceId != null) {
11719 _json["customDataSourceId"] = customDataSourceId; 12283 _json["customDataSourceId"] = customDataSourceId;
11720 } 12284 }
11721 if (errors != null) { 12285 if (errors != null) {
11722 _json["errors"] = errors; 12286 _json["errors"] = errors;
11723 } 12287 }
11724 if (id != null) { 12288 if (id != null) {
11725 _json["id"] = id; 12289 _json["id"] = id;
11726 } 12290 }
11727 if (kind != null) { 12291 if (kind != null) {
11728 _json["kind"] = kind; 12292 _json["kind"] = kind;
11729 } 12293 }
11730 if (status != null) { 12294 if (status != null) {
11731 _json["status"] = status; 12295 _json["status"] = status;
11732 } 12296 }
11733 if (uploadTime != null) { 12297 if (uploadTime != null) {
11734 _json["uploadTime"] = (uploadTime).toIso8601String(); 12298 _json["uploadTime"] = (uploadTime).toIso8601String();
11735 } 12299 }
11736 return _json; 12300 return _json;
11737 } 12301 }
11738 } 12302 }
11739 12303
11740 /** 12304 /// Upload collection lists Analytics uploads to which the user has access.
11741 * Upload collection lists Analytics uploads to which the user has access. Each 12305 /// Each custom data source can have a set of uploads. Each resource in the
11742 * custom data source can have a set of uploads. Each resource in the upload 12306 /// upload collection corresponds to a single Analytics data upload.
11743 * collection corresponds to a single Analytics data upload.
11744 */
11745 class Uploads { 12307 class Uploads {
11746 /** A list of uploads. */ 12308 /// A list of uploads.
11747 core.List<Upload> items; 12309 core.List<Upload> items;
11748 /** 12310
11749 * The maximum number of resources the response can contain, regardless of the 12311 /// The maximum number of resources the response can contain, regardless of
11750 * actual number of resources returned. Its value ranges from 1 to 1000 with a 12312 /// the actual number of resources returned. Its value ranges from 1 to 1000
11751 * value of 1000 by default, or otherwise specified by the max-results query 12313 /// with a value of 1000 by default, or otherwise specified by the
11752 * parameter. 12314 /// max-results query parameter.
11753 */
11754 core.int itemsPerPage; 12315 core.int itemsPerPage;
11755 /** Collection type. */ 12316
12317 /// Collection type.
11756 core.String kind; 12318 core.String kind;
11757 /** Link to next page for this upload collection. */ 12319
12320 /// Link to next page for this upload collection.
11758 core.String nextLink; 12321 core.String nextLink;
11759 /** Link to previous page for this upload collection. */ 12322
12323 /// Link to previous page for this upload collection.
11760 core.String previousLink; 12324 core.String previousLink;
11761 /** 12325
11762 * The starting index of the resources, which is 1 by default or otherwise 12326 /// The starting index of the resources, which is 1 by default or otherwise
11763 * specified by the start-index query parameter. 12327 /// specified by the start-index query parameter.
11764 */
11765 core.int startIndex; 12328 core.int startIndex;
11766 /** 12329
11767 * The total number of results for the query, regardless of the number of 12330 /// The total number of results for the query, regardless of the number of
11768 * resources in the result. 12331 /// resources in the result.
11769 */
11770 core.int totalResults; 12332 core.int totalResults;
11771 12333
11772 Uploads(); 12334 Uploads();
11773 12335
11774 Uploads.fromJson(core.Map _json) { 12336 Uploads.fromJson(core.Map _json) {
11775 if (_json.containsKey("items")) { 12337 if (_json.containsKey("items")) {
11776 items = _json["items"].map((value) => new Upload.fromJson(value)).toList() ; 12338 items =
12339 _json["items"].map((value) => new Upload.fromJson(value)).toList();
11777 } 12340 }
11778 if (_json.containsKey("itemsPerPage")) { 12341 if (_json.containsKey("itemsPerPage")) {
11779 itemsPerPage = _json["itemsPerPage"]; 12342 itemsPerPage = _json["itemsPerPage"];
11780 } 12343 }
11781 if (_json.containsKey("kind")) { 12344 if (_json.containsKey("kind")) {
11782 kind = _json["kind"]; 12345 kind = _json["kind"];
11783 } 12346 }
11784 if (_json.containsKey("nextLink")) { 12347 if (_json.containsKey("nextLink")) {
11785 nextLink = _json["nextLink"]; 12348 nextLink = _json["nextLink"];
11786 } 12349 }
11787 if (_json.containsKey("previousLink")) { 12350 if (_json.containsKey("previousLink")) {
11788 previousLink = _json["previousLink"]; 12351 previousLink = _json["previousLink"];
11789 } 12352 }
11790 if (_json.containsKey("startIndex")) { 12353 if (_json.containsKey("startIndex")) {
11791 startIndex = _json["startIndex"]; 12354 startIndex = _json["startIndex"];
11792 } 12355 }
11793 if (_json.containsKey("totalResults")) { 12356 if (_json.containsKey("totalResults")) {
11794 totalResults = _json["totalResults"]; 12357 totalResults = _json["totalResults"];
11795 } 12358 }
11796 } 12359 }
11797 12360
11798 core.Map<core.String, core.Object> toJson() { 12361 core.Map<core.String, core.Object> toJson() {
11799 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12362 final core.Map<core.String, core.Object> _json =
12363 new core.Map<core.String, core.Object>();
11800 if (items != null) { 12364 if (items != null) {
11801 _json["items"] = items.map((value) => (value).toJson()).toList(); 12365 _json["items"] = items.map((value) => (value).toJson()).toList();
11802 } 12366 }
11803 if (itemsPerPage != null) { 12367 if (itemsPerPage != null) {
11804 _json["itemsPerPage"] = itemsPerPage; 12368 _json["itemsPerPage"] = itemsPerPage;
11805 } 12369 }
11806 if (kind != null) { 12370 if (kind != null) {
11807 _json["kind"] = kind; 12371 _json["kind"] = kind;
11808 } 12372 }
11809 if (nextLink != null) { 12373 if (nextLink != null) {
11810 _json["nextLink"] = nextLink; 12374 _json["nextLink"] = nextLink;
11811 } 12375 }
11812 if (previousLink != null) { 12376 if (previousLink != null) {
11813 _json["previousLink"] = previousLink; 12377 _json["previousLink"] = previousLink;
11814 } 12378 }
11815 if (startIndex != null) { 12379 if (startIndex != null) {
11816 _json["startIndex"] = startIndex; 12380 _json["startIndex"] = startIndex;
11817 } 12381 }
11818 if (totalResults != null) { 12382 if (totalResults != null) {
11819 _json["totalResults"] = totalResults; 12383 _json["totalResults"] = totalResults;
11820 } 12384 }
11821 return _json; 12385 return _json;
11822 } 12386 }
11823 } 12387 }
11824 12388
11825 /** JSON template for a user reference. */ 12389 /// JSON template for a user reference.
11826 class UserRef { 12390 class UserRef {
11827 /** Email ID of this user. */ 12391 /// Email ID of this user.
11828 core.String email; 12392 core.String email;
11829 /** User ID. */ 12393
12394 /// User ID.
11830 core.String id; 12395 core.String id;
11831 core.String kind; 12396 core.String kind;
11832 12397
11833 UserRef(); 12398 UserRef();
11834 12399
11835 UserRef.fromJson(core.Map _json) { 12400 UserRef.fromJson(core.Map _json) {
11836 if (_json.containsKey("email")) { 12401 if (_json.containsKey("email")) {
11837 email = _json["email"]; 12402 email = _json["email"];
11838 } 12403 }
11839 if (_json.containsKey("id")) { 12404 if (_json.containsKey("id")) {
11840 id = _json["id"]; 12405 id = _json["id"];
11841 } 12406 }
11842 if (_json.containsKey("kind")) { 12407 if (_json.containsKey("kind")) {
11843 kind = _json["kind"]; 12408 kind = _json["kind"];
11844 } 12409 }
11845 } 12410 }
11846 12411
11847 core.Map<core.String, core.Object> toJson() { 12412 core.Map<core.String, core.Object> toJson() {
11848 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12413 final core.Map<core.String, core.Object> _json =
12414 new core.Map<core.String, core.Object>();
11849 if (email != null) { 12415 if (email != null) {
11850 _json["email"] = email; 12416 _json["email"] = email;
11851 } 12417 }
11852 if (id != null) { 12418 if (id != null) {
11853 _json["id"] = id; 12419 _json["id"] = id;
11854 } 12420 }
11855 if (kind != null) { 12421 if (kind != null) {
11856 _json["kind"] = kind; 12422 _json["kind"] = kind;
11857 } 12423 }
11858 return _json; 12424 return _json;
11859 } 12425 }
11860 } 12426 }
11861 12427
11862 /** JSON template for a web property reference. */ 12428 /// JSON template for a web property reference.
11863 class WebPropertyRef { 12429 class WebPropertyRef {
11864 /** Account ID to which this web property belongs. */ 12430 /// Account ID to which this web property belongs.
11865 core.String accountId; 12431 core.String accountId;
11866 /** Link for this web property. */ 12432
12433 /// Link for this web property.
11867 core.String href; 12434 core.String href;
11868 /** Web property ID of the form UA-XXXXX-YY. */ 12435
12436 /// Web property ID of the form UA-XXXXX-YY.
11869 core.String id; 12437 core.String id;
11870 /** Internal ID for this web property. */ 12438
12439 /// Internal ID for this web property.
11871 core.String internalWebPropertyId; 12440 core.String internalWebPropertyId;
11872 /** Analytics web property reference. */ 12441
12442 /// Analytics web property reference.
11873 core.String kind; 12443 core.String kind;
11874 /** Name of this web property. */ 12444
12445 /// Name of this web property.
11875 core.String name; 12446 core.String name;
11876 12447
11877 WebPropertyRef(); 12448 WebPropertyRef();
11878 12449
11879 WebPropertyRef.fromJson(core.Map _json) { 12450 WebPropertyRef.fromJson(core.Map _json) {
11880 if (_json.containsKey("accountId")) { 12451 if (_json.containsKey("accountId")) {
11881 accountId = _json["accountId"]; 12452 accountId = _json["accountId"];
11882 } 12453 }
11883 if (_json.containsKey("href")) { 12454 if (_json.containsKey("href")) {
11884 href = _json["href"]; 12455 href = _json["href"];
11885 } 12456 }
11886 if (_json.containsKey("id")) { 12457 if (_json.containsKey("id")) {
11887 id = _json["id"]; 12458 id = _json["id"];
11888 } 12459 }
11889 if (_json.containsKey("internalWebPropertyId")) { 12460 if (_json.containsKey("internalWebPropertyId")) {
11890 internalWebPropertyId = _json["internalWebPropertyId"]; 12461 internalWebPropertyId = _json["internalWebPropertyId"];
11891 } 12462 }
11892 if (_json.containsKey("kind")) { 12463 if (_json.containsKey("kind")) {
11893 kind = _json["kind"]; 12464 kind = _json["kind"];
11894 } 12465 }
11895 if (_json.containsKey("name")) { 12466 if (_json.containsKey("name")) {
11896 name = _json["name"]; 12467 name = _json["name"];
11897 } 12468 }
11898 } 12469 }
11899 12470
11900 core.Map<core.String, core.Object> toJson() { 12471 core.Map<core.String, core.Object> toJson() {
11901 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12472 final core.Map<core.String, core.Object> _json =
12473 new core.Map<core.String, core.Object>();
11902 if (accountId != null) { 12474 if (accountId != null) {
11903 _json["accountId"] = accountId; 12475 _json["accountId"] = accountId;
11904 } 12476 }
11905 if (href != null) { 12477 if (href != null) {
11906 _json["href"] = href; 12478 _json["href"] = href;
11907 } 12479 }
11908 if (id != null) { 12480 if (id != null) {
11909 _json["id"] = id; 12481 _json["id"] = id;
11910 } 12482 }
11911 if (internalWebPropertyId != null) { 12483 if (internalWebPropertyId != null) {
11912 _json["internalWebPropertyId"] = internalWebPropertyId; 12484 _json["internalWebPropertyId"] = internalWebPropertyId;
11913 } 12485 }
11914 if (kind != null) { 12486 if (kind != null) {
11915 _json["kind"] = kind; 12487 _json["kind"] = kind;
11916 } 12488 }
11917 if (name != null) { 12489 if (name != null) {
11918 _json["name"] = name; 12490 _json["name"] = name;
11919 } 12491 }
11920 return _json; 12492 return _json;
11921 } 12493 }
11922 } 12494 }
11923 12495
11924 /** 12496 /// JSON template for an Analytics WebPropertySummary. WebPropertySummary
11925 * JSON template for an Analytics WebPropertySummary. WebPropertySummary returns 12497 /// returns basic information (i.e., summary) for a web property.
11926 * basic information (i.e., summary) for a web property.
11927 */
11928 class WebPropertySummary { 12498 class WebPropertySummary {
11929 /** Web property ID of the form UA-XXXXX-YY. */ 12499 /// Web property ID of the form UA-XXXXX-YY.
11930 core.String id; 12500 core.String id;
11931 /** Internal ID for this web property. */ 12501
12502 /// Internal ID for this web property.
11932 core.String internalWebPropertyId; 12503 core.String internalWebPropertyId;
11933 /** Resource type for Analytics WebPropertySummary. */ 12504
12505 /// Resource type for Analytics WebPropertySummary.
11934 core.String kind; 12506 core.String kind;
11935 /** Level for this web property. Possible values are STANDARD or PREMIUM. */ 12507
12508 /// Level for this web property. Possible values are STANDARD or PREMIUM.
11936 core.String level; 12509 core.String level;
11937 /** Web property name. */ 12510
12511 /// Web property name.
11938 core.String name; 12512 core.String name;
11939 /** List of profiles under this web property. */ 12513
12514 /// List of profiles under this web property.
11940 core.List<ProfileSummary> profiles; 12515 core.List<ProfileSummary> profiles;
11941 /** Indicates whether this web property is starred or not. */ 12516
12517 /// Indicates whether this web property is starred or not.
11942 core.bool starred; 12518 core.bool starred;
11943 /** Website url for this web property. */ 12519
12520 /// Website url for this web property.
11944 core.String websiteUrl; 12521 core.String websiteUrl;
11945 12522
11946 WebPropertySummary(); 12523 WebPropertySummary();
11947 12524
11948 WebPropertySummary.fromJson(core.Map _json) { 12525 WebPropertySummary.fromJson(core.Map _json) {
11949 if (_json.containsKey("id")) { 12526 if (_json.containsKey("id")) {
11950 id = _json["id"]; 12527 id = _json["id"];
11951 } 12528 }
11952 if (_json.containsKey("internalWebPropertyId")) { 12529 if (_json.containsKey("internalWebPropertyId")) {
11953 internalWebPropertyId = _json["internalWebPropertyId"]; 12530 internalWebPropertyId = _json["internalWebPropertyId"];
11954 } 12531 }
11955 if (_json.containsKey("kind")) { 12532 if (_json.containsKey("kind")) {
11956 kind = _json["kind"]; 12533 kind = _json["kind"];
11957 } 12534 }
11958 if (_json.containsKey("level")) { 12535 if (_json.containsKey("level")) {
11959 level = _json["level"]; 12536 level = _json["level"];
11960 } 12537 }
11961 if (_json.containsKey("name")) { 12538 if (_json.containsKey("name")) {
11962 name = _json["name"]; 12539 name = _json["name"];
11963 } 12540 }
11964 if (_json.containsKey("profiles")) { 12541 if (_json.containsKey("profiles")) {
11965 profiles = _json["profiles"].map((value) => new ProfileSummary.fromJson(va lue)).toList(); 12542 profiles = _json["profiles"]
12543 .map((value) => new ProfileSummary.fromJson(value))
12544 .toList();
11966 } 12545 }
11967 if (_json.containsKey("starred")) { 12546 if (_json.containsKey("starred")) {
11968 starred = _json["starred"]; 12547 starred = _json["starred"];
11969 } 12548 }
11970 if (_json.containsKey("websiteUrl")) { 12549 if (_json.containsKey("websiteUrl")) {
11971 websiteUrl = _json["websiteUrl"]; 12550 websiteUrl = _json["websiteUrl"];
11972 } 12551 }
11973 } 12552 }
11974 12553
11975 core.Map<core.String, core.Object> toJson() { 12554 core.Map<core.String, core.Object> toJson() {
11976 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12555 final core.Map<core.String, core.Object> _json =
12556 new core.Map<core.String, core.Object>();
11977 if (id != null) { 12557 if (id != null) {
11978 _json["id"] = id; 12558 _json["id"] = id;
11979 } 12559 }
11980 if (internalWebPropertyId != null) { 12560 if (internalWebPropertyId != null) {
11981 _json["internalWebPropertyId"] = internalWebPropertyId; 12561 _json["internalWebPropertyId"] = internalWebPropertyId;
11982 } 12562 }
11983 if (kind != null) { 12563 if (kind != null) {
11984 _json["kind"] = kind; 12564 _json["kind"] = kind;
11985 } 12565 }
11986 if (level != null) { 12566 if (level != null) {
11987 _json["level"] = level; 12567 _json["level"] = level;
11988 } 12568 }
11989 if (name != null) { 12569 if (name != null) {
11990 _json["name"] = name; 12570 _json["name"] = name;
11991 } 12571 }
11992 if (profiles != null) { 12572 if (profiles != null) {
11993 _json["profiles"] = profiles.map((value) => (value).toJson()).toList(); 12573 _json["profiles"] = profiles.map((value) => (value).toJson()).toList();
11994 } 12574 }
11995 if (starred != null) { 12575 if (starred != null) {
11996 _json["starred"] = starred; 12576 _json["starred"] = starred;
11997 } 12577 }
11998 if (websiteUrl != null) { 12578 if (websiteUrl != null) {
11999 _json["websiteUrl"] = websiteUrl; 12579 _json["websiteUrl"] = websiteUrl;
12000 } 12580 }
12001 return _json; 12581 return _json;
12002 } 12582 }
12003 } 12583 }
12004 12584
12005 /** 12585 /// A web property collection lists Analytics web properties to which the user
12006 * A web property collection lists Analytics web properties to which the user 12586 /// has access. Each resource in the collection corresponds to a single
12007 * has access. Each resource in the collection corresponds to a single Analytics 12587 /// Analytics web property.
12008 * web property.
12009 */
12010 class Webproperties { 12588 class Webproperties {
12011 /** A list of web properties. */ 12589 /// A list of web properties.
12012 core.List<Webproperty> items; 12590 core.List<Webproperty> items;
12013 /** 12591
12014 * The maximum number of resources the response can contain, regardless of the 12592 /// The maximum number of resources the response can contain, regardless of
12015 * actual number of resources returned. Its value ranges from 1 to 1000 with a 12593 /// the actual number of resources returned. Its value ranges from 1 to 1000
12016 * value of 1000 by default, or otherwise specified by the max-results query 12594 /// with a value of 1000 by default, or otherwise specified by the
12017 * parameter. 12595 /// max-results query parameter.
12018 */
12019 core.int itemsPerPage; 12596 core.int itemsPerPage;
12020 /** Collection type. */ 12597
12598 /// Collection type.
12021 core.String kind; 12599 core.String kind;
12022 /** Link to next page for this web property collection. */ 12600
12601 /// Link to next page for this web property collection.
12023 core.String nextLink; 12602 core.String nextLink;
12024 /** Link to previous page for this web property collection. */ 12603
12604 /// Link to previous page for this web property collection.
12025 core.String previousLink; 12605 core.String previousLink;
12026 /** 12606
12027 * The starting index of the resources, which is 1 by default or otherwise 12607 /// The starting index of the resources, which is 1 by default or otherwise
12028 * specified by the start-index query parameter. 12608 /// specified by the start-index query parameter.
12029 */
12030 core.int startIndex; 12609 core.int startIndex;
12031 /** 12610
12032 * The total number of results for the query, regardless of the number of 12611 /// The total number of results for the query, regardless of the number of
12033 * results in the response. 12612 /// results in the response.
12034 */
12035 core.int totalResults; 12613 core.int totalResults;
12036 /** Email ID of the authenticated user */ 12614
12615 /// Email ID of the authenticated user
12037 core.String username; 12616 core.String username;
12038 12617
12039 Webproperties(); 12618 Webproperties();
12040 12619
12041 Webproperties.fromJson(core.Map _json) { 12620 Webproperties.fromJson(core.Map _json) {
12042 if (_json.containsKey("items")) { 12621 if (_json.containsKey("items")) {
12043 items = _json["items"].map((value) => new Webproperty.fromJson(value)).toL ist(); 12622 items = _json["items"]
12623 .map((value) => new Webproperty.fromJson(value))
12624 .toList();
12044 } 12625 }
12045 if (_json.containsKey("itemsPerPage")) { 12626 if (_json.containsKey("itemsPerPage")) {
12046 itemsPerPage = _json["itemsPerPage"]; 12627 itemsPerPage = _json["itemsPerPage"];
12047 } 12628 }
12048 if (_json.containsKey("kind")) { 12629 if (_json.containsKey("kind")) {
12049 kind = _json["kind"]; 12630 kind = _json["kind"];
12050 } 12631 }
12051 if (_json.containsKey("nextLink")) { 12632 if (_json.containsKey("nextLink")) {
12052 nextLink = _json["nextLink"]; 12633 nextLink = _json["nextLink"];
12053 } 12634 }
12054 if (_json.containsKey("previousLink")) { 12635 if (_json.containsKey("previousLink")) {
12055 previousLink = _json["previousLink"]; 12636 previousLink = _json["previousLink"];
12056 } 12637 }
12057 if (_json.containsKey("startIndex")) { 12638 if (_json.containsKey("startIndex")) {
12058 startIndex = _json["startIndex"]; 12639 startIndex = _json["startIndex"];
12059 } 12640 }
12060 if (_json.containsKey("totalResults")) { 12641 if (_json.containsKey("totalResults")) {
12061 totalResults = _json["totalResults"]; 12642 totalResults = _json["totalResults"];
12062 } 12643 }
12063 if (_json.containsKey("username")) { 12644 if (_json.containsKey("username")) {
12064 username = _json["username"]; 12645 username = _json["username"];
12065 } 12646 }
12066 } 12647 }
12067 12648
12068 core.Map<core.String, core.Object> toJson() { 12649 core.Map<core.String, core.Object> toJson() {
12069 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12650 final core.Map<core.String, core.Object> _json =
12651 new core.Map<core.String, core.Object>();
12070 if (items != null) { 12652 if (items != null) {
12071 _json["items"] = items.map((value) => (value).toJson()).toList(); 12653 _json["items"] = items.map((value) => (value).toJson()).toList();
12072 } 12654 }
12073 if (itemsPerPage != null) { 12655 if (itemsPerPage != null) {
12074 _json["itemsPerPage"] = itemsPerPage; 12656 _json["itemsPerPage"] = itemsPerPage;
12075 } 12657 }
12076 if (kind != null) { 12658 if (kind != null) {
12077 _json["kind"] = kind; 12659 _json["kind"] = kind;
12078 } 12660 }
12079 if (nextLink != null) { 12661 if (nextLink != null) {
12080 _json["nextLink"] = nextLink; 12662 _json["nextLink"] = nextLink;
12081 } 12663 }
12082 if (previousLink != null) { 12664 if (previousLink != null) {
12083 _json["previousLink"] = previousLink; 12665 _json["previousLink"] = previousLink;
12084 } 12666 }
12085 if (startIndex != null) { 12667 if (startIndex != null) {
12086 _json["startIndex"] = startIndex; 12668 _json["startIndex"] = startIndex;
12087 } 12669 }
12088 if (totalResults != null) { 12670 if (totalResults != null) {
12089 _json["totalResults"] = totalResults; 12671 _json["totalResults"] = totalResults;
12090 } 12672 }
12091 if (username != null) { 12673 if (username != null) {
12092 _json["username"] = username; 12674 _json["username"] = username;
12093 } 12675 }
12094 return _json; 12676 return _json;
12095 } 12677 }
12096 } 12678 }
12097 12679
12098 /** 12680 /// Child link for this web property. Points to the list of views (profiles)
12099 * Child link for this web property. Points to the list of views (profiles) for 12681 /// for this web property.
12100 * this web property.
12101 */
12102 class WebpropertyChildLink { 12682 class WebpropertyChildLink {
12103 /** Link to the list of views (profiles) for this web property. */ 12683 /// Link to the list of views (profiles) for this web property.
12104 core.String href; 12684 core.String href;
12105 /** Type of the parent link. Its value is "analytics#profiles". */ 12685
12686 /// Type of the parent link. Its value is "analytics#profiles".
12106 core.String type; 12687 core.String type;
12107 12688
12108 WebpropertyChildLink(); 12689 WebpropertyChildLink();
12109 12690
12110 WebpropertyChildLink.fromJson(core.Map _json) { 12691 WebpropertyChildLink.fromJson(core.Map _json) {
12111 if (_json.containsKey("href")) { 12692 if (_json.containsKey("href")) {
12112 href = _json["href"]; 12693 href = _json["href"];
12113 } 12694 }
12114 if (_json.containsKey("type")) { 12695 if (_json.containsKey("type")) {
12115 type = _json["type"]; 12696 type = _json["type"];
12116 } 12697 }
12117 } 12698 }
12118 12699
12119 core.Map<core.String, core.Object> toJson() { 12700 core.Map<core.String, core.Object> toJson() {
12120 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12701 final core.Map<core.String, core.Object> _json =
12702 new core.Map<core.String, core.Object>();
12121 if (href != null) { 12703 if (href != null) {
12122 _json["href"] = href; 12704 _json["href"] = href;
12123 } 12705 }
12124 if (type != null) { 12706 if (type != null) {
12125 _json["type"] = type; 12707 _json["type"] = type;
12126 } 12708 }
12127 return _json; 12709 return _json;
12128 } 12710 }
12129 } 12711 }
12130 12712
12131 /** 12713 /// Parent link for this web property. Points to the account to which this web
12132 * Parent link for this web property. Points to the account to which this web 12714 /// property belongs.
12133 * property belongs.
12134 */
12135 class WebpropertyParentLink { 12715 class WebpropertyParentLink {
12136 /** Link to the account for this web property. */ 12716 /// Link to the account for this web property.
12137 core.String href; 12717 core.String href;
12138 /** Type of the parent link. Its value is "analytics#account". */ 12718
12719 /// Type of the parent link. Its value is "analytics#account".
12139 core.String type; 12720 core.String type;
12140 12721
12141 WebpropertyParentLink(); 12722 WebpropertyParentLink();
12142 12723
12143 WebpropertyParentLink.fromJson(core.Map _json) { 12724 WebpropertyParentLink.fromJson(core.Map _json) {
12144 if (_json.containsKey("href")) { 12725 if (_json.containsKey("href")) {
12145 href = _json["href"]; 12726 href = _json["href"];
12146 } 12727 }
12147 if (_json.containsKey("type")) { 12728 if (_json.containsKey("type")) {
12148 type = _json["type"]; 12729 type = _json["type"];
12149 } 12730 }
12150 } 12731 }
12151 12732
12152 core.Map<core.String, core.Object> toJson() { 12733 core.Map<core.String, core.Object> toJson() {
12153 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12734 final core.Map<core.String, core.Object> _json =
12735 new core.Map<core.String, core.Object>();
12154 if (href != null) { 12736 if (href != null) {
12155 _json["href"] = href; 12737 _json["href"] = href;
12156 } 12738 }
12157 if (type != null) { 12739 if (type != null) {
12158 _json["type"] = type; 12740 _json["type"] = type;
12159 } 12741 }
12160 return _json; 12742 return _json;
12161 } 12743 }
12162 } 12744 }
12163 12745
12164 /** Permissions the user has for this web property. */ 12746 /// Permissions the user has for this web property.
12165 class WebpropertyPermissions { 12747 class WebpropertyPermissions {
12166 /** 12748 /// All the permissions that the user has for this web property. These
12167 * All the permissions that the user has for this web property. These include 12749 /// include any implied permissions (e.g., EDIT implies VIEW) or inherited
12168 * any implied permissions (e.g., EDIT implies VIEW) or inherited permissions 12750 /// permissions from the parent account.
12169 * from the parent account.
12170 */
12171 core.List<core.String> effective; 12751 core.List<core.String> effective;
12172 12752
12173 WebpropertyPermissions(); 12753 WebpropertyPermissions();
12174 12754
12175 WebpropertyPermissions.fromJson(core.Map _json) { 12755 WebpropertyPermissions.fromJson(core.Map _json) {
12176 if (_json.containsKey("effective")) { 12756 if (_json.containsKey("effective")) {
12177 effective = _json["effective"]; 12757 effective = _json["effective"];
12178 } 12758 }
12179 } 12759 }
12180 12760
12181 core.Map<core.String, core.Object> toJson() { 12761 core.Map<core.String, core.Object> toJson() {
12182 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12762 final core.Map<core.String, core.Object> _json =
12763 new core.Map<core.String, core.Object>();
12183 if (effective != null) { 12764 if (effective != null) {
12184 _json["effective"] = effective; 12765 _json["effective"] = effective;
12185 } 12766 }
12186 return _json; 12767 return _json;
12187 } 12768 }
12188 } 12769 }
12189 12770
12190 /** JSON template for an Analytics web property. */ 12771 /// JSON template for an Analytics web property.
12191 class Webproperty { 12772 class Webproperty {
12192 /** Account ID to which this web property belongs. */ 12773 /// Account ID to which this web property belongs.
12193 core.String accountId; 12774 core.String accountId;
12194 /** 12775
12195 * Child link for this web property. Points to the list of views (profiles) 12776 /// Child link for this web property. Points to the list of views (profiles)
12196 * for this web property. 12777 /// for this web property.
12197 */
12198 WebpropertyChildLink childLink; 12778 WebpropertyChildLink childLink;
12199 /** Time this web property was created. */ 12779
12780 /// Time this web property was created.
12200 core.DateTime created; 12781 core.DateTime created;
12201 /** Default view (profile) ID. */ 12782
12783 /// Default view (profile) ID.
12202 core.String defaultProfileId; 12784 core.String defaultProfileId;
12203 /** Web property ID of the form UA-XXXXX-YY. */ 12785
12786 /// Web property ID of the form UA-XXXXX-YY.
12204 core.String id; 12787 core.String id;
12205 /** The industry vertical/category selected for this web property. */ 12788
12789 /// The industry vertical/category selected for this web property.
12206 core.String industryVertical; 12790 core.String industryVertical;
12207 /** Internal ID for this web property. */ 12791
12792 /// Internal ID for this web property.
12208 core.String internalWebPropertyId; 12793 core.String internalWebPropertyId;
12209 /** Resource type for Analytics WebProperty. */ 12794
12795 /// Resource type for Analytics WebProperty.
12210 core.String kind; 12796 core.String kind;
12211 /** Level for this web property. Possible values are STANDARD or PREMIUM. */ 12797
12798 /// Level for this web property. Possible values are STANDARD or PREMIUM.
12212 core.String level; 12799 core.String level;
12213 /** Name of this web property. */ 12800
12801 /// Name of this web property.
12214 core.String name; 12802 core.String name;
12215 /** 12803
12216 * Parent link for this web property. Points to the account to which this web 12804 /// Parent link for this web property. Points to the account to which this
12217 * property belongs. 12805 /// web property belongs.
12218 */
12219 WebpropertyParentLink parentLink; 12806 WebpropertyParentLink parentLink;
12220 /** Permissions the user has for this web property. */ 12807
12808 /// Permissions the user has for this web property.
12221 WebpropertyPermissions permissions; 12809 WebpropertyPermissions permissions;
12222 /** View (Profile) count for this web property. */ 12810
12811 /// View (Profile) count for this web property.
12223 core.int profileCount; 12812 core.int profileCount;
12224 /** Link for this web property. */ 12813
12814 /// Link for this web property.
12225 core.String selfLink; 12815 core.String selfLink;
12226 /** Indicates whether this web property is starred or not. */ 12816
12817 /// Indicates whether this web property is starred or not.
12227 core.bool starred; 12818 core.bool starred;
12228 /** Time this web property was last modified. */ 12819
12820 /// Time this web property was last modified.
12229 core.DateTime updated; 12821 core.DateTime updated;
12230 /** Website url for this web property. */ 12822
12823 /// Website url for this web property.
12231 core.String websiteUrl; 12824 core.String websiteUrl;
12232 12825
12233 Webproperty(); 12826 Webproperty();
12234 12827
12235 Webproperty.fromJson(core.Map _json) { 12828 Webproperty.fromJson(core.Map _json) {
12236 if (_json.containsKey("accountId")) { 12829 if (_json.containsKey("accountId")) {
12237 accountId = _json["accountId"]; 12830 accountId = _json["accountId"];
12238 } 12831 }
12239 if (_json.containsKey("childLink")) { 12832 if (_json.containsKey("childLink")) {
12240 childLink = new WebpropertyChildLink.fromJson(_json["childLink"]); 12833 childLink = new WebpropertyChildLink.fromJson(_json["childLink"]);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
12280 } 12873 }
12281 if (_json.containsKey("updated")) { 12874 if (_json.containsKey("updated")) {
12282 updated = core.DateTime.parse(_json["updated"]); 12875 updated = core.DateTime.parse(_json["updated"]);
12283 } 12876 }
12284 if (_json.containsKey("websiteUrl")) { 12877 if (_json.containsKey("websiteUrl")) {
12285 websiteUrl = _json["websiteUrl"]; 12878 websiteUrl = _json["websiteUrl"];
12286 } 12879 }
12287 } 12880 }
12288 12881
12289 core.Map<core.String, core.Object> toJson() { 12882 core.Map<core.String, core.Object> toJson() {
12290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 12883 final core.Map<core.String, core.Object> _json =
12884 new core.Map<core.String, core.Object>();
12291 if (accountId != null) { 12885 if (accountId != null) {
12292 _json["accountId"] = accountId; 12886 _json["accountId"] = accountId;
12293 } 12887 }
12294 if (childLink != null) { 12888 if (childLink != null) {
12295 _json["childLink"] = (childLink).toJson(); 12889 _json["childLink"] = (childLink).toJson();
12296 } 12890 }
12297 if (created != null) { 12891 if (created != null) {
12298 _json["created"] = (created).toIso8601String(); 12892 _json["created"] = (created).toIso8601String();
12299 } 12893 }
12300 if (defaultProfileId != null) { 12894 if (defaultProfileId != null) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
12335 } 12929 }
12336 if (updated != null) { 12930 if (updated != null) {
12337 _json["updated"] = (updated).toIso8601String(); 12931 _json["updated"] = (updated).toIso8601String();
12338 } 12932 }
12339 if (websiteUrl != null) { 12933 if (websiteUrl != null) {
12340 _json["websiteUrl"] = websiteUrl; 12934 _json["websiteUrl"] = websiteUrl;
12341 } 12935 }
12342 return _json; 12936 return _json;
12343 } 12937 }
12344 } 12938 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/adsensehost/v4_1.dart ('k') | generated/googleapis/lib/analyticsreporting/v4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698