Exemplo n.º 1
0
    def __init__(self, account_id=None, color=None, created_at=None, description=None, id=None, name=None, recording_ids=None, updated_at=None, local_vars_configuration=None):  # noqa: E501
        """Label - 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._account_id = None
        self._color = None
        self._created_at = None
        self._description = None
        self._id = None
        self._name = None
        self._recording_ids = None
        self._updated_at = None
        self.discriminator = None

        if account_id is not None:
            self.account_id = account_id
        if color is not None:
            self.color = color
        if created_at is not None:
            self.created_at = created_at
        if description is not None:
            self.description = description
        if id is not None:
            self.id = id
        self.name = name
        if recording_ids is not None:
            self.recording_ids = recording_ids
        if updated_at is not None:
            self.updated_at = updated_at
Exemplo n.º 2
0
    def __init__(
        self,
        api_key,
        host="https://api.cloud.pupil-labs.com",
        downloads_path=None,
        verify_ssl=True,
    ):
        """
        Create a PupilCloud API client

        :param api_key: api key for auth
        :param host: host for the api
        :param downloads_path: path to folder to store downloads (defaults tmp)
        :param verify_ssl: enable/disable ssl verification
        """

        self.config = Configuration()
        self.config.verify_ssl = verify_ssl
        self.config.host = host
        self.config.api_key["api-key"] = api_key
        self.config.temp_folder_path = downloads_path
        if downloads_path:
            os.makedirs(downloads_path, exist_ok=True)

        self.api_client = ApiClient(configuration=self.config)
    def __init__(self, archived_at=None, created_at=None, description=None, id=None, items=None, name=None, published_at=None, recording_name_format=None, updated_at=None, local_vars_configuration=None):  # noqa: E501
        """TemplatePostRequest - 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._archived_at = None
        self._created_at = None
        self._description = None
        self._id = None
        self._items = None
        self._name = None
        self._published_at = None
        self._recording_name_format = None
        self._updated_at = None
        self.discriminator = None

        if archived_at is not None:
            self.archived_at = archived_at
        if created_at is not None:
            self.created_at = created_at
        if description is not None:
            self.description = description
        if id is not None:
            self.id = id
        if items is not None:
            self.items = items
        self.name = name
        if published_at is not None:
            self.published_at = published_at
        if recording_name_format is not None:
            self.recording_name_format = recording_name_format
        if updated_at is not None:
            self.updated_at = updated_at
    def __init__(self,
                 id=None,
                 label_ids=None,
                 name=None,
                 updated_at=None,
                 local_vars_configuration=None):  # noqa: E501
        """RecordingPatchRequest - 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._label_ids = None
        self._name = None
        self._updated_at = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if label_ids is not None:
            self.label_ids = label_ids
        if name is not None:
            self.name = name
        if updated_at is not None:
            self.updated_at = updated_at
    def __init__(self, choices=None, help_text=None, id=None, input_type='any', required=None, title=None, widget_type=None, local_vars_configuration=None):  # noqa: E501
        """TemplateItem - 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._choices = None
        self._help_text = None
        self._id = None
        self._input_type = None
        self._required = None
        self._title = None
        self._widget_type = None
        self.discriminator = None

        if choices is not None:
            self.choices = choices
        if help_text is not None:
            self.help_text = help_text
        if id is not None:
            self.id = id
        if input_type is not None:
            self.input_type = input_type
        if required is not None:
            self.required = required
        if title is not None:
            self.title = title
        self.widget_type = widget_type
    def __init__(self,
                 account_id=None,
                 created_at=None,
                 download_url=None,
                 id=None,
                 mimetype=None,
                 name=None,
                 recording_id=None,
                 size_bytes=None,
                 started_at=None,
                 upload_url=None,
                 uploaded_bytes=None,
                 local_vars_configuration=None):  # noqa: E501
        """RecordingFile - 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._account_id = None
        self._created_at = None
        self._download_url = None
        self._id = None
        self._mimetype = None
        self._name = None
        self._recording_id = None
        self._size_bytes = None
        self._started_at = None
        self._upload_url = None
        self._uploaded_bytes = None
        self.discriminator = None

        if account_id is not None:
            self.account_id = account_id
        if created_at is not None:
            self.created_at = created_at
        if download_url is not None:
            self.download_url = download_url
        if id is not None:
            self.id = id
        if mimetype is not None:
            self.mimetype = mimetype
        if name is not None:
            self.name = name
        if recording_id is not None:
            self.recording_id = recording_id
        if size_bytes is not None:
            self.size_bytes = size_bytes
        if started_at is not None:
            self.started_at = started_at
        if upload_url is not None:
            self.upload_url = upload_url
        if uploaded_bytes is not None:
            self.uploaded_bytes = uploaded_bytes
    def __init__(self, x=None, y=None, local_vars_configuration=None):  # noqa: E501
        """OffsetCorrection - 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._x = None
        self._y = None
        self.discriminator = None

        if x is not None:
            self.x = x
        if y is not None:
            self.y = y
