update method
Update image access control. On access control change, all copies of the image are purged from Cache.
Documentation: https://api.cloudflare.com/#cloudflare-images-update-image
Implementation
Future<CloudflareHTTPResponse<CloudflareImage?>> update({
/// Only [id], [requireSignedURLs] and [meta] properties will be taken into
/// account when updating image.
required CloudflareImage image,
}) async {
assert(!isBasic, RestAPIService.authorizedRequestAssertMessage);
final response = await parseResponse(service.update(
id: image.id,
requireSignedURLs: image.requireSignedURLs,
metadata: image.meta?.map(
(key, value) => MapEntry<String, dynamic>(key.toString(), value)),
));
return response;
}