text stringlengths 81 112k |
|---|
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'debug') and self.debug is not None:
_dict['debug'] = self.debug
if hasattr(self, 'restart') and self.restart is not None... |
Initialize a MessageOutput object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a MessageOutput object from a json dictionary."""
args = {}
if 'generic' in _dict:
args['generic'] = [
DialogRuntimeResponseGeneric._from_dict(x)
for x... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'generic') and self.generic is not None:
_dict['generic'] = [x._to_dict() for x in self.generic]
if hasattr(self, 'intent... |
Initialize a MessageOutputDebug object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a MessageOutputDebug object from a json dictionary."""
args = {}
if 'nodes_visited' in _dict:
args['nodes_visited'] = [
DialogNodesVisited._from_dict(x)
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'nodes_visited') and self.nodes_visited is not None:
_dict['nodes_visited'] = [x._to_dict() for x in self.nodes_visited]
... |
Initialize a MessageResponse object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a MessageResponse object from a json dictionary."""
args = {}
if 'output' in _dict:
args['output'] = MessageOutput._from_dict(_dict.get('output'))
else:
raise Va... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'output') and self.output is not None:
_dict['output'] = self.output._to_dict()
if hasattr(self, 'context') and self.cont... |
Initialize a RuntimeEntity object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a RuntimeEntity object from a json dictionary."""
args = {}
if 'entity' in _dict:
args['entity'] = _dict.get('entity')
else:
raise ValueError(
'Req... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'entity') and self.entity is not None:
_dict['entity'] = self.entity
if hasattr(self, 'location') and self.location is no... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'intent') and self.intent is not None:
_dict['intent'] = self.intent
if hasattr(self, 'confidence') and self.confidence i... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'session_id') and self.session_id is not None:
_dict['session_id'] = self.session_id
return _dict |
Analyze text.
Analyzes text, HTML, or a public webpage for the following features:
- Categories
- Concepts
- Emotion
- Entities
- Keywords
- Metadata
- Relations
- Semantic roles
- Sentiment
- Syntax (Experimental).
:param... |
List models.
Lists Watson Knowledge Studio [custom
models](https://cloud.ibm.com/docs/services/natural-language-understanding/customizing.html)
that are deployed to your Natural Language Understanding service.
:param dict headers: A `dict` containing the request headers
:return... |
Initialize a AnalysisResults object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a AnalysisResults object from a json dictionary."""
args = {}
if 'language' in _dict:
args['language'] = _dict.get('language')
if 'analyzed_text' in _dict:
args[... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'language') and self.language is not None:
_dict['language'] = self.language
if hasattr(self, 'analyzed_text') and self.a... |
Initialize a AnalysisResultsMetadata object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a AnalysisResultsMetadata object from a json dictionary."""
args = {}
if 'authors' in _dict:
args['authors'] = [
Author._from_dict(x) for x in (_dict.get('au... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'authors') and self.authors is not None:
_dict['authors'] = [x._to_dict() for x in self.authors]
if hasattr(self,
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'features') and self.features is not None:
_dict['features'] = self.features
if hasattr(self,
'text_ch... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'name') and self.name is not None:
_dict['name'] = self.name
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'limit') and self.limit is not None:
_dict['limit'] = self.limit
if hasattr(self, 'model') and self.model is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'label') and self.label is not None:
_dict['label'] = self.label
if hasattr(self, 'score') and self.score is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'limit') and self.limit is not None:
_dict['limit'] = self.limit
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'relevance') and self.relevance is not None... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'deleted') and self.deleted is not None:
_dict['deleted'] = self.deleted
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'name') and self.name is not None:
_dict['name'] = self.name
if hasattr(self,
'dbpedia_resource') and ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'emotion') and self.emotion is not None:
_dict['emotion'] = self.emotion._to_dict()
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'document') and self.document is not None:
_dict['document'] = self.document
if hasattr(self, 'targets') and self.targets... |
Initialize a EmotionResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a EmotionResult object from a json dictionary."""
args = {}
if 'document' in _dict:
args['document'] = DocumentEmotionResults._from_dict(
_dict.get('document'))
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'anger') and self.anger is not None:
_dict['anger'] = self.anger
if hasattr(self, 'disgust') and self.disgust is not None... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'limit') and self.limit is not None:
_dict['limit'] = self.limit
if hasattr(self, 'mentions') and self.mentions is not No... |
Initialize a EntitiesResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a EntitiesResult object from a json dictionary."""
args = {}
if 'type' in _dict:
args['type'] = _dict.get('type')
if 'text' in _dict:
args['text'] = _dict.get('te... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'type') and self.type is not None:
_dict['type'] = self.type
if hasattr(self, 'text') and self.text is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'score') and self.score is not None:
_dict['score'] = self.score
return _dict |
Initialize a Features object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Features object from a json dictionary."""
args = {}
if 'concepts' in _dict:
args['concepts'] = ConceptsOptions._from_dict(_dict.get('concepts'))
if 'emotion' in _dict:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'concepts') and self.concepts is not None:
_dict['concepts'] = self.concepts._to_dict()
if hasattr(self, 'emotion') and s... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'link') and self.link is not None:
_dict['link'] = self.link
return _dict |
Initialize a KeywordsResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a KeywordsResult object from a json dictionary."""
args = {}
if 'count' in _dict:
args['count'] = _dict.get('count')
if 'relevance' in _dict:
args['relevance'] = ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'count') and self.count is not None:
_dict['count'] = self.count
if hasattr(self, 'relevance') and self.relevance is not ... |
Initialize a ListModelsResults object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a ListModelsResults object from a json dictionary."""
args = {}
if 'models' in _dict:
args['models'] = [
Model._from_dict(x) for x in (_dict.get('models'))
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'models') and self.models is not None:
_dict['models'] = [x._to_dict() for x in self.models]
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'status') and self.status is not None:
_dict['status'] = self.status
if hasattr(self, 'model_id') and self.model_id is no... |
Initialize a RelationArgument object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a RelationArgument object from a json dictionary."""
args = {}
if 'entities' in _dict:
args['entities'] = [
RelationEntity._from_dict(x) for x in (_dict.get('entiti... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'entities') and self.entities is not None:
_dict['entities'] = [x._to_dict() for x in self.entities]
if hasattr(self, 'lo... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'model') and self.model is not None:
_dict['model'] = self.model
return _dict |
Initialize a RelationsResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a RelationsResult object from a json dictionary."""
args = {}
if 'score' in _dict:
args['score'] = _dict.get('score')
if 'sentence' in _dict:
args['sentence'] = ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'score') and self.score is not None:
_dict['score'] = self.score
if hasattr(self, 'sentence') and self.sentence is not No... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'type') and self.type is not None:
_dict['type'] = self.type
if hasattr(self, 'text') and self.text is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'limit') and self.limit is not None:
_dict['limit'] = self.limit
if hasattr(self, 'keywords') and self.keywords is not No... |
Initialize a SemanticRolesResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SemanticRolesResult object from a json dictionary."""
args = {}
if 'sentence' in _dict:
args['sentence'] = _dict.get('sentence')
if 'subject' in _dict:
arg... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'sentence') and self.sentence is not None:
_dict['sentence'] = self.sentence
if hasattr(self, 'subject') and self.subject... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'normalized') and self.normalized is not No... |
Initialize a SemanticRolesResultObject object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SemanticRolesResultObject object from a json dictionary."""
args = {}
if 'text' in _dict:
args['text'] = _dict.get('text')
if 'keywords' in _dict:
ar... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'keywords') and self.keywords is not None:
... |
Initialize a SemanticRolesResultSubject object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SemanticRolesResultSubject object from a json dictionary."""
args = {}
if 'text' in _dict:
args['text'] = _dict.get('text')
if 'entities' in _dict:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'entities') and self.entities is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'tense') and self.tense is not None:
... |
Initialize a SentimentResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SentimentResult object from a json dictionary."""
args = {}
if 'document' in _dict:
args['document'] = DocumentSentimentResults._from_dict(
_dict.get('document'))
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'tokens') and self.tokens is not None:
_dict['tokens'] = self.tokens._to_dict()
if hasattr(self, 'sentences') and self.se... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'lemma') and self.lemma is not None:
_dict['lemma'] = self.lemma
if hasattr(self, 'part_of_speech') and self.part_of_spee... |
Initialize a SyntaxResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SyntaxResult object from a json dictionary."""
args = {}
if 'tokens' in _dict:
args['tokens'] = [
TokenResult._from_dict(x) for x in (_dict.get('tokens'))
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'emotion') and self.emotion is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'score') and self.score is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'text') and self.text is not None:
_dict['text'] = self.text
if hasattr(self, 'part_of_speech') and self.part_of_speech i... |
Update a configuration.
Replaces an existing configuration.
* Completely replaces the original configuration.
* The **configuration_id**, **updated**, and **created** fields are accepted in
the request, but they are ignored, and an error is not generated. It is also
acceptab... |
Create or update expansion list.
Create or replace the Expansion list for this collection. The maximum number of
expanded terms per collection is `500`.
The current expansion list is replaced with the uploaded content.
:param str environment_id: The ID of the environment.
:para... |
Create stopword list.
Upload a custom stopword list to use with the specified collection.
:param str environment_id: The ID of the environment.
:param str collection_id: The ID of the collection.
:param file stopword_file: The content of the stopword list to ingest.
:param str ... |
Long environment queries.
Complex queries might be too long for a standard method query. By using this
method, you can construct longer queries. However, these queries may take longer
to complete than the standard method. For details, see the [Discovery service
documentation](https://cl... |
Knowledge Graph entity query.
See the [Knowledge Graph
documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-kg#kg)
for more details.
:param str environment_id: The ID of the environment.
:param str collection_id: The ID of the collection.
:param ... |
Knowledge Graph relationship query.
See the [Knowledge Graph
documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-kg#kg)
for more details.
:param str environment_id: The ID of the environment.
:param str collection_id: The ID of the collection.
:... |
Add query to training data.
Adds a query to the training data for this collection. The query can contain a
filter and natural language query.
:param str environment_id: The ID of the environment.
:param str collection_id: The ID of the collection.
:param str natural_language_qu... |
Add example to training data query.
Adds a example to this training data query.
:param str environment_id: The ID of the environment.
:param str collection_id: The ID of the collection.
:param str query_id: The ID of the query used for training.
:param str document_id: The docu... |
Create event.
The **Events** API can be used to create log entries that are associated with
specific queries. For example, you can record which documents in the results set
were \"clicked\" by a user and when that click occured.
:param str type: The event type to be created.
:p... |
Percentage of queries with an associated event.
The percentage of queries using the **natural_language_query** parameter that have
a corresponding \"click\" event over a specified time window. This metric
requires having integrated event tracking in your application using the **Events**
... |
Search the query and event log.
Searches the query and event log to find query sessions that match the specified
criteria. Searching the **logs** endpoint uses the standard Discovery query syntax
for the parameters that are supported.
:param str filter: A cacheable query that excludes ... |
Create credentials.
Creates a set of credentials to connect to a remote source. Created credentials
are used in a configuration to associate a collection with the remote source.
**Note:** All credentials are sent over an encrypted connection and encrypted at
rest.
:param str en... |
Initialize a AggregationResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a AggregationResult object from a json dictionary."""
args = {}
if 'key' in _dict:
args['key'] = _dict.get('key')
if 'matching_results' in _dict:
args['matchin... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'key') and self.key is not None:
_dict['key'] = self.key
if hasattr(self,
'matching_results') and self... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'field') and self.field is not None:
_dict['field'] = self.field
if hasattr(self, 'value') and self.value is not None:
... |
Initialize a Collection object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Collection object from a json dictionary."""
args = {}
if 'collection_id' in _dict:
args['collection_id'] = _dict.get('collection_id')
if 'name' in _dict:
args['nam... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'collection_id') and self.collection_id is not None:
_dict['collection_id'] = self.collection_id
if hasattr(self, 'name')... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'used_bytes') and self.used_bytes is not None:
_dict['used_bytes'] = self.used_bytes
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'available') and self.available is not None:
_dict['available'] = self.available
if hasattr(self,
'max... |
Initialize a Configuration object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Configuration object from a json dictionary."""
args = {}
if 'configuration_id' in _dict:
args['configuration_id'] = _dict.get('configuration_id')
if 'name' in _dict:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self,
'configuration_id') and self.configuration_id is not None:
_dict['configuration_id'] = self.configuration_id
... |
Initialize a Conversions object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Conversions object from a json dictionary."""
args = {}
if 'pdf' in _dict:
args['pdf'] = PdfSettings._from_dict(_dict.get('pdf'))
if 'word' in _dict:
args['word'] ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'pdf') and self.pdf is not None:
_dict['pdf'] = self.pdf._to_dict()
if hasattr(self, 'word') and self.word is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'type') and self.type is not None:
_dict['type'] = self.type
if hasattr(self, 'data') and self.data is not None:
... |
Initialize a CredentialDetails object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a CredentialDetails object from a json dictionary."""
args = {}
if 'credential_type' in _dict:
args['credential_type'] = _dict.get('credential_type')
if 'client_id' in _di... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self,
'credential_type') and self.credential_type is not None:
_dict['credential_type'] = self.credential_type
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'credential_id') and self.credential_id is not None:
_dict['credential_id'] = self.credential_id
if hasattr(self, 'source... |
Initialize a CredentialsList object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a CredentialsList object from a json dictionary."""
args = {}
if 'credentials' in _dict:
args['credentials'] = [
Credentials._from_dict(x) for x in (_dict.get('crede... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'credentials') and self.credentials is not None:
_dict['credentials'] = [x._to_dict() for x in self.credentials]
return _... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'collection_id') and self.collection_id is not None:
_dict['collection_id'] = self.collection_id
if hasattr(self, 'status... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self,
'configuration_id') and self.configuration_id is not None:
_dict['configuration_id'] = self.configuration_id
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'credential_id') and self.credential_id is not None:
_dict['credential_id'] = self.credential_id
if hasattr(self, 'status... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'document_id') and self.document_id is not None:
_dict['document_id'] = self.document_id
if hasattr(self, 'status') and s... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'environment_id') and self.environment_id is not None:
_dict['environment_id'] = self.environment_id
if hasattr(self, 'st... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'used_bytes') and self.used_bytes is not None:
_dict['used_bytes'] = self.used_bytes
if hasattr(self, 'maximum_allowed_by... |
Initialize a DocumentAccepted object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a DocumentAccepted object from a json dictionary."""
args = {}
if 'document_id' in _dict:
args['document_id'] = _dict.get('document_id')
if 'status' in _dict:
a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.