#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RecipientToken {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(int64, tag="2")]
pub created_at: i64,
#[prost(string, tag="3")]
pub created_by: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub activation_url: ::prost::alloc::string::String,
#[prost(int64, tag="5")]
pub expiration_time: i64,
#[prost(int64, tag="6")]
pub updated_at: i64,
#[prost(string, tag="7")]
pub updated_by: ::prost::alloc::string::String,
}
#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Recipient {
#[prost(string, optional, tag="100")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration="AuthenticationType", tag="2")]
pub authentication_type: i32,
#[prost(string, optional, tag="3")]
pub owner: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="4")]
pub comment: ::core::option::Option<::prost::alloc::string::String>,
#[prost(map="string, string", tag="6")]
pub properties: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
#[prost(int64, optional, tag="7")]
pub created_at: ::core::option::Option<i64>,
#[prost(string, optional, tag="8")]
pub created_by: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag="9")]
pub tokens: ::prost::alloc::vec::Vec<RecipientToken>,
#[prost(int64, optional, tag="10")]
pub updated_at: ::core::option::Option<i64>,
#[prost(string, optional, tag="11")]
pub updated_by: ::core::option::Option<::prost::alloc::string::String>,
}
#[cfg_attr(feature = "python", ::pyo3::pyclass)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AuthenticationType {
Unspecified = 0,
Token = 1,
OauthClientCredentials = 2,
}
impl AuthenticationType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "AUTHENTICATION_TYPE_UNSPECIFIED",
Self::Token => "TOKEN",
Self::OauthClientCredentials => "OAUTH_CLIENT_CREDENTIALS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"AUTHENTICATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"TOKEN" => Some(Self::Token),
"OAUTH_CLIENT_CREDENTIALS" => Some(Self::OauthClientCredentials),
_ => None,
}
}
}
#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListRecipientsRequest {
#[prost(int32, optional, tag="1")]
pub max_results: ::core::option::Option<i32>,
#[prost(string, optional, tag="2")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRecipientsResponse {
#[prost(message, repeated, tag="1")]
pub recipients: ::prost::alloc::vec::Vec<Recipient>,
#[prost(string, optional, tag="2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateRecipientRequest {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration="AuthenticationType", tag="2")]
pub authentication_type: i32,
#[prost(string, tag="3")]
pub owner: ::prost::alloc::string::String,
#[prost(string, optional, tag="4")]
pub comment: ::core::option::Option<::prost::alloc::string::String>,
#[prost(map="string, string", tag="5")]
pub properties: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
#[prost(int64, optional, tag="6")]
pub expiration_time: ::core::option::Option<i64>,
}
#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetRecipientRequest {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
}
#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRecipientRequest {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub new_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="3")]
pub owner: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="4")]
pub comment: ::core::option::Option<::prost::alloc::string::String>,
#[prost(map="string, string", tag="5")]
pub properties: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
#[prost(int64, optional, tag="6")]
pub expiration_time: ::core::option::Option<i64>,
}
#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteRecipientRequest {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
}
include!("unitycatalog.recipients.v1.serde.rs");