pub struct KafkaProxy {
pub certificate: String,
pub cpus: f64,
pub enable_kafka_acl_groups: Option<bool>,
pub instances: NonZeroU64,
pub mem: i64,
pub name: Option<String>,
pub schema_store: Option<bool>,
pub schema_store_cpus: Option<f64>,
pub schema_store_mem: Option<i64>,
pub secret_name_ca_chain: String,
pub validations: Vec<Validations>,
pub zone: KafkaProxyZone,
}Expand description
KafkaProxy
JSON schema
{
"type": "object",
"required": [
"certificate",
"cpus",
"instances",
"mem",
"secretNameCaChain",
"zone"
],
"properties": {
"certificate": {
"description": "Secret name with the server certificate",
"type": "string"
},
"cpus": {
"description": "CPU quota for each Kafka Proxy (minimum 0.3 = 30% of 1 CPU)",
"type": "number",
"minimum": 0.3,
"example": 0.3
},
"enableKafkaAclGroups": {
"description": "Set to True to enable the ACL groups (Advanced feature: without the correct acl groups in place this will result in a non-functioning proxy instance)\n",
"type": "boolean"
},
"instances": {
"description": "Number of instances",
"type": "integer",
"minimum": 1.0,
"example": 2
},
"mem": {
"description": "Memory (MB) for each Kafka Proxy (minimum 1024 = 1 GB)",
"type": "integer",
"minimum": 1024.0,
"example": 3072
},
"name": {
"description": "Name of the new Kafka Proxy",
"type": "string"
},
"schemaStore": {
"description": "Set to True no enable Schema Store",
"type": "boolean"
},
"schemaStoreCpus": {
"description": "CPU quota for Schema Store (minimum 0.3 = 30% of 1 CPU)",
"type": "number",
"minimum": 0.1,
"example": 0.1
},
"schemaStoreMem": {
"description": "Memory (MB) for Schema Store (minimum 256MB)",
"type": "integer",
"minimum": 256.0,
"example": 256
},
"secretNameCaChain": {
"description": "Secret name containing the Ca Cert",
"type": "string"
},
"validations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Validations"
}
},
"zone": {
"description": "Available networks on this platform",
"type": "string",
"enum": [
"private",
"public"
]
}
},
"example": {
"certificate": "certificate",
"cpus": 0.3,
"enableKafkaAclGroups": true,
"instances": 2,
"mem": 3072,
"name": "name",
"schemaStore": true,
"schemaStoreCpus": 0.1,
"schemaStoreMem": 256,
"secretNameCaChain": "secretNameCaChain",
"validations": [
{
"commonName": "commonName",
"country": "country",
"locality": "locality",
"organization": "organization",
"organizationalUnit": "organizationalUnit",
"province": "province",
"subjectType": "subjectType"
},
{
"commonName": "commonName",
"country": "country",
"locality": "locality",
"organization": "organization",
"organizationalUnit": "organizationalUnit",
"province": "province",
"subjectType": "subjectType"
}
],
"zone": "private"
}
}Fields§
§certificate: StringSecret name with the server certificate
cpus: f64§enable_kafka_acl_groups: Option<bool>Set to True to enable the ACL groups (Advanced feature: without the correct acl groups in place this will result in a non-functioning proxy instance)
instances: NonZeroU64Number of instances
mem: i64Memory (MB) for each Kafka Proxy (minimum 1024 = 1 GB)
name: Option<String>Name of the new Kafka Proxy
schema_store: Option<bool>Set to True no enable Schema Store
schema_store_cpus: Option<f64>§schema_store_mem: Option<i64>Memory (MB) for Schema Store (minimum 256MB)
secret_name_ca_chain: StringSecret name containing the Ca Cert
validations: Vec<Validations>§zone: KafkaProxyZoneAvailable networks on this platform
Implementations§
Source§impl KafkaProxy
impl KafkaProxy
pub fn builder() -> KafkaProxy
Trait Implementations§
Source§impl Clone for KafkaProxy
impl Clone for KafkaProxy
Source§fn clone(&self) -> KafkaProxy
fn clone(&self) -> KafkaProxy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KafkaProxy
impl Debug for KafkaProxy
Source§impl<'de> Deserialize<'de> for KafkaProxy
impl<'de> Deserialize<'de> for KafkaProxy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<KafkaProxy> for KafkaProxy
impl From<KafkaProxy> for KafkaProxy
Source§fn from(value: KafkaProxy) -> Self
fn from(value: KafkaProxy) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KafkaProxy
impl PartialEq for KafkaProxy
Source§impl Serialize for KafkaProxy
impl Serialize for KafkaProxy
Source§impl TryFrom<KafkaProxy> for KafkaProxy
impl TryFrom<KafkaProxy> for KafkaProxy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: KafkaProxy) -> Result<Self, ConversionError>
fn try_from(value: KafkaProxy) -> Result<Self, ConversionError>
Performs the conversion.
impl StructuralPartialEq for KafkaProxy
Auto Trait Implementations§
impl Freeze for KafkaProxy
impl RefUnwindSafe for KafkaProxy
impl Send for KafkaProxy
impl Sync for KafkaProxy
impl Unpin for KafkaProxy
impl UnsafeUnpin for KafkaProxy
impl UnwindSafe for KafkaProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more