get method
Returns metadata of the specified managed folder.
Request parameters:
bucket - Name of the bucket containing the managed folder.
managedFolder - The managed folder name/path.
ifMetagenerationMatch - Makes the return of the managed folder metadata
conditional on whether the managed folder's current metageneration matches
the given value.
ifMetagenerationNotMatch - Makes the return of the managed folder
metadata conditional on whether the managed folder's current
metageneration does not match the given value.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a ManagedFolder.
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<ManagedFolder> get(
  core.String bucket,
  core.String managedFolder, {
  core.String? ifMetagenerationMatch,
  core.String? ifMetagenerationNotMatch,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (ifMetagenerationMatch != null)
      'ifMetagenerationMatch': [ifMetagenerationMatch],
    if (ifMetagenerationNotMatch != null)
      'ifMetagenerationNotMatch': [ifMetagenerationNotMatch],
    if ($fields != null) 'fields': [$fields],
  };
  final url_ =
      'b/' +
      commons.escapeVariable('$bucket') +
      '/managedFolders/' +
      commons.escapeVariable('$managedFolder');
  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return ManagedFolder.fromJson(
    response_ as core.Map<core.String, core.dynamic>,
  );
}