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("instance", &self.instance);
57        debug_struct.field("tee_attestation", &self.tee_attestation);
58        debug_struct.field("device_attestation", &self.device_attestation);
59        if !self._unknown_fields.is_empty() {
60            debug_struct.field("_unknown_fields", &self._unknown_fields);
61        }
62        debug_struct.finish()
63    }
64}
65
66impl std::fmt::Debug for super::NvidiaAttestation {
67    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
68        let mut debug_struct = f.debug_struct("NvidiaAttestation");
69        debug_struct.field("cc_feature", &self.cc_feature);
70        if !self._unknown_fields.is_empty() {
71            debug_struct.field("_unknown_fields", &self._unknown_fields);
72        }
73        debug_struct.finish()
74    }
75}
76
77impl std::fmt::Debug for super::nvidia_attestation::GpuInfo {
78    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
79        let mut debug_struct = f.debug_struct("GpuInfo");
80        debug_struct.field("uuid", &self.uuid);
81        debug_struct.field("driver_version", &self.driver_version);
82        debug_struct.field("vbios_version", &self.vbios_version);
83        debug_struct.field("gpu_architecture_type", &self.gpu_architecture_type);
84        debug_struct.field(
85            "attestation_certificate_chain",
86            &self.attestation_certificate_chain,
87        );
88        debug_struct.field("attestation_report", &self.attestation_report);
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::nvidia_attestation::SwitchInfo {
97    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
98        let mut debug_struct = f.debug_struct("SwitchInfo");
99        debug_struct.field("uuid", &self.uuid);
100        debug_struct.field(
101            "attestation_certificate_chain",
102            &self.attestation_certificate_chain,
103        );
104        debug_struct.field("attestation_report", &self.attestation_report);
105        if !self._unknown_fields.is_empty() {
106            debug_struct.field("_unknown_fields", &self._unknown_fields);
107        }
108        debug_struct.finish()
109    }
110}
111
112impl std::fmt::Debug for super::nvidia_attestation::SinglePassthroughAttestation {
113    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
114        let mut debug_struct = f.debug_struct("SinglePassthroughAttestation");
115        debug_struct.field("gpu_quote", &self.gpu_quote);
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::nvidia_attestation::ProtectedPcieAttestation {
124    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
125        let mut debug_struct = f.debug_struct("ProtectedPcieAttestation");
126        debug_struct.field("gpu_quotes", &self.gpu_quotes);
127        debug_struct.field("switch_quotes", &self.switch_quotes);
128        if !self._unknown_fields.is_empty() {
129            debug_struct.field("_unknown_fields", &self._unknown_fields);
130        }
131        debug_struct.finish()
132    }
133}
134
135impl std::fmt::Debug for super::nvidia_attestation::MultiGpuSecurePassthroughAttestation {
136    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
137        let mut debug_struct = f.debug_struct("MultiGpuSecurePassthroughAttestation");
138        debug_struct.field("gpu_quotes", &self.gpu_quotes);
139        if !self._unknown_fields.is_empty() {
140            debug_struct.field("_unknown_fields", &self._unknown_fields);
141        }
142        debug_struct.finish()
143    }
144}
145
146impl std::fmt::Debug for super::TdxCcelAttestation {
147    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
148        let mut debug_struct = f.debug_struct("TdxCcelAttestation");
149        debug_struct.field("ccel_acpi_table", &self.ccel_acpi_table);
150        debug_struct.field("ccel_data", &self.ccel_data);
151        debug_struct.field("canonical_event_log", &self.canonical_event_log);
152        debug_struct.field("td_quote", &self.td_quote);
153        if !self._unknown_fields.is_empty() {
154            debug_struct.field("_unknown_fields", &self._unknown_fields);
155        }
156        debug_struct.finish()
157    }
158}
159
160impl std::fmt::Debug for super::SevSnpAttestation {
161    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
162        let mut debug_struct = f.debug_struct("SevSnpAttestation");
163        debug_struct.field("report", &self.report);
164        debug_struct.field("aux_blob", &self.aux_blob);
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::VerifyAttestationResponse {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("VerifyAttestationResponse");
175        debug_struct.field("oidc_claims_token", &self.oidc_claims_token);
176        debug_struct.field("partial_errors", &self.partial_errors);
177        if !self._unknown_fields.is_empty() {
178            debug_struct.field("_unknown_fields", &self._unknown_fields);
179        }
180        debug_struct.finish()
181    }
182}
183
184impl std::fmt::Debug for super::GcpCredentials {
185    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
186        let mut debug_struct = f.debug_struct("GcpCredentials");
187        debug_struct.field("service_account_id_tokens", &self.service_account_id_tokens);
188        if !self._unknown_fields.is_empty() {
189            debug_struct.field("_unknown_fields", &self._unknown_fields);
190        }
191        debug_struct.finish()
192    }
193}
194
195impl std::fmt::Debug for super::TokenOptions {
196    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
197        let mut debug_struct = f.debug_struct("TokenOptions");
198        debug_struct.field("audience", &self.audience);
199        debug_struct.field("nonce", &self.nonce);
200        debug_struct.field("token_type", &self.token_type);
201        debug_struct.field("token_type_options", &self.token_type_options);
202        if !self._unknown_fields.is_empty() {
203            debug_struct.field("_unknown_fields", &self._unknown_fields);
204        }
205        debug_struct.finish()
206    }
207}
208
209impl std::fmt::Debug for super::AwsPrincipalTagsOptions {
210    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
211        let mut debug_struct = f.debug_struct("AwsPrincipalTagsOptions");
212        debug_struct.field("allowed_principal_tags", &self.allowed_principal_tags);
213        if !self._unknown_fields.is_empty() {
214            debug_struct.field("_unknown_fields", &self._unknown_fields);
215        }
216        debug_struct.finish()
217    }
218}
219
220impl std::fmt::Debug for super::aws_principal_tags_options::AllowedPrincipalTags {
221    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
222        let mut debug_struct = f.debug_struct("AllowedPrincipalTags");
223        debug_struct.field(
224            "container_image_signatures",
225            &self.container_image_signatures,
226        );
227        if !self._unknown_fields.is_empty() {
228            debug_struct.field("_unknown_fields", &self._unknown_fields);
229        }
230        debug_struct.finish()
231    }
232}
233
234impl std::fmt::Debug
235    for super::aws_principal_tags_options::allowed_principal_tags::ContainerImageSignatures
236{
237    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
238        let mut debug_struct = f.debug_struct("ContainerImageSignatures");
239        debug_struct.field("key_ids", &self.key_ids);
240        if !self._unknown_fields.is_empty() {
241            debug_struct.field("_unknown_fields", &self._unknown_fields);
242        }
243        debug_struct.finish()
244    }
245}
246
247impl std::fmt::Debug for super::TpmAttestation {
248    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
249        let mut debug_struct = f.debug_struct("TpmAttestation");
250        debug_struct.field("quotes", &self.quotes);
251        debug_struct.field("tcg_event_log", &self.tcg_event_log);
252        debug_struct.field("canonical_event_log", &self.canonical_event_log);
253        debug_struct.field("ak_cert", &self.ak_cert);
254        debug_struct.field("cert_chain", &self.cert_chain);
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::tpm_attestation::Quote {
263    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
264        let mut debug_struct = f.debug_struct("Quote");
265        debug_struct.field("hash_algo", &self.hash_algo);
266        debug_struct.field("pcr_values", &self.pcr_values);
267        debug_struct.field("raw_quote", &self.raw_quote);
268        debug_struct.field("raw_signature", &self.raw_signature);
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::ConfidentialSpaceInfo {
277    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278        let mut debug_struct = f.debug_struct("ConfidentialSpaceInfo");
279        debug_struct.field("signed_entities", &self.signed_entities);
280        if !self._unknown_fields.is_empty() {
281            debug_struct.field("_unknown_fields", &self._unknown_fields);
282        }
283        debug_struct.finish()
284    }
285}
286
287impl std::fmt::Debug for super::SignedEntity {
288    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
289        let mut debug_struct = f.debug_struct("SignedEntity");
290        debug_struct.field(
291            "container_image_signatures",
292            &self.container_image_signatures,
293        );
294        if !self._unknown_fields.is_empty() {
295            debug_struct.field("_unknown_fields", &self._unknown_fields);
296        }
297        debug_struct.finish()
298    }
299}
300
301impl std::fmt::Debug for super::ContainerImageSignature {
302    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
303        let mut debug_struct = f.debug_struct("ContainerImageSignature");
304        debug_struct.field("payload", &self.payload);
305        debug_struct.field("signature", &self.signature);
306        debug_struct.field("public_key", &self.public_key);
307        debug_struct.field("sig_alg", &self.sig_alg);
308        if !self._unknown_fields.is_empty() {
309            debug_struct.field("_unknown_fields", &self._unknown_fields);
310        }
311        debug_struct.finish()
312    }
313}
314
315impl std::fmt::Debug for super::VerifyConfidentialSpaceRequest {
316    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
317        let mut debug_struct = f.debug_struct("VerifyConfidentialSpaceRequest");
318        debug_struct.field("challenge", &self.challenge);
319        debug_struct.field("gcp_credentials", &self.gcp_credentials);
320        debug_struct.field("signed_entities", &self.signed_entities);
321        debug_struct.field("gce_shielded_identity", &self.gce_shielded_identity);
322        debug_struct.field("options", &self.options);
323        debug_struct.field("nvidia_attestation", &self.nvidia_attestation);
324        debug_struct.field("tee_attestation", &self.tee_attestation);
325        if !self._unknown_fields.is_empty() {
326            debug_struct.field("_unknown_fields", &self._unknown_fields);
327        }
328        debug_struct.finish()
329    }
330}
331
332impl std::fmt::Debug for super::verify_confidential_space_request::ConfidentialSpaceOptions {
333    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
334        let mut debug_struct = f.debug_struct("ConfidentialSpaceOptions");
335        debug_struct.field("audience", &self.audience);
336        debug_struct.field("token_profile", &self.token_profile);
337        debug_struct.field("nonce", &self.nonce);
338        debug_struct.field("signature_type", &self.signature_type);
339        debug_struct.field("token_profile_options", &self.token_profile_options);
340        if !self._unknown_fields.is_empty() {
341            debug_struct.field("_unknown_fields", &self._unknown_fields);
342        }
343        debug_struct.finish()
344    }
345}
346
347impl std::fmt::Debug for super::GceShieldedIdentity {
348    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
349        let mut debug_struct = f.debug_struct("GceShieldedIdentity");
350        debug_struct.field("ak_cert", &self.ak_cert);
351        debug_struct.field("ak_cert_chain", &self.ak_cert_chain);
352        if !self._unknown_fields.is_empty() {
353            debug_struct.field("_unknown_fields", &self._unknown_fields);
354        }
355        debug_struct.finish()
356    }
357}
358
359impl std::fmt::Debug for super::VerifyConfidentialSpaceResponse {
360    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
361        let mut debug_struct = f.debug_struct("VerifyConfidentialSpaceResponse");
362        debug_struct.field("attestation_token", &self.attestation_token);
363        debug_struct.field("partial_errors", &self.partial_errors);
364        if !self._unknown_fields.is_empty() {
365            debug_struct.field("_unknown_fields", &self._unknown_fields);
366        }
367        debug_struct.finish()
368    }
369}
370
371impl std::fmt::Debug for super::VerifyConfidentialGkeRequest {
372    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
373        let mut debug_struct = f.debug_struct("VerifyConfidentialGkeRequest");
374        debug_struct.field("challenge", &self.challenge);
375        debug_struct.field("options", &self.options);
376        debug_struct.field("tee_attestation", &self.tee_attestation);
377        if !self._unknown_fields.is_empty() {
378            debug_struct.field("_unknown_fields", &self._unknown_fields);
379        }
380        debug_struct.finish()
381    }
382}
383
384impl std::fmt::Debug for super::verify_confidential_gke_request::ConfidentialGkeOptions {
385    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
386        let mut debug_struct = f.debug_struct("ConfidentialGkeOptions");
387        debug_struct.field("audience", &self.audience);
388        debug_struct.field("nonce", &self.nonce);
389        debug_struct.field("signature_type", &self.signature_type);
390        if !self._unknown_fields.is_empty() {
391            debug_struct.field("_unknown_fields", &self._unknown_fields);
392        }
393        debug_struct.finish()
394    }
395}
396
397impl std::fmt::Debug for super::VerifyConfidentialGkeResponse {
398    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
399        let mut debug_struct = f.debug_struct("VerifyConfidentialGkeResponse");
400        debug_struct.field("attestation_token", &self.attestation_token);
401        if !self._unknown_fields.is_empty() {
402            debug_struct.field("_unknown_fields", &self._unknown_fields);
403        }
404        debug_struct.finish()
405    }
406}