Example #1
0
    def __init__(self,
                 name=None,
                 description=None,
                 arguments=None,
                 acl=None,
                 local_vars_configuration=None):  # noqa: E501
        """LaunchTaskRequest - 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._description = None
        self._arguments = None
        self._acl = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if description is not None:
            self.description = description
        if arguments is not None:
            self.arguments = arguments
        if acl is not None:
            self.acl = acl
    def __init__(self,
                 name=None,
                 description=None,
                 acl=None,
                 execution=None,
                 local_vars_configuration=None):  # noqa: E501
        """CreateTaskRunRequest - 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._description = None
        self._acl = None
        self._execution = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if description is not None:
            self.description = description
        if acl is not None:
            self.acl = acl
        if execution is not None:
            self.execution = execution
Example #3
0
    def __init__(self,
                 access_pattern='sequential',
                 cache_size_gb=50,
                 block_size_mb=32.0,
                 prefetch_blocks=32,
                 local_vars_configuration=None):  # noqa: E501
        """InputStreamSettings - 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._access_pattern = None
        self._cache_size_gb = None
        self._block_size_mb = None
        self._prefetch_blocks = None
        self.discriminator = None

        if access_pattern is not None:
            self.access_pattern = access_pattern
        if cache_size_gb is not None:
            self.cache_size_gb = cache_size_gb
        if block_size_mb is not None:
            self.block_size_mb = block_size_mb
        if prefetch_blocks is not None:
            self.prefetch_blocks = prefetch_blocks
Example #4
0
    def __init__(self,
                 start_time=None,
                 end_time=None,
                 error=None,
                 error_details=None,
                 stdout=None,
                 stderr=None,
                 local_vars_configuration=None):  # noqa: E501
        """TaskRunLogs - 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_time = None
        self._end_time = None
        self._error = None
        self._error_details = None
        self._stdout = None
        self._stderr = None
        self.discriminator = None

        if start_time is not None:
            self.start_time = start_time
        if end_time is not None:
            self.end_time = end_time
        if error is not None:
            self.error = error
        if error_details is not None:
            self.error_details = error_details
        if stdout is not None:
            self.stdout = stdout
        if stderr is not None:
            self.stderr = stderr
Example #5
0
    def __init__(self,
                 type=None,
                 size=None,
                 cpu_cores=None,
                 memory_gb=None,
                 hardware=None,
                 tier=None,
                 local_vars_configuration=None):  # noqa: E501
        """Resources - 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._type = None
        self._size = None
        self._cpu_cores = None
        self._memory_gb = None
        self._hardware = None
        self._tier = None
        self.discriminator = None

        if type is not None:
            self.type = type
        if size is not None:
            self.size = size
        if cpu_cores is not None:
            self.cpu_cores = cpu_cores
        if memory_gb is not None:
            self.memory_gb = memory_gb
        if hardware is not None:
            self.hardware = hardware
        if tier is not None:
            self.tier = tier
Example #6
0
    def __init__(self, path=None, url=None, urn=None, type=None, storage_provider=None, credentials=None, local_vars_configuration=None):  # noqa: E501
        """MountMappingWithCreds - 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._path = None
        self._url = None
        self._urn = None
        self._type = None
        self._storage_provider = None
        self._credentials = None
        self.discriminator = None

        if path is not None:
            self.path = path
        if url is not None:
            self.url = url
        if urn is not None:
            self.urn = urn
        if type is not None:
            self.type = type
        if storage_provider is not None:
            self.storage_provider = storage_provider
        if credentials is not None:
            self.credentials = credentials
Example #7
0
    def __init__(self,
                 url=None,
                 urn=None,
                 storage_provider=None,
                 credentials=None,
                 local_vars_configuration=None):  # noqa: E501
        """SystemFiles - 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._url = None
        self._urn = None
        self._storage_provider = None
        self._credentials = None
        self.discriminator = None

        if url is not None:
            self.url = url
        if urn is not None:
            self.urn = urn
        if storage_provider is not None:
            self.storage_provider = storage_provider
        if credentials is not None:
            self.credentials = credentials
Example #8
0
    def __init__(self,
                 id=None,
                 href=None,
                 urn=None,
                 version=None,
                 description=None,
                 acl=None,
                 tenant_id=None,
                 sub_tenant_id=None,
                 created_by=None,
                 time_created=None,
                 modified_by=None,
                 time_modified=None,
                 local_vars_configuration=None):  # noqa: E501
        """TaskVersionSummary - 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._href = None
        self._urn = None
        self._version = None
        self._description = None
        self._acl = None
        self._tenant_id = None
        self._sub_tenant_id = None
        self._created_by = None
        self._time_created = None
        self._modified_by = None
        self._time_modified = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if href is not None:
            self.href = href
        if urn is not None:
            self.urn = urn
        if version is not None:
            self.version = version
        if description is not None:
            self.description = description
        if acl is not None:
            self.acl = acl
        if tenant_id is not None:
            self.tenant_id = tenant_id
        if sub_tenant_id is not None:
            self.sub_tenant_id = sub_tenant_id
        if created_by is not None:
            self.created_by = created_by
        if time_created is not None:
            self.time_created = time_created
        if modified_by is not None:
            self.modified_by = modified_by
        if time_modified is not None:
            self.time_modified = time_modified
