#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerLicense {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub state: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub application_id: ::prost::alloc::string::String,
#[deprecated]
#[prost(message, repeated, tag = "4")]
pub editions: ::prost::alloc::vec::Vec<customer_license::Editions>,
#[prost(string, tag = "101")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "102")]
pub customer_id: ::prost::alloc::string::String,
}
pub mod customer_license {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Editions {
#[deprecated]
#[prost(string, tag = "405")]
pub edition_id: ::prost::alloc::string::String,
#[deprecated]
#[prost(int32, tag = "406")]
pub seat_count: i32,
#[deprecated]
#[prost(int32, tag = "409")]
pub assigned_seats: i32,
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseNotification {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub application_id: ::prost::alloc::string::String,
#[prost(int64, tag = "3")]
pub timestamp: i64,
#[prost(string, tag = "4")]
pub customer_id: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub kind: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "6")]
pub provisions: ::prost::alloc::vec::Vec<license_notification::Provisions>,
#[prost(message, repeated, tag = "7")]
pub expiries: ::prost::alloc::vec::Vec<license_notification::Expiries>,
#[prost(message, repeated, tag = "8")]
pub reassignments: ::prost::alloc::vec::Vec<license_notification::Reassignments>,
#[prost(message, repeated, tag = "9")]
pub deletes: ::prost::alloc::vec::Vec<license_notification::Deletes>,
}
pub mod license_notification {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Deletes {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[deprecated]
#[prost(string, tag = "901")]
pub edition_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Expiries {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[deprecated]
#[prost(string, tag = "701")]
pub edition_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Provisions {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[deprecated]
#[prost(string, tag = "601")]
pub edition_id: ::prost::alloc::string::String,
#[prost(int64, tag = "602")]
pub seat_count: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Reassignments {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[prost(string, tag = "801")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag = "802")]
pub r#type: ::prost::alloc::string::String,
#[deprecated]
#[prost(string, tag = "803")]
pub edition_id: ::prost::alloc::string::String,
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseNotificationList {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "1007")]
pub notifications: ::prost::alloc::vec::Vec<LicenseNotification>,
#[prost(string, tag = "100602")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserLicense {
#[prost(string, tag = "1")]
pub kind: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub enabled: bool,
#[prost(string, tag = "3")]
pub state: ::prost::alloc::string::String,
#[deprecated]
#[prost(string, tag = "4")]
pub edition_id: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub customer_id: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub application_id: ::prost::alloc::string::String,
#[prost(string, tag = "101")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "102")]
pub user_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerLicenseGetRequest {
#[prost(string, tag = "1")]
pub application_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub customer_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LicenseNotificationListRequest {
#[prost(string, tag = "1")]
pub application_id: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub max_results: u32,
#[prost(string, tag = "3")]
pub start_token: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
pub timestamp: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserLicenseGetRequest {
#[prost(string, tag = "1")]
pub application_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub user_id: ::prost::alloc::string::String,
}
pub mod customer_license_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 CustomerLicenseServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> CustomerLicenseServiceClient<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,
) -> CustomerLicenseServiceClient<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,
{
CustomerLicenseServiceClient::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::CustomerLicenseGetRequest>,
) -> std::result::Result<
tonic::Response<super::CustomerLicense>,
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(
"/ccc.hosted.marketplace.v2.CustomerLicenseService/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"ccc.hosted.marketplace.v2.CustomerLicenseService",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
}
}
pub mod license_notification_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 LicenseNotificationServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> LicenseNotificationServiceClient<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,
) -> LicenseNotificationServiceClient<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,
{
LicenseNotificationServiceClient::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 list(
&mut self,
request: impl tonic::IntoRequest<super::LicenseNotificationListRequest>,
) -> std::result::Result<
tonic::Response<super::LicenseNotificationList>,
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(
"/ccc.hosted.marketplace.v2.LicenseNotificationService/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"ccc.hosted.marketplace.v2.LicenseNotificationService",
"List",
),
);
self.inner.unary(req, path, codec).await
}
}
}
pub mod user_license_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 UserLicenseServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> UserLicenseServiceClient<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,
) -> UserLicenseServiceClient<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,
{
UserLicenseServiceClient::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::UserLicenseGetRequest>,
) -> std::result::Result<tonic::Response<super::UserLicense>, 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(
"/ccc.hosted.marketplace.v2.UserLicenseService/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"ccc.hosted.marketplace.v2.UserLicenseService",
"Get",
),
);
self.inner.unary(req, path, codec).await
}
}
}