INSTRUCTION
stringlengths
1
8.43k
RESPONSE
stringlengths
75
104k
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 self.dbpedia_resource is not None: _dic...
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 is not None: _dict['targets'] = self.t...
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')) if 'targets' in _dict: args['targets'] = [ ...
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: _dict['disgust'] = self.disgust ...
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 None: _dict['mentions'] = self.mentions ...
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('text') if 'relevance' in _dict: args['rele...
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: _dict['text'] = self.text if hasattr(se...
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: args['emotion'] = EmotionOptions._from_dict(_dict.g...
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 self.emotion is not None: _dict['emotion...
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'] = _dict.get('relevance') if 'text' in _dict: ...
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 None: _dict['relevance'] = self.relevan...
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 cls(**args)
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 not None: _dict['model_id'] = self.model_...
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('entities')) ] if 'location' in _dict: ...
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, 'location') and self.location 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, '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'] = _dict.get('sentence') if 'type' in _dict: ...
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 None: _dict['sentence'] = self.sentence ...
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: _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, '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 None: _dict['keywords'] = self.keywords ...
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: args['subject'] = SemanticRolesResultSubject._from_dict( ...
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 is not None: _dict['subject'] = self.s...
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 None: _dict['normalized'] = self.normaliz...
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: args['keywords'] = [ SemanticRolesKeyword._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, 'text') and self.text is not None: _dict['text'] = self.text if hasattr(self, 'keywords') and self.keywords is not None: _dict['keywords'] = [x._to_dict() for x...
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: args['entities'] = [ SemanticRolesEntity._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, 'text') and self.text is not None: _dict['text'] = self.text if hasattr(self, 'entities') and self.entities is not None: _dict['entities'] = [x._to_dict() for x...
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: _dict['tense'] = self.tense return _d...
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')) if 'targets' in _dict: args['targets'] = ...
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.sentences is not None: _dict['sentences']...
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_speech is not None: _dict['part_of_speech']...
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')) ] if 'sentences' in _dict: args['sent...
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: _dict['emotion'] = self.emotion._to_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, 'score') and self.score is not None: _dict['score'] = self.score return _d...
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 is not None: _dict['part_of_speech'] = s...
Update a configuration.
def update_configuration(self, environment_id, configuration_id, name, description=None, conversions=None, enrichments=None, ...
Create or update expansion list.
def create_expansions(self, environment_id, collection_id, expansions, **kwargs): """ 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 ex...
Create stopword list.
def create_stopword_list(self, environment_id, collection_id, stopword_file, stopword_filename=None, **kwargs): """ Create stopword list. Upload a cus...
Long environment queries.
def federated_query(self, environment_id, filter=None, query=None, natural_language_query=None, passages=None, aggregation=None, count=None, ...
Knowledge Graph entity query.
def query_entities(self, environment_id, collection_id, feature=None, entity=None, context=None, count=None, evidence_count=None, **kwar...
Knowledge Graph relationship query.
def query_relations(self, environment_id, collection_id, entities=None, context=None, sort=None, filter=None, count=None, eviden...
Add query to training data.
def add_training_data(self, environment_id, collection_id, natural_language_query=None, filter=None, examples=None, **kwargs): """ Add query to trai...
Add example to training data query.
def create_training_example(self, environment_id, collection_id, query_id, document_id=None, cross_reference=None, relevance=Non...
Create event.
def create_event(self, type, data, **kwargs): """ 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. ...
Percentage of queries with an associated event.
def get_metrics_event_rate(self, start_time=None, end_time=None, result_type=None, **kwargs): """ Percentage of queries with an associated event. The percentage of queries...
Search the query and event log.
def query_log(self, filter=None, query=None, count=None, offset=None, sort=None, **kwargs): """ Search the query and event log. Searches the query and event log to find query sessions tha...
Create credentials.
def create_credentials(self, environment_id, source_type=None, credential_details=None, **kwargs): """ Create credentials. Creates a set of credentials to connect to a remote source. Crea...
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['matching_results'] = _dict.get('matching_results') if 'aggrega...
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.matching_results is not None: _dict['m...
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: _dict['value'] = self.value retur...
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['name'] = _dict.get('name') if 'description' in _dic...
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') and self.name is not None: _dict['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, 'maximum_allowed') and self.maximum_allowed is not None...
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: args['name'] = _dict.get('name') else: ...
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 if hasattr(self, 'name') and self.name is no...
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'] = WordSettings._from_dict(_dict.get('word')) if '...
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: _dict['word'] = self.word._to_dict() ...
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: _dict['data'] = self.data._to_dict() re...
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 _dict: args['client_id'] = _dict.get('client_id') ...
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 if hasattr(self, 'client_id') and self.client_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, 'source_type') and self.source_type is not None: ...
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('credentials')) ] return cls(**args)
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 _dict
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') and self.status is not None: _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 if hasattr(self, 'status') and self.status i...
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') and self.status is not None: _dict['...
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 self.status is not None: _dict['status']...
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, 'status') and self.status is not None: _di...
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_bytes' ) and self.maximum_allowed_b...
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: args['status'] = _dict.get('status') if 'notices' in _d...
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 self.status is not None: _dict['status']...
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, 'processing') and self.processing is not None: _dict['processi...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'step') and self.step is not None: _dict['step'] = self.step if hasattr(self, 'snapshot') and self.snapshot is not None: _dict['snapshot'] = self.snapshot ...
Initialize a DocumentStatus object from a json dictionary.
def _from_dict(cls, _dict): """Initialize a DocumentStatus object from a json dictionary.""" args = {} if 'document_id' in _dict: args['document_id'] = _dict.get('document_id') else: raise ValueError( 'Required property \'document_id\' not present ...
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, 'configuration_id') and self.configuration_id i...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'description') and self.description is not None: _dict['description'] = self.description if hasattr(self, 'destination_field') and self.destination_field...
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._to_dict() if hasattr(self, 'language') and self.language is not None: _dict['langu...
Initialize a Environment object from a json dictionary.
def _from_dict(cls, _dict): """Initialize a Environment object from a json dictionary.""" args = {} if 'environment_id' in _dict: args['environment_id'] = _dict.get('environment_id') if 'name' in _dict: args['name'] = _dict.get('name') if 'description' in ...
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, 'name') and self.name is not None: _dict['...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'indexed') and self.indexed is not None: _dict['indexed'] = self.indexed if hasattr(self, 'maximum_allowed') and self.maximum_allowed 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, 'environment_id') and self.environment_id is not None: _dict['environment_id'] = self.environment_id if hasattr(self, 'session_token') and self.session_token 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, 'input_terms') and self.input_terms is not None: _dict['input_terms'] = self.input_terms if hasattr(self, 'expanded_terms') and self.expanded_terms is not None: ...
Initialize a Expansions object from a json dictionary.
def _from_dict(cls, _dict): """Initialize a Expansions object from a json dictionary.""" args = {} if 'expansions' in _dict: args['expansions'] = [ Expansion._from_dict(x) for x in (_dict.get('expansions')) ] else: raise ValueError( ...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'expansions') and self.expansions is not None: _dict['expansions'] = [x._to_dict() for x in self.expansions] return _dict
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'field_name') and self.field_name is not None: _dict['field'] = self.field_name if hasattr(self, 'field_type') and self.field_type is not None: _dict['type'] = ...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'match') and self.match is not None: _dict['match'] = self.match return _dict
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'level') and self.level is not None: _dict['level'] = self.level if hasattr(self, 'min_size') and self.min_size is not None: _dict['min_size'] = self.min_size ...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'gateway_id') and self.gateway_id is not None: _dict['gateway_id'] = self.gateway_id if hasattr(self, 'name') and self.name is not None: _dict['name'] = self.na...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'gateway_id') and self.gateway_id is not None: _dict['gateway_id'] = self.gateway_id if hasattr(self, 'status') and self.status is not None: _dict['status'] = s...
Initialize a GatewayList object from a json dictionary.
def _from_dict(cls, _dict): """Initialize a GatewayList object from a json dictionary.""" args = {} if 'gateways' in _dict: args['gateways'] = [ Gateway._from_dict(x) for x in (_dict.get('gateways')) ] return cls(**args)
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'gateways') and self.gateways is not None: _dict['gateways'] = [x._to_dict() for x in self.gateways] return _dict
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'exclude_tags_completely' ) and self.exclude_tags_completely is not None: _dict['exclude_tags_completely'] = self.exclude_tags_completely if hasattr(self,...
Initialize a IndexCapacity object from a json dictionary.
def _from_dict(cls, _dict): """Initialize a IndexCapacity object from a json dictionary.""" args = {} if 'documents' in _dict: args['documents'] = EnvironmentDocuments._from_dict( _dict.get('documents')) if 'disk_usage' in _dict: args['disk_usage']...
Return a json dictionary representing this model.
def _to_dict(self): """Return a json dictionary representing this model.""" _dict = {} if hasattr(self, 'documents') and self.documents is not None: _dict['documents'] = self.documents._to_dict() if hasattr(self, 'disk_usage') and self.disk_usage is not None: _dic...