Skip to main content

google_cloud_iam_v3/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::OperationMetadata {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("OperationMetadata");
23        debug_struct.field("create_time", &self.create_time);
24        debug_struct.field("end_time", &self.end_time);
25        debug_struct.field("target", &self.target);
26        debug_struct.field("verb", &self.verb);
27        debug_struct.field("status_message", &self.status_message);
28        debug_struct.field("requested_cancellation", &self.requested_cancellation);
29        debug_struct.field("api_version", &self.api_version);
30        if !self._unknown_fields.is_empty() {
31            debug_struct.field("_unknown_fields", &self._unknown_fields);
32        }
33        debug_struct.finish()
34    }
35}
36
37impl std::fmt::Debug for super::PolicyBinding {
38    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39        let mut debug_struct = f.debug_struct("PolicyBinding");
40        debug_struct.field("name", &self.name);
41        debug_struct.field("uid", &self.uid);
42        debug_struct.field("etag", &self.etag);
43        debug_struct.field("display_name", &self.display_name);
44        debug_struct.field("annotations", &self.annotations);
45        debug_struct.field("target", &self.target);
46        debug_struct.field("policy_kind", &self.policy_kind);
47        debug_struct.field("policy", &self.policy);
48        debug_struct.field("policy_uid", &self.policy_uid);
49        debug_struct.field("condition", &self.condition);
50        debug_struct.field("create_time", &self.create_time);
51        debug_struct.field("update_time", &self.update_time);
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::policy_binding::Target {
60    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
61        let mut debug_struct = f.debug_struct("Target");
62        debug_struct.field("target", &self.target);
63        if !self._unknown_fields.is_empty() {
64            debug_struct.field("_unknown_fields", &self._unknown_fields);
65        }
66        debug_struct.finish()
67    }
68}
69
70impl std::fmt::Debug for super::CreatePolicyBindingRequest {
71    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
72        let mut debug_struct = f.debug_struct("CreatePolicyBindingRequest");
73        debug_struct.field("parent", &self.parent);
74        debug_struct.field("policy_binding_id", &self.policy_binding_id);
75        debug_struct.field("policy_binding", &self.policy_binding);
76        debug_struct.field("validate_only", &self.validate_only);
77        if !self._unknown_fields.is_empty() {
78            debug_struct.field("_unknown_fields", &self._unknown_fields);
79        }
80        debug_struct.finish()
81    }
82}
83
84impl std::fmt::Debug for super::GetPolicyBindingRequest {
85    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
86        let mut debug_struct = f.debug_struct("GetPolicyBindingRequest");
87        debug_struct.field("name", &self.name);
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::UpdatePolicyBindingRequest {
96    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
97        let mut debug_struct = f.debug_struct("UpdatePolicyBindingRequest");
98        debug_struct.field("policy_binding", &self.policy_binding);
99        debug_struct.field("validate_only", &self.validate_only);
100        debug_struct.field("update_mask", &self.update_mask);
101        if !self._unknown_fields.is_empty() {
102            debug_struct.field("_unknown_fields", &self._unknown_fields);
103        }
104        debug_struct.finish()
105    }
106}
107
108impl std::fmt::Debug for super::DeletePolicyBindingRequest {
109    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
110        let mut debug_struct = f.debug_struct("DeletePolicyBindingRequest");
111        debug_struct.field("name", &self.name);
112        debug_struct.field("etag", &self.etag);
113        debug_struct.field("validate_only", &self.validate_only);
114        if !self._unknown_fields.is_empty() {
115            debug_struct.field("_unknown_fields", &self._unknown_fields);
116        }
117        debug_struct.finish()
118    }
119}
120
121impl std::fmt::Debug for super::ListPolicyBindingsRequest {
122    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
123        let mut debug_struct = f.debug_struct("ListPolicyBindingsRequest");
124        debug_struct.field("parent", &self.parent);
125        debug_struct.field("page_size", &self.page_size);
126        debug_struct.field("page_token", &self.page_token);
127        debug_struct.field("filter", &self.filter);
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::ListPolicyBindingsResponse {
136    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
137        let mut debug_struct = f.debug_struct("ListPolicyBindingsResponse");
138        debug_struct.field("policy_bindings", &self.policy_bindings);
139        debug_struct.field("next_page_token", &self.next_page_token);
140        if !self._unknown_fields.is_empty() {
141            debug_struct.field("_unknown_fields", &self._unknown_fields);
142        }
143        debug_struct.finish()
144    }
145}
146
147impl std::fmt::Debug for super::SearchTargetPolicyBindingsRequest {
148    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
149        let mut debug_struct = f.debug_struct("SearchTargetPolicyBindingsRequest");
150        debug_struct.field("target", &self.target);
151        debug_struct.field("page_size", &self.page_size);
152        debug_struct.field("page_token", &self.page_token);
153        debug_struct.field("parent", &self.parent);
154        if !self._unknown_fields.is_empty() {
155            debug_struct.field("_unknown_fields", &self._unknown_fields);
156        }
157        debug_struct.finish()
158    }
159}
160
161impl std::fmt::Debug for super::SearchTargetPolicyBindingsResponse {
162    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
163        let mut debug_struct = f.debug_struct("SearchTargetPolicyBindingsResponse");
164        debug_struct.field("policy_bindings", &self.policy_bindings);
165        debug_struct.field("next_page_token", &self.next_page_token);
166        if !self._unknown_fields.is_empty() {
167            debug_struct.field("_unknown_fields", &self._unknown_fields);
168        }
169        debug_struct.finish()
170    }
171}
172
173impl std::fmt::Debug for super::CreatePrincipalAccessBoundaryPolicyRequest {
174    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
175        let mut debug_struct = f.debug_struct("CreatePrincipalAccessBoundaryPolicyRequest");
176        debug_struct.field("parent", &self.parent);
177        debug_struct.field(
178            "principal_access_boundary_policy_id",
179            &self.principal_access_boundary_policy_id,
180        );
181        debug_struct.field(
182            "principal_access_boundary_policy",
183            &self.principal_access_boundary_policy,
184        );
185        debug_struct.field("validate_only", &self.validate_only);
186        if !self._unknown_fields.is_empty() {
187            debug_struct.field("_unknown_fields", &self._unknown_fields);
188        }
189        debug_struct.finish()
190    }
191}
192
193impl std::fmt::Debug for super::GetPrincipalAccessBoundaryPolicyRequest {
194    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
195        let mut debug_struct = f.debug_struct("GetPrincipalAccessBoundaryPolicyRequest");
196        debug_struct.field("name", &self.name);
197        if !self._unknown_fields.is_empty() {
198            debug_struct.field("_unknown_fields", &self._unknown_fields);
199        }
200        debug_struct.finish()
201    }
202}
203
204impl std::fmt::Debug for super::UpdatePrincipalAccessBoundaryPolicyRequest {
205    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206        let mut debug_struct = f.debug_struct("UpdatePrincipalAccessBoundaryPolicyRequest");
207        debug_struct.field(
208            "principal_access_boundary_policy",
209            &self.principal_access_boundary_policy,
210        );
211        debug_struct.field("validate_only", &self.validate_only);
212        debug_struct.field("update_mask", &self.update_mask);
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::DeletePrincipalAccessBoundaryPolicyRequest {
221    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
222        let mut debug_struct = f.debug_struct("DeletePrincipalAccessBoundaryPolicyRequest");
223        debug_struct.field("name", &self.name);
224        debug_struct.field("etag", &self.etag);
225        debug_struct.field("validate_only", &self.validate_only);
226        debug_struct.field("force", &self.force);
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 for super::ListPrincipalAccessBoundaryPoliciesRequest {
235    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
236        let mut debug_struct = f.debug_struct("ListPrincipalAccessBoundaryPoliciesRequest");
237        debug_struct.field("parent", &self.parent);
238        debug_struct.field("page_size", &self.page_size);
239        debug_struct.field("page_token", &self.page_token);
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::ListPrincipalAccessBoundaryPoliciesResponse {
248    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
249        let mut debug_struct = f.debug_struct("ListPrincipalAccessBoundaryPoliciesResponse");
250        debug_struct.field(
251            "principal_access_boundary_policies",
252            &self.principal_access_boundary_policies,
253        );
254        debug_struct.field("next_page_token", &self.next_page_token);
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::SearchPrincipalAccessBoundaryPolicyBindingsRequest {
263    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
264        let mut debug_struct = f.debug_struct("SearchPrincipalAccessBoundaryPolicyBindingsRequest");
265        debug_struct.field("name", &self.name);
266        debug_struct.field("page_size", &self.page_size);
267        debug_struct.field("page_token", &self.page_token);
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::SearchPrincipalAccessBoundaryPolicyBindingsResponse {
276    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
277        let mut debug_struct =
278            f.debug_struct("SearchPrincipalAccessBoundaryPolicyBindingsResponse");
279        debug_struct.field("policy_bindings", &self.policy_bindings);
280        debug_struct.field("next_page_token", &self.next_page_token);
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::PrincipalAccessBoundaryPolicy {
289    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
290        let mut debug_struct = f.debug_struct("PrincipalAccessBoundaryPolicy");
291        debug_struct.field("name", &self.name);
292        debug_struct.field("uid", &self.uid);
293        debug_struct.field("etag", &self.etag);
294        debug_struct.field("display_name", &self.display_name);
295        debug_struct.field("annotations", &self.annotations);
296        debug_struct.field("create_time", &self.create_time);
297        debug_struct.field("update_time", &self.update_time);
298        debug_struct.field("details", &self.details);
299        if !self._unknown_fields.is_empty() {
300            debug_struct.field("_unknown_fields", &self._unknown_fields);
301        }
302        debug_struct.finish()
303    }
304}
305
306impl std::fmt::Debug for super::PrincipalAccessBoundaryPolicyDetails {
307    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
308        let mut debug_struct = f.debug_struct("PrincipalAccessBoundaryPolicyDetails");
309        debug_struct.field("rules", &self.rules);
310        debug_struct.field("enforcement_version", &self.enforcement_version);
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::PrincipalAccessBoundaryPolicyRule {
319    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
320        let mut debug_struct = f.debug_struct("PrincipalAccessBoundaryPolicyRule");
321        debug_struct.field("description", &self.description);
322        debug_struct.field("resources", &self.resources);
323        debug_struct.field("effect", &self.effect);
324        if !self._unknown_fields.is_empty() {
325            debug_struct.field("_unknown_fields", &self._unknown_fields);
326        }
327        debug_struct.finish()
328    }
329}