getSecuritySettings method

Future<SecuritySettings> getSecuritySettings(
  1. String name, {
  2. String? readMask,
  3. String? $fields,
})

Get Security Settings

Request parameters:

name - Required. The security settings to retrieve. Format: groups/{group_id}/securitySettings Value must have pattern ^groups/\[^/\]+/securitySettings$.

readMask - Field-level read mask of which fields to return. "*" returns all fields. If not specified, all fields will be returned. May only contain the following field: member_restriction.

$fields - Selector specifying which fields to include in a partial response.

Completes with a SecuritySettings.

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<SecuritySettings> getSecuritySettings(
  core.String name, {
  core.String? readMask,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (readMask != null) 'readMask': [readMask],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$name');

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return SecuritySettings.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}