removeAttachmentRoutingPolicyLabel method

Future<RemoveAttachmentRoutingPolicyLabelResponse> removeAttachmentRoutingPolicyLabel({
  1. required String attachmentId,
  2. required String coreNetworkId,
})

Removes a routing policy label from an attachment.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter attachmentId : The ID of the attachment to remove the routing policy label from.

Parameter coreNetworkId : The ID of the core network containing the attachment.

Implementation

Future<RemoveAttachmentRoutingPolicyLabelResponse>
    removeAttachmentRoutingPolicyLabel({
  required String attachmentId,
  required String coreNetworkId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/routing-policy-label/core-network/${Uri.encodeComponent(coreNetworkId)}/attachment/${Uri.encodeComponent(attachmentId)}',
    exceptionFnMap: _exceptionFns,
  );
  return RemoveAttachmentRoutingPolicyLabelResponse.fromJson(response);
}