patch method
- GoogleCloudDatacatalogLineageV1Process request,
- String name, {
- bool? allowMissing,
- String? updateMask,
- String? $fields,
Updates a process.
request
- The metadata request object.
Request parameters:
name
- Immutable. The resource name of the lineage process. Format:
projects/{project}/locations/{location}/processes/{process}
. Can be
specified or auto-assigned. {process} must be not longer than 200
characters and only contain characters in a set: a-zA-Z0-9_-:.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/processes/\[^/\]+$
.
allowMissing
- If set to true and the process is not found, the request
inserts it.
updateMask
- The list of fields to update. Currently not used. The whole
message is updated.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudDatacatalogLineageV1Process.
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<GoogleCloudDatacatalogLineageV1Process> patch(
GoogleCloudDatacatalogLineageV1Process request,
core.String name, {
core.bool? allowMissing,
core.String? updateMask,
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
if (allowMissing != null) 'allowMissing': ['${allowMissing}'],
if (updateMask != null) 'updateMask': [updateMask],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$name');
final response_ = await _requester.request(
url_,
'PATCH',
body: body_,
queryParams: queryParams_,
);
return GoogleCloudDatacatalogLineageV1Process.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}