Skip to main content

google_cloud_confidentialcomputing_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::Challenge {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Challenge");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("create_time", &self.create_time);
25        debug_struct.field("expire_time", &self.expire_time);
26        debug_struct.field("used", &self.used);
27        debug_struct.field("tpm_nonce", &self.tpm_nonce);
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::CreateChallengeRequest {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        let mut debug_struct = f.debug_struct("CreateChallengeRequest");
38        debug_struct.field("parent", &self.parent);
39        debug_struct.field("challenge", &self.challenge);
40        if !self._unknown_fields.is_empty() {
41            debug_struct.field("_unknown_fields", &self._unknown_fields);
42        }
43        debug_struct.finish()
44    }
45}
46
47impl std::fmt::Debug for super::VerifyAttestationRequest {
48    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49        let mut debug_struct = f.debug_struct("VerifyAttestationRequest");
50        debug_struct.field("challenge", &self.challenge);
51        debug_struct.field("gcp_credentials", &self.gcp_credentials);
52        debug_struct.field("tpm_attestation", &self.tpm_attestation);
53        debug_struct.field("confidential_space_info", &self.confidential_space_info);
54        debug_struct.field("token_options", &self.token_options);
55        debug_struct.field("attester", &self.attester);
56        debug_struct.field("tee_attestation", &self.tee_attestation);
57        debug_struct.field("device_attestation", &self.device_attestation);
58        if !self._unknown_fields.is_empty() {
59            debug_struct.field("_unknown_fields", &self._unknown_fields);
60        }
61        debug_struct.finish()
62    }
63}
64
65impl std::fmt::Debug for super::NvidiaAttestation {
66    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
67        let mut debug_struct = f.debug_struct("NvidiaAttestation");
68        debug_struct.field("cc_feature", &self.cc_feature);
69        if !self._unknown_fields.is_empty() {
70            debug_struct.field("_unknown_fields", &self._unknown_fields);
71        }
72        debug_struct.finish()
73    }
74}
75
76impl std::fmt::Debug for super::nvidia_attestation::GpuInfo {
77    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
78        let mut debug_struct = f.debug_struct("GpuInfo");
79        debug_struct.field("uuid", &self.uuid);
80        debug_struct.field("driver_version", &self.driver_version);
81        debug_struct.field("vbios_version", &self.vbios_version);
82        debug_struct.field("gpu_architecture_type", &self.gpu_architecture_type);
83        debug_struct.field(
84            "attestation_certificate_chain",
85            &self.attestation_certificate_chain,
86        );
87        debug_struct.field("attestation_report", &self.attestation_report);
88        if !self._unknown_fields.is_empty() {
89            debug_struct.field("_unknown_fields", &self._unknown_fields);
90        }
91        debug_struct.finish()
92    }
93}
94
95impl std::fmt::Debug for super::nvidia_attestation::SwitchInfo {
96    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
97        let mut debug_struct = f.debug_struct("SwitchInfo");
98        debug_struct.field("uuid", &self.uuid);
99        debug_struct.field(
100            "attestation_certificate_chain",
101            &self.attestation_certificate_chain,
102        );
103        debug_struct.field("attestation_report", &self.attestation_report);
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::nvidia_attestation::SinglePassthroughAttestation {
112    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113        let mut debug_struct = f.debug_struct("SinglePassthroughAttestation");
114        debug_struct.field("gpu_quote", &self.gpu_quote);
115        if !self._unknown_fields.is_empty() {
116            debug_struct.field("_unknown_fields", &self._unknown_fields);
117        }
118        debug_struct.finish()
119    }
120}
121
122impl std::fmt::Debug for super::nvidia_attestation::ProtectedPcieAttestation {
123    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
124        let mut debug_struct = f.debug_struct("ProtectedPcieAttestation");
125        debug_struct.field("gpu_quotes", &self.gpu_quotes);
126        debug_struct.field("switch_quotes", &self.switch_quotes);
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::nvidia_attestation::MultiGpuSecurePassthroughAttestation {
135    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
136        let mut debug_struct = f.debug_struct("MultiGpuSecurePassthroughAttestation");
137        debug_struct.field("gpu_quotes", &self.gpu_quotes);
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::TdxCcelAttestation {
146    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
147        let mut debug_struct = f.debug_struct("TdxCcelAttestation");
148        debug_struct.field("ccel_acpi_table", &self.ccel_acpi_table);
149        debug_struct.field("ccel_data", &self.ccel_data);
150        debug_struct.field("canonical_event_log", &self.canonical_event_log);
151        debug_struct.field("td_quote", &self.td_quote);
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::SevSnpAttestation {
160    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
161        let mut debug_struct = f.debug_struct("SevSnpAttestation");
162        debug_struct.field("report", &self.report);
163        debug_struct.field("aux_blob", &self.aux_blob);
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::VerifyAttestationResponse {
172    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
173        let mut debug_struct = f.debug_struct("VerifyAttestationResponse");
174        debug_struct.field("oidc_claims_token", &self.oidc_claims_token);
175        debug_struct.field("partial_errors", &self.partial_errors);
176        if !self._unknown_fields.is_empty() {
177            debug_struct.field("_unknown_fields", &self._unknown_fields);
178        }
179        debug_struct.finish()
180    }
181}
182
183impl std::fmt::Debug for super::GcpCredentials {
184    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
185        let mut debug_struct = f.debug_struct("GcpCredentials");
186        debug_struct.field("service_account_id_tokens", &self.service_account_id_tokens);
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::TokenOptions {
195    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
196        let mut debug_struct = f.debug_struct("TokenOptions");
197        debug_struct.field("audience", &self.audience);
198        debug_struct.field("nonce", &self.nonce);
199        debug_struct.field("token_type", &self.token_type);
200        debug_struct.field("token_type_options", &self.token_type_options);
201        if !self._unknown_fields.is_empty() {
202            debug_struct.field("_unknown_fields", &self._unknown_fields);
203        }
204        debug_struct.finish()
205    }
206}
207
208impl std::fmt::Debug for super::AwsPrincipalTagsOptions {
209    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
210        let mut debug_struct = f.debug_struct("AwsPrincipalTagsOptions");
211        debug_struct.field("allowed_principal_tags", &self.allowed_principal_tags);
212        if !self._unknown_fields.is_empty() {
213            debug_struct.field("_unknown_fields", &self._unknown_fields);
214        }
215        debug_struct.finish()
216    }
217}
218
219impl std::fmt::Debug for super::aws_principal_tags_options::AllowedPrincipalTags {
220    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
221        let mut debug_struct = f.debug_struct("AllowedPrincipalTags");
222        debug_struct.field(
223            "container_image_signatures",
224            &self.container_image_signatures,
225        );
226        if !self._unknown_fields.is_empty() {
227            debug_struct.field("_unknown_fields", &self._unknown_fields);
228        }
229        debug_struct.finish()
230    }
231}
232
233impl std::fmt::Debug
234    for super::aws_principal_tags_options::allowed_principal_tags::ContainerImageSignatures
235{
236    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
237        let mut debug_struct = f.debug_struct("ContainerImageSignatures");
238        debug_struct.field("key_ids", &self.key_ids);
239        if !self._unknown_fields.is_empty() {
240            debug_struct.field("_unknown_fields", &self._unknown_fields);
241        }
242        debug_struct.finish()
243    }
244}
245
246impl std::fmt::Debug for super::TpmAttestation {
247    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
248        let mut debug_struct = f.debug_struct("TpmAttestation");
249        debug_struct.field("quotes", &self.quotes);
250        debug_struct.field("tcg_event_log", &self.tcg_event_log);
251        debug_struct.field("canonical_event_log", &self.canonical_event_log);
252        debug_struct.field("ak_cert", &self.ak_cert);
253        debug_struct.field("cert_chain", &self.cert_chain);
254        if !self._unknown_fields.is_empty() {
255            debug_struct.field("_unknown_fields", &self._unknown_fields);
256        }
257        debug_struct.finish()
258    }
259}
260
261impl std::fmt::Debug for super::tpm_attestation::Quote {
262    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
263        let mut debug_struct = f.debug_struct("Quote");
264        debug_struct.field("hash_algo", &self.hash_algo);
265        debug_struct.field("pcr_values", &self.pcr_values);
266        debug_struct.field("raw_quote", &self.raw_quote);
267        debug_struct.field("raw_signature", &self.raw_signature);
268        if !self._unknown_fields.is_empty() {
269            debug_struct.field("_unknown_fields", &self._unknown_fields);
270        }
271        debug_struct.finish()
272    }
273}
274
275impl std::fmt::Debug for super::ConfidentialSpaceInfo {
276    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
277        let mut debug_struct = f.debug_struct("ConfidentialSpaceInfo");
278        debug_struct.field("signed_entities", &self.signed_entities);
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::SignedEntity {
287    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
288        let mut debug_struct = f.debug_struct("SignedEntity");
289        debug_struct.field(
290            "container_image_signatures",
291            &self.container_image_signatures,
292        );
293        if !self._unknown_fields.is_empty() {
294            debug_struct.field("_unknown_fields", &self._unknown_fields);
295        }
296        debug_struct.finish()
297    }
298}
299
300impl std::fmt::Debug for super::ContainerImageSignature {
301    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
302        let mut debug_struct = f.debug_struct("ContainerImageSignature");
303        debug_struct.field("payload", &self.payload);
304        debug_struct.field("signature", &self.signature);
305        debug_struct.field("public_key", &self.public_key);
306        debug_struct.field("sig_alg", &self.sig_alg);
307        if !self._unknown_fields.is_empty() {
308            debug_struct.field("_unknown_fields", &self._unknown_fields);
309        }
310        debug_struct.finish()
311    }
312}
313
314impl std::fmt::Debug for super::VerifyConfidentialSpaceRequest {
315    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
316        let mut debug_struct = f.debug_struct("VerifyConfidentialSpaceRequest");
317        debug_struct.field("challenge", &self.challenge);
318        debug_struct.field("gcp_credentials", &self.gcp_credentials);
319        debug_struct.field("signed_entities", &self.signed_entities);
320        debug_struct.field("gce_shielded_identity", &self.gce_shielded_identity);
321        debug_struct.field("options", &self.options);
322        debug_struct.field("nvidia_attestation", &self.nvidia_attestation);
323        debug_struct.field("tee_attestation", &self.tee_attestation);
324        if !self._unknown_fields.is_empty() {
325            debug_struct.field("_unknown_fields", &self._unknown_fields);
326        }
327        debug_struct.finish()
328    }
329}
330
331impl std::fmt::Debug for super::verify_confidential_space_request::ConfidentialSpaceOptions {
332    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
333        let mut debug_struct = f.debug_struct("ConfidentialSpaceOptions");
334        debug_struct.field("audience", &self.audience);
335        debug_struct.field("token_profile", &self.token_profile);
336        debug_struct.field("nonce", &self.nonce);
337        debug_struct.field("signature_type", &self.signature_type);
338        debug_struct.field("token_profile_options", &self.token_profile_options);
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::GceShieldedIdentity {
347    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
348        let mut debug_struct = f.debug_struct("GceShieldedIdentity");
349        debug_struct.field("ak_cert", &self.ak_cert);
350        debug_struct.field("ak_cert_chain", &self.ak_cert_chain);
351        if !self._unknown_fields.is_empty() {
352            debug_struct.field("_unknown_fields", &self._unknown_fields);
353        }
354        debug_struct.finish()
355    }
356}
357
358impl std::fmt::Debug for super::VerifyConfidentialSpaceResponse {
359    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
360        let mut debug_struct = f.debug_struct("VerifyConfidentialSpaceResponse");
361        debug_struct.field("attestation_token", &self.attestation_token);
362        debug_struct.field("partial_errors", &self.partial_errors);
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::VerifyConfidentialGkeRequest {
371    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
372        let mut debug_struct = f.debug_struct("VerifyConfidentialGkeRequest");
373        debug_struct.field("challenge", &self.challenge);
374        debug_struct.field("options", &self.options);
375        debug_struct.field("tee_attestation", &self.tee_attestation);
376        if !self._unknown_fields.is_empty() {
377            debug_struct.field("_unknown_fields", &self._unknown_fields);
378        }
379        debug_struct.finish()
380    }
381}
382
383impl std::fmt::Debug for super::verify_confidential_gke_request::ConfidentialGkeOptions {
384    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
385        let mut debug_struct = f.debug_struct("ConfidentialGkeOptions");
386        debug_struct.field("audience", &self.audience);
387        debug_struct.field("nonce", &self.nonce);
388        debug_struct.field("signature_type", &self.signature_type);
389        if !self._unknown_fields.is_empty() {
390            debug_struct.field("_unknown_fields", &self._unknown_fields);
391        }
392        debug_struct.finish()
393    }
394}
395
396impl std::fmt::Debug for super::VerifyConfidentialGkeResponse {
397    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
398        let mut debug_struct = f.debug_struct("VerifyConfidentialGkeResponse");
399        debug_struct.field("attestation_token", &self.attestation_token);
400        if !self._unknown_fields.is_empty() {
401            debug_struct.field("_unknown_fields", &self._unknown_fields);
402        }
403        debug_struct.finish()
404    }
405}