Beispiel #1
0
    def __init__(self,
                 source=None,
                 target=None,
                 frequency=None,
                 memory_id=None,
                 local_vars_configuration=None):  # noqa: E501
        """LexiconEntryTranslations - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._source = None
        self._target = None
        self._frequency = None
        self._memory_id = None
        self.discriminator = None

        if source is not None:
            self.source = source
        if target is not None:
            self.target = target
        if frequency is not None:
            self.frequency = frequency
        if memory_id is not None:
            self.memory_id = memory_id
Beispiel #2
0
    def __init__(self,
                 name=None,
                 srclang=None,
                 trglang=None,
                 srclocale=None,
                 trglocale=None,
                 local_vars_configuration=None):  # noqa: E501
        """MemoryParameters - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._srclang = None
        self._trglang = None
        self._srclocale = None
        self._trglocale = None
        self.discriminator = None

        self.name = name
        self.srclang = srclang
        self.trglang = trglang
        if srclocale is not None:
            self.srclocale = srclocale
        if trglocale is not None:
            self.trglocale = trglocale
Beispiel #3
0
    def __init__(self,
                 category=None,
                 description=None,
                 id=None,
                 issue_type=None,
                 sub_id=None,
                 urls=None,
                 local_vars_configuration=None):  # noqa: E501
        """QARuleMatchesRule - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._category = None
        self._description = None
        self._id = None
        self._issue_type = None
        self._sub_id = None
        self._urls = None
        self.discriminator = None

        self.category = category
        self.description = description
        self.id = id
        if issue_type is not None:
            self.issue_type = issue_type
        if sub_id is not None:
            self.sub_id = sub_id
        if urls is not None:
            self.urls = urls
Beispiel #4
0
    def __init__(self,
                 id=None,
                 name=None,
                 file_hash=None,
                 export_uri=None,
                 created_at=None,
                 updated_at=None,
                 local_vars_configuration=None):  # noqa: E501
        """File - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self._file_hash = None
        self._export_uri = None
        self._created_at = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if file_hash is not None:
            self.file_hash = file_hash
        if export_uri is not None:
            self.export_uri = export_uri
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
Beispiel #5
0
    def __init__(self,
                 source=None,
                 target=None,
                 score=None,
                 metadata=None,
                 local_vars_configuration=None):  # noqa: E501
        """TranslationMemoryEntry - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._source = None
        self._target = None
        self._score = None
        self._metadata = None
        self.discriminator = None

        if source is not None:
            self.source = source
        if target is not None:
            self.target = target
        if score is not None:
            self.score = score
        if metadata is not None:
            self.metadata = metadata
Beispiel #6
0
    def __init__(self,
                 name=None,
                 memory_id=None,
                 file_ids=None,
                 due_date=None,
                 metadata=None,
                 local_vars_configuration=None):  # noqa: E501
        """ProjectParameters - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._memory_id = None
        self._file_ids = None
        self._due_date = None
        self._metadata = None
        self.discriminator = None

        self.name = name
        self.memory_id = memory_id
        if file_ids is not None:
            self.file_ids = file_ids
        if due_date is not None:
            self.due_date = due_date
        if metadata is not None:
            self.metadata = metadata
