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

Side by Side Diff: generated/googleapis/lib/youtubeanalytics/v1.dart

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « generated/googleapis/lib/youtube/v3.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project).
2
1 library googleapis.youtubeAnalytics.v1; 3 library googleapis.youtubeAnalytics.v1;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection; 6 import 'dart:collection' as collection;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError;
16
17 const core.String USER_AGENT = 'dart-api-client youtubeAnalytics/v1';
15 18
16 /** Retrieve your YouTube Analytics reports. */ 19 /** Retrieve your YouTube Analytics reports. */
17 class YoutubeAnalyticsApi { 20 class YoutubeAnalyticsApi {
18 /** Manage your YouTube account */ 21 /** Manage your YouTube account */
19 static const YoutubeScope = "https://www.googleapis.com/auth/youtube"; 22 static const YoutubeScope = "https://www.googleapis.com/auth/youtube";
20 23
21 /** View your YouTube account */ 24 /** View your YouTube account */
22 static const YoutubeReadonlyScope = "https://www.googleapis.com/auth/youtube.r eadonly"; 25 static const YoutubeReadonlyScope = "https://www.googleapis.com/auth/youtube.r eadonly";
23 26
24 /** View and manage your assets and associated content on YouTube */ 27 /** View and manage your assets and associated content on YouTube */
25 static const YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepar tner"; 28 static const YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepar tner";
26 29
27 /** View YouTube Analytics monetary reports for your YouTube content */ 30 /** View YouTube Analytics monetary reports for your YouTube content */
28 static const YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/au th/yt-analytics-monetary.readonly"; 31 static const YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/au th/yt-analytics-monetary.readonly";
29 32
30 /** View YouTube Analytics reports for your YouTube content */ 33 /** View YouTube Analytics reports for your YouTube content */
31 static const YtAnalyticsReadonlyScope = "https://www.googleapis.com/auth/yt-an alytics.readonly"; 34 static const YtAnalyticsReadonlyScope = "https://www.googleapis.com/auth/yt-an alytics.readonly";
32 35
33 36
34 final common_internal.ApiRequester _requester; 37 final commons.ApiRequester _requester;
35 38
36 BatchReportDefinitionsResourceApi get batchReportDefinitions => new BatchRepor tDefinitionsResourceApi(_requester); 39 BatchReportDefinitionsResourceApi get batchReportDefinitions => new BatchRepor tDefinitionsResourceApi(_requester);
37 BatchReportsResourceApi get batchReports => new BatchReportsResourceApi(_reque ster); 40 BatchReportsResourceApi get batchReports => new BatchReportsResourceApi(_reque ster);
38 GroupItemsResourceApi get groupItems => new GroupItemsResourceApi(_requester); 41 GroupItemsResourceApi get groupItems => new GroupItemsResourceApi(_requester);
39 GroupsResourceApi get groups => new GroupsResourceApi(_requester); 42 GroupsResourceApi get groups => new GroupsResourceApi(_requester);
40 ReportsResourceApi get reports => new ReportsResourceApi(_requester); 43 ReportsResourceApi get reports => new ReportsResourceApi(_requester);
41 44
42 YoutubeAnalyticsApi(http.Client client, {core.String rootUrl: "https://www.goo gleapis.com/", core.String servicePath: "youtube/analytics/v1/"}) : 45 YoutubeAnalyticsApi(http.Client client, {core.String rootUrl: "https://www.goo gleapis.com/", core.String servicePath: "youtube/analytics/v1/"}) :
43 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 46 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
44 } 47 }
45 48
46 49
47 /** Not documented yet. */
48 class BatchReportDefinitionsResourceApi { 50 class BatchReportDefinitionsResourceApi {
49 final common_internal.ApiRequester _requester; 51 final commons.ApiRequester _requester;
50 52
51 BatchReportDefinitionsResourceApi(common_internal.ApiRequester client) : 53 BatchReportDefinitionsResourceApi(commons.ApiRequester client) :
52 _requester = client; 54 _requester = client;
53 55
54 /** 56 /**
55 * Retrieves a list of available batch report definitions. 57 * Retrieves a list of available batch report definitions.
56 * 58 *
57 * Request parameters: 59 * Request parameters:
58 * 60 *
59 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies 61 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies
60 * the content owner that the user is acting on behalf of. 62 * the content owner that the user is acting on behalf of.
61 * 63 *
62 * Completes with a [BatchReportDefinitionList]. 64 * Completes with a [BatchReportDefinitionList].
63 * 65 *
64 * Completes with a [common.ApiRequestError] if the API endpoint returned an 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
65 * error. 67 * error.
66 * 68 *
67 * If the used [http.Client] completes with an error when making a REST call, 69 * If the used [http.Client] completes with an error when making a REST call,
68 * this method will complete with the same error. 70 * this method will complete with the same error.
69 */ 71 */
70 async.Future<BatchReportDefinitionList> list(core.String onBehalfOfContentOwne r) { 72 async.Future<BatchReportDefinitionList> list(core.String onBehalfOfContentOwne r) {
71 var _url = null; 73 var _url = null;
72 var _queryParams = new core.Map(); 74 var _queryParams = new core.Map();
73 var _uploadMedia = null; 75 var _uploadMedia = null;
74 var _uploadOptions = null; 76 var _uploadOptions = null;
75 var _downloadOptions = common.DownloadOptions.Metadata; 77 var _downloadOptions = commons.DownloadOptions.Metadata;
76 var _body = null; 78 var _body = null;
77 79
78 if (onBehalfOfContentOwner == null) { 80 if (onBehalfOfContentOwner == null) {
79 throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required ."); 81 throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required .");
80 } 82 }
81 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 83 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
82 84
83 85
84 _url = 'batchReportDefinitions'; 86 _url = 'batchReportDefinitions';
85 87
86 var _response = _requester.request(_url, 88 var _response = _requester.request(_url,
87 "GET", 89 "GET",
88 body: _body, 90 body: _body,
89 queryParams: _queryParams, 91 queryParams: _queryParams,
90 uploadOptions: _uploadOptions, 92 uploadOptions: _uploadOptions,
91 uploadMedia: _uploadMedia, 93 uploadMedia: _uploadMedia,
92 downloadOptions: _downloadOptions); 94 downloadOptions: _downloadOptions);
93 return _response.then((data) => new BatchReportDefinitionList.fromJson(data) ); 95 return _response.then((data) => new BatchReportDefinitionList.fromJson(data) );
94 } 96 }
95 97
96 } 98 }
97 99
98 100
99 /** Not documented yet. */
100 class BatchReportsResourceApi { 101 class BatchReportsResourceApi {
101 final common_internal.ApiRequester _requester; 102 final commons.ApiRequester _requester;
102 103
103 BatchReportsResourceApi(common_internal.ApiRequester client) : 104 BatchReportsResourceApi(commons.ApiRequester client) :
104 _requester = client; 105 _requester = client;
105 106
106 /** 107 /**
107 * Retrieves a list of processed batch reports. 108 * Retrieves a list of processed batch reports.
108 * 109 *
109 * Request parameters: 110 * Request parameters:
110 * 111 *
111 * [batchReportDefinitionId] - The batchReportDefinitionId parameter specifies 112 * [batchReportDefinitionId] - The batchReportDefinitionId parameter specifies
112 * the ID of the batch reportort definition for which you are retrieving 113 * the ID of the batch reportort definition for which you are retrieving
113 * reports. 114 * reports.
114 * 115 *
115 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies 116 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies
116 * the content owner that the user is acting on behalf of. 117 * the content owner that the user is acting on behalf of.
117 * 118 *
118 * Completes with a [BatchReportList]. 119 * Completes with a [BatchReportList].
119 * 120 *
120 * Completes with a [common.ApiRequestError] if the API endpoint returned an 121 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
121 * error. 122 * error.
122 * 123 *
123 * If the used [http.Client] completes with an error when making a REST call, 124 * If the used [http.Client] completes with an error when making a REST call,
124 * this method will complete with the same error. 125 * this method will complete with the same error.
125 */ 126 */
126 async.Future<BatchReportList> list(core.String batchReportDefinitionId, core.S tring onBehalfOfContentOwner) { 127 async.Future<BatchReportList> list(core.String batchReportDefinitionId, core.S tring onBehalfOfContentOwner) {
127 var _url = null; 128 var _url = null;
128 var _queryParams = new core.Map(); 129 var _queryParams = new core.Map();
129 var _uploadMedia = null; 130 var _uploadMedia = null;
130 var _uploadOptions = null; 131 var _uploadOptions = null;
131 var _downloadOptions = common.DownloadOptions.Metadata; 132 var _downloadOptions = commons.DownloadOptions.Metadata;
132 var _body = null; 133 var _body = null;
133 134
134 if (batchReportDefinitionId == null) { 135 if (batchReportDefinitionId == null) {
135 throw new core.ArgumentError("Parameter batchReportDefinitionId is require d."); 136 throw new core.ArgumentError("Parameter batchReportDefinitionId is require d.");
136 } 137 }
137 _queryParams["batchReportDefinitionId"] = [batchReportDefinitionId]; 138 _queryParams["batchReportDefinitionId"] = [batchReportDefinitionId];
138 if (onBehalfOfContentOwner == null) { 139 if (onBehalfOfContentOwner == null) {
139 throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required ."); 140 throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required .");
140 } 141 }
141 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 142 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
142 143
143 144
144 _url = 'batchReports'; 145 _url = 'batchReports';
145 146
146 var _response = _requester.request(_url, 147 var _response = _requester.request(_url,
147 "GET", 148 "GET",
148 body: _body, 149 body: _body,
149 queryParams: _queryParams, 150 queryParams: _queryParams,
150 uploadOptions: _uploadOptions, 151 uploadOptions: _uploadOptions,
151 uploadMedia: _uploadMedia, 152 uploadMedia: _uploadMedia,
152 downloadOptions: _downloadOptions); 153 downloadOptions: _downloadOptions);
153 return _response.then((data) => new BatchReportList.fromJson(data)); 154 return _response.then((data) => new BatchReportList.fromJson(data));
154 } 155 }
155 156
156 } 157 }
157 158
158 159
159 /** Not documented yet. */
160 class GroupItemsResourceApi { 160 class GroupItemsResourceApi {
161 final common_internal.ApiRequester _requester; 161 final commons.ApiRequester _requester;
162 162
163 GroupItemsResourceApi(common_internal.ApiRequester client) : 163 GroupItemsResourceApi(commons.ApiRequester client) :
164 _requester = client; 164 _requester = client;
165 165
166 /** 166 /**
167 * Removes an item from a group. 167 * Removes an item from a group.
168 * 168 *
169 * Request parameters: 169 * Request parameters:
170 * 170 *
171 * [id] - The id parameter specifies the YouTube group item ID for the group 171 * [id] - The id parameter specifies the YouTube group item ID for the group
172 * that is being deleted. 172 * that is being deleted.
173 * 173 *
174 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for 174 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for
175 * YouTube content partners. 175 * YouTube content partners.
176 * 176 *
177 * The onBehalfOfContentOwner parameter indicates that the request's 177 * The onBehalfOfContentOwner parameter indicates that the request's
178 * authorization credentials identify a YouTube CMS user who is acting on 178 * authorization credentials identify a YouTube CMS user who is acting on
179 * behalf of the content owner specified in the parameter value. This 179 * behalf of the content owner specified in the parameter value. This
180 * parameter is intended for YouTube content partners that own and manage many 180 * parameter is intended for YouTube content partners that own and manage many
181 * different YouTube channels. It allows content owners to authenticate once 181 * different YouTube channels. It allows content owners to authenticate once
182 * and get access to all their video and channel data, without having to 182 * and get access to all their video and channel data, without having to
183 * provide authentication credentials for each individual channel. The CMS 183 * provide authentication credentials for each individual channel. The CMS
184 * account that the user authenticates with must be linked to the specified 184 * account that the user authenticates with must be linked to the specified
185 * YouTube content owner. 185 * YouTube content owner.
186 * 186 *
187 * Completes with a [common.ApiRequestError] if the API endpoint returned an 187 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
188 * error. 188 * error.
189 * 189 *
190 * If the used [http.Client] completes with an error when making a REST call, 190 * If the used [http.Client] completes with an error when making a REST call,
191 * this method will complete with the same error. 191 * this method will complete with the same error.
192 */ 192 */
193 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { 193 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) {
194 var _url = null; 194 var _url = null;
195 var _queryParams = new core.Map(); 195 var _queryParams = new core.Map();
196 var _uploadMedia = null; 196 var _uploadMedia = null;
197 var _uploadOptions = null; 197 var _uploadOptions = null;
198 var _downloadOptions = common.DownloadOptions.Metadata; 198 var _downloadOptions = commons.DownloadOptions.Metadata;
199 var _body = null; 199 var _body = null;
200 200
201 if (id == null) { 201 if (id == null) {
202 throw new core.ArgumentError("Parameter id is required."); 202 throw new core.ArgumentError("Parameter id is required.");
203 } 203 }
204 _queryParams["id"] = [id]; 204 _queryParams["id"] = [id];
205 if (onBehalfOfContentOwner != null) { 205 if (onBehalfOfContentOwner != null) {
206 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 206 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
207 } 207 }
208 208
(...skipping 26 matching lines...) Expand all
235 * behalf of the content owner specified in the parameter value. This 235 * behalf of the content owner specified in the parameter value. This
236 * parameter is intended for YouTube content partners that own and manage many 236 * parameter is intended for YouTube content partners that own and manage many
237 * different YouTube channels. It allows content owners to authenticate once 237 * different YouTube channels. It allows content owners to authenticate once
238 * and get access to all their video and channel data, without having to 238 * and get access to all their video and channel data, without having to
239 * provide authentication credentials for each individual channel. The CMS 239 * provide authentication credentials for each individual channel. The CMS
240 * account that the user authenticates with must be linked to the specified 240 * account that the user authenticates with must be linked to the specified
241 * YouTube content owner. 241 * YouTube content owner.
242 * 242 *
243 * Completes with a [GroupItem]. 243 * Completes with a [GroupItem].
244 * 244 *
245 * Completes with a [common.ApiRequestError] if the API endpoint returned an 245 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
246 * error. 246 * error.
247 * 247 *
248 * If the used [http.Client] completes with an error when making a REST call, 248 * If the used [http.Client] completes with an error when making a REST call,
249 * this method will complete with the same error. 249 * this method will complete with the same error.
250 */ 250 */
251 async.Future<GroupItem> insert(GroupItem request, {core.String onBehalfOfConte ntOwner}) { 251 async.Future<GroupItem> insert(GroupItem request, {core.String onBehalfOfConte ntOwner}) {
252 var _url = null; 252 var _url = null;
253 var _queryParams = new core.Map(); 253 var _queryParams = new core.Map();
254 var _uploadMedia = null; 254 var _uploadMedia = null;
255 var _uploadOptions = null; 255 var _uploadOptions = null;
256 var _downloadOptions = common.DownloadOptions.Metadata; 256 var _downloadOptions = commons.DownloadOptions.Metadata;
257 var _body = null; 257 var _body = null;
258 258
259 if (request != null) { 259 if (request != null) {
260 _body = convert.JSON.encode((request).toJson()); 260 _body = convert.JSON.encode((request).toJson());
261 } 261 }
262 if (onBehalfOfContentOwner != null) { 262 if (onBehalfOfContentOwner != null) {
263 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 263 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
264 } 264 }
265 265
266 266
(...skipping 25 matching lines...) Expand all
292 * behalf of the content owner specified in the parameter value. This 292 * behalf of the content owner specified in the parameter value. This
293 * parameter is intended for YouTube content partners that own and manage many 293 * parameter is intended for YouTube content partners that own and manage many
294 * different YouTube channels. It allows content owners to authenticate once 294 * different YouTube channels. It allows content owners to authenticate once
295 * and get access to all their video and channel data, without having to 295 * and get access to all their video and channel data, without having to
296 * provide authentication credentials for each individual channel. The CMS 296 * provide authentication credentials for each individual channel. The CMS
297 * account that the user authenticates with must be linked to the specified 297 * account that the user authenticates with must be linked to the specified
298 * YouTube content owner. 298 * YouTube content owner.
299 * 299 *
300 * Completes with a [GroupItemListResponse]. 300 * Completes with a [GroupItemListResponse].
301 * 301 *
302 * Completes with a [common.ApiRequestError] if the API endpoint returned an 302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
303 * error. 303 * error.
304 * 304 *
305 * If the used [http.Client] completes with an error when making a REST call, 305 * If the used [http.Client] completes with an error when making a REST call,
306 * this method will complete with the same error. 306 * this method will complete with the same error.
307 */ 307 */
308 async.Future<GroupItemListResponse> list(core.String groupId, {core.String onB ehalfOfContentOwner}) { 308 async.Future<GroupItemListResponse> list(core.String groupId, {core.String onB ehalfOfContentOwner}) {
309 var _url = null; 309 var _url = null;
310 var _queryParams = new core.Map(); 310 var _queryParams = new core.Map();
311 var _uploadMedia = null; 311 var _uploadMedia = null;
312 var _uploadOptions = null; 312 var _uploadOptions = null;
313 var _downloadOptions = common.DownloadOptions.Metadata; 313 var _downloadOptions = commons.DownloadOptions.Metadata;
314 var _body = null; 314 var _body = null;
315 315
316 if (groupId == null) { 316 if (groupId == null) {
317 throw new core.ArgumentError("Parameter groupId is required."); 317 throw new core.ArgumentError("Parameter groupId is required.");
318 } 318 }
319 _queryParams["groupId"] = [groupId]; 319 _queryParams["groupId"] = [groupId];
320 if (onBehalfOfContentOwner != null) { 320 if (onBehalfOfContentOwner != null) {
321 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 321 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
322 } 322 }
323 323
324 324
325 _url = 'groupItems'; 325 _url = 'groupItems';
326 326
327 var _response = _requester.request(_url, 327 var _response = _requester.request(_url,
328 "GET", 328 "GET",
329 body: _body, 329 body: _body,
330 queryParams: _queryParams, 330 queryParams: _queryParams,
331 uploadOptions: _uploadOptions, 331 uploadOptions: _uploadOptions,
332 uploadMedia: _uploadMedia, 332 uploadMedia: _uploadMedia,
333 downloadOptions: _downloadOptions); 333 downloadOptions: _downloadOptions);
334 return _response.then((data) => new GroupItemListResponse.fromJson(data)); 334 return _response.then((data) => new GroupItemListResponse.fromJson(data));
335 } 335 }
336 336
337 } 337 }
338 338
339 339
340 /** Not documented yet. */
341 class GroupsResourceApi { 340 class GroupsResourceApi {
342 final common_internal.ApiRequester _requester; 341 final commons.ApiRequester _requester;
343 342
344 GroupsResourceApi(common_internal.ApiRequester client) : 343 GroupsResourceApi(commons.ApiRequester client) :
345 _requester = client; 344 _requester = client;
346 345
347 /** 346 /**
348 * Deletes a group. 347 * Deletes a group.
349 * 348 *
350 * Request parameters: 349 * Request parameters:
351 * 350 *
352 * [id] - The id parameter specifies the YouTube group ID for the group that 351 * [id] - The id parameter specifies the YouTube group ID for the group that
353 * is being deleted. 352 * is being deleted.
354 * 353 *
355 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for 354 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for
356 * YouTube content partners. 355 * YouTube content partners.
357 * 356 *
358 * The onBehalfOfContentOwner parameter indicates that the request's 357 * The onBehalfOfContentOwner parameter indicates that the request's
359 * authorization credentials identify a YouTube CMS user who is acting on 358 * authorization credentials identify a YouTube CMS user who is acting on
360 * behalf of the content owner specified in the parameter value. This 359 * behalf of the content owner specified in the parameter value. This
361 * parameter is intended for YouTube content partners that own and manage many 360 * parameter is intended for YouTube content partners that own and manage many
362 * different YouTube channels. It allows content owners to authenticate once 361 * different YouTube channels. It allows content owners to authenticate once
363 * and get access to all their video and channel data, without having to 362 * and get access to all their video and channel data, without having to
364 * provide authentication credentials for each individual channel. The CMS 363 * provide authentication credentials for each individual channel. The CMS
365 * account that the user authenticates with must be linked to the specified 364 * account that the user authenticates with must be linked to the specified
366 * YouTube content owner. 365 * YouTube content owner.
367 * 366 *
368 * Completes with a [common.ApiRequestError] if the API endpoint returned an 367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
369 * error. 368 * error.
370 * 369 *
371 * If the used [http.Client] completes with an error when making a REST call, 370 * If the used [http.Client] completes with an error when making a REST call,
372 * this method will complete with the same error. 371 * this method will complete with the same error.
373 */ 372 */
374 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { 373 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) {
375 var _url = null; 374 var _url = null;
376 var _queryParams = new core.Map(); 375 var _queryParams = new core.Map();
377 var _uploadMedia = null; 376 var _uploadMedia = null;
378 var _uploadOptions = null; 377 var _uploadOptions = null;
379 var _downloadOptions = common.DownloadOptions.Metadata; 378 var _downloadOptions = commons.DownloadOptions.Metadata;
380 var _body = null; 379 var _body = null;
381 380
382 if (id == null) { 381 if (id == null) {
383 throw new core.ArgumentError("Parameter id is required."); 382 throw new core.ArgumentError("Parameter id is required.");
384 } 383 }
385 _queryParams["id"] = [id]; 384 _queryParams["id"] = [id];
386 if (onBehalfOfContentOwner != null) { 385 if (onBehalfOfContentOwner != null) {
387 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 386 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
388 } 387 }
389 388
(...skipping 26 matching lines...) Expand all
416 * behalf of the content owner specified in the parameter value. This 415 * behalf of the content owner specified in the parameter value. This
417 * parameter is intended for YouTube content partners that own and manage many 416 * parameter is intended for YouTube content partners that own and manage many
418 * different YouTube channels. It allows content owners to authenticate once 417 * different YouTube channels. It allows content owners to authenticate once
419 * and get access to all their video and channel data, without having to 418 * and get access to all their video and channel data, without having to
420 * provide authentication credentials for each individual channel. The CMS 419 * provide authentication credentials for each individual channel. The CMS
421 * account that the user authenticates with must be linked to the specified 420 * account that the user authenticates with must be linked to the specified
422 * YouTube content owner. 421 * YouTube content owner.
423 * 422 *
424 * Completes with a [Group]. 423 * Completes with a [Group].
425 * 424 *
426 * Completes with a [common.ApiRequestError] if the API endpoint returned an 425 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
427 * error. 426 * error.
428 * 427 *
429 * If the used [http.Client] completes with an error when making a REST call, 428 * If the used [http.Client] completes with an error when making a REST call,
430 * this method will complete with the same error. 429 * this method will complete with the same error.
431 */ 430 */
432 async.Future<Group> insert(Group request, {core.String onBehalfOfContentOwner} ) { 431 async.Future<Group> insert(Group request, {core.String onBehalfOfContentOwner} ) {
433 var _url = null; 432 var _url = null;
434 var _queryParams = new core.Map(); 433 var _queryParams = new core.Map();
435 var _uploadMedia = null; 434 var _uploadMedia = null;
436 var _uploadOptions = null; 435 var _uploadOptions = null;
437 var _downloadOptions = common.DownloadOptions.Metadata; 436 var _downloadOptions = commons.DownloadOptions.Metadata;
438 var _body = null; 437 var _body = null;
439 438
440 if (request != null) { 439 if (request != null) {
441 _body = convert.JSON.encode((request).toJson()); 440 _body = convert.JSON.encode((request).toJson());
442 } 441 }
443 if (onBehalfOfContentOwner != null) { 442 if (onBehalfOfContentOwner != null) {
444 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 443 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
445 } 444 }
446 445
447 446
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 * behalf of the content owner specified in the parameter value. This 478 * behalf of the content owner specified in the parameter value. This
480 * parameter is intended for YouTube content partners that own and manage many 479 * parameter is intended for YouTube content partners that own and manage many
481 * different YouTube channels. It allows content owners to authenticate once 480 * different YouTube channels. It allows content owners to authenticate once
482 * and get access to all their video and channel data, without having to 481 * and get access to all their video and channel data, without having to
483 * provide authentication credentials for each individual channel. The CMS 482 * provide authentication credentials for each individual channel. The CMS
484 * account that the user authenticates with must be linked to the specified 483 * account that the user authenticates with must be linked to the specified
485 * YouTube content owner. 484 * YouTube content owner.
486 * 485 *
487 * Completes with a [GroupListResponse]. 486 * Completes with a [GroupListResponse].
488 * 487 *
489 * Completes with a [common.ApiRequestError] if the API endpoint returned an 488 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
490 * error. 489 * error.
491 * 490 *
492 * If the used [http.Client] completes with an error when making a REST call, 491 * If the used [http.Client] completes with an error when making a REST call,
493 * this method will complete with the same error. 492 * this method will complete with the same error.
494 */ 493 */
495 async.Future<GroupListResponse> list({core.String id, core.bool mine, core.Str ing onBehalfOfContentOwner}) { 494 async.Future<GroupListResponse> list({core.String id, core.bool mine, core.Str ing onBehalfOfContentOwner}) {
496 var _url = null; 495 var _url = null;
497 var _queryParams = new core.Map(); 496 var _queryParams = new core.Map();
498 var _uploadMedia = null; 497 var _uploadMedia = null;
499 var _uploadOptions = null; 498 var _uploadOptions = null;
500 var _downloadOptions = common.DownloadOptions.Metadata; 499 var _downloadOptions = commons.DownloadOptions.Metadata;
501 var _body = null; 500 var _body = null;
502 501
503 if (id != null) { 502 if (id != null) {
504 _queryParams["id"] = [id]; 503 _queryParams["id"] = [id];
505 } 504 }
506 if (mine != null) { 505 if (mine != null) {
507 _queryParams["mine"] = ["${mine}"]; 506 _queryParams["mine"] = ["${mine}"];
508 } 507 }
509 if (onBehalfOfContentOwner != null) { 508 if (onBehalfOfContentOwner != null) {
510 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 509 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
(...skipping 27 matching lines...) Expand all
538 * behalf of the content owner specified in the parameter value. This 537 * behalf of the content owner specified in the parameter value. This
539 * parameter is intended for YouTube content partners that own and manage many 538 * parameter is intended for YouTube content partners that own and manage many
540 * different YouTube channels. It allows content owners to authenticate once 539 * different YouTube channels. It allows content owners to authenticate once
541 * and get access to all their video and channel data, without having to 540 * and get access to all their video and channel data, without having to
542 * provide authentication credentials for each individual channel. The CMS 541 * provide authentication credentials for each individual channel. The CMS
543 * account that the user authenticates with must be linked to the specified 542 * account that the user authenticates with must be linked to the specified
544 * YouTube content owner. 543 * YouTube content owner.
545 * 544 *
546 * Completes with a [Group]. 545 * Completes with a [Group].
547 * 546 *
548 * Completes with a [common.ApiRequestError] if the API endpoint returned an 547 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
549 * error. 548 * error.
550 * 549 *
551 * If the used [http.Client] completes with an error when making a REST call, 550 * If the used [http.Client] completes with an error when making a REST call,
552 * this method will complete with the same error. 551 * this method will complete with the same error.
553 */ 552 */
554 async.Future<Group> update(Group request, {core.String onBehalfOfContentOwner} ) { 553 async.Future<Group> update(Group request, {core.String onBehalfOfContentOwner} ) {
555 var _url = null; 554 var _url = null;
556 var _queryParams = new core.Map(); 555 var _queryParams = new core.Map();
557 var _uploadMedia = null; 556 var _uploadMedia = null;
558 var _uploadOptions = null; 557 var _uploadOptions = null;
559 var _downloadOptions = common.DownloadOptions.Metadata; 558 var _downloadOptions = commons.DownloadOptions.Metadata;
560 var _body = null; 559 var _body = null;
561 560
562 if (request != null) { 561 if (request != null) {
563 _body = convert.JSON.encode((request).toJson()); 562 _body = convert.JSON.encode((request).toJson());
564 } 563 }
565 if (onBehalfOfContentOwner != null) { 564 if (onBehalfOfContentOwner != null) {
566 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 565 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
567 } 566 }
568 567
569 568
570 _url = 'groups'; 569 _url = 'groups';
571 570
572 var _response = _requester.request(_url, 571 var _response = _requester.request(_url,
573 "PUT", 572 "PUT",
574 body: _body, 573 body: _body,
575 queryParams: _queryParams, 574 queryParams: _queryParams,
576 uploadOptions: _uploadOptions, 575 uploadOptions: _uploadOptions,
577 uploadMedia: _uploadMedia, 576 uploadMedia: _uploadMedia,
578 downloadOptions: _downloadOptions); 577 downloadOptions: _downloadOptions);
579 return _response.then((data) => new Group.fromJson(data)); 578 return _response.then((data) => new Group.fromJson(data));
580 } 579 }
581 580
582 } 581 }
583 582
584 583
585 /** Not documented yet. */
586 class ReportsResourceApi { 584 class ReportsResourceApi {
587 final common_internal.ApiRequester _requester; 585 final commons.ApiRequester _requester;
588 586
589 ReportsResourceApi(common_internal.ApiRequester client) : 587 ReportsResourceApi(commons.ApiRequester client) :
590 _requester = client; 588 _requester = client;
591 589
592 /** 590 /**
593 * Retrieve your YouTube Analytics reports. 591 * Retrieve your YouTube Analytics reports.
594 * 592 *
595 * Request parameters: 593 * Request parameters:
596 * 594 *
597 * [ids] - Identifies the YouTube channel or content owner for which you are 595 * [ids] - Identifies the YouTube channel or content owner for which you are
598 * retrieving YouTube Analytics data. 596 * retrieving YouTube Analytics data.
599 * - To request data for a YouTube user, set the ids parameter value to 597 * - To request data for a YouTube user, set the ids parameter value to
(...skipping 11 matching lines...) Expand all
611 * [end_date] - The end date for fetching YouTube Analytics data. The value 609 * [end_date] - The end date for fetching YouTube Analytics data. The value
612 * should be in YYYY-MM-DD format. 610 * should be in YYYY-MM-DD format.
613 * Value must have pattern "[0-9]{4}-[0-9]{2}-[0-9]{2}". 611 * Value must have pattern "[0-9]{4}-[0-9]{2}-[0-9]{2}".
614 * 612 *
615 * [metrics] - A comma-separated list of YouTube Analytics metrics, such as 613 * [metrics] - A comma-separated list of YouTube Analytics metrics, such as
616 * views or likes,dislikes. See the Available Reports document for a list of 614 * views or likes,dislikes. See the Available Reports document for a list of
617 * the reports that you can retrieve and the metrics available in each report, 615 * the reports that you can retrieve and the metrics available in each report,
618 * and see the Metrics document for definitions of those metrics. 616 * and see the Metrics document for definitions of those metrics.
619 * Value must have pattern "[0-9a-zA-Z,]+". 617 * Value must have pattern "[0-9a-zA-Z,]+".
620 * 618 *
619 * [currency] - The currency to which financial metrics should be converted.
620 * The default is US Dollar (USD). If the result contains no financial
621 * metrics, this flag will be ignored. Responds with an error if the specified
622 * currency is not recognized.
623 * Value must have pattern "[A-Z]{3}".
624 *
621 * [dimensions] - A comma-separated list of YouTube Analytics dimensions, such 625 * [dimensions] - A comma-separated list of YouTube Analytics dimensions, such
622 * as views or ageGroup,gender. See the Available Reports document for a list 626 * as views or ageGroup,gender. See the Available Reports document for a list
623 * of the reports that you can retrieve and the dimensions used for those 627 * of the reports that you can retrieve and the dimensions used for those
624 * reports. Also see the Dimensions document for definitions of those 628 * reports. Also see the Dimensions document for definitions of those
625 * dimensions. 629 * dimensions.
626 * Value must have pattern "[0-9a-zA-Z,]+". 630 * Value must have pattern "[0-9a-zA-Z,]+".
627 * 631 *
628 * [filters] - A list of filters that should be applied when retrieving 632 * [filters] - A list of filters that should be applied when retrieving
629 * YouTube Analytics data. The Available Reports document identifies the 633 * YouTube Analytics data. The Available Reports document identifies the
630 * dimensions that can be used to filter each report, and the Dimensions 634 * dimensions that can be used to filter each report, and the Dimensions
631 * document defines those dimensions. If a request uses multiple filters, join 635 * document defines those dimensions. If a request uses multiple filters, join
632 * them together with a semicolon (;), and the returned result table will 636 * them together with a semicolon (;), and the returned result table will
633 * satisfy both filters. For example, a filters parameter value of 637 * satisfy both filters. For example, a filters parameter value of
634 * video==dMH0bHeiRNg;country==IT restricts the result set to include data for 638 * video==dMH0bHeiRNg;country==IT restricts the result set to include data for
635 * the given video in Italy. 639 * the given video in Italy.
636 * 640 *
637 * [max_results] - The maximum number of rows to include in the response. 641 * [max_results] - The maximum number of rows to include in the response.
638 * 642 *
639 * [sort] - A comma-separated list of dimensions or metrics that determine the 643 * [sort] - A comma-separated list of dimensions or metrics that determine the
640 * sort order for YouTube Analytics data. By default the sort order is 644 * sort order for YouTube Analytics data. By default the sort order is
641 * ascending. The '-' prefix causes descending sort order. 645 * ascending. The '-' prefix causes descending sort order.
642 * Value must have pattern "[-0-9a-zA-Z,]+". 646 * Value must have pattern "[-0-9a-zA-Z,]+".
643 * 647 *
644 * [start_index] - An index of the first entity to retrieve. Use this 648 * [start_index] - An index of the first entity to retrieve. Use this
645 * parameter as a pagination mechanism along with the max-results parameter 649 * parameter as a pagination mechanism along with the max-results parameter
646 * (one-based, inclusive). 650 * (one-based, inclusive).
647 * 651 *
648 * Completes with a [ResultTable]. 652 * Completes with a [ResultTable].
649 * 653 *
650 * Completes with a [common.ApiRequestError] if the API endpoint returned an 654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
651 * error. 655 * error.
652 * 656 *
653 * If the used [http.Client] completes with an error when making a REST call, 657 * If the used [http.Client] completes with an error when making a REST call,
654 * this method will complete with the same error. 658 * this method will complete with the same error.
655 */ 659 */
656 async.Future<ResultTable> query(core.String ids, core.String start_date, core. String end_date, core.String metrics, {core.String dimensions, core.String filte rs, core.int max_results, core.String sort, core.int start_index}) { 660 async.Future<ResultTable> query(core.String ids, core.String start_date, core. String end_date, core.String metrics, {core.String currency, core.String dimensi ons, core.String filters, core.int max_results, core.String sort, core.int start _index}) {
657 var _url = null; 661 var _url = null;
658 var _queryParams = new core.Map(); 662 var _queryParams = new core.Map();
659 var _uploadMedia = null; 663 var _uploadMedia = null;
660 var _uploadOptions = null; 664 var _uploadOptions = null;
661 var _downloadOptions = common.DownloadOptions.Metadata; 665 var _downloadOptions = commons.DownloadOptions.Metadata;
662 var _body = null; 666 var _body = null;
663 667
664 if (ids == null) { 668 if (ids == null) {
665 throw new core.ArgumentError("Parameter ids is required."); 669 throw new core.ArgumentError("Parameter ids is required.");
666 } 670 }
667 _queryParams["ids"] = [ids]; 671 _queryParams["ids"] = [ids];
668 if (start_date == null) { 672 if (start_date == null) {
669 throw new core.ArgumentError("Parameter start_date is required."); 673 throw new core.ArgumentError("Parameter start_date is required.");
670 } 674 }
671 _queryParams["start-date"] = [start_date]; 675 _queryParams["start-date"] = [start_date];
672 if (end_date == null) { 676 if (end_date == null) {
673 throw new core.ArgumentError("Parameter end_date is required."); 677 throw new core.ArgumentError("Parameter end_date is required.");
674 } 678 }
675 _queryParams["end-date"] = [end_date]; 679 _queryParams["end-date"] = [end_date];
676 if (metrics == null) { 680 if (metrics == null) {
677 throw new core.ArgumentError("Parameter metrics is required."); 681 throw new core.ArgumentError("Parameter metrics is required.");
678 } 682 }
679 _queryParams["metrics"] = [metrics]; 683 _queryParams["metrics"] = [metrics];
684 if (currency != null) {
685 _queryParams["currency"] = [currency];
686 }
680 if (dimensions != null) { 687 if (dimensions != null) {
681 _queryParams["dimensions"] = [dimensions]; 688 _queryParams["dimensions"] = [dimensions];
682 } 689 }
683 if (filters != null) { 690 if (filters != null) {
684 _queryParams["filters"] = [filters]; 691 _queryParams["filters"] = [filters];
685 } 692 }
686 if (max_results != null) { 693 if (max_results != null) {
687 _queryParams["max-results"] = ["${max_results}"]; 694 _queryParams["max-results"] = ["${max_results}"];
688 } 695 }
689 if (sort != null) { 696 if (sort != null) {
(...skipping 13 matching lines...) Expand all
703 uploadOptions: _uploadOptions, 710 uploadOptions: _uploadOptions,
704 uploadMedia: _uploadMedia, 711 uploadMedia: _uploadMedia,
705 downloadOptions: _downloadOptions); 712 downloadOptions: _downloadOptions);
706 return _response.then((data) => new ResultTable.fromJson(data)); 713 return _response.then((data) => new ResultTable.fromJson(data));
707 } 714 }
708 715
709 } 716 }
710 717
711 718
712 719
713 /** Not documented yet. */
714 class BatchReportOutputs { 720 class BatchReportOutputs {
715 /** 721 /**
716 * Cloud storage URL to download this report. This URL is valid for 30 722 * Cloud storage URL to download this report. This URL is valid for 30
717 * minutes. 723 * minutes.
718 */ 724 */
719 core.String downloadUrl; 725 core.String downloadUrl;
720 726
721 /** Format of the output. */ 727 /** Format of the output. */
722 core.String format; 728 core.String format;
723 729
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 _json["items"] = items.map((value) => (value).toJson()).toList(); 1016 _json["items"] = items.map((value) => (value).toJson()).toList();
1011 } 1017 }
1012 if (kind != null) { 1018 if (kind != null) {
1013 _json["kind"] = kind; 1019 _json["kind"] = kind;
1014 } 1020 }
1015 return _json; 1021 return _json;
1016 } 1022 }
1017 } 1023 }
1018 1024
1019 1025
1020 /** Not documented yet. */
1021 class GroupContentDetails { 1026 class GroupContentDetails {
1022 /** Not documented yet. */
1023 core.String itemCount; 1027 core.String itemCount;
1024 1028
1025 /** Not documented yet. */
1026 core.String itemType; 1029 core.String itemType;
1027 1030
1028 1031
1029 GroupContentDetails(); 1032 GroupContentDetails();
1030 1033
1031 GroupContentDetails.fromJson(core.Map _json) { 1034 GroupContentDetails.fromJson(core.Map _json) {
1032 if (_json.containsKey("itemCount")) { 1035 if (_json.containsKey("itemCount")) {
1033 itemCount = _json["itemCount"]; 1036 itemCount = _json["itemCount"];
1034 } 1037 }
1035 if (_json.containsKey("itemType")) { 1038 if (_json.containsKey("itemType")) {
1036 itemType = _json["itemType"]; 1039 itemType = _json["itemType"];
1037 } 1040 }
1038 } 1041 }
1039 1042
1040 core.Map toJson() { 1043 core.Map toJson() {
1041 var _json = new core.Map(); 1044 var _json = new core.Map();
1042 if (itemCount != null) { 1045 if (itemCount != null) {
1043 _json["itemCount"] = itemCount; 1046 _json["itemCount"] = itemCount;
1044 } 1047 }
1045 if (itemType != null) { 1048 if (itemType != null) {
1046 _json["itemType"] = itemType; 1049 _json["itemType"] = itemType;
1047 } 1050 }
1048 return _json; 1051 return _json;
1049 } 1052 }
1050 } 1053 }
1051 1054
1052 1055
1053 /** Not documented yet. */
1054 class GroupSnippet { 1056 class GroupSnippet {
1055 /** Not documented yet. */
1056 core.DateTime publishedAt; 1057 core.DateTime publishedAt;
1057 1058
1058 /** Not documented yet. */
1059 core.String title; 1059 core.String title;
1060 1060
1061 1061
1062 GroupSnippet(); 1062 GroupSnippet();
1063 1063
1064 GroupSnippet.fromJson(core.Map _json) { 1064 GroupSnippet.fromJson(core.Map _json) {
1065 if (_json.containsKey("publishedAt")) { 1065 if (_json.containsKey("publishedAt")) {
1066 publishedAt = core.DateTime.parse(_json["publishedAt"]); 1066 publishedAt = core.DateTime.parse(_json["publishedAt"]);
1067 } 1067 }
1068 if (_json.containsKey("title")) { 1068 if (_json.containsKey("title")) {
1069 title = _json["title"]; 1069 title = _json["title"];
1070 } 1070 }
1071 } 1071 }
1072 1072
1073 core.Map toJson() { 1073 core.Map toJson() {
1074 var _json = new core.Map(); 1074 var _json = new core.Map();
1075 if (publishedAt != null) { 1075 if (publishedAt != null) {
1076 _json["publishedAt"] = (publishedAt).toIso8601String(); 1076 _json["publishedAt"] = (publishedAt).toIso8601String();
1077 } 1077 }
1078 if (title != null) { 1078 if (title != null) {
1079 _json["title"] = title; 1079 _json["title"] = title;
1080 } 1080 }
1081 return _json; 1081 return _json;
1082 } 1082 }
1083 } 1083 }
1084 1084
1085 1085
1086 /** Not documented yet. */
1087 class Group { 1086 class Group {
1088 /** Not documented yet. */
1089 GroupContentDetails contentDetails; 1087 GroupContentDetails contentDetails;
1090 1088
1091 /** Not documented yet. */
1092 core.String etag; 1089 core.String etag;
1093 1090
1094 /** Not documented yet. */
1095 core.String id; 1091 core.String id;
1096 1092
1097 /** Not documented yet. */
1098 core.String kind; 1093 core.String kind;
1099 1094
1100 /** Not documented yet. */
1101 GroupSnippet snippet; 1095 GroupSnippet snippet;
1102 1096
1103 1097
1104 Group(); 1098 Group();
1105 1099
1106 Group.fromJson(core.Map _json) { 1100 Group.fromJson(core.Map _json) {
1107 if (_json.containsKey("contentDetails")) { 1101 if (_json.containsKey("contentDetails")) {
1108 contentDetails = new GroupContentDetails.fromJson(_json["contentDetails"]) ; 1102 contentDetails = new GroupContentDetails.fromJson(_json["contentDetails"]) ;
1109 } 1103 }
1110 if (_json.containsKey("etag")) { 1104 if (_json.containsKey("etag")) {
(...skipping 25 matching lines...) Expand all
1136 _json["kind"] = kind; 1130 _json["kind"] = kind;
1137 } 1131 }
1138 if (snippet != null) { 1132 if (snippet != null) {
1139 _json["snippet"] = (snippet).toJson(); 1133 _json["snippet"] = (snippet).toJson();
1140 } 1134 }
1141 return _json; 1135 return _json;
1142 } 1136 }
1143 } 1137 }
1144 1138
1145 1139
1146 /** Not documented yet. */
1147 class GroupItemResource { 1140 class GroupItemResource {
1148 /** Not documented yet. */
1149 core.String id; 1141 core.String id;
1150 1142
1151 /** Not documented yet. */
1152 core.String kind; 1143 core.String kind;
1153 1144
1154 1145
1155 GroupItemResource(); 1146 GroupItemResource();
1156 1147
1157 GroupItemResource.fromJson(core.Map _json) { 1148 GroupItemResource.fromJson(core.Map _json) {
1158 if (_json.containsKey("id")) { 1149 if (_json.containsKey("id")) {
1159 id = _json["id"]; 1150 id = _json["id"];
1160 } 1151 }
1161 if (_json.containsKey("kind")) { 1152 if (_json.containsKey("kind")) {
1162 kind = _json["kind"]; 1153 kind = _json["kind"];
1163 } 1154 }
1164 } 1155 }
1165 1156
1166 core.Map toJson() { 1157 core.Map toJson() {
1167 var _json = new core.Map(); 1158 var _json = new core.Map();
1168 if (id != null) { 1159 if (id != null) {
1169 _json["id"] = id; 1160 _json["id"] = id;
1170 } 1161 }
1171 if (kind != null) { 1162 if (kind != null) {
1172 _json["kind"] = kind; 1163 _json["kind"] = kind;
1173 } 1164 }
1174 return _json; 1165 return _json;
1175 } 1166 }
1176 } 1167 }
1177 1168
1178 1169
1179 /** Not documented yet. */
1180 class GroupItem { 1170 class GroupItem {
1181 /** Not documented yet. */
1182 core.String etag; 1171 core.String etag;
1183 1172
1184 /** Not documented yet. */
1185 core.String groupId; 1173 core.String groupId;
1186 1174
1187 /** Not documented yet. */
1188 core.String id; 1175 core.String id;
1189 1176
1190 /** Not documented yet. */
1191 core.String kind; 1177 core.String kind;
1192 1178
1193 /** Not documented yet. */
1194 GroupItemResource resource; 1179 GroupItemResource resource;
1195 1180
1196 1181
1197 GroupItem(); 1182 GroupItem();
1198 1183
1199 GroupItem.fromJson(core.Map _json) { 1184 GroupItem.fromJson(core.Map _json) {
1200 if (_json.containsKey("etag")) { 1185 if (_json.containsKey("etag")) {
1201 etag = _json["etag"]; 1186 etag = _json["etag"];
1202 } 1187 }
1203 if (_json.containsKey("groupId")) { 1188 if (_json.containsKey("groupId")) {
(...skipping 30 matching lines...) Expand all
1234 return _json; 1219 return _json;
1235 } 1220 }
1236 } 1221 }
1237 1222
1238 1223
1239 /** 1224 /**
1240 * A paginated list of grouList resources returned in response to a 1225 * A paginated list of grouList resources returned in response to a
1241 * youtubeAnalytics.groupApi.list request. 1226 * youtubeAnalytics.groupApi.list request.
1242 */ 1227 */
1243 class GroupItemListResponse { 1228 class GroupItemListResponse {
1244 /** Not documented yet. */
1245 core.String etag; 1229 core.String etag;
1246 1230
1247 /** Not documented yet. */
1248 core.List<GroupItem> items; 1231 core.List<GroupItem> items;
1249 1232
1250 /** Not documented yet. */
1251 core.String kind; 1233 core.String kind;
1252 1234
1253 1235
1254 GroupItemListResponse(); 1236 GroupItemListResponse();
1255 1237
1256 GroupItemListResponse.fromJson(core.Map _json) { 1238 GroupItemListResponse.fromJson(core.Map _json) {
1257 if (_json.containsKey("etag")) { 1239 if (_json.containsKey("etag")) {
1258 etag = _json["etag"]; 1240 etag = _json["etag"];
1259 } 1241 }
1260 if (_json.containsKey("items")) { 1242 if (_json.containsKey("items")) {
(...skipping 18 matching lines...) Expand all
1279 return _json; 1261 return _json;
1280 } 1262 }
1281 } 1263 }
1282 1264
1283 1265
1284 /** 1266 /**
1285 * A paginated list of grouList resources returned in response to a 1267 * A paginated list of grouList resources returned in response to a
1286 * youtubeAnalytics.groupApi.list request. 1268 * youtubeAnalytics.groupApi.list request.
1287 */ 1269 */
1288 class GroupListResponse { 1270 class GroupListResponse {
1289 /** Not documented yet. */
1290 core.String etag; 1271 core.String etag;
1291 1272
1292 /** Not documented yet. */
1293 core.List<Group> items; 1273 core.List<Group> items;
1294 1274
1295 /** Not documented yet. */
1296 core.String kind; 1275 core.String kind;
1297 1276
1298 1277
1299 GroupListResponse(); 1278 GroupListResponse();
1300 1279
1301 GroupListResponse.fromJson(core.Map _json) { 1280 GroupListResponse.fromJson(core.Map _json) {
1302 if (_json.containsKey("etag")) { 1281 if (_json.containsKey("etag")) {
1303 etag = _json["etag"]; 1282 etag = _json["etag"];
1304 } 1283 }
1305 if (_json.containsKey("items")) { 1284 if (_json.containsKey("items")) {
(...skipping 13 matching lines...) Expand all
1319 _json["items"] = items.map((value) => (value).toJson()).toList(); 1298 _json["items"] = items.map((value) => (value).toJson()).toList();
1320 } 1299 }
1321 if (kind != null) { 1300 if (kind != null) {
1322 _json["kind"] = kind; 1301 _json["kind"] = kind;
1323 } 1302 }
1324 return _json; 1303 return _json;
1325 } 1304 }
1326 } 1305 }
1327 1306
1328 1307
1329 /** Not documented yet. */
1330 class ResultTableColumnHeaders { 1308 class ResultTableColumnHeaders {
1331 /** The type of the column (DIMENSION or METRIC). */ 1309 /** The type of the column (DIMENSION or METRIC). */
1332 core.String columnType; 1310 core.String columnType;
1333 1311
1334 /** The type of the data in the column (STRING, INTEGER, FLOAT, etc.). */ 1312 /** The type of the data in the column (STRING, INTEGER, FLOAT, etc.). */
1335 core.String dataType; 1313 core.String dataType;
1336 1314
1337 /** The name of the dimension or metric. */ 1315 /** The name of the dimension or metric. */
1338 core.String name; 1316 core.String name;
1339 1317
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 } 1408 }
1431 if (kind != null) { 1409 if (kind != null) {
1432 _json["kind"] = kind; 1410 _json["kind"] = kind;
1433 } 1411 }
1434 if (rows != null) { 1412 if (rows != null) {
1435 _json["rows"] = rows; 1413 _json["rows"] = rows;
1436 } 1414 }
1437 return _json; 1415 return _json;
1438 } 1416 }
1439 } 1417 }
1440
1441
OLDNEW
« no previous file with comments | « generated/googleapis/lib/youtube/v3.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698