google_cloud_cloudcontrolspartner_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::AccessApprovalRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("AccessApprovalRequest");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("request_time", &self.request_time);
25        debug_struct.field("requested_reason", &self.requested_reason);
26        debug_struct.field("requested_expiration_time", &self.requested_expiration_time);
27        if !self._unknown_fields.is_empty() {
28            debug_struct.field("_unknown_fields", &self._unknown_fields);
29        }
30        debug_struct.finish()
31    }
32}
33
34impl std::fmt::Debug for super::ListAccessApprovalRequestsRequest {
35    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36        let mut debug_struct = f.debug_struct("ListAccessApprovalRequestsRequest");
37        debug_struct.field("parent", &self.parent);
38        debug_struct.field("page_size", &self.page_size);
39        debug_struct.field("page_token", &self.page_token);
40        debug_struct.field("filter", &self.filter);
41        debug_struct.field("order_by", &self.order_by);
42        if !self._unknown_fields.is_empty() {
43            debug_struct.field("_unknown_fields", &self._unknown_fields);
44        }
45        debug_struct.finish()
46    }
47}
48
49impl std::fmt::Debug for super::ListAccessApprovalRequestsResponse {
50    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
51        let mut debug_struct = f.debug_struct("ListAccessApprovalRequestsResponse");
52        debug_struct.field("access_approval_requests", &self.access_approval_requests);
53        debug_struct.field("next_page_token", &self.next_page_token);
54        debug_struct.field("unreachable", &self.unreachable);
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::AccessReason {
63    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
64        let mut debug_struct = f.debug_struct("AccessReason");
65        debug_struct.field("r#type", &self.r#type);
66        debug_struct.field("detail", &self.detail);
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::OperationMetadata {
75    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
76        let mut debug_struct = f.debug_struct("OperationMetadata");
77        debug_struct.field("create_time", &self.create_time);
78        debug_struct.field("end_time", &self.end_time);
79        debug_struct.field("target", &self.target);
80        debug_struct.field("verb", &self.verb);
81        debug_struct.field("status_message", &self.status_message);
82        debug_struct.field("requested_cancellation", &self.requested_cancellation);
83        debug_struct.field("api_version", &self.api_version);
84        if !self._unknown_fields.is_empty() {
85            debug_struct.field("_unknown_fields", &self._unknown_fields);
86        }
87        debug_struct.finish()
88    }
89}
90
91impl std::fmt::Debug for super::Workload {
92    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93        let mut debug_struct = f.debug_struct("Workload");
94        debug_struct.field("name", &self.name);
95        debug_struct.field("folder_id", &self.folder_id);
96        debug_struct.field("create_time", &self.create_time);
97        debug_struct.field("folder", &self.folder);
98        debug_struct.field("workload_onboarding_state", &self.workload_onboarding_state);
99        debug_struct.field("is_onboarded", &self.is_onboarded);
100        debug_struct.field("key_management_project_id", &self.key_management_project_id);
101        debug_struct.field("location", &self.location);
102        debug_struct.field("partner", &self.partner);
103        if !self._unknown_fields.is_empty() {
104            debug_struct.field("_unknown_fields", &self._unknown_fields);
105        }
106        debug_struct.finish()
107    }
108}
109
110impl std::fmt::Debug for super::ListWorkloadsRequest {
111    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
112        let mut debug_struct = f.debug_struct("ListWorkloadsRequest");
113        debug_struct.field("parent", &self.parent);
114        debug_struct.field("page_size", &self.page_size);
115        debug_struct.field("page_token", &self.page_token);
116        debug_struct.field("filter", &self.filter);
117        debug_struct.field("order_by", &self.order_by);
118        if !self._unknown_fields.is_empty() {
119            debug_struct.field("_unknown_fields", &self._unknown_fields);
120        }
121        debug_struct.finish()
122    }
123}
124
125impl std::fmt::Debug for super::ListWorkloadsResponse {
126    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
127        let mut debug_struct = f.debug_struct("ListWorkloadsResponse");
128        debug_struct.field("workloads", &self.workloads);
129        debug_struct.field("next_page_token", &self.next_page_token);
130        debug_struct.field("unreachable", &self.unreachable);
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::GetWorkloadRequest {
139    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
140        let mut debug_struct = f.debug_struct("GetWorkloadRequest");
141        debug_struct.field("name", &self.name);
142        if !self._unknown_fields.is_empty() {
143            debug_struct.field("_unknown_fields", &self._unknown_fields);
144        }
145        debug_struct.finish()
146    }
147}
148
149impl std::fmt::Debug for super::WorkloadOnboardingState {
150    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
151        let mut debug_struct = f.debug_struct("WorkloadOnboardingState");
152        debug_struct.field("onboarding_steps", &self.onboarding_steps);
153        if !self._unknown_fields.is_empty() {
154            debug_struct.field("_unknown_fields", &self._unknown_fields);
155        }
156        debug_struct.finish()
157    }
158}
159
160impl std::fmt::Debug for super::WorkloadOnboardingStep {
161    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
162        let mut debug_struct = f.debug_struct("WorkloadOnboardingStep");
163        debug_struct.field("step", &self.step);
164        debug_struct.field("start_time", &self.start_time);
165        debug_struct.field("completion_time", &self.completion_time);
166        debug_struct.field("completion_state", &self.completion_state);
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::Customer {
175    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
176        let mut debug_struct = f.debug_struct("Customer");
177        debug_struct.field("name", &self.name);
178        debug_struct.field("display_name", &self.display_name);
179        debug_struct.field("customer_onboarding_state", &self.customer_onboarding_state);
180        debug_struct.field("is_onboarded", &self.is_onboarded);
181        debug_struct.field("organization_domain", &self.organization_domain);
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::ListCustomersRequest {
190    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
191        let mut debug_struct = f.debug_struct("ListCustomersRequest");
192        debug_struct.field("parent", &self.parent);
193        debug_struct.field("page_size", &self.page_size);
194        debug_struct.field("page_token", &self.page_token);
195        debug_struct.field("filter", &self.filter);
196        debug_struct.field("order_by", &self.order_by);
197        if !self._unknown_fields.is_empty() {
198            debug_struct.field("_unknown_fields", &self._unknown_fields);
199        }
200        debug_struct.finish()
201    }
202}
203
204impl std::fmt::Debug for super::ListCustomersResponse {
205    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206        let mut debug_struct = f.debug_struct("ListCustomersResponse");
207        debug_struct.field("customers", &self.customers);
208        debug_struct.field("next_page_token", &self.next_page_token);
209        debug_struct.field("unreachable", &self.unreachable);
210        if !self._unknown_fields.is_empty() {
211            debug_struct.field("_unknown_fields", &self._unknown_fields);
212        }
213        debug_struct.finish()
214    }
215}
216
217impl std::fmt::Debug for super::CreateCustomerRequest {
218    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
219        let mut debug_struct = f.debug_struct("CreateCustomerRequest");
220        debug_struct.field("parent", &self.parent);
221        debug_struct.field("customer", &self.customer);
222        debug_struct.field("customer_id", &self.customer_id);
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::GetCustomerRequest {
231    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
232        let mut debug_struct = f.debug_struct("GetCustomerRequest");
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::CustomerOnboardingState {
242    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
243        let mut debug_struct = f.debug_struct("CustomerOnboardingState");
244        debug_struct.field("onboarding_steps", &self.onboarding_steps);
245        if !self._unknown_fields.is_empty() {
246            debug_struct.field("_unknown_fields", &self._unknown_fields);
247        }
248        debug_struct.finish()
249    }
250}
251
252impl std::fmt::Debug for super::CustomerOnboardingStep {
253    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
254        let mut debug_struct = f.debug_struct("CustomerOnboardingStep");
255        debug_struct.field("step", &self.step);
256        debug_struct.field("start_time", &self.start_time);
257        debug_struct.field("completion_time", &self.completion_time);
258        debug_struct.field("completion_state", &self.completion_state);
259        if !self._unknown_fields.is_empty() {
260            debug_struct.field("_unknown_fields", &self._unknown_fields);
261        }
262        debug_struct.finish()
263    }
264}
265
266impl std::fmt::Debug for super::UpdateCustomerRequest {
267    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
268        let mut debug_struct = f.debug_struct("UpdateCustomerRequest");
269        debug_struct.field("customer", &self.customer);
270        debug_struct.field("update_mask", &self.update_mask);
271        if !self._unknown_fields.is_empty() {
272            debug_struct.field("_unknown_fields", &self._unknown_fields);
273        }
274        debug_struct.finish()
275    }
276}
277
278impl std::fmt::Debug for super::DeleteCustomerRequest {
279    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
280        let mut debug_struct = f.debug_struct("DeleteCustomerRequest");
281        debug_struct.field("name", &self.name);
282        if !self._unknown_fields.is_empty() {
283            debug_struct.field("_unknown_fields", &self._unknown_fields);
284        }
285        debug_struct.finish()
286    }
287}
288
289impl std::fmt::Debug for super::EkmConnections {
290    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
291        let mut debug_struct = f.debug_struct("EkmConnections");
292        debug_struct.field("name", &self.name);
293        debug_struct.field("ekm_connections", &self.ekm_connections);
294        if !self._unknown_fields.is_empty() {
295            debug_struct.field("_unknown_fields", &self._unknown_fields);
296        }
297        debug_struct.finish()
298    }
299}
300
301impl std::fmt::Debug for super::GetEkmConnectionsRequest {
302    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
303        let mut debug_struct = f.debug_struct("GetEkmConnectionsRequest");
304        debug_struct.field("name", &self.name);
305        if !self._unknown_fields.is_empty() {
306            debug_struct.field("_unknown_fields", &self._unknown_fields);
307        }
308        debug_struct.finish()
309    }
310}
311
312impl std::fmt::Debug for super::EkmConnection {
313    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
314        let mut debug_struct = f.debug_struct("EkmConnection");
315        debug_struct.field("connection_name", &self.connection_name);
316        debug_struct.field("connection_state", &self.connection_state);
317        debug_struct.field("connection_error", &self.connection_error);
318        if !self._unknown_fields.is_empty() {
319            debug_struct.field("_unknown_fields", &self._unknown_fields);
320        }
321        debug_struct.finish()
322    }
323}
324
325impl std::fmt::Debug for super::ekm_connection::ConnectionError {
326    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
327        let mut debug_struct = f.debug_struct("ConnectionError");
328        debug_struct.field("error_domain", &self.error_domain);
329        debug_struct.field("error_message", &self.error_message);
330        if !self._unknown_fields.is_empty() {
331            debug_struct.field("_unknown_fields", &self._unknown_fields);
332        }
333        debug_struct.finish()
334    }
335}
336
337impl std::fmt::Debug for super::PartnerPermissions {
338    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
339        let mut debug_struct = f.debug_struct("PartnerPermissions");
340        debug_struct.field("name", &self.name);
341        debug_struct.field("partner_permissions", &self.partner_permissions);
342        if !self._unknown_fields.is_empty() {
343            debug_struct.field("_unknown_fields", &self._unknown_fields);
344        }
345        debug_struct.finish()
346    }
347}
348
349impl std::fmt::Debug for super::GetPartnerPermissionsRequest {
350    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
351        let mut debug_struct = f.debug_struct("GetPartnerPermissionsRequest");
352        debug_struct.field("name", &self.name);
353        if !self._unknown_fields.is_empty() {
354            debug_struct.field("_unknown_fields", &self._unknown_fields);
355        }
356        debug_struct.finish()
357    }
358}
359
360impl std::fmt::Debug for super::Partner {
361    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
362        let mut debug_struct = f.debug_struct("Partner");
363        debug_struct.field("name", &self.name);
364        debug_struct.field("skus", &self.skus);
365        debug_struct.field("ekm_solutions", &self.ekm_solutions);
366        debug_struct.field("operated_cloud_regions", &self.operated_cloud_regions);
367        debug_struct.field("partner_project_id", &self.partner_project_id);
368        debug_struct.field("create_time", &self.create_time);
369        debug_struct.field("update_time", &self.update_time);
370        if !self._unknown_fields.is_empty() {
371            debug_struct.field("_unknown_fields", &self._unknown_fields);
372        }
373        debug_struct.finish()
374    }
375}
376
377impl std::fmt::Debug for super::GetPartnerRequest {
378    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
379        let mut debug_struct = f.debug_struct("GetPartnerRequest");
380        debug_struct.field("name", &self.name);
381        if !self._unknown_fields.is_empty() {
382            debug_struct.field("_unknown_fields", &self._unknown_fields);
383        }
384        debug_struct.finish()
385    }
386}
387
388impl std::fmt::Debug for super::Sku {
389    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
390        let mut debug_struct = f.debug_struct("Sku");
391        debug_struct.field("id", &self.id);
392        debug_struct.field("display_name", &self.display_name);
393        if !self._unknown_fields.is_empty() {
394            debug_struct.field("_unknown_fields", &self._unknown_fields);
395        }
396        debug_struct.finish()
397    }
398}
399
400impl std::fmt::Debug for super::EkmMetadata {
401    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
402        let mut debug_struct = f.debug_struct("EkmMetadata");
403        debug_struct.field("ekm_solution", &self.ekm_solution);
404        debug_struct.field("ekm_endpoint_uri", &self.ekm_endpoint_uri);
405        if !self._unknown_fields.is_empty() {
406            debug_struct.field("_unknown_fields", &self._unknown_fields);
407        }
408        debug_struct.finish()
409    }
410}
411
412impl std::fmt::Debug for super::Violation {
413    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
414        let mut debug_struct = f.debug_struct("Violation");
415        debug_struct.field("name", &self.name);
416        debug_struct.field("description", &self.description);
417        debug_struct.field("begin_time", &self.begin_time);
418        debug_struct.field("update_time", &self.update_time);
419        debug_struct.field("resolve_time", &self.resolve_time);
420        debug_struct.field("category", &self.category);
421        debug_struct.field("state", &self.state);
422        debug_struct.field("non_compliant_org_policy", &self.non_compliant_org_policy);
423        debug_struct.field("folder_id", &self.folder_id);
424        debug_struct.field("remediation", &self.remediation);
425        if !self._unknown_fields.is_empty() {
426            debug_struct.field("_unknown_fields", &self._unknown_fields);
427        }
428        debug_struct.finish()
429    }
430}
431
432impl std::fmt::Debug for super::violation::Remediation {
433    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
434        let mut debug_struct = f.debug_struct("Remediation");
435        debug_struct.field("instructions", &self.instructions);
436        debug_struct.field("compliant_values", &self.compliant_values);
437        debug_struct.field("remediation_type", &self.remediation_type);
438        if !self._unknown_fields.is_empty() {
439            debug_struct.field("_unknown_fields", &self._unknown_fields);
440        }
441        debug_struct.finish()
442    }
443}
444
445impl std::fmt::Debug for super::violation::remediation::Instructions {
446    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
447        let mut debug_struct = f.debug_struct("Instructions");
448        debug_struct.field("gcloud_instructions", &self.gcloud_instructions);
449        debug_struct.field("console_instructions", &self.console_instructions);
450        if !self._unknown_fields.is_empty() {
451            debug_struct.field("_unknown_fields", &self._unknown_fields);
452        }
453        debug_struct.finish()
454    }
455}
456
457impl std::fmt::Debug for super::violation::remediation::instructions::Gcloud {
458    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
459        let mut debug_struct = f.debug_struct("Gcloud");
460        debug_struct.field("gcloud_commands", &self.gcloud_commands);
461        debug_struct.field("steps", &self.steps);
462        debug_struct.field("additional_links", &self.additional_links);
463        if !self._unknown_fields.is_empty() {
464            debug_struct.field("_unknown_fields", &self._unknown_fields);
465        }
466        debug_struct.finish()
467    }
468}
469
470impl std::fmt::Debug for super::violation::remediation::instructions::Console {
471    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
472        let mut debug_struct = f.debug_struct("Console");
473        debug_struct.field("console_uris", &self.console_uris);
474        debug_struct.field("steps", &self.steps);
475        debug_struct.field("additional_links", &self.additional_links);
476        if !self._unknown_fields.is_empty() {
477            debug_struct.field("_unknown_fields", &self._unknown_fields);
478        }
479        debug_struct.finish()
480    }
481}
482
483impl std::fmt::Debug for super::ListViolationsRequest {
484    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
485        let mut debug_struct = f.debug_struct("ListViolationsRequest");
486        debug_struct.field("parent", &self.parent);
487        debug_struct.field("page_size", &self.page_size);
488        debug_struct.field("page_token", &self.page_token);
489        debug_struct.field("filter", &self.filter);
490        debug_struct.field("order_by", &self.order_by);
491        debug_struct.field("interval", &self.interval);
492        if !self._unknown_fields.is_empty() {
493            debug_struct.field("_unknown_fields", &self._unknown_fields);
494        }
495        debug_struct.finish()
496    }
497}
498
499impl std::fmt::Debug for super::ListViolationsResponse {
500    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
501        let mut debug_struct = f.debug_struct("ListViolationsResponse");
502        debug_struct.field("violations", &self.violations);
503        debug_struct.field("next_page_token", &self.next_page_token);
504        debug_struct.field("unreachable", &self.unreachable);
505        if !self._unknown_fields.is_empty() {
506            debug_struct.field("_unknown_fields", &self._unknown_fields);
507        }
508        debug_struct.finish()
509    }
510}
511
512impl std::fmt::Debug for super::GetViolationRequest {
513    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
514        let mut debug_struct = f.debug_struct("GetViolationRequest");
515        debug_struct.field("name", &self.name);
516        if !self._unknown_fields.is_empty() {
517            debug_struct.field("_unknown_fields", &self._unknown_fields);
518        }
519        debug_struct.finish()
520    }
521}