| 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_v1beta.html">Discovery Engine API</a> . <a href="discoveryengine_v1beta.projects.html">projects</a> . <a href="discoveryengine_v1beta.projects.locations.html">locations</a> . <a href="discoveryengine_v1beta.projects.locations.collections.html">collections</a> . <a href="discoveryengine_v1beta.projects.locations.collections.dataStores.html">dataStores</a> . <a href="discoveryengine_v1beta.projects.locations.collections.dataStores.siteSearchEngine.html">siteSearchEngine</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="discoveryengine_v1beta.projects.locations.collections.dataStores.siteSearchEngine.operations.html">operations()</a></code> |
| 79 |
</p> |
| 80 |
<p class="firstline">Returns the operations Resource.</p> |
| 81 |
|
| 82 |
<p class="toc_element"> |
| 83 |
<code><a href="discoveryengine_v1beta.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.html">sitemaps()</a></code> |
| 84 |
</p> |
| 85 |
<p class="firstline">Returns the sitemaps Resource.</p> |
| 86 |
|
| 87 |
<p class="toc_element"> |
| 88 |
<code><a href="discoveryengine_v1beta.projects.locations.collections.dataStores.siteSearchEngine.targetSites.html">targetSites()</a></code> |
| 89 |
</p> |
| 90 |
<p class="firstline">Returns the targetSites Resource.</p> |
| 91 |
|
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#batchVerifyTargetSites">batchVerifyTargetSites(parent, body=None, x__xgafv=None)</a></code></p> |
| 94 |
<p class="firstline">Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification.</p> |
| 95 |
<p class="toc_element"> |
| 96 |
<code><a href="#close">close()</a></code></p> |
| 97 |
<p class="firstline">Close httplib2 connections.</p> |
| 98 |
<p class="toc_element"> |
| 99 |
<code><a href="#disableAdvancedSiteSearch">disableAdvancedSiteSearch(siteSearchEngine, body=None, x__xgafv=None)</a></code></p> |
| 100 |
<p class="firstline">Downgrade from advanced site search to basic site search.</p> |
| 101 |
<p class="toc_element"> |
| 102 |
<code><a href="#enableAdvancedSiteSearch">enableAdvancedSiteSearch(siteSearchEngine, body=None, x__xgafv=None)</a></code></p> |
| 103 |
<p class="firstline">Upgrade from basic site search to advanced site search.</p> |
| 104 |
<p class="toc_element"> |
| 105 |
<code><a href="#fetchDomainVerificationStatus">fetchDomainVerificationStatus(siteSearchEngine, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 106 |
<p class="firstline">Returns list of target sites with its domain verification status. This method can only be called under data store with BASIC_SITE_SEARCH state at the moment.</p> |
| 107 |
<p class="toc_element"> |
| 108 |
<code><a href="#fetchDomainVerificationStatus_next">fetchDomainVerificationStatus_next()</a></code></p> |
| 109 |
<p class="firstline">Retrieves the next page of results.</p> |
| 110 |
<p class="toc_element"> |
| 111 |
<code><a href="#recrawlUris">recrawlUris(siteSearchEngine, body=None, x__xgafv=None)</a></code></p> |
| 112 |
<p class="firstline">Request on-demand recrawl for a list of URIs.</p> |
| 113 |
<h3>Method Details</h3> |
| 114 |
<div class="method"> |
| 115 |
<code class="details" id="batchVerifyTargetSites">batchVerifyTargetSites(parent, body=None, x__xgafv=None)</code> |
| 116 |
<pre>Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification. |
| 117 |
|
| 118 |
Args: |
| 119 |
parent: string, Required. The parent resource shared by all TargetSites being verified. `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. (required) |
| 120 |
body: object, The request body. |
| 121 |
The object takes the form of: |
| 122 |
|
| 123 |
{ # Request message for SiteSearchEngineService.BatchVerifyTargetSites method. |
| 124 |
} |
| 125 |
|
| 126 |
x__xgafv: string, V1 error format. |
| 127 |
Allowed values |
| 128 |
1 - v1 error format |
| 129 |
2 - v2 error format |
| 130 |
|
| 131 |
Returns: |
| 132 |
An object of the form: |
| 133 |
|
| 134 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 135 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 136 |
"error": { # 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). # The error result of the operation in case of failure or cancellation. |
| 137 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 138 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 139 |
{ |
| 140 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 141 |
}, |
| 142 |
], |
| 143 |
"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. |
| 144 |
}, |
| 145 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 146 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 147 |
}, |
| 148 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 149 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 150 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 151 |
}, |
| 152 |
}</pre> |
| 153 |
</div> |
| 154 |
|
| 155 |
<div class="method"> |
| 156 |
<code class="details" id="close">close()</code> |
| 157 |
<pre>Close httplib2 connections.</pre> |
| 158 |
</div> |
| 159 |
|
| 160 |
<div class="method"> |
| 161 |
<code class="details" id="disableAdvancedSiteSearch">disableAdvancedSiteSearch(siteSearchEngine, body=None, x__xgafv=None)</code> |
| 162 |
<pre>Downgrade from advanced site search to basic site search. |
| 163 |
|
| 164 |
Args: |
| 165 |
siteSearchEngine: string, Required. Full resource name of the SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. (required) |
| 166 |
body: object, The request body. |
| 167 |
The object takes the form of: |
| 168 |
|
| 169 |
{ # Request message for SiteSearchEngineService.DisableAdvancedSiteSearch method. |
| 170 |
} |
| 171 |
|
| 172 |
x__xgafv: string, V1 error format. |
| 173 |
Allowed values |
| 174 |
1 - v1 error format |
| 175 |
2 - v2 error format |
| 176 |
|
| 177 |
Returns: |
| 178 |
An object of the form: |
| 179 |
|
| 180 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 181 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 182 |
"error": { # 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). # The error result of the operation in case of failure or cancellation. |
| 183 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 184 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 185 |
{ |
| 186 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 187 |
}, |
| 188 |
], |
| 189 |
"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. |
| 190 |
}, |
| 191 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 192 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 193 |
}, |
| 194 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 195 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 196 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 197 |
}, |
| 198 |
}</pre> |
| 199 |
</div> |
| 200 |
|
| 201 |
<div class="method"> |
| 202 |
<code class="details" id="enableAdvancedSiteSearch">enableAdvancedSiteSearch(siteSearchEngine, body=None, x__xgafv=None)</code> |
| 203 |
<pre>Upgrade from basic site search to advanced site search. |
| 204 |
|
| 205 |
Args: |
| 206 |
siteSearchEngine: string, Required. Full resource name of the SiteSearchEngine, such as `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. (required) |
| 207 |
body: object, The request body. |
| 208 |
The object takes the form of: |
| 209 |
|
| 210 |
{ # Request message for SiteSearchEngineService.EnableAdvancedSiteSearch method. |
| 211 |
} |
| 212 |
|
| 213 |
x__xgafv: string, V1 error format. |
| 214 |
Allowed values |
| 215 |
1 - v1 error format |
| 216 |
2 - v2 error format |
| 217 |
|
| 218 |
Returns: |
| 219 |
An object of the form: |
| 220 |
|
| 221 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 222 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 223 |
"error": { # 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). # The error result of the operation in case of failure or cancellation. |
| 224 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 225 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 226 |
{ |
| 227 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 228 |
}, |
| 229 |
], |
| 230 |
"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. |
| 231 |
}, |
| 232 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 233 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 234 |
}, |
| 235 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 236 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 237 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 238 |
}, |
| 239 |
}</pre> |
| 240 |
</div> |
| 241 |
|
| 242 |
<div class="method"> |
| 243 |
<code class="details" id="fetchDomainVerificationStatus">fetchDomainVerificationStatus(siteSearchEngine, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 244 |
<pre>Returns list of target sites with its domain verification status. This method can only be called under data store with BASIC_SITE_SEARCH state at the moment. |
| 245 |
|
| 246 |
Args: |
| 247 |
siteSearchEngine: string, Required. The site search engine resource under which we fetch all the domain verification status. `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. (required) |
| 248 |
pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. The maximum value is 1000; values above 1000 will be coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is returned. |
| 249 |
pageToken: string, A page token, received from a previous `FetchDomainVerificationStatus` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchDomainVerificationStatus` must match the call that provided the page token. |
| 250 |
x__xgafv: string, V1 error format. |
| 251 |
Allowed values |
| 252 |
1 - v1 error format |
| 253 |
2 - v2 error format |
| 254 |
|
| 255 |
Returns: |
| 256 |
An object of the form: |
| 257 |
|
| 258 |
{ # Response message for SiteSearchEngineService.FetchDomainVerificationStatus method. |
| 259 |
"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. |
| 260 |
"targetSites": [ # List of TargetSites containing the site verification status. |
| 261 |
{ # A target site for the SiteSearchEngine. |
| 262 |
"exactMatch": True or False, # Immutable. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine. |
| 263 |
"failureReason": { # Site search indexing failure reasons. # Output only. Failure reason. |
| 264 |
"quotaFailure": { # Failed due to insufficient quota. # Failed due to insufficient quota. |
| 265 |
"totalRequiredQuota": "A String", # This number is an estimation on how much total quota this project needs to successfully complete indexing. |
| 266 |
}, |
| 267 |
}, |
| 268 |
"generatedUriPattern": "A String", # Output only. This is system-generated based on the provided_uri_pattern. |
| 269 |
"indexingStatus": "A String", # Output only. Indexing status. |
| 270 |
"name": "A String", # Output only. The fully qualified resource name of the target site. `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}` The `target_site_id` is system-generated. |
| 271 |
"providedUriPattern": "A String", # Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. |
| 272 |
"rootDomainUri": "A String", # Output only. Root domain of the provided_uri_pattern. |
| 273 |
"siteVerificationInfo": { # Verification information for target sites in advanced site search. # Output only. Site ownership and validity verification status. |
| 274 |
"siteVerificationState": "A String", # Site verification state indicating the ownership and validity. |
| 275 |
"verifyTime": "A String", # Latest site verification time. |
| 276 |
}, |
| 277 |
"type": "A String", # The type of the target site, e.g., whether the site is to be included or excluded. |
| 278 |
"updateTime": "A String", # Output only. The target site's last updated time. |
| 279 |
}, |
| 280 |
], |
| 281 |
"totalSize": 42, # The total number of items matching the request. This will always be populated in the response. |
| 282 |
}</pre> |
| 283 |
</div> |
| 284 |
|
| 285 |
<div class="method"> |
| 286 |
<code class="details" id="fetchDomainVerificationStatus_next">fetchDomainVerificationStatus_next()</code> |
| 287 |
<pre>Retrieves the next page of results. |
| 288 |
|
| 289 |
Args: |
| 290 |
previous_request: The request for the previous page. (required) |
| 291 |
previous_response: The response from the request for the previous page. (required) |
| 292 |
|
| 293 |
Returns: |
| 294 |
A request object that you can call 'execute()' on to request the next |
| 295 |
page. Returns None if there are no more items in the collection. |
| 296 |
</pre> |
| 297 |
</div> |
| 298 |
|
| 299 |
<div class="method"> |
| 300 |
<code class="details" id="recrawlUris">recrawlUris(siteSearchEngine, body=None, x__xgafv=None)</code> |
| 301 |
<pre>Request on-demand recrawl for a list of URIs. |
| 302 |
|
| 303 |
Args: |
| 304 |
siteSearchEngine: string, Required. Full resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. (required) |
| 305 |
body: object, The request body. |
| 306 |
The object takes the form of: |
| 307 |
|
| 308 |
{ # Request message for SiteSearchEngineService.RecrawlUris method. |
| 309 |
"siteCredential": "A String", # Optional. Credential id to use for crawling. |
| 310 |
"uris": [ # Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in `site_search_engine`. |
| 311 |
"A String", |
| 312 |
], |
| 313 |
} |
| 314 |
|
| 315 |
x__xgafv: string, V1 error format. |
| 316 |
Allowed values |
| 317 |
1 - v1 error format |
| 318 |
2 - v2 error format |
| 319 |
|
| 320 |
Returns: |
| 321 |
An object of the form: |
| 322 |
|
| 323 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 324 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 325 |
"error": { # 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). # The error result of the operation in case of failure or cancellation. |
| 326 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 327 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 328 |
{ |
| 329 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 330 |
}, |
| 331 |
], |
| 332 |
"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. |
| 333 |
}, |
| 334 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 335 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 336 |
}, |
| 337 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 338 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 339 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 340 |
}, |
| 341 |
}</pre> |
| 342 |
</div> |
| 343 |
|
| 344 |
</body></html> |