| 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.androidenterprise.v1; | 3 library googleapis.androidenterprise.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 final commons.ApiRequester _requester; | 23 final commons.ApiRequester _requester; |
| 24 | 24 |
| 25 CollectionsResourceApi get collections => new CollectionsResourceApi(_requeste
r); | 25 CollectionsResourceApi get collections => new CollectionsResourceApi(_requeste
r); |
| 26 CollectionviewersResourceApi get collectionviewers => new CollectionviewersRes
ourceApi(_requester); | 26 CollectionviewersResourceApi get collectionviewers => new CollectionviewersRes
ourceApi(_requester); |
| 27 DevicesResourceApi get devices => new DevicesResourceApi(_requester); | 27 DevicesResourceApi get devices => new DevicesResourceApi(_requester); |
| 28 EnterprisesResourceApi get enterprises => new EnterprisesResourceApi(_requeste
r); | 28 EnterprisesResourceApi get enterprises => new EnterprisesResourceApi(_requeste
r); |
| 29 EntitlementsResourceApi get entitlements => new EntitlementsResourceApi(_reque
ster); | 29 EntitlementsResourceApi get entitlements => new EntitlementsResourceApi(_reque
ster); |
| 30 GrouplicensesResourceApi get grouplicenses => new GrouplicensesResourceApi(_re
quester); | 30 GrouplicensesResourceApi get grouplicenses => new GrouplicensesResourceApi(_re
quester); |
| 31 GrouplicenseusersResourceApi get grouplicenseusers => new GrouplicenseusersRes
ourceApi(_requester); | 31 GrouplicenseusersResourceApi get grouplicenseusers => new GrouplicenseusersRes
ourceApi(_requester); |
| 32 InstallsResourceApi get installs => new InstallsResourceApi(_requester); | 32 InstallsResourceApi get installs => new InstallsResourceApi(_requester); |
| 33 ManagedconfigurationsfordeviceResourceApi get managedconfigurationsfordevice =
> new ManagedconfigurationsfordeviceResourceApi(_requester); |
| 34 ManagedconfigurationsforuserResourceApi get managedconfigurationsforuser => ne
w ManagedconfigurationsforuserResourceApi(_requester); |
| 33 PermissionsResourceApi get permissions => new PermissionsResourceApi(_requeste
r); | 35 PermissionsResourceApi get permissions => new PermissionsResourceApi(_requeste
r); |
| 34 ProductsResourceApi get products => new ProductsResourceApi(_requester); | 36 ProductsResourceApi get products => new ProductsResourceApi(_requester); |
| 35 ServiceaccountkeysResourceApi get serviceaccountkeys => new Serviceaccountkeys
ResourceApi(_requester); | 37 ServiceaccountkeysResourceApi get serviceaccountkeys => new Serviceaccountkeys
ResourceApi(_requester); |
| 36 StorelayoutclustersResourceApi get storelayoutclusters => new Storelayoutclust
ersResourceApi(_requester); | 38 StorelayoutclustersResourceApi get storelayoutclusters => new Storelayoutclust
ersResourceApi(_requester); |
| 37 StorelayoutpagesResourceApi get storelayoutpages => new StorelayoutpagesResour
ceApi(_requester); | 39 StorelayoutpagesResourceApi get storelayoutpages => new StorelayoutpagesResour
ceApi(_requester); |
| 38 UsersResourceApi get users => new UsersResourceApi(_requester); | 40 UsersResourceApi get users => new UsersResourceApi(_requester); |
| 39 | 41 |
| 40 AndroidenterpriseApi(http.Client client, {core.String rootUrl: "https://www.go
ogleapis.com/", core.String servicePath: "androidenterprise/v1/"}) : | 42 AndroidenterpriseApi(http.Client client, {core.String rootUrl: "https://www.go
ogleapis.com/", core.String servicePath: "androidenterprise/v1/"}) : |
| 41 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 43 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 42 } | 44 } |
| (...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 * times it will return an error. | 1082 * times it will return an error. |
| 1081 * | 1083 * |
| 1082 * Subsequent calls after the first will generate a new, unique set of | 1084 * Subsequent calls after the first will generate a new, unique set of |
| 1083 * credentials, and invalidate the previously generated credentials. | 1085 * credentials, and invalidate the previously generated credentials. |
| 1084 * | 1086 * |
| 1085 * Once the service account is bound to the enterprise, it can be managed | 1087 * Once the service account is bound to the enterprise, it can be managed |
| 1086 * using the serviceAccountKeys resource. | 1088 * using the serviceAccountKeys resource. |
| 1087 * | 1089 * |
| 1088 * Request parameters: | 1090 * Request parameters: |
| 1089 * | 1091 * |
| 1090 * [enterpriseId] - null | 1092 * [enterpriseId] - The ID of the enterprise. |
| 1091 * | 1093 * |
| 1092 * [keyType] - The type of credential to return with the service account. | 1094 * [keyType] - The type of credential to return with the service account. |
| 1093 * Required. | 1095 * Required. |
| 1094 * Possible string values are: | 1096 * Possible string values are: |
| 1095 * - "googleCredentials" | 1097 * - "googleCredentials" |
| 1096 * - "pkcs12" | 1098 * - "pkcs12" |
| 1097 * | 1099 * |
| 1098 * Completes with a [ServiceAccount]. | 1100 * Completes with a [ServiceAccount]. |
| 1099 * | 1101 * |
| 1100 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1102 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1124 "GET", | 1126 "GET", |
| 1125 body: _body, | 1127 body: _body, |
| 1126 queryParams: _queryParams, | 1128 queryParams: _queryParams, |
| 1127 uploadOptions: _uploadOptions, | 1129 uploadOptions: _uploadOptions, |
| 1128 uploadMedia: _uploadMedia, | 1130 uploadMedia: _uploadMedia, |
| 1129 downloadOptions: _downloadOptions); | 1131 downloadOptions: _downloadOptions); |
| 1130 return _response.then((data) => new ServiceAccount.fromJson(data)); | 1132 return _response.then((data) => new ServiceAccount.fromJson(data)); |
| 1131 } | 1133 } |
| 1132 | 1134 |
| 1133 /** | 1135 /** |
| 1134 * Returns the store layout resource. | 1136 * Returns the store layout for the enterprise. If the store layout has not |
| 1137 * been set, or if the store layout has no homepageId set, returns a NOT_FOUND |
| 1138 * error. |
| 1135 * | 1139 * |
| 1136 * Request parameters: | 1140 * Request parameters: |
| 1137 * | 1141 * |
| 1138 * [enterpriseId] - The ID of the enterprise. | 1142 * [enterpriseId] - The ID of the enterprise. |
| 1139 * | 1143 * |
| 1140 * Completes with a [StoreLayout]. | 1144 * Completes with a [StoreLayout]. |
| 1141 * | 1145 * |
| 1142 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1146 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1143 * error. | 1147 * error. |
| 1144 * | 1148 * |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 "PUT", | 1399 "PUT", |
| 1396 body: _body, | 1400 body: _body, |
| 1397 queryParams: _queryParams, | 1401 queryParams: _queryParams, |
| 1398 uploadOptions: _uploadOptions, | 1402 uploadOptions: _uploadOptions, |
| 1399 uploadMedia: _uploadMedia, | 1403 uploadMedia: _uploadMedia, |
| 1400 downloadOptions: _downloadOptions); | 1404 downloadOptions: _downloadOptions); |
| 1401 return _response.then((data) => new EnterpriseAccount.fromJson(data)); | 1405 return _response.then((data) => new EnterpriseAccount.fromJson(data)); |
| 1402 } | 1406 } |
| 1403 | 1407 |
| 1404 /** | 1408 /** |
| 1405 * Sets the store layout resource. | 1409 * Sets the store layout for the enterprise. |
| 1406 * | 1410 * |
| 1407 * [request] - The metadata request object. | 1411 * [request] - The metadata request object. |
| 1408 * | 1412 * |
| 1409 * Request parameters: | 1413 * Request parameters: |
| 1410 * | 1414 * |
| 1411 * [enterpriseId] - The ID of the enterprise. | 1415 * [enterpriseId] - The ID of the enterprise. |
| 1412 * | 1416 * |
| 1413 * Completes with a [StoreLayout]. | 1417 * Completes with a [StoreLayout]. |
| 1414 * | 1418 * |
| 1415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1419 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1874 * | 1878 * |
| 1875 * [enterpriseId] - The ID of the enterprise. | 1879 * [enterpriseId] - The ID of the enterprise. |
| 1876 * | 1880 * |
| 1877 * [groupLicenseId] - The ID of the product the group license is for, e.g. | 1881 * [groupLicenseId] - The ID of the product the group license is for, e.g. |
| 1878 * "app:com.google.android.gm". | 1882 * "app:com.google.android.gm". |
| 1879 * | 1883 * |
| 1880 * Completes with a [GroupLicenseUsersListResponse]. | 1884 * Completes with a [GroupLicenseUsersListResponse]. |
| 1881 * | 1885 * |
| 1882 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1886 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1883 * error. | 1887 * error. |
| 1888 * |
| 1889 * If the used [http.Client] completes with an error when making a REST call, |
| 1890 * this method will complete with the same error. |
| 1891 */ |
| 1892 async.Future<GroupLicenseUsersListResponse> list(core.String enterpriseId, cor
e.String groupLicenseId) { |
| 1893 var _url = null; |
| 1894 var _queryParams = new core.Map(); |
| 1895 var _uploadMedia = null; |
| 1896 var _uploadOptions = null; |
| 1897 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1898 var _body = null; |
| 1899 |
| 1900 if (enterpriseId == null) { |
| 1901 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 1902 } |
| 1903 if (groupLicenseId == null) { |
| 1904 throw new core.ArgumentError("Parameter groupLicenseId is required."); |
| 1905 } |
| 1906 |
| 1907 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/g
roupLicenses/' + commons.Escaper.ecapeVariable('$groupLicenseId') + '/users'; |
| 1908 |
| 1909 var _response = _requester.request(_url, |
| 1910 "GET", |
| 1911 body: _body, |
| 1912 queryParams: _queryParams, |
| 1913 uploadOptions: _uploadOptions, |
| 1914 uploadMedia: _uploadMedia, |
| 1915 downloadOptions: _downloadOptions); |
| 1916 return _response.then((data) => new GroupLicenseUsersListResponse.fromJson(d
ata)); |
| 1917 } |
| 1918 |
| 1919 } |
| 1920 |
| 1921 |
| 1922 class InstallsResourceApi { |
| 1923 final commons.ApiRequester _requester; |
| 1924 |
| 1925 InstallsResourceApi(commons.ApiRequester client) : |
| 1926 _requester = client; |
| 1927 |
| 1928 /** |
| 1929 * Requests to remove an app from a device. A call to get or list will still |
| 1930 * show the app as installed on the device until it is actually removed. |
| 1931 * |
| 1932 * Request parameters: |
| 1933 * |
| 1934 * [enterpriseId] - The ID of the enterprise. |
| 1935 * |
| 1936 * [userId] - The ID of the user. |
| 1937 * |
| 1938 * [deviceId] - The Android ID of the device. |
| 1939 * |
| 1940 * [installId] - The ID of the product represented by the install, e.g. |
| 1941 * "app:com.google.android.gm". |
| 1942 * |
| 1943 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1944 * error. |
| 1945 * |
| 1946 * If the used [http.Client] completes with an error when making a REST call, |
| 1947 * this method will complete with the same error. |
| 1948 */ |
| 1949 async.Future delete(core.String enterpriseId, core.String userId, core.String
deviceId, core.String installId) { |
| 1950 var _url = null; |
| 1951 var _queryParams = new core.Map(); |
| 1952 var _uploadMedia = null; |
| 1953 var _uploadOptions = null; |
| 1954 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1955 var _body = null; |
| 1956 |
| 1957 if (enterpriseId == null) { |
| 1958 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 1959 } |
| 1960 if (userId == null) { |
| 1961 throw new core.ArgumentError("Parameter userId is required."); |
| 1962 } |
| 1963 if (deviceId == null) { |
| 1964 throw new core.ArgumentError("Parameter deviceId is required."); |
| 1965 } |
| 1966 if (installId == null) { |
| 1967 throw new core.ArgumentError("Parameter installId is required."); |
| 1968 } |
| 1969 |
| 1970 _downloadOptions = null; |
| 1971 |
| 1972 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); |
| 1973 |
| 1974 var _response = _requester.request(_url, |
| 1975 "DELETE", |
| 1976 body: _body, |
| 1977 queryParams: _queryParams, |
| 1978 uploadOptions: _uploadOptions, |
| 1979 uploadMedia: _uploadMedia, |
| 1980 downloadOptions: _downloadOptions); |
| 1981 return _response.then((data) => null); |
| 1982 } |
| 1983 |
| 1984 /** |
| 1985 * Retrieves details of an installation of an app on a device. |
| 1986 * |
| 1987 * Request parameters: |
| 1988 * |
| 1989 * [enterpriseId] - The ID of the enterprise. |
| 1990 * |
| 1991 * [userId] - The ID of the user. |
| 1992 * |
| 1993 * [deviceId] - The Android ID of the device. |
| 1994 * |
| 1995 * [installId] - The ID of the product represented by the install, e.g. |
| 1996 * "app:com.google.android.gm". |
| 1997 * |
| 1998 * Completes with a [Install]. |
| 1999 * |
| 2000 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2001 * error. |
| 2002 * |
| 2003 * If the used [http.Client] completes with an error when making a REST call, |
| 2004 * this method will complete with the same error. |
| 2005 */ |
| 2006 async.Future<Install> get(core.String enterpriseId, core.String userId, core.S
tring deviceId, core.String installId) { |
| 2007 var _url = null; |
| 2008 var _queryParams = new core.Map(); |
| 2009 var _uploadMedia = null; |
| 2010 var _uploadOptions = null; |
| 2011 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2012 var _body = null; |
| 2013 |
| 2014 if (enterpriseId == null) { |
| 2015 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2016 } |
| 2017 if (userId == null) { |
| 2018 throw new core.ArgumentError("Parameter userId is required."); |
| 2019 } |
| 2020 if (deviceId == null) { |
| 2021 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2022 } |
| 2023 if (installId == null) { |
| 2024 throw new core.ArgumentError("Parameter installId is required."); |
| 2025 } |
| 2026 |
| 2027 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); |
| 2028 |
| 2029 var _response = _requester.request(_url, |
| 2030 "GET", |
| 2031 body: _body, |
| 2032 queryParams: _queryParams, |
| 2033 uploadOptions: _uploadOptions, |
| 2034 uploadMedia: _uploadMedia, |
| 2035 downloadOptions: _downloadOptions); |
| 2036 return _response.then((data) => new Install.fromJson(data)); |
| 2037 } |
| 2038 |
| 2039 /** |
| 2040 * Retrieves the details of all apps installed on the specified device. |
| 2041 * |
| 2042 * Request parameters: |
| 2043 * |
| 2044 * [enterpriseId] - The ID of the enterprise. |
| 2045 * |
| 2046 * [userId] - The ID of the user. |
| 2047 * |
| 2048 * [deviceId] - The Android ID of the device. |
| 2049 * |
| 2050 * Completes with a [InstallsListResponse]. |
| 2051 * |
| 2052 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2053 * error. |
| 2054 * |
| 2055 * If the used [http.Client] completes with an error when making a REST call, |
| 2056 * this method will complete with the same error. |
| 2057 */ |
| 2058 async.Future<InstallsListResponse> list(core.String enterpriseId, core.String
userId, core.String deviceId) { |
| 2059 var _url = null; |
| 2060 var _queryParams = new core.Map(); |
| 2061 var _uploadMedia = null; |
| 2062 var _uploadOptions = null; |
| 2063 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2064 var _body = null; |
| 2065 |
| 2066 if (enterpriseId == null) { |
| 2067 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2068 } |
| 2069 if (userId == null) { |
| 2070 throw new core.ArgumentError("Parameter userId is required."); |
| 2071 } |
| 2072 if (deviceId == null) { |
| 2073 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2074 } |
| 2075 |
| 2076 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs'; |
| 2077 |
| 2078 var _response = _requester.request(_url, |
| 2079 "GET", |
| 2080 body: _body, |
| 2081 queryParams: _queryParams, |
| 2082 uploadOptions: _uploadOptions, |
| 2083 uploadMedia: _uploadMedia, |
| 2084 downloadOptions: _downloadOptions); |
| 2085 return _response.then((data) => new InstallsListResponse.fromJson(data)); |
| 2086 } |
| 2087 |
| 2088 /** |
| 2089 * Requests to install the latest version of an app to a device. If the app is |
| 2090 * already installed then it is updated to the latest version if necessary. |
| 2091 * This method supports patch semantics. |
| 2092 * |
| 2093 * [request] - The metadata request object. |
| 2094 * |
| 2095 * Request parameters: |
| 2096 * |
| 2097 * [enterpriseId] - The ID of the enterprise. |
| 2098 * |
| 2099 * [userId] - The ID of the user. |
| 2100 * |
| 2101 * [deviceId] - The Android ID of the device. |
| 2102 * |
| 2103 * [installId] - The ID of the product represented by the install, e.g. |
| 2104 * "app:com.google.android.gm". |
| 2105 * |
| 2106 * Completes with a [Install]. |
| 2107 * |
| 2108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2109 * error. |
| 2110 * |
| 2111 * If the used [http.Client] completes with an error when making a REST call, |
| 2112 * this method will complete with the same error. |
| 2113 */ |
| 2114 async.Future<Install> patch(Install request, core.String enterpriseId, core.St
ring userId, core.String deviceId, core.String installId) { |
| 2115 var _url = null; |
| 2116 var _queryParams = new core.Map(); |
| 2117 var _uploadMedia = null; |
| 2118 var _uploadOptions = null; |
| 2119 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2120 var _body = null; |
| 2121 |
| 2122 if (request != null) { |
| 2123 _body = convert.JSON.encode((request).toJson()); |
| 2124 } |
| 2125 if (enterpriseId == null) { |
| 2126 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2127 } |
| 2128 if (userId == null) { |
| 2129 throw new core.ArgumentError("Parameter userId is required."); |
| 2130 } |
| 2131 if (deviceId == null) { |
| 2132 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2133 } |
| 2134 if (installId == null) { |
| 2135 throw new core.ArgumentError("Parameter installId is required."); |
| 2136 } |
| 2137 |
| 2138 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); |
| 2139 |
| 2140 var _response = _requester.request(_url, |
| 2141 "PATCH", |
| 2142 body: _body, |
| 2143 queryParams: _queryParams, |
| 2144 uploadOptions: _uploadOptions, |
| 2145 uploadMedia: _uploadMedia, |
| 2146 downloadOptions: _downloadOptions); |
| 2147 return _response.then((data) => new Install.fromJson(data)); |
| 2148 } |
| 2149 |
| 2150 /** |
| 2151 * Requests to install the latest version of an app to a device. If the app is |
| 2152 * already installed then it is updated to the latest version if necessary. |
| 2153 * |
| 2154 * [request] - The metadata request object. |
| 2155 * |
| 2156 * Request parameters: |
| 2157 * |
| 2158 * [enterpriseId] - The ID of the enterprise. |
| 2159 * |
| 2160 * [userId] - The ID of the user. |
| 2161 * |
| 2162 * [deviceId] - The Android ID of the device. |
| 2163 * |
| 2164 * [installId] - The ID of the product represented by the install, e.g. |
| 2165 * "app:com.google.android.gm". |
| 2166 * |
| 2167 * Completes with a [Install]. |
| 2168 * |
| 2169 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2170 * error. |
| 2171 * |
| 2172 * If the used [http.Client] completes with an error when making a REST call, |
| 2173 * this method will complete with the same error. |
| 2174 */ |
| 2175 async.Future<Install> update(Install request, core.String enterpriseId, core.S
tring userId, core.String deviceId, core.String installId) { |
| 2176 var _url = null; |
| 2177 var _queryParams = new core.Map(); |
| 2178 var _uploadMedia = null; |
| 2179 var _uploadOptions = null; |
| 2180 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2181 var _body = null; |
| 2182 |
| 2183 if (request != null) { |
| 2184 _body = convert.JSON.encode((request).toJson()); |
| 2185 } |
| 2186 if (enterpriseId == null) { |
| 2187 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2188 } |
| 2189 if (userId == null) { |
| 2190 throw new core.ArgumentError("Parameter userId is required."); |
| 2191 } |
| 2192 if (deviceId == null) { |
| 2193 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2194 } |
| 2195 if (installId == null) { |
| 2196 throw new core.ArgumentError("Parameter installId is required."); |
| 2197 } |
| 2198 |
| 2199 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); |
| 2200 |
| 2201 var _response = _requester.request(_url, |
| 2202 "PUT", |
| 2203 body: _body, |
| 2204 queryParams: _queryParams, |
| 2205 uploadOptions: _uploadOptions, |
| 2206 uploadMedia: _uploadMedia, |
| 2207 downloadOptions: _downloadOptions); |
| 2208 return _response.then((data) => new Install.fromJson(data)); |
| 2209 } |
| 2210 |
| 2211 } |
| 2212 |
| 2213 |
| 2214 class ManagedconfigurationsfordeviceResourceApi { |
| 2215 final commons.ApiRequester _requester; |
| 2216 |
| 2217 ManagedconfigurationsfordeviceResourceApi(commons.ApiRequester client) : |
| 2218 _requester = client; |
| 2219 |
| 2220 /** |
| 2221 * Removes a per-device managed configuration for an app for the specified |
| 2222 * device. |
| 2223 * |
| 2224 * Request parameters: |
| 2225 * |
| 2226 * [enterpriseId] - The ID of the enterprise. |
| 2227 * |
| 2228 * [userId] - The ID of the user. |
| 2229 * |
| 2230 * [deviceId] - The Android ID of the device. |
| 2231 * |
| 2232 * [managedConfigurationForDeviceId] - The ID of the managed configuration (a |
| 2233 * product ID), e.g. "app:com.google.android.gm". |
| 2234 * |
| 2235 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2236 * error. |
| 2237 * |
| 2238 * If the used [http.Client] completes with an error when making a REST call, |
| 2239 * this method will complete with the same error. |
| 2240 */ |
| 2241 async.Future delete(core.String enterpriseId, core.String userId, core.String
deviceId, core.String managedConfigurationForDeviceId) { |
| 2242 var _url = null; |
| 2243 var _queryParams = new core.Map(); |
| 2244 var _uploadMedia = null; |
| 2245 var _uploadOptions = null; |
| 2246 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2247 var _body = null; |
| 2248 |
| 2249 if (enterpriseId == null) { |
| 2250 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2251 } |
| 2252 if (userId == null) { |
| 2253 throw new core.ArgumentError("Parameter userId is required."); |
| 2254 } |
| 2255 if (deviceId == null) { |
| 2256 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2257 } |
| 2258 if (managedConfigurationForDeviceId == null) { |
| 2259 throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is
required."); |
| 2260 } |
| 2261 |
| 2262 _downloadOptions = null; |
| 2263 |
| 2264 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Esca
per.ecapeVariable('$managedConfigurationForDeviceId'); |
| 2265 |
| 2266 var _response = _requester.request(_url, |
| 2267 "DELETE", |
| 2268 body: _body, |
| 2269 queryParams: _queryParams, |
| 2270 uploadOptions: _uploadOptions, |
| 2271 uploadMedia: _uploadMedia, |
| 2272 downloadOptions: _downloadOptions); |
| 2273 return _response.then((data) => null); |
| 2274 } |
| 2275 |
| 2276 /** |
| 2277 * Retrieves details of a per-device managed configuration. |
| 2278 * |
| 2279 * Request parameters: |
| 2280 * |
| 2281 * [enterpriseId] - The ID of the enterprise. |
| 2282 * |
| 2283 * [userId] - The ID of the user. |
| 2284 * |
| 2285 * [deviceId] - The Android ID of the device. |
| 2286 * |
| 2287 * [managedConfigurationForDeviceId] - The ID of the managed configuration (a |
| 2288 * product ID), e.g. "app:com.google.android.gm". |
| 2289 * |
| 2290 * Completes with a [ManagedConfiguration]. |
| 2291 * |
| 2292 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2293 * error. |
| 2294 * |
| 2295 * If the used [http.Client] completes with an error when making a REST call, |
| 2296 * this method will complete with the same error. |
| 2297 */ |
| 2298 async.Future<ManagedConfiguration> get(core.String enterpriseId, core.String u
serId, core.String deviceId, core.String managedConfigurationForDeviceId) { |
| 2299 var _url = null; |
| 2300 var _queryParams = new core.Map(); |
| 2301 var _uploadMedia = null; |
| 2302 var _uploadOptions = null; |
| 2303 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2304 var _body = null; |
| 2305 |
| 2306 if (enterpriseId == null) { |
| 2307 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2308 } |
| 2309 if (userId == null) { |
| 2310 throw new core.ArgumentError("Parameter userId is required."); |
| 2311 } |
| 2312 if (deviceId == null) { |
| 2313 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2314 } |
| 2315 if (managedConfigurationForDeviceId == null) { |
| 2316 throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is
required."); |
| 2317 } |
| 2318 |
| 2319 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Esca
per.ecapeVariable('$managedConfigurationForDeviceId'); |
| 2320 |
| 2321 var _response = _requester.request(_url, |
| 2322 "GET", |
| 2323 body: _body, |
| 2324 queryParams: _queryParams, |
| 2325 uploadOptions: _uploadOptions, |
| 2326 uploadMedia: _uploadMedia, |
| 2327 downloadOptions: _downloadOptions); |
| 2328 return _response.then((data) => new ManagedConfiguration.fromJson(data)); |
| 2329 } |
| 2330 |
| 2331 /** |
| 2332 * Lists all the per-device managed configurations for the specified device. |
| 2333 * Only the ID is set. |
| 2334 * |
| 2335 * Request parameters: |
| 2336 * |
| 2337 * [enterpriseId] - The ID of the enterprise. |
| 2338 * |
| 2339 * [userId] - The ID of the user. |
| 2340 * |
| 2341 * [deviceId] - The Android ID of the device. |
| 2342 * |
| 2343 * Completes with a [ManagedConfigurationsForDeviceListResponse]. |
| 2344 * |
| 2345 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2346 * error. |
| 2347 * |
| 2348 * If the used [http.Client] completes with an error when making a REST call, |
| 2349 * this method will complete with the same error. |
| 2350 */ |
| 2351 async.Future<ManagedConfigurationsForDeviceListResponse> list(core.String ente
rpriseId, core.String userId, core.String deviceId) { |
| 2352 var _url = null; |
| 2353 var _queryParams = new core.Map(); |
| 2354 var _uploadMedia = null; |
| 2355 var _uploadOptions = null; |
| 2356 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2357 var _body = null; |
| 2358 |
| 2359 if (enterpriseId == null) { |
| 2360 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2361 } |
| 2362 if (userId == null) { |
| 2363 throw new core.ArgumentError("Parameter userId is required."); |
| 2364 } |
| 2365 if (deviceId == null) { |
| 2366 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2367 } |
| 2368 |
| 2369 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice'; |
| 2370 |
| 2371 var _response = _requester.request(_url, |
| 2372 "GET", |
| 2373 body: _body, |
| 2374 queryParams: _queryParams, |
| 2375 uploadOptions: _uploadOptions, |
| 2376 uploadMedia: _uploadMedia, |
| 2377 downloadOptions: _downloadOptions); |
| 2378 return _response.then((data) => new ManagedConfigurationsForDeviceListRespon
se.fromJson(data)); |
| 2379 } |
| 2380 |
| 2381 /** |
| 2382 * Adds or updates a per-device managed configuration for an app for the |
| 2383 * specified device. This method supports patch semantics. |
| 2384 * |
| 2385 * [request] - The metadata request object. |
| 2386 * |
| 2387 * Request parameters: |
| 2388 * |
| 2389 * [enterpriseId] - The ID of the enterprise. |
| 2390 * |
| 2391 * [userId] - The ID of the user. |
| 2392 * |
| 2393 * [deviceId] - The Android ID of the device. |
| 2394 * |
| 2395 * [managedConfigurationForDeviceId] - The ID of the managed configuration (a |
| 2396 * product ID), e.g. "app:com.google.android.gm". |
| 2397 * |
| 2398 * Completes with a [ManagedConfiguration]. |
| 2399 * |
| 2400 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2401 * error. |
| 2402 * |
| 2403 * If the used [http.Client] completes with an error when making a REST call, |
| 2404 * this method will complete with the same error. |
| 2405 */ |
| 2406 async.Future<ManagedConfiguration> patch(ManagedConfiguration request, core.St
ring enterpriseId, core.String userId, core.String deviceId, core.String managed
ConfigurationForDeviceId) { |
| 2407 var _url = null; |
| 2408 var _queryParams = new core.Map(); |
| 2409 var _uploadMedia = null; |
| 2410 var _uploadOptions = null; |
| 2411 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2412 var _body = null; |
| 2413 |
| 2414 if (request != null) { |
| 2415 _body = convert.JSON.encode((request).toJson()); |
| 2416 } |
| 2417 if (enterpriseId == null) { |
| 2418 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2419 } |
| 2420 if (userId == null) { |
| 2421 throw new core.ArgumentError("Parameter userId is required."); |
| 2422 } |
| 2423 if (deviceId == null) { |
| 2424 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2425 } |
| 2426 if (managedConfigurationForDeviceId == null) { |
| 2427 throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is
required."); |
| 2428 } |
| 2429 |
| 2430 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Esca
per.ecapeVariable('$managedConfigurationForDeviceId'); |
| 2431 |
| 2432 var _response = _requester.request(_url, |
| 2433 "PATCH", |
| 2434 body: _body, |
| 2435 queryParams: _queryParams, |
| 2436 uploadOptions: _uploadOptions, |
| 2437 uploadMedia: _uploadMedia, |
| 2438 downloadOptions: _downloadOptions); |
| 2439 return _response.then((data) => new ManagedConfiguration.fromJson(data)); |
| 2440 } |
| 2441 |
| 2442 /** |
| 2443 * Adds or updates a per-device managed configuration for an app for the |
| 2444 * specified device. |
| 2445 * |
| 2446 * [request] - The metadata request object. |
| 2447 * |
| 2448 * Request parameters: |
| 2449 * |
| 2450 * [enterpriseId] - The ID of the enterprise. |
| 2451 * |
| 2452 * [userId] - The ID of the user. |
| 2453 * |
| 2454 * [deviceId] - The Android ID of the device. |
| 2455 * |
| 2456 * [managedConfigurationForDeviceId] - The ID of the managed configuration (a |
| 2457 * product ID), e.g. "app:com.google.android.gm". |
| 2458 * |
| 2459 * Completes with a [ManagedConfiguration]. |
| 2460 * |
| 2461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2462 * error. |
| 1884 * | 2463 * |
| 1885 * If the used [http.Client] completes with an error when making a REST call, | 2464 * If the used [http.Client] completes with an error when making a REST call, |
| 1886 * this method will complete with the same error. | 2465 * this method will complete with the same error. |
| 1887 */ | 2466 */ |
| 1888 async.Future<GroupLicenseUsersListResponse> list(core.String enterpriseId, cor
e.String groupLicenseId) { | 2467 async.Future<ManagedConfiguration> update(ManagedConfiguration request, core.S
tring enterpriseId, core.String userId, core.String deviceId, core.String manage
dConfigurationForDeviceId) { |
| 1889 var _url = null; | 2468 var _url = null; |
| 1890 var _queryParams = new core.Map(); | 2469 var _queryParams = new core.Map(); |
| 1891 var _uploadMedia = null; | 2470 var _uploadMedia = null; |
| 1892 var _uploadOptions = null; | 2471 var _uploadOptions = null; |
| 1893 var _downloadOptions = commons.DownloadOptions.Metadata; | 2472 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1894 var _body = null; | 2473 var _body = null; |
| 1895 | 2474 |
| 2475 if (request != null) { |
| 2476 _body = convert.JSON.encode((request).toJson()); |
| 2477 } |
| 1896 if (enterpriseId == null) { | 2478 if (enterpriseId == null) { |
| 1897 throw new core.ArgumentError("Parameter enterpriseId is required."); | 2479 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 1898 } | 2480 } |
| 1899 if (groupLicenseId == null) { | 2481 if (userId == null) { |
| 1900 throw new core.ArgumentError("Parameter groupLicenseId is required."); | 2482 throw new core.ArgumentError("Parameter userId is required."); |
| 2483 } |
| 2484 if (deviceId == null) { |
| 2485 throw new core.ArgumentError("Parameter deviceId is required."); |
| 2486 } |
| 2487 if (managedConfigurationForDeviceId == null) { |
| 2488 throw new core.ArgumentError("Parameter managedConfigurationForDeviceId is
required."); |
| 1901 } | 2489 } |
| 1902 | 2490 |
| 1903 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/g
roupLicenses/' + commons.Escaper.ecapeVariable('$groupLicenseId') + '/users'; | 2491 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/managedConfigurationsForDevice/' + commons.Esca
per.ecapeVariable('$managedConfigurationForDeviceId'); |
| 1904 | 2492 |
| 1905 var _response = _requester.request(_url, | 2493 var _response = _requester.request(_url, |
| 1906 "GET", | 2494 "PUT", |
| 1907 body: _body, | 2495 body: _body, |
| 1908 queryParams: _queryParams, | 2496 queryParams: _queryParams, |
| 1909 uploadOptions: _uploadOptions, | 2497 uploadOptions: _uploadOptions, |
| 1910 uploadMedia: _uploadMedia, | 2498 uploadMedia: _uploadMedia, |
| 1911 downloadOptions: _downloadOptions); | 2499 downloadOptions: _downloadOptions); |
| 1912 return _response.then((data) => new GroupLicenseUsersListResponse.fromJson(d
ata)); | 2500 return _response.then((data) => new ManagedConfiguration.fromJson(data)); |
| 1913 } | 2501 } |
| 1914 | 2502 |
| 1915 } | 2503 } |
| 1916 | 2504 |
| 1917 | 2505 |
| 1918 class InstallsResourceApi { | 2506 class ManagedconfigurationsforuserResourceApi { |
| 1919 final commons.ApiRequester _requester; | 2507 final commons.ApiRequester _requester; |
| 1920 | 2508 |
| 1921 InstallsResourceApi(commons.ApiRequester client) : | 2509 ManagedconfigurationsforuserResourceApi(commons.ApiRequester client) : |
| 1922 _requester = client; | 2510 _requester = client; |
| 1923 | 2511 |
| 1924 /** | 2512 /** |
| 1925 * Requests to remove an app from a device. A call to get or list will still | 2513 * Removes a per-user managed configuration for an app for the specified user. |
| 1926 * show the app as installed on the device until it is actually removed. | |
| 1927 * | 2514 * |
| 1928 * Request parameters: | 2515 * Request parameters: |
| 1929 * | 2516 * |
| 1930 * [enterpriseId] - The ID of the enterprise. | 2517 * [enterpriseId] - The ID of the enterprise. |
| 1931 * | 2518 * |
| 1932 * [userId] - The ID of the user. | 2519 * [userId] - The ID of the user. |
| 1933 * | 2520 * |
| 1934 * [deviceId] - The Android ID of the device. | 2521 * [managedConfigurationForUserId] - The ID of the managed configuration (a |
| 1935 * | 2522 * product ID), e.g. "app:com.google.android.gm". |
| 1936 * [installId] - The ID of the product represented by the install, e.g. | |
| 1937 * "app:com.google.android.gm". | |
| 1938 * | 2523 * |
| 1939 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2524 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1940 * error. | 2525 * error. |
| 1941 * | 2526 * |
| 1942 * If the used [http.Client] completes with an error when making a REST call, | 2527 * If the used [http.Client] completes with an error when making a REST call, |
| 1943 * this method will complete with the same error. | 2528 * this method will complete with the same error. |
| 1944 */ | 2529 */ |
| 1945 async.Future delete(core.String enterpriseId, core.String userId, core.String
deviceId, core.String installId) { | 2530 async.Future delete(core.String enterpriseId, core.String userId, core.String
managedConfigurationForUserId) { |
| 1946 var _url = null; | 2531 var _url = null; |
| 1947 var _queryParams = new core.Map(); | 2532 var _queryParams = new core.Map(); |
| 1948 var _uploadMedia = null; | 2533 var _uploadMedia = null; |
| 1949 var _uploadOptions = null; | 2534 var _uploadOptions = null; |
| 1950 var _downloadOptions = commons.DownloadOptions.Metadata; | 2535 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1951 var _body = null; | 2536 var _body = null; |
| 1952 | 2537 |
| 1953 if (enterpriseId == null) { | 2538 if (enterpriseId == null) { |
| 1954 throw new core.ArgumentError("Parameter enterpriseId is required."); | 2539 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 1955 } | 2540 } |
| 1956 if (userId == null) { | 2541 if (userId == null) { |
| 1957 throw new core.ArgumentError("Parameter userId is required."); | 2542 throw new core.ArgumentError("Parameter userId is required."); |
| 1958 } | 2543 } |
| 1959 if (deviceId == null) { | 2544 if (managedConfigurationForUserId == null) { |
| 1960 throw new core.ArgumentError("Parameter deviceId is required."); | 2545 throw new core.ArgumentError("Parameter managedConfigurationForUserId is r
equired."); |
| 1961 } | |
| 1962 if (installId == null) { | |
| 1963 throw new core.ArgumentError("Parameter installId is required."); | |
| 1964 } | 2546 } |
| 1965 | 2547 |
| 1966 _downloadOptions = null; | 2548 _downloadOptions = null; |
| 1967 | 2549 |
| 1968 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); | 2550 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUs
er/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId'); |
| 1969 | 2551 |
| 1970 var _response = _requester.request(_url, | 2552 var _response = _requester.request(_url, |
| 1971 "DELETE", | 2553 "DELETE", |
| 1972 body: _body, | 2554 body: _body, |
| 1973 queryParams: _queryParams, | 2555 queryParams: _queryParams, |
| 1974 uploadOptions: _uploadOptions, | 2556 uploadOptions: _uploadOptions, |
| 1975 uploadMedia: _uploadMedia, | 2557 uploadMedia: _uploadMedia, |
| 1976 downloadOptions: _downloadOptions); | 2558 downloadOptions: _downloadOptions); |
| 1977 return _response.then((data) => null); | 2559 return _response.then((data) => null); |
| 1978 } | 2560 } |
| 1979 | 2561 |
| 1980 /** | 2562 /** |
| 1981 * Retrieves details of an installation of an app on a device. | 2563 * Retrieves details of a per-user managed configuration for an app for the |
| 2564 * specified user. |
| 1982 * | 2565 * |
| 1983 * Request parameters: | 2566 * Request parameters: |
| 1984 * | 2567 * |
| 1985 * [enterpriseId] - The ID of the enterprise. | 2568 * [enterpriseId] - The ID of the enterprise. |
| 1986 * | 2569 * |
| 1987 * [userId] - The ID of the user. | 2570 * [userId] - The ID of the user. |
| 1988 * | 2571 * |
| 1989 * [deviceId] - The Android ID of the device. | 2572 * [managedConfigurationForUserId] - The ID of the managed configuration (a |
| 2573 * product ID), e.g. "app:com.google.android.gm". |
| 1990 * | 2574 * |
| 1991 * [installId] - The ID of the product represented by the install, e.g. | 2575 * Completes with a [ManagedConfiguration]. |
| 1992 * "app:com.google.android.gm". | |
| 1993 * | |
| 1994 * Completes with a [Install]. | |
| 1995 * | 2576 * |
| 1996 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2577 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1997 * error. | 2578 * error. |
| 1998 * | 2579 * |
| 1999 * If the used [http.Client] completes with an error when making a REST call, | 2580 * If the used [http.Client] completes with an error when making a REST call, |
| 2000 * this method will complete with the same error. | 2581 * this method will complete with the same error. |
| 2001 */ | 2582 */ |
| 2002 async.Future<Install> get(core.String enterpriseId, core.String userId, core.S
tring deviceId, core.String installId) { | 2583 async.Future<ManagedConfiguration> get(core.String enterpriseId, core.String u
serId, core.String managedConfigurationForUserId) { |
| 2003 var _url = null; | 2584 var _url = null; |
| 2004 var _queryParams = new core.Map(); | 2585 var _queryParams = new core.Map(); |
| 2005 var _uploadMedia = null; | 2586 var _uploadMedia = null; |
| 2006 var _uploadOptions = null; | 2587 var _uploadOptions = null; |
| 2007 var _downloadOptions = commons.DownloadOptions.Metadata; | 2588 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2008 var _body = null; | 2589 var _body = null; |
| 2009 | 2590 |
| 2010 if (enterpriseId == null) { | 2591 if (enterpriseId == null) { |
| 2011 throw new core.ArgumentError("Parameter enterpriseId is required."); | 2592 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2012 } | 2593 } |
| 2013 if (userId == null) { | 2594 if (userId == null) { |
| 2014 throw new core.ArgumentError("Parameter userId is required."); | 2595 throw new core.ArgumentError("Parameter userId is required."); |
| 2015 } | 2596 } |
| 2016 if (deviceId == null) { | 2597 if (managedConfigurationForUserId == null) { |
| 2017 throw new core.ArgumentError("Parameter deviceId is required."); | 2598 throw new core.ArgumentError("Parameter managedConfigurationForUserId is r
equired."); |
| 2018 } | |
| 2019 if (installId == null) { | |
| 2020 throw new core.ArgumentError("Parameter installId is required."); | |
| 2021 } | 2599 } |
| 2022 | 2600 |
| 2023 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); | 2601 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUs
er/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId'); |
| 2024 | 2602 |
| 2025 var _response = _requester.request(_url, | 2603 var _response = _requester.request(_url, |
| 2026 "GET", | 2604 "GET", |
| 2027 body: _body, | 2605 body: _body, |
| 2028 queryParams: _queryParams, | 2606 queryParams: _queryParams, |
| 2029 uploadOptions: _uploadOptions, | 2607 uploadOptions: _uploadOptions, |
| 2030 uploadMedia: _uploadMedia, | 2608 uploadMedia: _uploadMedia, |
| 2031 downloadOptions: _downloadOptions); | 2609 downloadOptions: _downloadOptions); |
| 2032 return _response.then((data) => new Install.fromJson(data)); | 2610 return _response.then((data) => new ManagedConfiguration.fromJson(data)); |
| 2033 } | 2611 } |
| 2034 | 2612 |
| 2035 /** | 2613 /** |
| 2036 * Retrieves the details of all apps installed on the specified device. | 2614 * Lists all the per-user managed configurations for the specified user. Only |
| 2615 * the ID is set. |
| 2037 * | 2616 * |
| 2038 * Request parameters: | 2617 * Request parameters: |
| 2039 * | 2618 * |
| 2040 * [enterpriseId] - The ID of the enterprise. | 2619 * [enterpriseId] - The ID of the enterprise. |
| 2041 * | 2620 * |
| 2042 * [userId] - The ID of the user. | 2621 * [userId] - The ID of the user. |
| 2043 * | 2622 * |
| 2044 * [deviceId] - The Android ID of the device. | 2623 * Completes with a [ManagedConfigurationsForUserListResponse]. |
| 2045 * | |
| 2046 * Completes with a [InstallsListResponse]. | |
| 2047 * | 2624 * |
| 2048 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2625 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2049 * error. | 2626 * error. |
| 2050 * | 2627 * |
| 2051 * If the used [http.Client] completes with an error when making a REST call, | 2628 * If the used [http.Client] completes with an error when making a REST call, |
| 2052 * this method will complete with the same error. | 2629 * this method will complete with the same error. |
| 2053 */ | 2630 */ |
| 2054 async.Future<InstallsListResponse> list(core.String enterpriseId, core.String
userId, core.String deviceId) { | 2631 async.Future<ManagedConfigurationsForUserListResponse> list(core.String enterp
riseId, core.String userId) { |
| 2055 var _url = null; | 2632 var _url = null; |
| 2056 var _queryParams = new core.Map(); | 2633 var _queryParams = new core.Map(); |
| 2057 var _uploadMedia = null; | 2634 var _uploadMedia = null; |
| 2058 var _uploadOptions = null; | 2635 var _uploadOptions = null; |
| 2059 var _downloadOptions = commons.DownloadOptions.Metadata; | 2636 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2060 var _body = null; | 2637 var _body = null; |
| 2061 | 2638 |
| 2062 if (enterpriseId == null) { | 2639 if (enterpriseId == null) { |
| 2063 throw new core.ArgumentError("Parameter enterpriseId is required."); | 2640 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2064 } | 2641 } |
| 2065 if (userId == null) { | 2642 if (userId == null) { |
| 2066 throw new core.ArgumentError("Parameter userId is required."); | 2643 throw new core.ArgumentError("Parameter userId is required."); |
| 2067 } | 2644 } |
| 2068 if (deviceId == null) { | |
| 2069 throw new core.ArgumentError("Parameter deviceId is required."); | |
| 2070 } | |
| 2071 | 2645 |
| 2072 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs'; | 2646 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUs
er'; |
| 2073 | 2647 |
| 2074 var _response = _requester.request(_url, | 2648 var _response = _requester.request(_url, |
| 2075 "GET", | 2649 "GET", |
| 2076 body: _body, | 2650 body: _body, |
| 2077 queryParams: _queryParams, | 2651 queryParams: _queryParams, |
| 2078 uploadOptions: _uploadOptions, | 2652 uploadOptions: _uploadOptions, |
| 2079 uploadMedia: _uploadMedia, | 2653 uploadMedia: _uploadMedia, |
| 2080 downloadOptions: _downloadOptions); | 2654 downloadOptions: _downloadOptions); |
| 2081 return _response.then((data) => new InstallsListResponse.fromJson(data)); | 2655 return _response.then((data) => new ManagedConfigurationsForUserListResponse
.fromJson(data)); |
| 2082 } | 2656 } |
| 2083 | 2657 |
| 2084 /** | 2658 /** |
| 2085 * Requests to install the latest version of an app to a device. If the app is | 2659 * Adds or updates a per-user managed configuration for an app for the |
| 2086 * already installed then it is updated to the latest version if necessary. | 2660 * specified user. This method supports patch semantics. |
| 2087 * This method supports patch semantics. | |
| 2088 * | 2661 * |
| 2089 * [request] - The metadata request object. | 2662 * [request] - The metadata request object. |
| 2090 * | 2663 * |
| 2091 * Request parameters: | 2664 * Request parameters: |
| 2092 * | 2665 * |
| 2093 * [enterpriseId] - The ID of the enterprise. | 2666 * [enterpriseId] - The ID of the enterprise. |
| 2094 * | 2667 * |
| 2095 * [userId] - The ID of the user. | 2668 * [userId] - The ID of the user. |
| 2096 * | 2669 * |
| 2097 * [deviceId] - The Android ID of the device. | 2670 * [managedConfigurationForUserId] - The ID of the managed configuration (a |
| 2671 * product ID), e.g. "app:com.google.android.gm". |
| 2098 * | 2672 * |
| 2099 * [installId] - The ID of the product represented by the install, e.g. | 2673 * Completes with a [ManagedConfiguration]. |
| 2100 * "app:com.google.android.gm". | |
| 2101 * | |
| 2102 * Completes with a [Install]. | |
| 2103 * | 2674 * |
| 2104 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2675 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2105 * error. | 2676 * error. |
| 2106 * | 2677 * |
| 2107 * If the used [http.Client] completes with an error when making a REST call, | 2678 * If the used [http.Client] completes with an error when making a REST call, |
| 2108 * this method will complete with the same error. | 2679 * this method will complete with the same error. |
| 2109 */ | 2680 */ |
| 2110 async.Future<Install> patch(Install request, core.String enterpriseId, core.St
ring userId, core.String deviceId, core.String installId) { | 2681 async.Future<ManagedConfiguration> patch(ManagedConfiguration request, core.St
ring enterpriseId, core.String userId, core.String managedConfigurationForUserId
) { |
| 2111 var _url = null; | 2682 var _url = null; |
| 2112 var _queryParams = new core.Map(); | 2683 var _queryParams = new core.Map(); |
| 2113 var _uploadMedia = null; | 2684 var _uploadMedia = null; |
| 2114 var _uploadOptions = null; | 2685 var _uploadOptions = null; |
| 2115 var _downloadOptions = commons.DownloadOptions.Metadata; | 2686 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2116 var _body = null; | 2687 var _body = null; |
| 2117 | 2688 |
| 2118 if (request != null) { | 2689 if (request != null) { |
| 2119 _body = convert.JSON.encode((request).toJson()); | 2690 _body = convert.JSON.encode((request).toJson()); |
| 2120 } | 2691 } |
| 2121 if (enterpriseId == null) { | 2692 if (enterpriseId == null) { |
| 2122 throw new core.ArgumentError("Parameter enterpriseId is required."); | 2693 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2123 } | 2694 } |
| 2124 if (userId == null) { | 2695 if (userId == null) { |
| 2125 throw new core.ArgumentError("Parameter userId is required."); | 2696 throw new core.ArgumentError("Parameter userId is required."); |
| 2126 } | 2697 } |
| 2127 if (deviceId == null) { | 2698 if (managedConfigurationForUserId == null) { |
| 2128 throw new core.ArgumentError("Parameter deviceId is required."); | 2699 throw new core.ArgumentError("Parameter managedConfigurationForUserId is r
equired."); |
| 2129 } | |
| 2130 if (installId == null) { | |
| 2131 throw new core.ArgumentError("Parameter installId is required."); | |
| 2132 } | 2700 } |
| 2133 | 2701 |
| 2134 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); | 2702 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUs
er/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId'); |
| 2135 | 2703 |
| 2136 var _response = _requester.request(_url, | 2704 var _response = _requester.request(_url, |
| 2137 "PATCH", | 2705 "PATCH", |
| 2138 body: _body, | 2706 body: _body, |
| 2139 queryParams: _queryParams, | 2707 queryParams: _queryParams, |
| 2140 uploadOptions: _uploadOptions, | 2708 uploadOptions: _uploadOptions, |
| 2141 uploadMedia: _uploadMedia, | 2709 uploadMedia: _uploadMedia, |
| 2142 downloadOptions: _downloadOptions); | 2710 downloadOptions: _downloadOptions); |
| 2143 return _response.then((data) => new Install.fromJson(data)); | 2711 return _response.then((data) => new ManagedConfiguration.fromJson(data)); |
| 2144 } | 2712 } |
| 2145 | 2713 |
| 2146 /** | 2714 /** |
| 2147 * Requests to install the latest version of an app to a device. If the app is | 2715 * Adds or updates a per-user managed configuration for an app for the |
| 2148 * already installed then it is updated to the latest version if necessary. | 2716 * specified user. |
| 2149 * | 2717 * |
| 2150 * [request] - The metadata request object. | 2718 * [request] - The metadata request object. |
| 2151 * | 2719 * |
| 2152 * Request parameters: | 2720 * Request parameters: |
| 2153 * | 2721 * |
| 2154 * [enterpriseId] - The ID of the enterprise. | 2722 * [enterpriseId] - The ID of the enterprise. |
| 2155 * | 2723 * |
| 2156 * [userId] - The ID of the user. | 2724 * [userId] - The ID of the user. |
| 2157 * | 2725 * |
| 2158 * [deviceId] - The Android ID of the device. | 2726 * [managedConfigurationForUserId] - The ID of the managed configuration (a |
| 2727 * product ID), e.g. "app:com.google.android.gm". |
| 2159 * | 2728 * |
| 2160 * [installId] - The ID of the product represented by the install, e.g. | 2729 * Completes with a [ManagedConfiguration]. |
| 2161 * "app:com.google.android.gm". | |
| 2162 * | |
| 2163 * Completes with a [Install]. | |
| 2164 * | 2730 * |
| 2165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2731 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2166 * error. | 2732 * error. |
| 2167 * | 2733 * |
| 2168 * If the used [http.Client] completes with an error when making a REST call, | 2734 * If the used [http.Client] completes with an error when making a REST call, |
| 2169 * this method will complete with the same error. | 2735 * this method will complete with the same error. |
| 2170 */ | 2736 */ |
| 2171 async.Future<Install> update(Install request, core.String enterpriseId, core.S
tring userId, core.String deviceId, core.String installId) { | 2737 async.Future<ManagedConfiguration> update(ManagedConfiguration request, core.S
tring enterpriseId, core.String userId, core.String managedConfigurationForUserI
d) { |
| 2172 var _url = null; | 2738 var _url = null; |
| 2173 var _queryParams = new core.Map(); | 2739 var _queryParams = new core.Map(); |
| 2174 var _uploadMedia = null; | 2740 var _uploadMedia = null; |
| 2175 var _uploadOptions = null; | 2741 var _uploadOptions = null; |
| 2176 var _downloadOptions = commons.DownloadOptions.Metadata; | 2742 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2177 var _body = null; | 2743 var _body = null; |
| 2178 | 2744 |
| 2179 if (request != null) { | 2745 if (request != null) { |
| 2180 _body = convert.JSON.encode((request).toJson()); | 2746 _body = convert.JSON.encode((request).toJson()); |
| 2181 } | 2747 } |
| 2182 if (enterpriseId == null) { | 2748 if (enterpriseId == null) { |
| 2183 throw new core.ArgumentError("Parameter enterpriseId is required."); | 2749 throw new core.ArgumentError("Parameter enterpriseId is required."); |
| 2184 } | 2750 } |
| 2185 if (userId == null) { | 2751 if (userId == null) { |
| 2186 throw new core.ArgumentError("Parameter userId is required."); | 2752 throw new core.ArgumentError("Parameter userId is required."); |
| 2187 } | 2753 } |
| 2188 if (deviceId == null) { | 2754 if (managedConfigurationForUserId == null) { |
| 2189 throw new core.ArgumentError("Parameter deviceId is required."); | 2755 throw new core.ArgumentError("Parameter managedConfigurationForUserId is r
equired."); |
| 2190 } | |
| 2191 if (installId == null) { | |
| 2192 throw new core.ArgumentError("Parameter installId is required."); | |
| 2193 } | 2756 } |
| 2194 | 2757 |
| 2195 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/devices/' + commons.Escape
r.ecapeVariable('$deviceId') + '/installs/' + commons.Escaper.ecapeVariable('$in
stallId'); | 2758 _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/u
sers/' + commons.Escaper.ecapeVariable('$userId') + '/managedConfigurationsForUs
er/' + commons.Escaper.ecapeVariable('$managedConfigurationForUserId'); |
| 2196 | 2759 |
| 2197 var _response = _requester.request(_url, | 2760 var _response = _requester.request(_url, |
| 2198 "PUT", | 2761 "PUT", |
| 2199 body: _body, | 2762 body: _body, |
| 2200 queryParams: _queryParams, | 2763 queryParams: _queryParams, |
| 2201 uploadOptions: _uploadOptions, | 2764 uploadOptions: _uploadOptions, |
| 2202 uploadMedia: _uploadMedia, | 2765 uploadMedia: _uploadMedia, |
| 2203 downloadOptions: _downloadOptions); | 2766 downloadOptions: _downloadOptions); |
| 2204 return _response.then((data) => new Install.fromJson(data)); | 2767 return _response.then((data) => new ManagedConfiguration.fromJson(data)); |
| 2205 } | 2768 } |
| 2206 | 2769 |
| 2207 } | 2770 } |
| 2208 | 2771 |
| 2209 | 2772 |
| 2210 class PermissionsResourceApi { | 2773 class PermissionsResourceApi { |
| 2211 final commons.ApiRequester _requester; | 2774 final commons.ApiRequester _requester; |
| 2212 | 2775 |
| 2213 PermissionsResourceApi(commons.ApiRequester client) : | 2776 PermissionsResourceApi(commons.ApiRequester client) : |
| 2214 _requester = client; | 2777 _requester = client; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2425 "GET", | 2988 "GET", |
| 2426 body: _body, | 2989 body: _body, |
| 2427 queryParams: _queryParams, | 2990 queryParams: _queryParams, |
| 2428 uploadOptions: _uploadOptions, | 2991 uploadOptions: _uploadOptions, |
| 2429 uploadMedia: _uploadMedia, | 2992 uploadMedia: _uploadMedia, |
| 2430 downloadOptions: _downloadOptions); | 2993 downloadOptions: _downloadOptions); |
| 2431 return _response.then((data) => new Product.fromJson(data)); | 2994 return _response.then((data) => new Product.fromJson(data)); |
| 2432 } | 2995 } |
| 2433 | 2996 |
| 2434 /** | 2997 /** |
| 2435 * Retrieves the schema defining app restrictions configurable for this | 2998 * Retrieves the schema that defines the configurable properties for this |
| 2436 * product. All products have a schema, but this may be empty if no app | 2999 * product. All products have a schema, but this schema may be empty if no |
| 2437 * restrictions are defined. | 3000 * managed configurations have been defined. This schema can be used to |
| 3001 * populate a UI that allows an administrator to configure the product. To |
| 3002 * apply a managed configuration based on the schema obtained using this API, |
| 3003 * see Managed Configurations through Play. |
| 2438 * | 3004 * |
| 2439 * Request parameters: | 3005 * Request parameters: |
| 2440 * | 3006 * |
| 2441 * [enterpriseId] - The ID of the enterprise. | 3007 * [enterpriseId] - The ID of the enterprise. |
| 2442 * | 3008 * |
| 2443 * [productId] - The ID of the product. | 3009 * [productId] - The ID of the product. |
| 2444 * | 3010 * |
| 2445 * [language] - The BCP47 tag for the user's preferred language (e.g. "en-US", | 3011 * [language] - The BCP47 tag for the user's preferred language (e.g. "en-US", |
| 2446 * "de"). | 3012 * "de"). |
| 2447 * | 3013 * |
| (...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3671 queryParams: _queryParams, | 4237 queryParams: _queryParams, |
| 3672 uploadOptions: _uploadOptions, | 4238 uploadOptions: _uploadOptions, |
| 3673 uploadMedia: _uploadMedia, | 4239 uploadMedia: _uploadMedia, |
| 3674 downloadOptions: _downloadOptions); | 4240 downloadOptions: _downloadOptions); |
| 3675 return _response.then((data) => new ProductSet.fromJson(data)); | 4241 return _response.then((data) => new ProductSet.fromJson(data)); |
| 3676 } | 4242 } |
| 3677 | 4243 |
| 3678 /** | 4244 /** |
| 3679 * Creates a new EMM-managed user. | 4245 * Creates a new EMM-managed user. |
| 3680 * | 4246 * |
| 3681 * The required details of the user are passed in the Users resource in the | 4247 * The Users resource passed in the body of the request should include an |
| 3682 * body of the request. Specifically, the accountIdentifier, accountType, and | 4248 * accountIdentifier and an accountType. |
| 3683 * displayName fields must be provided. | |
| 3684 * | 4249 * |
| 3685 * [request] - The metadata request object. | 4250 * [request] - The metadata request object. |
| 3686 * | 4251 * |
| 3687 * Request parameters: | 4252 * Request parameters: |
| 3688 * | 4253 * |
| 3689 * [enterpriseId] - The ID of the enterprise. | 4254 * [enterpriseId] - The ID of the enterprise. |
| 3690 * | 4255 * |
| 3691 * Completes with a [User]. | 4256 * Completes with a [User]. |
| 3692 * | 4257 * |
| 3693 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4258 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3717 "POST", | 4282 "POST", |
| 3718 body: _body, | 4283 body: _body, |
| 3719 queryParams: _queryParams, | 4284 queryParams: _queryParams, |
| 3720 uploadOptions: _uploadOptions, | 4285 uploadOptions: _uploadOptions, |
| 3721 uploadMedia: _uploadMedia, | 4286 uploadMedia: _uploadMedia, |
| 3722 downloadOptions: _downloadOptions); | 4287 downloadOptions: _downloadOptions); |
| 3723 return _response.then((data) => new User.fromJson(data)); | 4288 return _response.then((data) => new User.fromJson(data)); |
| 3724 } | 4289 } |
| 3725 | 4290 |
| 3726 /** | 4291 /** |
| 3727 * Looks up a user by their primary email address. This is only supported for | 4292 * Looks up a user by primary email address. This is only supported for |
| 3728 * Google-managed users. Lookup of the id is not needed for EMM-managed users | 4293 * Google-managed users. Lookup of the id is not needed for EMM-managed users |
| 3729 * because the id is already returned in the result of the Users.insert call. | 4294 * because the id is already returned in the result of the Users.insert call. |
| 3730 * | 4295 * |
| 3731 * Request parameters: | 4296 * Request parameters: |
| 3732 * | 4297 * |
| 3733 * [enterpriseId] - The ID of the enterprise. | 4298 * [enterpriseId] - The ID of the enterprise. |
| 3734 * | 4299 * |
| 3735 * [email] - The exact primary email address of the user to look up. | 4300 * [email] - The exact primary email address of the user to look up. |
| 3736 * | 4301 * |
| 3737 * Completes with a [UsersListResponse]. | 4302 * Completes with a [UsersListResponse]. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 3766 queryParams: _queryParams, | 4331 queryParams: _queryParams, |
| 3767 uploadOptions: _uploadOptions, | 4332 uploadOptions: _uploadOptions, |
| 3768 uploadMedia: _uploadMedia, | 4333 uploadMedia: _uploadMedia, |
| 3769 downloadOptions: _downloadOptions); | 4334 downloadOptions: _downloadOptions); |
| 3770 return _response.then((data) => new UsersListResponse.fromJson(data)); | 4335 return _response.then((data) => new UsersListResponse.fromJson(data)); |
| 3771 } | 4336 } |
| 3772 | 4337 |
| 3773 /** | 4338 /** |
| 3774 * Updates the details of an EMM-managed user. | 4339 * Updates the details of an EMM-managed user. |
| 3775 * | 4340 * |
| 3776 * This only works with EMM-managed users. Pass the new details in Users | 4341 * Can be used with EMM-managed users only (not Google managed users). Pass |
| 3777 * resource in the request body. Only the displayName field can be changed. | 4342 * the new details in the Users resource in the request body. Only the |
| 3778 * Other fields must either be unset or have the currently active value. This | 4343 * displayName field can be changed. Other fields must either be unset or have |
| 3779 * method supports patch semantics. | 4344 * the currently active value. This method supports patch semantics. |
| 3780 * | 4345 * |
| 3781 * [request] - The metadata request object. | 4346 * [request] - The metadata request object. |
| 3782 * | 4347 * |
| 3783 * Request parameters: | 4348 * Request parameters: |
| 3784 * | 4349 * |
| 3785 * [enterpriseId] - The ID of the enterprise. | 4350 * [enterpriseId] - The ID of the enterprise. |
| 3786 * | 4351 * |
| 3787 * [userId] - The ID of the user. | 4352 * [userId] - The ID of the user. |
| 3788 * | 4353 * |
| 3789 * Completes with a [User]. | 4354 * Completes with a [User]. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3913 queryParams: _queryParams, | 4478 queryParams: _queryParams, |
| 3914 uploadOptions: _uploadOptions, | 4479 uploadOptions: _uploadOptions, |
| 3915 uploadMedia: _uploadMedia, | 4480 uploadMedia: _uploadMedia, |
| 3916 downloadOptions: _downloadOptions); | 4481 downloadOptions: _downloadOptions); |
| 3917 return _response.then((data) => new ProductSet.fromJson(data)); | 4482 return _response.then((data) => new ProductSet.fromJson(data)); |
| 3918 } | 4483 } |
| 3919 | 4484 |
| 3920 /** | 4485 /** |
| 3921 * Updates the details of an EMM-managed user. | 4486 * Updates the details of an EMM-managed user. |
| 3922 * | 4487 * |
| 3923 * This only works with EMM-managed users. Pass the new details in Users | 4488 * Can be used with EMM-managed users only (not Google managed users). Pass |
| 3924 * resource in the request body. Only the displayName field can be changed. | 4489 * the new details in the Users resource in the request body. Only the |
| 3925 * Other fields must either be unset or have the currently active value. | 4490 * displayName field can be changed. Other fields must either be unset or have |
| 4491 * the currently active value. |
| 3926 * | 4492 * |
| 3927 * [request] - The metadata request object. | 4493 * [request] - The metadata request object. |
| 3928 * | 4494 * |
| 3929 * Request parameters: | 4495 * Request parameters: |
| 3930 * | 4496 * |
| 3931 * [enterpriseId] - The ID of the enterprise. | 4497 * [enterpriseId] - The ID of the enterprise. |
| 3932 * | 4498 * |
| 3933 * [userId] - The ID of the user. | 4499 * [userId] - The ID of the user. |
| 3934 * | 4500 * |
| 3935 * Completes with a [User]. | 4501 * Completes with a [User]. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4084 /** | 4650 /** |
| 4085 * For choice or multiselect restrictions, the list of possible entries' | 4651 * For choice or multiselect restrictions, the list of possible entries' |
| 4086 * machine-readable values. | 4652 * machine-readable values. |
| 4087 */ | 4653 */ |
| 4088 core.List<core.String> entryValue; | 4654 core.List<core.String> entryValue; |
| 4089 /** | 4655 /** |
| 4090 * The unique key that the product uses to identify the restriction, e.g. | 4656 * The unique key that the product uses to identify the restriction, e.g. |
| 4091 * "com.google.android.gm.fieldname". | 4657 * "com.google.android.gm.fieldname". |
| 4092 */ | 4658 */ |
| 4093 core.String key; | 4659 core.String key; |
| 4660 /** |
| 4661 * For bundle or bundleArray restrictions, the list of nested restrictions. |
| 4662 */ |
| 4663 core.List<AppRestrictionsSchemaRestriction> nestedRestriction; |
| 4094 /** The type of the restriction. */ | 4664 /** The type of the restriction. */ |
| 4095 core.String restrictionType; | 4665 core.String restrictionType; |
| 4096 /** The name of the restriction. */ | 4666 /** The name of the restriction. */ |
| 4097 core.String title; | 4667 core.String title; |
| 4098 | 4668 |
| 4099 AppRestrictionsSchemaRestriction(); | 4669 AppRestrictionsSchemaRestriction(); |
| 4100 | 4670 |
| 4101 AppRestrictionsSchemaRestriction.fromJson(core.Map _json) { | 4671 AppRestrictionsSchemaRestriction.fromJson(core.Map _json) { |
| 4102 if (_json.containsKey("defaultValue")) { | 4672 if (_json.containsKey("defaultValue")) { |
| 4103 defaultValue = new AppRestrictionsSchemaRestrictionRestrictionValue.fromJs
on(_json["defaultValue"]); | 4673 defaultValue = new AppRestrictionsSchemaRestrictionRestrictionValue.fromJs
on(_json["defaultValue"]); |
| 4104 } | 4674 } |
| 4105 if (_json.containsKey("description")) { | 4675 if (_json.containsKey("description")) { |
| 4106 description = _json["description"]; | 4676 description = _json["description"]; |
| 4107 } | 4677 } |
| 4108 if (_json.containsKey("entry")) { | 4678 if (_json.containsKey("entry")) { |
| 4109 entry = _json["entry"]; | 4679 entry = _json["entry"]; |
| 4110 } | 4680 } |
| 4111 if (_json.containsKey("entryValue")) { | 4681 if (_json.containsKey("entryValue")) { |
| 4112 entryValue = _json["entryValue"]; | 4682 entryValue = _json["entryValue"]; |
| 4113 } | 4683 } |
| 4114 if (_json.containsKey("key")) { | 4684 if (_json.containsKey("key")) { |
| 4115 key = _json["key"]; | 4685 key = _json["key"]; |
| 4116 } | 4686 } |
| 4687 if (_json.containsKey("nestedRestriction")) { |
| 4688 nestedRestriction = _json["nestedRestriction"].map((value) => new AppRestr
ictionsSchemaRestriction.fromJson(value)).toList(); |
| 4689 } |
| 4117 if (_json.containsKey("restrictionType")) { | 4690 if (_json.containsKey("restrictionType")) { |
| 4118 restrictionType = _json["restrictionType"]; | 4691 restrictionType = _json["restrictionType"]; |
| 4119 } | 4692 } |
| 4120 if (_json.containsKey("title")) { | 4693 if (_json.containsKey("title")) { |
| 4121 title = _json["title"]; | 4694 title = _json["title"]; |
| 4122 } | 4695 } |
| 4123 } | 4696 } |
| 4124 | 4697 |
| 4125 core.Map toJson() { | 4698 core.Map toJson() { |
| 4126 var _json = new core.Map(); | 4699 var _json = new core.Map(); |
| 4127 if (defaultValue != null) { | 4700 if (defaultValue != null) { |
| 4128 _json["defaultValue"] = (defaultValue).toJson(); | 4701 _json["defaultValue"] = (defaultValue).toJson(); |
| 4129 } | 4702 } |
| 4130 if (description != null) { | 4703 if (description != null) { |
| 4131 _json["description"] = description; | 4704 _json["description"] = description; |
| 4132 } | 4705 } |
| 4133 if (entry != null) { | 4706 if (entry != null) { |
| 4134 _json["entry"] = entry; | 4707 _json["entry"] = entry; |
| 4135 } | 4708 } |
| 4136 if (entryValue != null) { | 4709 if (entryValue != null) { |
| 4137 _json["entryValue"] = entryValue; | 4710 _json["entryValue"] = entryValue; |
| 4138 } | 4711 } |
| 4139 if (key != null) { | 4712 if (key != null) { |
| 4140 _json["key"] = key; | 4713 _json["key"] = key; |
| 4141 } | 4714 } |
| 4715 if (nestedRestriction != null) { |
| 4716 _json["nestedRestriction"] = nestedRestriction.map((value) => (value).toJs
on()).toList(); |
| 4717 } |
| 4142 if (restrictionType != null) { | 4718 if (restrictionType != null) { |
| 4143 _json["restrictionType"] = restrictionType; | 4719 _json["restrictionType"] = restrictionType; |
| 4144 } | 4720 } |
| 4145 if (title != null) { | 4721 if (title != null) { |
| 4146 _json["title"] = title; | 4722 _json["title"] = title; |
| 4147 } | 4723 } |
| 4148 return _json; | 4724 return _json; |
| 4149 } | 4725 } |
| 4150 } | 4726 } |
| 4151 | 4727 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4626 _json["device"] = device.map((value) => (value).toJson()).toList(); | 5202 _json["device"] = device.map((value) => (value).toJson()).toList(); |
| 4627 } | 5203 } |
| 4628 if (kind != null) { | 5204 if (kind != null) { |
| 4629 _json["kind"] = kind; | 5205 _json["kind"] = kind; |
| 4630 } | 5206 } |
| 4631 return _json; | 5207 return _json; |
| 4632 } | 5208 } |
| 4633 } | 5209 } |
| 4634 | 5210 |
| 4635 /** | 5211 /** |
| 4636 * An enterprise resource represents the binding between an EMM and a specific | 5212 * An Enterprises resource represents the binding between an EMM and a specific |
| 4637 * organization. | 5213 * organization. That binding can be instantiated in one of two different ways |
| 4638 * | 5214 * using this API as follows: |
| 4639 * | |
| 4640 * That binding can be instantiated in one of two different ways using this API | |
| 4641 * as follows: | |
| 4642 * | |
| 4643 * | |
| 4644 * | |
| 4645 * - For Google managed domain customers, the process involves using | 5215 * - For Google managed domain customers, the process involves using |
| 4646 * Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts | 5216 * Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts |
| 4647 * obtained from the Admin console and the Google Developers console) and | 5217 * obtained from the Admin console and the Google API Console) and submitted to |
| 4648 * submitted to the EMM through a more-or-less manual process. | 5218 * the EMM through a more-or-less manual process. |
| 4649 * | 5219 * - For Android for Work Accounts customers, the process involves using |
| 4650 * | 5220 * Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction |
| 4651 * - An alternative process that takes advantage of Google-provided mechanisms | 5221 * with the Android for Work Sign-up UI (Google-provided mechanism) to create |
| 4652 * (Android for Work Sign-up UI) that expedite the process involves | 5222 * the binding without manual steps. As an EMM, you can support either or both |
| 4653 * Enterprises.generateSignupUrl, Enterprises.completeSignup, | 5223 * approaches in your EMM console. See Create an Enterprise for details. |
| 4654 * Enterprises.getServiceAccount (optional), and Enterprises.setAccount. | |
| 4655 * | |
| 4656 * | |
| 4657 * The overall processes are very different and involve different identity | |
| 4658 * models, but as an EMM, you can support either or both approaches in your EMM | |
| 4659 * console. See EMM Developer's Guide for details. | |
| 4660 */ | 5224 */ |
| 4661 class Enterprise { | 5225 class Enterprise { |
| 4662 /** | 5226 /** |
| 4663 * Administrators of the enterprise. This is only supported for enterprises | 5227 * Administrators of the enterprise. This is only supported for enterprises |
| 4664 * created via the EMM-initiated flow. | 5228 * created via the EMM-initiated flow. |
| 4665 */ | 5229 */ |
| 4666 core.List<Administrator> administrator; | 5230 core.List<Administrator> administrator; |
| 4667 /** The unique ID for the enterprise. */ | 5231 /** The unique ID for the enterprise. */ |
| 4668 core.String id; | 5232 core.String id; |
| 4669 /** | 5233 /** |
| 4670 * Identifies what kind of resource this is. Value: the fixed string | 5234 * Identifies what kind of resource this is. Value: the fixed string |
| 4671 * "androidenterprise#enterprise". | 5235 * "androidenterprise#enterprise". |
| 4672 */ | 5236 */ |
| 4673 core.String kind; | 5237 core.String kind; |
| 4674 /** The name of the enterprise, e.g. "Example Inc". */ | 5238 /** The name of the enterprise, for example, "Example, Inc". */ |
| 4675 core.String name; | 5239 core.String name; |
| 4676 /** The enterprise's primary domain, e.g. "example.com". */ | 5240 /** The enterprise's primary domain, such as "example.com". */ |
| 4677 core.String primaryDomain; | 5241 core.String primaryDomain; |
| 4678 | 5242 |
| 4679 Enterprise(); | 5243 Enterprise(); |
| 4680 | 5244 |
| 4681 Enterprise.fromJson(core.Map _json) { | 5245 Enterprise.fromJson(core.Map _json) { |
| 4682 if (_json.containsKey("administrator")) { | 5246 if (_json.containsKey("administrator")) { |
| 4683 administrator = _json["administrator"].map((value) => new Administrator.fr
omJson(value)).toList(); | 5247 administrator = _json["administrator"].map((value) => new Administrator.fr
omJson(value)).toList(); |
| 4684 } | 5248 } |
| 4685 if (_json.containsKey("id")) { | 5249 if (_json.containsKey("id")) { |
| 4686 id = _json["id"]; | 5250 id = _json["id"]; |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5307 if (locale != null) { | 5871 if (locale != null) { |
| 5308 _json["locale"] = locale; | 5872 _json["locale"] = locale; |
| 5309 } | 5873 } |
| 5310 if (text != null) { | 5874 if (text != null) { |
| 5311 _json["text"] = text; | 5875 _json["text"] = text; |
| 5312 } | 5876 } |
| 5313 return _json; | 5877 return _json; |
| 5314 } | 5878 } |
| 5315 } | 5879 } |
| 5316 | 5880 |
| 5881 /** |
| 5882 * A managed configuration resource contains the set of managed properties that |
| 5883 * have been configured for an Android app. The app's developer would have |
| 5884 * defined configurable properties in the managed configurations schema. |
| 5885 */ |
| 5886 class ManagedConfiguration { |
| 5887 /** |
| 5888 * Identifies what kind of resource this is. Value: the fixed string |
| 5889 * "androidenterprise#managedConfiguration". |
| 5890 */ |
| 5891 core.String kind; |
| 5892 /** The set of managed properties for this configuration. */ |
| 5893 core.List<ManagedProperty> managedProperty; |
| 5894 /** |
| 5895 * The ID of the product that the managed configuration is for, e.g. |
| 5896 * "app:com.google.android.gm". |
| 5897 */ |
| 5898 core.String productId; |
| 5899 |
| 5900 ManagedConfiguration(); |
| 5901 |
| 5902 ManagedConfiguration.fromJson(core.Map _json) { |
| 5903 if (_json.containsKey("kind")) { |
| 5904 kind = _json["kind"]; |
| 5905 } |
| 5906 if (_json.containsKey("managedProperty")) { |
| 5907 managedProperty = _json["managedProperty"].map((value) => new ManagedPrope
rty.fromJson(value)).toList(); |
| 5908 } |
| 5909 if (_json.containsKey("productId")) { |
| 5910 productId = _json["productId"]; |
| 5911 } |
| 5912 } |
| 5913 |
| 5914 core.Map toJson() { |
| 5915 var _json = new core.Map(); |
| 5916 if (kind != null) { |
| 5917 _json["kind"] = kind; |
| 5918 } |
| 5919 if (managedProperty != null) { |
| 5920 _json["managedProperty"] = managedProperty.map((value) => (value).toJson()
).toList(); |
| 5921 } |
| 5922 if (productId != null) { |
| 5923 _json["productId"] = productId; |
| 5924 } |
| 5925 return _json; |
| 5926 } |
| 5927 } |
| 5928 |
| 5929 /** The managed configuration resources for the device. */ |
| 5930 class ManagedConfigurationsForDeviceListResponse { |
| 5931 /** |
| 5932 * Identifies what kind of resource this is. Value: the fixed string |
| 5933 * "androidenterprise#managedConfigurationsForDeviceListResponse". |
| 5934 */ |
| 5935 core.String kind; |
| 5936 /** A managed configuration for an app on a specific device. */ |
| 5937 core.List<ManagedConfiguration> managedConfigurationForDevice; |
| 5938 |
| 5939 ManagedConfigurationsForDeviceListResponse(); |
| 5940 |
| 5941 ManagedConfigurationsForDeviceListResponse.fromJson(core.Map _json) { |
| 5942 if (_json.containsKey("kind")) { |
| 5943 kind = _json["kind"]; |
| 5944 } |
| 5945 if (_json.containsKey("managedConfigurationForDevice")) { |
| 5946 managedConfigurationForDevice = _json["managedConfigurationForDevice"].map
((value) => new ManagedConfiguration.fromJson(value)).toList(); |
| 5947 } |
| 5948 } |
| 5949 |
| 5950 core.Map toJson() { |
| 5951 var _json = new core.Map(); |
| 5952 if (kind != null) { |
| 5953 _json["kind"] = kind; |
| 5954 } |
| 5955 if (managedConfigurationForDevice != null) { |
| 5956 _json["managedConfigurationForDevice"] = managedConfigurationForDevice.map
((value) => (value).toJson()).toList(); |
| 5957 } |
| 5958 return _json; |
| 5959 } |
| 5960 } |
| 5961 |
| 5962 /** The managed configuration resources for the user. */ |
| 5963 class ManagedConfigurationsForUserListResponse { |
| 5964 /** |
| 5965 * Identifies what kind of resource this is. Value: the fixed string |
| 5966 * "androidenterprise#managedConfigurationsForUserListResponse". |
| 5967 */ |
| 5968 core.String kind; |
| 5969 /** A managed configuration for an app for a specific user. */ |
| 5970 core.List<ManagedConfiguration> managedConfigurationForUser; |
| 5971 |
| 5972 ManagedConfigurationsForUserListResponse(); |
| 5973 |
| 5974 ManagedConfigurationsForUserListResponse.fromJson(core.Map _json) { |
| 5975 if (_json.containsKey("kind")) { |
| 5976 kind = _json["kind"]; |
| 5977 } |
| 5978 if (_json.containsKey("managedConfigurationForUser")) { |
| 5979 managedConfigurationForUser = _json["managedConfigurationForUser"].map((va
lue) => new ManagedConfiguration.fromJson(value)).toList(); |
| 5980 } |
| 5981 } |
| 5982 |
| 5983 core.Map toJson() { |
| 5984 var _json = new core.Map(); |
| 5985 if (kind != null) { |
| 5986 _json["kind"] = kind; |
| 5987 } |
| 5988 if (managedConfigurationForUser != null) { |
| 5989 _json["managedConfigurationForUser"] = managedConfigurationForUser.map((va
lue) => (value).toJson()).toList(); |
| 5990 } |
| 5991 return _json; |
| 5992 } |
| 5993 } |
| 5994 |
| 5995 /** |
| 5996 * A managed property of a managed configuration. The property must match one of |
| 5997 * the properties in the app restrictions schema of the product. Exactly one of |
| 5998 * the value fields must be populated, and it must match the property's type in |
| 5999 * the app restrictions schema. |
| 6000 */ |
| 6001 class ManagedProperty { |
| 6002 /** The unique key that identifies the property. */ |
| 6003 core.String key; |
| 6004 /** |
| 6005 * The boolean value - this will only be present if type of the property is |
| 6006 * bool. |
| 6007 */ |
| 6008 core.bool valueBool; |
| 6009 /** |
| 6010 * The bundle of managed properties - this will only be present if type of the |
| 6011 * property is bundle. |
| 6012 */ |
| 6013 ManagedPropertyBundle valueBundle; |
| 6014 /** |
| 6015 * The list of bundles of properties - this will only be present if type of |
| 6016 * the property is bundle_array. |
| 6017 */ |
| 6018 core.List<ManagedPropertyBundle> valueBundleArray; |
| 6019 /** |
| 6020 * The integer value - this will only be present if type of the property is |
| 6021 * integer. |
| 6022 */ |
| 6023 core.int valueInteger; |
| 6024 /** |
| 6025 * The string value - this will only be present if type of the property is |
| 6026 * string, choice or hidden. |
| 6027 */ |
| 6028 core.String valueString; |
| 6029 /** |
| 6030 * The list of string values - this will only be present if type of the |
| 6031 * property is multiselect. |
| 6032 */ |
| 6033 core.List<core.String> valueStringArray; |
| 6034 |
| 6035 ManagedProperty(); |
| 6036 |
| 6037 ManagedProperty.fromJson(core.Map _json) { |
| 6038 if (_json.containsKey("key")) { |
| 6039 key = _json["key"]; |
| 6040 } |
| 6041 if (_json.containsKey("valueBool")) { |
| 6042 valueBool = _json["valueBool"]; |
| 6043 } |
| 6044 if (_json.containsKey("valueBundle")) { |
| 6045 valueBundle = new ManagedPropertyBundle.fromJson(_json["valueBundle"]); |
| 6046 } |
| 6047 if (_json.containsKey("valueBundleArray")) { |
| 6048 valueBundleArray = _json["valueBundleArray"].map((value) => new ManagedPro
pertyBundle.fromJson(value)).toList(); |
| 6049 } |
| 6050 if (_json.containsKey("valueInteger")) { |
| 6051 valueInteger = _json["valueInteger"]; |
| 6052 } |
| 6053 if (_json.containsKey("valueString")) { |
| 6054 valueString = _json["valueString"]; |
| 6055 } |
| 6056 if (_json.containsKey("valueStringArray")) { |
| 6057 valueStringArray = _json["valueStringArray"]; |
| 6058 } |
| 6059 } |
| 6060 |
| 6061 core.Map toJson() { |
| 6062 var _json = new core.Map(); |
| 6063 if (key != null) { |
| 6064 _json["key"] = key; |
| 6065 } |
| 6066 if (valueBool != null) { |
| 6067 _json["valueBool"] = valueBool; |
| 6068 } |
| 6069 if (valueBundle != null) { |
| 6070 _json["valueBundle"] = (valueBundle).toJson(); |
| 6071 } |
| 6072 if (valueBundleArray != null) { |
| 6073 _json["valueBundleArray"] = valueBundleArray.map((value) => (value).toJson
()).toList(); |
| 6074 } |
| 6075 if (valueInteger != null) { |
| 6076 _json["valueInteger"] = valueInteger; |
| 6077 } |
| 6078 if (valueString != null) { |
| 6079 _json["valueString"] = valueString; |
| 6080 } |
| 6081 if (valueStringArray != null) { |
| 6082 _json["valueStringArray"] = valueStringArray; |
| 6083 } |
| 6084 return _json; |
| 6085 } |
| 6086 } |
| 6087 |
| 6088 /** A bundle of managed properties. */ |
| 6089 class ManagedPropertyBundle { |
| 6090 /** The list of managed properties. */ |
| 6091 core.List<ManagedProperty> managedProperty; |
| 6092 |
| 6093 ManagedPropertyBundle(); |
| 6094 |
| 6095 ManagedPropertyBundle.fromJson(core.Map _json) { |
| 6096 if (_json.containsKey("managedProperty")) { |
| 6097 managedProperty = _json["managedProperty"].map((value) => new ManagedPrope
rty.fromJson(value)).toList(); |
| 6098 } |
| 6099 } |
| 6100 |
| 6101 core.Map toJson() { |
| 6102 var _json = new core.Map(); |
| 6103 if (managedProperty != null) { |
| 6104 _json["managedProperty"] = managedProperty.map((value) => (value).toJson()
).toList(); |
| 6105 } |
| 6106 return _json; |
| 6107 } |
| 6108 } |
| 6109 |
| 5317 /** An event generated when new permissions are added to an app. */ | 6110 /** An event generated when new permissions are added to an app. */ |
| 5318 class NewPermissionsEvent { | 6111 class NewPermissionsEvent { |
| 5319 /** | 6112 /** |
| 5320 * The set of permissions that the enterprise admin has already approved for | 6113 * The set of permissions that the enterprise admin has already approved for |
| 5321 * this application. Use Permissions.Get on the EMM API to retrieve details | 6114 * this application. Use Permissions.Get on the EMM API to retrieve details |
| 5322 * about these permissions. | 6115 * about these permissions. |
| 5323 */ | 6116 */ |
| 5324 core.List<core.String> approvedPermissions; | 6117 core.List<core.String> approvedPermissions; |
| 5325 /** | 6118 /** |
| 5326 * The id of the product (e.g. "app:com.google.android.gm") for which new | 6119 * The id of the product (e.g. "app:com.google.android.gm") for which new |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6289 | 7082 |
| 6290 /** | 7083 /** |
| 6291 * General setting for the Google Play for Work store layout, currently only | 7084 * General setting for the Google Play for Work store layout, currently only |
| 6292 * specifying the page to display the first time the store is opened. | 7085 * specifying the page to display the first time the store is opened. |
| 6293 */ | 7086 */ |
| 6294 class StoreLayout { | 7087 class StoreLayout { |
| 6295 /** | 7088 /** |
| 6296 * The ID of the store page to be used as the homepage. The homepage will be | 7089 * The ID of the store page to be used as the homepage. The homepage will be |
| 6297 * used as the first page shown in the Google Play for Work store. | 7090 * used as the first page shown in the Google Play for Work store. |
| 6298 * | 7091 * |
| 6299 * If there is no homepage set, an empty store is shown. The homepage can be | 7092 * If a homepage has not been set, the Play store shown on devices will be |
| 6300 * unset (by not specifying it) to empty the store. | 7093 * empty. Not specifying a homepage on a store layout effectively empties the |
| 7094 * store. |
| 6301 * | 7095 * |
| 6302 * If there exists at least one page, this field must be set to the ID of a | 7096 * If there exists at least one page, this field must be set to the ID of a |
| 6303 * valid page. | 7097 * valid page. |
| 6304 */ | 7098 */ |
| 6305 core.String homepageId; | 7099 core.String homepageId; |
| 6306 /** | 7100 /** |
| 6307 * Identifies what kind of resource this is. Value: the fixed string | 7101 * Identifies what kind of resource this is. Value: the fixed string |
| 6308 * "androidenterprise#storeLayout". | 7102 * "androidenterprise#storeLayout". |
| 6309 */ | 7103 */ |
| 6310 core.String kind; | 7104 core.String kind; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6491 } | 7285 } |
| 6492 return _json; | 7286 return _json; |
| 6493 } | 7287 } |
| 6494 } | 7288 } |
| 6495 | 7289 |
| 6496 /** | 7290 /** |
| 6497 * A Users resource represents an account associated with an enterprise. The | 7291 * A Users resource represents an account associated with an enterprise. The |
| 6498 * account may be specific to a device or to an individual user (who can then | 7292 * account may be specific to a device or to an individual user (who can then |
| 6499 * use the account across multiple devices). The account may provide access to | 7293 * use the account across multiple devices). The account may provide access to |
| 6500 * Google Play for Work only, or to other Google services, depending on the | 7294 * Google Play for Work only, or to other Google services, depending on the |
| 6501 * identity model used: | 7295 * identity model: |
| 6502 * - Google managed domain identity model requires synchronization to Google | 7296 * - Google managed domain identity model requires synchronization to Google |
| 6503 * account sources (via primaryEmail). | 7297 * account sources (via primaryEmail). |
| 6504 * | 7298 * - Android for Work Accounts identity model provides a dynamic means for |
| 6505 * | |
| 6506 * - Android for Work accounts identity model provides a dynamic means for | |
| 6507 * enterprises to create user or device accounts as needed. These accounts | 7299 * enterprises to create user or device accounts as needed. These accounts |
| 6508 * provide access to Google Play for Work only. | 7300 * provide access to Google Play for Work only. |
| 6509 */ | 7301 */ |
| 6510 class User { | 7302 class User { |
| 6511 /** | 7303 /** |
| 6512 * The id as used by the EMM for this user, e.g. "user342" or "asset#44418". | 7304 * A unique identifier you create for this user, such as "user342" or |
| 6513 * Will always be set for EMM managed users and not set for Google managed | 7305 * "asset#44418". Do not use personally identifiable information (PII) for |
| 6514 * users. For privacy sensitive deployments it should not be possible to | 7306 * this property. Must always be set for EMM-managed users. Not set for |
| 6515 * identify the individual with this identifier. | 7307 * Google-managed users. |
| 6516 */ | 7308 */ |
| 6517 core.String accountIdentifier; | 7309 core.String accountIdentifier; |
| 6518 /** | 7310 /** |
| 6519 * The type of account that this user represents. A "deviceAccount" is | 7311 * The type of account that this user represents. A userAccount can be |
| 6520 * specific to a single device while a "userAccount" represents a traditional | 7312 * installed on multiple devices, but a deviceAccount is specific to a single |
| 6521 * user account, i.e. one that can be installed on multiple devices. | 7313 * device. An EMM-managed user (emmManaged) can be either type (userAccount, |
| 6522 * "googleManaged" users will always be a "userAccount" but "emmManaged" users | 7314 * deviceAccount), but a Google-managed user (googleManaged) is always a |
| 6523 * can be either a "userAccount" or a "deviceAccount". | 7315 * userAccount. |
| 6524 */ | 7316 */ |
| 6525 core.String accountType; | 7317 core.String accountType; |
| 6526 /** | 7318 /** |
| 6527 * The user's name as it is to be presented in user interfaces, e.g. "John". | 7319 * The name that will appear in user interfaces. Setting this property is |
| 6528 * Can optionally be set for EMM managed users and will not be set for Google | 7320 * optional when creating EMM-managed users. If you do set this property, use |
| 6529 * managed users. For privacy sensitive deployments this should be left unset | 7321 * something generic about the organization (such as "Example, Inc.") or your |
| 6530 * or set to something generic. | 7322 * name (as EMM). Not used for Google-managed user accounts. |
| 6531 */ | 7323 */ |
| 6532 core.String displayName; | 7324 core.String displayName; |
| 6533 /** The unique ID for the user. */ | 7325 /** The unique ID for the user. */ |
| 6534 core.String id; | 7326 core.String id; |
| 6535 /** | 7327 /** |
| 6536 * Identifies what kind of resource this is. Value: the fixed string | 7328 * Identifies what kind of resource this is. Value: the fixed string |
| 6537 * "androidenterprise#user". | 7329 * "androidenterprise#user". |
| 6538 */ | 7330 */ |
| 6539 core.String kind; | 7331 core.String kind; |
| 6540 /** | 7332 /** |
| 6541 * The entity that manages the user. With "googleManaged" users, the source of | 7333 * The entity that manages the user. With googleManaged users, the source of |
| 6542 * truth is Google so EMMs have to make sure a Google account exists for the | 7334 * truth is Google so EMMs have to make sure a Google Account exists for the |
| 6543 * user. With "emmManaged" users, the EMM is in charge. | 7335 * user. With emmManaged users, the EMM is in charge. |
| 6544 */ | 7336 */ |
| 6545 core.String managementType; | 7337 core.String managementType; |
| 6546 /** | 7338 /** |
| 6547 * The user's primary email address, for example, "jsmith@example.com". Will | 7339 * The user's primary email address, for example, "jsmith@example.com". Will |
| 6548 * always be set for Google managed users and not set for EMM managed users. | 7340 * always be set for Google managed users and not set for EMM managed users. |
| 6549 */ | 7341 */ |
| 6550 core.String primaryEmail; | 7342 core.String primaryEmail; |
| 6551 | 7343 |
| 6552 User(); | 7344 User(); |
| 6553 | 7345 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6676 var _json = new core.Map(); | 7468 var _json = new core.Map(); |
| 6677 if (kind != null) { | 7469 if (kind != null) { |
| 6678 _json["kind"] = kind; | 7470 _json["kind"] = kind; |
| 6679 } | 7471 } |
| 6680 if (user != null) { | 7472 if (user != null) { |
| 6681 _json["user"] = user.map((value) => (value).toJson()).toList(); | 7473 _json["user"] = user.map((value) => (value).toJson()).toList(); |
| 6682 } | 7474 } |
| 6683 return _json; | 7475 return _json; |
| 6684 } | 7476 } |
| 6685 } | 7477 } |
| OLD | NEW |