ydb_grpc/generated/
ydb.discovery.rs

1// This file is @generated by prost-build.
2#[derive(serde::Serialize, serde::Deserialize)]
3#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct ListEndpointsRequest {
5    #[prost(string, tag = "1")]
6    pub database: ::prost::alloc::string::String,
7    #[prost(string, repeated, tag = "2")]
8    pub service: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
9}
10#[derive(serde::Serialize, serde::Deserialize)]
11#[derive(Clone, PartialEq, ::prost::Message)]
12pub struct EndpointInfo {
13    /// This is an address (usually fqdn) and port of this node's grpc endpoint
14    #[prost(string, tag = "1")]
15    pub address: ::prost::alloc::string::String,
16    #[prost(uint32, tag = "2")]
17    pub port: u32,
18    #[prost(float, tag = "3")]
19    pub load_factor: f32,
20    #[prost(bool, tag = "4")]
21    pub ssl: bool,
22    #[prost(string, repeated, tag = "5")]
23    pub service: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
24    #[prost(string, tag = "6")]
25    pub location: ::prost::alloc::string::String,
26    #[prost(uint32, tag = "7")]
27    pub node_id: u32,
28    /// Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
29    /// use instead of a dns name in the address field.
30    #[prost(string, repeated, tag = "8")]
31    pub ip_v4: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
32    #[prost(string, repeated, tag = "9")]
33    pub ip_v6: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
34    /// Optional value for grpc.ssl_target_name_override option that must be
35    /// used when connecting to this endpoint. This may be specified when an ssl
36    /// endpoint is using certificate chain valid for a balancer hostname, and
37    /// not this specific node hostname.
38    #[prost(string, tag = "10")]
39    pub ssl_target_name_override: ::prost::alloc::string::String,
40}
41#[derive(serde::Serialize, serde::Deserialize)]
42#[derive(Clone, PartialEq, ::prost::Message)]
43pub struct ListEndpointsResult {
44    #[prost(message, repeated, tag = "1")]
45    pub endpoints: ::prost::alloc::vec::Vec<EndpointInfo>,
46    #[prost(string, tag = "2")]
47    pub self_location: ::prost::alloc::string::String,
48}
49#[derive(serde::Serialize, serde::Deserialize)]
50#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct ListEndpointsResponse {
52    #[prost(message, optional, tag = "1")]
53    pub operation: ::core::option::Option<super::operations::Operation>,
54}
55#[derive(serde::Serialize, serde::Deserialize)]
56#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
57pub struct WhoAmIRequest {
58    /// Include user groups in response
59    #[prost(bool, tag = "1")]
60    pub include_groups: bool,
61}
62#[derive(serde::Serialize, serde::Deserialize)]
63#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
64pub struct WhoAmIResult {
65    /// User SID (Security ID)
66    #[prost(string, tag = "1")]
67    pub user: ::prost::alloc::string::String,
68    /// List of group SIDs (Security IDs) for the user
69    #[prost(string, repeated, tag = "2")]
70    pub groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
71}
72#[derive(serde::Serialize, serde::Deserialize)]
73#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct WhoAmIResponse {
75    #[prost(message, optional, tag = "1")]
76    pub operation: ::core::option::Option<super::operations::Operation>,
77}
78#[derive(serde::Serialize, serde::Deserialize)]
79#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
80pub struct NodeLocation {
81    /// compatibility section -- will be removed in future versions
82    #[deprecated]
83    #[prost(uint32, optional, tag = "1")]
84    pub data_center_num: ::core::option::Option<u32>,
85    #[deprecated]
86    #[prost(uint32, optional, tag = "2")]
87    pub room_num: ::core::option::Option<u32>,
88    #[deprecated]
89    #[prost(uint32, optional, tag = "3")]
90    pub rack_num: ::core::option::Option<u32>,
91    #[deprecated]
92    #[prost(uint32, optional, tag = "4")]
93    pub body_num: ::core::option::Option<u32>,
94    /// for compatibility with WalleLocation
95    #[deprecated]
96    #[prost(uint32, optional, tag = "100500")]
97    pub body: ::core::option::Option<u32>,
98    #[prost(string, optional, tag = "10")]
99    pub data_center: ::core::option::Option<::prost::alloc::string::String>,
100    #[prost(string, optional, tag = "20")]
101    pub module: ::core::option::Option<::prost::alloc::string::String>,
102    #[prost(string, optional, tag = "30")]
103    pub rack: ::core::option::Option<::prost::alloc::string::String>,
104    #[prost(string, optional, tag = "40")]
105    pub unit: ::core::option::Option<::prost::alloc::string::String>,
106}