Beispiel #7
0
    def __init__(self,
                 minimum_score=None,
                 maximum_score=None,
                 num_source_words=None,
                 num_segments=None,
                 local_vars_configuration=None):  # noqa: E501
        """MatchBand - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._minimum_score = None
        self._maximum_score = None
        self._num_source_words = None
        self._num_segments = None
        self.discriminator = None

        if minimum_score is not None:
            self.minimum_score = minimum_score
        if maximum_score is not None:
            self.maximum_score = maximum_score
        if num_source_words is not None:
            self.num_source_words = num_source_words
        if num_segments is not None:
            self.num_segments = num_segments
Beispiel #8
0
    def __init__(self,
                 id=None,
                 name=None,
                 state=None,
                 due_date=None,
                 archived=None,
                 metadata=None,
                 local_vars_configuration=None):  # noqa: E501
        """ProjectUpdateResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self._state = None
        self._due_date = None
        self._archived = None
        self._metadata = None
        self.discriminator = None

        self.id = id
        if name is not None:
            self.name = name
        if state is not None:
            self.state = state
        if due_date is not None:
            self.due_date = due_date
        if archived is not None:
            self.archived = archived
        if metadata is not None:
            self.metadata = metadata
    def __init__(self,
                 untokenized_source=None,
                 tokenized_source=None,
                 source_delimiters=None,
                 translation=None,
                 local_vars_configuration=None):  # noqa: E501
        """TranslationList - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._untokenized_source = None
        self._tokenized_source = None
        self._source_delimiters = None
        self._translation = None
        self.discriminator = None

        if untokenized_source is not None:
            self.untokenized_source = untokenized_source
        if tokenized_source is not None:
            self.tokenized_source = tokenized_source
        if source_delimiters is not None:
            self.source_delimiters = source_delimiters
        if translation is not None:
            self.translation = translation
Beispiel #10
0
    def __init__(self, target=None, target_with_tags=None, align=None, provenance=None, score=None, is_tm_match=None, target_delimiters=None, target_words=None, local_vars_configuration=None):  # noqa: E501
        """Translation - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._target = None
        self._target_with_tags = None
        self._align = None
        self._provenance = None
        self._score = None
        self._is_tm_match = None
        self._target_delimiters = None
        self._target_words = None
        self.discriminator = None

        if target is not None:
            self.target = target
        if target_with_tags is not None:
            self.target_with_tags = target_with_tags
        if align is not None:
            self.align = align
        if provenance is not None:
            self.provenance = provenance
        if score is not None:
            self.score = score
        if is_tm_match is not None:
            self.is_tm_match = is_tm_match
        if target_delimiters is not None:
            self.target_delimiters = target_delimiters
        if target_words is not None:
            self.target_words = target_words
Beispiel #11
0
    def __init__(self,
                 context=None,
                 length=None,
                 message=None,
                 offset=None,
                 replacements=None,
                 rule=None,
                 short_message=None,
                 local_vars_configuration=None):  # noqa: E501
        """QARuleMatchesMatches - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._context = None
        self._length = None
        self._message = None
        self._offset = None
        self._replacements = None
        self._rule = None
        self._short_message = None
        self.discriminator = None

        self.context = context
        self.length = length
        self.message = message
        self.offset = offset
        self.replacements = replacements
        if rule is not None:
            self.rule = rule
        if short_message is not None:
            self.short_message = short_message
    def __init__(self, id=None, local_vars_configuration=None):  # noqa: E501
        """DocumentPretranslateParameters - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self.discriminator = None

        if id is not None:
            self.id = id
Beispiel #13
0
    def __init__(self, matches=None, local_vars_configuration=None):  # noqa: E501
        """QARuleMatches - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._matches = None
        self.discriminator = None

        if matches is not None:
            self.matches = matches
Beispiel #14
0
    def __init__(self, pretranslation=None, local_vars_configuration=None):  # noqa: E501
        """DocumentPretranslatingStatus - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._pretranslation = None
        self.discriminator = None

        if pretranslation is not None:
            self.pretranslation = pretranslation
    def __init__(self, id=None, local_vars_configuration=None):  # noqa: E501
        """DocumentAssignmentResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self.discriminator = None

        if id is not None:
            self.id = id
Beispiel #16
0
    def __init__(self,
                 id=None,
                 srclang=None,
                 trglang=None,
                 srclocale=None,
                 trglocale=None,
                 name=None,
                 version=None,
                 created_at=None,
                 updated_at=None,
                 num_segments=None,
                 resources=None,
                 local_vars_configuration=None):  # noqa: E501
        """Memory - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._srclang = None
        self._trglang = None
        self._srclocale = None
        self._trglocale = None
        self._name = None
        self._version = None
        self._created_at = None
        self._updated_at = None
        self._num_segments = None
        self._resources = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if srclang is not None:
            self.srclang = srclang
        if trglang is not None:
            self.trglang = trglang
        if srclocale is not None:
            self.srclocale = srclocale
        if trglocale is not None:
            self.trglocale = trglocale
        if name is not None:
            self.name = name
        if version is not None:
            self.version = version
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
        if num_segments is not None:
            self.num_segments = num_segments
        if resources is not None:
            self.resources = resources
