patch method
- GoogleCloudApigeeV1ApimServiceExtension request,
- String name, {
- bool? allowMissing,
- String? updateMask,
- String? $fields,
Updates an APIM service extension in an organization.
request - The metadata request object.
Request parameters:
name - Identifier. unique name of the APIM service extension. The name
must conform with RFC-1034, is restricted to lower-cased letters, numbers
and hyphens, and can have a maximum length of 63 characters. Additionally,
the first character must be a letter and the last a letter or a number.
Value must have pattern
^organizations/\[^/\]+/apimServiceExtensions/\[^/\]+$.
allowMissing - Optional. If set to true, and the service extension is
not found, a new service extension will be created. In this situation,
update_mask is ignored.
updateMask - Optional. The list of fields to update.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleLongrunningOperation.
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<GoogleLongrunningOperation> patch(
GoogleCloudApigeeV1ApimServiceExtension 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>>{
'allowMissing': ?allowMissing == null ? null : ['${allowMissing}'],
'updateMask': ?updateMask == null ? null : [updateMask],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$name');
final response_ = await _requester.request(
url_,
'PATCH',
body: body_,
queryParams: queryParams_,
);
return GoogleLongrunningOperation.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}