#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretMount {
#[prost(string, tag="1")]
pub name: std::string::String,
#[prost(string, tag="4")]
pub key: std::string::String,
#[prost(string, tag="2")]
pub mount_path: std::string::String,
#[prost(string, tag="3")]
pub env_var: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Transform {
#[prost(string, tag="1")]
pub image: std::string::String,
#[prost(string, repeated, tag="2")]
pub cmd: ::std::vec::Vec<std::string::String>,
#[prost(string, repeated, tag="13")]
pub err_cmd: ::std::vec::Vec<std::string::String>,
#[prost(map="string, string", tag="3")]
pub env: ::std::collections::HashMap<std::string::String, std::string::String>,
#[prost(message, repeated, tag="4")]
pub secrets: ::std::vec::Vec<SecretMount>,
#[prost(string, repeated, tag="9")]
pub image_pull_secrets: ::std::vec::Vec<std::string::String>,
#[prost(string, repeated, tag="5")]
pub stdin: ::std::vec::Vec<std::string::String>,
#[prost(string, repeated, tag="14")]
pub err_stdin: ::std::vec::Vec<std::string::String>,
#[prost(int64, repeated, tag="6")]
pub accept_return_code: ::std::vec::Vec<i64>,
#[prost(bool, tag="7")]
pub debug: bool,
#[prost(string, tag="10")]
pub user: std::string::String,
#[prost(string, tag="11")]
pub working_dir: std::string::String,
#[prost(string, tag="12")]
pub dockerfile: std::string::String,
#[prost(message, optional, tag="15")]
pub build: ::std::option::Option<BuildSpec>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BuildSpec {
#[prost(string, tag="1")]
pub path: std::string::String,
#[prost(string, tag="2")]
pub language: std::string::String,
#[prost(string, tag="3")]
pub image: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TfJob {
#[prost(string, tag="1")]
pub tf_job: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Egress {
#[prost(string, tag="1")]
pub url: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Job {
#[prost(string, tag="1")]
pub id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Metadata {
#[prost(map="string, string", tag="1")]
pub annotations: ::std::collections::HashMap<std::string::String, std::string::String>,
#[prost(map="string, string", tag="2")]
pub labels: ::std::collections::HashMap<std::string::String, std::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Service {
#[prost(int32, tag="1")]
pub internal_port: i32,
#[prost(int32, tag="2")]
pub external_port: i32,
#[prost(string, tag="3")]
pub ip: std::string::String,
#[prost(string, tag="4")]
pub r#type: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Spout {
#[prost(bool, tag="1")]
pub overwrite: bool,
#[prost(message, optional, tag="2")]
pub service: ::std::option::Option<Service>,
#[prost(string, tag="3")]
pub marker: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PfsInput {
#[prost(string, tag="1")]
pub name: std::string::String,
#[prost(string, tag="2")]
pub repo: std::string::String,
#[prost(string, tag="3")]
pub branch: std::string::String,
#[prost(string, tag="4")]
pub commit: std::string::String,
#[prost(string, tag="5")]
pub glob: std::string::String,
#[prost(string, tag="8")]
pub join_on: std::string::String,
#[prost(bool, tag="6")]
pub lazy: bool,
#[prost(bool, tag="7")]
pub empty_files: bool,
#[prost(bool, tag="9")]
pub s3: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CronInput {
#[prost(string, tag="1")]
pub name: std::string::String,
#[prost(string, tag="2")]
pub repo: std::string::String,
#[prost(string, tag="3")]
pub commit: std::string::String,
#[prost(string, tag="4")]
pub spec: std::string::String,
#[prost(bool, tag="6")]
pub overwrite: bool,
#[prost(message, optional, tag="5")]
pub start: ::std::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GitInput {
#[prost(string, tag="1")]
pub name: std::string::String,
#[prost(string, tag="2")]
pub url: std::string::String,
#[prost(string, tag="3")]
pub branch: std::string::String,
#[prost(string, tag="4")]
pub commit: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Input {
#[prost(message, optional, tag="6")]
pub pfs: ::std::option::Option<PfsInput>,
#[prost(message, repeated, tag="7")]
pub join: ::std::vec::Vec<Input>,
#[prost(message, repeated, tag="2")]
pub cross: ::std::vec::Vec<Input>,
#[prost(message, repeated, tag="3")]
pub union: ::std::vec::Vec<Input>,
#[prost(message, optional, tag="4")]
pub cron: ::std::option::Option<CronInput>,
#[prost(message, optional, tag="5")]
pub git: ::std::option::Option<GitInput>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobInput {
#[prost(string, tag="4")]
pub name: std::string::String,
#[prost(message, optional, tag="1")]
pub commit: ::std::option::Option<super::pfs::Commit>,
#[prost(string, tag="2")]
pub glob: std::string::String,
#[prost(bool, tag="3")]
pub lazy: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParallelismSpec {
#[prost(uint64, tag="2")]
pub constant: u64,
#[prost(double, tag="3")]
pub coefficient: f64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HashtreeSpec {
#[prost(uint64, tag="1")]
pub constant: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InputFile {
#[prost(string, tag="4")]
pub path: std::string::String,
#[prost(bytes, tag="5")]
pub hash: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Datum {
#[prost(string, tag="1")]
pub id: std::string::String,
#[prost(message, optional, tag="2")]
pub job: ::std::option::Option<Job>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DatumInfo {
#[prost(message, optional, tag="1")]
pub datum: ::std::option::Option<Datum>,
#[prost(enumeration="DatumState", tag="2")]
pub state: i32,
#[prost(message, optional, tag="3")]
pub stats: ::std::option::Option<ProcessStats>,
#[prost(message, optional, tag="4")]
pub pfs_state: ::std::option::Option<super::pfs::File>,
#[prost(message, repeated, tag="5")]
pub data: ::std::vec::Vec<super::pfs::FileInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Aggregate {
#[prost(int64, tag="1")]
pub count: i64,
#[prost(double, tag="2")]
pub mean: f64,
#[prost(double, tag="3")]
pub stddev: f64,
#[prost(double, tag="4")]
pub fifth_percentile: f64,
#[prost(double, tag="5")]
pub ninety_fifth_percentile: f64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessStats {
#[prost(message, optional, tag="1")]
pub download_time: ::std::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag="2")]
pub process_time: ::std::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag="3")]
pub upload_time: ::std::option::Option<::prost_types::Duration>,
#[prost(uint64, tag="4")]
pub download_bytes: u64,
#[prost(uint64, tag="5")]
pub upload_bytes: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregateProcessStats {
#[prost(message, optional, tag="1")]
pub download_time: ::std::option::Option<Aggregate>,
#[prost(message, optional, tag="2")]
pub process_time: ::std::option::Option<Aggregate>,
#[prost(message, optional, tag="3")]
pub upload_time: ::std::option::Option<Aggregate>,
#[prost(message, optional, tag="4")]
pub download_bytes: ::std::option::Option<Aggregate>,
#[prost(message, optional, tag="5")]
pub upload_bytes: ::std::option::Option<Aggregate>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkerStatus {
#[prost(string, tag="1")]
pub worker_id: std::string::String,
#[prost(string, tag="2")]
pub job_id: std::string::String,
#[prost(message, repeated, tag="3")]
pub data: ::std::vec::Vec<InputFile>,
#[prost(message, optional, tag="4")]
pub started: ::std::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag="5")]
pub stats: ::std::option::Option<ProcessStats>,
#[prost(int64, tag="6")]
pub queue_size: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceSpec {
#[prost(float, tag="1")]
pub cpu: f32,
#[prost(string, tag="2")]
pub memory: std::string::String,
#[prost(message, optional, tag="5")]
pub gpu: ::std::option::Option<GpuSpec>,
#[prost(string, tag="4")]
pub disk: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GpuSpec {
#[prost(string, tag="1")]
pub r#type: std::string::String,
#[prost(int64, tag="2")]
pub number: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EtcdJobInfo {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
#[prost(message, optional, tag="2")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(message, optional, tag="3")]
pub output_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(uint64, tag="4")]
pub restart: u64,
#[prost(int64, tag="5")]
pub data_processed: i64,
#[prost(int64, tag="6")]
pub data_skipped: i64,
#[prost(int64, tag="7")]
pub data_total: i64,
#[prost(int64, tag="8")]
pub data_failed: i64,
#[prost(int64, tag="15")]
pub data_recovered: i64,
#[prost(message, optional, tag="9")]
pub stats: ::std::option::Option<ProcessStats>,
#[prost(message, optional, tag="10")]
pub stats_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(enumeration="JobState", tag="11")]
pub state: i32,
#[prost(string, tag="12")]
pub reason: std::string::String,
#[prost(message, optional, tag="13")]
pub started: ::std::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag="14")]
pub finished: ::std::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobInfo {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
#[prost(message, optional, tag="2")]
pub transform: ::std::option::Option<Transform>,
#[prost(message, optional, tag="3")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(uint64, tag="13")]
pub pipeline_version: u64,
#[prost(message, optional, tag="47")]
pub spec_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(message, optional, tag="12")]
pub parallelism_spec: ::std::option::Option<ParallelismSpec>,
#[prost(message, optional, tag="15")]
pub egress: ::std::option::Option<Egress>,
#[prost(message, optional, tag="6")]
pub parent_job: ::std::option::Option<Job>,
#[prost(message, optional, tag="7")]
pub started: ::std::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag="8")]
pub finished: ::std::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag="9")]
pub output_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(enumeration="JobState", tag="10")]
pub state: i32,
#[prost(string, tag="35")]
pub reason: std::string::String,
#[prost(message, optional, tag="14")]
pub service: ::std::option::Option<Service>,
#[prost(message, optional, tag="45")]
pub spout: ::std::option::Option<Spout>,
#[prost(message, optional, tag="18")]
pub output_repo: ::std::option::Option<super::pfs::Repo>,
#[prost(string, tag="17")]
pub output_branch: std::string::String,
#[prost(uint64, tag="20")]
pub restart: u64,
#[prost(int64, tag="22")]
pub data_processed: i64,
#[prost(int64, tag="30")]
pub data_skipped: i64,
#[prost(int64, tag="40")]
pub data_failed: i64,
#[prost(int64, tag="46")]
pub data_recovered: i64,
#[prost(int64, tag="23")]
pub data_total: i64,
#[prost(message, optional, tag="31")]
pub stats: ::std::option::Option<ProcessStats>,
#[prost(message, repeated, tag="24")]
pub worker_status: ::std::vec::Vec<WorkerStatus>,
#[prost(message, optional, tag="25")]
pub resource_requests: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="36")]
pub resource_limits: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="48")]
pub sidecar_resource_limits: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="26")]
pub input: ::std::option::Option<Input>,
#[prost(message, optional, tag="27")]
pub new_branch: ::std::option::Option<super::pfs::BranchInfo>,
#[prost(message, optional, tag="29")]
pub stats_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(bool, tag="32")]
pub enable_stats: bool,
#[prost(string, tag="33")]
pub salt: std::string::String,
#[prost(message, optional, tag="37")]
pub chunk_spec: ::std::option::Option<ChunkSpec>,
#[prost(message, optional, tag="38")]
pub datum_timeout: ::std::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag="39")]
pub job_timeout: ::std::option::Option<::prost_types::Duration>,
#[prost(int64, tag="41")]
pub datum_tries: i64,
#[prost(message, optional, tag="42")]
pub scheduling_spec: ::std::option::Option<SchedulingSpec>,
#[prost(string, tag="43")]
pub pod_spec: std::string::String,
#[prost(string, tag="44")]
pub pod_patch: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Worker {
#[prost(string, tag="1")]
pub name: std::string::String,
#[prost(enumeration="WorkerState", tag="2")]
pub state: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobInfos {
#[prost(message, repeated, tag="1")]
pub job_info: ::std::vec::Vec<JobInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Pipeline {
#[prost(string, tag="1")]
pub name: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EtcdPipelineInfo {
#[prost(enumeration="PipelineState", tag="1")]
pub state: i32,
#[prost(string, tag="4")]
pub reason: std::string::String,
#[prost(message, optional, tag="2")]
pub spec_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(map="int32, int32", tag="3")]
pub job_counts: ::std::collections::HashMap<i32, i32>,
#[prost(string, tag="5")]
pub auth_token: std::string::String,
#[prost(enumeration="JobState", tag="6")]
pub last_job_state: i32,
#[prost(uint64, tag="7")]
pub parallelism: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PipelineInfo {
#[prost(string, tag="17")]
pub id: std::string::String,
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(uint64, tag="11")]
pub version: u64,
#[prost(message, optional, tag="2")]
pub transform: ::std::option::Option<Transform>,
#[prost(message, optional, tag="46")]
pub tf_job: ::std::option::Option<TfJob>,
#[prost(message, optional, tag="10")]
pub parallelism_spec: ::std::option::Option<ParallelismSpec>,
#[prost(message, optional, tag="42")]
pub hashtree_spec: ::std::option::Option<HashtreeSpec>,
#[prost(message, optional, tag="15")]
pub egress: ::std::option::Option<Egress>,
#[prost(message, optional, tag="6")]
pub created_at: ::std::option::Option<::prost_types::Timestamp>,
#[prost(enumeration="PipelineState", tag="7")]
pub state: i32,
#[prost(bool, tag="38")]
pub stopped: bool,
#[prost(string, tag="8")]
pub recent_error: std::string::String,
#[prost(int64, tag="49")]
pub workers_requested: i64,
#[prost(int64, tag="50")]
pub workers_available: i64,
#[prost(map="int32, int32", tag="9")]
pub job_counts: ::std::collections::HashMap<i32, i32>,
#[prost(enumeration="JobState", tag="43")]
pub last_job_state: i32,
#[prost(string, tag="16")]
pub output_branch: std::string::String,
#[prost(message, optional, tag="19")]
pub resource_requests: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="31")]
pub resource_limits: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="51")]
pub sidecar_resource_limits: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="20")]
pub input: ::std::option::Option<Input>,
#[prost(string, tag="21")]
pub description: std::string::String,
#[prost(string, tag="23")]
pub cache_size: std::string::String,
#[prost(bool, tag="24")]
pub enable_stats: bool,
#[prost(string, tag="25")]
pub salt: std::string::String,
#[prost(string, tag="28")]
pub reason: std::string::String,
#[prost(int64, tag="29")]
pub max_queue_size: i64,
#[prost(message, optional, tag="30")]
pub service: ::std::option::Option<Service>,
#[prost(message, optional, tag="45")]
pub spout: ::std::option::Option<Spout>,
#[prost(message, optional, tag="32")]
pub chunk_spec: ::std::option::Option<ChunkSpec>,
#[prost(message, optional, tag="33")]
pub datum_timeout: ::std::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag="34")]
pub job_timeout: ::std::option::Option<::prost_types::Duration>,
#[prost(string, tag="35")]
pub githook_url: std::string::String,
#[prost(message, optional, tag="36")]
pub spec_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(bool, tag="37")]
pub standby: bool,
#[prost(int64, tag="39")]
pub datum_tries: i64,
#[prost(message, optional, tag="40")]
pub scheduling_spec: ::std::option::Option<SchedulingSpec>,
#[prost(string, tag="41")]
pub pod_spec: std::string::String,
#[prost(string, tag="44")]
pub pod_patch: std::string::String,
#[prost(bool, tag="47")]
pub s3_out: bool,
#[prost(message, optional, tag="48")]
pub metadata: ::std::option::Option<Metadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PipelineInfos {
#[prost(message, repeated, tag="1")]
pub pipeline_info: ::std::vec::Vec<PipelineInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateJobRequest {
#[prost(message, optional, tag="2")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(message, optional, tag="25")]
pub output_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(uint64, tag="26")]
pub restart: u64,
#[prost(int64, tag="27")]
pub data_processed: i64,
#[prost(int64, tag="28")]
pub data_skipped: i64,
#[prost(int64, tag="29")]
pub data_total: i64,
#[prost(int64, tag="30")]
pub data_failed: i64,
#[prost(int64, tag="31")]
pub data_recovered: i64,
#[prost(message, optional, tag="32")]
pub stats: ::std::option::Option<ProcessStats>,
#[prost(message, optional, tag="33")]
pub stats_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(enumeration="JobState", tag="34")]
pub state: i32,
#[prost(string, tag="35")]
pub reason: std::string::String,
#[prost(message, optional, tag="36")]
pub started: ::std::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag="37")]
pub finished: ::std::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InspectJobRequest {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
#[prost(message, optional, tag="3")]
pub output_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(bool, tag="2")]
pub block_state: bool,
#[prost(bool, tag="4")]
pub full: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(message, repeated, tag="2")]
pub input_commit: ::std::vec::Vec<super::pfs::Commit>,
#[prost(message, optional, tag="3")]
pub output_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(int64, tag="4")]
pub history: i64,
#[prost(bool, tag="5")]
pub full: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FlushJobRequest {
#[prost(message, repeated, tag="1")]
pub commits: ::std::vec::Vec<super::pfs::Commit>,
#[prost(message, repeated, tag="2")]
pub to_pipelines: ::std::vec::Vec<Pipeline>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteJobRequest {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopJobRequest {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateJobStateRequest {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
#[prost(enumeration="JobState", tag="2")]
pub state: i32,
#[prost(string, tag="3")]
pub reason: std::string::String,
#[prost(uint64, tag="4")]
pub restart: u64,
#[prost(int64, tag="5")]
pub data_processed: i64,
#[prost(int64, tag="6")]
pub data_skipped: i64,
#[prost(int64, tag="7")]
pub data_failed: i64,
#[prost(int64, tag="8")]
pub data_recovered: i64,
#[prost(int64, tag="9")]
pub data_total: i64,
#[prost(message, optional, tag="10")]
pub stats: ::std::option::Option<ProcessStats>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLogsRequest {
#[prost(message, optional, tag="2")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
#[prost(string, repeated, tag="3")]
pub data_filters: ::std::vec::Vec<std::string::String>,
#[prost(message, optional, tag="6")]
pub datum: ::std::option::Option<Datum>,
#[prost(bool, tag="5")]
pub master: bool,
#[prost(bool, tag="7")]
pub follow: bool,
#[prost(int64, tag="8")]
pub tail: i64,
#[prost(bool, tag="9")]
pub use_loki_backend: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogMessage {
#[prost(string, tag="1")]
pub pipeline_name: std::string::String,
#[prost(string, tag="3")]
pub job_id: std::string::String,
#[prost(string, tag="7")]
pub worker_id: std::string::String,
#[prost(string, tag="9")]
pub datum_id: std::string::String,
#[prost(bool, tag="10")]
pub master: bool,
#[prost(message, repeated, tag="4")]
pub data: ::std::vec::Vec<InputFile>,
#[prost(bool, tag="8")]
pub user: bool,
#[prost(message, optional, tag="5")]
pub ts: ::std::option::Option<::prost_types::Timestamp>,
#[prost(string, tag="6")]
pub message: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RestartDatumRequest {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
#[prost(string, repeated, tag="2")]
pub data_filters: ::std::vec::Vec<std::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InspectDatumRequest {
#[prost(message, optional, tag="1")]
pub datum: ::std::option::Option<Datum>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDatumRequest {
#[prost(message, optional, tag="1")]
pub job: ::std::option::Option<Job>,
#[prost(int64, tag="2")]
pub page_size: i64,
#[prost(int64, tag="3")]
pub page: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDatumResponse {
#[prost(message, repeated, tag="1")]
pub datum_infos: ::std::vec::Vec<DatumInfo>,
#[prost(int64, tag="2")]
pub total_pages: i64,
#[prost(int64, tag="3")]
pub page: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDatumStreamResponse {
#[prost(message, optional, tag="1")]
pub datum_info: ::std::option::Option<DatumInfo>,
#[prost(int64, tag="2")]
pub total_pages: i64,
#[prost(int64, tag="3")]
pub page: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChunkSpec {
#[prost(int64, tag="1")]
pub number: i64,
#[prost(int64, tag="2")]
pub size_bytes: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchedulingSpec {
#[prost(map="string, string", tag="1")]
pub node_selector: ::std::collections::HashMap<std::string::String, std::string::String>,
#[prost(string, tag="2")]
pub priority_class_name: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreatePipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(message, optional, tag="35")]
pub tf_job: ::std::option::Option<TfJob>,
#[prost(message, optional, tag="2")]
pub transform: ::std::option::Option<Transform>,
#[prost(message, optional, tag="7")]
pub parallelism_spec: ::std::option::Option<ParallelismSpec>,
#[prost(message, optional, tag="31")]
pub hashtree_spec: ::std::option::Option<HashtreeSpec>,
#[prost(message, optional, tag="9")]
pub egress: ::std::option::Option<Egress>,
#[prost(bool, tag="5")]
pub update: bool,
#[prost(string, tag="10")]
pub output_branch: std::string::String,
#[prost(bool, tag="36")]
pub s3_out: bool,
#[prost(message, optional, tag="12")]
pub resource_requests: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="22")]
pub resource_limits: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="47")]
pub sidecar_resource_limits: ::std::option::Option<ResourceSpec>,
#[prost(message, optional, tag="13")]
pub input: ::std::option::Option<Input>,
#[prost(string, tag="14")]
pub description: std::string::String,
#[prost(string, tag="16")]
pub cache_size: std::string::String,
#[prost(bool, tag="17")]
pub enable_stats: bool,
#[prost(bool, tag="18")]
pub reprocess: bool,
#[prost(int64, tag="20")]
pub max_queue_size: i64,
#[prost(message, optional, tag="21")]
pub service: ::std::option::Option<Service>,
#[prost(message, optional, tag="33")]
pub spout: ::std::option::Option<Spout>,
#[prost(message, optional, tag="23")]
pub chunk_spec: ::std::option::Option<ChunkSpec>,
#[prost(message, optional, tag="24")]
pub datum_timeout: ::std::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag="25")]
pub job_timeout: ::std::option::Option<::prost_types::Duration>,
#[prost(string, tag="26")]
pub salt: std::string::String,
#[prost(bool, tag="27")]
pub standby: bool,
#[prost(int64, tag="28")]
pub datum_tries: i64,
#[prost(message, optional, tag="29")]
pub scheduling_spec: ::std::option::Option<SchedulingSpec>,
#[prost(string, tag="30")]
pub pod_spec: std::string::String,
#[prost(string, tag="32")]
pub pod_patch: std::string::String,
#[prost(message, optional, tag="34")]
pub spec_commit: ::std::option::Option<super::pfs::Commit>,
#[prost(message, optional, tag="46")]
pub metadata: ::std::option::Option<Metadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InspectPipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(int64, tag="2")]
pub history: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(bool, tag="4")]
pub all: bool,
#[prost(bool, tag="5")]
pub force: bool,
#[prost(bool, tag="6")]
pub keep_repo: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartPipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopPipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunPipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
#[prost(message, repeated, tag="2")]
pub provenance: ::std::vec::Vec<super::pfs::CommitProvenance>,
#[prost(string, tag="4")]
pub job_id: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunCronRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<Pipeline>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSecretRequest {
#[prost(bytes, tag="1")]
pub file: std::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSecretRequest {
#[prost(message, optional, tag="1")]
pub secret: ::std::option::Option<Secret>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InspectSecretRequest {
#[prost(message, optional, tag="1")]
pub secret: ::std::option::Option<Secret>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Secret {
#[prost(string, tag="1")]
pub name: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretInfo {
#[prost(message, optional, tag="1")]
pub secret: ::std::option::Option<Secret>,
#[prost(string, tag="2")]
pub r#type: std::string::String,
#[prost(message, optional, tag="3")]
pub creation_timestamp: ::std::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretInfos {
#[prost(message, repeated, tag="1")]
pub secret_info: ::std::vec::Vec<SecretInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GarbageCollectRequest {
#[prost(int64, tag="1")]
pub memory_bytes: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GarbageCollectResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivateAuthRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivateAuthResponse {
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum JobState {
JobStarting = 0,
JobRunning = 1,
JobFailure = 2,
JobSuccess = 3,
JobKilled = 4,
JobMerging = 5,
JobEgressing = 6,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DatumState {
Failed = 0,
Success = 1,
Skipped = 2,
Starting = 3,
Recovered = 4,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum WorkerState {
PodRunning = 0,
PodSuccess = 1,
PodFailed = 2,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PipelineState {
PipelineStarting = 0,
PipelineRunning = 1,
PipelineRestarting = 2,
PipelineFailure = 3,
PipelinePaused = 4,
PipelineStandby = 5,
PipelineCrashing = 6,
}
# [ doc = r" Generated client implementations." ] pub mod api_client { # ! [ allow ( unused_variables , dead_code , missing_docs ) ] use tonic :: codegen :: * ; pub struct ApiClient < T > { inner : tonic :: client :: Grpc < T > , } impl ApiClient < tonic :: transport :: Channel > { # [ doc = r" Attempt to create a new client by connecting to a given endpoint." ] pub async fn connect < D > ( dst : D ) -> Result < Self , tonic :: transport :: Error > where D : std :: convert :: TryInto < tonic :: transport :: Endpoint > , D :: Error : Into < StdError > , { let conn = tonic :: transport :: Endpoint :: new ( dst ) ? . connect ( ) . await ? ; Ok ( Self :: new ( conn ) ) } } impl < T > ApiClient < T > where T : tonic :: client :: GrpcService < tonic :: body :: BoxBody > , T :: ResponseBody : Body + HttpBody + Send + 'static , T :: Error : Into < StdError > , < T :: ResponseBody as HttpBody > :: Error : Into < StdError > + Send , { pub fn new ( inner : T ) -> Self { let inner = tonic :: client :: Grpc :: new ( inner ) ; Self { inner } } pub fn with_interceptor ( inner : T , interceptor : impl Into < tonic :: Interceptor > ) -> Self { let inner = tonic :: client :: Grpc :: with_interceptor ( inner , interceptor ) ; Self { inner } } pub async fn create_job ( & mut self , request : impl tonic :: IntoRequest < super :: CreateJobRequest > , ) -> Result < tonic :: Response < super :: Job > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/CreateJob" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn inspect_job ( & mut self , request : impl tonic :: IntoRequest < super :: InspectJobRequest > , ) -> Result < tonic :: Response < super :: JobInfo > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/InspectJob" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } # [ doc = " ListJob returns information about current and past Pachyderm jobs. This is" ] # [ doc = " deprecated in favor of ListJobStream" ] pub async fn list_job ( & mut self , request : impl tonic :: IntoRequest < super :: ListJobRequest > , ) -> Result < tonic :: Response < super :: JobInfos > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/ListJob" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } # [ doc = " ListJobStream returns information about current and past Pachyderm jobs." ] pub async fn list_job_stream ( & mut self , request : impl tonic :: IntoRequest < super :: ListJobRequest > , ) -> Result < tonic :: Response < tonic :: codec :: Streaming < super :: JobInfo >> , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/ListJobStream" ) ; self . inner . server_streaming ( request . into_request ( ) , path , codec ) . await } pub async fn flush_job ( & mut self , request : impl tonic :: IntoRequest < super :: FlushJobRequest > , ) -> Result < tonic :: Response < tonic :: codec :: Streaming < super :: JobInfo >> , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/FlushJob" ) ; self . inner . server_streaming ( request . into_request ( ) , path , codec ) . await } pub async fn delete_job ( & mut self , request : impl tonic :: IntoRequest < super :: DeleteJobRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/DeleteJob" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn stop_job ( & mut self , request : impl tonic :: IntoRequest < super :: StopJobRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/StopJob" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn inspect_datum ( & mut self , request : impl tonic :: IntoRequest < super :: InspectDatumRequest > , ) -> Result < tonic :: Response < super :: DatumInfo > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/InspectDatum" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } # [ doc = " ListDatum returns information about each datum fed to a Pachyderm job. This" ] # [ doc = " is deprecated in favor of ListDatumStream" ] pub async fn list_datum ( & mut self , request : impl tonic :: IntoRequest < super :: ListDatumRequest > , ) -> Result < tonic :: Response < super :: ListDatumResponse > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/ListDatum" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } # [ doc = " ListDatumStream returns information about each datum fed to a Pachyderm job" ] pub async fn list_datum_stream ( & mut self , request : impl tonic :: IntoRequest < super :: ListDatumRequest > , ) -> Result < tonic :: Response < tonic :: codec :: Streaming < super :: ListDatumStreamResponse >> , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/ListDatumStream" ) ; self . inner . server_streaming ( request . into_request ( ) , path , codec ) . await } pub async fn restart_datum ( & mut self , request : impl tonic :: IntoRequest < super :: RestartDatumRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/RestartDatum" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn create_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: CreatePipelineRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/CreatePipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn inspect_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: InspectPipelineRequest > , ) -> Result < tonic :: Response < super :: PipelineInfo > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/InspectPipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn list_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: ListPipelineRequest > , ) -> Result < tonic :: Response < super :: PipelineInfos > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/ListPipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn delete_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: DeletePipelineRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/DeletePipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn start_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: StartPipelineRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/StartPipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn stop_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: StopPipelineRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/StopPipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn run_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: RunPipelineRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/RunPipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn run_cron ( & mut self , request : impl tonic :: IntoRequest < super :: RunCronRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/RunCron" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn create_secret ( & mut self , request : impl tonic :: IntoRequest < super :: CreateSecretRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/CreateSecret" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn delete_secret ( & mut self , request : impl tonic :: IntoRequest < super :: DeleteSecretRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/DeleteSecret" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn list_secret ( & mut self , request : impl tonic :: IntoRequest < ( ) > , ) -> Result < tonic :: Response < super :: SecretInfos > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/ListSecret" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn inspect_secret ( & mut self , request : impl tonic :: IntoRequest < super :: InspectSecretRequest > , ) -> Result < tonic :: Response < super :: SecretInfo > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/InspectSecret" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } # [ doc = " DeleteAll deletes everything" ] pub async fn delete_all ( & mut self , request : impl tonic :: IntoRequest < ( ) > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/DeleteAll" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn get_logs ( & mut self , request : impl tonic :: IntoRequest < super :: GetLogsRequest > , ) -> Result < tonic :: Response < tonic :: codec :: Streaming < super :: LogMessage >> , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/GetLogs" ) ; self . inner . server_streaming ( request . into_request ( ) , path , codec ) . await } # [ doc = " Garbage collection" ] pub async fn garbage_collect ( & mut self , request : impl tonic :: IntoRequest < super :: GarbageCollectRequest > , ) -> Result < tonic :: Response < super :: GarbageCollectResponse > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/GarbageCollect" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } # [ doc = " An internal call that causes PPS to put itself into an auth-enabled state" ] # [ doc = " (all pipeline have tokens, correct permissions, etcd)" ] pub async fn activate_auth ( & mut self , request : impl tonic :: IntoRequest < super :: ActivateAuthRequest > , ) -> Result < tonic :: Response < super :: ActivateAuthResponse > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/ActivateAuth" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } # [ doc = " An internal call used to move a job from one state to another" ] pub async fn update_job_state ( & mut self , request : impl tonic :: IntoRequest < super :: UpdateJobStateRequest > , ) -> Result < tonic :: Response < ( ) > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( "Service was not ready: {}" , e . into ( ) ) ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( "/pps.API/UpdateJobState" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } } impl < T : Clone > Clone for ApiClient < T > { fn clone ( & self ) -> Self { Self { inner : self . inner . clone ( ) , } } } impl < T > std :: fmt :: Debug for ApiClient < T > { fn fmt ( & self , f : & mut std :: fmt :: Formatter < '_ > ) -> std :: fmt :: Result { write ! ( f , "ApiClient {{ ... }}" ) } } }