google_cloud_maintenance_api_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::SummarizeMaintenancesRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("SummarizeMaintenancesRequest");
23        debug_struct.field("parent", &self.parent);
24        debug_struct.field("page_size", &self.page_size);
25        debug_struct.field("page_token", &self.page_token);
26        debug_struct.field("filter", &self.filter);
27        debug_struct.field("order_by", &self.order_by);
28        if !self._unknown_fields.is_empty() {
29            debug_struct.field("_unknown_fields", &self._unknown_fields);
30        }
31        debug_struct.finish()
32    }
33}
34
35impl std::fmt::Debug for super::SummarizeMaintenancesResponse {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        let mut debug_struct = f.debug_struct("SummarizeMaintenancesResponse");
38        debug_struct.field("maintenances", &self.maintenances);
39        debug_struct.field("next_page_token", &self.next_page_token);
40        debug_struct.field("unreachable", &self.unreachable);
41        if !self._unknown_fields.is_empty() {
42            debug_struct.field("_unknown_fields", &self._unknown_fields);
43        }
44        debug_struct.finish()
45    }
46}
47
48impl std::fmt::Debug for super::MaintenanceSummary {
49    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
50        let mut debug_struct = f.debug_struct("MaintenanceSummary");
51        debug_struct.field("maintenance_name", &self.maintenance_name);
52        debug_struct.field("title", &self.title);
53        debug_struct.field("description", &self.description);
54        debug_struct.field("category", &self.category);
55        debug_struct.field(
56            "maintenance_scheduled_start_time",
57            &self.maintenance_scheduled_start_time,
58        );
59        debug_struct.field(
60            "maintenance_scheduled_end_time",
61            &self.maintenance_scheduled_end_time,
62        );
63        debug_struct.field("maintenance_start_time", &self.maintenance_start_time);
64        debug_struct.field("maintenance_end_time", &self.maintenance_end_time);
65        debug_struct.field("user_controllable", &self.user_controllable);
66        debug_struct.field("controls", &self.controls);
67        debug_struct.field("stats", &self.stats);
68        if !self._unknown_fields.is_empty() {
69            debug_struct.field("_unknown_fields", &self._unknown_fields);
70        }
71        debug_struct.finish()
72    }
73}
74
75impl std::fmt::Debug for super::maintenance_summary::Stats {
76    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77        let mut debug_struct = f.debug_struct("Stats");
78        debug_struct.field("group_by", &self.group_by);
79        debug_struct.field("aggregates", &self.aggregates);
80        if !self._unknown_fields.is_empty() {
81            debug_struct.field("_unknown_fields", &self._unknown_fields);
82        }
83        debug_struct.finish()
84    }
85}
86
87impl std::fmt::Debug for super::maintenance_summary::Aggregate {
88    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
89        let mut debug_struct = f.debug_struct("Aggregate");
90        debug_struct.field("group", &self.group);
91        debug_struct.field("count", &self.count);
92        if !self._unknown_fields.is_empty() {
93            debug_struct.field("_unknown_fields", &self._unknown_fields);
94        }
95        debug_struct.finish()
96    }
97}
98
99impl std::fmt::Debug for super::ResourceMaintenance {
100    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
101        let mut debug_struct = f.debug_struct("ResourceMaintenance");
102        debug_struct.field("name", &self.name);
103        debug_struct.field("resource", &self.resource);
104        debug_struct.field("maintenance", &self.maintenance);
105        debug_struct.field("state", &self.state);
106        debug_struct.field("create_time", &self.create_time);
107        debug_struct.field("update_time", &self.update_time);
108        debug_struct.field("maintenance_start_time", &self.maintenance_start_time);
109        debug_struct.field("maintenance_end_time", &self.maintenance_end_time);
110        debug_struct.field("maintenance_cancel_time", &self.maintenance_cancel_time);
111        debug_struct.field(
112            "maintenance_scheduled_start_time",
113            &self.maintenance_scheduled_start_time,
114        );
115        debug_struct.field(
116            "maintenance_scheduled_end_time",
117            &self.maintenance_scheduled_end_time,
118        );
119        debug_struct.field("user_controllable", &self.user_controllable);
120        debug_struct.field("controls", &self.controls);
121        debug_struct.field("labels", &self.labels);
122        debug_struct.field("annotations", &self.annotations);
123        debug_struct.field("uid", &self.uid);
124        debug_struct.field("etag", &self.etag);
125        if !self._unknown_fields.is_empty() {
126            debug_struct.field("_unknown_fields", &self._unknown_fields);
127        }
128        debug_struct.finish()
129    }
130}
131
132impl std::fmt::Debug for super::resource_maintenance::Resource {
133    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
134        let mut debug_struct = f.debug_struct("Resource");
135        debug_struct.field("resource_name", &self.resource_name);
136        debug_struct.field("location", &self.location);
137        debug_struct.field("r#type", &self.r#type);
138        if !self._unknown_fields.is_empty() {
139            debug_struct.field("_unknown_fields", &self._unknown_fields);
140        }
141        debug_struct.finish()
142    }
143}
144
145impl std::fmt::Debug for super::resource_maintenance::Maintenance {
146    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147        let mut debug_struct = f.debug_struct("Maintenance");
148        debug_struct.field("maintenance_name", &self.maintenance_name);
149        debug_struct.field("title", &self.title);
150        debug_struct.field("description", &self.description);
151        debug_struct.field("category", &self.category);
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::MaintenanceControl {
160    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
161        let mut debug_struct = f.debug_struct("MaintenanceControl");
162        debug_struct.field("control", &self.control);
163        debug_struct.field("is_custom", &self.is_custom);
164        debug_struct.field("documentation", &self.documentation);
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::ListResourceMaintenancesRequest {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("ListResourceMaintenancesRequest");
175        debug_struct.field("parent", &self.parent);
176        debug_struct.field("page_size", &self.page_size);
177        debug_struct.field("page_token", &self.page_token);
178        debug_struct.field("filter", &self.filter);
179        debug_struct.field("order_by", &self.order_by);
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::ListResourceMaintenancesResponse {
188    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
189        let mut debug_struct = f.debug_struct("ListResourceMaintenancesResponse");
190        debug_struct.field("resource_maintenances", &self.resource_maintenances);
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::GetResourceMaintenanceRequest {
201    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
202        let mut debug_struct = f.debug_struct("GetResourceMaintenanceRequest");
203        debug_struct.field("name", &self.name);
204        if !self._unknown_fields.is_empty() {
205            debug_struct.field("_unknown_fields", &self._unknown_fields);
206        }
207        debug_struct.finish()
208    }
209}