#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApiGateway {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub folder_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub description: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "7")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(enumeration = "api_gateway::Status", tag = "8")]
pub status: i32,
#[prost(string, tag = "9")]
pub domain: ::prost::alloc::string::String,
#[prost(string, tag = "10")]
pub log_group_id: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "11")]
pub attached_domains: ::prost::alloc::vec::Vec<AttachedDomain>,
#[prost(message, optional, tag = "12")]
pub connectivity: ::core::option::Option<Connectivity>,
#[prost(message, optional, tag = "13")]
pub log_options: ::core::option::Option<LogOptions>,
#[prost(map = "string, message", tag = "14")]
pub variables: ::std::collections::HashMap<
::prost::alloc::string::String,
VariableInput,
>,
#[prost(message, optional, tag = "15")]
pub canary: ::core::option::Option<Canary>,
#[prost(message, optional, tag = "16")]
pub execution_timeout: ::core::option::Option<::prost_types::Duration>,
}
pub mod api_gateway {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
Unspecified = 0,
Creating = 1,
Active = 2,
Deleting = 3,
Error = 4,
Updating = 5,
}
impl Status {
pub fn as_str_name(&self) -> &'static str {
match self {
Status::Unspecified => "STATUS_UNSPECIFIED",
Status::Creating => "CREATING",
Status::Active => "ACTIVE",
Status::Deleting => "DELETING",
Status::Error => "ERROR",
Status::Updating => "UPDATING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"CREATING" => Some(Self::Creating),
"ACTIVE" => Some(Self::Active),
"DELETING" => Some(Self::Deleting),
"ERROR" => Some(Self::Error),
"UPDATING" => Some(Self::Updating),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachedDomain {
#[prost(string, tag = "1")]
pub domain_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub certificate_id: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub enabled: bool,
#[prost(string, tag = "5")]
pub domain: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Connectivity {
#[prost(string, tag = "1")]
pub network_id: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub subnet_id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogOptions {
#[prost(bool, tag = "1")]
pub disabled: bool,
#[prost(
enumeration = "super::super::super::logging::v1::log_level::Level",
tag = "4"
)]
pub min_level: i32,
#[prost(oneof = "log_options::Destination", tags = "2, 3")]
pub destination: ::core::option::Option<log_options::Destination>,
}
pub mod log_options {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Destination {
#[prost(string, tag = "2")]
LogGroupId(::prost::alloc::string::String),
#[prost(string, tag = "3")]
FolderId(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Canary {
#[prost(int64, tag = "1")]
pub weight: i64,
#[prost(map = "string, message", tag = "2")]
pub variables: ::std::collections::HashMap<
::prost::alloc::string::String,
VariableInput,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VariableInput {
#[prost(oneof = "variable_input::VariableValue", tags = "1, 2, 3, 4")]
pub variable_value: ::core::option::Option<variable_input::VariableValue>,
}
pub mod variable_input {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum VariableValue {
#[prost(string, tag = "1")]
StringValue(::prost::alloc::string::String),
#[prost(int64, tag = "2")]
IntValue(i64),
#[prost(double, tag = "3")]
DoubleValue(f64),
#[prost(bool, tag = "4")]
BoolValue(bool),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetApiGatewayRequest {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListApiGatewayRequest {
#[prost(string, tag = "1")]
pub folder_id: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
pub page_size: i64,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListApiGatewayResponse {
#[prost(message, repeated, tag = "1")]
pub api_gateways: ::prost::alloc::vec::Vec<ApiGateway>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateApiGatewayRequest {
#[prost(string, tag = "1")]
pub folder_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(message, optional, tag = "6")]
pub connectivity: ::core::option::Option<Connectivity>,
#[prost(message, optional, tag = "7")]
pub log_options: ::core::option::Option<LogOptions>,
#[prost(map = "string, message", tag = "8")]
pub variables: ::std::collections::HashMap<
::prost::alloc::string::String,
VariableInput,
>,
#[prost(message, optional, tag = "9")]
pub canary: ::core::option::Option<Canary>,
#[prost(message, optional, tag = "10")]
pub execution_timeout: ::core::option::Option<::prost_types::Duration>,
#[prost(oneof = "create_api_gateway_request::Spec", tags = "5")]
pub spec: ::core::option::Option<create_api_gateway_request::Spec>,
}
pub mod create_api_gateway_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Spec {
#[prost(string, tag = "5")]
OpenapiSpec(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateApiGatewayRequest {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub description: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "5")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(message, optional, tag = "7")]
pub connectivity: ::core::option::Option<Connectivity>,
#[prost(message, optional, tag = "8")]
pub log_options: ::core::option::Option<LogOptions>,
#[prost(map = "string, message", tag = "9")]
pub variables: ::std::collections::HashMap<
::prost::alloc::string::String,
VariableInput,
>,
#[prost(message, optional, tag = "10")]
pub canary: ::core::option::Option<Canary>,
#[prost(message, optional, tag = "11")]
pub execution_timeout: ::core::option::Option<::prost_types::Duration>,
#[prost(oneof = "update_api_gateway_request::Spec", tags = "6")]
pub spec: ::core::option::Option<update_api_gateway_request::Spec>,
}
pub mod update_api_gateway_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Spec {
#[prost(string, tag = "6")]
OpenapiSpec(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteApiGatewayRequest {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddDomainRequest {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub domain_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub certificate_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveDomainRequest {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub domain_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateApiGatewayMetadata {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateApiGatewayMetadata {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteApiGatewayMetadata {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddDomainMetadata {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub domain_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub domain_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub certificate_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveDomainMetadata {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub domain_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOperationsRequest {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
pub page_size: i64,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOperationsResponse {
#[prost(message, repeated, tag = "1")]
pub operations: ::prost::alloc::vec::Vec<super::super::super::operation::Operation>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetOpenapiSpecRequest {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(enumeration = "get_openapi_spec_request::Format", tag = "2")]
pub format: i32,
}
pub mod get_openapi_spec_request {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Format {
Unspecified = 0,
Json = 1,
Yaml = 2,
}
impl Format {
pub fn as_str_name(&self) -> &'static str {
match self {
Format::Unspecified => "FORMAT_UNSPECIFIED",
Format::Json => "JSON",
Format::Yaml => "YAML",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
"JSON" => Some(Self::Json),
"YAML" => Some(Self::Yaml),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetOpenapiSpecResponse {
#[prost(string, tag = "1")]
pub api_gateway_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub openapi_spec: ::prost::alloc::string::String,
}
pub mod api_gateway_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct ApiGatewayServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl ApiGatewayServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> ApiGatewayServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ApiGatewayServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
ApiGatewayServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetApiGatewayRequest>,
) -> std::result::Result<tonic::Response<super::ApiGateway>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListApiGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::ListApiGatewayResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"List",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create(
&mut self,
request: impl tonic::IntoRequest<super::CreateApiGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/Create",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"Create",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateApiGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"Update",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteApiGatewayRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn add_domain(
&mut self,
request: impl tonic::IntoRequest<super::AddDomainRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/AddDomain",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"AddDomain",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn remove_domain(
&mut self,
request: impl tonic::IntoRequest<super::RemoveDomainRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/RemoveDomain",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"RemoveDomain",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_openapi_spec(
&mut self,
request: impl tonic::IntoRequest<super::GetOpenapiSpecRequest>,
) -> std::result::Result<
tonic::Response<super::GetOpenapiSpecResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/GetOpenapiSpec",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"GetOpenapiSpec",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_operations(
&mut self,
request: impl tonic::IntoRequest<super::ListOperationsRequest>,
) -> std::result::Result<
tonic::Response<super::ListOperationsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/ListOperations",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"ListOperations",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_access_bindings(
&mut self,
request: impl tonic::IntoRequest<
super::super::super::super::access::ListAccessBindingsRequest,
>,
) -> std::result::Result<
tonic::Response<
super::super::super::super::access::ListAccessBindingsResponse,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/ListAccessBindings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"ListAccessBindings",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn set_access_bindings(
&mut self,
request: impl tonic::IntoRequest<
super::super::super::super::access::SetAccessBindingsRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/SetAccessBindings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"SetAccessBindings",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_access_bindings(
&mut self,
request: impl tonic::IntoRequest<
super::super::super::super::access::UpdateAccessBindingsRequest,
>,
) -> std::result::Result<
tonic::Response<super::super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.serverless.apigateway.v1.ApiGatewayService/UpdateAccessBindings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.serverless.apigateway.v1.ApiGatewayService",
"UpdateAccessBindings",
),
);
self.inner.unary(req, path, codec).await
}
}
}