fleet_api_rs/api/fleet_bundle_namespace_mapping.rs
1// WARNING: generated by kopium - manual changes will be overwritten
2// kopium command: kopium -D Default -D PartialEq -A -d -f -
3// kopium version: 0.22.5
4
5#[allow(unused_imports)]
6mod prelude {
7 pub use kube::CustomResource;
8 pub use schemars::JsonSchema;
9 pub use serde::{Deserialize, Serialize};
10 pub use std::collections::BTreeMap;
11}
12
13use self::prelude::*;
14
15/// A label selector is a label query over a set of resources. The result of matchLabels and
16/// matchExpressions are ANDed. An empty label selector matches all objects. A null
17/// label selector matches no objects.
18#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq, JsonSchema)]
19pub struct BundleNamespaceMappingBundleSelector {
20 /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
21 #[serde(
22 default,
23 skip_serializing_if = "Option::is_none",
24 rename = "matchExpressions"
25 )]
26 pub match_expressions: Option<Vec<BundleNamespaceMappingBundleSelectorMatchExpressions>>,
27 /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
28 /// map is equivalent to an element of matchExpressions, whose key field is "key", the
29 /// operator is "In", and the values array contains only "value". The requirements are ANDed.
30 #[serde(
31 default,
32 skip_serializing_if = "Option::is_none",
33 rename = "matchLabels"
34 )]
35 pub match_labels: Option<BTreeMap<String, String>>,
36}
37
38/// A label selector requirement is a selector that contains values, a key, and an operator that
39/// relates the key and values.
40#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq, JsonSchema)]
41pub struct BundleNamespaceMappingBundleSelectorMatchExpressions {
42 /// key is the label key that the selector applies to.
43 pub key: String,
44 /// operator represents a key's relationship to a set of values.
45 /// Valid operators are In, NotIn, Exists and DoesNotExist.
46 pub operator: String,
47 /// values is an array of string values. If the operator is In or NotIn,
48 /// the values array must be non-empty. If the operator is Exists or DoesNotExist,
49 /// the values array must be empty. This array is replaced during a strategic
50 /// merge patch.
51 #[serde(default, skip_serializing_if = "Option::is_none")]
52 pub values: Option<Vec<String>>,
53}
54
55/// A label selector is a label query over a set of resources. The result of matchLabels and
56/// matchExpressions are ANDed. An empty label selector matches all objects. A null
57/// label selector matches no objects.
58#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq, JsonSchema)]
59pub struct BundleNamespaceMappingNamespaceSelector {
60 /// matchExpressions is a list of label selector requirements. The requirements are ANDed.
61 #[serde(
62 default,
63 skip_serializing_if = "Option::is_none",
64 rename = "matchExpressions"
65 )]
66 pub match_expressions: Option<Vec<BundleNamespaceMappingNamespaceSelectorMatchExpressions>>,
67 /// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
68 /// map is equivalent to an element of matchExpressions, whose key field is "key", the
69 /// operator is "In", and the values array contains only "value". The requirements are ANDed.
70 #[serde(
71 default,
72 skip_serializing_if = "Option::is_none",
73 rename = "matchLabels"
74 )]
75 pub match_labels: Option<BTreeMap<String, String>>,
76}
77
78/// A label selector requirement is a selector that contains values, a key, and an operator that
79/// relates the key and values.
80#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq, JsonSchema)]
81pub struct BundleNamespaceMappingNamespaceSelectorMatchExpressions {
82 /// key is the label key that the selector applies to.
83 pub key: String,
84 /// operator represents a key's relationship to a set of values.
85 /// Valid operators are In, NotIn, Exists and DoesNotExist.
86 pub operator: String,
87 /// values is an array of string values. If the operator is In or NotIn,
88 /// the values array must be non-empty. If the operator is Exists or DoesNotExist,
89 /// the values array must be empty. This array is replaced during a strategic
90 /// merge patch.
91 #[serde(default, skip_serializing_if = "Option::is_none")]
92 pub values: Option<Vec<String>>,
93}