updateClientCertificate method
Future<ClientCertificate>
updateClientCertificate({
- required String clientCertificateId,
- List<
PatchOperation> ? patchOperations,
Changes information about an ClientCertificate resource.
May throw UnauthorizedException. May throw TooManyRequestsException. May throw BadRequestException. May throw NotFoundException.
Parameter clientCertificateId
:
Required
The identifier of the ClientCertificate resource to be
updated.
Parameter patchOperations
:
A list of update operations to be applied to the specified resource and in
the order specified in this list.
Implementation
Future<ClientCertificate> updateClientCertificate({
required String clientCertificateId,
List<PatchOperation>? patchOperations,
}) async {
ArgumentError.checkNotNull(clientCertificateId, 'clientCertificateId');
final $payload = <String, dynamic>{
if (patchOperations != null) 'patchOperations': patchOperations,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/clientcertificates/${Uri.encodeComponent(clientCertificateId)}',
exceptionFnMap: _exceptionFns,
);
return ClientCertificate.fromJson(response);
}