list method

Future<ListSchemaRegistriesResponse> list(
  1. String parent, {
  2. String? view,
  3. String? $fields,
})

List schema registries.

Request parameters:

parent - Required. The parent whose schema registry instances are to be listed. Structured like: projects/{project}/locations/{location} Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$.

view - Optional. Specifies the view to return for the schema registry instances. If not specified, the default view is SCHEMA_REGISTRY_VIEW_BASIC. Possible string values are:

  • "SCHEMA_REGISTRY_VIEW_UNSPECIFIED" : The unset value. The API will default to SCHEMA_REGISTRY_VIEW_BASIC.
  • "SCHEMA_REGISTRY_VIEW_BASIC" : If SchemaRegistryView is not specified, this is the default value. Returns only the name of the schema registry. The contexts associated with it are not included.
  • "SCHEMA_REGISTRY_VIEW_FULL" : Returns the name of the schema registry and all the contexts associated with it.

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

Completes with a ListSchemaRegistriesResponse.

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

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

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