| OLD | NEW |
| 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.bigquery.v2; | 3 library googleapis.bigquery.v2; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:collection' as collection; | 6 import 'dart:collection' as collection; |
| 7 import 'dart:async' as async; | 7 import 'dart:async' as async; |
| 8 import 'dart:convert' as convert; | 8 import 'dart:convert' as convert; |
| 9 | 9 |
| 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 /** | 204 /** |
| 205 * Lists all datasets in the specified project to which you have been granted | 205 * Lists all datasets in the specified project to which you have been granted |
| 206 * the READER dataset role. | 206 * the READER dataset role. |
| 207 * | 207 * |
| 208 * Request parameters: | 208 * Request parameters: |
| 209 * | 209 * |
| 210 * [projectId] - Project ID of the datasets to be listed | 210 * [projectId] - Project ID of the datasets to be listed |
| 211 * | 211 * |
| 212 * [all] - Whether to list all datasets, including hidden ones | 212 * [all] - Whether to list all datasets, including hidden ones |
| 213 * | 213 * |
| 214 * [filter] - An expression for filtering the results of the request by label. |
| 215 * The syntax is "labels.[:]". Multiple filters can be ANDed together by |
| 216 * connecting with a space. Example: "labels.department:receiving |
| 217 * labels.active". See |
| 218 * https://cloud.google.com/bigquery/docs/labeling-datasets#filtering_datasets
_using_labels |
| 219 * for details. |
| 220 * |
| 214 * [maxResults] - The maximum number of results to return | 221 * [maxResults] - The maximum number of results to return |
| 215 * | 222 * |
| 216 * [pageToken] - Page token, returned by a previous call, to request the next | 223 * [pageToken] - Page token, returned by a previous call, to request the next |
| 217 * page of results | 224 * page of results |
| 218 * | 225 * |
| 219 * Completes with a [DatasetList]. | 226 * Completes with a [DatasetList]. |
| 220 * | 227 * |
| 221 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 222 * error. | 229 * error. |
| 223 * | 230 * |
| 224 * If the used [http.Client] completes with an error when making a REST call, | 231 * If the used [http.Client] completes with an error when making a REST call, |
| 225 * this method will complete with the same error. | 232 * this method will complete with the same error. |
| 226 */ | 233 */ |
| 227 async.Future<DatasetList> list(core.String projectId, {core.bool all, core.int
maxResults, core.String pageToken}) { | 234 async.Future<DatasetList> list(core.String projectId, {core.bool all, core.Str
ing filter, core.int maxResults, core.String pageToken}) { |
| 228 var _url = null; | 235 var _url = null; |
| 229 var _queryParams = new core.Map(); | 236 var _queryParams = new core.Map(); |
| 230 var _uploadMedia = null; | 237 var _uploadMedia = null; |
| 231 var _uploadOptions = null; | 238 var _uploadOptions = null; |
| 232 var _downloadOptions = commons.DownloadOptions.Metadata; | 239 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 233 var _body = null; | 240 var _body = null; |
| 234 | 241 |
| 235 if (projectId == null) { | 242 if (projectId == null) { |
| 236 throw new core.ArgumentError("Parameter projectId is required."); | 243 throw new core.ArgumentError("Parameter projectId is required."); |
| 237 } | 244 } |
| 238 if (all != null) { | 245 if (all != null) { |
| 239 _queryParams["all"] = ["${all}"]; | 246 _queryParams["all"] = ["${all}"]; |
| 240 } | 247 } |
| 248 if (filter != null) { |
| 249 _queryParams["filter"] = [filter]; |
| 250 } |
| 241 if (maxResults != null) { | 251 if (maxResults != null) { |
| 242 _queryParams["maxResults"] = ["${maxResults}"]; | 252 _queryParams["maxResults"] = ["${maxResults}"]; |
| 243 } | 253 } |
| 244 if (pageToken != null) { | 254 if (pageToken != null) { |
| 245 _queryParams["pageToken"] = [pageToken]; | 255 _queryParams["pageToken"] = [pageToken]; |
| 246 } | 256 } |
| 247 | 257 |
| 248 _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/dataset
s'; | 258 _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/dataset
s'; |
| 249 | 259 |
| 250 var _response = _requester.request(_url, | 260 var _response = _requester.request(_url, |
| (...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1654 /** | 1664 /** |
| 1655 * [Output-only] The fully-qualified unique name of the dataset in the format | 1665 * [Output-only] The fully-qualified unique name of the dataset in the format |
| 1656 * projectId:datasetId. The dataset name without the project name is given in | 1666 * projectId:datasetId. The dataset name without the project name is given in |
| 1657 * the datasetId field. When creating a new dataset, leave this field blank, | 1667 * the datasetId field. When creating a new dataset, leave this field blank, |
| 1658 * and instead specify the datasetId field. | 1668 * and instead specify the datasetId field. |
| 1659 */ | 1669 */ |
| 1660 core.String id; | 1670 core.String id; |
| 1661 /** [Output-only] The resource type. */ | 1671 /** [Output-only] The resource type. */ |
| 1662 core.String kind; | 1672 core.String kind; |
| 1663 /** | 1673 /** |
| 1674 * [Experimental] The labels associated with this dataset. You can use these |
| 1675 * to organize and group your datasets. You can set this property when |
| 1676 * inserting or updating a dataset. Label keys and values can be no longer |
| 1677 * than 63 characters, can only contain letters, numeric characters, |
| 1678 * underscores and dashes. International characters are allowed. Label values |
| 1679 * are optional. Label keys must start with a letter and must be unique within |
| 1680 * a dataset. Both keys and values are additionally constrained to be <= 128 |
| 1681 * bytes in size. |
| 1682 */ |
| 1683 core.Map<core.String, core.String> labels; |
| 1684 /** |
| 1664 * [Output-only] The date when this dataset or any of its tables was last | 1685 * [Output-only] The date when this dataset or any of its tables was last |
| 1665 * modified, in milliseconds since the epoch. | 1686 * modified, in milliseconds since the epoch. |
| 1666 */ | 1687 */ |
| 1667 core.String lastModifiedTime; | 1688 core.String lastModifiedTime; |
| 1668 /** | 1689 /** |
| 1669 * [Experimental] The geographic location where the dataset should reside. | 1690 * [Experimental] The geographic location where the dataset should reside. |
| 1670 * Possible values include EU and US. The default value is US. | 1691 * Possible values include EU and US. The default value is US. |
| 1671 */ | 1692 */ |
| 1672 core.String location; | 1693 core.String location; |
| 1673 /** | 1694 /** |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1699 } | 1720 } |
| 1700 if (_json.containsKey("friendlyName")) { | 1721 if (_json.containsKey("friendlyName")) { |
| 1701 friendlyName = _json["friendlyName"]; | 1722 friendlyName = _json["friendlyName"]; |
| 1702 } | 1723 } |
| 1703 if (_json.containsKey("id")) { | 1724 if (_json.containsKey("id")) { |
| 1704 id = _json["id"]; | 1725 id = _json["id"]; |
| 1705 } | 1726 } |
| 1706 if (_json.containsKey("kind")) { | 1727 if (_json.containsKey("kind")) { |
| 1707 kind = _json["kind"]; | 1728 kind = _json["kind"]; |
| 1708 } | 1729 } |
| 1730 if (_json.containsKey("labels")) { |
| 1731 labels = _json["labels"]; |
| 1732 } |
| 1709 if (_json.containsKey("lastModifiedTime")) { | 1733 if (_json.containsKey("lastModifiedTime")) { |
| 1710 lastModifiedTime = _json["lastModifiedTime"]; | 1734 lastModifiedTime = _json["lastModifiedTime"]; |
| 1711 } | 1735 } |
| 1712 if (_json.containsKey("location")) { | 1736 if (_json.containsKey("location")) { |
| 1713 location = _json["location"]; | 1737 location = _json["location"]; |
| 1714 } | 1738 } |
| 1715 if (_json.containsKey("selfLink")) { | 1739 if (_json.containsKey("selfLink")) { |
| 1716 selfLink = _json["selfLink"]; | 1740 selfLink = _json["selfLink"]; |
| 1717 } | 1741 } |
| 1718 } | 1742 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1739 } | 1763 } |
| 1740 if (friendlyName != null) { | 1764 if (friendlyName != null) { |
| 1741 _json["friendlyName"] = friendlyName; | 1765 _json["friendlyName"] = friendlyName; |
| 1742 } | 1766 } |
| 1743 if (id != null) { | 1767 if (id != null) { |
| 1744 _json["id"] = id; | 1768 _json["id"] = id; |
| 1745 } | 1769 } |
| 1746 if (kind != null) { | 1770 if (kind != null) { |
| 1747 _json["kind"] = kind; | 1771 _json["kind"] = kind; |
| 1748 } | 1772 } |
| 1773 if (labels != null) { |
| 1774 _json["labels"] = labels; |
| 1775 } |
| 1749 if (lastModifiedTime != null) { | 1776 if (lastModifiedTime != null) { |
| 1750 _json["lastModifiedTime"] = lastModifiedTime; | 1777 _json["lastModifiedTime"] = lastModifiedTime; |
| 1751 } | 1778 } |
| 1752 if (location != null) { | 1779 if (location != null) { |
| 1753 _json["location"] = location; | 1780 _json["location"] = location; |
| 1754 } | 1781 } |
| 1755 if (selfLink != null) { | 1782 if (selfLink != null) { |
| 1756 _json["selfLink"] = selfLink; | 1783 _json["selfLink"] = selfLink; |
| 1757 } | 1784 } |
| 1758 return _json; | 1785 return _json; |
| 1759 } | 1786 } |
| 1760 } | 1787 } |
| 1761 | 1788 |
| 1762 class DatasetListDatasets { | 1789 class DatasetListDatasets { |
| 1763 /** | 1790 /** |
| 1764 * The dataset reference. Use this property to access specific parts of the | 1791 * The dataset reference. Use this property to access specific parts of the |
| 1765 * dataset's ID, such as project ID or dataset ID. | 1792 * dataset's ID, such as project ID or dataset ID. |
| 1766 */ | 1793 */ |
| 1767 DatasetReference datasetReference; | 1794 DatasetReference datasetReference; |
| 1768 /** A descriptive name for the dataset, if one exists. */ | 1795 /** A descriptive name for the dataset, if one exists. */ |
| 1769 core.String friendlyName; | 1796 core.String friendlyName; |
| 1770 /** The fully-qualified, unique, opaque ID of the dataset. */ | 1797 /** The fully-qualified, unique, opaque ID of the dataset. */ |
| 1771 core.String id; | 1798 core.String id; |
| 1772 /** | 1799 /** |
| 1773 * The resource type. This property always returns the value | 1800 * The resource type. This property always returns the value |
| 1774 * "bigquery#dataset". | 1801 * "bigquery#dataset". |
| 1775 */ | 1802 */ |
| 1776 core.String kind; | 1803 core.String kind; |
| 1804 /** |
| 1805 * [Experimental] The labels associated with this dataset. You can use these |
| 1806 * to organize and group your datasets. |
| 1807 */ |
| 1808 core.Map<core.String, core.String> labels; |
| 1777 | 1809 |
| 1778 DatasetListDatasets(); | 1810 DatasetListDatasets(); |
| 1779 | 1811 |
| 1780 DatasetListDatasets.fromJson(core.Map _json) { | 1812 DatasetListDatasets.fromJson(core.Map _json) { |
| 1781 if (_json.containsKey("datasetReference")) { | 1813 if (_json.containsKey("datasetReference")) { |
| 1782 datasetReference = new DatasetReference.fromJson(_json["datasetReference"]
); | 1814 datasetReference = new DatasetReference.fromJson(_json["datasetReference"]
); |
| 1783 } | 1815 } |
| 1784 if (_json.containsKey("friendlyName")) { | 1816 if (_json.containsKey("friendlyName")) { |
| 1785 friendlyName = _json["friendlyName"]; | 1817 friendlyName = _json["friendlyName"]; |
| 1786 } | 1818 } |
| 1787 if (_json.containsKey("id")) { | 1819 if (_json.containsKey("id")) { |
| 1788 id = _json["id"]; | 1820 id = _json["id"]; |
| 1789 } | 1821 } |
| 1790 if (_json.containsKey("kind")) { | 1822 if (_json.containsKey("kind")) { |
| 1791 kind = _json["kind"]; | 1823 kind = _json["kind"]; |
| 1792 } | 1824 } |
| 1825 if (_json.containsKey("labels")) { |
| 1826 labels = _json["labels"]; |
| 1827 } |
| 1793 } | 1828 } |
| 1794 | 1829 |
| 1795 core.Map toJson() { | 1830 core.Map toJson() { |
| 1796 var _json = new core.Map(); | 1831 var _json = new core.Map(); |
| 1797 if (datasetReference != null) { | 1832 if (datasetReference != null) { |
| 1798 _json["datasetReference"] = (datasetReference).toJson(); | 1833 _json["datasetReference"] = (datasetReference).toJson(); |
| 1799 } | 1834 } |
| 1800 if (friendlyName != null) { | 1835 if (friendlyName != null) { |
| 1801 _json["friendlyName"] = friendlyName; | 1836 _json["friendlyName"] = friendlyName; |
| 1802 } | 1837 } |
| 1803 if (id != null) { | 1838 if (id != null) { |
| 1804 _json["id"] = id; | 1839 _json["id"] = id; |
| 1805 } | 1840 } |
| 1806 if (kind != null) { | 1841 if (kind != null) { |
| 1807 _json["kind"] = kind; | 1842 _json["kind"] = kind; |
| 1808 } | 1843 } |
| 1844 if (labels != null) { |
| 1845 _json["labels"] = labels; |
| 1846 } |
| 1809 return _json; | 1847 return _json; |
| 1810 } | 1848 } |
| 1811 } | 1849 } |
| 1812 | 1850 |
| 1813 class DatasetList { | 1851 class DatasetList { |
| 1814 /** | 1852 /** |
| 1815 * An array of the dataset resources in the project. Each resource contains | 1853 * An array of the dataset resources in the project. Each resource contains |
| 1816 * basic information. For full information about a particular dataset | 1854 * basic information. For full information about a particular dataset |
| 1817 * resource, use the Datasets: get method. This property is omitted when there | 1855 * resource, use the Datasets: get method. This property is omitted when there |
| 1818 * are no datasets in the project. | 1856 * are no datasets in the project. |
| (...skipping 3092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4911 } | 4949 } |
| 4912 if (useLegacySql != null) { | 4950 if (useLegacySql != null) { |
| 4913 _json["useLegacySql"] = useLegacySql; | 4951 _json["useLegacySql"] = useLegacySql; |
| 4914 } | 4952 } |
| 4915 if (userDefinedFunctionResources != null) { | 4953 if (userDefinedFunctionResources != null) { |
| 4916 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); | 4954 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); |
| 4917 } | 4955 } |
| 4918 return _json; | 4956 return _json; |
| 4919 } | 4957 } |
| 4920 } | 4958 } |
| OLD | NEW |