create method
- GoogleCloudDatacatalogV1EntryGroup request,
- String parent, {
- String? entryGroupId,
- String? $fields,
Creates an entry group.
An entry group contains logically related entries together with [Cloud
Identity and Access Management](/data-catalog/docs/concepts/iam)
policies. These policies specify users who can create, edit, and view
entries within entry groups. Data Catalog automatically creates entry
groups with names that start with the @
symbol for the following
resources: * BigQuery entries (@bigquery
) * Pub/Sub topics (@pubsub
) *
Dataproc Metastore services (@dataproc_metastore_{SERVICE_NAME_HASH}
)
You can create your own entry groups for Cloud Storage fileset entries and
custom entries together with the corresponding IAM policies. User-created
entry groups can't contain the @
symbol, it is reserved for
automatically created groups. Entry groups, like entries, can be searched.
A maximum of 10,000 entry groups may be created per organization across
all locations. You must enable the Data Catalog API in the project
identified by the parent
parameter. For more information, see
Data Catalog resource project.
request
- The metadata request object.
Request parameters:
parent
- Required. The names of the project and location that the new
entry group belongs to. Note: The entry group itself and its child
resources might not be stored in the location specified in its name.
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$
.
entryGroupId
- Required. The ID of the entry group to create. The ID
must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
must start with a letter or underscore. The maximum size is 64 bytes when
encoded in UTF-8.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudDatacatalogV1EntryGroup.
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<GoogleCloudDatacatalogV1EntryGroup> create(
GoogleCloudDatacatalogV1EntryGroup request,
core.String parent, {
core.String? entryGroupId,
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
if (entryGroupId != null) 'entryGroupId': [entryGroupId],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/entryGroups';
final response_ = await _requester.request(
url_,
'POST',
body: body_,
queryParams: queryParams_,
);
return GoogleCloudDatacatalogV1EntryGroup.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}