Skip to main content

google_cloud_accessapproval_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::AccessLocations {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("AccessLocations");
23        debug_struct.field("principal_office_country", &self.principal_office_country);
24        debug_struct.field(
25            "principal_physical_location_country",
26            &self.principal_physical_location_country,
27        );
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::AccessReason {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        let mut debug_struct = f.debug_struct("AccessReason");
38        debug_struct.field("r#type", &self.r#type);
39        debug_struct.field("detail", &self.detail);
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::SignatureInfo {
48    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49        let mut debug_struct = f.debug_struct("SignatureInfo");
50        debug_struct.field("signature", &self.signature);
51        debug_struct.field("verification_info", &self.verification_info);
52        if !self._unknown_fields.is_empty() {
53            debug_struct.field("_unknown_fields", &self._unknown_fields);
54        }
55        debug_struct.finish()
56    }
57}
58
59impl std::fmt::Debug for super::ApproveDecision {
60    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
61        let mut debug_struct = f.debug_struct("ApproveDecision");
62        debug_struct.field("approve_time", &self.approve_time);
63        debug_struct.field("expire_time", &self.expire_time);
64        debug_struct.field("invalidate_time", &self.invalidate_time);
65        debug_struct.field("signature_info", &self.signature_info);
66        debug_struct.field("auto_approved", &self.auto_approved);
67        if !self._unknown_fields.is_empty() {
68            debug_struct.field("_unknown_fields", &self._unknown_fields);
69        }
70        debug_struct.finish()
71    }
72}
73
74impl std::fmt::Debug for super::DismissDecision {
75    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
76        let mut debug_struct = f.debug_struct("DismissDecision");
77        debug_struct.field("dismiss_time", &self.dismiss_time);
78        debug_struct.field("implicit", &self.implicit);
79        if !self._unknown_fields.is_empty() {
80            debug_struct.field("_unknown_fields", &self._unknown_fields);
81        }
82        debug_struct.finish()
83    }
84}
85
86impl std::fmt::Debug for super::ResourceProperties {
87    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
88        let mut debug_struct = f.debug_struct("ResourceProperties");
89        debug_struct.field("excludes_descendants", &self.excludes_descendants);
90        if !self._unknown_fields.is_empty() {
91            debug_struct.field("_unknown_fields", &self._unknown_fields);
92        }
93        debug_struct.finish()
94    }
95}
96
97impl std::fmt::Debug for super::ApprovalRequest {
98    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
99        let mut debug_struct = f.debug_struct("ApprovalRequest");
100        debug_struct.field("name", &self.name);
101        debug_struct.field("requested_resource_name", &self.requested_resource_name);
102        debug_struct.field(
103            "requested_resource_properties",
104            &self.requested_resource_properties,
105        );
106        debug_struct.field("requested_reason", &self.requested_reason);
107        debug_struct.field("requested_locations", &self.requested_locations);
108        debug_struct.field("request_time", &self.request_time);
109        debug_struct.field("requested_expiration", &self.requested_expiration);
110        debug_struct.field("decision", &self.decision);
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::EnrolledService {
119    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
120        let mut debug_struct = f.debug_struct("EnrolledService");
121        debug_struct.field("cloud_product", &self.cloud_product);
122        debug_struct.field("enrollment_level", &self.enrollment_level);
123        if !self._unknown_fields.is_empty() {
124            debug_struct.field("_unknown_fields", &self._unknown_fields);
125        }
126        debug_struct.finish()
127    }
128}
129
130impl std::fmt::Debug for super::AccessApprovalSettings {
131    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
132        let mut debug_struct = f.debug_struct("AccessApprovalSettings");
133        debug_struct.field("name", &self.name);
134        debug_struct.field("notification_emails", &self.notification_emails);
135        debug_struct.field("enrolled_services", &self.enrolled_services);
136        debug_struct.field("enrolled_ancestor", &self.enrolled_ancestor);
137        debug_struct.field("active_key_version", &self.active_key_version);
138        debug_struct.field(
139            "ancestor_has_active_key_version",
140            &self.ancestor_has_active_key_version,
141        );
142        debug_struct.field("invalid_key_version", &self.invalid_key_version);
143        if !self._unknown_fields.is_empty() {
144            debug_struct.field("_unknown_fields", &self._unknown_fields);
145        }
146        debug_struct.finish()
147    }
148}
149
150impl std::fmt::Debug for super::AccessApprovalServiceAccount {
151    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
152        let mut debug_struct = f.debug_struct("AccessApprovalServiceAccount");
153        debug_struct.field("name", &self.name);
154        debug_struct.field("account_email", &self.account_email);
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::ListApprovalRequestsMessage {
163    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
164        let mut debug_struct = f.debug_struct("ListApprovalRequestsMessage");
165        debug_struct.field("parent", &self.parent);
166        debug_struct.field("filter", &self.filter);
167        debug_struct.field("page_size", &self.page_size);
168        debug_struct.field("page_token", &self.page_token);
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::ListApprovalRequestsResponse {
177    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
178        let mut debug_struct = f.debug_struct("ListApprovalRequestsResponse");
179        debug_struct.field("approval_requests", &self.approval_requests);
180        debug_struct.field("next_page_token", &self.next_page_token);
181        if !self._unknown_fields.is_empty() {
182            debug_struct.field("_unknown_fields", &self._unknown_fields);
183        }
184        debug_struct.finish()
185    }
186}
187
188impl std::fmt::Debug for super::GetApprovalRequestMessage {
189    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
190        let mut debug_struct = f.debug_struct("GetApprovalRequestMessage");
191        debug_struct.field("name", &self.name);
192        if !self._unknown_fields.is_empty() {
193            debug_struct.field("_unknown_fields", &self._unknown_fields);
194        }
195        debug_struct.finish()
196    }
197}
198
199impl std::fmt::Debug for super::ApproveApprovalRequestMessage {
200    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
201        let mut debug_struct = f.debug_struct("ApproveApprovalRequestMessage");
202        debug_struct.field("name", &self.name);
203        debug_struct.field("expire_time", &self.expire_time);
204        if !self._unknown_fields.is_empty() {
205            debug_struct.field("_unknown_fields", &self._unknown_fields);
206        }
207        debug_struct.finish()
208    }
209}
210
211impl std::fmt::Debug for super::DismissApprovalRequestMessage {
212    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
213        let mut debug_struct = f.debug_struct("DismissApprovalRequestMessage");
214        debug_struct.field("name", &self.name);
215        if !self._unknown_fields.is_empty() {
216            debug_struct.field("_unknown_fields", &self._unknown_fields);
217        }
218        debug_struct.finish()
219    }
220}
221
222impl std::fmt::Debug for super::InvalidateApprovalRequestMessage {
223    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
224        let mut debug_struct = f.debug_struct("InvalidateApprovalRequestMessage");
225        debug_struct.field("name", &self.name);
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 for super::GetAccessApprovalSettingsMessage {
234    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
235        let mut debug_struct = f.debug_struct("GetAccessApprovalSettingsMessage");
236        debug_struct.field("name", &self.name);
237        if !self._unknown_fields.is_empty() {
238            debug_struct.field("_unknown_fields", &self._unknown_fields);
239        }
240        debug_struct.finish()
241    }
242}
243
244impl std::fmt::Debug for super::UpdateAccessApprovalSettingsMessage {
245    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
246        let mut debug_struct = f.debug_struct("UpdateAccessApprovalSettingsMessage");
247        debug_struct.field("settings", &self.settings);
248        debug_struct.field("update_mask", &self.update_mask);
249        if !self._unknown_fields.is_empty() {
250            debug_struct.field("_unknown_fields", &self._unknown_fields);
251        }
252        debug_struct.finish()
253    }
254}
255
256impl std::fmt::Debug for super::DeleteAccessApprovalSettingsMessage {
257    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
258        let mut debug_struct = f.debug_struct("DeleteAccessApprovalSettingsMessage");
259        debug_struct.field("name", &self.name);
260        if !self._unknown_fields.is_empty() {
261            debug_struct.field("_unknown_fields", &self._unknown_fields);
262        }
263        debug_struct.finish()
264    }
265}
266
267impl std::fmt::Debug for super::GetAccessApprovalServiceAccountMessage {
268    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
269        let mut debug_struct = f.debug_struct("GetAccessApprovalServiceAccountMessage");
270        debug_struct.field("name", &self.name);
271        if !self._unknown_fields.is_empty() {
272            debug_struct.field("_unknown_fields", &self._unknown_fields);
273        }
274        debug_struct.finish()
275    }
276}