Skip to main content

google_cloud_assuredworkloads_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::CreateWorkloadRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("CreateWorkloadRequest");
23        debug_struct.field("parent", &self.parent);
24        debug_struct.field("workload", &self.workload);
25        debug_struct.field("external_id", &self.external_id);
26        if !self._unknown_fields.is_empty() {
27            debug_struct.field("_unknown_fields", &self._unknown_fields);
28        }
29        debug_struct.finish()
30    }
31}
32
33impl std::fmt::Debug for super::UpdateWorkloadRequest {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("UpdateWorkloadRequest");
36        debug_struct.field("workload", &self.workload);
37        debug_struct.field("update_mask", &self.update_mask);
38        if !self._unknown_fields.is_empty() {
39            debug_struct.field("_unknown_fields", &self._unknown_fields);
40        }
41        debug_struct.finish()
42    }
43}
44
45impl std::fmt::Debug for super::DeleteWorkloadRequest {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("DeleteWorkloadRequest");
48        debug_struct.field("name", &self.name);
49        debug_struct.field("etag", &self.etag);
50        if !self._unknown_fields.is_empty() {
51            debug_struct.field("_unknown_fields", &self._unknown_fields);
52        }
53        debug_struct.finish()
54    }
55}
56
57impl std::fmt::Debug for super::GetWorkloadRequest {
58    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
59        let mut debug_struct = f.debug_struct("GetWorkloadRequest");
60        debug_struct.field("name", &self.name);
61        if !self._unknown_fields.is_empty() {
62            debug_struct.field("_unknown_fields", &self._unknown_fields);
63        }
64        debug_struct.finish()
65    }
66}
67
68impl std::fmt::Debug for super::ListWorkloadsRequest {
69    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
70        let mut debug_struct = f.debug_struct("ListWorkloadsRequest");
71        debug_struct.field("parent", &self.parent);
72        debug_struct.field("page_size", &self.page_size);
73        debug_struct.field("page_token", &self.page_token);
74        debug_struct.field("filter", &self.filter);
75        if !self._unknown_fields.is_empty() {
76            debug_struct.field("_unknown_fields", &self._unknown_fields);
77        }
78        debug_struct.finish()
79    }
80}
81
82impl std::fmt::Debug for super::ListWorkloadsResponse {
83    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
84        let mut debug_struct = f.debug_struct("ListWorkloadsResponse");
85        debug_struct.field("workloads", &self.workloads);
86        debug_struct.field("next_page_token", &self.next_page_token);
87        if !self._unknown_fields.is_empty() {
88            debug_struct.field("_unknown_fields", &self._unknown_fields);
89        }
90        debug_struct.finish()
91    }
92}
93
94impl std::fmt::Debug for super::Workload {
95    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
96        let mut debug_struct = f.debug_struct("Workload");
97        debug_struct.field("name", &self.name);
98        debug_struct.field("display_name", &self.display_name);
99        debug_struct.field("resources", &self.resources);
100        debug_struct.field("compliance_regime", &self.compliance_regime);
101        debug_struct.field("create_time", &self.create_time);
102        debug_struct.field("billing_account", &self.billing_account);
103        debug_struct.field("etag", &self.etag);
104        debug_struct.field("labels", &self.labels);
105        debug_struct.field(
106            "provisioned_resources_parent",
107            &self.provisioned_resources_parent,
108        );
109        debug_struct.field("kms_settings", &self.kms_settings);
110        debug_struct.field("resource_settings", &self.resource_settings);
111        debug_struct.field("kaj_enrollment_state", &self.kaj_enrollment_state);
112        debug_struct.field("enable_sovereign_controls", &self.enable_sovereign_controls);
113        debug_struct.field("saa_enrollment_response", &self.saa_enrollment_response);
114        debug_struct.field(
115            "compliant_but_disallowed_services",
116            &self.compliant_but_disallowed_services,
117        );
118        debug_struct.field("partner", &self.partner);
119        if !self._unknown_fields.is_empty() {
120            debug_struct.field("_unknown_fields", &self._unknown_fields);
121        }
122        debug_struct.finish()
123    }
124}
125
126impl std::fmt::Debug for super::workload::ResourceInfo {
127    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
128        let mut debug_struct = f.debug_struct("ResourceInfo");
129        debug_struct.field("resource_id", &self.resource_id);
130        debug_struct.field("resource_type", &self.resource_type);
131        if !self._unknown_fields.is_empty() {
132            debug_struct.field("_unknown_fields", &self._unknown_fields);
133        }
134        debug_struct.finish()
135    }
136}
137
138impl std::fmt::Debug for super::workload::KMSSettings {
139    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
140        let mut debug_struct = f.debug_struct("KMSSettings");
141        debug_struct.field("next_rotation_time", &self.next_rotation_time);
142        debug_struct.field("rotation_period", &self.rotation_period);
143        if !self._unknown_fields.is_empty() {
144            debug_struct.field("_unknown_fields", &self._unknown_fields);
145        }
146        debug_struct.finish()
147    }
148}
149
150impl std::fmt::Debug for super::workload::ResourceSettings {
151    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
152        let mut debug_struct = f.debug_struct("ResourceSettings");
153        debug_struct.field("resource_id", &self.resource_id);
154        debug_struct.field("resource_type", &self.resource_type);
155        debug_struct.field("display_name", &self.display_name);
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::workload::SaaEnrollmentResponse {
164    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
165        let mut debug_struct = f.debug_struct("SaaEnrollmentResponse");
166        debug_struct.field("setup_status", &self.setup_status);
167        debug_struct.field("setup_errors", &self.setup_errors);
168        if !self._unknown_fields.is_empty() {
169            debug_struct.field("_unknown_fields", &self._unknown_fields);
170        }
171        debug_struct.finish()
172    }
173}
174
175impl std::fmt::Debug for super::CreateWorkloadOperationMetadata {
176    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
177        let mut debug_struct = f.debug_struct("CreateWorkloadOperationMetadata");
178        debug_struct.field("create_time", &self.create_time);
179        debug_struct.field("display_name", &self.display_name);
180        debug_struct.field("parent", &self.parent);
181        debug_struct.field("compliance_regime", &self.compliance_regime);
182        if !self._unknown_fields.is_empty() {
183            debug_struct.field("_unknown_fields", &self._unknown_fields);
184        }
185        debug_struct.finish()
186    }
187}
188
189impl std::fmt::Debug for super::RestrictAllowedResourcesRequest {
190    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
191        let mut debug_struct = f.debug_struct("RestrictAllowedResourcesRequest");
192        debug_struct.field("name", &self.name);
193        debug_struct.field("restriction_type", &self.restriction_type);
194        if !self._unknown_fields.is_empty() {
195            debug_struct.field("_unknown_fields", &self._unknown_fields);
196        }
197        debug_struct.finish()
198    }
199}
200
201impl std::fmt::Debug for super::RestrictAllowedResourcesResponse {
202    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
203        let mut debug_struct = f.debug_struct("RestrictAllowedResourcesResponse");
204        if !self._unknown_fields.is_empty() {
205            debug_struct.field("_unknown_fields", &self._unknown_fields);
206        }
207        debug_struct.finish()
208    }
209}
210
211impl std::fmt::Debug for super::AcknowledgeViolationRequest {
212    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
213        let mut debug_struct = f.debug_struct("AcknowledgeViolationRequest");
214        debug_struct.field("name", &self.name);
215        debug_struct.field("comment", &self.comment);
216        debug_struct.field("non_compliant_org_policy", &self.non_compliant_org_policy);
217        if !self._unknown_fields.is_empty() {
218            debug_struct.field("_unknown_fields", &self._unknown_fields);
219        }
220        debug_struct.finish()
221    }
222}
223
224impl std::fmt::Debug for super::AcknowledgeViolationResponse {
225    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
226        let mut debug_struct = f.debug_struct("AcknowledgeViolationResponse");
227        if !self._unknown_fields.is_empty() {
228            debug_struct.field("_unknown_fields", &self._unknown_fields);
229        }
230        debug_struct.finish()
231    }
232}
233
234impl std::fmt::Debug for super::TimeWindow {
235    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
236        let mut debug_struct = f.debug_struct("TimeWindow");
237        debug_struct.field("start_time", &self.start_time);
238        debug_struct.field("end_time", &self.end_time);
239        if !self._unknown_fields.is_empty() {
240            debug_struct.field("_unknown_fields", &self._unknown_fields);
241        }
242        debug_struct.finish()
243    }
244}
245
246impl std::fmt::Debug for super::ListViolationsRequest {
247    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
248        let mut debug_struct = f.debug_struct("ListViolationsRequest");
249        debug_struct.field("parent", &self.parent);
250        debug_struct.field("interval", &self.interval);
251        debug_struct.field("page_size", &self.page_size);
252        debug_struct.field("page_token", &self.page_token);
253        debug_struct.field("filter", &self.filter);
254        if !self._unknown_fields.is_empty() {
255            debug_struct.field("_unknown_fields", &self._unknown_fields);
256        }
257        debug_struct.finish()
258    }
259}
260
261impl std::fmt::Debug for super::ListViolationsResponse {
262    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
263        let mut debug_struct = f.debug_struct("ListViolationsResponse");
264        debug_struct.field("violations", &self.violations);
265        debug_struct.field("next_page_token", &self.next_page_token);
266        if !self._unknown_fields.is_empty() {
267            debug_struct.field("_unknown_fields", &self._unknown_fields);
268        }
269        debug_struct.finish()
270    }
271}
272
273impl std::fmt::Debug for super::GetViolationRequest {
274    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
275        let mut debug_struct = f.debug_struct("GetViolationRequest");
276        debug_struct.field("name", &self.name);
277        if !self._unknown_fields.is_empty() {
278            debug_struct.field("_unknown_fields", &self._unknown_fields);
279        }
280        debug_struct.finish()
281    }
282}
283
284impl std::fmt::Debug for super::Violation {
285    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
286        let mut debug_struct = f.debug_struct("Violation");
287        debug_struct.field("name", &self.name);
288        debug_struct.field("description", &self.description);
289        debug_struct.field("begin_time", &self.begin_time);
290        debug_struct.field("update_time", &self.update_time);
291        debug_struct.field("resolve_time", &self.resolve_time);
292        debug_struct.field("category", &self.category);
293        debug_struct.field("state", &self.state);
294        debug_struct.field("org_policy_constraint", &self.org_policy_constraint);
295        debug_struct.field("audit_log_link", &self.audit_log_link);
296        debug_struct.field("non_compliant_org_policy", &self.non_compliant_org_policy);
297        debug_struct.field("remediation", &self.remediation);
298        debug_struct.field("acknowledged", &self.acknowledged);
299        debug_struct.field("acknowledgement_time", &self.acknowledgement_time);
300        debug_struct.field("exception_audit_log_link", &self.exception_audit_log_link);
301        if !self._unknown_fields.is_empty() {
302            debug_struct.field("_unknown_fields", &self._unknown_fields);
303        }
304        debug_struct.finish()
305    }
306}
307
308impl std::fmt::Debug for super::violation::Remediation {
309    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
310        let mut debug_struct = f.debug_struct("Remediation");
311        debug_struct.field("instructions", &self.instructions);
312        debug_struct.field("compliant_values", &self.compliant_values);
313        debug_struct.field("remediation_type", &self.remediation_type);
314        if !self._unknown_fields.is_empty() {
315            debug_struct.field("_unknown_fields", &self._unknown_fields);
316        }
317        debug_struct.finish()
318    }
319}
320
321impl std::fmt::Debug for super::violation::remediation::Instructions {
322    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
323        let mut debug_struct = f.debug_struct("Instructions");
324        debug_struct.field("gcloud_instructions", &self.gcloud_instructions);
325        debug_struct.field("console_instructions", &self.console_instructions);
326        if !self._unknown_fields.is_empty() {
327            debug_struct.field("_unknown_fields", &self._unknown_fields);
328        }
329        debug_struct.finish()
330    }
331}
332
333impl std::fmt::Debug for super::violation::remediation::instructions::Gcloud {
334    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
335        let mut debug_struct = f.debug_struct("Gcloud");
336        debug_struct.field("gcloud_commands", &self.gcloud_commands);
337        debug_struct.field("steps", &self.steps);
338        debug_struct.field("additional_links", &self.additional_links);
339        if !self._unknown_fields.is_empty() {
340            debug_struct.field("_unknown_fields", &self._unknown_fields);
341        }
342        debug_struct.finish()
343    }
344}
345
346impl std::fmt::Debug for super::violation::remediation::instructions::Console {
347    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
348        let mut debug_struct = f.debug_struct("Console");
349        debug_struct.field("console_uris", &self.console_uris);
350        debug_struct.field("steps", &self.steps);
351        debug_struct.field("additional_links", &self.additional_links);
352        if !self._unknown_fields.is_empty() {
353            debug_struct.field("_unknown_fields", &self._unknown_fields);
354        }
355        debug_struct.finish()
356    }
357}