Example #9
0
    def __init__(self, jwt=None, local_vars_configuration=None):  # noqa: E501
        """TaskRunHeartbeat - 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._jwt = None
        self.discriminator = None

        if jwt is not None:
            self.jwt = jwt
    def __init__(self,
                 started_at=None,
                 local_vars_configuration=None):  # noqa: E501
        """ContainerStateRunning - 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._started_at = None
        self.discriminator = None

        if started_at is not None:
            self.started_at = started_at
Example #11
0
    def __init__(self,
                 image=None,
                 command=None,
                 args=None,
                 inputs=None,
                 outputs=None,
                 system_files=None,
                 environment=None,
                 working_directory=None,
                 retry_limit=3,
                 retry_count=0,
                 local_vars_configuration=None):  # noqa: E501
        """Execution - 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._image = None
        self._command = None
        self._args = None
        self._inputs = None
        self._outputs = None
        self._system_files = None
        self._environment = None
        self._working_directory = None
        self._retry_limit = None
        self._retry_count = None
        self.discriminator = None

        if image is not None:
            self.image = image
        if command is not None:
            self.command = command
        if args is not None:
            self.args = args
        if inputs is not None:
            self.inputs = inputs
        if outputs is not None:
            self.outputs = outputs
        if system_files is not None:
            self.system_files = system_files
        if environment is not None:
            self.environment = environment
        if working_directory is not None:
            self.working_directory = working_directory
        if retry_limit is not None:
            self.retry_limit = retry_limit
        if retry_count is not None:
            self.retry_count = retry_count
Example #12
0
    def __init__(self,
                 name=None,
                 state=None,
                 local_vars_configuration=None):  # noqa: E501
        """ContainerStatus - 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._state = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if state is not None:
            self.state = state
Example #13
0
    def __init__(self,
                 reason=None,
                 message=None,
                 local_vars_configuration=None):  # noqa: E501
        """ContainerStateWaiting - 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._reason = None
        self._message = None
        self.discriminator = None

        if reason is not None:
            self.reason = reason
        if message is not None:
            self.message = message
Example #14
0
    def __init__(self, waiting=None, running=None, terminated=None, local_vars_configuration=None):  # noqa: E501
        """ContainerState - 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._waiting = None
        self._running = None
        self._terminated = None
        self.discriminator = None

        if waiting is not None:
            self.waiting = waiting
        if running is not None:
            self.running = running
        if terminated is not None:
            self.terminated = terminated
Example #15
0
    def __init__(self,
                 username=None,
                 password=None,
                 local_vars_configuration=None):  # noqa: E501
        """Credentials - 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._username = None
        self._password = None
        self.discriminator = None

        if username is not None:
            self.username = username
        if password is not None:
            self.password = password
Example #16
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration.get_default_copy()
        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
    def __init__(self, version=None, description=None, execution=None, acl=None, local_vars_configuration=None):  # noqa: E501
        """UpdateTaskVersionRequest - 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._version = None
        self._description = None
        self._execution = None
        self._acl = None
        self.discriminator = None

        if version is not None:
            self.version = version
        if description is not None:
            self.description = description
        if execution is not None:
            self.execution = execution
        if acl is not None:
            self.acl = acl
    def __init__(self,
                 items=None,
                 item_count=None,
                 first_page_token=None,
                 next_page_token=None,
                 prev_page_token=None,
                 last_page_token=None,
                 total_item_count=None,
                 total_page_count=None,
                 local_vars_configuration=None):  # noqa: E501
        """TaskRunSummaryPagedItems - 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._items = None
        self._item_count = None
        self._first_page_token = None
        self._next_page_token = None
        self._prev_page_token = None
        self._last_page_token = None
        self._total_item_count = None
        self._total_page_count = None
        self.discriminator = None

        if items is not None:
            self.items = items
        if item_count is not None:
            self.item_count = item_count
        if first_page_token is not None:
            self.first_page_token = first_page_token
        if next_page_token is not None:
            self.next_page_token = next_page_token
        if prev_page_token is not None:
            self.prev_page_token = prev_page_token
        if last_page_token is not None:
            self.last_page_token = last_page_token
        if total_item_count is not None:
            self.total_item_count = total_item_count
        if total_page_count is not None:
            self.total_page_count = total_page_count
Example #19
0
    def __init__(self,
                 code=None,
                 message=None,
                 details=None,
                 local_vars_configuration=None):  # noqa: E501
        """ErrorResponse - 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._message = None
        self._details = None
        self.discriminator = None

        if code is not None:
            self.code = code
        if message is not None:
            self.message = message
        if details is not None:
            self.details = details
