ElementalInference / Client / list_question_set_versions

list_question_set_versions

ElementalInference.Client.list_question_set_versions(**kwargs)

Lists the versions of the specified question set. The list starts with the DRAFT version, followed by the published versions from the highest version number to the lowest. The list doesn’t include deleted versions.

The response doesn’t include the questions in each version. To retrieve them, use GetQuestionSet and specify questionSetVersion.

See also: AWS API Documentation

Request Syntax

response = client.list_question_set_versions(
    id='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • id (string) –

    [REQUIRED]

    The ID of the question set whose versions you want to list.

  • maxResults (integer) – The maximum number of results to return per API request. Valid range: 1 to 100.

  • nextToken (string) – The token that identifies the next batch of results to return.

Return type:

dict

Returns:

Response Syntax

{
    'versions': [
        {
            'version': 'string',
            'description': 'string',
            'sha256': 'string',
            'lastModifiedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • versions (list) –

      A list of QuestionSetVersionSummary objects.

      • (dict) –

        Contains summary information about one version of a question set. Used in the ListQuestionSetVersions response.

        • version (string) –

          The version: DRAFT or the number of a published version.

        • description (string) –

          The description that you specified when you published this version. Elemental Inference doesn’t return this property for DRAFT, or for a version that you published without a description.

        • sha256 (string) –

          The SHA-256 hash of this version, as 64 lowercase hexadecimal characters. The hash covers the name of the question set and its questions at this version.

        • lastModifiedAt (datetime) –

          For DRAFT, the time when you created the question set or last updated DRAFT. For a published version, the time when you published it.

    • nextToken (string) –

      The token to use to retrieve the next batch of results.

Exceptions

  • ElementalInference.Client.exceptions.ValidationException

  • ElementalInference.Client.exceptions.ResourceNotFoundException

  • ElementalInference.Client.exceptions.InternalServerErrorException

  • ElementalInference.Client.exceptions.AccessDeniedException

  • ElementalInference.Client.exceptions.TooManyRequestException