deleteCoreNetworkPolicyVersion method
Deletes a policy version from a core network. You can't delete the current LIVE policy.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter coreNetworkId :
The ID of a core network for the deleted policy.
Parameter policyVersionId :
The version ID of the deleted policy.
Implementation
Future<DeleteCoreNetworkPolicyVersionResponse>
deleteCoreNetworkPolicyVersion({
required String coreNetworkId,
required int policyVersionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/core-networks/${Uri.encodeComponent(coreNetworkId)}/core-network-policy-versions/${Uri.encodeComponent(policyVersionId.toString())}',
exceptionFnMap: _exceptionFns,
);
return DeleteCoreNetworkPolicyVersionResponse.fromJson(response);
}