Class CompleteImportAutoTestConfigurationCommand

This route is for PSEF -> APIv2, and only allows service users. It is used to copy assignments (aka import).

Use a bare-bones client and the command you need to make an API call.

import { Apiv2Client, CompleteImportAutoTestConfigurationCommand } from "@codegrade/apiv2-client"; // ES Modules import
// const { Apiv2Client, CompleteImportAutoTestConfigurationCommand } = require("@codegrade/apiv2-client"); // CommonJS import
const client = new Apiv2Client(config);
const input = { // CompleteImportAutoTestConfigurationRequest
assignmentId: "STRING_VALUE", // required
dstAssignmentId: "STRING_VALUE", // required
rubricConfiguration: { // CompleteImportAutoTestConfigurationRubricConfiguration
mapping: [ // RubricMappingList // required
{ // RubricMapping
sourceRubricRowId: Number("int"), // required
destinationRubricRowId: Number("int"), // required
},
],
lockId: "STRING_VALUE", // required
},
};
const command = new CompleteImportAutoTestConfigurationCommand(input);
const response = await client.send(command);
// {};

CompleteImportAutoTestConfigurationCommandInput

InternalServerError (server fault) An internal failure at the fault of the server.

BadRequestError (client fault) An error at the fault of the client sending invalid input.

NotFoundError (client fault) An error due to the client attempting to access a missing resource.

NotAuthorizedError (client fault) An error due to the client not being authorized to access the resource.

NotAuthenticatedError (client fault) An error due to the client not being authenticated.

ValidationError (client fault) A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.

Apiv2ServiceException

Base exception class for all service exceptions from Apiv2 service.

Hierarchy

Constructors

  • Returns CompleteImportAutoTestConfigurationCommand

  • Parameters

    Returns CompleteImportAutoTestConfigurationCommand

Properties

schema?: OperationSchema

This should be OperationSchema from @smithy/types, but would create problems with the client transform type adaptors.

__types: {
    api: { input: CompleteImportAutoTestConfigurationRequest; output: {} };
    sdk: {
        input: CompleteImportAutoTestConfigurationCommandInput;
        output: CompleteImportAutoTestConfigurationCommandOutput;
    };
}

type navigation helper, not in runtime.

Methods

  • Internal

    Parameters

    • clientStack: MiddlewareStack<any, any>
    • configuration: { logger: Logger; requestHandler: RequestHandler<any, any, any> }
    • options: any
    • __namedParameters: ResolveMiddlewareContextArgs

    Returns InitializeHandler<any, CompleteImportAutoTestConfigurationCommandOutput>

  • Returns EndpointParameterInstructions