Debian Codegraph @

docs/dyn/connectors_v2.projects.locations.connections.tools.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> . <a href="connectors_v2.projects.locations.connections.tools.html">tools</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#execute">execute(name, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Executes a specific tool.</p>
83 <p class="toc_element">
84 <code><a href="#list">list(parent, executionConfig_headers=None, pageSize=None, pageToken=None, toolNames=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Lists all available tools.</p>
86 <p class="toc_element">
87 <code><a href="#list_next">list_next()</a></code></p>
88 <p class="firstline">Retrieves the next page of results.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93 </div>
94
95 <div class="method">
96 <code class="details" id="execute">execute(name, body=None, x__xgafv=None)</code>
97 <pre>Executes a specific tool.
98
99 Args:
100 name: string, Required. Resource name of the Tool. Format: projects/{project}/locations/{location}/connections/{connection}/tools/{tool} (required)
101 body: object, The request body.
102 The object takes the form of:
103
104 { # Request message for ConnectorAgentService.ExecuteTool
105 &quot;executionConfig&quot;: { # execution config for the request.
106 &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;
107 },
108 &quot;parameters&quot;: { # Input parameters for the tool.
109 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
110 },
111 &quot;toolDefinition&quot;: { # Tool definition for the tool to be executed.
112 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
113 },
114 }
115
116 x__xgafv: string, V1 error format.
117 Allowed values
118 1 - v1 error format
119 2 - v2 error format
120
121 Returns:
122 An object of the form:
123
124 { # Response message for ConnectorAgentService.ExecuteTool
125 &quot;_meta&quot;: { # Metadata for the tool execution result.
126 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
127 },
128 &quot;metadata&quot;: { # Metadata like service latency, etc.
129 &quot;a_key&quot;: {
130 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
131 },
132 },
133 &quot;result&quot;: { # Output from the tool execution.
134 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
135 },
136 }</pre>
137 </div>
138
139 <div class="method">
140 <code class="details" id="list">list(parent, executionConfig_headers=None, pageSize=None, pageToken=None, toolNames=None, x__xgafv=None)</code>
141 <pre>Lists all available tools.
142
143 Args:
144 parent: string, Required. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} (required)
145 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;
146 pageSize: integer, Page size.
147 pageToken: string, Page token.
148 toolNames: string, List of tool names for selective tool fetching. (repeated)
149 x__xgafv: string, V1 error format.
150 Allowed values
151 1 - v1 error format
152 2 - v2 error format
153
154 Returns:
155 An object of the form:
156
157 { # Response message for ConnectorAgentService.ListTools
158 &quot;metadata&quot;: { # Metadata like service latency, etc.
159 &quot;a_key&quot;: {
160 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
161 },
162 },
163 &quot;nextPageToken&quot;: &quot;A String&quot;, # Next page token.
164 &quot;tools&quot;: [ # List of available tools.
165 { # Message representing a single tool.
166 &quot;_meta&quot;: { # Metadata for the tool.
167 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
168 },
169 &quot;annotations&quot;: { # ToolAnnotations holds annotations for a tool. # Annotations for the tool.
170 &quot;destructiveHint&quot;: True or False, # If true, the tool may perform destructive updates to its environment. If false, the tool performs only additive updates. (This property is meaningful only when `read_only_hint == false`)
171 &quot;idempotentHint&quot;: True or False, # If true, calling the tool repeatedly with the same arguments will have no additional effect on the environment. (This property is meaningful only when `read_only_hint == false`)
172 &quot;openWorldHint&quot;: True or False, # If true, this tool may interact with an &quot;open world&quot; of external entities. If false, the tool&#x27;s domain of interaction is closed. For example, the world of a web search tool is open, whereas that of a memory tool is not.
173 &quot;readOnlyHint&quot;: True or False, # If true, the tool does not modify its environment.
174 &quot;title&quot;: &quot;A String&quot;, # A human-readable title for the tool.
175 },
176 &quot;dependsOn&quot;: [ # List of tool names that this tool depends on.
177 &quot;A String&quot;,
178 ],
179 &quot;description&quot;: &quot;A String&quot;, # Description of the tool.
180 &quot;inputSchema&quot;: { # JsonSchema representation of schema metadata # JSON schema for the input parameters of the tool.
181 &quot;$comment&quot;: &quot;A String&quot;, # A comment on the schema.
182 &quot;$defs&quot;: { # Definitions for the schema.
183 &quot;a_key&quot;: # Object with schema name: JsonSchema
184 },
185 &quot;$id&quot;: &quot;A String&quot;, # The URI defining the core schema meta-schema.
186 &quot;$ref&quot;: &quot;A String&quot;, # A reference to another schema.
187 &quot;$schema&quot;: &quot;A String&quot;, # The URI defining the schema.
188 &quot;additionalDetails&quot;: { # Additional details apart from standard json schema fields, this gives flexibility to store metadata about the schema
189 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
190 },
191 &quot;additionalItems&quot;: # Object with schema name: JsonSchema # Schema for additional items.
192 &quot;additionalProperties&quot;: # Object with schema name: JsonSchema # Schema for additional properties.
193 &quot;allOf&quot;: [ # Schema that must be valid against all of the sub-schemas.
194 # Object with schema name: JsonSchema
195 ],
196 &quot;anyOf&quot;: [ # Schema that must be valid against at least one of the sub-schemas.
197 # Object with schema name: JsonSchema
198 ],
199 &quot;const&quot;: &quot;&quot;, # Const value that the data must match.
200 &quot;contains&quot;: # Object with schema name: JsonSchema # Schema that applies to at least one item in an array.
201 &quot;contentEncoding&quot;: &quot;A String&quot;, # Encoding of the content.
202 &quot;contentMediaType&quot;: &quot;A String&quot;, # Media type of the content.
203 &quot;default&quot;: &quot;&quot;, # The default value of the field or object described by this schema.
204 &quot;definitions&quot;: { # Definitions for the schema.
205 &quot;a_key&quot;: # Object with schema name: JsonSchema
206 },
207 &quot;dependencies&quot;: { # Dependencies for the schema.
208 &quot;a_key&quot;: &quot;&quot;,
209 },
210 &quot;description&quot;: &quot;A String&quot;, # A description of this schema.
211 &quot;else&quot;: # Object with schema name: JsonSchema # Schema that must be valid if the &quot;if&quot; schema is invalid.
212 &quot;enum&quot;: [ # Possible values for an enumeration. This works in conjunction with `type` to represent types with a fixed set of legal values
213 &quot;&quot;,
214 ],
215 &quot;examples&quot;: [ # Examples of the value.
216 &quot;&quot;,
217 ],
218 &quot;exclusiveMaximum&quot;: &quot;&quot;, # Whether the maximum number value is exclusive.
219 &quot;exclusiveMinimum&quot;: &quot;&quot;, # Whether the minimum number value is exclusive.
220 &quot;format&quot;: &quot;A String&quot;, # Format of the value as per https://json-schema.org/understanding-json-schema/reference/string.html#format
221 &quot;if&quot;: # Object with schema name: JsonSchema # Schema that must be valid if the &quot;if&quot; schema is valid.
222 &quot;items&quot;: # Object with schema name: JsonSchema # Schema that applies to array values, applicable only if this is of type `array`.
223 &quot;jdbcType&quot;: &quot;A String&quot;, # JDBC datatype of the field.
224 &quot;maxItems&quot;: 42, # Maximum number of items in the array field.
225 &quot;maxLength&quot;: 42, # Maximum length of the string field.
226 &quot;maxProperties&quot;: 42, # Maximum number of properties.
227 &quot;maximum&quot;: &quot;&quot;, # Maximum value of the number field.
228 &quot;minItems&quot;: 42, # Minimum number of items in the array field.
229 &quot;minLength&quot;: 42, # Minimum length of the string field.
230 &quot;minProperties&quot;: 42, # Minimum number of properties.
231 &quot;minimum&quot;: &quot;&quot;, # Minimum value of the number field.
232 &quot;multipleOf&quot;: 3.14, # Number must be a multiple of this value.
233 &quot;not&quot;: # Object with schema name: JsonSchema # Schema that must not be valid.
234 &quot;oneOf&quot;: [ # Schema that must be valid against at least one of the sub-schemas.
235 # Object with schema name: JsonSchema
236 ],
237 &quot;pattern&quot;: &quot;A String&quot;, # Regex pattern of the string field. This is a string value that describes the regular expression that the string value should match.
238 &quot;patternProperties&quot;: { # Pattern properties for the schema.
239 &quot;a_key&quot;: # Object with schema name: JsonSchema
240 },
241 &quot;properties&quot;: { # The child schemas, applicable only if this is of type `object`. The key is the name of the property and the value is the json schema that describes that property
242 &quot;a_key&quot;: # Object with schema name: JsonSchema
243 },
244 &quot;propertyNames&quot;: # Object with schema name: JsonSchema # Schema for property names.
245 &quot;readOnly&quot;: True or False, # Whether the value is read-only.
246 &quot;required&quot;: [ # Whether this property is required.
247 &quot;A String&quot;,
248 ],
249 &quot;then&quot;: # Object with schema name: JsonSchema # Schema that must be valid if the &quot;if&quot; schema is valid.
250 &quot;title&quot;: &quot;A String&quot;, # A title of the schema.
251 &quot;type&quot;: [ # JSON Schema Validation: A Vocabulary for Structural Validation of JSON
252 &quot;A String&quot;,
253 ],
254 &quot;uniqueItems&quot;: True or False, # Whether the items in the array field are unique.
255 &quot;writeOnly&quot;: True or False, # Whether the value is write-only.
256 },
257 &quot;name&quot;: &quot;A String&quot;, # Name of the tool.
258 &quot;outputSchema&quot;: { # JsonSchema representation of schema metadata # JSON schema for the output of the tool.
259 &quot;$comment&quot;: &quot;A String&quot;, # A comment on the schema.
260 &quot;$defs&quot;: { # Definitions for the schema.
261 &quot;a_key&quot;: # Object with schema name: JsonSchema
262 },
263 &quot;$id&quot;: &quot;A String&quot;, # The URI defining the core schema meta-schema.
264 &quot;$ref&quot;: &quot;A String&quot;, # A reference to another schema.
265 &quot;$schema&quot;: &quot;A String&quot;, # The URI defining the schema.
266 &quot;additionalDetails&quot;: { # Additional details apart from standard json schema fields, this gives flexibility to store metadata about the schema
267 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
268 },
269 &quot;additionalItems&quot;: # Object with schema name: JsonSchema # Schema for additional items.
270 &quot;additionalProperties&quot;: # Object with schema name: JsonSchema # Schema for additional properties.
271 &quot;allOf&quot;: [ # Schema that must be valid against all of the sub-schemas.
272 # Object with schema name: JsonSchema
273 ],
274 &quot;anyOf&quot;: [ # Schema that must be valid against at least one of the sub-schemas.
275 # Object with schema name: JsonSchema
276 ],
277 &quot;const&quot;: &quot;&quot;, # Const value that the data must match.
278 &quot;contains&quot;: # Object with schema name: JsonSchema # Schema that applies to at least one item in an array.
279 &quot;contentEncoding&quot;: &quot;A String&quot;, # Encoding of the content.
280 &quot;contentMediaType&quot;: &quot;A String&quot;, # Media type of the content.
281 &quot;default&quot;: &quot;&quot;, # The default value of the field or object described by this schema.
282 &quot;definitions&quot;: { # Definitions for the schema.
283 &quot;a_key&quot;: # Object with schema name: JsonSchema
284 },
285 &quot;dependencies&quot;: { # Dependencies for the schema.
286 &quot;a_key&quot;: &quot;&quot;,
287 },
288 &quot;description&quot;: &quot;A String&quot;, # A description of this schema.
289 &quot;else&quot;: # Object with schema name: JsonSchema # Schema that must be valid if the &quot;if&quot; schema is invalid.
290 &quot;enum&quot;: [ # Possible values for an enumeration. This works in conjunction with `type` to represent types with a fixed set of legal values
291 &quot;&quot;,
292 ],
293 &quot;examples&quot;: [ # Examples of the value.
294 &quot;&quot;,
295 ],
296 &quot;exclusiveMaximum&quot;: &quot;&quot;, # Whether the maximum number value is exclusive.
297 &quot;exclusiveMinimum&quot;: &quot;&quot;, # Whether the minimum number value is exclusive.
298 &quot;format&quot;: &quot;A String&quot;, # Format of the value as per https://json-schema.org/understanding-json-schema/reference/string.html#format
299 &quot;if&quot;: # Object with schema name: JsonSchema # Schema that must be valid if the &quot;if&quot; schema is valid.
300 &quot;items&quot;: # Object with schema name: JsonSchema # Schema that applies to array values, applicable only if this is of type `array`.
301 &quot;jdbcType&quot;: &quot;A String&quot;, # JDBC datatype of the field.
302 &quot;maxItems&quot;: 42, # Maximum number of items in the array field.
303 &quot;maxLength&quot;: 42, # Maximum length of the string field.
304 &quot;maxProperties&quot;: 42, # Maximum number of properties.
305 &quot;maximum&quot;: &quot;&quot;, # Maximum value of the number field.
306 &quot;minItems&quot;: 42, # Minimum number of items in the array field.
307 &quot;minLength&quot;: 42, # Minimum length of the string field.
308 &quot;minProperties&quot;: 42, # Minimum number of properties.
309 &quot;minimum&quot;: &quot;&quot;, # Minimum value of the number field.
310 &quot;multipleOf&quot;: 3.14, # Number must be a multiple of this value.
311 &quot;not&quot;: # Object with schema name: JsonSchema # Schema that must not be valid.
312 &quot;oneOf&quot;: [ # Schema that must be valid against at least one of the sub-schemas.
313 # Object with schema name: JsonSchema
314 ],
315 &quot;pattern&quot;: &quot;A String&quot;, # Regex pattern of the string field. This is a string value that describes the regular expression that the string value should match.
316 &quot;patternProperties&quot;: { # Pattern properties for the schema.
317 &quot;a_key&quot;: # Object with schema name: JsonSchema
318 },
319 &quot;properties&quot;: { # The child schemas, applicable only if this is of type `object`. The key is the name of the property and the value is the json schema that describes that property
320 &quot;a_key&quot;: # Object with schema name: JsonSchema
321 },
322 &quot;propertyNames&quot;: # Object with schema name: JsonSchema # Schema for property names.
323 &quot;readOnly&quot;: True or False, # Whether the value is read-only.
324 &quot;required&quot;: [ # Whether this property is required.
325 &quot;A String&quot;,
326 ],
327 &quot;then&quot;: # Object with schema name: JsonSchema # Schema that must be valid if the &quot;if&quot; schema is valid.
328 &quot;title&quot;: &quot;A String&quot;, # A title of the schema.
329 &quot;type&quot;: [ # JSON Schema Validation: A Vocabulary for Structural Validation of JSON
330 &quot;A String&quot;,
331 ],
332 &quot;uniqueItems&quot;: True or False, # Whether the items in the array field are unique.
333 &quot;writeOnly&quot;: True or False, # Whether the value is write-only.
334 },
335 },
336 ],
337 }</pre>
338 </div>
339
340 <div class="method">
341 <code class="details" id="list_next">list_next()</code>
342 <pre>Retrieves the next page of results.
343
344 Args:
345 previous_request: The request for the previous page. (required)
346 previous_response: The response from the request for the previous page. (required)
347
348 Returns:
349 A request object that you can call &#x27;execute()&#x27; on to request the next
350 page. Returns None if there are no more items in the collection.
351 </pre>
352 </div>
353
354 </body></html>