1<html><body> 2<style> 3 4body, 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 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, 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="cloudsearch_v1.html">Cloud Search API</a> . <a href="cloudsearch_v1.settings.html">settings</a> . <a href="cloudsearch_v1.settings.datasources.html">datasources</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="#create">create(body=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Creates a datasource. **Note:** This API requires an admin account to execute.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a datasource. **Note:** This API requires an admin account to execute.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets a datasource. **Note:** This API requires an admin account to execute.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Lists datasources. **Note:** This API requires an admin account to execute.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Updates a datasource. **Note:** This API requires an admin account to execute.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="close">close()</code> 101 <pre>Close httplib2 connections.</pre> 102</div> 103 104<div class="method"> 105 <code class="details" id="create">create(body=None, x__xgafv=None)</code> 106 <pre>Creates a datasource. **Note:** This API requires an admin account to execute. 107 108Args: 109 body: object, The request body. 110 The object takes the form of: 111 112{ # Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search. 113 "disableModifications": True or False, # If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data. 114 "disableServing": True or False, # Disable serving any search or assist results. 115 "displayName": "A String", # Required. Display name of the datasource The maximum length is 300 characters. 116 "indexingServiceAccounts": [ # List of service accounts that have indexing access. 117 "A String", 118 ], 119 "itemsVisibility": [ # This field restricts visibility to items at the datasource level. Items within the datasource are restricted to the union of users and groups included in this field. Note that, this does not ensure access to a specific item, as users need to have ACL permissions on the contained items. This ensures a high level access on the entire datasource, and that the individual items are not shared outside this visibility. 120 { 121 "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the customer. 122 "gsuiteGroupEmail": "A String", # This principal references a G Suite group account 123 "gsuiteUserEmail": "A String", # This principal references a G Suite user account 124 }, 125 ], 126 "name": "A String", # Name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource. 127 "operationIds": [ # IDs of the Long Running Operations (LROs) currently running for this schema. 128 "A String", 129 ], 130 "returnThumbnailUrls": True or False, # Can a user request to get thumbnail URI for Items indexed in this data source. 131 "shortName": "A String", # A short name or alias for the source. This value will be used to match the 'source' operator. For example, if the short name is *<value>* then queries like *source:<value>* will only return results for this source. The value must be unique across all datasources. The value must only contain alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google' and cannot be one of the following: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32 characters. 132} 133 134 x__xgafv: string, V1 error format. 135 Allowed values 136 1 - v1 error format 137 2 - v2 error format 138 139Returns: 140 An object of the form: 141 142 { # This resource represents a long-running operation that is the result of a network API call. 143 "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. 144 "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. 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 "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. 154 "a_key": "", # Properties of the object. Contains field @type with type URL. 155 }, 156 "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}`. 157 "response": { # The normal response of the operation in case of success. 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`. 158 "a_key": "", # Properties of the object. Contains field @type with type URL. 159 }, 160}</pre> 161</div> 162 163<div class="method"> 164 <code class="details" id="delete">delete(name, debugOptions_enableDebugging=None, x__xgafv=None)</code> 165 <pre>Deletes a datasource. **Note:** This API requires an admin account to execute. 166 167Args: 168 name: string, Name of the datasource. Format: datasources/{source_id}. (required) 169 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 170 x__xgafv: string, V1 error format. 171 Allowed values 172 1 - v1 error format 173 2 - v2 error format 174 175Returns: 176 An object of the form: 177 178 { # This resource represents a long-running operation that is the result of a network API call. 179 "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. 180 "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. 181 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 182 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 183 { 184 "a_key": "", # Properties of the object. Contains field @type with type URL. 185 }, 186 ], 187 "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. 188 }, 189 "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. 190 "a_key": "", # Properties of the object. Contains field @type with type URL. 191 }, 192 "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}`. 193 "response": { # The normal response of the operation in case of success. 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`. 194 "a_key": "", # Properties of the object. Contains field @type with type URL. 195 }, 196}</pre> 197</div> 198 199<div class="method"> 200 <code class="details" id="get">get(name, debugOptions_enableDebugging=None, x__xgafv=None)</code> 201 <pre>Gets a datasource. **Note:** This API requires an admin account to execute. 202 203Args: 204 name: string, Name of the datasource resource. Format: datasources/{source_id}. (required) 205 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 206 x__xgafv: string, V1 error format. 207 Allowed values 208 1 - v1 error format 209 2 - v2 error format 210 211Returns: 212 An object of the form: 213 214 { # Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search. 215 "disableModifications": True or False, # If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data. 216 "disableServing": True or False, # Disable serving any search or assist results. 217 "displayName": "A String", # Required. Display name of the datasource The maximum length is 300 characters. 218 "indexingServiceAccounts": [ # List of service accounts that have indexing access. 219 "A String", 220 ], 221 "itemsVisibility": [ # This field restricts visibility to items at the datasource level. Items within the datasource are restricted to the union of users and groups included in this field. Note that, this does not ensure access to a specific item, as users need to have ACL permissions on the contained items. This ensures a high level access on the entire datasource, and that the individual items are not shared outside this visibility. 222 { 223 "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the customer. 224 "gsuiteGroupEmail": "A String", # This principal references a G Suite group account 225 "gsuiteUserEmail": "A String", # This principal references a G Suite user account 226 }, 227 ], 228 "name": "A String", # Name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource. 229 "operationIds": [ # IDs of the Long Running Operations (LROs) currently running for this schema. 230 "A String", 231 ], 232 "returnThumbnailUrls": True or False, # Can a user request to get thumbnail URI for Items indexed in this data source. 233 "shortName": "A String", # A short name or alias for the source. This value will be used to match the 'source' operator. For example, if the short name is *<value>* then queries like *source:<value>* will only return results for this source. The value must be unique across all datasources. The value must only contain alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google' and cannot be one of the following: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32 characters. 234}</pre> 235</div> 236 237<div class="method"> 238 <code class="details" id="list">list(debugOptions_enableDebugging=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 239 <pre>Lists datasources. **Note:** This API requires an admin account to execute. 240 241Args: 242 debugOptions_enableDebugging: boolean, If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 243 pageSize: integer, Maximum number of datasources to fetch in a request. The max value is 100. The default value is 10 244 pageToken: string, Starting index of the results. 245 x__xgafv: string, V1 error format. 246 Allowed values 247 1 - v1 error format 248 2 - v2 error format 249 250Returns: 251 An object of the form: 252 253 { 254 "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. 255 "sources": [ 256 { # Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search. 257 "disableModifications": True or False, # If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data. 258 "disableServing": True or False, # Disable serving any search or assist results. 259 "displayName": "A String", # Required. Display name of the datasource The maximum length is 300 characters. 260 "indexingServiceAccounts": [ # List of service accounts that have indexing access. 261 "A String", 262 ], 263 "itemsVisibility": [ # This field restricts visibility to items at the datasource level. Items within the datasource are restricted to the union of users and groups included in this field. Note that, this does not ensure access to a specific item, as users need to have ACL permissions on the contained items. This ensures a high level access on the entire datasource, and that the individual items are not shared outside this visibility. 264 { 265 "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the customer. 266 "gsuiteGroupEmail": "A String", # This principal references a G Suite group account 267 "gsuiteUserEmail": "A String", # This principal references a G Suite user account 268 }, 269 ], 270 "name": "A String", # Name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource. 271 "operationIds": [ # IDs of the Long Running Operations (LROs) currently running for this schema. 272 "A String", 273 ], 274 "returnThumbnailUrls": True or False, # Can a user request to get thumbnail URI for Items indexed in this data source. 275 "shortName": "A String", # A short name or alias for the source. This value will be used to match the 'source' operator. For example, if the short name is *<value>* then queries like *source:<value>* will only return results for this source. The value must be unique across all datasources. The value must only contain alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google' and cannot be one of the following: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32 characters. 276 }, 277 ], 278}</pre> 279</div> 280 281<div class="method"> 282 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 283 <pre>Retrieves the next page of results. 284 285Args: 286 previous_request: The request for the previous page. (required) 287 previous_response: The response from the request for the previous page. (required) 288 289Returns: 290 A request object that you can call 'execute()' on to request the next 291 page. Returns None if there are no more items in the collection. 292 </pre> 293</div> 294 295<div class="method"> 296 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code> 297 <pre>Updates a datasource. **Note:** This API requires an admin account to execute. 298 299Args: 300 name: string, Name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource. (required) 301 body: object, The request body. 302 The object takes the form of: 303 304{ 305 "debugOptions": { # Shared request debug options for all cloudsearch RPC methods. # Common debug options. 306 "enableDebugging": True or False, # If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. 307 }, 308 "source": { # Datasource is a logical namespace for items to be indexed. All items must belong to a datasource. This is the prerequisite before items can be indexed into Cloud Search. 309 "disableModifications": True or False, # If true, sets the datasource to read-only mode. In read-only mode, the Indexing API rejects any requests to index or delete items in this source. Enabling read-only mode does not stop the processing of previously accepted data. 310 "disableServing": True or False, # Disable serving any search or assist results. 311 "displayName": "A String", # Required. Display name of the datasource The maximum length is 300 characters. 312 "indexingServiceAccounts": [ # List of service accounts that have indexing access. 313 "A String", 314 ], 315 "itemsVisibility": [ # This field restricts visibility to items at the datasource level. Items within the datasource are restricted to the union of users and groups included in this field. Note that, this does not ensure access to a specific item, as users need to have ACL permissions on the contained items. This ensures a high level access on the entire datasource, and that the individual items are not shared outside this visibility. 316 { 317 "gsuiteDomain": True or False, # This principal represents all users of the G Suite domain of the customer. 318 "gsuiteGroupEmail": "A String", # This principal references a G Suite group account 319 "gsuiteUserEmail": "A String", # This principal references a G Suite user account 320 }, 321 ], 322 "name": "A String", # Name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource. 323 "operationIds": [ # IDs of the Long Running Operations (LROs) currently running for this schema. 324 "A String", 325 ], 326 "returnThumbnailUrls": True or False, # Can a user request to get thumbnail URI for Items indexed in this data source. 327 "shortName": "A String", # A short name or alias for the source. This value will be used to match the 'source' operator. For example, if the short name is *<value>* then queries like *source:<value>* will only return results for this source. The value must be unique across all datasources. The value must only contain alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google' and cannot be one of the following: mail, gmail, docs, drive, groups, sites, calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32 characters. 328 }, 329} 330 331 x__xgafv: string, V1 error format. 332 Allowed values 333 1 - v1 error format 334 2 - v2 error format 335 336Returns: 337 An object of the form: 338 339 { # This resource represents a long-running operation that is the result of a network API call. 340 "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. 341 "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. 342 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 343 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 344 { 345 "a_key": "", # Properties of the object. Contains field @type with type URL. 346 }, 347 ], 348 "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. 349 }, 350 "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. 351 "a_key": "", # Properties of the object. Contains field @type with type URL. 352 }, 353 "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}`. 354 "response": { # The normal response of the operation in case of success. 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`. 355 "a_key": "", # Properties of the object. Contains field @type with type URL. 356 }, 357}</pre> 358</div> 359 360</body></html>