yandex-cloud 2025.4.14

Generated gRPC clients for the Yandex Cloud API
Documentation
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExpirationConfig {
    #[prost(enumeration = "expiration_config::ExpirationPolicy", tag = "1")]
    pub expiration_policy: i32,
    #[prost(int64, tag = "2")]
    pub ttl_days: i64,
}
/// Nested message and enum types in `ExpirationConfig`.
pub mod expiration_config {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ExpirationPolicy {
        Unspecified = 0,
        Static = 1,
        SinceLastActive = 2,
    }
    impl ExpirationPolicy {
        /// 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 {
                ExpirationPolicy::Unspecified => "EXPIRATION_POLICY_UNSPECIFIED",
                ExpirationPolicy::Static => "STATIC",
                ExpirationPolicy::SinceLastActive => "SINCE_LAST_ACTIVE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "EXPIRATION_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
                "STATIC" => Some(Self::Static),
                "SINCE_LAST_ACTIVE" => Some(Self::SinceLastActive),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Error {
    #[prost(int64, tag = "1")]
    pub code: i64,
    #[prost(string, tag = "2")]
    pub message: ::prost::alloc::string::String,
}