export method
Exports taxonomies in the requested type and returns them, including their policy tags.
The requested taxonomies must belong to the same project. This method
generates SerializedTaxonomy
protocol buffers with nested policy tags
that can be used as input for ImportTaxonomies
calls.
Request parameters:
parent
- Required. Resource name of the project that the exported
taxonomies belong to.
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$
.
serializedTaxonomies
- Serialized export taxonomies that contain all the
policy tags as nested protocol buffers.
taxonomies
- Required. Resource names of the taxonomies to export.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudDatacatalogV1ExportTaxonomiesResponse.
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<GoogleCloudDatacatalogV1ExportTaxonomiesResponse> 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_ = 'v1/' + core.Uri.encodeFull('$parent') + '/taxonomies:export';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudDatacatalogV1ExportTaxonomiesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}