findInstalledAppProfiles method
Generate report of managed Chrome profiles that have a specified app installed.
Request parameters:
customer - Required. Customer id or "my_customer" to use the customer
associated to the account making the request.
Value must have pattern ^customers/\[^/\]+$.
appId - Required. Unique identifier of the app. For Chrome apps and
extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl).
For Android apps, the package name (e.g. com.evernote).
appType - Type of the app. Optional. If not provided, an app type will
be inferred from the format of the app ID.
Possible string values are:
- "APP_TYPE_UNSPECIFIED" : App type not specified.
- "EXTENSION" : Chrome extension.
- "APP" : Chrome app.
- "THEME" : Chrome theme.
- "HOSTED_APP" : Chrome hosted app.
- "ANDROID_APP" : ARC++ app.
filter - Optional. Query string to filter results, AND-separated fields
in EBNF syntax. Note: OR operations are not supported in this filter.
Supported filter fields: * last_active_date
orderBy - Optional. Field used to order results. Supported order by
fields: * email * profile_id * profile_permanent_id
orgUnitId - Optional. The ID of the organizational unit.
pageSize - Optional. Maximum number of results to return. Maximum and
default are 100.
pageToken - Optional. Token to specify the page of the request to be
returned.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleChromeManagementV1FindInstalledAppProfilesResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleChromeManagementV1FindInstalledAppProfilesResponse>
findInstalledAppProfiles(
core.String customer, {
core.String? appId,
core.String? appType,
core.String? filter,
core.String? orderBy,
core.String? orgUnitId,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'appId': ?appId == null ? null : [appId],
'appType': ?appType == null ? null : [appType],
'filter': ?filter == null ? null : [filter],
'orderBy': ?orderBy == null ? null : [orderBy],
'orgUnitId': ?orgUnitId == null ? null : [orgUnitId],
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'fields': ?$fields == null ? null : [$fields],
};
final url_ =
'v1/' +
core.Uri.encodeFull('$customer') +
'/reports:findInstalledAppProfiles';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleChromeManagementV1FindInstalledAppProfilesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}