#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Op17 {
#[prost(message, optional, tag="2")]
pub object: ::std::option::Option<super::pfs_1_7::PutObjectRequest>,
#[prost(message, optional, tag="3")]
pub tag: ::std::option::Option<super::pfs_1_7::TagObjectRequest>,
#[prost(message, optional, tag="4")]
pub repo: ::std::option::Option<super::pfs_1_7::CreateRepoRequest>,
#[prost(message, optional, tag="5")]
pub commit: ::std::option::Option<super::pfs_1_7::BuildCommitRequest>,
#[prost(message, optional, tag="6")]
pub branch: ::std::option::Option<super::pfs_1_7::CreateBranchRequest>,
#[prost(message, optional, tag="7")]
pub pipeline: ::std::option::Option<super::pps_1_7::CreatePipelineRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Op18 {
#[prost(message, optional, tag="2")]
pub object: ::std::option::Option<super::pfs_1_8::PutObjectRequest>,
#[prost(message, optional, tag="3")]
pub tag: ::std::option::Option<super::pfs_1_8::TagObjectRequest>,
#[prost(message, optional, tag="4")]
pub repo: ::std::option::Option<super::pfs_1_8::CreateRepoRequest>,
#[prost(message, optional, tag="5")]
pub commit: ::std::option::Option<super::pfs_1_8::BuildCommitRequest>,
#[prost(message, optional, tag="6")]
pub branch: ::std::option::Option<super::pfs_1_8::CreateBranchRequest>,
#[prost(message, optional, tag="7")]
pub pipeline: ::std::option::Option<super::pps_1_8::CreatePipelineRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Op19 {
#[prost(message, optional, tag="2")]
pub object: ::std::option::Option<super::pfs_1_9::PutObjectRequest>,
#[prost(message, optional, tag="9")]
pub create_object: ::std::option::Option<super::pfs_1_9::CreateObjectRequest>,
#[prost(message, optional, tag="3")]
pub tag: ::std::option::Option<super::pfs_1_9::TagObjectRequest>,
#[prost(message, optional, tag="10")]
pub block: ::std::option::Option<super::pfs_1_9::PutBlockRequest>,
#[prost(message, optional, tag="4")]
pub repo: ::std::option::Option<super::pfs_1_9::CreateRepoRequest>,
#[prost(message, optional, tag="5")]
pub commit: ::std::option::Option<super::pfs_1_9::BuildCommitRequest>,
#[prost(message, optional, tag="6")]
pub branch: ::std::option::Option<super::pfs_1_9::CreateBranchRequest>,
#[prost(message, optional, tag="7")]
pub pipeline: ::std::option::Option<super::pps_1_9::CreatePipelineRequest>,
#[prost(message, optional, tag="8")]
pub job: ::std::option::Option<super::pps_1_9::CreateJobRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Op110 {
#[prost(message, optional, tag="2")]
pub object: ::std::option::Option<super::pfs_1_10::PutObjectRequest>,
#[prost(message, optional, tag="9")]
pub create_object: ::std::option::Option<super::pfs_1_10::CreateObjectRequest>,
#[prost(message, optional, tag="3")]
pub tag: ::std::option::Option<super::pfs_1_10::TagObjectRequest>,
#[prost(message, optional, tag="10")]
pub block: ::std::option::Option<super::pfs_1_10::PutBlockRequest>,
#[prost(message, optional, tag="4")]
pub repo: ::std::option::Option<super::pfs_1_10::CreateRepoRequest>,
#[prost(message, optional, tag="5")]
pub commit: ::std::option::Option<super::pfs_1_10::BuildCommitRequest>,
#[prost(message, optional, tag="6")]
pub branch: ::std::option::Option<super::pfs_1_10::CreateBranchRequest>,
#[prost(message, optional, tag="7")]
pub pipeline: ::std::option::Option<super::pps_1_10::CreatePipelineRequest>,
#[prost(message, optional, tag="8")]
pub job: ::std::option::Option<super::pps_1_10::CreateJobRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Op111 {
#[prost(message, optional, tag="2")]
pub object: ::std::option::Option<super::pfs::PutObjectRequest>,
#[prost(message, optional, tag="9")]
pub create_object: ::std::option::Option<super::pfs::CreateObjectRequest>,
#[prost(message, optional, tag="3")]
pub tag: ::std::option::Option<super::pfs::TagObjectRequest>,
#[prost(message, optional, tag="10")]
pub block: ::std::option::Option<super::pfs::PutBlockRequest>,
#[prost(message, optional, tag="4")]
pub repo: ::std::option::Option<super::pfs::CreateRepoRequest>,
#[prost(message, optional, tag="5")]
pub commit: ::std::option::Option<super::pfs::BuildCommitRequest>,
#[prost(message, optional, tag="6")]
pub branch: ::std::option::Option<super::pfs::CreateBranchRequest>,
#[prost(message, optional, tag="7")]
pub pipeline: ::std::option::Option<super::pps::CreatePipelineRequest>,
#[prost(message, optional, tag="8")]
pub job: ::std::option::Option<super::pps::CreateJobRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Op {
#[prost(message, optional, tag="1")]
pub op1_7: ::std::option::Option<Op17>,
#[prost(message, optional, tag="2")]
pub op1_8: ::std::option::Option<Op18>,
#[prost(message, optional, tag="3")]
pub op1_9: ::std::option::Option<Op19>,
#[prost(message, optional, tag="4")]
pub op1_10: ::std::option::Option<Op110>,
#[prost(message, optional, tag="5")]
pub op1_11: ::std::option::Option<Op111>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExtractRequest {
#[prost(string, tag="1")]
pub url: std::string::String,
#[prost(bool, tag="2")]
pub no_objects: bool,
#[prost(bool, tag="3")]
pub no_repos: bool,
#[prost(bool, tag="4")]
pub no_pipelines: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExtractPipelineRequest {
#[prost(message, optional, tag="1")]
pub pipeline: ::std::option::Option<super::pps::Pipeline>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RestoreRequest {
#[prost(message, optional, tag="1")]
pub op: ::std::option::Option<Op>,
#[prost(string, tag="2")]
pub url: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterInfo {
#[prost(string, tag="1")]
pub id: std::string::String,
#[prost(string, tag="2")]
pub deployment_id: std::string::String,
}
# [ 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 extract ( & mut self , request : impl tonic :: IntoRequest < super :: ExtractRequest > , ) -> Result < tonic :: Response < tonic :: codec :: Streaming < super :: Op >> , 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 ( "/admin.API/Extract" ) ; self . inner . server_streaming ( request . into_request ( ) , path , codec ) . await } pub async fn extract_pipeline ( & mut self , request : impl tonic :: IntoRequest < super :: ExtractPipelineRequest > , ) -> Result < tonic :: Response < super :: Op > , 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 ( "/admin.API/ExtractPipeline" ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await } pub async fn restore ( & mut self , request : impl tonic :: IntoStreamingRequest < Message = super :: RestoreRequest > ) -> 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 ( "/admin.API/Restore" ) ; self . inner . client_streaming ( request . into_streaming_request ( ) , path , codec ) . await } pub async fn inspect_cluster ( & mut self , request : impl tonic :: IntoRequest < ( ) > , ) -> Result < tonic :: Response < super :: ClusterInfo > , 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 ( "/admin.API/InspectCluster" ) ; 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 {{ ... }}" ) } } }