Beispiel #17
0
    def __init__(self,
                 id=None,
                 created_at=None,
                 updated_at=None,
                 document_id=None,
                 memory_id=None,
                 source=None,
                 srclang=None,
                 target=None,
                 trglang=None,
                 is_confirmed=None,
                 is_reviewed=None,
                 local_vars_configuration=None):  # noqa: E501
        """Segment - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._created_at = None
        self._updated_at = None
        self._document_id = None
        self._memory_id = None
        self._source = None
        self._srclang = None
        self._target = None
        self._trglang = None
        self._is_confirmed = None
        self._is_reviewed = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
        if document_id is not None:
            self.document_id = document_id
        if memory_id is not None:
            self.memory_id = memory_id
        if source is not None:
            self.source = source
        if srclang is not None:
            self.srclang = srclang
        if target is not None:
            self.target = target
        if trglang is not None:
            self.trglang = trglang
        if is_confirmed is not None:
            self.is_confirmed = is_confirmed
        if is_reviewed is not None:
            self.is_reviewed = is_reviewed
    def __init__(self,
                 value=None,
                 local_vars_configuration=None):  # noqa: E501
        """QARuleMatchesRuleUrls - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._value = None
        self.discriminator = None

        if value is not None:
            self.value = value
Beispiel #19
0
    def __init__(self,
                 message=None,
                 local_vars_configuration=None):  # noqa: E501
        """Error - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._message = None
        self.discriminator = None

        if message is not None:
            self.message = message
    def __init__(self, memory_id=None, success=None, local_vars_configuration=None):  # noqa: E501
        """LexiconUpdateResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._memory_id = None
        self._success = None
        self.discriminator = None

        if memory_id is not None:
            self.memory_id = memory_id
        if success is not None:
            self.success = success
Beispiel #21
0
    def __init__(self, id=None, num_updates=None, local_vars_configuration=None):  # noqa: E501
        """MemoryInsertResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._num_updates = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if num_updates is not None:
            self.num_updates = num_updates
Beispiel #22
0
    def __init__(self,
                 id=None,
                 target=None,
                 local_vars_configuration=None):  # noqa: E501
        """SegmentUpdateParameters - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._target = None
        self.discriminator = None

        self.id = id
        self.target = target
Beispiel #23
0
    def __init__(self, configuration=None, header_name=None, header_value=None,
                 cookie=None, pool_threads=1):
        if configuration is None:
            configuration = Configuration()
        self.configuration = configuration
        self.pool_threads = pool_threads

        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'OpenAPI-Generator/1.0.0/python'
        self.client_side_validation = configuration.client_side_validation
Beispiel #24
0
    def __init__(self,
                 id=None,
                 name=None,
                 local_vars_configuration=None):  # noqa: E501
        """MemoryUpdateParameters - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self.discriminator = None

        self.id = id
        self.name = name
    def __init__(self,
                 name=None,
                 project_id=None,
                 local_vars_configuration=None):  # noqa: E501
        """DocumentParameters - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._project_id = None
        self.discriminator = None

        self.name = name
        self.project_id = project_id
    def __init__(self,
                 source_to_target=None,
                 code_to_name=None,
                 local_vars_configuration=None):  # noqa: E501
        """LanguagesResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._source_to_target = None
        self._code_to_name = None
        self.discriminator = None

        if source_to_target is not None:
            self.source_to_target = source_to_target
        if code_to_name is not None:
            self.code_to_name = code_to_name
    def __init__(self,
                 start=None,
                 length=None,
                 local_vars_configuration=None):  # noqa: E501
        """LexiconEntrySourceSpan - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._start = None
        self._length = None
        self.discriminator = None

        if start is not None:
            self.start = start
        if length is not None:
            self.length = length
Beispiel #28
0
    def __init__(self,
                 translations=None,
                 examples=None,
                 local_vars_configuration=None):  # noqa: E501
        """LexiconEntry - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._translations = None
        self._examples = None
        self.discriminator = None

        if translations is not None:
            self.translations = translations
        if examples is not None:
            self.examples = examples
    def __init__(self,
                 id=None,
                 name=None,
                 local_vars_configuration=None):  # noqa: E501
        """QARuleMatchesRuleCategory - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._name = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
Beispiel #30
0
    def __init__(self,
                 id=None,
                 deleted=None,
                 local_vars_configuration=None):  # noqa: E501
        """FileResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._deleted = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if deleted is not None:
            self.deleted = deleted