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