Skip to main content

google_cloud_binaryauthorization_v1/model/
debug.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::Policy {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Policy");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("description", &self.description);
25        debug_struct.field(
26            "global_policy_evaluation_mode",
27            &self.global_policy_evaluation_mode,
28        );
29        debug_struct.field(
30            "admission_whitelist_patterns",
31            &self.admission_whitelist_patterns,
32        );
33        debug_struct.field("cluster_admission_rules", &self.cluster_admission_rules);
34        debug_struct.field(
35            "kubernetes_namespace_admission_rules",
36            &self.kubernetes_namespace_admission_rules,
37        );
38        debug_struct.field(
39            "kubernetes_service_account_admission_rules",
40            &self.kubernetes_service_account_admission_rules,
41        );
42        debug_struct.field(
43            "istio_service_identity_admission_rules",
44            &self.istio_service_identity_admission_rules,
45        );
46        debug_struct.field("default_admission_rule", &self.default_admission_rule);
47        debug_struct.field("update_time", &self.update_time);
48        debug_struct.field("etag", &self.etag);
49        if !self._unknown_fields.is_empty() {
50            debug_struct.field("_unknown_fields", &self._unknown_fields);
51        }
52        debug_struct.finish()
53    }
54}
55
56impl std::fmt::Debug for super::AdmissionWhitelistPattern {
57    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58        let mut debug_struct = f.debug_struct("AdmissionWhitelistPattern");
59        debug_struct.field("name_pattern", &self.name_pattern);
60        if !self._unknown_fields.is_empty() {
61            debug_struct.field("_unknown_fields", &self._unknown_fields);
62        }
63        debug_struct.finish()
64    }
65}
66
67impl std::fmt::Debug for super::AdmissionRule {
68    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
69        let mut debug_struct = f.debug_struct("AdmissionRule");
70        debug_struct.field("evaluation_mode", &self.evaluation_mode);
71        debug_struct.field("require_attestations_by", &self.require_attestations_by);
72        debug_struct.field("enforcement_mode", &self.enforcement_mode);
73        if !self._unknown_fields.is_empty() {
74            debug_struct.field("_unknown_fields", &self._unknown_fields);
75        }
76        debug_struct.finish()
77    }
78}
79
80impl std::fmt::Debug for super::Attestor {
81    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
82        let mut debug_struct = f.debug_struct("Attestor");
83        debug_struct.field("name", &self.name);
84        debug_struct.field("description", &self.description);
85        debug_struct.field("update_time", &self.update_time);
86        debug_struct.field("etag", &self.etag);
87        debug_struct.field("attestor_type", &self.attestor_type);
88        if !self._unknown_fields.is_empty() {
89            debug_struct.field("_unknown_fields", &self._unknown_fields);
90        }
91        debug_struct.finish()
92    }
93}
94
95impl std::fmt::Debug for super::UserOwnedGrafeasNote {
96    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
97        let mut debug_struct = f.debug_struct("UserOwnedGrafeasNote");
98        debug_struct.field("note_reference", &self.note_reference);
99        debug_struct.field("public_keys", &self.public_keys);
100        debug_struct.field(
101            "delegation_service_account_email",
102            &self.delegation_service_account_email,
103        );
104        if !self._unknown_fields.is_empty() {
105            debug_struct.field("_unknown_fields", &self._unknown_fields);
106        }
107        debug_struct.finish()
108    }
109}
110
111impl std::fmt::Debug for super::PkixPublicKey {
112    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113        let mut debug_struct = f.debug_struct("PkixPublicKey");
114        debug_struct.field("public_key_pem", &self.public_key_pem);
115        debug_struct.field("signature_algorithm", &self.signature_algorithm);
116        debug_struct.field("key_id", &self.key_id);
117        if !self._unknown_fields.is_empty() {
118            debug_struct.field("_unknown_fields", &self._unknown_fields);
119        }
120        debug_struct.finish()
121    }
122}
123
124impl std::fmt::Debug for super::AttestorPublicKey {
125    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
126        let mut debug_struct = f.debug_struct("AttestorPublicKey");
127        debug_struct.field("comment", &self.comment);
128        debug_struct.field("id", &self.id);
129        debug_struct.field("public_key", &self.public_key);
130        if !self._unknown_fields.is_empty() {
131            debug_struct.field("_unknown_fields", &self._unknown_fields);
132        }
133        debug_struct.finish()
134    }
135}
136
137impl std::fmt::Debug for super::GetPolicyRequest {
138    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
139        let mut debug_struct = f.debug_struct("GetPolicyRequest");
140        debug_struct.field("name", &self.name);
141        if !self._unknown_fields.is_empty() {
142            debug_struct.field("_unknown_fields", &self._unknown_fields);
143        }
144        debug_struct.finish()
145    }
146}
147
148impl std::fmt::Debug for super::UpdatePolicyRequest {
149    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
150        let mut debug_struct = f.debug_struct("UpdatePolicyRequest");
151        debug_struct.field("policy", &self.policy);
152        if !self._unknown_fields.is_empty() {
153            debug_struct.field("_unknown_fields", &self._unknown_fields);
154        }
155        debug_struct.finish()
156    }
157}
158
159impl std::fmt::Debug for super::CreateAttestorRequest {
160    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
161        let mut debug_struct = f.debug_struct("CreateAttestorRequest");
162        debug_struct.field("parent", &self.parent);
163        debug_struct.field("attestor_id", &self.attestor_id);
164        debug_struct.field("attestor", &self.attestor);
165        if !self._unknown_fields.is_empty() {
166            debug_struct.field("_unknown_fields", &self._unknown_fields);
167        }
168        debug_struct.finish()
169    }
170}
171
172impl std::fmt::Debug for super::GetAttestorRequest {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("GetAttestorRequest");
175        debug_struct.field("name", &self.name);
176        if !self._unknown_fields.is_empty() {
177            debug_struct.field("_unknown_fields", &self._unknown_fields);
178        }
179        debug_struct.finish()
180    }
181}
182
183impl std::fmt::Debug for super::UpdateAttestorRequest {
184    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
185        let mut debug_struct = f.debug_struct("UpdateAttestorRequest");
186        debug_struct.field("attestor", &self.attestor);
187        if !self._unknown_fields.is_empty() {
188            debug_struct.field("_unknown_fields", &self._unknown_fields);
189        }
190        debug_struct.finish()
191    }
192}
193
194impl std::fmt::Debug for super::ListAttestorsRequest {
195    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
196        let mut debug_struct = f.debug_struct("ListAttestorsRequest");
197        debug_struct.field("parent", &self.parent);
198        debug_struct.field("page_size", &self.page_size);
199        debug_struct.field("page_token", &self.page_token);
200        if !self._unknown_fields.is_empty() {
201            debug_struct.field("_unknown_fields", &self._unknown_fields);
202        }
203        debug_struct.finish()
204    }
205}
206
207impl std::fmt::Debug for super::ListAttestorsResponse {
208    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
209        let mut debug_struct = f.debug_struct("ListAttestorsResponse");
210        debug_struct.field("attestors", &self.attestors);
211        debug_struct.field("next_page_token", &self.next_page_token);
212        if !self._unknown_fields.is_empty() {
213            debug_struct.field("_unknown_fields", &self._unknown_fields);
214        }
215        debug_struct.finish()
216    }
217}
218
219impl std::fmt::Debug for super::DeleteAttestorRequest {
220    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
221        let mut debug_struct = f.debug_struct("DeleteAttestorRequest");
222        debug_struct.field("name", &self.name);
223        if !self._unknown_fields.is_empty() {
224            debug_struct.field("_unknown_fields", &self._unknown_fields);
225        }
226        debug_struct.finish()
227    }
228}
229
230impl std::fmt::Debug for super::GetSystemPolicyRequest {
231    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
232        let mut debug_struct = f.debug_struct("GetSystemPolicyRequest");
233        debug_struct.field("name", &self.name);
234        if !self._unknown_fields.is_empty() {
235            debug_struct.field("_unknown_fields", &self._unknown_fields);
236        }
237        debug_struct.finish()
238    }
239}
240
241impl std::fmt::Debug for super::ValidateAttestationOccurrenceRequest {
242    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
243        let mut debug_struct = f.debug_struct("ValidateAttestationOccurrenceRequest");
244        debug_struct.field("attestor", &self.attestor);
245        debug_struct.field("attestation", &self.attestation);
246        debug_struct.field("occurrence_note", &self.occurrence_note);
247        debug_struct.field("occurrence_resource_uri", &self.occurrence_resource_uri);
248        if !self._unknown_fields.is_empty() {
249            debug_struct.field("_unknown_fields", &self._unknown_fields);
250        }
251        debug_struct.finish()
252    }
253}
254
255impl std::fmt::Debug for super::ValidateAttestationOccurrenceResponse {
256    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
257        let mut debug_struct = f.debug_struct("ValidateAttestationOccurrenceResponse");
258        debug_struct.field("result", &self.result);
259        debug_struct.field("denial_reason", &self.denial_reason);
260        if !self._unknown_fields.is_empty() {
261            debug_struct.field("_unknown_fields", &self._unknown_fields);
262        }
263        debug_struct.finish()
264    }
265}