google_cloud_orgpolicy_v2/model/
debug.rs1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::Constraint {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("Constraint");
23 debug_struct.field("name", &self.name);
24 debug_struct.field("display_name", &self.display_name);
25 debug_struct.field("description", &self.description);
26 debug_struct.field("constraint_default", &self.constraint_default);
27 debug_struct.field("supports_dry_run", &self.supports_dry_run);
28 debug_struct.field("equivalent_constraint", &self.equivalent_constraint);
29 debug_struct.field("supports_simulation", &self.supports_simulation);
30 debug_struct.field("constraint_type", &self.constraint_type);
31 if !self._unknown_fields.is_empty() {
32 debug_struct.field("_unknown_fields", &self._unknown_fields);
33 }
34 debug_struct.finish()
35 }
36}
37
38impl std::fmt::Debug for super::constraint::ListConstraint {
39 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
40 let mut debug_struct = f.debug_struct("ListConstraint");
41 debug_struct.field("supports_in", &self.supports_in);
42 debug_struct.field("supports_under", &self.supports_under);
43 if !self._unknown_fields.is_empty() {
44 debug_struct.field("_unknown_fields", &self._unknown_fields);
45 }
46 debug_struct.finish()
47 }
48}
49
50impl std::fmt::Debug for super::constraint::CustomConstraintDefinition {
51 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
52 let mut debug_struct = f.debug_struct("CustomConstraintDefinition");
53 debug_struct.field("resource_types", &self.resource_types);
54 debug_struct.field("method_types", &self.method_types);
55 debug_struct.field("condition", &self.condition);
56 debug_struct.field("action_type", &self.action_type);
57 debug_struct.field("parameters", &self.parameters);
58 if !self._unknown_fields.is_empty() {
59 debug_struct.field("_unknown_fields", &self._unknown_fields);
60 }
61 debug_struct.finish()
62 }
63}
64
65impl std::fmt::Debug for super::constraint::custom_constraint_definition::Parameter {
66 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
67 let mut debug_struct = f.debug_struct("Parameter");
68 debug_struct.field("r#type", &self.r#type);
69 debug_struct.field("default_value", &self.default_value);
70 debug_struct.field("valid_values_expr", &self.valid_values_expr);
71 debug_struct.field("metadata", &self.metadata);
72 debug_struct.field("item", &self.item);
73 if !self._unknown_fields.is_empty() {
74 debug_struct.field("_unknown_fields", &self._unknown_fields);
75 }
76 debug_struct.finish()
77 }
78}
79
80impl std::fmt::Debug for super::constraint::custom_constraint_definition::parameter::Metadata {
81 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
82 let mut debug_struct = f.debug_struct("Metadata");
83 debug_struct.field("description", &self.description);
84 if !self._unknown_fields.is_empty() {
85 debug_struct.field("_unknown_fields", &self._unknown_fields);
86 }
87 debug_struct.finish()
88 }
89}
90
91impl std::fmt::Debug for super::constraint::BooleanConstraint {
92 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93 let mut debug_struct = f.debug_struct("BooleanConstraint");
94 debug_struct.field(
95 "custom_constraint_definition",
96 &self.custom_constraint_definition,
97 );
98 if !self._unknown_fields.is_empty() {
99 debug_struct.field("_unknown_fields", &self._unknown_fields);
100 }
101 debug_struct.finish()
102 }
103}
104
105impl std::fmt::Debug for super::CustomConstraint {
106 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
107 let mut debug_struct = f.debug_struct("CustomConstraint");
108 debug_struct.field("name", &self.name);
109 debug_struct.field("resource_types", &self.resource_types);
110 debug_struct.field("method_types", &self.method_types);
111 debug_struct.field("condition", &self.condition);
112 debug_struct.field("action_type", &self.action_type);
113 debug_struct.field("display_name", &self.display_name);
114 debug_struct.field("description", &self.description);
115 debug_struct.field("update_time", &self.update_time);
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::Policy {
124 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
125 let mut debug_struct = f.debug_struct("Policy");
126 debug_struct.field("name", &self.name);
127 debug_struct.field("spec", &self.spec);
128 debug_struct.field("alternate", &self.alternate);
129 debug_struct.field("dry_run_spec", &self.dry_run_spec);
130 debug_struct.field("etag", &self.etag);
131 if !self._unknown_fields.is_empty() {
132 debug_struct.field("_unknown_fields", &self._unknown_fields);
133 }
134 debug_struct.finish()
135 }
136}
137
138impl std::fmt::Debug for super::AlternatePolicySpec {
139 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
140 let mut debug_struct = f.debug_struct("AlternatePolicySpec");
141 debug_struct.field("launch", &self.launch);
142 debug_struct.field("spec", &self.spec);
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::PolicySpec {
151 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
152 let mut debug_struct = f.debug_struct("PolicySpec");
153 debug_struct.field("etag", &self.etag);
154 debug_struct.field("update_time", &self.update_time);
155 debug_struct.field("rules", &self.rules);
156 debug_struct.field("inherit_from_parent", &self.inherit_from_parent);
157 debug_struct.field("reset", &self.reset);
158 if !self._unknown_fields.is_empty() {
159 debug_struct.field("_unknown_fields", &self._unknown_fields);
160 }
161 debug_struct.finish()
162 }
163}
164
165impl std::fmt::Debug for super::policy_spec::PolicyRule {
166 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
167 let mut debug_struct = f.debug_struct("PolicyRule");
168 debug_struct.field("condition", &self.condition);
169 debug_struct.field("parameters", &self.parameters);
170 debug_struct.field("kind", &self.kind);
171 if !self._unknown_fields.is_empty() {
172 debug_struct.field("_unknown_fields", &self._unknown_fields);
173 }
174 debug_struct.finish()
175 }
176}
177
178impl std::fmt::Debug for super::policy_spec::policy_rule::StringValues {
179 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
180 let mut debug_struct = f.debug_struct("StringValues");
181 debug_struct.field("allowed_values", &self.allowed_values);
182 debug_struct.field("denied_values", &self.denied_values);
183 if !self._unknown_fields.is_empty() {
184 debug_struct.field("_unknown_fields", &self._unknown_fields);
185 }
186 debug_struct.finish()
187 }
188}
189
190impl std::fmt::Debug for super::ListConstraintsRequest {
191 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
192 let mut debug_struct = f.debug_struct("ListConstraintsRequest");
193 debug_struct.field("parent", &self.parent);
194 debug_struct.field("page_size", &self.page_size);
195 debug_struct.field("page_token", &self.page_token);
196 if !self._unknown_fields.is_empty() {
197 debug_struct.field("_unknown_fields", &self._unknown_fields);
198 }
199 debug_struct.finish()
200 }
201}
202
203impl std::fmt::Debug for super::ListConstraintsResponse {
204 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
205 let mut debug_struct = f.debug_struct("ListConstraintsResponse");
206 debug_struct.field("constraints", &self.constraints);
207 debug_struct.field("next_page_token", &self.next_page_token);
208 if !self._unknown_fields.is_empty() {
209 debug_struct.field("_unknown_fields", &self._unknown_fields);
210 }
211 debug_struct.finish()
212 }
213}
214
215impl std::fmt::Debug for super::ListPoliciesRequest {
216 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
217 let mut debug_struct = f.debug_struct("ListPoliciesRequest");
218 debug_struct.field("parent", &self.parent);
219 debug_struct.field("page_size", &self.page_size);
220 debug_struct.field("page_token", &self.page_token);
221 if !self._unknown_fields.is_empty() {
222 debug_struct.field("_unknown_fields", &self._unknown_fields);
223 }
224 debug_struct.finish()
225 }
226}
227
228impl std::fmt::Debug for super::ListPoliciesResponse {
229 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
230 let mut debug_struct = f.debug_struct("ListPoliciesResponse");
231 debug_struct.field("policies", &self.policies);
232 debug_struct.field("next_page_token", &self.next_page_token);
233 if !self._unknown_fields.is_empty() {
234 debug_struct.field("_unknown_fields", &self._unknown_fields);
235 }
236 debug_struct.finish()
237 }
238}
239
240impl std::fmt::Debug for super::GetPolicyRequest {
241 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
242 let mut debug_struct = f.debug_struct("GetPolicyRequest");
243 debug_struct.field("name", &self.name);
244 if !self._unknown_fields.is_empty() {
245 debug_struct.field("_unknown_fields", &self._unknown_fields);
246 }
247 debug_struct.finish()
248 }
249}
250
251impl std::fmt::Debug for super::GetEffectivePolicyRequest {
252 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
253 let mut debug_struct = f.debug_struct("GetEffectivePolicyRequest");
254 debug_struct.field("name", &self.name);
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::CreatePolicyRequest {
263 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
264 let mut debug_struct = f.debug_struct("CreatePolicyRequest");
265 debug_struct.field("parent", &self.parent);
266 debug_struct.field("policy", &self.policy);
267 if !self._unknown_fields.is_empty() {
268 debug_struct.field("_unknown_fields", &self._unknown_fields);
269 }
270 debug_struct.finish()
271 }
272}
273
274impl std::fmt::Debug for super::UpdatePolicyRequest {
275 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
276 let mut debug_struct = f.debug_struct("UpdatePolicyRequest");
277 debug_struct.field("policy", &self.policy);
278 debug_struct.field("update_mask", &self.update_mask);
279 if !self._unknown_fields.is_empty() {
280 debug_struct.field("_unknown_fields", &self._unknown_fields);
281 }
282 debug_struct.finish()
283 }
284}
285
286impl std::fmt::Debug for super::DeletePolicyRequest {
287 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
288 let mut debug_struct = f.debug_struct("DeletePolicyRequest");
289 debug_struct.field("name", &self.name);
290 debug_struct.field("etag", &self.etag);
291 if !self._unknown_fields.is_empty() {
292 debug_struct.field("_unknown_fields", &self._unknown_fields);
293 }
294 debug_struct.finish()
295 }
296}
297
298impl std::fmt::Debug for super::CreateCustomConstraintRequest {
299 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
300 let mut debug_struct = f.debug_struct("CreateCustomConstraintRequest");
301 debug_struct.field("parent", &self.parent);
302 debug_struct.field("custom_constraint", &self.custom_constraint);
303 if !self._unknown_fields.is_empty() {
304 debug_struct.field("_unknown_fields", &self._unknown_fields);
305 }
306 debug_struct.finish()
307 }
308}
309
310impl std::fmt::Debug for super::GetCustomConstraintRequest {
311 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
312 let mut debug_struct = f.debug_struct("GetCustomConstraintRequest");
313 debug_struct.field("name", &self.name);
314 if !self._unknown_fields.is_empty() {
315 debug_struct.field("_unknown_fields", &self._unknown_fields);
316 }
317 debug_struct.finish()
318 }
319}
320
321impl std::fmt::Debug for super::ListCustomConstraintsRequest {
322 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
323 let mut debug_struct = f.debug_struct("ListCustomConstraintsRequest");
324 debug_struct.field("parent", &self.parent);
325 debug_struct.field("page_size", &self.page_size);
326 debug_struct.field("page_token", &self.page_token);
327 if !self._unknown_fields.is_empty() {
328 debug_struct.field("_unknown_fields", &self._unknown_fields);
329 }
330 debug_struct.finish()
331 }
332}
333
334impl std::fmt::Debug for super::ListCustomConstraintsResponse {
335 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
336 let mut debug_struct = f.debug_struct("ListCustomConstraintsResponse");
337 debug_struct.field("custom_constraints", &self.custom_constraints);
338 debug_struct.field("next_page_token", &self.next_page_token);
339 if !self._unknown_fields.is_empty() {
340 debug_struct.field("_unknown_fields", &self._unknown_fields);
341 }
342 debug_struct.finish()
343 }
344}
345
346impl std::fmt::Debug for super::UpdateCustomConstraintRequest {
347 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
348 let mut debug_struct = f.debug_struct("UpdateCustomConstraintRequest");
349 debug_struct.field("custom_constraint", &self.custom_constraint);
350 if !self._unknown_fields.is_empty() {
351 debug_struct.field("_unknown_fields", &self._unknown_fields);
352 }
353 debug_struct.finish()
354 }
355}
356
357impl std::fmt::Debug for super::DeleteCustomConstraintRequest {
358 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
359 let mut debug_struct = f.debug_struct("DeleteCustomConstraintRequest");
360 debug_struct.field("name", &self.name);
361 if !self._unknown_fields.is_empty() {
362 debug_struct.field("_unknown_fields", &self._unknown_fields);
363 }
364 debug_struct.finish()
365 }
366}