google_cloud_bigquery_connection_v1/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::CreateConnectionRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("CreateConnectionRequest");
23        debug_struct.field("parent", &self.parent);
24        debug_struct.field("connection_id", &self.connection_id);
25        debug_struct.field("connection", &self.connection);
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::GetConnectionRequest {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("GetConnectionRequest");
36        debug_struct.field("name", &self.name);
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::ListConnectionsRequest {
45    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
46        let mut debug_struct = f.debug_struct("ListConnectionsRequest");
47        debug_struct.field("parent", &self.parent);
48        debug_struct.field("page_size", &self.page_size);
49        debug_struct.field("page_token", &self.page_token);
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::ListConnectionsResponse {
58    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
59        let mut debug_struct = f.debug_struct("ListConnectionsResponse");
60        debug_struct.field("next_page_token", &self.next_page_token);
61        debug_struct.field("connections", &self.connections);
62        if !self._unknown_fields.is_empty() {
63            debug_struct.field("_unknown_fields", &self._unknown_fields);
64        }
65        debug_struct.finish()
66    }
67}
68
69impl std::fmt::Debug for super::UpdateConnectionRequest {
70    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
71        let mut debug_struct = f.debug_struct("UpdateConnectionRequest");
72        debug_struct.field("name", &self.name);
73        debug_struct.field("connection", &self.connection);
74        debug_struct.field("update_mask", &self.update_mask);
75        if !self._unknown_fields.is_empty() {
76            debug_struct.field("_unknown_fields", &self._unknown_fields);
77        }
78        debug_struct.finish()
79    }
80}
81
82impl std::fmt::Debug for super::DeleteConnectionRequest {
83    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
84        let mut debug_struct = f.debug_struct("DeleteConnectionRequest");
85        debug_struct.field("name", &self.name);
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::Connection {
94    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
95        let mut debug_struct = f.debug_struct("Connection");
96        debug_struct.field("name", &self.name);
97        debug_struct.field("friendly_name", &self.friendly_name);
98        debug_struct.field("description", &self.description);
99        debug_struct.field("creation_time", &self.creation_time);
100        debug_struct.field("last_modified_time", &self.last_modified_time);
101        debug_struct.field("has_credential", &self.has_credential);
102        debug_struct.field("properties", &self.properties);
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::CloudSqlProperties {
111    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
112        let mut debug_struct = f.debug_struct("CloudSqlProperties");
113        debug_struct.field("instance_id", &self.instance_id);
114        debug_struct.field("database", &self.database);
115        debug_struct.field("r#type", &self.r#type);
116        debug_struct.field("credential", &self.credential);
117        debug_struct.field("service_account_id", &self.service_account_id);
118        if !self._unknown_fields.is_empty() {
119            debug_struct.field("_unknown_fields", &self._unknown_fields);
120        }
121        debug_struct.finish()
122    }
123}
124
125impl std::fmt::Debug for super::CloudSqlCredential {
126    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
127        let mut debug_struct = f.debug_struct("CloudSqlCredential");
128        debug_struct.field("username", &self.username);
129        debug_struct.field("password", &self.password);
130        if !self._unknown_fields.is_empty() {
131            debug_struct.field("_unknown_fields", &self._unknown_fields);
132        }
133        debug_struct.finish()
134    }
135}
136
137impl std::fmt::Debug for super::CloudSpannerProperties {
138    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
139        let mut debug_struct = f.debug_struct("CloudSpannerProperties");
140        debug_struct.field("database", &self.database);
141        debug_struct.field("use_parallelism", &self.use_parallelism);
142        debug_struct.field("max_parallelism", &self.max_parallelism);
143        debug_struct.field("use_serverless_analytics", &self.use_serverless_analytics);
144        debug_struct.field("use_data_boost", &self.use_data_boost);
145        debug_struct.field("database_role", &self.database_role);
146        if !self._unknown_fields.is_empty() {
147            debug_struct.field("_unknown_fields", &self._unknown_fields);
148        }
149        debug_struct.finish()
150    }
151}
152
153impl std::fmt::Debug for super::AwsProperties {
154    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
155        let mut debug_struct = f.debug_struct("AwsProperties");
156        debug_struct.field("authentication_method", &self.authentication_method);
157        if !self._unknown_fields.is_empty() {
158            debug_struct.field("_unknown_fields", &self._unknown_fields);
159        }
160        debug_struct.finish()
161    }
162}
163
164impl std::fmt::Debug for super::AwsCrossAccountRole {
165    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
166        let mut debug_struct = f.debug_struct("AwsCrossAccountRole");
167        debug_struct.field("iam_role_id", &self.iam_role_id);
168        debug_struct.field("iam_user_id", &self.iam_user_id);
169        debug_struct.field("external_id", &self.external_id);
170        if !self._unknown_fields.is_empty() {
171            debug_struct.field("_unknown_fields", &self._unknown_fields);
172        }
173        debug_struct.finish()
174    }
175}
176
177impl std::fmt::Debug for super::AwsAccessRole {
178    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
179        let mut debug_struct = f.debug_struct("AwsAccessRole");
180        debug_struct.field("iam_role_id", &self.iam_role_id);
181        debug_struct.field("identity", &self.identity);
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::AzureProperties {
190    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
191        let mut debug_struct = f.debug_struct("AzureProperties");
192        debug_struct.field("application", &self.application);
193        debug_struct.field("client_id", &self.client_id);
194        debug_struct.field("object_id", &self.object_id);
195        debug_struct.field("customer_tenant_id", &self.customer_tenant_id);
196        debug_struct.field("redirect_uri", &self.redirect_uri);
197        debug_struct.field(
198            "federated_application_client_id",
199            &self.federated_application_client_id,
200        );
201        debug_struct.field("identity", &self.identity);
202        if !self._unknown_fields.is_empty() {
203            debug_struct.field("_unknown_fields", &self._unknown_fields);
204        }
205        debug_struct.finish()
206    }
207}
208
209impl std::fmt::Debug for super::CloudResourceProperties {
210    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
211        let mut debug_struct = f.debug_struct("CloudResourceProperties");
212        debug_struct.field("service_account_id", &self.service_account_id);
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::MetastoreServiceConfig {
221    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
222        let mut debug_struct = f.debug_struct("MetastoreServiceConfig");
223        debug_struct.field("metastore_service", &self.metastore_service);
224        if !self._unknown_fields.is_empty() {
225            debug_struct.field("_unknown_fields", &self._unknown_fields);
226        }
227        debug_struct.finish()
228    }
229}
230
231impl std::fmt::Debug for super::SparkHistoryServerConfig {
232    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
233        let mut debug_struct = f.debug_struct("SparkHistoryServerConfig");
234        debug_struct.field("dataproc_cluster", &self.dataproc_cluster);
235        if !self._unknown_fields.is_empty() {
236            debug_struct.field("_unknown_fields", &self._unknown_fields);
237        }
238        debug_struct.finish()
239    }
240}
241
242impl std::fmt::Debug for super::SparkProperties {
243    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
244        let mut debug_struct = f.debug_struct("SparkProperties");
245        debug_struct.field("service_account_id", &self.service_account_id);
246        debug_struct.field("metastore_service_config", &self.metastore_service_config);
247        debug_struct.field(
248            "spark_history_server_config",
249            &self.spark_history_server_config,
250        );
251        if !self._unknown_fields.is_empty() {
252            debug_struct.field("_unknown_fields", &self._unknown_fields);
253        }
254        debug_struct.finish()
255    }
256}
257
258impl std::fmt::Debug for super::SalesforceDataCloudProperties {
259    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
260        let mut debug_struct = f.debug_struct("SalesforceDataCloudProperties");
261        debug_struct.field("instance_uri", &self.instance_uri);
262        debug_struct.field("identity", &self.identity);
263        debug_struct.field("tenant_id", &self.tenant_id);
264        if !self._unknown_fields.is_empty() {
265            debug_struct.field("_unknown_fields", &self._unknown_fields);
266        }
267        debug_struct.finish()
268    }
269}