list method

Future<FlagsListResponse> list({
  1. String? databaseVersion,
  2. String? $fields,
})

Lists all available database flags for Cloud SQL instances.

Request parameters:

databaseVersion - Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.

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

Completes with a FlagsListResponse.

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<FlagsListResponse> list({
  core.String? databaseVersion,
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if (databaseVersion != null) 'databaseVersion': [databaseVersion],
    if ($fields != null) 'fields': [$fields],
  };

  const _url = 'sql/v1beta4/flags';

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return FlagsListResponse.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}