| Index: generated/googleapis/lib/youtubeanalytics/v1.dart
|
| diff --git a/generated/googleapis/lib/youtubeanalytics/v1.dart b/generated/googleapis/lib/youtubeanalytics/v1.dart
|
| index 1b8adc61d2242cf2db921ea3114164b5e9bcfc71..864248bb4bf06be3edcd59ea6ed7e38aa295f4dc 100644
|
| --- a/generated/googleapis/lib/youtubeanalytics/v1.dart
|
| +++ b/generated/googleapis/lib/youtubeanalytics/v1.dart
|
| @@ -37,8 +37,6 @@ class YoutubeAnalyticsApi {
|
|
|
| final commons.ApiRequester _requester;
|
|
|
| - BatchReportDefinitionsResourceApi get batchReportDefinitions => new BatchReportDefinitionsResourceApi(_requester);
|
| - BatchReportsResourceApi get batchReports => new BatchReportsResourceApi(_requester);
|
| GroupItemsResourceApi get groupItems => new GroupItemsResourceApi(_requester);
|
| GroupsResourceApi get groups => new GroupsResourceApi(_requester);
|
| ReportsResourceApi get reports => new ReportsResourceApi(_requester);
|
| @@ -48,114 +46,6 @@ class YoutubeAnalyticsApi {
|
| }
|
|
|
|
|
| -class BatchReportDefinitionsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - BatchReportDefinitionsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves a list of available batch report definitions.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies
|
| - * the content owner that the user is acting on behalf of.
|
| - *
|
| - * Completes with a [BatchReportDefinitionList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<BatchReportDefinitionList> list(core.String onBehalfOfContentOwner) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (onBehalfOfContentOwner == null) {
|
| - throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required.");
|
| - }
|
| - _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
|
| -
|
| - _url = 'batchReportDefinitions';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new BatchReportDefinitionList.fromJson(data));
|
| - }
|
| -
|
| -}
|
| -
|
| -
|
| -class BatchReportsResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - BatchReportsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves a list of processed batch reports.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [batchReportDefinitionId] - The batchReportDefinitionId parameter specifies
|
| - * the ID of the batch reportort definition for which you are retrieving
|
| - * reports.
|
| - *
|
| - * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies
|
| - * the content owner that the user is acting on behalf of.
|
| - *
|
| - * Completes with a [BatchReportList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<BatchReportList> list(core.String batchReportDefinitionId, core.String onBehalfOfContentOwner) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (batchReportDefinitionId == null) {
|
| - throw new core.ArgumentError("Parameter batchReportDefinitionId is required.");
|
| - }
|
| - _queryParams["batchReportDefinitionId"] = [batchReportDefinitionId];
|
| - if (onBehalfOfContentOwner == null) {
|
| - throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required.");
|
| - }
|
| - _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
|
| -
|
| - _url = 'batchReports';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new BatchReportList.fromJson(data));
|
| - }
|
| -
|
| -}
|
| -
|
| -
|
| class GroupItemsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| @@ -717,286 +607,6 @@ class ReportsResourceApi {
|
|
|
|
|
|
|
| -class BatchReportOutputs {
|
| - /**
|
| - * Cloud storage URL to download this report. This URL is valid for 30
|
| - * minutes.
|
| - */
|
| - core.String downloadUrl;
|
| - /** Format of the output. */
|
| - core.String format;
|
| - /** Type of the output. */
|
| - core.String type;
|
| -
|
| - BatchReportOutputs();
|
| -
|
| - BatchReportOutputs.fromJson(core.Map _json) {
|
| - if (_json.containsKey("downloadUrl")) {
|
| - downloadUrl = _json["downloadUrl"];
|
| - }
|
| - if (_json.containsKey("format")) {
|
| - format = _json["format"];
|
| - }
|
| - if (_json.containsKey("type")) {
|
| - type = _json["type"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (downloadUrl != null) {
|
| - _json["downloadUrl"] = downloadUrl;
|
| - }
|
| - if (format != null) {
|
| - _json["format"] = format;
|
| - }
|
| - if (type != null) {
|
| - _json["type"] = type;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * Period included in the report. For reports containing all entities endTime is
|
| - * not set. Both startTime and endTime are inclusive.
|
| - */
|
| -class BatchReportTimeSpan {
|
| - /**
|
| - * End of the period included in the report. Inclusive. For reports containing
|
| - * all entities endTime is not set.
|
| - */
|
| - core.DateTime endTime;
|
| - /** Start of the period included in the report. Inclusive. */
|
| - core.DateTime startTime;
|
| -
|
| - BatchReportTimeSpan();
|
| -
|
| - BatchReportTimeSpan.fromJson(core.Map _json) {
|
| - if (_json.containsKey("endTime")) {
|
| - endTime = core.DateTime.parse(_json["endTime"]);
|
| - }
|
| - if (_json.containsKey("startTime")) {
|
| - startTime = core.DateTime.parse(_json["startTime"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (endTime != null) {
|
| - _json["endTime"] = (endTime).toIso8601String();
|
| - }
|
| - if (startTime != null) {
|
| - _json["startTime"] = (startTime).toIso8601String();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** Contains single batchReport resource. */
|
| -class BatchReport {
|
| - /** The ID that YouTube assigns and uses to uniquely identify the report. */
|
| - core.String id;
|
| - /**
|
| - * This value specifies the type of data of this item. For batch report the
|
| - * kind property value is youtubeAnalytics#batchReport.
|
| - */
|
| - core.String kind;
|
| - /** Report outputs. */
|
| - core.List<BatchReportOutputs> outputs;
|
| - /** The ID of the the report definition. */
|
| - core.String reportId;
|
| - /**
|
| - * Period included in the report. For reports containing all entities endTime
|
| - * is not set. Both startTime and endTime are inclusive.
|
| - */
|
| - BatchReportTimeSpan timeSpan;
|
| - /** The time when the report was updated. */
|
| - core.DateTime timeUpdated;
|
| -
|
| - BatchReport();
|
| -
|
| - BatchReport.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("outputs")) {
|
| - outputs = _json["outputs"].map((value) => new BatchReportOutputs.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("reportId")) {
|
| - reportId = _json["reportId"];
|
| - }
|
| - if (_json.containsKey("timeSpan")) {
|
| - timeSpan = new BatchReportTimeSpan.fromJson(_json["timeSpan"]);
|
| - }
|
| - if (_json.containsKey("timeUpdated")) {
|
| - timeUpdated = core.DateTime.parse(_json["timeUpdated"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (outputs != null) {
|
| - _json["outputs"] = outputs.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (reportId != null) {
|
| - _json["reportId"] = reportId;
|
| - }
|
| - if (timeSpan != null) {
|
| - _json["timeSpan"] = (timeSpan).toJson();
|
| - }
|
| - if (timeUpdated != null) {
|
| - _json["timeUpdated"] = (timeUpdated).toIso8601String();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** Contains single batchReportDefinition resource. */
|
| -class BatchReportDefinition {
|
| - /**
|
| - * The ID that YouTube assigns and uses to uniquely identify the report
|
| - * definition.
|
| - */
|
| - core.String id;
|
| - /**
|
| - * This value specifies the type of data of this item. For batch report
|
| - * definition the kind property value is
|
| - * youtubeAnalytics#batchReportDefinition.
|
| - */
|
| - core.String kind;
|
| - /** Name of the report definition. */
|
| - core.String name;
|
| - /** Status of the report definition. */
|
| - core.String status;
|
| - /** Type of the report definition. */
|
| - core.String type;
|
| -
|
| - BatchReportDefinition();
|
| -
|
| - BatchReportDefinition.fromJson(core.Map _json) {
|
| - if (_json.containsKey("id")) {
|
| - id = _json["id"];
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("status")) {
|
| - status = _json["status"];
|
| - }
|
| - if (_json.containsKey("type")) {
|
| - type = _json["type"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (id != null) {
|
| - _json["id"] = id;
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (status != null) {
|
| - _json["status"] = status;
|
| - }
|
| - if (type != null) {
|
| - _json["type"] = type;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * A paginated list of batchReportDefinition resources returned in response to a
|
| - * youtubeAnalytics.batchReportDefinitions.list request.
|
| - */
|
| -class BatchReportDefinitionList {
|
| - /**
|
| - * A list of batchReportDefinition resources that match the request criteria.
|
| - */
|
| - core.List<BatchReportDefinition> items;
|
| - /**
|
| - * This value specifies the type of data included in the API response. For the
|
| - * list method, the kind property value is
|
| - * youtubeAnalytics#batchReportDefinitionList.
|
| - */
|
| - core.String kind;
|
| -
|
| - BatchReportDefinitionList();
|
| -
|
| - BatchReportDefinitionList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new BatchReportDefinition.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (items != null) {
|
| - _json["items"] = items.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * A paginated list of batchReport resources returned in response to a
|
| - * youtubeAnalytics.batchReport.list request.
|
| - */
|
| -class BatchReportList {
|
| - /** A list of batchReport resources that match the request criteria. */
|
| - core.List<BatchReport> items;
|
| - /**
|
| - * This value specifies the type of data included in the API response. For the
|
| - * list method, the kind property value is youtubeAnalytics#batchReportList.
|
| - */
|
| - core.String kind;
|
| -
|
| - BatchReportList();
|
| -
|
| - BatchReportList.fromJson(core.Map _json) {
|
| - if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new BatchReport.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (items != null) {
|
| - _json["items"] = items.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| class GroupContentDetails {
|
| core.String itemCount;
|
| core.String itemType;
|
|
|