"""

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 0.0.0
    Generated by: https://openapi-generator.tech
"""


import re  # noqa: F401
import sys  # noqa: F401

from satnogsnetworkapiclient.api_client import ApiClient, Endpoint as _Endpoint
from satnogsnetworkapiclient.model_utils import (  # noqa: F401
    check_allowed_values,
    check_validations,
    date,
    datetime,
    file_type,
    none_type,
    validate_and_convert_types
)
from satnogsnetworkapiclient.model.job import Job


class JobsApi(object):
    """NOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client
        self.jobs_list_endpoint = _Endpoint(
            settings={
                'response_type': ([Job],),
                'auth': [
                    'tokenAuth'
                ],
                'endpoint_path': '/api/jobs/',
                'operation_id': 'jobs_list',
                'http_method': 'GET',
                'servers': None,
            },
            params_map={
                'all': [
                    'end',
                    'ground_station',
                    'id',
                    'observer',
                    'satellite__norad_cat_id',
                    'start',
                    'status',
                    'transmitter_mode',
                    'transmitter_type',
                    'transmitter_uuid',
                    'vetted_status',
                    'vetted_user',
                    'waterfall_status',
                ],
                'required': [],
                'nullable': [
                    'waterfall_status',
                ],
                'enum': [
                    'status',
                    'transmitter_type',
                    'vetted_status',
                    'waterfall_status',
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                    ('status',): {

                        "NULL": null,
                        "NULL": null,
                        "NULL": null,
                        "NULL": null,
                        "NULL": null
                    },
                    ('transmitter_type',): {

                        "TRANSCEIVER": "Transceiver",
                        "TRANSMITTER": "Transmitter",
                        "TRANSPONDER": "Transponder"
                    },
                    ('vetted_status',): {

                        "NULL": null,
                        "NULL": null,
                        "NULL": null,
                        "NULL": null
                    },
                    ('waterfall_status',): {
                        'None': None,
                        "FALSE": "false",
                        "FALSE": "false"
                    },
                },
                'openapi_types': {
                    'end':
                        (datetime,),
                    'ground_station':
                        (int,),
                    'id':
                        (int,),
                    'observer':
                        (int,),
                    'satellite__norad_cat_id':
                        (int,),
                    'start':
                        (datetime,),
                    'status':
                        (int,),
                    'transmitter_mode':
                        (str,),
                    'transmitter_type':
                        (str,),
                    'transmitter_uuid':
                        (str,),
                    'vetted_status':
                        (int,),
                    'vetted_user':
                        (int,),
                    'waterfall_status':
                        (bool, none_type,),
                },
                'attribute_map': {
                    'end': 'end',
                    'ground_station': 'ground_station',
                    'id': 'id',
                    'observer': 'observer',
                    'satellite__norad_cat_id': 'satellite__norad_cat_id',
                    'start': 'start',
                    'status': 'status',
                    'transmitter_mode': 'transmitter_mode',
                    'transmitter_type': 'transmitter_type',
                    'transmitter_uuid': 'transmitter_uuid',
                    'vetted_status': 'vetted_status',
                    'vetted_user': 'vetted_user',
                    'waterfall_status': 'waterfall_status',
                },
                'location_map': {
                    'end': 'query',
                    'ground_station': 'query',
                    'id': 'query',
                    'observer': 'query',
                    'satellite__norad_cat_id': 'query',
                    'start': 'query',
                    'status': 'query',
                    'transmitter_mode': 'query',
                    'transmitter_type': 'query',
                    'transmitter_uuid': 'query',
                    'vetted_status': 'query',
                    'vetted_user': 'query',
                    'waterfall_status': 'query',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )
        self.jobs_retrieve_endpoint = _Endpoint(
            settings={
                'response_type': (Job,),
                'auth': [
                    'tokenAuth'
                ],
                'endpoint_path': '/api/jobs/{id}/',
                'operation_id': 'jobs_retrieve',
                'http_method': 'GET',
                'servers': None,
            },
            params_map={
                'all': [
                    'id',
                ],
                'required': [
                    'id',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'id':
                        (int,),
                },
                'attribute_map': {
                    'id': 'id',
                },
                'location_map': {
                    'id': 'path',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )

    def jobs_list(
        self,
        **kwargs
    ):
        """jobs_list  # noqa: E501

        SatNOGS Network Job API view class  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True

        >>> thread = api.jobs_list(async_req=True)
        >>> result = thread.get()


        Keyword Args:
            end (datetime): [optional]
            ground_station (int): [optional]
            id (int): [optional]
            observer (int): observer. [optional]
            satellite__norad_cat_id (int): [optional]
            start (datetime): [optional]
            status (int): [optional]
            transmitter_mode (str): [optional]
            transmitter_type (str): [optional]
            transmitter_uuid (str): [optional]
            vetted_status (int): Vetted status (deprecated: please use Status). [optional]
            vetted_user (int): Vetted user (deprecated: will be removed in next version). [optional]
            waterfall_status (bool, none_type): [optional]
            _return_http_data_only (bool): response data without head status
                code and headers. Default is True.
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
            async_req (bool): execute request asynchronously

        Returns:
            [Job]
                If the method is called asynchronously, returns the request
                thread.
        """
        kwargs['async_req'] = kwargs.get(
            'async_req', False
        )
        kwargs['_return_http_data_only'] = kwargs.get(
            '_return_http_data_only', True
        )
        kwargs['_preload_content'] = kwargs.get(
            '_preload_content', True
        )
        kwargs['_request_timeout'] = kwargs.get(
            '_request_timeout', None
        )
        kwargs['_check_input_type'] = kwargs.get(
            '_check_input_type', True
        )
        kwargs['_check_return_type'] = kwargs.get(
            '_check_return_type', True
        )
        kwargs['_host_index'] = kwargs.get('_host_index')
        return self.jobs_list_endpoint.call_with_http_info(**kwargs)

    def jobs_retrieve(
        self,
        id,
        **kwargs
    ):
        """jobs_retrieve  # noqa: E501

        SatNOGS Network Job API view class  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True

        >>> thread = api.jobs_retrieve(id, async_req=True)
        >>> result = thread.get()

        Args:
            id (int): A unique integer value identifying this observation.

        Keyword Args:
            _return_http_data_only (bool): response data without head status
                code and headers. Default is True.
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
            async_req (bool): execute request asynchronously

        Returns:
            Job
                If the method is called asynchronously, returns the request
                thread.
        """
        kwargs['async_req'] = kwargs.get(
            'async_req', False
        )
        kwargs['_return_http_data_only'] = kwargs.get(
            '_return_http_data_only', True
        )
        kwargs['_preload_content'] = kwargs.get(
            '_preload_content', True
        )
        kwargs['_request_timeout'] = kwargs.get(
            '_request_timeout', None
        )
        kwargs['_check_input_type'] = kwargs.get(
            '_check_input_type', True
        )
        kwargs['_check_return_type'] = kwargs.get(
            '_check_return_type', True
        )
        kwargs['_host_index'] = kwargs.get('_host_index')
        kwargs['id'] = \
            id
        return self.jobs_retrieve_endpoint.call_with_http_info(**kwargs)

