SourceOptions
public struct SourceOptions : Codable, Equatable
The options object defines which items to crawl from the source system.
-
Array of folders to crawl from the Box source. Only valid, and required, when the type field of the source object is set to
box.Declaration
Swift
public var folders: [SourceOptionsFolder]? -
Array of Salesforce document object types to crawl from the Salesforce source. Only valid, and required, when the type field of the source object is set to
salesforce.Declaration
Swift
public var objects: [SourceOptionsObject]? -
Array of Microsoft SharePointoint Online site collections to crawl from the SharePoint source. Only valid and required when the type field of the source object is set to
sharepoint.Declaration
Swift
public var siteCollections: [SourceOptionsSiteColl]? -
Array of Web page URLs to begin crawling the web from. Only valid and required when the type field of the source object is set to
web_crawl.Declaration
Swift
public var urls: [SourceOptionsWebCrawl]? -
Array of cloud object store buckets to begin crawling. Only valid and required when the type field of the source object is set to
cloud_object_store, and the crawl_all_buckets field isfalseor not specified.Declaration
Swift
public var buckets: [SourceOptionsBuckets]? -
When
true, all buckets in the specified cloud object store are crawled. If set totrue, the buckets array must not be specified.Declaration
Swift
public var crawlAllBuckets: Bool? -
Initialize a
SourceOptionswith member variables.Declaration
Swift
public init( folders: [SourceOptionsFolder]? = nil, objects: [SourceOptionsObject]? = nil, siteCollections: [SourceOptionsSiteColl]? = nil, urls: [SourceOptionsWebCrawl]? = nil, buckets: [SourceOptionsBuckets]? = nil, crawlAllBuckets: Bool? = nil )Parameters
foldersArray of folders to crawl from the Box source. Only valid, and required, when the type field of the source object is set to
box.objectsArray of Salesforce document object types to crawl from the Salesforce source. Only valid, and required, when the type field of the source object is set to
salesforce.siteCollectionsArray of Microsoft SharePointoint Online site collections to crawl from the SharePoint source. Only valid and required when the type field of the source object is set to
sharepoint.urlsArray of Web page URLs to begin crawling the web from. Only valid and required when the type field of the source object is set to
web_crawl.bucketsArray of cloud object store buckets to begin crawling. Only valid and required when the type field of the source object is set to
cloud_object_store, and the crawl_all_buckets field isfalseor not specified.crawlAllBucketsWhen
true, all buckets in the specified cloud object store are crawled. If set totrue, the buckets array must not be specified.Return Value
An initialized
SourceOptions.
View on GitHub
SourceOptions Structure Reference