ElementalInference / Client / get_question_set
get_question_set¶
- ElementalInference.Client.get_question_set(**kwargs)¶
Retrieves information about the specified question set at one version. By default, GetQuestionSet returns the DRAFT version. To retrieve a published version, specify questionSetVersion.
See also: AWS API Documentation
Request Syntax
response = client.get_question_set( id='string', questionSetVersion='string' )
- Parameters:
id (string) –
[REQUIRED]
The ID of the question set to retrieve.
questionSetVersion (string) – The version of the question set to retrieve: DRAFT or the number of a published version. If you don’t specify a version, Elemental Inference returns DRAFT.
- Return type:
dict
- Returns:
Response Syntax
{ 'yesNo': [ { 'name': 'string', 'question': 'string' }, ], 'yesNoPerOption': [ { 'name': 'string', 'question': 'string', 'options': [ { 'name': 'string', 'text': 'string' }, ] }, ], 'chooseOne': [ { 'name': 'string', 'question': 'string', 'options': [ { 'name': 'string', 'text': 'string' }, ] }, ], 'arn': 'string', 'id': 'string', 'name': 'string', 'version': 'string', 'description': 'string', 'latestVersion': 'string', 'sha256': 'string', 'references': [ 'string', ], 'tags': { 'string': 'string' } }
Response Structure
(dict) –
yesNo (list) –
The yesNo questions in this version. Elemental Inference doesn’t return this property if the version has no yesNo questions.
(dict) –
A question that you ask Elemental Inference, which answers with yes or no. You specify it in the yesNo array of a question set.
name (string) –
A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
question (string) –
The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters:
. , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).
yesNoPerOption (list) –
The yesNoPerOption questions in this version. Elemental Inference doesn’t return this property if the version has no yesNoPerOption questions.
(dict) –
A question that you ask Elemental Inference separately about each of its options. Elemental Inference answers yes or no for each option. Word the question so that it fits any of the options. For example, ask Is this overlay visible? with one option for each overlay. You specify it in the yesNoPerOption array of a question set.
name (string) –
A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
question (string) –
The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters:
. , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).options (list) –
The options that you ask the question about. You can specify from 1 to 50 options. Each option counts as one item toward the limit of 100 scored items in a version.
(dict) –
An option in a yesNoPerOption question or a chooseOne question.
name (string) –
A name for the option. The name must be unique among the options of the question. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
text (string) –
The text of the option. The text must be unique among the options of the question, ignoring case. The text can be up to 16 bytes, encoded in UTF-8. It can contain the same characters as the text of a question.
chooseOne (list) –
The chooseOne questions in this version. Elemental Inference doesn’t return this property if the version has no chooseOne questions.
(dict) –
A question that you ask Elemental Inference, which answers by choosing one of its options. You specify it in the chooseOne array of a question set.
name (string) –
A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
question (string) –
The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters:
. , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).options (list) –
The options that Elemental Inference chooses from. You can specify from 2 to 26 options. The question counts as one item toward the limit of 100 scored items in a version, regardless of how many options it has.
(dict) –
An option in a yesNoPerOption question or a chooseOne question.
name (string) –
A name for the option. The name must be unique among the options of the question. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
text (string) –
The text of the option. The text must be unique among the options of the question, ignoring case. The text can be up to 16 bytes, encoded in UTF-8. It can contain the same characters as the text of a question.
arn (string) –
The ARN of the question set.
id (string) –
The ID of the question set.
name (string) –
The name of the question set at this version. For a published version, this is the name that the question set had when the version was published.
version (string) –
The version that this response describes: 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.
latestVersion (string) –
The number of the highest version that you have published for this question set, even if you have since deleted that version. Elemental Inference doesn’t return this property if you haven’t published a version.
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. For DRAFT, you can specify this value in a CreateQuestionSetVersion request, so that Elemental Inference publishes DRAFT only if it hasn’t changed.
references (list) –
A list of feed IDs that reference this version of the question set. The list doesn’t include feeds that reference other versions.
(string) –
tags (dict) –
The tags associated with the question set.
(string) –
(string) –
Exceptions