patch method
- GoogleCloudApigeeV1SecurityAction request,
- String name, {
- String? updateMask,
- String? $fields,
Update a SecurityAction.
request - The metadata request object.
Request parameters:
name - Immutable. This field is ignored during creation as per AIP-133.
Please set the security_action_id field in the
CreateSecurityActionRequest when creating a new SecurityAction. Format:
organizations/{org}/environments/{env}/securityActions/{security_action}
Value must have pattern
^organizations/\[^/\]+/environments/\[^/\]+/securityActions/\[^/\]+$.
updateMask - Optional. The list of fields to update. Valid fields to
update are description, state, allow, deny, and flag,
expire_time, and ttl, api_proxies, and condition_config.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudApigeeV1SecurityAction.
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<GoogleCloudApigeeV1SecurityAction> patch(
GoogleCloudApigeeV1SecurityAction request,
core.String name, {
core.String? updateMask,
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
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 GoogleCloudApigeeV1SecurityAction.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}