unitycatalog_common/models/_gen/
unitycatalog.recipients.v1.rs1#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
4#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5pub struct RecipientToken {
6 #[prost(string, tag="1")]
8 pub id: ::prost::alloc::string::String,
9 #[prost(int64, tag="2")]
11 pub created_at: i64,
12 #[prost(string, tag="3")]
14 pub created_by: ::prost::alloc::string::String,
15 #[prost(string, tag="4")]
17 pub activation_url: ::prost::alloc::string::String,
18 #[prost(int64, tag="5")]
20 pub expiration_time: i64,
21 #[prost(int64, tag="6")]
23 pub updated_at: i64,
24 #[prost(string, tag="7")]
26 pub updated_by: ::prost::alloc::string::String,
27}
28#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
29#[derive(Clone, PartialEq, ::prost::Message)]
30pub struct Recipient {
31 #[prost(string, optional, tag="100")]
33 pub id: ::core::option::Option<::prost::alloc::string::String>,
34 #[prost(string, tag="1")]
36 pub name: ::prost::alloc::string::String,
37 #[prost(enumeration="AuthenticationType", tag="2")]
39 pub authentication_type: i32,
40 #[prost(string, optional, tag="3")]
42 pub owner: ::core::option::Option<::prost::alloc::string::String>,
43 #[prost(string, optional, tag="4")]
45 pub comment: ::core::option::Option<::prost::alloc::string::String>,
46 #[prost(map="string, string", tag="6")]
48 pub properties: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
49 #[prost(int64, optional, tag="7")]
51 pub created_at: ::core::option::Option<i64>,
52 #[prost(string, optional, tag="8")]
54 pub created_by: ::core::option::Option<::prost::alloc::string::String>,
55 #[prost(message, repeated, tag="9")]
57 pub tokens: ::prost::alloc::vec::Vec<RecipientToken>,
58 #[prost(int64, optional, tag="10")]
60 pub updated_at: ::core::option::Option<i64>,
61 #[prost(string, optional, tag="11")]
63 pub updated_by: ::core::option::Option<::prost::alloc::string::String>,
64}
65#[cfg_attr(feature = "python", ::pyo3::pyclass)]
66#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
67#[repr(i32)]
68pub enum AuthenticationType {
69 Unspecified = 0,
71 Token = 1,
73 OauthClientCredentials = 2,
75}
76impl AuthenticationType {
77 pub fn as_str_name(&self) -> &'static str {
82 match self {
83 Self::Unspecified => "AUTHENTICATION_TYPE_UNSPECIFIED",
84 Self::Token => "TOKEN",
85 Self::OauthClientCredentials => "OAUTH_CLIENT_CREDENTIALS",
86 }
87 }
88 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
90 match value {
91 "AUTHENTICATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
92 "TOKEN" => Some(Self::Token),
93 "OAUTH_CLIENT_CREDENTIALS" => Some(Self::OauthClientCredentials),
94 _ => None,
95 }
96 }
97}
98#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
100#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
101pub struct ListRecipientsRequest {
102 #[prost(int32, optional, tag="1")]
104 pub max_results: ::core::option::Option<i32>,
105 #[prost(string, optional, tag="2")]
107 pub page_token: ::core::option::Option<::prost::alloc::string::String>,
108}
109#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
111#[derive(Clone, PartialEq, ::prost::Message)]
112pub struct ListRecipientsResponse {
113 #[prost(message, repeated, tag="1")]
115 pub recipients: ::prost::alloc::vec::Vec<Recipient>,
116 #[prost(string, optional, tag="2")]
118 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
119}
120#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
122#[derive(Clone, PartialEq, ::prost::Message)]
123pub struct CreateRecipientRequest {
124 #[prost(string, tag="1")]
126 pub name: ::prost::alloc::string::String,
127 #[prost(enumeration="AuthenticationType", tag="2")]
129 pub authentication_type: i32,
130 #[prost(string, tag="3")]
132 pub owner: ::prost::alloc::string::String,
133 #[prost(string, optional, tag="4")]
135 pub comment: ::core::option::Option<::prost::alloc::string::String>,
136 #[prost(map="string, string", tag="5")]
141 pub properties: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
142 #[prost(int64, optional, tag="6")]
144 pub expiration_time: ::core::option::Option<i64>,
145}
146#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
148#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
149pub struct GetRecipientRequest {
150 #[prost(string, tag="1")]
152 pub name: ::prost::alloc::string::String,
153}
154#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
156#[derive(Clone, PartialEq, ::prost::Message)]
157pub struct UpdateRecipientRequest {
158 #[prost(string, tag="1")]
160 pub name: ::prost::alloc::string::String,
161 #[prost(string, optional, tag="2")]
163 pub new_name: ::core::option::Option<::prost::alloc::string::String>,
164 #[prost(string, optional, tag="3")]
166 pub owner: ::core::option::Option<::prost::alloc::string::String>,
167 #[prost(string, optional, tag="4")]
169 pub comment: ::core::option::Option<::prost::alloc::string::String>,
170 #[prost(map="string, string", tag="5")]
175 pub properties: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
176 #[prost(int64, optional, tag="6")]
178 pub expiration_time: ::core::option::Option<i64>,
179}
180#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
182#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
183pub struct DeleteRecipientRequest {
184 #[prost(string, tag="1")]
186 pub name: ::prost::alloc::string::String,
187}
188include!("unitycatalog.recipients.v1.serde.rs");
189