Skip to main content

google_cloud_licensemanager_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::Configuration {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Configuration");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("display_name", &self.display_name);
25        debug_struct.field("product", &self.product);
26        debug_struct.field("license_type", &self.license_type);
27        debug_struct.field("current_billing_info", &self.current_billing_info);
28        debug_struct.field("next_billing_info", &self.next_billing_info);
29        debug_struct.field("create_time", &self.create_time);
30        debug_struct.field("update_time", &self.update_time);
31        debug_struct.field("labels", &self.labels);
32        debug_struct.field("state", &self.state);
33        if !self._unknown_fields.is_empty() {
34            debug_struct.field("_unknown_fields", &self._unknown_fields);
35        }
36        debug_struct.finish()
37    }
38}
39
40impl std::fmt::Debug for super::BillingInfo {
41    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
42        let mut debug_struct = f.debug_struct("BillingInfo");
43        debug_struct.field("start_time", &self.start_time);
44        debug_struct.field("end_time", &self.end_time);
45        debug_struct.field("current_billing_info", &self.current_billing_info);
46        if !self._unknown_fields.is_empty() {
47            debug_struct.field("_unknown_fields", &self._unknown_fields);
48        }
49        debug_struct.finish()
50    }
51}
52
53impl std::fmt::Debug for super::UserCountBillingInfo {
54    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
55        let mut debug_struct = f.debug_struct("UserCountBillingInfo");
56        debug_struct.field("user_count", &self.user_count);
57        if !self._unknown_fields.is_empty() {
58            debug_struct.field("_unknown_fields", &self._unknown_fields);
59        }
60        debug_struct.finish()
61    }
62}
63
64impl std::fmt::Debug for super::UserCountUsage {
65    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
66        let mut debug_struct = f.debug_struct("UserCountUsage");
67        debug_struct.field("unique_user_count", &self.unique_user_count);
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::Product {
76    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77        let mut debug_struct = f.debug_struct("Product");
78        debug_struct.field("name", &self.name);
79        debug_struct.field("version", &self.version);
80        debug_struct.field("product_company", &self.product_company);
81        debug_struct.field("state", &self.state);
82        debug_struct.field("sku", &self.sku);
83        debug_struct.field("description", &self.description);
84        debug_struct.field("display_name", &self.display_name);
85        if !self._unknown_fields.is_empty() {
86            debug_struct.field("_unknown_fields", &self._unknown_fields);
87        }
88        debug_struct.finish()
89    }
90}
91
92impl std::fmt::Debug for super::Instance {
93    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
94        let mut debug_struct = f.debug_struct("Instance");
95        debug_struct.field("name", &self.name);
96        debug_struct.field("create_time", &self.create_time);
97        debug_struct.field("update_time", &self.update_time);
98        debug_struct.field("labels", &self.labels);
99        debug_struct.field("state", &self.state);
100        debug_struct.field("region", &self.region);
101        debug_struct.field("product_activation", &self.product_activation);
102        debug_struct.field("license_version_id", &self.license_version_id);
103        debug_struct.field("compute_instance", &self.compute_instance);
104        if !self._unknown_fields.is_empty() {
105            debug_struct.field("_unknown_fields", &self._unknown_fields);
106        }
107        debug_struct.finish()
108    }
109}
110
111impl std::fmt::Debug for super::Usage {
112    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113        let mut debug_struct = f.debug_struct("Usage");
114        debug_struct.field("lima_instance", &self.lima_instance);
115        debug_struct.field("users", &self.users);
116        if !self._unknown_fields.is_empty() {
117            debug_struct.field("_unknown_fields", &self._unknown_fields);
118        }
119        debug_struct.finish()
120    }
121}
122
123impl std::fmt::Debug for super::ListConfigurationsRequest {
124    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
125        let mut debug_struct = f.debug_struct("ListConfigurationsRequest");
126        debug_struct.field("parent", &self.parent);
127        debug_struct.field("page_size", &self.page_size);
128        debug_struct.field("page_token", &self.page_token);
129        debug_struct.field("filter", &self.filter);
130        debug_struct.field("order_by", &self.order_by);
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::ListConfigurationsResponse {
139    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
140        let mut debug_struct = f.debug_struct("ListConfigurationsResponse");
141        debug_struct.field("configurations", &self.configurations);
142        debug_struct.field("next_page_token", &self.next_page_token);
143        debug_struct.field("unreachable", &self.unreachable);
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::GetConfigurationRequest {
152    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
153        let mut debug_struct = f.debug_struct("GetConfigurationRequest");
154        debug_struct.field("name", &self.name);
155        if !self._unknown_fields.is_empty() {
156            debug_struct.field("_unknown_fields", &self._unknown_fields);
157        }
158        debug_struct.finish()
159    }
160}
161
162impl std::fmt::Debug for super::CreateConfigurationRequest {
163    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
164        let mut debug_struct = f.debug_struct("CreateConfigurationRequest");
165        debug_struct.field("parent", &self.parent);
166        debug_struct.field("configuration_id", &self.configuration_id);
167        debug_struct.field("configuration", &self.configuration);
168        debug_struct.field("request_id", &self.request_id);
169        if !self._unknown_fields.is_empty() {
170            debug_struct.field("_unknown_fields", &self._unknown_fields);
171        }
172        debug_struct.finish()
173    }
174}
175
176impl std::fmt::Debug for super::UpdateConfigurationRequest {
177    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
178        let mut debug_struct = f.debug_struct("UpdateConfigurationRequest");
179        debug_struct.field("update_mask", &self.update_mask);
180        debug_struct.field("configuration", &self.configuration);
181        debug_struct.field("request_id", &self.request_id);
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::DeleteConfigurationRequest {
190    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
191        let mut debug_struct = f.debug_struct("DeleteConfigurationRequest");
192        debug_struct.field("name", &self.name);
193        debug_struct.field("request_id", &self.request_id);
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::ListInstancesRequest {
202    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
203        let mut debug_struct = f.debug_struct("ListInstancesRequest");
204        debug_struct.field("parent", &self.parent);
205        debug_struct.field("page_size", &self.page_size);
206        debug_struct.field("page_token", &self.page_token);
207        debug_struct.field("filter", &self.filter);
208        debug_struct.field("order_by", &self.order_by);
209        if !self._unknown_fields.is_empty() {
210            debug_struct.field("_unknown_fields", &self._unknown_fields);
211        }
212        debug_struct.finish()
213    }
214}
215
216impl std::fmt::Debug for super::ListInstancesResponse {
217    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
218        let mut debug_struct = f.debug_struct("ListInstancesResponse");
219        debug_struct.field("instances", &self.instances);
220        debug_struct.field("next_page_token", &self.next_page_token);
221        debug_struct.field("unreachable", &self.unreachable);
222        if !self._unknown_fields.is_empty() {
223            debug_struct.field("_unknown_fields", &self._unknown_fields);
224        }
225        debug_struct.finish()
226    }
227}
228
229impl std::fmt::Debug for super::GetInstanceRequest {
230    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
231        let mut debug_struct = f.debug_struct("GetInstanceRequest");
232        debug_struct.field("name", &self.name);
233        if !self._unknown_fields.is_empty() {
234            debug_struct.field("_unknown_fields", &self._unknown_fields);
235        }
236        debug_struct.finish()
237    }
238}
239
240impl std::fmt::Debug for super::QueryConfigurationLicenseUsageRequest {
241    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
242        let mut debug_struct = f.debug_struct("QueryConfigurationLicenseUsageRequest");
243        debug_struct.field("name", &self.name);
244        debug_struct.field("start_time", &self.start_time);
245        debug_struct.field("end_time", &self.end_time);
246        if !self._unknown_fields.is_empty() {
247            debug_struct.field("_unknown_fields", &self._unknown_fields);
248        }
249        debug_struct.finish()
250    }
251}
252
253impl std::fmt::Debug for super::QueryConfigurationLicenseUsageResponse {
254    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
255        let mut debug_struct = f.debug_struct("QueryConfigurationLicenseUsageResponse");
256        debug_struct.field("details", &self.details);
257        if !self._unknown_fields.is_empty() {
258            debug_struct.field("_unknown_fields", &self._unknown_fields);
259        }
260        debug_struct.finish()
261    }
262}
263
264impl std::fmt::Debug for super::DeactivateConfigurationRequest {
265    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
266        let mut debug_struct = f.debug_struct("DeactivateConfigurationRequest");
267        debug_struct.field("name", &self.name);
268        debug_struct.field("request_id", &self.request_id);
269        if !self._unknown_fields.is_empty() {
270            debug_struct.field("_unknown_fields", &self._unknown_fields);
271        }
272        debug_struct.finish()
273    }
274}
275
276impl std::fmt::Debug for super::ReactivateConfigurationRequest {
277    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278        let mut debug_struct = f.debug_struct("ReactivateConfigurationRequest");
279        debug_struct.field("name", &self.name);
280        debug_struct.field("request_id", &self.request_id);
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::AggregateUsageRequest {
289    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
290        let mut debug_struct = f.debug_struct("AggregateUsageRequest");
291        debug_struct.field("name", &self.name);
292        debug_struct.field("page_size", &self.page_size);
293        debug_struct.field("page_token", &self.page_token);
294        debug_struct.field("filter", &self.filter);
295        debug_struct.field("order_by", &self.order_by);
296        debug_struct.field("start_time", &self.start_time);
297        debug_struct.field("end_time", &self.end_time);
298        if !self._unknown_fields.is_empty() {
299            debug_struct.field("_unknown_fields", &self._unknown_fields);
300        }
301        debug_struct.finish()
302    }
303}
304
305impl std::fmt::Debug for super::AggregateUsageResponse {
306    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
307        let mut debug_struct = f.debug_struct("AggregateUsageResponse");
308        debug_struct.field("usages", &self.usages);
309        debug_struct.field("next_page_token", &self.next_page_token);
310        debug_struct.field("unreachable", &self.unreachable);
311        if !self._unknown_fields.is_empty() {
312            debug_struct.field("_unknown_fields", &self._unknown_fields);
313        }
314        debug_struct.finish()
315    }
316}
317
318impl std::fmt::Debug for super::ListProductsRequest {
319    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
320        let mut debug_struct = f.debug_struct("ListProductsRequest");
321        debug_struct.field("parent", &self.parent);
322        debug_struct.field("page_size", &self.page_size);
323        debug_struct.field("page_token", &self.page_token);
324        debug_struct.field("filter", &self.filter);
325        debug_struct.field("order_by", &self.order_by);
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::ListProductsResponse {
334    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
335        let mut debug_struct = f.debug_struct("ListProductsResponse");
336        debug_struct.field("products", &self.products);
337        debug_struct.field("next_page_token", &self.next_page_token);
338        debug_struct.field("unreachable", &self.unreachable);
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::GetProductRequest {
347    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
348        let mut debug_struct = f.debug_struct("GetProductRequest");
349        debug_struct.field("name", &self.name);
350        if !self._unknown_fields.is_empty() {
351            debug_struct.field("_unknown_fields", &self._unknown_fields);
352        }
353        debug_struct.finish()
354    }
355}
356
357impl std::fmt::Debug for super::OperationMetadata {
358    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
359        let mut debug_struct = f.debug_struct("OperationMetadata");
360        debug_struct.field("create_time", &self.create_time);
361        debug_struct.field("end_time", &self.end_time);
362        debug_struct.field("target", &self.target);
363        debug_struct.field("verb", &self.verb);
364        debug_struct.field("status_message", &self.status_message);
365        debug_struct.field("requested_cancellation", &self.requested_cancellation);
366        debug_struct.field("api_version", &self.api_version);
367        if !self._unknown_fields.is_empty() {
368            debug_struct.field("_unknown_fields", &self._unknown_fields);
369        }
370        debug_struct.finish()
371    }
372}