list method
Lists all available machine types (tiers) for Cloud SQL, for example,
db-custom-1-3840
.
For related information, see [Pricing](/sql/pricing).
Request parameters:
project
- Project ID of the project for which to list tiers.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a TiersListResponse.
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<TiersListResponse> list(
core.String project, {
core.String? $fields,
}) async {
final _queryParams = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final _url =
'sql/v1beta4/projects/' + commons.escapeVariable('$project') + '/tiers';
final _response = await _requester.request(
_url,
'GET',
queryParams: _queryParams,
);
return TiersListResponse.fromJson(
_response as core.Map<core.String, core.dynamic>);
}