google_cloud_api_servicemanagement_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::ManagedService {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("ManagedService");
23        debug_struct.field("service_name", &self.service_name);
24        debug_struct.field("producer_project_id", &self.producer_project_id);
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::OperationMetadata {
33    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
34        let mut debug_struct = f.debug_struct("OperationMetadata");
35        debug_struct.field("resource_names", &self.resource_names);
36        debug_struct.field("steps", &self.steps);
37        debug_struct.field("progress_percentage", &self.progress_percentage);
38        debug_struct.field("start_time", &self.start_time);
39        if !self._unknown_fields.is_empty() {
40            debug_struct.field("_unknown_fields", &self._unknown_fields);
41        }
42        debug_struct.finish()
43    }
44}
45
46impl std::fmt::Debug for super::operation_metadata::Step {
47    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48        let mut debug_struct = f.debug_struct("Step");
49        debug_struct.field("description", &self.description);
50        debug_struct.field("status", &self.status);
51        if !self._unknown_fields.is_empty() {
52            debug_struct.field("_unknown_fields", &self._unknown_fields);
53        }
54        debug_struct.finish()
55    }
56}
57
58impl std::fmt::Debug for super::Diagnostic {
59    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
60        let mut debug_struct = f.debug_struct("Diagnostic");
61        debug_struct.field("location", &self.location);
62        debug_struct.field("kind", &self.kind);
63        debug_struct.field("message", &self.message);
64        if !self._unknown_fields.is_empty() {
65            debug_struct.field("_unknown_fields", &self._unknown_fields);
66        }
67        debug_struct.finish()
68    }
69}
70
71impl std::fmt::Debug for super::ConfigSource {
72    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
73        let mut debug_struct = f.debug_struct("ConfigSource");
74        debug_struct.field("id", &self.id);
75        debug_struct.field("files", &self.files);
76        if !self._unknown_fields.is_empty() {
77            debug_struct.field("_unknown_fields", &self._unknown_fields);
78        }
79        debug_struct.finish()
80    }
81}
82
83impl std::fmt::Debug for super::ConfigFile {
84    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
85        let mut debug_struct = f.debug_struct("ConfigFile");
86        debug_struct.field("file_path", &self.file_path);
87        debug_struct.field("file_contents", &self.file_contents);
88        debug_struct.field("file_type", &self.file_type);
89        if !self._unknown_fields.is_empty() {
90            debug_struct.field("_unknown_fields", &self._unknown_fields);
91        }
92        debug_struct.finish()
93    }
94}
95
96impl std::fmt::Debug for super::ConfigRef {
97    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
98        let mut debug_struct = f.debug_struct("ConfigRef");
99        debug_struct.field("name", &self.name);
100        if !self._unknown_fields.is_empty() {
101            debug_struct.field("_unknown_fields", &self._unknown_fields);
102        }
103        debug_struct.finish()
104    }
105}
106
107impl std::fmt::Debug for super::ChangeReport {
108    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
109        let mut debug_struct = f.debug_struct("ChangeReport");
110        debug_struct.field("config_changes", &self.config_changes);
111        if !self._unknown_fields.is_empty() {
112            debug_struct.field("_unknown_fields", &self._unknown_fields);
113        }
114        debug_struct.finish()
115    }
116}
117
118impl std::fmt::Debug for super::Rollout {
119    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
120        let mut debug_struct = f.debug_struct("Rollout");
121        debug_struct.field("rollout_id", &self.rollout_id);
122        debug_struct.field("create_time", &self.create_time);
123        debug_struct.field("created_by", &self.created_by);
124        debug_struct.field("status", &self.status);
125        debug_struct.field("service_name", &self.service_name);
126        debug_struct.field("strategy", &self.strategy);
127        if !self._unknown_fields.is_empty() {
128            debug_struct.field("_unknown_fields", &self._unknown_fields);
129        }
130        debug_struct.finish()
131    }
132}
133
134impl std::fmt::Debug for super::rollout::TrafficPercentStrategy {
135    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
136        let mut debug_struct = f.debug_struct("TrafficPercentStrategy");
137        debug_struct.field("percentages", &self.percentages);
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::rollout::DeleteServiceStrategy {
146    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147        let mut debug_struct = f.debug_struct("DeleteServiceStrategy");
148        if !self._unknown_fields.is_empty() {
149            debug_struct.field("_unknown_fields", &self._unknown_fields);
150        }
151        debug_struct.finish()
152    }
153}
154
155impl std::fmt::Debug for super::ListServicesRequest {
156    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
157        let mut debug_struct = f.debug_struct("ListServicesRequest");
158        debug_struct.field("producer_project_id", &self.producer_project_id);
159        debug_struct.field("page_size", &self.page_size);
160        debug_struct.field("page_token", &self.page_token);
161        debug_struct.field("consumer_id", &self.consumer_id);
162        if !self._unknown_fields.is_empty() {
163            debug_struct.field("_unknown_fields", &self._unknown_fields);
164        }
165        debug_struct.finish()
166    }
167}
168
169impl std::fmt::Debug for super::ListServicesResponse {
170    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171        let mut debug_struct = f.debug_struct("ListServicesResponse");
172        debug_struct.field("services", &self.services);
173        debug_struct.field("next_page_token", &self.next_page_token);
174        if !self._unknown_fields.is_empty() {
175            debug_struct.field("_unknown_fields", &self._unknown_fields);
176        }
177        debug_struct.finish()
178    }
179}
180
181impl std::fmt::Debug for super::GetServiceRequest {
182    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
183        let mut debug_struct = f.debug_struct("GetServiceRequest");
184        debug_struct.field("service_name", &self.service_name);
185        if !self._unknown_fields.is_empty() {
186            debug_struct.field("_unknown_fields", &self._unknown_fields);
187        }
188        debug_struct.finish()
189    }
190}
191
192impl std::fmt::Debug for super::CreateServiceRequest {
193    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
194        let mut debug_struct = f.debug_struct("CreateServiceRequest");
195        debug_struct.field("service", &self.service);
196        if !self._unknown_fields.is_empty() {
197            debug_struct.field("_unknown_fields", &self._unknown_fields);
198        }
199        debug_struct.finish()
200    }
201}
202
203impl std::fmt::Debug for super::DeleteServiceRequest {
204    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
205        let mut debug_struct = f.debug_struct("DeleteServiceRequest");
206        debug_struct.field("service_name", &self.service_name);
207        if !self._unknown_fields.is_empty() {
208            debug_struct.field("_unknown_fields", &self._unknown_fields);
209        }
210        debug_struct.finish()
211    }
212}
213
214impl std::fmt::Debug for super::UndeleteServiceRequest {
215    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
216        let mut debug_struct = f.debug_struct("UndeleteServiceRequest");
217        debug_struct.field("service_name", &self.service_name);
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::UndeleteServiceResponse {
226    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
227        let mut debug_struct = f.debug_struct("UndeleteServiceResponse");
228        debug_struct.field("service", &self.service);
229        if !self._unknown_fields.is_empty() {
230            debug_struct.field("_unknown_fields", &self._unknown_fields);
231        }
232        debug_struct.finish()
233    }
234}
235
236impl std::fmt::Debug for super::GetServiceConfigRequest {
237    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
238        let mut debug_struct = f.debug_struct("GetServiceConfigRequest");
239        debug_struct.field("service_name", &self.service_name);
240        debug_struct.field("config_id", &self.config_id);
241        debug_struct.field("view", &self.view);
242        if !self._unknown_fields.is_empty() {
243            debug_struct.field("_unknown_fields", &self._unknown_fields);
244        }
245        debug_struct.finish()
246    }
247}
248
249impl std::fmt::Debug for super::ListServiceConfigsRequest {
250    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
251        let mut debug_struct = f.debug_struct("ListServiceConfigsRequest");
252        debug_struct.field("service_name", &self.service_name);
253        debug_struct.field("page_token", &self.page_token);
254        debug_struct.field("page_size", &self.page_size);
255        if !self._unknown_fields.is_empty() {
256            debug_struct.field("_unknown_fields", &self._unknown_fields);
257        }
258        debug_struct.finish()
259    }
260}
261
262impl std::fmt::Debug for super::ListServiceConfigsResponse {
263    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
264        let mut debug_struct = f.debug_struct("ListServiceConfigsResponse");
265        debug_struct.field("service_configs", &self.service_configs);
266        debug_struct.field("next_page_token", &self.next_page_token);
267        if !self._unknown_fields.is_empty() {
268            debug_struct.field("_unknown_fields", &self._unknown_fields);
269        }
270        debug_struct.finish()
271    }
272}
273
274impl std::fmt::Debug for super::CreateServiceConfigRequest {
275    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
276        let mut debug_struct = f.debug_struct("CreateServiceConfigRequest");
277        debug_struct.field("service_name", &self.service_name);
278        debug_struct.field("service_config", &self.service_config);
279        if !self._unknown_fields.is_empty() {
280            debug_struct.field("_unknown_fields", &self._unknown_fields);
281        }
282        debug_struct.finish()
283    }
284}
285
286impl std::fmt::Debug for super::SubmitConfigSourceRequest {
287    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
288        let mut debug_struct = f.debug_struct("SubmitConfigSourceRequest");
289        debug_struct.field("service_name", &self.service_name);
290        debug_struct.field("config_source", &self.config_source);
291        debug_struct.field("validate_only", &self.validate_only);
292        if !self._unknown_fields.is_empty() {
293            debug_struct.field("_unknown_fields", &self._unknown_fields);
294        }
295        debug_struct.finish()
296    }
297}
298
299impl std::fmt::Debug for super::SubmitConfigSourceResponse {
300    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
301        let mut debug_struct = f.debug_struct("SubmitConfigSourceResponse");
302        debug_struct.field("service_config", &self.service_config);
303        if !self._unknown_fields.is_empty() {
304            debug_struct.field("_unknown_fields", &self._unknown_fields);
305        }
306        debug_struct.finish()
307    }
308}
309
310impl std::fmt::Debug for super::CreateServiceRolloutRequest {
311    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
312        let mut debug_struct = f.debug_struct("CreateServiceRolloutRequest");
313        debug_struct.field("service_name", &self.service_name);
314        debug_struct.field("rollout", &self.rollout);
315        if !self._unknown_fields.is_empty() {
316            debug_struct.field("_unknown_fields", &self._unknown_fields);
317        }
318        debug_struct.finish()
319    }
320}
321
322impl std::fmt::Debug for super::ListServiceRolloutsRequest {
323    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
324        let mut debug_struct = f.debug_struct("ListServiceRolloutsRequest");
325        debug_struct.field("service_name", &self.service_name);
326        debug_struct.field("page_token", &self.page_token);
327        debug_struct.field("page_size", &self.page_size);
328        debug_struct.field("filter", &self.filter);
329        if !self._unknown_fields.is_empty() {
330            debug_struct.field("_unknown_fields", &self._unknown_fields);
331        }
332        debug_struct.finish()
333    }
334}
335
336impl std::fmt::Debug for super::ListServiceRolloutsResponse {
337    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
338        let mut debug_struct = f.debug_struct("ListServiceRolloutsResponse");
339        debug_struct.field("rollouts", &self.rollouts);
340        debug_struct.field("next_page_token", &self.next_page_token);
341        if !self._unknown_fields.is_empty() {
342            debug_struct.field("_unknown_fields", &self._unknown_fields);
343        }
344        debug_struct.finish()
345    }
346}
347
348impl std::fmt::Debug for super::GetServiceRolloutRequest {
349    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
350        let mut debug_struct = f.debug_struct("GetServiceRolloutRequest");
351        debug_struct.field("service_name", &self.service_name);
352        debug_struct.field("rollout_id", &self.rollout_id);
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::EnableServiceResponse {
361    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
362        let mut debug_struct = f.debug_struct("EnableServiceResponse");
363        if !self._unknown_fields.is_empty() {
364            debug_struct.field("_unknown_fields", &self._unknown_fields);
365        }
366        debug_struct.finish()
367    }
368}
369
370impl std::fmt::Debug for super::GenerateConfigReportRequest {
371    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
372        let mut debug_struct = f.debug_struct("GenerateConfigReportRequest");
373        debug_struct.field("new_config", &self.new_config);
374        debug_struct.field("old_config", &self.old_config);
375        if !self._unknown_fields.is_empty() {
376            debug_struct.field("_unknown_fields", &self._unknown_fields);
377        }
378        debug_struct.finish()
379    }
380}
381
382impl std::fmt::Debug for super::GenerateConfigReportResponse {
383    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
384        let mut debug_struct = f.debug_struct("GenerateConfigReportResponse");
385        debug_struct.field("service_name", &self.service_name);
386        debug_struct.field("id", &self.id);
387        debug_struct.field("change_reports", &self.change_reports);
388        debug_struct.field("diagnostics", &self.diagnostics);
389        if !self._unknown_fields.is_empty() {
390            debug_struct.field("_unknown_fields", &self._unknown_fields);
391        }
392        debug_struct.finish()
393    }
394}