@googleapis/chromemanagement 9.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/build/v1.d.ts +0 -901
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +0 -901
package/build/v1.d.ts
CHANGED
|
@@ -1636,60 +1636,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
1636
1636
|
constructor(context: APIRequestContext);
|
|
1637
1637
|
/**
|
|
1638
1638
|
* Generate summary of app installation requests.
|
|
1639
|
-
* @example
|
|
1640
|
-
* ```js
|
|
1641
|
-
* // Before running the sample:
|
|
1642
|
-
* // - Enable the API at:
|
|
1643
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
1644
|
-
* // - Login into gcloud by running:
|
|
1645
|
-
* // `$ gcloud auth application-default login`
|
|
1646
|
-
* // - Install the npm module by running:
|
|
1647
|
-
* // `$ npm install googleapis`
|
|
1648
|
-
*
|
|
1649
|
-
* const {google} = require('googleapis');
|
|
1650
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
1651
|
-
*
|
|
1652
|
-
* async function main() {
|
|
1653
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1654
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1655
|
-
* scopes: [
|
|
1656
|
-
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
1657
|
-
* ],
|
|
1658
|
-
* });
|
|
1659
|
-
*
|
|
1660
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1661
|
-
* const authClient = await auth.getClient();
|
|
1662
|
-
* google.options({auth: authClient});
|
|
1663
|
-
*
|
|
1664
|
-
* // Do the magic
|
|
1665
|
-
* const res = await chromemanagement.customers.apps.countChromeAppRequests({
|
|
1666
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
1667
|
-
* customer: 'customers/my-customer',
|
|
1668
|
-
* // Field used to order results. Supported fields: * request_count * latest_request_time
|
|
1669
|
-
* orderBy: 'placeholder-value',
|
|
1670
|
-
* // The ID of the organizational unit.
|
|
1671
|
-
* orgUnitId: 'placeholder-value',
|
|
1672
|
-
* // Maximum number of results to return. Maximum and default are 50, anything above will be coerced to 50.
|
|
1673
|
-
* pageSize: 'placeholder-value',
|
|
1674
|
-
* // Token to specify the page of the request to be returned.
|
|
1675
|
-
* pageToken: 'placeholder-value',
|
|
1676
|
-
* });
|
|
1677
|
-
* console.log(res.data);
|
|
1678
|
-
*
|
|
1679
|
-
* // Example response
|
|
1680
|
-
* // {
|
|
1681
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
1682
|
-
* // "requestedApps": [],
|
|
1683
|
-
* // "totalSize": 0
|
|
1684
|
-
* // }
|
|
1685
|
-
* }
|
|
1686
|
-
*
|
|
1687
|
-
* main().catch(e => {
|
|
1688
|
-
* console.error(e);
|
|
1689
|
-
* throw e;
|
|
1690
|
-
* });
|
|
1691
|
-
*
|
|
1692
|
-
* ```
|
|
1693
1639
|
*
|
|
1694
1640
|
* @param params - Parameters for request
|
|
1695
1641
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1730,68 +1676,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
1730
1676
|
constructor(context: APIRequestContext);
|
|
1731
1677
|
/**
|
|
1732
1678
|
* Get a specific app for a customer by its resource name.
|
|
1733
|
-
* @example
|
|
1734
|
-
* ```js
|
|
1735
|
-
* // Before running the sample:
|
|
1736
|
-
* // - Enable the API at:
|
|
1737
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
1738
|
-
* // - Login into gcloud by running:
|
|
1739
|
-
* // `$ gcloud auth application-default login`
|
|
1740
|
-
* // - Install the npm module by running:
|
|
1741
|
-
* // `$ npm install googleapis`
|
|
1742
|
-
*
|
|
1743
|
-
* const {google} = require('googleapis');
|
|
1744
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
1745
|
-
*
|
|
1746
|
-
* async function main() {
|
|
1747
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1748
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1749
|
-
* scopes: [
|
|
1750
|
-
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
1751
|
-
* ],
|
|
1752
|
-
* });
|
|
1753
|
-
*
|
|
1754
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1755
|
-
* const authClient = await auth.getClient();
|
|
1756
|
-
* google.options({auth: authClient});
|
|
1757
|
-
*
|
|
1758
|
-
* // Do the magic
|
|
1759
|
-
* const res = await chromemanagement.customers.apps.android.get({
|
|
1760
|
-
* // Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
1761
|
-
* name: 'customers/my-customer/apps/android/[^/]+',
|
|
1762
|
-
* });
|
|
1763
|
-
* console.log(res.data);
|
|
1764
|
-
*
|
|
1765
|
-
* // Example response
|
|
1766
|
-
* // {
|
|
1767
|
-
* // "androidAppInfo": {},
|
|
1768
|
-
* // "appId": "my_appId",
|
|
1769
|
-
* // "chromeAppInfo": {},
|
|
1770
|
-
* // "description": "my_description",
|
|
1771
|
-
* // "detailUri": "my_detailUri",
|
|
1772
|
-
* // "displayName": "my_displayName",
|
|
1773
|
-
* // "firstPublishTime": "my_firstPublishTime",
|
|
1774
|
-
* // "homepageUri": "my_homepageUri",
|
|
1775
|
-
* // "iconUri": "my_iconUri",
|
|
1776
|
-
* // "isPaidApp": false,
|
|
1777
|
-
* // "latestPublishTime": "my_latestPublishTime",
|
|
1778
|
-
* // "name": "my_name",
|
|
1779
|
-
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
1780
|
-
* // "publisher": "my_publisher",
|
|
1781
|
-
* // "reviewNumber": "my_reviewNumber",
|
|
1782
|
-
* // "reviewRating": {},
|
|
1783
|
-
* // "revisionId": "my_revisionId",
|
|
1784
|
-
* // "serviceError": {},
|
|
1785
|
-
* // "type": "my_type"
|
|
1786
|
-
* // }
|
|
1787
|
-
* }
|
|
1788
|
-
*
|
|
1789
|
-
* main().catch(e => {
|
|
1790
|
-
* console.error(e);
|
|
1791
|
-
* throw e;
|
|
1792
|
-
* });
|
|
1793
|
-
*
|
|
1794
|
-
* ```
|
|
1795
1679
|
*
|
|
1796
1680
|
* @param params - Parameters for request
|
|
1797
1681
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1816,68 +1700,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
1816
1700
|
constructor(context: APIRequestContext);
|
|
1817
1701
|
/**
|
|
1818
1702
|
* Get a specific app for a customer by its resource name.
|
|
1819
|
-
* @example
|
|
1820
|
-
* ```js
|
|
1821
|
-
* // Before running the sample:
|
|
1822
|
-
* // - Enable the API at:
|
|
1823
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
1824
|
-
* // - Login into gcloud by running:
|
|
1825
|
-
* // `$ gcloud auth application-default login`
|
|
1826
|
-
* // - Install the npm module by running:
|
|
1827
|
-
* // `$ npm install googleapis`
|
|
1828
|
-
*
|
|
1829
|
-
* const {google} = require('googleapis');
|
|
1830
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
1831
|
-
*
|
|
1832
|
-
* async function main() {
|
|
1833
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1834
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1835
|
-
* scopes: [
|
|
1836
|
-
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
1837
|
-
* ],
|
|
1838
|
-
* });
|
|
1839
|
-
*
|
|
1840
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1841
|
-
* const authClient = await auth.getClient();
|
|
1842
|
-
* google.options({auth: authClient});
|
|
1843
|
-
*
|
|
1844
|
-
* // Do the magic
|
|
1845
|
-
* const res = await chromemanagement.customers.apps.chrome.get({
|
|
1846
|
-
* // Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
1847
|
-
* name: 'customers/my-customer/apps/chrome/[^/]+',
|
|
1848
|
-
* });
|
|
1849
|
-
* console.log(res.data);
|
|
1850
|
-
*
|
|
1851
|
-
* // Example response
|
|
1852
|
-
* // {
|
|
1853
|
-
* // "androidAppInfo": {},
|
|
1854
|
-
* // "appId": "my_appId",
|
|
1855
|
-
* // "chromeAppInfo": {},
|
|
1856
|
-
* // "description": "my_description",
|
|
1857
|
-
* // "detailUri": "my_detailUri",
|
|
1858
|
-
* // "displayName": "my_displayName",
|
|
1859
|
-
* // "firstPublishTime": "my_firstPublishTime",
|
|
1860
|
-
* // "homepageUri": "my_homepageUri",
|
|
1861
|
-
* // "iconUri": "my_iconUri",
|
|
1862
|
-
* // "isPaidApp": false,
|
|
1863
|
-
* // "latestPublishTime": "my_latestPublishTime",
|
|
1864
|
-
* // "name": "my_name",
|
|
1865
|
-
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
1866
|
-
* // "publisher": "my_publisher",
|
|
1867
|
-
* // "reviewNumber": "my_reviewNumber",
|
|
1868
|
-
* // "reviewRating": {},
|
|
1869
|
-
* // "revisionId": "my_revisionId",
|
|
1870
|
-
* // "serviceError": {},
|
|
1871
|
-
* // "type": "my_type"
|
|
1872
|
-
* // }
|
|
1873
|
-
* }
|
|
1874
|
-
*
|
|
1875
|
-
* main().catch(e => {
|
|
1876
|
-
* console.error(e);
|
|
1877
|
-
* throw e;
|
|
1878
|
-
* });
|
|
1879
|
-
*
|
|
1880
|
-
* ```
|
|
1881
1703
|
*
|
|
1882
1704
|
* @param params - Parameters for request
|
|
1883
1705
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1902,68 +1724,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
1902
1724
|
constructor(context: APIRequestContext);
|
|
1903
1725
|
/**
|
|
1904
1726
|
* Get a specific app for a customer by its resource name.
|
|
1905
|
-
* @example
|
|
1906
|
-
* ```js
|
|
1907
|
-
* // Before running the sample:
|
|
1908
|
-
* // - Enable the API at:
|
|
1909
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
1910
|
-
* // - Login into gcloud by running:
|
|
1911
|
-
* // `$ gcloud auth application-default login`
|
|
1912
|
-
* // - Install the npm module by running:
|
|
1913
|
-
* // `$ npm install googleapis`
|
|
1914
|
-
*
|
|
1915
|
-
* const {google} = require('googleapis');
|
|
1916
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
1917
|
-
*
|
|
1918
|
-
* async function main() {
|
|
1919
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1920
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1921
|
-
* scopes: [
|
|
1922
|
-
* 'https://www.googleapis.com/auth/chrome.management.appdetails.readonly',
|
|
1923
|
-
* ],
|
|
1924
|
-
* });
|
|
1925
|
-
*
|
|
1926
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1927
|
-
* const authClient = await auth.getClient();
|
|
1928
|
-
* google.options({auth: authClient});
|
|
1929
|
-
*
|
|
1930
|
-
* // Do the magic
|
|
1931
|
-
* const res = await chromemanagement.customers.apps.web.get({
|
|
1932
|
-
* // Required. The app for which details are being queried. Examples: "customers/my_customer/apps/chrome/gmbmikajjgmnabiglmofipeabaddhgne@2.1.2" for the Save to Google Drive Chrome extension version 2.1.2, "customers/my_customer/apps/android/com.google.android.apps.docs" for the Google Drive Android app's latest version.
|
|
1933
|
-
* name: 'customers/my-customer/apps/web/[^/]+',
|
|
1934
|
-
* });
|
|
1935
|
-
* console.log(res.data);
|
|
1936
|
-
*
|
|
1937
|
-
* // Example response
|
|
1938
|
-
* // {
|
|
1939
|
-
* // "androidAppInfo": {},
|
|
1940
|
-
* // "appId": "my_appId",
|
|
1941
|
-
* // "chromeAppInfo": {},
|
|
1942
|
-
* // "description": "my_description",
|
|
1943
|
-
* // "detailUri": "my_detailUri",
|
|
1944
|
-
* // "displayName": "my_displayName",
|
|
1945
|
-
* // "firstPublishTime": "my_firstPublishTime",
|
|
1946
|
-
* // "homepageUri": "my_homepageUri",
|
|
1947
|
-
* // "iconUri": "my_iconUri",
|
|
1948
|
-
* // "isPaidApp": false,
|
|
1949
|
-
* // "latestPublishTime": "my_latestPublishTime",
|
|
1950
|
-
* // "name": "my_name",
|
|
1951
|
-
* // "privacyPolicyUri": "my_privacyPolicyUri",
|
|
1952
|
-
* // "publisher": "my_publisher",
|
|
1953
|
-
* // "reviewNumber": "my_reviewNumber",
|
|
1954
|
-
* // "reviewRating": {},
|
|
1955
|
-
* // "revisionId": "my_revisionId",
|
|
1956
|
-
* // "serviceError": {},
|
|
1957
|
-
* // "type": "my_type"
|
|
1958
|
-
* // }
|
|
1959
|
-
* }
|
|
1960
|
-
*
|
|
1961
|
-
* main().catch(e => {
|
|
1962
|
-
* console.error(e);
|
|
1963
|
-
* throw e;
|
|
1964
|
-
* });
|
|
1965
|
-
*
|
|
1966
|
-
* ```
|
|
1967
1727
|
*
|
|
1968
1728
|
* @param params - Parameters for request
|
|
1969
1729
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1988,57 +1748,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
1988
1748
|
constructor(context: APIRequestContext);
|
|
1989
1749
|
/**
|
|
1990
1750
|
* Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
|
|
1991
|
-
* @example
|
|
1992
|
-
* ```js
|
|
1993
|
-
* // Before running the sample:
|
|
1994
|
-
* // - Enable the API at:
|
|
1995
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
1996
|
-
* // - Login into gcloud by running:
|
|
1997
|
-
* // `$ gcloud auth application-default login`
|
|
1998
|
-
* // - Install the npm module by running:
|
|
1999
|
-
* // `$ npm install googleapis`
|
|
2000
|
-
*
|
|
2001
|
-
* const {google} = require('googleapis');
|
|
2002
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2003
|
-
*
|
|
2004
|
-
* async function main() {
|
|
2005
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2006
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2007
|
-
* scopes: [
|
|
2008
|
-
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2009
|
-
* ],
|
|
2010
|
-
* });
|
|
2011
|
-
*
|
|
2012
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2013
|
-
* const authClient = await auth.getClient();
|
|
2014
|
-
* google.options({auth: authClient});
|
|
2015
|
-
*
|
|
2016
|
-
* // Do the magic
|
|
2017
|
-
* const res =
|
|
2018
|
-
* await chromemanagement.customers.reports.countChromeBrowsersNeedingAttention(
|
|
2019
|
-
* {
|
|
2020
|
-
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2021
|
-
* customer: 'customers/my-customer',
|
|
2022
|
-
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2023
|
-
* orgUnitId: 'placeholder-value',
|
|
2024
|
-
* }
|
|
2025
|
-
* );
|
|
2026
|
-
* console.log(res.data);
|
|
2027
|
-
*
|
|
2028
|
-
* // Example response
|
|
2029
|
-
* // {
|
|
2030
|
-
* // "noRecentActivityCount": "my_noRecentActivityCount",
|
|
2031
|
-
* // "pendingBrowserUpdateCount": "my_pendingBrowserUpdateCount",
|
|
2032
|
-
* // "recentlyEnrolledCount": "my_recentlyEnrolledCount"
|
|
2033
|
-
* // }
|
|
2034
|
-
* }
|
|
2035
|
-
*
|
|
2036
|
-
* main().catch(e => {
|
|
2037
|
-
* console.error(e);
|
|
2038
|
-
* throw e;
|
|
2039
|
-
* });
|
|
2040
|
-
*
|
|
2041
|
-
* ```
|
|
2042
1751
|
*
|
|
2043
1752
|
* @param params - Parameters for request
|
|
2044
1753
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2053,59 +1762,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2053
1762
|
countChromeBrowsersNeedingAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeBrowsersNeedingAttentionResponse>): void;
|
|
2054
1763
|
/**
|
|
2055
1764
|
* Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).
|
|
2056
|
-
* @example
|
|
2057
|
-
* ```js
|
|
2058
|
-
* // Before running the sample:
|
|
2059
|
-
* // - Enable the API at:
|
|
2060
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2061
|
-
* // - Login into gcloud by running:
|
|
2062
|
-
* // `$ gcloud auth application-default login`
|
|
2063
|
-
* // - Install the npm module by running:
|
|
2064
|
-
* // `$ npm install googleapis`
|
|
2065
|
-
*
|
|
2066
|
-
* const {google} = require('googleapis');
|
|
2067
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2068
|
-
*
|
|
2069
|
-
* async function main() {
|
|
2070
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2071
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2072
|
-
* scopes: [
|
|
2073
|
-
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2074
|
-
* ],
|
|
2075
|
-
* });
|
|
2076
|
-
*
|
|
2077
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2078
|
-
* const authClient = await auth.getClient();
|
|
2079
|
-
* google.options({auth: authClient});
|
|
2080
|
-
*
|
|
2081
|
-
* // Do the magic
|
|
2082
|
-
* const res =
|
|
2083
|
-
* await chromemanagement.customers.reports.countChromeDevicesReachingAutoExpirationDate(
|
|
2084
|
-
* {
|
|
2085
|
-
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2086
|
-
* customer: 'customers/my-customer',
|
|
2087
|
-
* // Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.
|
|
2088
|
-
* maxAueDate: 'placeholder-value',
|
|
2089
|
-
* // Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.
|
|
2090
|
-
* minAueDate: 'placeholder-value',
|
|
2091
|
-
* // Optional. The organizational unit ID, if omitted, will return data for all organizational units.
|
|
2092
|
-
* orgUnitId: 'placeholder-value',
|
|
2093
|
-
* }
|
|
2094
|
-
* );
|
|
2095
|
-
* console.log(res.data);
|
|
2096
|
-
*
|
|
2097
|
-
* // Example response
|
|
2098
|
-
* // {
|
|
2099
|
-
* // "deviceAueCountReports": []
|
|
2100
|
-
* // }
|
|
2101
|
-
* }
|
|
2102
|
-
*
|
|
2103
|
-
* main().catch(e => {
|
|
2104
|
-
* console.error(e);
|
|
2105
|
-
* throw e;
|
|
2106
|
-
* });
|
|
2107
|
-
*
|
|
2108
|
-
* ```
|
|
2109
1765
|
*
|
|
2110
1766
|
* @param params - Parameters for request
|
|
2111
1767
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2120,61 +1776,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2120
1776
|
countChromeDevicesReachingAutoExpirationDate(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesReachingAutoExpirationDateResponse>): void;
|
|
2121
1777
|
/**
|
|
2122
1778
|
* Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here https://support.google.com/chrome/a/answer/10564947
|
|
2123
|
-
* @example
|
|
2124
|
-
* ```js
|
|
2125
|
-
* // Before running the sample:
|
|
2126
|
-
* // - Enable the API at:
|
|
2127
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2128
|
-
* // - Login into gcloud by running:
|
|
2129
|
-
* // `$ gcloud auth application-default login`
|
|
2130
|
-
* // - Install the npm module by running:
|
|
2131
|
-
* // `$ npm install googleapis`
|
|
2132
|
-
*
|
|
2133
|
-
* const {google} = require('googleapis');
|
|
2134
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2135
|
-
*
|
|
2136
|
-
* async function main() {
|
|
2137
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2138
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2139
|
-
* scopes: [
|
|
2140
|
-
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2141
|
-
* ],
|
|
2142
|
-
* });
|
|
2143
|
-
*
|
|
2144
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2145
|
-
* const authClient = await auth.getClient();
|
|
2146
|
-
* google.options({auth: authClient});
|
|
2147
|
-
*
|
|
2148
|
-
* // Do the magic
|
|
2149
|
-
* const res =
|
|
2150
|
-
* await chromemanagement.customers.reports.countChromeDevicesThatNeedAttention(
|
|
2151
|
-
* {
|
|
2152
|
-
* // Required. The customer ID or "my_customer" prefixed with "customers/".
|
|
2153
|
-
* customer: 'customers/my-customer',
|
|
2154
|
-
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2155
|
-
* orgUnitId: 'placeholder-value',
|
|
2156
|
-
* // Required. Mask of the fields that should be populated in the returned report.
|
|
2157
|
-
* readMask: 'placeholder-value',
|
|
2158
|
-
* }
|
|
2159
|
-
* );
|
|
2160
|
-
* console.log(res.data);
|
|
2161
|
-
*
|
|
2162
|
-
* // Example response
|
|
2163
|
-
* // {
|
|
2164
|
-
* // "noRecentPolicySyncCount": "my_noRecentPolicySyncCount",
|
|
2165
|
-
* // "noRecentUserActivityCount": "my_noRecentUserActivityCount",
|
|
2166
|
-
* // "osVersionNotCompliantCount": "my_osVersionNotCompliantCount",
|
|
2167
|
-
* // "pendingUpdate": "my_pendingUpdate",
|
|
2168
|
-
* // "unsupportedPolicyCount": "my_unsupportedPolicyCount"
|
|
2169
|
-
* // }
|
|
2170
|
-
* }
|
|
2171
|
-
*
|
|
2172
|
-
* main().catch(e => {
|
|
2173
|
-
* console.error(e);
|
|
2174
|
-
* throw e;
|
|
2175
|
-
* });
|
|
2176
|
-
*
|
|
2177
|
-
* ```
|
|
2178
1779
|
*
|
|
2179
1780
|
* @param params - Parameters for request
|
|
2180
1781
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2189,58 +1790,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2189
1790
|
countChromeDevicesThatNeedAttention(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeDevicesThatNeedAttentionResponse>): void;
|
|
2190
1791
|
/**
|
|
2191
1792
|
* Counts of devices with a specific hardware specification from the requested hardware type (for example model name, processor type). Further information can be found here https://support.google.com/chrome/a/answer/10564947
|
|
2192
|
-
* @example
|
|
2193
|
-
* ```js
|
|
2194
|
-
* // Before running the sample:
|
|
2195
|
-
* // - Enable the API at:
|
|
2196
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2197
|
-
* // - Login into gcloud by running:
|
|
2198
|
-
* // `$ gcloud auth application-default login`
|
|
2199
|
-
* // - Install the npm module by running:
|
|
2200
|
-
* // `$ npm install googleapis`
|
|
2201
|
-
*
|
|
2202
|
-
* const {google} = require('googleapis');
|
|
2203
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2204
|
-
*
|
|
2205
|
-
* async function main() {
|
|
2206
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2207
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2208
|
-
* scopes: [
|
|
2209
|
-
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2210
|
-
* ],
|
|
2211
|
-
* });
|
|
2212
|
-
*
|
|
2213
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2214
|
-
* const authClient = await auth.getClient();
|
|
2215
|
-
* google.options({auth: authClient});
|
|
2216
|
-
*
|
|
2217
|
-
* // Do the magic
|
|
2218
|
-
* const res =
|
|
2219
|
-
* await chromemanagement.customers.reports.countChromeHardwareFleetDevices({
|
|
2220
|
-
* // Required. The customer ID or "my_customer".
|
|
2221
|
-
* customer: 'customers/my-customer',
|
|
2222
|
-
* // Optional. The ID of the organizational unit. If omitted, all data will be returned.
|
|
2223
|
-
* orgUnitId: 'placeholder-value',
|
|
2224
|
-
* // Required. Mask of the fields that should be populated in the returned report.
|
|
2225
|
-
* readMask: 'placeholder-value',
|
|
2226
|
-
* });
|
|
2227
|
-
* console.log(res.data);
|
|
2228
|
-
*
|
|
2229
|
-
* // Example response
|
|
2230
|
-
* // {
|
|
2231
|
-
* // "cpuReports": [],
|
|
2232
|
-
* // "memoryReports": [],
|
|
2233
|
-
* // "modelReports": [],
|
|
2234
|
-
* // "storageReports": []
|
|
2235
|
-
* // }
|
|
2236
|
-
* }
|
|
2237
|
-
*
|
|
2238
|
-
* main().catch(e => {
|
|
2239
|
-
* console.error(e);
|
|
2240
|
-
* throw e;
|
|
2241
|
-
* });
|
|
2242
|
-
*
|
|
2243
|
-
* ```
|
|
2244
1793
|
*
|
|
2245
1794
|
* @param params - Parameters for request
|
|
2246
1795
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2255,60 +1804,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2255
1804
|
countChromeHardwareFleetDevices(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeHardwareFleetDevicesResponse>): void;
|
|
2256
1805
|
/**
|
|
2257
1806
|
* Generate report of installed Chrome versions.
|
|
2258
|
-
* @example
|
|
2259
|
-
* ```js
|
|
2260
|
-
* // Before running the sample:
|
|
2261
|
-
* // - Enable the API at:
|
|
2262
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2263
|
-
* // - Login into gcloud by running:
|
|
2264
|
-
* // `$ gcloud auth application-default login`
|
|
2265
|
-
* // - Install the npm module by running:
|
|
2266
|
-
* // `$ npm install googleapis`
|
|
2267
|
-
*
|
|
2268
|
-
* const {google} = require('googleapis');
|
|
2269
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2270
|
-
*
|
|
2271
|
-
* async function main() {
|
|
2272
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2273
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2274
|
-
* scopes: [
|
|
2275
|
-
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2276
|
-
* ],
|
|
2277
|
-
* });
|
|
2278
|
-
*
|
|
2279
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2280
|
-
* const authClient = await auth.getClient();
|
|
2281
|
-
* google.options({auth: authClient});
|
|
2282
|
-
*
|
|
2283
|
-
* // Do the magic
|
|
2284
|
-
* const res = await chromemanagement.customers.reports.countChromeVersions({
|
|
2285
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2286
|
-
* customer: 'customers/my-customer',
|
|
2287
|
-
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
|
|
2288
|
-
* filter: 'placeholder-value',
|
|
2289
|
-
* // The ID of the organizational unit.
|
|
2290
|
-
* orgUnitId: 'placeholder-value',
|
|
2291
|
-
* // Maximum number of results to return. Maximum and default are 100.
|
|
2292
|
-
* pageSize: 'placeholder-value',
|
|
2293
|
-
* // Token to specify the page of the request to be returned.
|
|
2294
|
-
* pageToken: 'placeholder-value',
|
|
2295
|
-
* });
|
|
2296
|
-
* console.log(res.data);
|
|
2297
|
-
*
|
|
2298
|
-
* // Example response
|
|
2299
|
-
* // {
|
|
2300
|
-
* // "browserVersions": [],
|
|
2301
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2302
|
-
* // "totalSize": 0
|
|
2303
|
-
* // }
|
|
2304
|
-
* }
|
|
2305
|
-
*
|
|
2306
|
-
* main().catch(e => {
|
|
2307
|
-
* console.error(e);
|
|
2308
|
-
* throw e;
|
|
2309
|
-
* });
|
|
2310
|
-
*
|
|
2311
|
-
* ```
|
|
2312
1807
|
*
|
|
2313
1808
|
* @param params - Parameters for request
|
|
2314
1809
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2323,62 +1818,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2323
1818
|
countChromeVersions(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountChromeVersionsResponse>): void;
|
|
2324
1819
|
/**
|
|
2325
1820
|
* Generate report of app installations.
|
|
2326
|
-
* @example
|
|
2327
|
-
* ```js
|
|
2328
|
-
* // Before running the sample:
|
|
2329
|
-
* // - Enable the API at:
|
|
2330
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2331
|
-
* // - Login into gcloud by running:
|
|
2332
|
-
* // `$ gcloud auth application-default login`
|
|
2333
|
-
* // - Install the npm module by running:
|
|
2334
|
-
* // `$ npm install googleapis`
|
|
2335
|
-
*
|
|
2336
|
-
* const {google} = require('googleapis');
|
|
2337
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2338
|
-
*
|
|
2339
|
-
* async function main() {
|
|
2340
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2341
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2342
|
-
* scopes: [
|
|
2343
|
-
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2344
|
-
* ],
|
|
2345
|
-
* });
|
|
2346
|
-
*
|
|
2347
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2348
|
-
* const authClient = await auth.getClient();
|
|
2349
|
-
* google.options({auth: authClient});
|
|
2350
|
-
*
|
|
2351
|
-
* // Do the magic
|
|
2352
|
-
* const res = await chromemanagement.customers.reports.countInstalledApps({
|
|
2353
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2354
|
-
* customer: 'customers/my-customer',
|
|
2355
|
-
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name * app_id
|
|
2356
|
-
* filter: 'placeholder-value',
|
|
2357
|
-
* // Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * app_id
|
|
2358
|
-
* orderBy: 'placeholder-value',
|
|
2359
|
-
* // The ID of the organizational unit.
|
|
2360
|
-
* orgUnitId: 'placeholder-value',
|
|
2361
|
-
* // Maximum number of results to return. Maximum and default are 100.
|
|
2362
|
-
* pageSize: 'placeholder-value',
|
|
2363
|
-
* // Token to specify the page of the request to be returned.
|
|
2364
|
-
* pageToken: 'placeholder-value',
|
|
2365
|
-
* });
|
|
2366
|
-
* console.log(res.data);
|
|
2367
|
-
*
|
|
2368
|
-
* // Example response
|
|
2369
|
-
* // {
|
|
2370
|
-
* // "installedApps": [],
|
|
2371
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2372
|
-
* // "totalSize": 0
|
|
2373
|
-
* // }
|
|
2374
|
-
* }
|
|
2375
|
-
*
|
|
2376
|
-
* main().catch(e => {
|
|
2377
|
-
* console.error(e);
|
|
2378
|
-
* throw e;
|
|
2379
|
-
* });
|
|
2380
|
-
*
|
|
2381
|
-
* ```
|
|
2382
1821
|
*
|
|
2383
1822
|
* @param params - Parameters for request
|
|
2384
1823
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2393,66 +1832,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2393
1832
|
countInstalledApps(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1CountInstalledAppsResponse>): void;
|
|
2394
1833
|
/**
|
|
2395
1834
|
* Generate report of managed Chrome browser devices that have a specified app installed.
|
|
2396
|
-
* @example
|
|
2397
|
-
* ```js
|
|
2398
|
-
* // Before running the sample:
|
|
2399
|
-
* // - Enable the API at:
|
|
2400
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2401
|
-
* // - Login into gcloud by running:
|
|
2402
|
-
* // `$ gcloud auth application-default login`
|
|
2403
|
-
* // - Install the npm module by running:
|
|
2404
|
-
* // `$ npm install googleapis`
|
|
2405
|
-
*
|
|
2406
|
-
* const {google} = require('googleapis');
|
|
2407
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2408
|
-
*
|
|
2409
|
-
* async function main() {
|
|
2410
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2411
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2412
|
-
* scopes: [
|
|
2413
|
-
* 'https://www.googleapis.com/auth/chrome.management.reports.readonly',
|
|
2414
|
-
* ],
|
|
2415
|
-
* });
|
|
2416
|
-
*
|
|
2417
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2418
|
-
* const authClient = await auth.getClient();
|
|
2419
|
-
* google.options({auth: authClient});
|
|
2420
|
-
*
|
|
2421
|
-
* // Do the magic
|
|
2422
|
-
* const res = await chromemanagement.customers.reports.findInstalledAppDevices({
|
|
2423
|
-
* // Unique identifier of the app. For Chrome apps and extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g. com.evernote).
|
|
2424
|
-
* appId: 'placeholder-value',
|
|
2425
|
-
* // Type of the app.
|
|
2426
|
-
* appType: 'placeholder-value',
|
|
2427
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2428
|
-
* customer: 'customers/my-customer',
|
|
2429
|
-
* // Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
|
|
2430
|
-
* filter: 'placeholder-value',
|
|
2431
|
-
* // Field used to order results. Supported order by fields: * machine * device_id
|
|
2432
|
-
* orderBy: 'placeholder-value',
|
|
2433
|
-
* // The ID of the organizational unit.
|
|
2434
|
-
* orgUnitId: 'placeholder-value',
|
|
2435
|
-
* // Maximum number of results to return. Maximum and default are 100.
|
|
2436
|
-
* pageSize: 'placeholder-value',
|
|
2437
|
-
* // Token to specify the page of the request to be returned.
|
|
2438
|
-
* pageToken: 'placeholder-value',
|
|
2439
|
-
* });
|
|
2440
|
-
* console.log(res.data);
|
|
2441
|
-
*
|
|
2442
|
-
* // Example response
|
|
2443
|
-
* // {
|
|
2444
|
-
* // "devices": [],
|
|
2445
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2446
|
-
* // "totalSize": 0
|
|
2447
|
-
* // }
|
|
2448
|
-
* }
|
|
2449
|
-
*
|
|
2450
|
-
* main().catch(e => {
|
|
2451
|
-
* console.error(e);
|
|
2452
|
-
* throw e;
|
|
2453
|
-
* });
|
|
2454
|
-
*
|
|
2455
|
-
* ```
|
|
2456
1835
|
*
|
|
2457
1836
|
* @param params - Parameters for request
|
|
2458
1837
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2616,76 +1995,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2616
1995
|
constructor(context: APIRequestContext);
|
|
2617
1996
|
/**
|
|
2618
1997
|
* Get telemetry device.
|
|
2619
|
-
* @example
|
|
2620
|
-
* ```js
|
|
2621
|
-
* // Before running the sample:
|
|
2622
|
-
* // - Enable the API at:
|
|
2623
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2624
|
-
* // - Login into gcloud by running:
|
|
2625
|
-
* // `$ gcloud auth application-default login`
|
|
2626
|
-
* // - Install the npm module by running:
|
|
2627
|
-
* // `$ npm install googleapis`
|
|
2628
|
-
*
|
|
2629
|
-
* const {google} = require('googleapis');
|
|
2630
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2631
|
-
*
|
|
2632
|
-
* async function main() {
|
|
2633
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2634
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2635
|
-
* scopes: [
|
|
2636
|
-
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
2637
|
-
* ],
|
|
2638
|
-
* });
|
|
2639
|
-
*
|
|
2640
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2641
|
-
* const authClient = await auth.getClient();
|
|
2642
|
-
* google.options({auth: authClient});
|
|
2643
|
-
*
|
|
2644
|
-
* // Do the magic
|
|
2645
|
-
* const res = await chromemanagement.customers.telemetry.devices.get({
|
|
2646
|
-
* // Required. Name of the `TelemetryDevice` to return.
|
|
2647
|
-
* name: 'customers/my-customer/telemetry/devices/my-device',
|
|
2648
|
-
* // Required. Read mask to specify which fields to return.
|
|
2649
|
-
* readMask: 'placeholder-value',
|
|
2650
|
-
* });
|
|
2651
|
-
* console.log(res.data);
|
|
2652
|
-
*
|
|
2653
|
-
* // Example response
|
|
2654
|
-
* // {
|
|
2655
|
-
* // "audioStatusReport": [],
|
|
2656
|
-
* // "batteryInfo": [],
|
|
2657
|
-
* // "batteryStatusReport": [],
|
|
2658
|
-
* // "bootPerformanceReport": [],
|
|
2659
|
-
* // "cpuInfo": [],
|
|
2660
|
-
* // "cpuStatusReport": [],
|
|
2661
|
-
* // "customer": "my_customer",
|
|
2662
|
-
* // "deviceId": "my_deviceId",
|
|
2663
|
-
* // "graphicsInfo": {},
|
|
2664
|
-
* // "graphicsStatusReport": [],
|
|
2665
|
-
* // "heartbeatStatusReport": [],
|
|
2666
|
-
* // "kioskAppStatusReport": [],
|
|
2667
|
-
* // "memoryInfo": {},
|
|
2668
|
-
* // "memoryStatusReport": [],
|
|
2669
|
-
* // "name": "my_name",
|
|
2670
|
-
* // "networkDiagnosticsReport": [],
|
|
2671
|
-
* // "networkInfo": {},
|
|
2672
|
-
* // "networkStatusReport": [],
|
|
2673
|
-
* // "orgUnitId": "my_orgUnitId",
|
|
2674
|
-
* // "osUpdateStatus": [],
|
|
2675
|
-
* // "peripheralsReport": [],
|
|
2676
|
-
* // "serialNumber": "my_serialNumber",
|
|
2677
|
-
* // "storageInfo": {},
|
|
2678
|
-
* // "storageStatusReport": [],
|
|
2679
|
-
* // "thunderboltInfo": []
|
|
2680
|
-
* // }
|
|
2681
|
-
* }
|
|
2682
|
-
*
|
|
2683
|
-
* main().catch(e => {
|
|
2684
|
-
* console.error(e);
|
|
2685
|
-
* throw e;
|
|
2686
|
-
* });
|
|
2687
|
-
*
|
|
2688
|
-
* ```
|
|
2689
1998
|
*
|
|
2690
1999
|
* @param params - Parameters for request
|
|
2691
2000
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2700,59 +2009,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2700
2009
|
get(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryDevice>): void;
|
|
2701
2010
|
/**
|
|
2702
2011
|
* List all telemetry devices.
|
|
2703
|
-
* @example
|
|
2704
|
-
* ```js
|
|
2705
|
-
* // Before running the sample:
|
|
2706
|
-
* // - Enable the API at:
|
|
2707
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2708
|
-
* // - Login into gcloud by running:
|
|
2709
|
-
* // `$ gcloud auth application-default login`
|
|
2710
|
-
* // - Install the npm module by running:
|
|
2711
|
-
* // `$ npm install googleapis`
|
|
2712
|
-
*
|
|
2713
|
-
* const {google} = require('googleapis');
|
|
2714
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2715
|
-
*
|
|
2716
|
-
* async function main() {
|
|
2717
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2718
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2719
|
-
* scopes: [
|
|
2720
|
-
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
2721
|
-
* ],
|
|
2722
|
-
* });
|
|
2723
|
-
*
|
|
2724
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2725
|
-
* const authClient = await auth.getClient();
|
|
2726
|
-
* google.options({auth: authClient});
|
|
2727
|
-
*
|
|
2728
|
-
* // Do the magic
|
|
2729
|
-
* const res = await chromemanagement.customers.telemetry.devices.list({
|
|
2730
|
-
* // Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id - reports_timestamp The "reports_timestamp" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z", "1679283943823".
|
|
2731
|
-
* filter: 'placeholder-value',
|
|
2732
|
-
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
2733
|
-
* pageSize: 'placeholder-value',
|
|
2734
|
-
* // Token to specify next page in the list.
|
|
2735
|
-
* pageToken: 'placeholder-value',
|
|
2736
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2737
|
-
* parent: 'customers/my-customer',
|
|
2738
|
-
* // Required. Read mask to specify which fields to return.
|
|
2739
|
-
* readMask: 'placeholder-value',
|
|
2740
|
-
* });
|
|
2741
|
-
* console.log(res.data);
|
|
2742
|
-
*
|
|
2743
|
-
* // Example response
|
|
2744
|
-
* // {
|
|
2745
|
-
* // "devices": [],
|
|
2746
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
2747
|
-
* // }
|
|
2748
|
-
* }
|
|
2749
|
-
*
|
|
2750
|
-
* main().catch(e => {
|
|
2751
|
-
* console.error(e);
|
|
2752
|
-
* throw e;
|
|
2753
|
-
* });
|
|
2754
|
-
*
|
|
2755
|
-
* ```
|
|
2756
2012
|
*
|
|
2757
2013
|
* @param params - Parameters for request
|
|
2758
2014
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2803,59 +2059,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2803
2059
|
constructor(context: APIRequestContext);
|
|
2804
2060
|
/**
|
|
2805
2061
|
* List telemetry events.
|
|
2806
|
-
* @example
|
|
2807
|
-
* ```js
|
|
2808
|
-
* // Before running the sample:
|
|
2809
|
-
* // - Enable the API at:
|
|
2810
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2811
|
-
* // - Login into gcloud by running:
|
|
2812
|
-
* // `$ gcloud auth application-default login`
|
|
2813
|
-
* // - Install the npm module by running:
|
|
2814
|
-
* // `$ npm install googleapis`
|
|
2815
|
-
*
|
|
2816
|
-
* const {google} = require('googleapis');
|
|
2817
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2818
|
-
*
|
|
2819
|
-
* async function main() {
|
|
2820
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2821
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2822
|
-
* scopes: [
|
|
2823
|
-
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
2824
|
-
* ],
|
|
2825
|
-
* });
|
|
2826
|
-
*
|
|
2827
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2828
|
-
* const authClient = await auth.getClient();
|
|
2829
|
-
* google.options({auth: authClient});
|
|
2830
|
-
*
|
|
2831
|
-
* // Do the magic
|
|
2832
|
-
* const res = await chromemanagement.customers.telemetry.events.list({
|
|
2833
|
-
* // Optional. Only include resources that match the filter. Although this parameter is currently optional, this parameter will be required- please specify at least 1 event type. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The "timestamp" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z", "1679283943823".
|
|
2834
|
-
* filter: 'placeholder-value',
|
|
2835
|
-
* // Optional. Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
2836
|
-
* pageSize: 'placeholder-value',
|
|
2837
|
-
* // Optional. Token to specify next page in the list.
|
|
2838
|
-
* pageToken: 'placeholder-value',
|
|
2839
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2840
|
-
* parent: 'customers/my-customer',
|
|
2841
|
-
* // Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required.
|
|
2842
|
-
* readMask: 'placeholder-value',
|
|
2843
|
-
* });
|
|
2844
|
-
* console.log(res.data);
|
|
2845
|
-
*
|
|
2846
|
-
* // Example response
|
|
2847
|
-
* // {
|
|
2848
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2849
|
-
* // "telemetryEvents": []
|
|
2850
|
-
* // }
|
|
2851
|
-
* }
|
|
2852
|
-
*
|
|
2853
|
-
* main().catch(e => {
|
|
2854
|
-
* console.error(e);
|
|
2855
|
-
* throw e;
|
|
2856
|
-
* });
|
|
2857
|
-
*
|
|
2858
|
-
* ```
|
|
2859
2062
|
*
|
|
2860
2063
|
* @param params - Parameters for request
|
|
2861
2064
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2896,57 +2099,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2896
2099
|
constructor(context: APIRequestContext);
|
|
2897
2100
|
/**
|
|
2898
2101
|
* Get telemetry user.
|
|
2899
|
-
* @example
|
|
2900
|
-
* ```js
|
|
2901
|
-
* // Before running the sample:
|
|
2902
|
-
* // - Enable the API at:
|
|
2903
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2904
|
-
* // - Login into gcloud by running:
|
|
2905
|
-
* // `$ gcloud auth application-default login`
|
|
2906
|
-
* // - Install the npm module by running:
|
|
2907
|
-
* // `$ npm install googleapis`
|
|
2908
|
-
*
|
|
2909
|
-
* const {google} = require('googleapis');
|
|
2910
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2911
|
-
*
|
|
2912
|
-
* async function main() {
|
|
2913
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2914
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2915
|
-
* scopes: [
|
|
2916
|
-
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
2917
|
-
* ],
|
|
2918
|
-
* });
|
|
2919
|
-
*
|
|
2920
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2921
|
-
* const authClient = await auth.getClient();
|
|
2922
|
-
* google.options({auth: authClient});
|
|
2923
|
-
*
|
|
2924
|
-
* // Do the magic
|
|
2925
|
-
* const res = await chromemanagement.customers.telemetry.users.get({
|
|
2926
|
-
* // Required. Name of the `TelemetryUser` to return.
|
|
2927
|
-
* name: 'customers/my-customer/telemetry/users/my-user',
|
|
2928
|
-
* // Read mask to specify which fields to return.
|
|
2929
|
-
* readMask: 'placeholder-value',
|
|
2930
|
-
* });
|
|
2931
|
-
* console.log(res.data);
|
|
2932
|
-
*
|
|
2933
|
-
* // Example response
|
|
2934
|
-
* // {
|
|
2935
|
-
* // "customer": "my_customer",
|
|
2936
|
-
* // "name": "my_name",
|
|
2937
|
-
* // "orgUnitId": "my_orgUnitId",
|
|
2938
|
-
* // "userDevice": [],
|
|
2939
|
-
* // "userEmail": "my_userEmail",
|
|
2940
|
-
* // "userId": "my_userId"
|
|
2941
|
-
* // }
|
|
2942
|
-
* }
|
|
2943
|
-
*
|
|
2944
|
-
* main().catch(e => {
|
|
2945
|
-
* console.error(e);
|
|
2946
|
-
* throw e;
|
|
2947
|
-
* });
|
|
2948
|
-
*
|
|
2949
|
-
* ```
|
|
2950
2102
|
*
|
|
2951
2103
|
* @param params - Parameters for request
|
|
2952
2104
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2961,59 +2113,6 @@ export declare namespace chromemanagement_v1 {
|
|
|
2961
2113
|
get(callback: BodyResponseCallback<Schema$GoogleChromeManagementV1TelemetryUser>): void;
|
|
2962
2114
|
/**
|
|
2963
2115
|
* List all telemetry users.
|
|
2964
|
-
* @example
|
|
2965
|
-
* ```js
|
|
2966
|
-
* // Before running the sample:
|
|
2967
|
-
* // - Enable the API at:
|
|
2968
|
-
* // https://console.developers.google.com/apis/api/chromemanagement.googleapis.com
|
|
2969
|
-
* // - Login into gcloud by running:
|
|
2970
|
-
* // `$ gcloud auth application-default login`
|
|
2971
|
-
* // - Install the npm module by running:
|
|
2972
|
-
* // `$ npm install googleapis`
|
|
2973
|
-
*
|
|
2974
|
-
* const {google} = require('googleapis');
|
|
2975
|
-
* const chromemanagement = google.chromemanagement('v1');
|
|
2976
|
-
*
|
|
2977
|
-
* async function main() {
|
|
2978
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2979
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2980
|
-
* scopes: [
|
|
2981
|
-
* 'https://www.googleapis.com/auth/chrome.management.telemetry.readonly',
|
|
2982
|
-
* ],
|
|
2983
|
-
* });
|
|
2984
|
-
*
|
|
2985
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2986
|
-
* const authClient = await auth.getClient();
|
|
2987
|
-
* google.options({auth: authClient});
|
|
2988
|
-
*
|
|
2989
|
-
* // Do the magic
|
|
2990
|
-
* const res = await chromemanagement.customers.telemetry.users.list({
|
|
2991
|
-
* // Only include resources that match the filter. Supported filter fields: - user_id - user_org_unit_id
|
|
2992
|
-
* filter: 'placeholder-value',
|
|
2993
|
-
* // Maximum number of results to return. Default value is 100. Maximum value is 1000.
|
|
2994
|
-
* pageSize: 'placeholder-value',
|
|
2995
|
-
* // Token to specify next page in the list.
|
|
2996
|
-
* pageToken: 'placeholder-value',
|
|
2997
|
-
* // Required. Customer id or "my_customer" to use the customer associated to the account making the request.
|
|
2998
|
-
* parent: 'customers/my-customer',
|
|
2999
|
-
* // Read mask to specify which fields to return.
|
|
3000
|
-
* readMask: 'placeholder-value',
|
|
3001
|
-
* });
|
|
3002
|
-
* console.log(res.data);
|
|
3003
|
-
*
|
|
3004
|
-
* // Example response
|
|
3005
|
-
* // {
|
|
3006
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
3007
|
-
* // "telemetryUsers": []
|
|
3008
|
-
* // }
|
|
3009
|
-
* }
|
|
3010
|
-
*
|
|
3011
|
-
* main().catch(e => {
|
|
3012
|
-
* console.error(e);
|
|
3013
|
-
* throw e;
|
|
3014
|
-
* });
|
|
3015
|
-
*
|
|
3016
|
-
* ```
|
|
3017
2116
|
*
|
|
3018
2117
|
* @param params - Parameters for request
|
|
3019
2118
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|