| 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> . <a href="discoveryengine_v1alpha.projects.locations.collections.dataConnector.connectorRuns.html">connectorRuns</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="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Lists the ConnectorRuns of a DataConnector.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#list_next">list_next()</a></code></p> |
| 85 |
<p class="firstline">Retrieves the next page of results.</p> |
| 86 |
<h3>Method Details</h3> |
| 87 |
<div class="method"> |
| 88 |
<code class="details" id="close">close()</code> |
| 89 |
<pre>Close httplib2 connections.</pre> |
| 90 |
</div> |
| 91 |
|
| 92 |
<div class="method"> |
| 93 |
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 94 |
<pre>Lists the ConnectorRuns of a DataConnector. |
| 95 |
|
| 96 |
Args: |
| 97 |
parent: string, Required. The parent DataConnector resource name, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataConnector`. If the caller does not have permission to list ConnectorRuns under this DataConnector, regardless of whether or not this DataConnector exists, a `PERMISSION_DENIED` error is returned. (required) |
| 98 |
pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, defaults to 10. The maximum value is 50; values above 50 will be coerced to 50. If this field is negative, an `INVALID_ARGUMENT` error is returned. |
| 99 |
pageToken: string, A page token, received from a previous `ListConnectorRuns` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConnectorRuns` must match the call that provided the page token. |
| 100 |
x__xgafv: string, V1 error format. |
| 101 |
Allowed values |
| 102 |
1 - v1 error format |
| 103 |
2 - v2 error format |
| 104 |
|
| 105 |
Returns: |
| 106 |
An object of the form: |
| 107 |
|
| 108 |
{ # Response for DataConnectorService.ListConnectorRuns method. |
| 109 |
"connectorRuns": [ # List of ConnectorRuns. |
| 110 |
{ # 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. // |
| 111 |
"endTime": "A String", # Output only. The time when the connector run ended. |
| 112 |
"entityRuns": [ # Output only. The details of the entities synced at the ConnectorRun. Each ConnectorRun consists of syncing one or more entities. |
| 113 |
{ # Represents an entity that was synced in this ConnectorRun. |
| 114 |
"deletedRecordCount": "A String", # Optional. The number of documents deleted. |
| 115 |
"entityName": "A String", # The name of the source entity. |
| 116 |
"errorRecordCount": "A String", # Optional. The total number of documents failed at sync at indexing stage. |
| 117 |
"errors": [ # The errors from the entity's sync run. Only exist if running into an error state. Contains error code and error message. |
| 118 |
{ # 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). |
| 119 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 120 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 121 |
{ |
| 122 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 123 |
}, |
| 124 |
], |
| 125 |
"message": "A String", # 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. |
| 126 |
}, |
| 127 |
], |
| 128 |
"extractedRecordCount": "A String", # Optional. The number of documents extracted from connector source, ready to be ingested to VAIS. |
| 129 |
"indexedRecordCount": "A String", # Optional. The number of documents indexed. |
| 130 |
"progress": { # Represents the progress of a sync run. # Metadata to generate the progress bar. |
| 131 |
"currentCount": "A String", # The current progress. |
| 132 |
"percentile": 3.14, # Derived. The percentile of the progress.current_count / total_count. The value is between [0, 1.0] inclusive. |
| 133 |
"totalCount": "A String", # The total. |
| 134 |
}, |
| 135 |
"scheduledRecordCount": "A String", # Optional. The number of documents scheduled to be crawled/extracted from connector source. This only applies to third party connectors. |
| 136 |
"sourceApiRequestCount": "A String", # Optional. The number of requests sent to 3p API. |
| 137 |
"state": "A String", # The state of the entity's sync run. |
| 138 |
"stateUpdateTime": "A String", # Timestamp at which the entity sync state was last updated. |
| 139 |
"statsUpdateTime": "A String", # The timestamp for either extracted_documents_count, indexed_documents_count and error_documents_count was last updated. |
| 140 |
"syncType": "A String", # Sync type of this run. |
| 141 |
}, |
| 142 |
], |
| 143 |
"errors": [ # 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. |
| 144 |
{ # 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). |
| 145 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 146 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 147 |
{ |
| 148 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 149 |
}, |
| 150 |
], |
| 151 |
"message": "A String", # 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. |
| 152 |
}, |
| 153 |
], |
| 154 |
"latestPauseTime": "A String", # Output only. The time when the connector run was most recently paused. |
| 155 |
"name": "A String", # Output only. The full resource name of the Connector Run. Format: `projects/*/locations/*/collections/*/dataConnector/connectorRuns/*`. The `connector_run_id` is system-generated. |
| 156 |
"startTime": "A String", # Output only. The time when the connector run started. |
| 157 |
"state": "A String", # Output only. The state of the sync run. |
| 158 |
"stateUpdateTime": "A String", # Timestamp at which the connector run sync state was last updated. |
| 159 |
"trigger": "A String", # Output only. The trigger for this ConnectorRun. |
| 160 |
}, |
| 161 |
], |
| 162 |
"nextPageToken": "A String", # A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |
| 163 |
}</pre> |
| 164 |
</div> |
| 165 |
|
| 166 |
<div class="method"> |
| 167 |
<code class="details" id="list_next">list_next()</code> |
| 168 |
<pre>Retrieves the next page of results. |
| 169 |
|
| 170 |
Args: |
| 171 |
previous_request: The request for the previous page. (required) |
| 172 |
previous_response: The response from the request for the previous page. (required) |
| 173 |
|
| 174 |
Returns: |
| 175 |
A request object that you can call 'execute()' on to request the next |
| 176 |
page. Returns None if there are no more items in the collection. |
| 177 |
</pre> |
| 178 |
</div> |
| 179 |
|
| 180 |
</body></html> |