google_cloud_functions_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::Function {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Function");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("description", &self.description);
25        debug_struct.field("build_config", &self.build_config);
26        debug_struct.field("service_config", &self.service_config);
27        debug_struct.field("event_trigger", &self.event_trigger);
28        debug_struct.field("state", &self.state);
29        debug_struct.field("update_time", &self.update_time);
30        debug_struct.field("labels", &self.labels);
31        debug_struct.field("state_messages", &self.state_messages);
32        debug_struct.field("environment", &self.environment);
33        debug_struct.field("url", &self.url);
34        debug_struct.field("kms_key_name", &self.kms_key_name);
35        debug_struct.field("satisfies_pzs", &self.satisfies_pzs);
36        debug_struct.field("create_time", &self.create_time);
37        if !self._unknown_fields.is_empty() {
38            debug_struct.field("_unknown_fields", &self._unknown_fields);
39        }
40        debug_struct.finish()
41    }
42}
43
44impl std::fmt::Debug for super::StateMessage {
45    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
46        let mut debug_struct = f.debug_struct("StateMessage");
47        debug_struct.field("severity", &self.severity);
48        debug_struct.field("r#type", &self.r#type);
49        debug_struct.field("message", &self.message);
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::StorageSource {
58    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
59        let mut debug_struct = f.debug_struct("StorageSource");
60        debug_struct.field("bucket", &self.bucket);
61        debug_struct.field("object", &self.object);
62        debug_struct.field("generation", &self.generation);
63        debug_struct.field("source_upload_url", &self.source_upload_url);
64        if !self._unknown_fields.is_empty() {
65            debug_struct.field("_unknown_fields", &self._unknown_fields);
66        }
67        debug_struct.finish()
68    }
69}
70
71impl std::fmt::Debug for super::RepoSource {
72    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
73        let mut debug_struct = f.debug_struct("RepoSource");
74        debug_struct.field("project_id", &self.project_id);
75        debug_struct.field("repo_name", &self.repo_name);
76        debug_struct.field("dir", &self.dir);
77        debug_struct.field("invert_regex", &self.invert_regex);
78        debug_struct.field("revision", &self.revision);
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::Source {
87    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
88        let mut debug_struct = f.debug_struct("Source");
89        debug_struct.field("source", &self.source);
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::SourceProvenance {
98    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
99        let mut debug_struct = f.debug_struct("SourceProvenance");
100        debug_struct.field("resolved_storage_source", &self.resolved_storage_source);
101        debug_struct.field("resolved_repo_source", &self.resolved_repo_source);
102        debug_struct.field("git_uri", &self.git_uri);
103        if !self._unknown_fields.is_empty() {
104            debug_struct.field("_unknown_fields", &self._unknown_fields);
105        }
106        debug_struct.finish()
107    }
108}
109
110impl std::fmt::Debug for super::BuildConfig {
111    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
112        let mut debug_struct = f.debug_struct("BuildConfig");
113        debug_struct.field("build", &self.build);
114        debug_struct.field("runtime", &self.runtime);
115        debug_struct.field("entry_point", &self.entry_point);
116        debug_struct.field("source", &self.source);
117        debug_struct.field("source_provenance", &self.source_provenance);
118        debug_struct.field("worker_pool", &self.worker_pool);
119        debug_struct.field("environment_variables", &self.environment_variables);
120        debug_struct.field("docker_registry", &self.docker_registry);
121        debug_struct.field("docker_repository", &self.docker_repository);
122        debug_struct.field("service_account", &self.service_account);
123        debug_struct.field("runtime_update_policy", &self.runtime_update_policy);
124        if !self._unknown_fields.is_empty() {
125            debug_struct.field("_unknown_fields", &self._unknown_fields);
126        }
127        debug_struct.finish()
128    }
129}
130
131impl std::fmt::Debug for super::ServiceConfig {
132    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
133        let mut debug_struct = f.debug_struct("ServiceConfig");
134        debug_struct.field("service", &self.service);
135        debug_struct.field("timeout_seconds", &self.timeout_seconds);
136        debug_struct.field("available_memory", &self.available_memory);
137        debug_struct.field("available_cpu", &self.available_cpu);
138        debug_struct.field("environment_variables", &self.environment_variables);
139        debug_struct.field("max_instance_count", &self.max_instance_count);
140        debug_struct.field("min_instance_count", &self.min_instance_count);
141        debug_struct.field("vpc_connector", &self.vpc_connector);
142        debug_struct.field(
143            "vpc_connector_egress_settings",
144            &self.vpc_connector_egress_settings,
145        );
146        debug_struct.field("ingress_settings", &self.ingress_settings);
147        debug_struct.field("uri", &self.uri);
148        debug_struct.field("service_account_email", &self.service_account_email);
149        debug_struct.field(
150            "all_traffic_on_latest_revision",
151            &self.all_traffic_on_latest_revision,
152        );
153        debug_struct.field(
154            "secret_environment_variables",
155            &self.secret_environment_variables,
156        );
157        debug_struct.field("secret_volumes", &self.secret_volumes);
158        debug_struct.field("revision", &self.revision);
159        debug_struct.field(
160            "max_instance_request_concurrency",
161            &self.max_instance_request_concurrency,
162        );
163        debug_struct.field("security_level", &self.security_level);
164        debug_struct.field(
165            "binary_authorization_policy",
166            &self.binary_authorization_policy,
167        );
168        if !self._unknown_fields.is_empty() {
169            debug_struct.field("_unknown_fields", &self._unknown_fields);
170        }
171        debug_struct.finish()
172    }
173}
174
175impl std::fmt::Debug for super::SecretEnvVar {
176    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
177        let mut debug_struct = f.debug_struct("SecretEnvVar");
178        debug_struct.field("key", &self.key);
179        debug_struct.field("project_id", &self.project_id);
180        debug_struct.field("secret", &self.secret);
181        debug_struct.field("version", &self.version);
182        if !self._unknown_fields.is_empty() {
183            debug_struct.field("_unknown_fields", &self._unknown_fields);
184        }
185        debug_struct.finish()
186    }
187}
188
189impl std::fmt::Debug for super::SecretVolume {
190    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
191        let mut debug_struct = f.debug_struct("SecretVolume");
192        debug_struct.field("mount_path", &self.mount_path);
193        debug_struct.field("project_id", &self.project_id);
194        debug_struct.field("secret", &self.secret);
195        debug_struct.field("versions", &self.versions);
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::secret_volume::SecretVersion {
204    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
205        let mut debug_struct = f.debug_struct("SecretVersion");
206        debug_struct.field("version", &self.version);
207        debug_struct.field("path", &self.path);
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::EventTrigger {
216    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
217        let mut debug_struct = f.debug_struct("EventTrigger");
218        debug_struct.field("trigger", &self.trigger);
219        debug_struct.field("trigger_region", &self.trigger_region);
220        debug_struct.field("event_type", &self.event_type);
221        debug_struct.field("event_filters", &self.event_filters);
222        debug_struct.field("pubsub_topic", &self.pubsub_topic);
223        debug_struct.field("service_account_email", &self.service_account_email);
224        debug_struct.field("retry_policy", &self.retry_policy);
225        debug_struct.field("channel", &self.channel);
226        debug_struct.field("service", &self.service);
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::EventFilter {
235    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
236        let mut debug_struct = f.debug_struct("EventFilter");
237        debug_struct.field("attribute", &self.attribute);
238        debug_struct.field("value", &self.value);
239        debug_struct.field("operator", &self.operator);
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::GetFunctionRequest {
248    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
249        let mut debug_struct = f.debug_struct("GetFunctionRequest");
250        debug_struct.field("name", &self.name);
251        debug_struct.field("revision", &self.revision);
252        if !self._unknown_fields.is_empty() {
253            debug_struct.field("_unknown_fields", &self._unknown_fields);
254        }
255        debug_struct.finish()
256    }
257}
258
259impl std::fmt::Debug for super::ListFunctionsRequest {
260    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
261        let mut debug_struct = f.debug_struct("ListFunctionsRequest");
262        debug_struct.field("parent", &self.parent);
263        debug_struct.field("page_size", &self.page_size);
264        debug_struct.field("page_token", &self.page_token);
265        debug_struct.field("filter", &self.filter);
266        debug_struct.field("order_by", &self.order_by);
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::ListFunctionsResponse {
275    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
276        let mut debug_struct = f.debug_struct("ListFunctionsResponse");
277        debug_struct.field("functions", &self.functions);
278        debug_struct.field("next_page_token", &self.next_page_token);
279        debug_struct.field("unreachable", &self.unreachable);
280        if !self._unknown_fields.is_empty() {
281            debug_struct.field("_unknown_fields", &self._unknown_fields);
282        }
283        debug_struct.finish()
284    }
285}
286
287impl std::fmt::Debug for super::CreateFunctionRequest {
288    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
289        let mut debug_struct = f.debug_struct("CreateFunctionRequest");
290        debug_struct.field("parent", &self.parent);
291        debug_struct.field("function", &self.function);
292        debug_struct.field("function_id", &self.function_id);
293        if !self._unknown_fields.is_empty() {
294            debug_struct.field("_unknown_fields", &self._unknown_fields);
295        }
296        debug_struct.finish()
297    }
298}
299
300impl std::fmt::Debug for super::UpdateFunctionRequest {
301    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
302        let mut debug_struct = f.debug_struct("UpdateFunctionRequest");
303        debug_struct.field("function", &self.function);
304        debug_struct.field("update_mask", &self.update_mask);
305        if !self._unknown_fields.is_empty() {
306            debug_struct.field("_unknown_fields", &self._unknown_fields);
307        }
308        debug_struct.finish()
309    }
310}
311
312impl std::fmt::Debug for super::DeleteFunctionRequest {
313    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
314        let mut debug_struct = f.debug_struct("DeleteFunctionRequest");
315        debug_struct.field("name", &self.name);
316        if !self._unknown_fields.is_empty() {
317            debug_struct.field("_unknown_fields", &self._unknown_fields);
318        }
319        debug_struct.finish()
320    }
321}
322
323impl std::fmt::Debug for super::GenerateUploadUrlRequest {
324    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
325        let mut debug_struct = f.debug_struct("GenerateUploadUrlRequest");
326        debug_struct.field("parent", &self.parent);
327        debug_struct.field("kms_key_name", &self.kms_key_name);
328        debug_struct.field("environment", &self.environment);
329        if !self._unknown_fields.is_empty() {
330            debug_struct.field("_unknown_fields", &self._unknown_fields);
331        }
332        debug_struct.finish()
333    }
334}
335
336impl std::fmt::Debug for super::GenerateUploadUrlResponse {
337    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
338        let mut debug_struct = f.debug_struct("GenerateUploadUrlResponse");
339        debug_struct.field("upload_url", &self.upload_url);
340        debug_struct.field("storage_source", &self.storage_source);
341        if !self._unknown_fields.is_empty() {
342            debug_struct.field("_unknown_fields", &self._unknown_fields);
343        }
344        debug_struct.finish()
345    }
346}
347
348impl std::fmt::Debug for super::GenerateDownloadUrlRequest {
349    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
350        let mut debug_struct = f.debug_struct("GenerateDownloadUrlRequest");
351        debug_struct.field("name", &self.name);
352        if !self._unknown_fields.is_empty() {
353            debug_struct.field("_unknown_fields", &self._unknown_fields);
354        }
355        debug_struct.finish()
356    }
357}
358
359impl std::fmt::Debug for super::GenerateDownloadUrlResponse {
360    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
361        let mut debug_struct = f.debug_struct("GenerateDownloadUrlResponse");
362        debug_struct.field("download_url", &self.download_url);
363        if !self._unknown_fields.is_empty() {
364            debug_struct.field("_unknown_fields", &self._unknown_fields);
365        }
366        debug_struct.finish()
367    }
368}
369
370impl std::fmt::Debug for super::ListRuntimesRequest {
371    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
372        let mut debug_struct = f.debug_struct("ListRuntimesRequest");
373        debug_struct.field("parent", &self.parent);
374        debug_struct.field("filter", &self.filter);
375        if !self._unknown_fields.is_empty() {
376            debug_struct.field("_unknown_fields", &self._unknown_fields);
377        }
378        debug_struct.finish()
379    }
380}
381
382impl std::fmt::Debug for super::ListRuntimesResponse {
383    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
384        let mut debug_struct = f.debug_struct("ListRuntimesResponse");
385        debug_struct.field("runtimes", &self.runtimes);
386        if !self._unknown_fields.is_empty() {
387            debug_struct.field("_unknown_fields", &self._unknown_fields);
388        }
389        debug_struct.finish()
390    }
391}
392
393impl std::fmt::Debug for super::list_runtimes_response::Runtime {
394    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
395        let mut debug_struct = f.debug_struct("Runtime");
396        debug_struct.field("name", &self.name);
397        debug_struct.field("display_name", &self.display_name);
398        debug_struct.field("stage", &self.stage);
399        debug_struct.field("warnings", &self.warnings);
400        debug_struct.field("environment", &self.environment);
401        debug_struct.field("deprecation_date", &self.deprecation_date);
402        debug_struct.field("decommission_date", &self.decommission_date);
403        if !self._unknown_fields.is_empty() {
404            debug_struct.field("_unknown_fields", &self._unknown_fields);
405        }
406        debug_struct.finish()
407    }
408}
409
410impl std::fmt::Debug for super::AutomaticUpdatePolicy {
411    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
412        let mut debug_struct = f.debug_struct("AutomaticUpdatePolicy");
413        if !self._unknown_fields.is_empty() {
414            debug_struct.field("_unknown_fields", &self._unknown_fields);
415        }
416        debug_struct.finish()
417    }
418}
419
420impl std::fmt::Debug for super::OnDeployUpdatePolicy {
421    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
422        let mut debug_struct = f.debug_struct("OnDeployUpdatePolicy");
423        debug_struct.field("runtime_version", &self.runtime_version);
424        if !self._unknown_fields.is_empty() {
425            debug_struct.field("_unknown_fields", &self._unknown_fields);
426        }
427        debug_struct.finish()
428    }
429}
430
431impl std::fmt::Debug for super::OperationMetadata {
432    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
433        let mut debug_struct = f.debug_struct("OperationMetadata");
434        debug_struct.field("create_time", &self.create_time);
435        debug_struct.field("end_time", &self.end_time);
436        debug_struct.field("target", &self.target);
437        debug_struct.field("verb", &self.verb);
438        debug_struct.field("status_detail", &self.status_detail);
439        debug_struct.field("cancel_requested", &self.cancel_requested);
440        debug_struct.field("api_version", &self.api_version);
441        debug_struct.field("request_resource", &self.request_resource);
442        debug_struct.field("stages", &self.stages);
443        debug_struct.field("source_token", &self.source_token);
444        debug_struct.field("build_name", &self.build_name);
445        debug_struct.field("operation_type", &self.operation_type);
446        if !self._unknown_fields.is_empty() {
447            debug_struct.field("_unknown_fields", &self._unknown_fields);
448        }
449        debug_struct.finish()
450    }
451}
452
453impl std::fmt::Debug for super::LocationMetadata {
454    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
455        let mut debug_struct = f.debug_struct("LocationMetadata");
456        debug_struct.field("environments", &self.environments);
457        if !self._unknown_fields.is_empty() {
458            debug_struct.field("_unknown_fields", &self._unknown_fields);
459        }
460        debug_struct.finish()
461    }
462}
463
464impl std::fmt::Debug for super::Stage {
465    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
466        let mut debug_struct = f.debug_struct("Stage");
467        debug_struct.field("name", &self.name);
468        debug_struct.field("message", &self.message);
469        debug_struct.field("state", &self.state);
470        debug_struct.field("resource", &self.resource);
471        debug_struct.field("resource_uri", &self.resource_uri);
472        debug_struct.field("state_messages", &self.state_messages);
473        if !self._unknown_fields.is_empty() {
474            debug_struct.field("_unknown_fields", &self._unknown_fields);
475        }
476        debug_struct.finish()
477    }
478}