Index: generated/googleapis/lib/youtubeanalytics/v1.dart |
diff --git a/generated/googleapis/lib/youtubeanalytics/v1.dart b/generated/googleapis/lib/youtubeanalytics/v1.dart |
index 9cfc553cb51b5e6be604230b444d0858bf142ae5..43b30739d48a1c5c7d63b33763a7383dcd9733c4 100644 |
--- a/generated/googleapis/lib/youtubeanalytics/v1.dart |
+++ b/generated/googleapis/lib/youtubeanalytics/v1.dart |
@@ -273,50 +273,14 @@ class ReportsResourceApi { |
-/** |
- * 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<BatchReportDefinitionTemplate> items; |
- |
+/** Not documented yet. */ |
+class BatchReportOutputs { |
/** |
- * This value specifies the type of data included in the API response. For the |
- * list method, the kind property value is |
- * youtubeAnalytics#batchReportDefinitionList. |
+ * Cloud storage URL to download this report. This URL is valid for 30 |
+ * minutes. |
*/ |
- core.String kind; |
- |
- |
- BatchReportDefinitionList(); |
- |
- BatchReportDefinitionList.fromJson(core.Map _json) { |
- if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new BatchReportDefinitionTemplate.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; |
- } |
-} |
- |
+ core.String downloadUrl; |
-/** Not documented yet. */ |
-class BatchReportDefinitionTemplateDefaultOutput { |
/** Format of the output. */ |
core.String format; |
@@ -324,9 +288,12 @@ class BatchReportDefinitionTemplateDefaultOutput { |
core.String type; |
- BatchReportDefinitionTemplateDefaultOutput(); |
+ BatchReportOutputs(); |
- BatchReportDefinitionTemplateDefaultOutput.fromJson(core.Map _json) { |
+ BatchReportOutputs.fromJson(core.Map _json) { |
+ if (_json.containsKey("downloadUrl")) { |
+ downloadUrl = _json["downloadUrl"]; |
+ } |
if (_json.containsKey("format")) { |
format = _json["format"]; |
} |
@@ -337,6 +304,9 @@ class BatchReportDefinitionTemplateDefaultOutput { |
core.Map toJson() { |
var _json = new core.Map(); |
+ if (downloadUrl != null) { |
+ _json["downloadUrl"] = downloadUrl; |
+ } |
if (format != null) { |
_json["format"] = format; |
} |
@@ -348,131 +318,159 @@ class BatchReportDefinitionTemplateDefaultOutput { |
} |
-/** Contains single batchReportDefinition resource. */ |
-class BatchReportDefinitionTemplate { |
- /** Default report definition's output. */ |
- core.List<BatchReportDefinitionTemplateDefaultOutput> defaultOutput; |
- |
+/** |
+ * Period included in the report. For reports containing all entities endTime is |
+ * not set. Both startTime and endTime are inclusive. |
+ */ |
+class BatchReportTimeSpan { |
/** |
- * The ID that YouTube assigns and uses to uniquely identify the report |
- * definition. |
+ * End of the period included in the report. Inclusive. For reports containing |
+ * all entities endTime is not set. |
*/ |
- core.String id; |
- |
- /** Name of the report definition. */ |
- core.String name; |
- |
- /** Status of the report definition. */ |
- core.String status; |
+ core.DateTime endTime; |
- /** Type of the report definition. */ |
- core.String type; |
+ /** Start of the period included in the report. Inclusive. */ |
+ core.DateTime startTime; |
- BatchReportDefinitionTemplate(); |
+ BatchReportTimeSpan(); |
- BatchReportDefinitionTemplate.fromJson(core.Map _json) { |
- if (_json.containsKey("defaultOutput")) { |
- defaultOutput = _json["defaultOutput"].map((value) => new BatchReportDefinitionTemplateDefaultOutput.fromJson(value)).toList(); |
- } |
- if (_json.containsKey("id")) { |
- id = _json["id"]; |
- } |
- if (_json.containsKey("name")) { |
- name = _json["name"]; |
- } |
- if (_json.containsKey("status")) { |
- status = _json["status"]; |
+ BatchReportTimeSpan.fromJson(core.Map _json) { |
+ if (_json.containsKey("endTime")) { |
+ endTime = core.DateTime.parse(_json["endTime"]); |
} |
- if (_json.containsKey("type")) { |
- type = _json["type"]; |
+ if (_json.containsKey("startTime")) { |
+ startTime = core.DateTime.parse(_json["startTime"]); |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (defaultOutput != null) { |
- _json["defaultOutput"] = defaultOutput.map((value) => (value).toJson()).toList(); |
- } |
- if (id != null) { |
- _json["id"] = id; |
- } |
- if (name != null) { |
- _json["name"] = name; |
- } |
- if (status != null) { |
- _json["status"] = status; |
+ if (endTime != null) { |
+ _json["endTime"] = (endTime).toIso8601String(); |
} |
- if (type != null) { |
- _json["type"] = type; |
+ if (startTime != null) { |
+ _json["startTime"] = (startTime).toIso8601String(); |
} |
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<BatchReportTemplate> items; |
+/** 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 included in the API response. For the |
- * list method, the kind property value is youtubeAnalytics#batchReportList. |
+ * 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; |
- BatchReportList(); |
+ /** The ID of the the report definition. */ |
+ core.String reportId; |
- BatchReportList.fromJson(core.Map _json) { |
- if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new BatchReportTemplate.fromJson(value)).toList(); |
+ /** |
+ * 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 (items != null) { |
- _json["items"] = items.map((value) => (value).toJson()).toList(); |
+ 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; |
} |
} |
-/** Not documented yet. */ |
-class BatchReportTemplateOutputs { |
+/** Contains single batchReportDefinition resource. */ |
+class BatchReportDefinition { |
/** |
- * Cloud storage URL to download this report. This URL is valid for 30 |
- * minutes. |
+ * The ID that YouTube assigns and uses to uniquely identify the report |
+ * definition. |
*/ |
- core.String downloadUrl; |
+ core.String id; |
- /** Format of the output. */ |
- core.String format; |
+ /** |
+ * This value specifies the type of data of this item. For batch report |
+ * definition the kind property value is |
+ * youtubeAnalytics#batchReportDefinition. |
+ */ |
+ core.String kind; |
- /** Type of the output. */ |
+ /** Name of the report definition. */ |
+ core.String name; |
+ |
+ /** Status of the report definition. */ |
+ core.String status; |
+ |
+ /** Type of the report definition. */ |
core.String type; |
- BatchReportTemplateOutputs(); |
+ BatchReportDefinition(); |
- BatchReportTemplateOutputs.fromJson(core.Map _json) { |
- if (_json.containsKey("downloadUrl")) { |
- downloadUrl = _json["downloadUrl"]; |
+ BatchReportDefinition.fromJson(core.Map _json) { |
+ if (_json.containsKey("id")) { |
+ id = _json["id"]; |
} |
- if (_json.containsKey("format")) { |
- format = _json["format"]; |
+ 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"]; |
@@ -481,11 +479,17 @@ class BatchReportTemplateOutputs { |
core.Map toJson() { |
var _json = new core.Map(); |
- if (downloadUrl != null) { |
- _json["downloadUrl"] = downloadUrl; |
+ if (id != null) { |
+ _json["id"] = id; |
} |
- if (format != null) { |
- _json["format"] = format; |
+ if (kind != null) { |
+ _json["kind"] = kind; |
+ } |
+ if (name != null) { |
+ _json["name"] = name; |
+ } |
+ if (status != null) { |
+ _json["status"] = status; |
} |
if (type != null) { |
_json["type"] = type; |
@@ -496,101 +500,80 @@ class BatchReportTemplateOutputs { |
/** |
- * Period included in the report. For reports containing all entities endTime is |
- * not set. Both startTime and endTime are inclusive. |
+ * A paginated list of batchReportDefinition resources returned in response to a |
+ * youtubeAnalytics.batchReportDefinitions.list request. |
*/ |
-class BatchReportTemplateTimeSpan { |
+class BatchReportDefinitionList { |
/** |
- * End of the period included in the report. Inclusive. For reports containing |
- * all entities endTime is not set. |
+ * A list of batchReportDefinition resources that match the request criteria. |
*/ |
- core.DateTime endTime; |
+ core.List<BatchReportDefinition> items; |
- /** Start of the period included in the report. Inclusive. */ |
- core.DateTime startTime; |
+ /** |
+ * 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; |
- BatchReportTemplateTimeSpan(); |
+ BatchReportDefinitionList(); |
- BatchReportTemplateTimeSpan.fromJson(core.Map _json) { |
- if (_json.containsKey("endTime")) { |
- endTime = core.DateTime.parse(_json["endTime"]); |
+ BatchReportDefinitionList.fromJson(core.Map _json) { |
+ if (_json.containsKey("items")) { |
+ items = _json["items"].map((value) => new BatchReportDefinition.fromJson(value)).toList(); |
} |
- if (_json.containsKey("startTime")) { |
- startTime = core.DateTime.parse(_json["startTime"]); |
+ if (_json.containsKey("kind")) { |
+ kind = _json["kind"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (endTime != null) { |
- _json["endTime"] = (endTime).toIso8601String(); |
+ if (items != null) { |
+ _json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
- if (startTime != null) { |
- _json["startTime"] = (startTime).toIso8601String(); |
+ if (kind != null) { |
+ _json["kind"] = kind; |
} |
return _json; |
} |
} |
-/** Contains single batchReport resource. */ |
-class BatchReportTemplate { |
- /** The ID that YouTube assigns and uses to uniquely identify the report. */ |
- core.String id; |
- |
- /** Report outputs. */ |
- core.List<BatchReportTemplateOutputs> outputs; |
- |
- /** The ID of the the report definition. */ |
- core.String reportId; |
+/** |
+ * 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; |
/** |
- * Period included in the report. For reports containing all entities endTime |
- * is not set. Both startTime and endTime are inclusive. |
+ * This value specifies the type of data included in the API response. For the |
+ * list method, the kind property value is youtubeAnalytics#batchReportList. |
*/ |
- BatchReportTemplateTimeSpan timeSpan; |
- |
- /** The time when the report was updated. */ |
- core.DateTime timeUpdated; |
+ core.String kind; |
- BatchReportTemplate(); |
+ BatchReportList(); |
- BatchReportTemplate.fromJson(core.Map _json) { |
- if (_json.containsKey("id")) { |
- id = _json["id"]; |
- } |
- if (_json.containsKey("outputs")) { |
- outputs = _json["outputs"].map((value) => new BatchReportTemplateOutputs.fromJson(value)).toList(); |
- } |
- if (_json.containsKey("report_id")) { |
- reportId = _json["report_id"]; |
- } |
- if (_json.containsKey("timeSpan")) { |
- timeSpan = new BatchReportTemplateTimeSpan.fromJson(_json["timeSpan"]); |
+ BatchReportList.fromJson(core.Map _json) { |
+ if (_json.containsKey("items")) { |
+ items = _json["items"].map((value) => new BatchReport.fromJson(value)).toList(); |
} |
- if (_json.containsKey("timeUpdated")) { |
- timeUpdated = core.DateTime.parse(_json["timeUpdated"]); |
+ if (_json.containsKey("kind")) { |
+ kind = _json["kind"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (id != null) { |
- _json["id"] = id; |
- } |
- if (outputs != null) { |
- _json["outputs"] = outputs.map((value) => (value).toJson()).toList(); |
- } |
- if (reportId != null) { |
- _json["report_id"] = reportId; |
- } |
- if (timeSpan != null) { |
- _json["timeSpan"] = (timeSpan).toJson(); |
+ if (items != null) { |
+ _json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
- if (timeUpdated != null) { |
- _json["timeUpdated"] = (timeUpdated).toIso8601String(); |
+ if (kind != null) { |
+ _json["kind"] = kind; |
} |
return _json; |
} |