audit method
- GoogleAnalyticsAdminV1alphaAuditUserLinksRequest request,
- String parent, {
- String? $fields,
Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles.
If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.
request
- The metadata request object.
Request parameters:
parent
- Required. Example format: accounts/1234
Value must have pattern ^properties/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.
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<GoogleAnalyticsAdminV1alphaAuditUserLinksResponse> audit(
GoogleAnalyticsAdminV1alphaAuditUserLinksRequest request,
core.String parent, {
core.String? $fields,
}) async {
final _body = convert.json.encode(request.toJson());
final _queryParams = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final _url =
'v1alpha/' + core.Uri.encodeFull('$parent') + '/userLinks:audit';
final _response = await _requester.request(
_url,
'POST',
body: _body,
queryParams: _queryParams,
);
return GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.fromJson(
_response as core.Map<core.String, core.dynamic>);
}