export method

Future<GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse> export(
  1. String parent, {
  2. bool? serializedTaxonomies,
  3. List<String>? taxonomies,
  4. String? $fields,
})

Exports all taxonomies and their policy tags in a project.

This method generates SerializedTaxonomy protos with nested policy tags that can be used as an input for future ImportTaxonomies calls.

Request parameters:

parent - Required. Resource name of the project that taxonomies to be exported will share. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$.

serializedTaxonomies - Export taxonomies as serialized taxonomies.

taxonomies - Required. Resource names of the taxonomies to be exported.

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

Completes with a GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse.

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<GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse> export(
  core.String parent, {
  core.bool? serializedTaxonomies,
  core.List<core.String>? taxonomies,
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if (serializedTaxonomies != null)
      'serializedTaxonomies': ['${serializedTaxonomies}'],
    if (taxonomies != null) 'taxonomies': taxonomies,
    if ($fields != null) 'fields': [$fields],
  };

  final _url =
      'v1beta1/' + core.Uri.encodeFull('$parent') + '/taxonomies:export';

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