Debian Codegraph @

docs/dyn/discoveryengine_v1alpha.projects.locations.collections.dataConnector.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="discoveryengine_v1alpha.html">Discovery Engine API</a> . <a href="discoveryengine_v1alpha.projects.html">projects</a> . <a href="discoveryengine_v1alpha.projects.locations.html">locations</a> . <a href="discoveryengine_v1alpha.projects.locations.collections.html">collections</a> . <a href="discoveryengine_v1alpha.projects.locations.collections.dataConnector.html">dataConnector</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="discoveryengine_v1alpha.projects.locations.collections.dataConnector.connectorRuns.html">connectorRuns()</a></code>
79 </p>
80 <p class="firstline">Returns the connectorRuns Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="discoveryengine_v1alpha.projects.locations.collections.dataConnector.operations.html">operations()</a></code>
84 </p>
85 <p class="firstline">Returns the operations Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#acquireAccessToken">acquireAccessToken(name, body=None, x__xgafv=None)</a></code></p>
89 <p class="firstline">Uses the per-user refresh token minted with AcquireAndStoreRefreshToken to generate and return a new access token and its details. Takes the access token from cache if available. Rotates the stored refresh token if needed. Uses the end user identity to return the user specific access token. Does *not* return the credentials configured by the administrator. Used by action execution and UI.</p>
90 <p class="toc_element">
91 <code><a href="#checkRefreshToken">checkRefreshToken(name, x__xgafv=None)</a></code></p>
92 <p class="firstline">Deprecated: Checks the existence of a refresh token for the EUC user for a given connection and returns its details. Use AcquireAccessToken instead and then check the validity of the returned token by asking the 3rd party system. There's no way to know for sure if a refresh token is valid without asking the 3rd party system.</p>
93 <p class="toc_element">
94 <code><a href="#close">close()</a></code></p>
95 <p class="firstline">Close httplib2 connections.</p>
96 <p class="toc_element">
97 <code><a href="#getConnectorSecret">getConnectorSecret(name, x__xgafv=None)</a></code></p>
98 <p class="firstline">Get the secret for the associated connector.</p>
99 <p class="toc_element">
100 <code><a href="#mcp">mcp(projectsId, locationsId, collectionsId, contentType=None, data=None, extensions=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">ServeMcpDeleteRequest serves a MCP DELETE request.</p>
102 <p class="toc_element">
103 <code><a href="#startConnectorRun">startConnectorRun(parent, body=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Starts an immediate synchronization process for a DataConnector. Third Party Connector Users must specify which entities should be synced. FHIR Connectors must provide a timestamp to indicate the point in time from which data should be synced.</p>
105 <h3>Method Details</h3>
106 <div class="method">
107 <code class="details" id="acquireAccessToken">acquireAccessToken(name, body=None, x__xgafv=None)</code>
108 <pre>Uses the per-user refresh token minted with AcquireAndStoreRefreshToken to generate and return a new access token and its details. Takes the access token from cache if available. Rotates the stored refresh token if needed. Uses the end user identity to return the user specific access token. Does *not* return the credentials configured by the administrator. Used by action execution and UI.
109
110 Args:
111 name: string, Required. The resource name of the connector for which a token is queried. (required)
112 body: object, The request body.
113 The object takes the form of:
114
115 { # Request message for the DataConnectorService.AcquireAccessToken method.
116 &quot;action&quot;: &quot;A String&quot;, # Optional. The tool/action name being executed. If provided, the server will check the required scopes of the action and dynamically trigger incremental authorization if they are missing.
117 &quot;scope&quot;: &quot;A String&quot;, # Optional. The scope to request for the access token. Scope will override default scope if specified.
118 }
119
120 x__xgafv: string, V1 error format.
121 Allowed values
122 1 - v1 error format
123 2 - v2 error format
124
125 Returns:
126 An object of the form:
127
128 { # Response message for the DataConnectorService.AcquireAccessToken method.
129 &quot;accessToken&quot;: &quot;A String&quot;, # The created access token.
130 &quot;refreshTokenInfo&quot;: { # Describes a refresh token. # Info about the stored refresh token used to create the access token.
131 &quot;name&quot;: &quot;A String&quot;, # Required. The connection for which this token applies.
132 &quot;scopes&quot;: [ # The list of scopes for this token.
133 &quot;A String&quot;,
134 ],
135 },
136 }</pre>
137 </div>
138
139 <div class="method">
140 <code class="details" id="checkRefreshToken">checkRefreshToken(name, x__xgafv=None)</code>
141 <pre>Deprecated: Checks the existence of a refresh token for the EUC user for a given connection and returns its details. Use AcquireAccessToken instead and then check the validity of the returned token by asking the 3rd party system. There&#x27;s no way to know for sure if a refresh token is valid without asking the 3rd party system.
142
143 Args:
144 name: string, Required. The resource name of the connector for which a token is queried. (required)
145 x__xgafv: string, V1 error format.
146 Allowed values
147 1 - v1 error format
148 2 - v2 error format
149
150 Returns:
151 An object of the form:
152
153 { # Response message for the DataConnectorService.CheckRefreshToken method.
154 &quot;refreshTokenInfo&quot;: { # Describes a refresh token. # Info about the stored refresh token.
155 &quot;name&quot;: &quot;A String&quot;, # Required. The connection for which this token applies.
156 &quot;scopes&quot;: [ # The list of scopes for this token.
157 &quot;A String&quot;,
158 ],
159 },
160 }</pre>
161 </div>
162
163 <div class="method">
164 <code class="details" id="close">close()</code>
165 <pre>Close httplib2 connections.</pre>
166 </div>
167
168 <div class="method">
169 <code class="details" id="getConnectorSecret">getConnectorSecret(name, x__xgafv=None)</code>
170 <pre>Get the secret for the associated connector.
171
172 Args:
173 name: string, Required. The full resource name of the associated data connector. (required)
174 x__xgafv: string, V1 error format.
175 Allowed values
176 1 - v1 error format
177 2 - v2 error format
178
179 Returns:
180 An object of the form:
181
182 { # Response message for DataConnectorService.GetConnectorSecret.
183 &quot;app&quot;: &quot;A String&quot;, # The app name of the associated Connector.
184 &quot;authorizationUri&quot;: &quot;A String&quot;, # The authorization uri for the data connector.
185 &quot;clientId&quot;: &quot;A String&quot;, # The client id of the associated Connector.
186 &quot;instance&quot;: &quot;A String&quot;, # The instance name of the associated Connector.
187 &quot;redirectUri&quot;: &quot;A String&quot;, # The redirect url of the associated Connector.
188 &quot;tenantId&quot;: &quot;A String&quot;, # The tenant id of the associated Connector.
189 }</pre>
190 </div>
191
192 <div class="method">
193 <code class="details" id="mcp">mcp(projectsId, locationsId, collectionsId, contentType=None, data=None, extensions=None, x__xgafv=None)</code>
194 <pre>ServeMcpDeleteRequest serves a MCP DELETE request.
195
196 Args:
197 projectsId: string, A parameter (required)
198 locationsId: string, A parameter (required)
199 collectionsId: string, A parameter (required)
200 contentType: string, The HTTP Content-Type header value specifying the content type of the body.
201 data: string, The HTTP request/response body as raw binary.
202 extensions: object, Application specific response metadata. Must be set in the first response for streaming APIs. (repeated)
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208 Returns:
209 An object of the form:
210
211 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
212 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
213 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
214 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
215 {
216 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
217 },
218 ],
219 }</pre>
220 </div>
221
222 <div class="method">
223 <code class="details" id="startConnectorRun">startConnectorRun(parent, body=None, x__xgafv=None)</code>
224 <pre>Starts an immediate synchronization process for a DataConnector. Third Party Connector Users must specify which entities should be synced. FHIR Connectors must provide a timestamp to indicate the point in time from which data should be synced.
225
226 Args:
227 parent: string, Required. Connector name of the form `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector` (required)
228 body: object, The request body.
229 The object takes the form of:
230
231 { # Request message for DataConnectorService.StartConnectorRun method.
232 &quot;entities&quot;: [ # Specifies which Third Party Connector entities should be synced. If not specified, all entities will be synced.
233 &quot;A String&quot;,
234 ],
235 &quot;forceRefreshContent&quot;: True or False, # Optional. Whether to force refresh the unstructured content of the documents. If set to `true`, the content part of the documents will be refreshed regardless of the update status of the referencing content.
236 &quot;healthcareFhirResourceTypes&quot;: [ # The FHIR resource types to import. The resource types should be a subset of all [supported FHIR resource types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). Default to all supported FHIR resource types if empty.
237 &quot;A String&quot;,
238 ],
239 &quot;syncIdentity&quot;: True or False, # If true, trigger Identity sync.
240 &quot;syncSinceTimestamp&quot;: &quot;A String&quot;, # Timestamp to indicate the point in time from which data should be synced for Streaming/Batch Data Connectors. This field is only utilized for Healthcare Connectors.
241 }
242
243 x__xgafv: string, V1 error format.
244 Allowed values
245 1 - v1 error format
246 2 - v2 error format
247
248 Returns:
249 An object of the form:
250
251 { # A data sync run of DataConnector. After DataConnector is successfully initialized, data syncs are scheduled at DataConnector.refresh_interval. A ConnectorRun represents a data sync either in the past or onging that the moment. //
252 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the connector run ended.
253 &quot;entityRuns&quot;: [ # Output only. The details of the entities synced at the ConnectorRun. Each ConnectorRun consists of syncing one or more entities.
254 { # Represents an entity that was synced in this ConnectorRun.
255 &quot;deletedRecordCount&quot;: &quot;A String&quot;, # Optional. The number of documents deleted.
256 &quot;entityName&quot;: &quot;A String&quot;, # The name of the source entity.
257 &quot;errorRecordCount&quot;: &quot;A String&quot;, # Optional. The total number of documents failed at sync at indexing stage.
258 &quot;errors&quot;: [ # The errors from the entity&#x27;s sync run. Only exist if running into an error state. Contains error code and error message.
259 { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
260 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
261 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
262 {
263 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
264 },
265 ],
266 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
267 },
268 ],
269 &quot;extractedRecordCount&quot;: &quot;A String&quot;, # Optional. The number of documents extracted from connector source, ready to be ingested to VAIS.
270 &quot;indexedRecordCount&quot;: &quot;A String&quot;, # Optional. The number of documents indexed.
271 &quot;progress&quot;: { # Represents the progress of a sync run. # Metadata to generate the progress bar.
272 &quot;currentCount&quot;: &quot;A String&quot;, # The current progress.
273 &quot;percentile&quot;: 3.14, # Derived. The percentile of the progress.current_count / total_count. The value is between [0, 1.0] inclusive.
274 &quot;totalCount&quot;: &quot;A String&quot;, # The total.
275 },
276 &quot;scheduledRecordCount&quot;: &quot;A String&quot;, # Optional. The number of documents scheduled to be crawled/extracted from connector source. This only applies to third party connectors.
277 &quot;sourceApiRequestCount&quot;: &quot;A String&quot;, # Optional. The number of requests sent to 3p API.
278 &quot;state&quot;: &quot;A String&quot;, # The state of the entity&#x27;s sync run.
279 &quot;stateUpdateTime&quot;: &quot;A String&quot;, # Timestamp at which the entity sync state was last updated.
280 &quot;statsUpdateTime&quot;: &quot;A String&quot;, # The timestamp for either extracted_documents_count, indexed_documents_count and error_documents_count was last updated.
281 &quot;syncType&quot;: &quot;A String&quot;, # Sync type of this run.
282 },
283 ],
284 &quot;errors&quot;: [ # Contains info about errors incurred during the sync. Only exist if running into an error state. Contains error code and error message. Use with the `state` field.
285 { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
286 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
287 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
288 {
289 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
290 },
291 ],
292 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
293 },
294 ],
295 &quot;latestPauseTime&quot;: &quot;A String&quot;, # Output only. The time when the connector run was most recently paused.
296 &quot;name&quot;: &quot;A String&quot;, # Output only. The full resource name of the Connector Run. Format: `projects/*/locations/*/collections/*/dataConnector/connectorRuns/*`. The `connector_run_id` is system-generated.
297 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the connector run started.
298 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the sync run.
299 &quot;stateUpdateTime&quot;: &quot;A String&quot;, # Timestamp at which the connector run sync state was last updated.
300 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The trigger for this ConnectorRun.
301 }</pre>
302 </div>
303
304 </body></html>