#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Executor {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub last_seen_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, repeated, tag = "4")]
pub queues: ::prost::alloc::vec::Vec<ExecutorJobQueue>,
}
impl ::prost::Name for Executor {
const NAME: &'static str = "Executor";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Executor".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Executor".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ExecutorJobQueue {
#[prost(message, optional, tag = "1")]
pub job_type: ::core::option::Option<super::super::jobs::v1::JobType>,
#[prost(uint64, tag = "2")]
pub max_concurrent_executions: u64,
#[prost(uint64, tag = "3")]
pub active_executions: u64,
}
impl ::prost::Name for ExecutorJobQueue {
const NAME: &'static str = "ExecutorJobQueue";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ExecutorJobQueue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ExecutorJobQueue".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Execution {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub executor_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "ExecutionStatus", tag = "3")]
pub status: i32,
#[prost(message, optional, tag = "4")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "5")]
pub started_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "6")]
pub succeeded_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "7")]
pub failed_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "8")]
pub cancelled_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, optional, tag = "9")]
pub output_json: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "10")]
pub failure_reason: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "11")]
pub target_execution_time: ::core::option::Option<::prost_types::Timestamp>,
}
impl ::prost::Name for Execution {
const NAME: &'static str = "Execution";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Execution".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Execution".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ExecutionStatus {
Unspecified = 0,
Pending = 1,
InProgress = 2,
Succeeded = 3,
Failed = 4,
Cancelled = 5,
}
impl ExecutionStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "EXECUTION_STATUS_UNSPECIFIED",
Self::Pending => "EXECUTION_STATUS_PENDING",
Self::InProgress => "EXECUTION_STATUS_IN_PROGRESS",
Self::Succeeded => "EXECUTION_STATUS_SUCCEEDED",
Self::Failed => "EXECUTION_STATUS_FAILED",
Self::Cancelled => "EXECUTION_STATUS_CANCELLED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EXECUTION_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"EXECUTION_STATUS_PENDING" => Some(Self::Pending),
"EXECUTION_STATUS_IN_PROGRESS" => Some(Self::InProgress),
"EXECUTION_STATUS_SUCCEEDED" => Some(Self::Succeeded),
"EXECUTION_STATUS_FAILED" => Some(Self::Failed),
"EXECUTION_STATUS_CANCELLED" => Some(Self::Cancelled),
_ => None,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Job {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub job: ::core::option::Option<super::super::jobs::v1::Job>,
#[prost(string, optional, tag = "3")]
pub schedule_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, repeated, tag = "5")]
pub executions: ::prost::alloc::vec::Vec<Execution>,
}
impl ::prost::Name for Job {
const NAME: &'static str = "Job";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Job".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Job".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobFilters {
#[prost(string, repeated, tag = "1")]
pub job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub job_type_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "3")]
pub schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "4")]
pub executor_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "5")]
pub execution_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "ExecutionStatus", repeated, tag = "6")]
pub execution_statuses: ::prost::alloc::vec::Vec<i32>,
#[prost(message, optional, tag = "7")]
pub target_execution_time: ::core::option::Option<super::super::common::v1::TimeRange>,
#[prost(message, optional, tag = "8")]
pub created_at: ::core::option::Option<super::super::common::v1::TimeRange>,
#[prost(message, repeated, tag = "9")]
pub labels: ::prost::alloc::vec::Vec<super::super::common::v1::LabelFilter>,
}
impl ::prost::Name for JobFilters {
const NAME: &'static str = "JobFilters";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.JobFilters".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.JobFilters".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum JobOrderBy {
Unspecified = 0,
CreatedAtAsc = 1,
CreatedAtDesc = 2,
TargetExecutionTimeAsc = 3,
TargetExecutionTimeDesc = 4,
}
impl JobOrderBy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "JOB_ORDER_BY_UNSPECIFIED",
Self::CreatedAtAsc => "JOB_ORDER_BY_CREATED_AT_ASC",
Self::CreatedAtDesc => "JOB_ORDER_BY_CREATED_AT_DESC",
Self::TargetExecutionTimeAsc => "JOB_ORDER_BY_TARGET_EXECUTION_TIME_ASC",
Self::TargetExecutionTimeDesc => "JOB_ORDER_BY_TARGET_EXECUTION_TIME_DESC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"JOB_ORDER_BY_UNSPECIFIED" => Some(Self::Unspecified),
"JOB_ORDER_BY_CREATED_AT_ASC" => Some(Self::CreatedAtAsc),
"JOB_ORDER_BY_CREATED_AT_DESC" => Some(Self::CreatedAtDesc),
"JOB_ORDER_BY_TARGET_EXECUTION_TIME_ASC" => Some(Self::TargetExecutionTimeAsc),
"JOB_ORDER_BY_TARGET_EXECUTION_TIME_DESC" => Some(Self::TargetExecutionTimeDesc),
_ => None,
}
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PaginationOptions {
#[prost(uint32, tag = "1")]
pub page_size: u32,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for PaginationOptions {
const NAME: &'static str = "PaginationOptions";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.PaginationOptions".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.PaginationOptions".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Schedule {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub schedule: ::core::option::Option<super::super::schedules::v1::Schedule>,
#[prost(message, optional, tag = "3")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(enumeration = "ScheduleStatus", tag = "4")]
pub status: i32,
#[prost(message, optional, tag = "5")]
pub stopped_at: ::core::option::Option<::prost_types::Timestamp>,
}
impl ::prost::Name for Schedule {
const NAME: &'static str = "Schedule";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.Schedule".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.Schedule".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScheduleFilters {
#[prost(string, repeated, tag = "1")]
pub schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub job_type_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "ScheduleStatus", repeated, tag = "3")]
pub statuses: ::prost::alloc::vec::Vec<i32>,
#[prost(message, optional, tag = "4")]
pub created_at: ::core::option::Option<super::super::common::v1::TimeRange>,
#[prost(message, repeated, tag = "5")]
pub labels: ::prost::alloc::vec::Vec<super::super::common::v1::LabelFilter>,
}
impl ::prost::Name for ScheduleFilters {
const NAME: &'static str = "ScheduleFilters";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ScheduleFilters".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ScheduleFilters".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ScheduleStatus {
Unspecified = 0,
Active = 1,
Stopped = 2,
}
impl ScheduleStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SCHEDULE_STATUS_UNSPECIFIED",
Self::Active => "SCHEDULE_STATUS_ACTIVE",
Self::Stopped => "SCHEDULE_STATUS_STOPPED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SCHEDULE_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"SCHEDULE_STATUS_ACTIVE" => Some(Self::Active),
"SCHEDULE_STATUS_STOPPED" => Some(Self::Stopped),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ScheduleOrderBy {
Unspecified = 0,
CreatedAtAsc = 1,
CreatedAtDesc = 2,
}
impl ScheduleOrderBy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SCHEDULE_ORDER_BY_UNSPECIFIED",
Self::CreatedAtAsc => "SCHEDULE_ORDER_BY_CREATED_AT_ASC",
Self::CreatedAtDesc => "SCHEDULE_ORDER_BY_CREATED_AT_DESC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SCHEDULE_ORDER_BY_UNSPECIFIED" => Some(Self::Unspecified),
"SCHEDULE_ORDER_BY_CREATED_AT_ASC" => Some(Self::CreatedAtAsc),
"SCHEDULE_ORDER_BY_CREATED_AT_DESC" => Some(Self::CreatedAtDesc),
_ => None,
}
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListJobTypesRequest {}
impl ::prost::Name for ListJobTypesRequest {
const NAME: &'static str = "ListJobTypesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobTypesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobTypesRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobTypesResponse {
#[prost(message, repeated, tag = "1")]
pub job_types: ::prost::alloc::vec::Vec<super::super::jobs::v1::JobType>,
}
impl ::prost::Name for ListJobTypesResponse {
const NAME: &'static str = "ListJobTypesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobTypesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobTypesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddJobsRequest {
#[prost(message, repeated, tag = "1")]
pub jobs: ::prost::alloc::vec::Vec<super::super::jobs::v1::Job>,
#[prost(message, optional, tag = "2")]
pub if_not_exists: ::core::option::Option<JobFilters>,
}
impl ::prost::Name for AddJobsRequest {
const NAME: &'static str = "AddJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddJobsRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddJobsResponse {
#[prost(string, repeated, tag = "1")]
pub job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub existing_job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for AddJobsResponse {
const NAME: &'static str = "AddJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobsRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<JobFilters>,
#[prost(enumeration = "JobOrderBy", tag = "2")]
pub order_by: i32,
#[prost(message, optional, tag = "3")]
pub pagination: ::core::option::Option<PaginationOptions>,
}
impl ::prost::Name for ListJobsRequest {
const NAME: &'static str = "ListJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobsRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobsResponse {
#[prost(message, repeated, tag = "1")]
pub jobs: ::prost::alloc::vec::Vec<Job>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for ListJobsResponse {
const NAME: &'static str = "ListJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountJobsRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<JobFilters>,
}
impl ::prost::Name for CountJobsRequest {
const NAME: &'static str = "CountJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountJobsRequest".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CountJobsResponse {
#[prost(uint64, tag = "1")]
pub count: u64,
}
impl ::prost::Name for CountJobsResponse {
const NAME: &'static str = "CountJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelJobsRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<JobFilters>,
}
impl ::prost::Name for CancelJobsRequest {
const NAME: &'static str = "CancelJobsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CancelJobsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CancelJobsRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CancelJobsResponse {
#[prost(string, repeated, tag = "1")]
pub cancelled_job_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for CancelJobsResponse {
const NAME: &'static str = "CancelJobsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CancelJobsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CancelJobsResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddSchedulesRequest {
#[prost(message, repeated, tag = "1")]
pub schedules: ::prost::alloc::vec::Vec<super::super::schedules::v1::Schedule>,
#[prost(message, optional, tag = "2")]
pub if_not_exists: ::core::option::Option<ScheduleFilters>,
#[prost(bool, optional, tag = "3")]
pub inherit_labels: ::core::option::Option<bool>,
}
impl ::prost::Name for AddSchedulesRequest {
const NAME: &'static str = "AddSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddSchedulesRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AddSchedulesResponse {
#[prost(string, repeated, tag = "1")]
pub schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub existing_schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for AddSchedulesResponse {
const NAME: &'static str = "AddSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.AddSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.AddSchedulesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSchedulesRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<ScheduleFilters>,
#[prost(enumeration = "ScheduleOrderBy", tag = "2")]
pub order_by: i32,
#[prost(message, optional, tag = "3")]
pub pagination: ::core::option::Option<PaginationOptions>,
}
impl ::prost::Name for ListSchedulesRequest {
const NAME: &'static str = "ListSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListSchedulesRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSchedulesResponse {
#[prost(message, repeated, tag = "1")]
pub schedules: ::prost::alloc::vec::Vec<Schedule>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for ListSchedulesResponse {
const NAME: &'static str = "ListSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListSchedulesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountSchedulesRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<ScheduleFilters>,
}
impl ::prost::Name for CountSchedulesRequest {
const NAME: &'static str = "CountSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountSchedulesRequest".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CountSchedulesResponse {
#[prost(uint64, tag = "1")]
pub count: u64,
}
impl ::prost::Name for CountSchedulesResponse {
const NAME: &'static str = "CountSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.CountSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.CountSchedulesResponse".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopSchedulesRequest {
#[prost(message, optional, tag = "1")]
pub filters: ::core::option::Option<ScheduleFilters>,
#[prost(bool, tag = "2")]
pub cancel_active_jobs: bool,
}
impl ::prost::Name for StopSchedulesRequest {
const NAME: &'static str = "StopSchedulesRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.StopSchedulesRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.StopSchedulesRequest".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StopSchedulesResponse {
#[prost(string, repeated, tag = "1")]
pub cancelled_schedule_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
impl ::prost::Name for StopSchedulesResponse {
const NAME: &'static str = "StopSchedulesResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.StopSchedulesResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.StopSchedulesResponse".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListExecutorsRequest {}
impl ::prost::Name for ListExecutorsRequest {
const NAME: &'static str = "ListExecutorsRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListExecutorsRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListExecutorsRequest".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListExecutorsResponse {
#[prost(message, repeated, tag = "1")]
pub executors: ::prost::alloc::vec::Vec<Executor>,
}
impl ::prost::Name for ListExecutorsResponse {
const NAME: &'static str = "ListExecutorsResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.ListExecutorsResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.ListExecutorsResponse".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteHistoricalDataRequest {
#[prost(message, optional, tag = "1")]
pub before: ::core::option::Option<::prost_types::Timestamp>,
}
impl ::prost::Name for DeleteHistoricalDataRequest {
const NAME: &'static str = "DeleteHistoricalDataRequest";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.DeleteHistoricalDataRequest".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.DeleteHistoricalDataRequest".into()
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteHistoricalDataResponse {}
impl ::prost::Name for DeleteHistoricalDataResponse {
const NAME: &'static str = "DeleteHistoricalDataResponse";
const PACKAGE: &'static str = "ora.admin.v1";
fn full_name() -> ::prost::alloc::string::String {
"ora.admin.v1.DeleteHistoricalDataResponse".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/ora.admin.v1.DeleteHistoricalDataResponse".into()
}
}
pub mod admin_service_client {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value
)]
use tonic::codegen::http::Uri;
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct AdminServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> AdminServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> AdminServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::Body>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<http::Request<tonic::body::Body>>>::Error:
Into<StdError> + std::marker::Send + std::marker::Sync,
{
AdminServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn list_job_types(
&mut self,
request: impl tonic::IntoRequest<super::ListJobTypesRequest>,
) -> std::result::Result<tonic::Response<super::ListJobTypesResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/ListJobTypes");
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("ora.admin.v1.AdminService", "ListJobTypes"));
self.inner.unary(req, path, codec).await
}
pub async fn add_jobs(
&mut self,
request: impl tonic::IntoRequest<super::AddJobsRequest>,
) -> std::result::Result<tonic::Response<super::AddJobsResponse>, tonic::Status> {
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/AddJobs");
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("ora.admin.v1.AdminService", "AddJobs"));
self.inner.unary(req, path, codec).await
}
pub async fn list_jobs(
&mut self,
request: impl tonic::IntoRequest<super::ListJobsRequest>,
) -> std::result::Result<tonic::Response<super::ListJobsResponse>, tonic::Status> {
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/ListJobs");
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("ora.admin.v1.AdminService", "ListJobs"));
self.inner.unary(req, path, codec).await
}
pub async fn count_jobs(
&mut self,
request: impl tonic::IntoRequest<super::CountJobsRequest>,
) -> std::result::Result<tonic::Response<super::CountJobsResponse>, tonic::Status> {
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/CountJobs");
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("ora.admin.v1.AdminService", "CountJobs"));
self.inner.unary(req, path, codec).await
}
pub async fn cancel_jobs(
&mut self,
request: impl tonic::IntoRequest<super::CancelJobsRequest>,
) -> std::result::Result<tonic::Response<super::CancelJobsResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/CancelJobs");
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("ora.admin.v1.AdminService", "CancelJobs"));
self.inner.unary(req, path, codec).await
}
pub async fn add_schedules(
&mut self,
request: impl tonic::IntoRequest<super::AddSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::AddSchedulesResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/AddSchedules");
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("ora.admin.v1.AdminService", "AddSchedules"));
self.inner.unary(req, path, codec).await
}
pub async fn list_schedules(
&mut self,
request: impl tonic::IntoRequest<super::ListSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::ListSchedulesResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/ListSchedules");
let mut req = request.into_request();
req.extensions_mut().insert(GrpcMethod::new(
"ora.admin.v1.AdminService",
"ListSchedules",
));
self.inner.unary(req, path, codec).await
}
pub async fn count_schedules(
&mut self,
request: impl tonic::IntoRequest<super::CountSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::CountSchedulesResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/CountSchedules");
let mut req = request.into_request();
req.extensions_mut().insert(GrpcMethod::new(
"ora.admin.v1.AdminService",
"CountSchedules",
));
self.inner.unary(req, path, codec).await
}
pub async fn stop_schedules(
&mut self,
request: impl tonic::IntoRequest<super::StopSchedulesRequest>,
) -> std::result::Result<tonic::Response<super::StopSchedulesResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/StopSchedules");
let mut req = request.into_request();
req.extensions_mut().insert(GrpcMethod::new(
"ora.admin.v1.AdminService",
"StopSchedules",
));
self.inner.unary(req, path, codec).await
}
pub async fn list_executors(
&mut self,
request: impl tonic::IntoRequest<super::ListExecutorsRequest>,
) -> std::result::Result<tonic::Response<super::ListExecutorsResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path =
http::uri::PathAndQuery::from_static("/ora.admin.v1.AdminService/ListExecutors");
let mut req = request.into_request();
req.extensions_mut().insert(GrpcMethod::new(
"ora.admin.v1.AdminService",
"ListExecutors",
));
self.inner.unary(req, path, codec).await
}
pub async fn delete_historical_data(
&mut self,
request: impl tonic::IntoRequest<super::DeleteHistoricalDataRequest>,
) -> std::result::Result<tonic::Response<super::DeleteHistoricalDataResponse>, tonic::Status>
{
self.inner.ready().await.map_err(|e| {
tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
})?;
let codec = tonic_prost::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/ora.admin.v1.AdminService/DeleteHistoricalData",
);
let mut req = request.into_request();
req.extensions_mut().insert(GrpcMethod::new(
"ora.admin.v1.AdminService",
"DeleteHistoricalData",
));
self.inner.unary(req, path, codec).await
}
}
}