Skip to main content

endhost_api_discovery_models/proto/gen/
endhost.discovery.v1.rs

1// This file is @generated by prost-build.
2/// Request to discovery available Endhost APIs.
3#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct RpcGetEndhostApisRequest {}
5/// Endhost APIs response message.
6#[derive(Clone, PartialEq, ::prost::Message)]
7pub struct RpcGetEndhostApisResponse {
8    /// Set of Endhost APIs groups.
9    /// Should be used in order, using the first reachable one.
10    ///
11    /// After establishing a connection to an API in a group, the client can failover to any other API in the same group if the connection fails.
12    /// Failover between groups requires the client to re-establish connections to snaps and other services using the new API.
13    #[prost(message, repeated, tag = "1")]
14    pub groups: ::prost::alloc::vec::Vec<RpcEndhostApiGroup>,
15}
16/// Group of Endhost APIs the client can failover between.
17#[derive(Clone, PartialEq, ::prost::Message)]
18pub struct RpcEndhostApiGroup {
19    /// URL of the Endhost API.
20    #[prost(message, repeated, tag = "1")]
21    pub apis: ::prost::alloc::vec::Vec<RpcEndhostApiInfo>,
22}
23/// Single Endhost API.
24#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
25pub struct RpcEndhostApiInfo {
26    /// URL of the Endhost API.
27    #[prost(string, tag = "1")]
28    pub address: ::prost::alloc::string::String,
29}