Example #20
0
    def __init__(self,
                 variables=None,
                 resources=None,
                 input_stream_settings=None,
                 local_vars_configuration=None):  # noqa: E501
        """Environment - 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._variables = None
        self._resources = None
        self._input_stream_settings = None
        self.discriminator = None

        if variables is not None:
            self.variables = variables
        if resources is not None:
            self.resources = resources
        if input_stream_settings is not None:
            self.input_stream_settings = input_stream_settings
    def __init__(self,
                 exit_code=None,
                 signal=None,
                 reason=None,
                 message=None,
                 started_at=None,
                 finished_at=None,
                 container_id=None,
                 local_vars_configuration=None):  # noqa: E501
        """ContainerStateTerminated - 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._exit_code = None
        self._signal = None
        self._reason = None
        self._message = None
        self._started_at = None
        self._finished_at = None
        self._container_id = None
        self.discriminator = None

        if exit_code is not None:
            self.exit_code = exit_code
        if signal is not None:
            self.signal = signal
        if reason is not None:
            self.reason = reason
        if message is not None:
            self.message = message
        if started_at is not None:
            self.started_at = started_at
        if finished_at is not None:
            self.finished_at = finished_at
        if container_id is not None:
            self.container_id = container_id
Example #22
0
    def __init__(self,
                 last_heartbeat=None,
                 pod_name=None,
                 pod_uid=None,
                 pod_hardware_details=None,
                 job_retry_count=None,
                 nonce=None,
                 container_status=None,
                 local_vars_configuration=None):  # noqa: E501
        """HeartbeatTaskRunRequest - 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._last_heartbeat = None
        self._pod_name = None
        self._pod_uid = None
        self._pod_hardware_details = None
        self._job_retry_count = None
        self._nonce = None
        self._container_status = None
        self.discriminator = None

        if last_heartbeat is not None:
            self.last_heartbeat = last_heartbeat
        if pod_name is not None:
            self.pod_name = pod_name
        if pod_uid is not None:
            self.pod_uid = pod_uid
        if pod_hardware_details is not None:
            self.pod_hardware_details = pod_hardware_details
        if job_retry_count is not None:
            self.job_retry_count = job_retry_count
        if nonce is not None:
            self.nonce = nonce
        if container_status is not None:
            self.container_status = container_status
Example #23
0
    def __init__(self,
                 name=None,
                 tag=None,
                 digest=None,
                 credentials=None,
                 local_vars_configuration=None):  # noqa: E501
        """Image - 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._tag = None
        self._digest = None
        self._credentials = None
        self.discriminator = None

        self.name = name
        if tag is not None:
            self.tag = tag
        if digest is not None:
            self.digest = digest
        if credentials is not None:
            self.credentials = credentials
Example #24
0
    def __init__(self,
                 id=None,
                 name=None,
                 href=None,
                 description=None,
                 status='Pending',
                 status_details=None,
                 execution=None,
                 task_version_summary=None,
                 acl=None,
                 tenant_id=None,
                 sub_tenant_id=None,
                 created_by=None,
                 time_created=None,
                 modified_by=None,
                 time_modified=None,
                 local_vars_configuration=None):  # noqa: E501
        """TaskRunDirect - 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._href = None
        self._description = None
        self._status = None
        self._status_details = None
        self._execution = None
        self._task_version_summary = None
        self._acl = None
        self._tenant_id = None
        self._sub_tenant_id = None
        self._created_by = None
        self._time_created = None
        self._modified_by = None
        self._time_modified = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if href is not None:
            self.href = href
        if description is not None:
            self.description = description
        if status is not None:
            self.status = status
        if status_details is not None:
            self.status_details = status_details
        if execution is not None:
            self.execution = execution
        if task_version_summary is not None:
            self.task_version_summary = task_version_summary
        if acl is not None:
            self.acl = acl
        if tenant_id is not None:
            self.tenant_id = tenant_id
        if sub_tenant_id is not None:
            self.sub_tenant_id = sub_tenant_id
        if created_by is not None:
            self.created_by = created_by
        if time_created is not None:
            self.time_created = time_created
        if modified_by is not None:
            self.modified_by = modified_by
        if time_modified is not None:
            self.time_modified = time_modified