Exemplo n.º 8
0
    def __init__(self,
                 account_id=None,
                 archived_at=None,
                 created_at=None,
                 id=None,
                 name=None,
                 offset_correction=None,
                 photo_url=None,
                 training_accuracy=None,
                 training_updated_on=None,
                 updated_at=None,
                 local_vars_configuration=None):  # noqa: E501
        """Wearer - 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._account_id = None
        self._archived_at = None
        self._created_at = None
        self._id = None
        self._name = None
        self._offset_correction = None
        self._photo_url = None
        self._training_accuracy = None
        self._training_updated_on = None
        self._updated_at = None
        self.discriminator = None

        if account_id is not None:
            self.account_id = account_id
        if archived_at is not None:
            self.archived_at = archived_at
        if created_at is not None:
            self.created_at = created_at
        if id is not None:
            self.id = id
        self.name = name
        if offset_correction is not None:
            self.offset_correction = offset_correction
        if photo_url is not None:
            self.photo_url = photo_url
        if training_accuracy is not None:
            self.training_accuracy = training_accuracy
        if training_updated_on is not None:
            self.training_updated_on = training_updated_on
        if updated_at is not None:
            self.updated_at = updated_at
Exemplo n.º 9
0
    def __init__(self, code=None, result=None, status=None, local_vars_configuration=None):  # noqa: E501
        """WearersGetResponse - 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._code = None
        self._result = None
        self._status = None
        self.discriminator = None

        if code is not None:
            self.code = code
        if result is not None:
            self.result = result
        if status is not None:
            self.status = status
    def __init__(self,
                 name=None,
                 ts=None,
                 local_vars_configuration=None):  # noqa: E501
        """RecordingEvent - 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._ts = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if ts is not None:
            self.ts = ts
Exemplo n.º 11
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
Exemplo n.º 12
0
    def __init__(self,
                 default_template_id=None,
                 email=None,
                 email_verified=None,
                 id=None,
                 name=None,
                 photo_url=None,
                 provider=None,
                 uid=None,
                 local_vars_configuration=None):  # noqa: E501
        """User - 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._default_template_id = None
        self._email = None
        self._email_verified = None
        self._id = None
        self._name = None
        self._photo_url = None
        self._provider = None
        self._uid = None
        self.discriminator = None

        if default_template_id is not None:
            self.default_template_id = default_template_id
        if email is not None:
            self.email = email
        if email_verified is not None:
            self.email_verified = email_verified
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if photo_url is not None:
            self.photo_url = photo_url
        if provider is not None:
            self.provider = provider
        if uid is not None:
            self.uid = uid
    def __init__(self, account_id=None, app_version=None, created_at=None, device_model=None, device_name=None, download_url=None, duration=None, duration_ns=None, gaze_offset=None, glasses_id=None, id=None, is_uploaded=None, is_viewable=None, label_ids=None, name=None, recorded_at=None, sensors=None, size=None, template_data=None, template_id=None, transcoded_url=None, updated_at=None, uploaded_bytes=None, wearer_id=None, local_vars_configuration=None):  # noqa: E501
        """Recording - 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._account_id = None
        self._app_version = None
        self._created_at = None
        self._device_model = None
        self._device_name = None
        self._download_url = None
        self._duration = None
        self._duration_ns = None
        self._gaze_offset = None
        self._glasses_id = None
        self._id = None
        self._is_uploaded = None
        self._is_viewable = None
        self._label_ids = None
        self._name = None
        self._recorded_at = None
        self._sensors = None
        self._size = None
        self._template_data = None
        self._template_id = None
        self._transcoded_url = None
        self._updated_at = None
        self._uploaded_bytes = None
        self._wearer_id = None
        self.discriminator = None

        if account_id is not None:
            self.account_id = account_id
        if app_version is not None:
            self.app_version = app_version
        if created_at is not None:
            self.created_at = created_at
        if device_model is not None:
            self.device_model = device_model
        if device_name is not None:
            self.device_name = device_name
        if download_url is not None:
            self.download_url = download_url
        if duration is not None:
            self.duration = duration
        if duration_ns is not None:
            self.duration_ns = duration_ns
        if gaze_offset is not None:
            self.gaze_offset = gaze_offset
        if glasses_id is not None:
            self.glasses_id = glasses_id
        if id is not None:
            self.id = id
        if is_uploaded is not None:
            self.is_uploaded = is_uploaded
        if is_viewable is not None:
            self.is_viewable = is_viewable
        if label_ids is not None:
            self.label_ids = label_ids
        if name is not None:
            self.name = name
        if recorded_at is not None:
            self.recorded_at = recorded_at
        if sensors is not None:
            self.sensors = sensors
        if size is not None:
            self.size = size
        if template_data is not None:
            self.template_data = template_data
        if template_id is not None:
            self.template_id = template_id
        if transcoded_url is not None:
            self.transcoded_url = transcoded_url
        if updated_at is not None:
            self.updated_at = updated_at
        if uploaded_bytes is not None:
            self.uploaded_bytes = uploaded_bytes
        if wearer_id is not None:
            self.wearer_id = wearer_id