yandex-cloud 2025.4.14

Generated gRPC clients for the Yandex Cloud API
Documentation
/// Regression dashboard widget.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Widget {
    /// Widget position.
    #[prost(message, optional, tag = "1")]
    pub position: ::core::option::Option<widget::LayoutPosition>,
    #[prost(oneof = "widget::Widget", tags = "2, 3, 4")]
    pub widget: ::core::option::Option<widget::Widget>,
}
/// Nested message and enum types in `Widget`.
pub mod widget {
    /// Widget position.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct LayoutPosition {
        /// X.
        #[prost(int64, tag = "1")]
        pub x: i64,
        /// Y.
        #[prost(int64, tag = "2")]
        pub y: i64,
        /// Width.
        #[prost(int64, tag = "3")]
        pub width: i64,
        /// Height.
        #[prost(int64, tag = "4")]
        pub height: i64,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Widget {
        /// Chart widget.
        #[prost(message, tag = "2")]
        Chart(super::ChartWidget),
        /// Text widget.
        #[prost(message, tag = "3")]
        Text(super::TextWidget),
        /// Title widget.
        #[prost(message, tag = "4")]
        Title(super::TitleWidget),
    }
}
/// Regression chart.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChartWidget {
    /// ID of the chart.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Name of the chart.
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    /// Description of the chart.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// Test filter selector to show KPI values for.
    #[prost(string, tag = "4")]
    pub filter_str: ::prost::alloc::string::String,
    /// Test case to show KPI values for.
    #[prost(string, tag = "5")]
    pub test_case: ::prost::alloc::string::String,
    /// KPIs to show.
    #[prost(message, repeated, tag = "6")]
    pub kpis: ::prost::alloc::vec::Vec<super::report::Kpi>,
}
/// Text widget.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextWidget {
    /// Text string.
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
}
/// Title widget.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TitleWidget {
    /// Title string.
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    /// Title size.
    #[prost(enumeration = "title_widget::TitleSize", tag = "2")]
    pub size: i32,
}
/// Nested message and enum types in `TitleWidget`.
pub mod title_widget {
    /// Title size.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum TitleSize {
        /// Unspecified.
        Unspecified = 0,
        /// Extra small.
        Xs = 1,
        /// Small.
        S = 2,
        /// Medium.
        M = 3,
        /// Large.
        L = 4,
    }
    impl TitleSize {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                TitleSize::Unspecified => "TITLE_SIZE_UNSPECIFIED",
                TitleSize::Xs => "TITLE_SIZE_XS",
                TitleSize::S => "TITLE_SIZE_S",
                TitleSize::M => "TITLE_SIZE_M",
                TitleSize::L => "TITLE_SIZE_L",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "TITLE_SIZE_UNSPECIFIED" => Some(Self::Unspecified),
                "TITLE_SIZE_XS" => Some(Self::Xs),
                "TITLE_SIZE_S" => Some(Self::S),
                "TITLE_SIZE_M" => Some(Self::M),
                "TITLE_SIZE_L" => Some(Self::L),
                _ => None,
            }
        }
    }
}
/// Regression dashboard.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Dashboard {
    /// ID of the dashboard.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Name of the dashboard.
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    /// Description of the dashboard.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// Creation timestamp.
    #[prost(message, optional, tag = "4")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Last update timestamp.
    #[prost(message, optional, tag = "5")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
    /// UA or SA that created the dashboard.
    #[prost(string, tag = "6")]
    pub created_by: ::prost::alloc::string::String,
    /// UA or SA that updated the dashboard last time.
    #[prost(string, tag = "7")]
    pub updated_by: ::prost::alloc::string::String,
    /// Etag of the dashboard.
    #[prost(string, tag = "8")]
    pub etag: ::prost::alloc::string::String,
    /// Dashboard content.
    #[prost(message, optional, tag = "9")]
    pub content: ::core::option::Option<dashboard::Content>,
}
/// Nested message and enum types in `Dashboard`.
pub mod dashboard {
    /// Content of regression dashboard.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Content {
        /// Widgets.
        #[prost(message, repeated, tag = "1")]
        pub widgets: ::prost::alloc::vec::Vec<super::Widget>,
    }
}