get method

Future<TeamDrive> get(
  1. String teamDriveId, {
  2. bool? useDomainAdminAccess,
  3. String? $fields,
})

Deprecated: Use drives.get instead.

Request parameters:

teamDriveId - The ID of the Team Drive

useDomainAdminAccess - Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.

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

Completes with a TeamDrive.

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<TeamDrive> get(
  core.String teamDriveId, {
  core.bool? useDomainAdminAccess,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (useDomainAdminAccess != null)
      'useDomainAdminAccess': ['${useDomainAdminAccess}'],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'teamdrives/' + commons.escapeVariable('$teamDriveId');

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