google_cloud_securityposture_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::PolicyRule {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("PolicyRule");
23        debug_struct.field("condition", &self.condition);
24        debug_struct.field("kind", &self.kind);
25        if !self._unknown_fields.is_empty() {
26            debug_struct.field("_unknown_fields", &self._unknown_fields);
27        }
28        debug_struct.finish()
29    }
30}
31
32impl std::fmt::Debug for super::policy_rule::StringValues {
33    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
34        let mut debug_struct = f.debug_struct("StringValues");
35        debug_struct.field("allowed_values", &self.allowed_values);
36        debug_struct.field("denied_values", &self.denied_values);
37        if !self._unknown_fields.is_empty() {
38            debug_struct.field("_unknown_fields", &self._unknown_fields);
39        }
40        debug_struct.finish()
41    }
42}
43
44impl std::fmt::Debug for super::CustomConstraint {
45    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
46        let mut debug_struct = f.debug_struct("CustomConstraint");
47        debug_struct.field("name", &self.name);
48        debug_struct.field("resource_types", &self.resource_types);
49        debug_struct.field("method_types", &self.method_types);
50        debug_struct.field("condition", &self.condition);
51        debug_struct.field("action_type", &self.action_type);
52        debug_struct.field("display_name", &self.display_name);
53        debug_struct.field("description", &self.description);
54        debug_struct.field("update_time", &self.update_time);
55        if !self._unknown_fields.is_empty() {
56            debug_struct.field("_unknown_fields", &self._unknown_fields);
57        }
58        debug_struct.finish()
59    }
60}
61
62impl std::fmt::Debug for super::OrgPolicyConstraint {
63    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
64        let mut debug_struct = f.debug_struct("OrgPolicyConstraint");
65        debug_struct.field("canned_constraint_id", &self.canned_constraint_id);
66        debug_struct.field("policy_rules", &self.policy_rules);
67        if !self._unknown_fields.is_empty() {
68            debug_struct.field("_unknown_fields", &self._unknown_fields);
69        }
70        debug_struct.finish()
71    }
72}
73
74impl std::fmt::Debug for super::OrgPolicyConstraintCustom {
75    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
76        let mut debug_struct = f.debug_struct("OrgPolicyConstraintCustom");
77        debug_struct.field("custom_constraint", &self.custom_constraint);
78        debug_struct.field("policy_rules", &self.policy_rules);
79        if !self._unknown_fields.is_empty() {
80            debug_struct.field("_unknown_fields", &self._unknown_fields);
81        }
82        debug_struct.finish()
83    }
84}
85
86impl std::fmt::Debug for super::OperationMetadata {
87    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
88        let mut debug_struct = f.debug_struct("OperationMetadata");
89        debug_struct.field("create_time", &self.create_time);
90        debug_struct.field("end_time", &self.end_time);
91        debug_struct.field("target", &self.target);
92        debug_struct.field("verb", &self.verb);
93        debug_struct.field("status_message", &self.status_message);
94        debug_struct.field("requested_cancellation", &self.requested_cancellation);
95        debug_struct.field("api_version", &self.api_version);
96        debug_struct.field("error_message", &self.error_message);
97        if !self._unknown_fields.is_empty() {
98            debug_struct.field("_unknown_fields", &self._unknown_fields);
99        }
100        debug_struct.finish()
101    }
102}
103
104impl std::fmt::Debug for super::Posture {
105    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
106        let mut debug_struct = f.debug_struct("Posture");
107        debug_struct.field("name", &self.name);
108        debug_struct.field("state", &self.state);
109        debug_struct.field("revision_id", &self.revision_id);
110        debug_struct.field("create_time", &self.create_time);
111        debug_struct.field("update_time", &self.update_time);
112        debug_struct.field("description", &self.description);
113        debug_struct.field("policy_sets", &self.policy_sets);
114        debug_struct.field("etag", &self.etag);
115        debug_struct.field("annotations", &self.annotations);
116        debug_struct.field("reconciling", &self.reconciling);
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::PolicySet {
125    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
126        let mut debug_struct = f.debug_struct("PolicySet");
127        debug_struct.field("policy_set_id", &self.policy_set_id);
128        debug_struct.field("description", &self.description);
129        debug_struct.field("policies", &self.policies);
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::Policy {
138    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
139        let mut debug_struct = f.debug_struct("Policy");
140        debug_struct.field("policy_id", &self.policy_id);
141        debug_struct.field("compliance_standards", &self.compliance_standards);
142        debug_struct.field("constraint", &self.constraint);
143        debug_struct.field("description", &self.description);
144        if !self._unknown_fields.is_empty() {
145            debug_struct.field("_unknown_fields", &self._unknown_fields);
146        }
147        debug_struct.finish()
148    }
149}
150
151impl std::fmt::Debug for super::policy::ComplianceStandard {
152    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
153        let mut debug_struct = f.debug_struct("ComplianceStandard");
154        debug_struct.field("standard", &self.standard);
155        debug_struct.field("control", &self.control);
156        if !self._unknown_fields.is_empty() {
157            debug_struct.field("_unknown_fields", &self._unknown_fields);
158        }
159        debug_struct.finish()
160    }
161}
162
163impl std::fmt::Debug for super::Constraint {
164    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
165        let mut debug_struct = f.debug_struct("Constraint");
166        debug_struct.field("implementation", &self.implementation);
167        if !self._unknown_fields.is_empty() {
168            debug_struct.field("_unknown_fields", &self._unknown_fields);
169        }
170        debug_struct.finish()
171    }
172}
173
174impl std::fmt::Debug for super::ListPosturesRequest {
175    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
176        let mut debug_struct = f.debug_struct("ListPosturesRequest");
177        debug_struct.field("parent", &self.parent);
178        debug_struct.field("page_size", &self.page_size);
179        debug_struct.field("page_token", &self.page_token);
180        if !self._unknown_fields.is_empty() {
181            debug_struct.field("_unknown_fields", &self._unknown_fields);
182        }
183        debug_struct.finish()
184    }
185}
186
187impl std::fmt::Debug for super::ListPosturesResponse {
188    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
189        let mut debug_struct = f.debug_struct("ListPosturesResponse");
190        debug_struct.field("postures", &self.postures);
191        debug_struct.field("next_page_token", &self.next_page_token);
192        debug_struct.field("unreachable", &self.unreachable);
193        if !self._unknown_fields.is_empty() {
194            debug_struct.field("_unknown_fields", &self._unknown_fields);
195        }
196        debug_struct.finish()
197    }
198}
199
200impl std::fmt::Debug for super::ListPostureRevisionsRequest {
201    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
202        let mut debug_struct = f.debug_struct("ListPostureRevisionsRequest");
203        debug_struct.field("name", &self.name);
204        debug_struct.field("page_size", &self.page_size);
205        debug_struct.field("page_token", &self.page_token);
206        if !self._unknown_fields.is_empty() {
207            debug_struct.field("_unknown_fields", &self._unknown_fields);
208        }
209        debug_struct.finish()
210    }
211}
212
213impl std::fmt::Debug for super::ListPostureRevisionsResponse {
214    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
215        let mut debug_struct = f.debug_struct("ListPostureRevisionsResponse");
216        debug_struct.field("revisions", &self.revisions);
217        debug_struct.field("next_page_token", &self.next_page_token);
218        if !self._unknown_fields.is_empty() {
219            debug_struct.field("_unknown_fields", &self._unknown_fields);
220        }
221        debug_struct.finish()
222    }
223}
224
225impl std::fmt::Debug for super::GetPostureRequest {
226    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
227        let mut debug_struct = f.debug_struct("GetPostureRequest");
228        debug_struct.field("name", &self.name);
229        debug_struct.field("revision_id", &self.revision_id);
230        if !self._unknown_fields.is_empty() {
231            debug_struct.field("_unknown_fields", &self._unknown_fields);
232        }
233        debug_struct.finish()
234    }
235}
236
237impl std::fmt::Debug for super::CreatePostureRequest {
238    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
239        let mut debug_struct = f.debug_struct("CreatePostureRequest");
240        debug_struct.field("parent", &self.parent);
241        debug_struct.field("posture_id", &self.posture_id);
242        debug_struct.field("posture", &self.posture);
243        if !self._unknown_fields.is_empty() {
244            debug_struct.field("_unknown_fields", &self._unknown_fields);
245        }
246        debug_struct.finish()
247    }
248}
249
250impl std::fmt::Debug for super::UpdatePostureRequest {
251    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
252        let mut debug_struct = f.debug_struct("UpdatePostureRequest");
253        debug_struct.field("update_mask", &self.update_mask);
254        debug_struct.field("posture", &self.posture);
255        debug_struct.field("revision_id", &self.revision_id);
256        if !self._unknown_fields.is_empty() {
257            debug_struct.field("_unknown_fields", &self._unknown_fields);
258        }
259        debug_struct.finish()
260    }
261}
262
263impl std::fmt::Debug for super::DeletePostureRequest {
264    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
265        let mut debug_struct = f.debug_struct("DeletePostureRequest");
266        debug_struct.field("name", &self.name);
267        debug_struct.field("etag", &self.etag);
268        if !self._unknown_fields.is_empty() {
269            debug_struct.field("_unknown_fields", &self._unknown_fields);
270        }
271        debug_struct.finish()
272    }
273}
274
275impl std::fmt::Debug for super::ExtractPostureRequest {
276    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
277        let mut debug_struct = f.debug_struct("ExtractPostureRequest");
278        debug_struct.field("parent", &self.parent);
279        debug_struct.field("posture_id", &self.posture_id);
280        debug_struct.field("workload", &self.workload);
281        if !self._unknown_fields.is_empty() {
282            debug_struct.field("_unknown_fields", &self._unknown_fields);
283        }
284        debug_struct.finish()
285    }
286}
287
288impl std::fmt::Debug for super::PostureDeployment {
289    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
290        let mut debug_struct = f.debug_struct("PostureDeployment");
291        debug_struct.field("name", &self.name);
292        debug_struct.field("target_resource", &self.target_resource);
293        debug_struct.field("state", &self.state);
294        debug_struct.field("posture_id", &self.posture_id);
295        debug_struct.field("posture_revision_id", &self.posture_revision_id);
296        debug_struct.field("create_time", &self.create_time);
297        debug_struct.field("update_time", &self.update_time);
298        debug_struct.field("description", &self.description);
299        debug_struct.field("etag", &self.etag);
300        debug_struct.field("annotations", &self.annotations);
301        debug_struct.field("reconciling", &self.reconciling);
302        debug_struct.field("desired_posture_id", &self.desired_posture_id);
303        debug_struct.field(
304            "desired_posture_revision_id",
305            &self.desired_posture_revision_id,
306        );
307        debug_struct.field("failure_message", &self.failure_message);
308        if !self._unknown_fields.is_empty() {
309            debug_struct.field("_unknown_fields", &self._unknown_fields);
310        }
311        debug_struct.finish()
312    }
313}
314
315impl std::fmt::Debug for super::ListPostureDeploymentsRequest {
316    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
317        let mut debug_struct = f.debug_struct("ListPostureDeploymentsRequest");
318        debug_struct.field("parent", &self.parent);
319        debug_struct.field("page_size", &self.page_size);
320        debug_struct.field("page_token", &self.page_token);
321        debug_struct.field("filter", &self.filter);
322        if !self._unknown_fields.is_empty() {
323            debug_struct.field("_unknown_fields", &self._unknown_fields);
324        }
325        debug_struct.finish()
326    }
327}
328
329impl std::fmt::Debug for super::ListPostureDeploymentsResponse {
330    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
331        let mut debug_struct = f.debug_struct("ListPostureDeploymentsResponse");
332        debug_struct.field("posture_deployments", &self.posture_deployments);
333        debug_struct.field("next_page_token", &self.next_page_token);
334        debug_struct.field("unreachable", &self.unreachable);
335        if !self._unknown_fields.is_empty() {
336            debug_struct.field("_unknown_fields", &self._unknown_fields);
337        }
338        debug_struct.finish()
339    }
340}
341
342impl std::fmt::Debug for super::GetPostureDeploymentRequest {
343    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
344        let mut debug_struct = f.debug_struct("GetPostureDeploymentRequest");
345        debug_struct.field("name", &self.name);
346        if !self._unknown_fields.is_empty() {
347            debug_struct.field("_unknown_fields", &self._unknown_fields);
348        }
349        debug_struct.finish()
350    }
351}
352
353impl std::fmt::Debug for super::CreatePostureDeploymentRequest {
354    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
355        let mut debug_struct = f.debug_struct("CreatePostureDeploymentRequest");
356        debug_struct.field("parent", &self.parent);
357        debug_struct.field("posture_deployment_id", &self.posture_deployment_id);
358        debug_struct.field("posture_deployment", &self.posture_deployment);
359        if !self._unknown_fields.is_empty() {
360            debug_struct.field("_unknown_fields", &self._unknown_fields);
361        }
362        debug_struct.finish()
363    }
364}
365
366impl std::fmt::Debug for super::UpdatePostureDeploymentRequest {
367    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
368        let mut debug_struct = f.debug_struct("UpdatePostureDeploymentRequest");
369        debug_struct.field("update_mask", &self.update_mask);
370        debug_struct.field("posture_deployment", &self.posture_deployment);
371        if !self._unknown_fields.is_empty() {
372            debug_struct.field("_unknown_fields", &self._unknown_fields);
373        }
374        debug_struct.finish()
375    }
376}
377
378impl std::fmt::Debug for super::DeletePostureDeploymentRequest {
379    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
380        let mut debug_struct = f.debug_struct("DeletePostureDeploymentRequest");
381        debug_struct.field("name", &self.name);
382        debug_struct.field("etag", &self.etag);
383        if !self._unknown_fields.is_empty() {
384            debug_struct.field("_unknown_fields", &self._unknown_fields);
385        }
386        debug_struct.finish()
387    }
388}
389
390impl std::fmt::Debug for super::PostureTemplate {
391    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
392        let mut debug_struct = f.debug_struct("PostureTemplate");
393        debug_struct.field("name", &self.name);
394        debug_struct.field("revision_id", &self.revision_id);
395        debug_struct.field("description", &self.description);
396        debug_struct.field("state", &self.state);
397        debug_struct.field("policy_sets", &self.policy_sets);
398        if !self._unknown_fields.is_empty() {
399            debug_struct.field("_unknown_fields", &self._unknown_fields);
400        }
401        debug_struct.finish()
402    }
403}
404
405impl std::fmt::Debug for super::ListPostureTemplatesRequest {
406    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
407        let mut debug_struct = f.debug_struct("ListPostureTemplatesRequest");
408        debug_struct.field("parent", &self.parent);
409        debug_struct.field("page_size", &self.page_size);
410        debug_struct.field("page_token", &self.page_token);
411        debug_struct.field("filter", &self.filter);
412        if !self._unknown_fields.is_empty() {
413            debug_struct.field("_unknown_fields", &self._unknown_fields);
414        }
415        debug_struct.finish()
416    }
417}
418
419impl std::fmt::Debug for super::ListPostureTemplatesResponse {
420    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
421        let mut debug_struct = f.debug_struct("ListPostureTemplatesResponse");
422        debug_struct.field("posture_templates", &self.posture_templates);
423        debug_struct.field("next_page_token", &self.next_page_token);
424        if !self._unknown_fields.is_empty() {
425            debug_struct.field("_unknown_fields", &self._unknown_fields);
426        }
427        debug_struct.finish()
428    }
429}
430
431impl std::fmt::Debug for super::GetPostureTemplateRequest {
432    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
433        let mut debug_struct = f.debug_struct("GetPostureTemplateRequest");
434        debug_struct.field("name", &self.name);
435        debug_struct.field("revision_id", &self.revision_id);
436        if !self._unknown_fields.is_empty() {
437            debug_struct.field("_unknown_fields", &self._unknown_fields);
438        }
439        debug_struct.finish()
440    }
441}
442
443impl std::fmt::Debug for super::SecurityHealthAnalyticsModule {
444    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
445        let mut debug_struct = f.debug_struct("SecurityHealthAnalyticsModule");
446        debug_struct.field("module_name", &self.module_name);
447        debug_struct.field("module_enablement_state", &self.module_enablement_state);
448        if !self._unknown_fields.is_empty() {
449            debug_struct.field("_unknown_fields", &self._unknown_fields);
450        }
451        debug_struct.finish()
452    }
453}
454
455impl std::fmt::Debug for super::SecurityHealthAnalyticsCustomModule {
456    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
457        let mut debug_struct = f.debug_struct("SecurityHealthAnalyticsCustomModule");
458        debug_struct.field("id", &self.id);
459        debug_struct.field("display_name", &self.display_name);
460        debug_struct.field("config", &self.config);
461        debug_struct.field("module_enablement_state", &self.module_enablement_state);
462        if !self._unknown_fields.is_empty() {
463            debug_struct.field("_unknown_fields", &self._unknown_fields);
464        }
465        debug_struct.finish()
466    }
467}
468
469impl std::fmt::Debug for super::CustomConfig {
470    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
471        let mut debug_struct = f.debug_struct("CustomConfig");
472        debug_struct.field("predicate", &self.predicate);
473        debug_struct.field("custom_output", &self.custom_output);
474        debug_struct.field("resource_selector", &self.resource_selector);
475        debug_struct.field("severity", &self.severity);
476        debug_struct.field("description", &self.description);
477        debug_struct.field("recommendation", &self.recommendation);
478        if !self._unknown_fields.is_empty() {
479            debug_struct.field("_unknown_fields", &self._unknown_fields);
480        }
481        debug_struct.finish()
482    }
483}
484
485impl std::fmt::Debug for super::custom_config::CustomOutputSpec {
486    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
487        let mut debug_struct = f.debug_struct("CustomOutputSpec");
488        debug_struct.field("properties", &self.properties);
489        if !self._unknown_fields.is_empty() {
490            debug_struct.field("_unknown_fields", &self._unknown_fields);
491        }
492        debug_struct.finish()
493    }
494}
495
496impl std::fmt::Debug for super::custom_config::custom_output_spec::Property {
497    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
498        let mut debug_struct = f.debug_struct("Property");
499        debug_struct.field("name", &self.name);
500        debug_struct.field("value_expression", &self.value_expression);
501        if !self._unknown_fields.is_empty() {
502            debug_struct.field("_unknown_fields", &self._unknown_fields);
503        }
504        debug_struct.finish()
505    }
506}
507
508impl std::fmt::Debug for super::custom_config::ResourceSelector {
509    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
510        let mut debug_struct = f.debug_struct("ResourceSelector");
511        debug_struct.field("resource_types", &self.resource_types);
512        if !self._unknown_fields.is_empty() {
513            debug_struct.field("_unknown_fields", &self._unknown_fields);
514        }
515        debug_struct.finish()
516    }
517}