Module pachyderm_sdk.api.taskapi
Expand source code
# Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: api/taskapi/task.proto
# plugin: python-betterproto
# This file has been @generated
from dataclasses import dataclass
from typing import TYPE_CHECKING
import betterproto
import betterproto.lib.google.protobuf as betterproto_lib_google_protobuf
if TYPE_CHECKING:
import grpc
class State(betterproto.Enum):
UNKNOWN = 0
RUNNING = 1
SUCCESS = 2
FAILURE = 3
CLAIMED = 4
@dataclass(eq=False, repr=False)
class Group(betterproto.Message):
namespace: str = betterproto.string_field(1)
group: str = betterproto.string_field(2)
@dataclass(eq=False, repr=False)
class TaskInfo(betterproto.Message):
id: str = betterproto.string_field(1)
group: "Group" = betterproto.message_field(2)
state: "State" = betterproto.enum_field(3)
reason: str = betterproto.string_field(4)
input_type: str = betterproto.string_field(5)
input_data: str = betterproto.string_field(6)
@dataclass(eq=False, repr=False)
class ListTaskRequest(betterproto.Message):
group: "Group" = betterproto.message_field(1)
Classes
class State (*args, **kwds)
-
The base class for protobuf enumerations, all generated enumerations will inherit from this. Bases :class:
enum.IntEnum
.Expand source code
class State(betterproto.Enum): UNKNOWN = 0 RUNNING = 1 SUCCESS = 2 FAILURE = 3 CLAIMED = 4
Ancestors
- betterproto.Enum
- enum.IntEnum
- builtins.int
- enum.ReprEnum
- enum.Enum
Class variables
var UNKNOWN
var RUNNING
var SUCCESS
var FAILURE
var CLAIMED
class Group (namespace: str = None, group: str = None)
-
Group(namespace: str = None, group: str = None)
Expand source code
@dataclass(eq=False, repr=False) class Group(betterproto.Message): namespace: str = betterproto.string_field(1) group: str = betterproto.string_field(2)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var namespace : str
var group : str
class TaskInfo (id: str = None, group: Group = None, state: State = None, reason: str = None, input_type: str = None, input_data: str = None)
-
TaskInfo(id: str = None, group: 'Group' = None, state: 'State' = None, reason: str = None, input_type: str = None, input_data: str = None)
Expand source code
@dataclass(eq=False, repr=False) class TaskInfo(betterproto.Message): id: str = betterproto.string_field(1) group: "Group" = betterproto.message_field(2) state: "State" = betterproto.enum_field(3) reason: str = betterproto.string_field(4) input_type: str = betterproto.string_field(5) input_data: str = betterproto.string_field(6)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var id : str
var group : Group
var state : State
var reason : str
var input_type : str
var input_data : str
class ListTaskRequest (group: Group = None)
-
ListTaskRequest(group: 'Group' = None)
Expand source code
@dataclass(eq=False, repr=False) class ListTaskRequest(betterproto.Message): group: "Group" = betterproto.message_field(1)
Ancestors
- betterproto.Message
- abc.ABC
Class variables
var group : Group