google_cloud_notebooks_v2/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::DiagnosticConfig {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("DiagnosticConfig");
23        debug_struct.field("gcs_bucket", &self.gcs_bucket);
24        debug_struct.field("relative_path", &self.relative_path);
25        debug_struct.field("enable_repair_flag", &self.enable_repair_flag);
26        debug_struct.field(
27            "enable_packet_capture_flag",
28            &self.enable_packet_capture_flag,
29        );
30        debug_struct.field(
31            "enable_copy_home_files_flag",
32            &self.enable_copy_home_files_flag,
33        );
34        if !self._unknown_fields.is_empty() {
35            debug_struct.field("_unknown_fields", &self._unknown_fields);
36        }
37        debug_struct.finish()
38    }
39}
40
41impl std::fmt::Debug for super::Event {
42    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
43        let mut debug_struct = f.debug_struct("Event");
44        debug_struct.field("report_time", &self.report_time);
45        debug_struct.field("r#type", &self.r#type);
46        debug_struct.field("details", &self.details);
47        if !self._unknown_fields.is_empty() {
48            debug_struct.field("_unknown_fields", &self._unknown_fields);
49        }
50        debug_struct.finish()
51    }
52}
53
54impl std::fmt::Debug for super::NetworkInterface {
55    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
56        let mut debug_struct = f.debug_struct("NetworkInterface");
57        debug_struct.field("network", &self.network);
58        debug_struct.field("subnet", &self.subnet);
59        debug_struct.field("nic_type", &self.nic_type);
60        if !self._unknown_fields.is_empty() {
61            debug_struct.field("_unknown_fields", &self._unknown_fields);
62        }
63        debug_struct.finish()
64    }
65}
66
67impl std::fmt::Debug for super::VmImage {
68    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
69        let mut debug_struct = f.debug_struct("VmImage");
70        debug_struct.field("project", &self.project);
71        debug_struct.field("image", &self.image);
72        if !self._unknown_fields.is_empty() {
73            debug_struct.field("_unknown_fields", &self._unknown_fields);
74        }
75        debug_struct.finish()
76    }
77}
78
79impl std::fmt::Debug for super::ContainerImage {
80    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
81        let mut debug_struct = f.debug_struct("ContainerImage");
82        debug_struct.field("repository", &self.repository);
83        debug_struct.field("tag", &self.tag);
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::AcceleratorConfig {
92    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93        let mut debug_struct = f.debug_struct("AcceleratorConfig");
94        debug_struct.field("r#type", &self.r#type);
95        debug_struct.field("core_count", &self.core_count);
96        if !self._unknown_fields.is_empty() {
97            debug_struct.field("_unknown_fields", &self._unknown_fields);
98        }
99        debug_struct.finish()
100    }
101}
102
103impl std::fmt::Debug for super::ShieldedInstanceConfig {
104    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
105        let mut debug_struct = f.debug_struct("ShieldedInstanceConfig");
106        debug_struct.field("enable_secure_boot", &self.enable_secure_boot);
107        debug_struct.field("enable_vtpm", &self.enable_vtpm);
108        debug_struct.field(
109            "enable_integrity_monitoring",
110            &self.enable_integrity_monitoring,
111        );
112        if !self._unknown_fields.is_empty() {
113            debug_struct.field("_unknown_fields", &self._unknown_fields);
114        }
115        debug_struct.finish()
116    }
117}
118
119impl std::fmt::Debug for super::GPUDriverConfig {
120    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121        let mut debug_struct = f.debug_struct("GPUDriverConfig");
122        debug_struct.field("enable_gpu_driver", &self.enable_gpu_driver);
123        debug_struct.field("custom_gpu_driver_path", &self.custom_gpu_driver_path);
124        if !self._unknown_fields.is_empty() {
125            debug_struct.field("_unknown_fields", &self._unknown_fields);
126        }
127        debug_struct.finish()
128    }
129}
130
131impl std::fmt::Debug for super::DataDisk {
132    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
133        let mut debug_struct = f.debug_struct("DataDisk");
134        debug_struct.field("disk_size_gb", &self.disk_size_gb);
135        debug_struct.field("disk_type", &self.disk_type);
136        debug_struct.field("disk_encryption", &self.disk_encryption);
137        debug_struct.field("kms_key", &self.kms_key);
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::BootDisk {
146    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147        let mut debug_struct = f.debug_struct("BootDisk");
148        debug_struct.field("disk_size_gb", &self.disk_size_gb);
149        debug_struct.field("disk_type", &self.disk_type);
150        debug_struct.field("disk_encryption", &self.disk_encryption);
151        debug_struct.field("kms_key", &self.kms_key);
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::ServiceAccount {
160    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
161        let mut debug_struct = f.debug_struct("ServiceAccount");
162        debug_struct.field("email", &self.email);
163        debug_struct.field("scopes", &self.scopes);
164        if !self._unknown_fields.is_empty() {
165            debug_struct.field("_unknown_fields", &self._unknown_fields);
166        }
167        debug_struct.finish()
168    }
169}
170
171impl std::fmt::Debug for super::GceSetup {
172    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
173        let mut debug_struct = f.debug_struct("GceSetup");
174        debug_struct.field("machine_type", &self.machine_type);
175        debug_struct.field("accelerator_configs", &self.accelerator_configs);
176        debug_struct.field("service_accounts", &self.service_accounts);
177        debug_struct.field("boot_disk", &self.boot_disk);
178        debug_struct.field("data_disks", &self.data_disks);
179        debug_struct.field("shielded_instance_config", &self.shielded_instance_config);
180        debug_struct.field("network_interfaces", &self.network_interfaces);
181        debug_struct.field("disable_public_ip", &self.disable_public_ip);
182        debug_struct.field("tags", &self.tags);
183        debug_struct.field("metadata", &self.metadata);
184        debug_struct.field("enable_ip_forwarding", &self.enable_ip_forwarding);
185        debug_struct.field("gpu_driver_config", &self.gpu_driver_config);
186        debug_struct.field("image", &self.image);
187        if !self._unknown_fields.is_empty() {
188            debug_struct.field("_unknown_fields", &self._unknown_fields);
189        }
190        debug_struct.finish()
191    }
192}
193
194impl std::fmt::Debug for super::UpgradeHistoryEntry {
195    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
196        let mut debug_struct = f.debug_struct("UpgradeHistoryEntry");
197        debug_struct.field("snapshot", &self.snapshot);
198        debug_struct.field("vm_image", &self.vm_image);
199        debug_struct.field("container_image", &self.container_image);
200        debug_struct.field("framework", &self.framework);
201        debug_struct.field("version", &self.version);
202        debug_struct.field("state", &self.state);
203        debug_struct.field("create_time", &self.create_time);
204        debug_struct.field("action", &self.action);
205        debug_struct.field("target_version", &self.target_version);
206        if !self._unknown_fields.is_empty() {
207            debug_struct.field("_unknown_fields", &self._unknown_fields);
208        }
209        debug_struct.finish()
210    }
211}
212
213impl std::fmt::Debug for super::Instance {
214    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
215        let mut debug_struct = f.debug_struct("Instance");
216        debug_struct.field("name", &self.name);
217        debug_struct.field("proxy_uri", &self.proxy_uri);
218        debug_struct.field("instance_owners", &self.instance_owners);
219        debug_struct.field("creator", &self.creator);
220        debug_struct.field("state", &self.state);
221        debug_struct.field("upgrade_history", &self.upgrade_history);
222        debug_struct.field("id", &self.id);
223        debug_struct.field("health_state", &self.health_state);
224        debug_struct.field("health_info", &self.health_info);
225        debug_struct.field("create_time", &self.create_time);
226        debug_struct.field("update_time", &self.update_time);
227        debug_struct.field("disable_proxy_access", &self.disable_proxy_access);
228        debug_struct.field("labels", &self.labels);
229        debug_struct.field("infrastructure", &self.infrastructure);
230        if !self._unknown_fields.is_empty() {
231            debug_struct.field("_unknown_fields", &self._unknown_fields);
232        }
233        debug_struct.finish()
234    }
235}
236
237impl std::fmt::Debug for super::OperationMetadata {
238    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
239        let mut debug_struct = f.debug_struct("OperationMetadata");
240        debug_struct.field("create_time", &self.create_time);
241        debug_struct.field("end_time", &self.end_time);
242        debug_struct.field("target", &self.target);
243        debug_struct.field("verb", &self.verb);
244        debug_struct.field("status_message", &self.status_message);
245        debug_struct.field("requested_cancellation", &self.requested_cancellation);
246        debug_struct.field("api_version", &self.api_version);
247        debug_struct.field("endpoint", &self.endpoint);
248        if !self._unknown_fields.is_empty() {
249            debug_struct.field("_unknown_fields", &self._unknown_fields);
250        }
251        debug_struct.finish()
252    }
253}
254
255impl std::fmt::Debug for super::ListInstancesRequest {
256    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
257        let mut debug_struct = f.debug_struct("ListInstancesRequest");
258        debug_struct.field("parent", &self.parent);
259        debug_struct.field("page_size", &self.page_size);
260        debug_struct.field("page_token", &self.page_token);
261        debug_struct.field("order_by", &self.order_by);
262        debug_struct.field("filter", &self.filter);
263        if !self._unknown_fields.is_empty() {
264            debug_struct.field("_unknown_fields", &self._unknown_fields);
265        }
266        debug_struct.finish()
267    }
268}
269
270impl std::fmt::Debug for super::ListInstancesResponse {
271    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
272        let mut debug_struct = f.debug_struct("ListInstancesResponse");
273        debug_struct.field("instances", &self.instances);
274        debug_struct.field("next_page_token", &self.next_page_token);
275        debug_struct.field("unreachable", &self.unreachable);
276        if !self._unknown_fields.is_empty() {
277            debug_struct.field("_unknown_fields", &self._unknown_fields);
278        }
279        debug_struct.finish()
280    }
281}
282
283impl std::fmt::Debug for super::GetInstanceRequest {
284    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
285        let mut debug_struct = f.debug_struct("GetInstanceRequest");
286        debug_struct.field("name", &self.name);
287        if !self._unknown_fields.is_empty() {
288            debug_struct.field("_unknown_fields", &self._unknown_fields);
289        }
290        debug_struct.finish()
291    }
292}
293
294impl std::fmt::Debug for super::CreateInstanceRequest {
295    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
296        let mut debug_struct = f.debug_struct("CreateInstanceRequest");
297        debug_struct.field("parent", &self.parent);
298        debug_struct.field("instance_id", &self.instance_id);
299        debug_struct.field("instance", &self.instance);
300        debug_struct.field("request_id", &self.request_id);
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::UpdateInstanceRequest {
309    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
310        let mut debug_struct = f.debug_struct("UpdateInstanceRequest");
311        debug_struct.field("instance", &self.instance);
312        debug_struct.field("update_mask", &self.update_mask);
313        debug_struct.field("request_id", &self.request_id);
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::DeleteInstanceRequest {
322    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
323        let mut debug_struct = f.debug_struct("DeleteInstanceRequest");
324        debug_struct.field("name", &self.name);
325        debug_struct.field("request_id", &self.request_id);
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::StartInstanceRequest {
334    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
335        let mut debug_struct = f.debug_struct("StartInstanceRequest");
336        debug_struct.field("name", &self.name);
337        if !self._unknown_fields.is_empty() {
338            debug_struct.field("_unknown_fields", &self._unknown_fields);
339        }
340        debug_struct.finish()
341    }
342}
343
344impl std::fmt::Debug for super::StopInstanceRequest {
345    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
346        let mut debug_struct = f.debug_struct("StopInstanceRequest");
347        debug_struct.field("name", &self.name);
348        if !self._unknown_fields.is_empty() {
349            debug_struct.field("_unknown_fields", &self._unknown_fields);
350        }
351        debug_struct.finish()
352    }
353}
354
355impl std::fmt::Debug for super::ResetInstanceRequest {
356    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
357        let mut debug_struct = f.debug_struct("ResetInstanceRequest");
358        debug_struct.field("name", &self.name);
359        if !self._unknown_fields.is_empty() {
360            debug_struct.field("_unknown_fields", &self._unknown_fields);
361        }
362        debug_struct.finish()
363    }
364}
365
366impl std::fmt::Debug for super::CheckInstanceUpgradabilityRequest {
367    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
368        let mut debug_struct = f.debug_struct("CheckInstanceUpgradabilityRequest");
369        debug_struct.field("notebook_instance", &self.notebook_instance);
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::CheckInstanceUpgradabilityResponse {
378    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
379        let mut debug_struct = f.debug_struct("CheckInstanceUpgradabilityResponse");
380        debug_struct.field("upgradeable", &self.upgradeable);
381        debug_struct.field("upgrade_version", &self.upgrade_version);
382        debug_struct.field("upgrade_info", &self.upgrade_info);
383        debug_struct.field("upgrade_image", &self.upgrade_image);
384        if !self._unknown_fields.is_empty() {
385            debug_struct.field("_unknown_fields", &self._unknown_fields);
386        }
387        debug_struct.finish()
388    }
389}
390
391impl std::fmt::Debug for super::UpgradeInstanceRequest {
392    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
393        let mut debug_struct = f.debug_struct("UpgradeInstanceRequest");
394        debug_struct.field("name", &self.name);
395        if !self._unknown_fields.is_empty() {
396            debug_struct.field("_unknown_fields", &self._unknown_fields);
397        }
398        debug_struct.finish()
399    }
400}
401
402impl std::fmt::Debug for super::RollbackInstanceRequest {
403    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
404        let mut debug_struct = f.debug_struct("RollbackInstanceRequest");
405        debug_struct.field("name", &self.name);
406        debug_struct.field("target_snapshot", &self.target_snapshot);
407        debug_struct.field("revision_id", &self.revision_id);
408        if !self._unknown_fields.is_empty() {
409            debug_struct.field("_unknown_fields", &self._unknown_fields);
410        }
411        debug_struct.finish()
412    }
413}
414
415impl std::fmt::Debug for super::DiagnoseInstanceRequest {
416    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
417        let mut debug_struct = f.debug_struct("DiagnoseInstanceRequest");
418        debug_struct.field("name", &self.name);
419        debug_struct.field("diagnostic_config", &self.diagnostic_config);
420        debug_struct.field("timeout_minutes", &self.timeout_minutes);
421        if !self._unknown_fields.is_empty() {
422            debug_struct.field("_unknown_fields", &self._unknown_fields);
423        }
424        debug_struct.finish()
425    }
426}