Source
public struct Source : Codable, Equatable
Object containing source parameters for the configuration.
-
The type of source to connect to.
boxindicates the configuration is to connect an instance of Enterprise Box.salesforceindicates the configuration is to connect to Salesforce.sharepointindicates the configuration is to connect to Microsoft SharePoint Online.web_crawlindicates the configuration is to perform a web page crawl.cloud_object_storageindicates the configuration is to connect to a cloud object store.
Declaration
Swift
public enum TypeEnum : String -
The type of source to connect to.
boxindicates the configuration is to connect an instance of Enterprise Box.salesforceindicates the configuration is to connect to Salesforce.sharepointindicates the configuration is to connect to Microsoft SharePoint Online.web_crawlindicates the configuration is to perform a web page crawl.cloud_object_storageindicates the configuration is to connect to a cloud object store.
Declaration
Swift
public var type: String? -
The credential_id of the credentials to use to connect to the source. Credentials are defined using the credentials method. The source_type of the credentials used must match the type field specified in this object.
Declaration
Swift
public var credentialID: String? -
Object containing the schedule information for the source.
Declaration
Swift
public var schedule: SourceSchedule? -
The options object defines which items to crawl from the source system.
Declaration
Swift
public var options: SourceOptions? -
Initialize a
Sourcewith member variables.Declaration
Swift
public init( type: String? = nil, credentialID: String? = nil, schedule: SourceSchedule? = nil, options: SourceOptions? = nil )Parameters
typeThe type of source to connect to.
boxindicates the configuration is to connect an instance of Enterprise Box.salesforceindicates the configuration is to connect to Salesforce.sharepointindicates the configuration is to connect to Microsoft SharePoint Online.web_crawlindicates the configuration is to perform a web page crawl.cloud_object_storageindicates the configuration is to connect to a cloud object store.
credentialIDThe credential_id of the credentials to use to connect to the source. Credentials are defined using the credentials method. The source_type of the credentials used must match the type field specified in this object.
scheduleObject containing the schedule information for the source.
optionsThe options object defines which items to crawl from the source system.
Return Value
An initialized
Source.
View on GitHub
Source Structure Reference