Skip to main content

google_cloud_iam_v1/model/
debug.rs

1// Copyright 2024 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::SetIamPolicyRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("SetIamPolicyRequest");
23        debug_struct.field("resource", &self.resource);
24        debug_struct.field("policy", &self.policy);
25        debug_struct.field("update_mask", &self.update_mask);
26        if !self._unknown_fields.is_empty() {
27            debug_struct.field("_unknown_fields", &self._unknown_fields);
28        }
29        debug_struct.finish()
30    }
31}
32
33impl std::fmt::Debug for super::GetIamPolicyRequest {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("GetIamPolicyRequest");
36        debug_struct.field("resource", &self.resource);
37        debug_struct.field("options", &self.options);
38        if !self._unknown_fields.is_empty() {
39            debug_struct.field("_unknown_fields", &self._unknown_fields);
40        }
41        debug_struct.finish()
42    }
43}
44
45impl std::fmt::Debug for super::TestIamPermissionsRequest {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("TestIamPermissionsRequest");
48        debug_struct.field("resource", &self.resource);
49        debug_struct.field("permissions", &self.permissions);
50        if !self._unknown_fields.is_empty() {
51            debug_struct.field("_unknown_fields", &self._unknown_fields);
52        }
53        debug_struct.finish()
54    }
55}
56
57impl std::fmt::Debug for super::TestIamPermissionsResponse {
58    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
59        let mut debug_struct = f.debug_struct("TestIamPermissionsResponse");
60        debug_struct.field("permissions", &self.permissions);
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::GetPolicyOptions {
69    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
70        let mut debug_struct = f.debug_struct("GetPolicyOptions");
71        debug_struct.field("requested_policy_version", &self.requested_policy_version);
72        if !self._unknown_fields.is_empty() {
73            debug_struct.field("_unknown_fields", &self._unknown_fields);
74        }
75        debug_struct.finish()
76    }
77}
78
79impl std::fmt::Debug for super::Policy {
80    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
81        let mut debug_struct = f.debug_struct("Policy");
82        debug_struct.field("version", &self.version);
83        debug_struct.field("bindings", &self.bindings);
84        debug_struct.field("audit_configs", &self.audit_configs);
85        debug_struct.field("etag", &self.etag);
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::Binding {
94    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
95        let mut debug_struct = f.debug_struct("Binding");
96        debug_struct.field("role", &self.role);
97        debug_struct.field("members", &self.members);
98        debug_struct.field("condition", &self.condition);
99        if !self._unknown_fields.is_empty() {
100            debug_struct.field("_unknown_fields", &self._unknown_fields);
101        }
102        debug_struct.finish()
103    }
104}
105
106impl std::fmt::Debug for super::AuditConfig {
107    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
108        let mut debug_struct = f.debug_struct("AuditConfig");
109        debug_struct.field("service", &self.service);
110        debug_struct.field("audit_log_configs", &self.audit_log_configs);
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::AuditLogConfig {
119    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
120        let mut debug_struct = f.debug_struct("AuditLogConfig");
121        debug_struct.field("log_type", &self.log_type);
122        debug_struct.field("exempted_members", &self.exempted_members);
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::PolicyDelta {
131    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
132        let mut debug_struct = f.debug_struct("PolicyDelta");
133        debug_struct.field("binding_deltas", &self.binding_deltas);
134        debug_struct.field("audit_config_deltas", &self.audit_config_deltas);
135        if !self._unknown_fields.is_empty() {
136            debug_struct.field("_unknown_fields", &self._unknown_fields);
137        }
138        debug_struct.finish()
139    }
140}
141
142impl std::fmt::Debug for super::BindingDelta {
143    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
144        let mut debug_struct = f.debug_struct("BindingDelta");
145        debug_struct.field("action", &self.action);
146        debug_struct.field("role", &self.role);
147        debug_struct.field("member", &self.member);
148        debug_struct.field("condition", &self.condition);
149        if !self._unknown_fields.is_empty() {
150            debug_struct.field("_unknown_fields", &self._unknown_fields);
151        }
152        debug_struct.finish()
153    }
154}
155
156impl std::fmt::Debug for super::AuditConfigDelta {
157    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
158        let mut debug_struct = f.debug_struct("AuditConfigDelta");
159        debug_struct.field("action", &self.action);
160        debug_struct.field("service", &self.service);
161        debug_struct.field("exempted_member", &self.exempted_member);
162        debug_struct.field("log_type", &self.log_type);
163        if !self._unknown_fields.is_empty() {
164            debug_struct.field("_unknown_fields", &self._unknown_fields);
165        }
166        debug_struct.finish()
167    }
168}
169
170impl std::fmt::Debug for super::ResourcePolicyMember {
171    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
172        let mut debug_struct = f.debug_struct("ResourcePolicyMember");
173        debug_struct.field("iam_policy_name_principal", &self.iam_policy_name_principal);
174        debug_struct.field("iam_policy_uid_principal", &self.iam_policy_uid_principal);
175        if !self._unknown_fields.is_empty() {
176            debug_struct.field("_unknown_fields", &self._unknown_fields);
177        }
178        debug_struct.finish()
179    }
180}