Debian Codegraph @

docs/dyn/connectors_v2.projects.locations.connections.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="connectors_v2.html">Connectors API</a> . <a href="connectors_v2.projects.html">projects</a> . <a href="connectors_v2.projects.locations.html">locations</a> . <a href="connectors_v2.projects.locations.connections.html">connections</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="connectors_v2.projects.locations.connections.actions.html">actions()</a></code>
79 </p>
80 <p class="firstline">Returns the actions Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="connectors_v2.projects.locations.connections.entityTypes.html">entityTypes()</a></code>
84 </p>
85 <p class="firstline">Returns the entityTypes Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="connectors_v2.projects.locations.connections.resources.html">resources()</a></code>
89 </p>
90 <p class="firstline">Returns the resources Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="connectors_v2.projects.locations.connections.tools.html">tools()</a></code>
94 </p>
95 <p class="firstline">Returns the tools Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="#checkReadiness">checkReadiness(name, x__xgafv=None)</a></code></p>
99 <p class="firstline">Reports readiness status of the connector. Similar logic to GetStatus but modified for kubernetes health check to understand.</p>
100 <p class="toc_element">
101 <code><a href="#checkStatus">checkStatus(name, executionConfig_headers=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Reports the status of the connection. Note that when the connection is in a state that is not ACTIVE, the implementation of this RPC method must return a Status with the corresponding State instead of returning a gRPC status code that is not "OK", which indicates that ConnectionStatus itself, not the connection, failed.</p>
103 <p class="toc_element">
104 <code><a href="#close">close()</a></code></p>
105 <p class="firstline">Close httplib2 connections.</p>
106 <p class="toc_element">
107 <code><a href="#exchangeAuthCode">exchangeAuthCode(name, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">ExchangeAuthCode exchanges the OAuth authorization code (and other necessary data) for an access token (and associated credentials).</p>
109 <p class="toc_element">
110 <code><a href="#executeHttpRequest">executeHttpRequest(name, body=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Executes a generic HTTP request. This supports all payload formats including REST/JSON, GraphQL, XML, SOAP, and Multipart by passing the rendered payload as raw bytes.</p>
112 <p class="toc_element">
113 <code><a href="#executeSqlQuery">executeSqlQuery(connection, body=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Executes a SQL statement specified in the body of the request. An example of this SQL statement in the case of Salesforce connector would be 'select * from Account a, Order o where a.Id = o.AccountId'.</p>
115 <p class="toc_element">
116 <code><a href="#generateConnectionToolspecOverride">generateConnectionToolspecOverride(name, body=None, x__xgafv=None)</a></code></p>
117 <p class="firstline">Generate toolspec override for the given list of toolNames.</p>
118 <p class="toc_element">
119 <code><a href="#listCustomToolNames">listCustomToolNames(name, x__xgafv=None)</a></code></p>
120 <p class="firstline">Lists custom tool names.</p>
121 <p class="toc_element">
122 <code><a href="#refreshAccessToken">refreshAccessToken(name, body=None, x__xgafv=None)</a></code></p>
123 <p class="firstline">RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials).</p>
124 <p class="toc_element">
125 <code><a href="#tools_next">tools_next()</a></code></p>
126 <p class="firstline">Retrieves the next page of results.</p>
127 <h3>Method Details</h3>
128 <div class="method">
129 <code class="details" id="checkReadiness">checkReadiness(name, x__xgafv=None)</code>
130 <pre>Reports readiness status of the connector. Similar logic to GetStatus but modified for kubernetes health check to understand.
131
132 Args:
133 name: string, A parameter (required)
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138
139 Returns:
140 An object of the form:
141
142 { # Response containing status of the connector for readiness prober.
143 &quot;status&quot;: &quot;A String&quot;,
144 }</pre>
145 </div>
146
147 <div class="method">
148 <code class="details" id="checkStatus">checkStatus(name, executionConfig_headers=None, x__xgafv=None)</code>
149 <pre>Reports the status of the connection. Note that when the connection is in a state that is not ACTIVE, the implementation of this RPC method must return a Status with the corresponding State instead of returning a gRPC status code that is not &quot;OK&quot;, which indicates that ConnectionStatus itself, not the connection, failed.
150
151 Args:
152 name: string, A parameter (required)
153 executionConfig_headers: string, headers to be used for the request. For example: headers:&#x27;{&quot;x-integration-connectors-managed-connection-id&quot;:&quot;conn-id&quot;,&quot;x-integration-connectors-runtime-config&quot;:&quot;runtime-cfg&quot;}&#x27;
154 x__xgafv: string, V1 error format.
155 Allowed values
156 1 - v1 error format
157 2 - v2 error format
158
159 Returns:
160 An object of the form:
161
162 { # The status of the connector.
163 &quot;description&quot;: &quot;A String&quot;, # When the connector is not in ACTIVE state, the description must be populated to specify the reason why it&#x27;s not in ACTIVE state.
164 &quot;metadata&quot;: { # Metadata like service latency, etc.
165 &quot;a_key&quot;: {
166 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
167 },
168 },
169 &quot;state&quot;: &quot;A String&quot;, # State of the connector.
170 }</pre>
171 </div>
172
173 <div class="method">
174 <code class="details" id="close">close()</code>
175 <pre>Close httplib2 connections.</pre>
176 </div>
177
178 <div class="method">
179 <code class="details" id="exchangeAuthCode">exchangeAuthCode(name, body=None, x__xgafv=None)</code>
180 <pre>ExchangeAuthCode exchanges the OAuth authorization code (and other necessary data) for an access token (and associated credentials).
181
182 Args:
183 name: string, A parameter (required)
184 body: object, The request body.
185 The object takes the form of:
186
187 { # ExchangeAuthCodeRequest currently includes the auth code data.
188 &quot;authCodeData&quot;: { # AuthCodeData contains the data the runtime plane will give the connector backend in exchange for access and refresh tokens. # Optional. AuthCodeData contains the data the runtime requires to exchange for access and refresh tokens. If the data is not provided, the runtime will read the data from the secret manager.
189 &quot;authCode&quot;: &quot;A String&quot;, # OAuth authorization code.
190 &quot;pkceVerifier&quot;: &quot;A String&quot;, # OAuth PKCE verifier, needed if PKCE is enabled for this particular connection.
191 &quot;redirectUri&quot;: &quot;A String&quot;, # OAuth redirect URI passed in during the auth code flow, required by some OAuth backends.
192 &quot;scopes&quot;: [ # Scopes the connection will request when the user performs the auth code flow.
193 &quot;A String&quot;,
194 ],
195 },
196 &quot;executionConfig&quot;: { # ExecutionConfig contains the configuration for the execution of the request.
197 &quot;headers&quot;: &quot;A String&quot;, # headers to be used for the request. For example: headers:&#x27;{&quot;x-integration-connectors-managed-connection-id&quot;:&quot;conn-id&quot;,&quot;x-integration-connectors-runtime-config&quot;:&quot;runtime-cfg&quot;}&#x27;
198 },
199 &quot;oauth2Config&quot;: { # OAuth2Config contains the OAuth2 config for the connection.
200 &quot;authUri&quot;: &quot;A String&quot;, # Authorization Server URL/Token Endpoint for Authorization Code Flow
201 &quot;clientId&quot;: &quot;A String&quot;, # Client ID for the OAuth2 flow.
202 &quot;clientSecret&quot;: &quot;A String&quot;, # Client secret for the OAuth2 flow.
203 },
204 }
205
206 x__xgafv: string, V1 error format.
207 Allowed values
208 1 - v1 error format
209 2 - v2 error format
210
211 Returns:
212 An object of the form:
213
214 { # ExchangeAuthCodeResponse includes the returned access token and its associated credentials.
215 &quot;accessCredentials&quot;: { # AccessCredentials includes the OAuth access token, and the other fields returned along with it.
216 &quot;accessToken&quot;: &quot;A String&quot;, # OAuth access token.
217 &quot;expiresIn&quot;: &quot;A String&quot;, # Duration till the access token expires.
218 &quot;refreshToken&quot;: &quot;A String&quot;, # OAuth refresh token.
219 },
220 &quot;metadata&quot;: { # Metadata like service latency, etc.
221 &quot;a_key&quot;: {
222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
223 },
224 },
225 }</pre>
226 </div>
227
228 <div class="method">
229 <code class="details" id="executeHttpRequest">executeHttpRequest(name, body=None, x__xgafv=None)</code>
230 <pre>Executes a generic HTTP request. This supports all payload formats including REST/JSON, GraphQL, XML, SOAP, and Multipart by passing the rendered payload as raw bytes.
231
232 Args:
233 name: string, Required. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} (required)
234 body: object, The request body.
235 The object takes the form of:
236
237 {
238 &quot;headers&quot;: [ # HTTP headers to send with the request (e.g., Content-Type: application/json). Order is preserved and duplicate keys are allowed.
239 { # A single HTTP header. Keys are case-insensitive. Multiple headers with the same key may be present.
240 &quot;key&quot;: &quot;A String&quot;, # The header name.
241 &quot;value&quot;: &quot;A String&quot;, # The header value.
242 },
243 ],
244 &quot;httpMethod&quot;: &quot;A String&quot;, # Required. The HTTP method to use for the request.
245 &quot;rawBody&quot;: &quot;A String&quot;, # Raw byte payload. Used for all pre-serialized formats including JSON, XML, GraphQL, and Multipart.
246 &quot;url&quot;: &quot;A String&quot;, # Required. The fully resolved absolute target URL. Callers must pre-encode any query parameters.
247 }
248
249 x__xgafv: string, V1 error format.
250 Allowed values
251 1 - v1 error format
252 2 - v2 error format
253
254 Returns:
255 An object of the form:
256
257 {
258 &quot;body&quot;: &quot;A String&quot;, # The raw response body.
259 &quot;headers&quot;: [ # HTTP headers received in the response. Order is preserved and duplicate keys are allowed (e.g., multiple Set-Cookie headers).
260 { # A single HTTP header. Keys are case-insensitive. Multiple headers with the same key may be present.
261 &quot;key&quot;: &quot;A String&quot;, # The header name.
262 &quot;value&quot;: &quot;A String&quot;, # The header value.
263 },
264 ],
265 &quot;reason&quot;: &quot;A String&quot;, # The HTTP status reason phrase received from the backend (e.g., &quot;Not Found&quot;). May be empty if the backend did not provide one.
266 &quot;statusCode&quot;: 42, # The HTTP status code received from the backend.
267 }</pre>
268 </div>
269
270 <div class="method">
271 <code class="details" id="executeSqlQuery">executeSqlQuery(connection, body=None, x__xgafv=None)</code>
272 <pre>Executes a SQL statement specified in the body of the request. An example of this SQL statement in the case of Salesforce connector would be &#x27;select * from Account a, Order o where a.Id = o.AccountId&#x27;.
273
274 Args:
275 connection: string, Required. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} (required)
276 body: object, The request body.
277 The object takes the form of:
278
279 { # An execute sql query request containing the query and the connection to execute it on.
280 &quot;query&quot;: { # A wrapper around the SQL query statement. This is needed so that the JSON representation of ExecuteSqlQueryRequest has the following format: `{&quot;query&quot;:&quot;select *&quot;}`. # Required. SQL statement passed by clients like Integration Platform, the query is passed as-is to the driver used for interfacing with external systems.
281 &quot;maxRows&quot;: &quot;A String&quot;, # Sets the limit for the maximum number of rows returned after the query execution.
282 &quot;query&quot;: &quot;A String&quot;, # Required. Sql query to execute.
283 &quot;queryParameters&quot;: [ # In the struct, the value corresponds to the value of query parameter and date type corresponds to the date type of the query parameter.
284 { # Query parameter definition
285 &quot;dataType&quot;: &quot;A String&quot;,
286 &quot;value&quot;: &quot;&quot;,
287 },
288 ],
289 &quot;timeout&quot;: &quot;A String&quot;, # Sets the number of seconds the driver will wait for a query to execute.
290 },
291 }
292
293 x__xgafv: string, V1 error format.
294 Allowed values
295 1 - v1 error format
296 2 - v2 error format
297
298 Returns:
299 An object of the form:
300
301 { # A response returned by the connection after executing the sql query.
302 &quot;results&quot;: [ # In the case of successful execution of the query the response contains results returned by the external system. For example, the result rows of the query are contained in the &#x27;results&#x27; Struct list - &quot;results&quot;: [ { &quot;field1&quot;: &quot;val1&quot;, &quot;field2&quot;: &quot;val2&quot;,.. },.. ] Each Struct row can contain fields any type of like nested Structs or lists.
303 {
304 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
305 },
306 ],
307 }</pre>
308 </div>
309
310 <div class="method">
311 <code class="details" id="generateConnectionToolspecOverride">generateConnectionToolspecOverride(name, body=None, x__xgafv=None)</code>
312 <pre>Generate toolspec override for the given list of toolNames.
313
314 Args:
315 name: string, Required. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} (required)
316 body: object, The request body.
317 The object takes the form of:
318
319 {
320 &quot;toolNames&quot;: [ # list of tools to be generated.
321 {
322 &quot;entityName&quot;: &quot;A String&quot;, # Entity name for which the tool was generated.
323 &quot;name&quot;: &quot;A String&quot;, # Tool name that was generated in the list tools call.
324 &quot;operation&quot;: &quot;A String&quot;, # Operation for which the tool was generated.
325 },
326 ],
327 }
328
329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
333
334 Returns:
335 An object of the form:
336
337 {
338 &quot;toolSpec&quot;: { # tool spec that has tool_defitions array containing the tools for all sted tool_names.
339 &quot;toolDefinitions&quot;: [ # List of tool definitions.
340 {
341 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
342 },
343 ],
344 &quot;toolSpecVersion&quot;: &quot;A String&quot;, # Version of the tool spec. Format: providerId/connectorId/versionId/toolSpecId
345 },
346 }</pre>
347 </div>
348
349 <div class="method">
350 <code class="details" id="listCustomToolNames">listCustomToolNames(name, x__xgafv=None)</code>
351 <pre>Lists custom tool names.
352
353 Args:
354 name: string, Required. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} (required)
355 x__xgafv: string, V1 error format.
356 Allowed values
357 1 - v1 error format
358 2 - v2 error format
359
360 Returns:
361 An object of the form:
362
363 {
364 &quot;toolNames&quot;: [ # List of custom tools.
365 {
366 &quot;entityName&quot;: &quot;A String&quot;, # Entity name for which the tool was generated.
367 &quot;name&quot;: &quot;A String&quot;, # Tool name that was generated in the list tools call.
368 &quot;operation&quot;: &quot;A String&quot;, # Operation for which the tool was generated.
369 },
370 ],
371 }</pre>
372 </div>
373
374 <div class="method">
375 <code class="details" id="refreshAccessToken">refreshAccessToken(name, body=None, x__xgafv=None)</code>
376 <pre>RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials).
377
378 Args:
379 name: string, A parameter (required)
380 body: object, The request body.
381 The object takes the form of:
382
383 { # RefreshAccessTokenRequest includes the refresh token.
384 &quot;executionConfig&quot;: { # ExecutionConfig contains the configuration for the execution of the request.
385 &quot;headers&quot;: &quot;A String&quot;, # headers to be used for the request. For example: headers:&#x27;{&quot;x-integration-connectors-managed-connection-id&quot;:&quot;conn-id&quot;,&quot;x-integration-connectors-runtime-config&quot;:&quot;runtime-cfg&quot;}&#x27;
386 },
387 &quot;oauth2Config&quot;: { # OAuth2Config contains the OAuth2 config for the connection.
388 &quot;authUri&quot;: &quot;A String&quot;, # Authorization Server URL/Token Endpoint for Authorization Code Flow
389 &quot;clientId&quot;: &quot;A String&quot;, # Client ID for the OAuth2 flow.
390 &quot;clientSecret&quot;: &quot;A String&quot;, # Client secret for the OAuth2 flow.
391 },
392 &quot;refreshToken&quot;: &quot;A String&quot;, # Optional. Refresh Token String. If the Refresh Token is not provided, the runtime will read the data from the secret manager.
393 }
394
395 x__xgafv: string, V1 error format.
396 Allowed values
397 1 - v1 error format
398 2 - v2 error format
399
400 Returns:
401 An object of the form:
402
403 { # RefreshAccessTokenResponse includes the returned access token and its associated credentials.
404 &quot;accessCredentials&quot;: { # AccessCredentials includes the OAuth access token, and the other fields returned along with it.
405 &quot;accessToken&quot;: &quot;A String&quot;, # OAuth access token.
406 &quot;expiresIn&quot;: &quot;A String&quot;, # Duration till the access token expires.
407 &quot;refreshToken&quot;: &quot;A String&quot;, # OAuth refresh token.
408 },
409 &quot;metadata&quot;: { # Metadata like service latency, etc.
410 &quot;a_key&quot;: {
411 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
412 },
413 },
414 }</pre>
415 </div>
416
417 <div class="method">
418 <code class="details" id="tools_next">tools_next()</code>
419 <pre>Retrieves the next page of results.
420
421 Args:
422 previous_request: The request for the previous page. (required)
423 previous_response: The response from the request for the previous page. (required)
424
425 Returns:
426 A request object that you can call &#x27;execute()&#x27; on to request the next
427 page. Returns None if there are no more items in the collection.
428 </pre>
429 </div>
430
431 </body></html>