google_cloud_iam_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::DenyRule {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("DenyRule");
23        debug_struct.field("denied_principals", &self.denied_principals);
24        debug_struct.field("exception_principals", &self.exception_principals);
25        debug_struct.field("denied_permissions", &self.denied_permissions);
26        debug_struct.field("exception_permissions", &self.exception_permissions);
27        debug_struct.field("denial_condition", &self.denial_condition);
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::Policy {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        let mut debug_struct = f.debug_struct("Policy");
38        debug_struct.field("name", &self.name);
39        debug_struct.field("uid", &self.uid);
40        debug_struct.field("kind", &self.kind);
41        debug_struct.field("display_name", &self.display_name);
42        debug_struct.field("annotations", &self.annotations);
43        debug_struct.field("etag", &self.etag);
44        debug_struct.field("create_time", &self.create_time);
45        debug_struct.field("update_time", &self.update_time);
46        debug_struct.field("delete_time", &self.delete_time);
47        debug_struct.field("rules", &self.rules);
48        debug_struct.field("managing_authority", &self.managing_authority);
49        if !self._unknown_fields.is_empty() {
50            debug_struct.field("_unknown_fields", &self._unknown_fields);
51        }
52        debug_struct.finish()
53    }
54}
55
56impl std::fmt::Debug for super::PolicyRule {
57    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58        let mut debug_struct = f.debug_struct("PolicyRule");
59        debug_struct.field("description", &self.description);
60        debug_struct.field("kind", &self.kind);
61        if !self._unknown_fields.is_empty() {
62            debug_struct.field("_unknown_fields", &self._unknown_fields);
63        }
64        debug_struct.finish()
65    }
66}
67
68impl std::fmt::Debug for super::ListPoliciesRequest {
69    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
70        let mut debug_struct = f.debug_struct("ListPoliciesRequest");
71        debug_struct.field("parent", &self.parent);
72        debug_struct.field("page_size", &self.page_size);
73        debug_struct.field("page_token", &self.page_token);
74        if !self._unknown_fields.is_empty() {
75            debug_struct.field("_unknown_fields", &self._unknown_fields);
76        }
77        debug_struct.finish()
78    }
79}
80
81impl std::fmt::Debug for super::ListPoliciesResponse {
82    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
83        let mut debug_struct = f.debug_struct("ListPoliciesResponse");
84        debug_struct.field("policies", &self.policies);
85        debug_struct.field("next_page_token", &self.next_page_token);
86        if !self._unknown_fields.is_empty() {
87            debug_struct.field("_unknown_fields", &self._unknown_fields);
88        }
89        debug_struct.finish()
90    }
91}
92
93impl std::fmt::Debug for super::GetPolicyRequest {
94    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
95        let mut debug_struct = f.debug_struct("GetPolicyRequest");
96        debug_struct.field("name", &self.name);
97        if !self._unknown_fields.is_empty() {
98            debug_struct.field("_unknown_fields", &self._unknown_fields);
99        }
100        debug_struct.finish()
101    }
102}
103
104impl std::fmt::Debug for super::CreatePolicyRequest {
105    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
106        let mut debug_struct = f.debug_struct("CreatePolicyRequest");
107        debug_struct.field("parent", &self.parent);
108        debug_struct.field("policy", &self.policy);
109        debug_struct.field("policy_id", &self.policy_id);
110        if !self._unknown_fields.is_empty() {
111            debug_struct.field("_unknown_fields", &self._unknown_fields);
112        }
113        debug_struct.finish()
114    }
115}
116
117impl std::fmt::Debug for super::UpdatePolicyRequest {
118    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
119        let mut debug_struct = f.debug_struct("UpdatePolicyRequest");
120        debug_struct.field("policy", &self.policy);
121        if !self._unknown_fields.is_empty() {
122            debug_struct.field("_unknown_fields", &self._unknown_fields);
123        }
124        debug_struct.finish()
125    }
126}
127
128impl std::fmt::Debug for super::DeletePolicyRequest {
129    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
130        let mut debug_struct = f.debug_struct("DeletePolicyRequest");
131        debug_struct.field("name", &self.name);
132        debug_struct.field("etag", &self.etag);
133        if !self._unknown_fields.is_empty() {
134            debug_struct.field("_unknown_fields", &self._unknown_fields);
135        }
136        debug_struct.finish()
137    }
138}
139
140impl std::fmt::Debug for super::PolicyOperationMetadata {
141    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
142        let mut debug_struct = f.debug_struct("PolicyOperationMetadata");
143        debug_struct.field("create_time", &self.create_time);
144        if !self._unknown_fields.is_empty() {
145            debug_struct.field("_unknown_fields", &self._unknown_fields);
146        }
147        debug_struct.finish()
148    }
149}