CredentialDetails
public struct CredentialDetails : Codable, Equatable
                Object containing details of the stored credentials. Obtain credentials for your source from the administrator of the source.
- 
                  
                  
The authentication method for this credentials definition. The credential_type specified must be supported by the source_type. The following combinations are possible:
"source_type": "box"- validcredential_types:oauth2"source_type": "salesforce"- validcredential_types:username_password"source_type": "sharepoint"- validcredential_types:samlwith source_version ofonline, orntlm_v1with source_version of2016"source_type": "web_crawl"- validcredential_types:noauthorbasic- “source_type”: “cloud_object_storage”
- validcredential_types:aws4_hmac`. 
Declaration
Swift
public enum CredentialType : String - 
                  
                  
The type of Sharepoint repository to connect to. Only valid, and required, with a source_type of
See moresharepoint.Declaration
Swift
public enum SourceVersion : String - 
                  
                  
The authentication method for this credentials definition. The credential_type specified must be supported by the source_type. The following combinations are possible:
"source_type": "box"- validcredential_types:oauth2"source_type": "salesforce"- validcredential_types:username_password"source_type": "sharepoint"- validcredential_types:samlwith source_version ofonline, orntlm_v1with source_version of2016"source_type": "web_crawl"- validcredential_types:noauthorbasic- “source_type”: “cloud_object_storage”
- validcredential_types:aws4_hmac`. 
Declaration
Swift
public var credentialType: String? - 
                  
                  
The client_id of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2.Declaration
Swift
public var clientID: String? - 
                  
                  
The enterprise_id of the Box site that these credentials connect to. Only valid, and required, with a source_type of
box.Declaration
Swift
public var enterpriseID: String? - 
                  
                  
The url of the source that these credentials connect to. Only valid, and required, with a credential_type of
username_password,noauth, andbasic.Declaration
Swift
public var url: String? - 
                  
                  
The username of the source that these credentials connect to. Only valid, and required, with a credential_type of
saml,username_password,basic, orntlm_v1.Declaration
Swift
public var username: String? - 
                  
                  
The organization_url of the source that these credentials connect to. Only valid, and required, with a credential_type of
saml.Declaration
Swift
public var organizationURL: String? - 
                  
                  
The site_collection.path of the source that these credentials connect to. Only valid, and required, with a source_type of
sharepoint.Declaration
Swift
public var siteCollectionPath: String? - 
                  
                  
The client_secret of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.Declaration
Swift
public var clientSecret: String? - 
                  
                  
The public_key_id of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.Declaration
Swift
public var publicKeyID: String? - 
                  
                  
The private_key of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.Declaration
Swift
public var privateKey: String? - 
                  
                  
The passphrase of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.Declaration
Swift
public var passphrase: String? - 
                  
                  
The password of the source that these credentials connect to. Only valid, and required, with credential_types of
saml,username_password,basic, orntlm_v1. Note: When used with a source_type ofsalesforce, the password consists of the Salesforce password and a valid Salesforce security token concatenated. This value is never returned and is only used when creating or modifying credentials.Declaration
Swift
public var password: String? - 
                  
                  
The ID of the gateway to be connected through (when connecting to intranet sites). Only valid with a credential_type of
noauth,basic, orntlm_v1. Gateways are created using the/v1/environments/{environment_id}/gatewaysmethods.Declaration
Swift
public var gatewayID: String? - 
                  
                  
The type of Sharepoint repository to connect to. Only valid, and required, with a source_type of
sharepoint.Declaration
Swift
public var sourceVersion: String? - 
                  
                  
SharePoint OnPrem WebApplication URL. Only valid, and required, with a source_version of
2016. If a port is not supplied, the default to port80for http and port443for https connections are used.Declaration
Swift
public var webApplicationURL: String? - 
                  
                  
The domain used to log in to your OnPrem SharePoint account. Only valid, and required, with a source_version of
2016.Declaration
Swift
public var domain: String? - 
                  
                  
The endpoint associated with the cloud object store that your are connecting to. Only valid, and required, with a credential_type of
aws4_hmac.Declaration
Swift
public var endpoint: String? - 
                  
                  
The access key ID associated with the cloud object store. Only valid, and required, with a credential_type of
aws4_hmac. This value is never returned and is only used when creating or modifying credentials. For more infomation, see the cloud object store documentation.Declaration
Swift
public var accessKeyID: String? - 
                  
                  
The secret access key associated with the cloud object store. Only valid, and required, with a credential_type of
aws4_hmac. This value is never returned and is only used when creating or modifying credentials. For more infomation, see the cloud object store documentation.Declaration
Swift
public var secretAccessKey: String? - 
                  
init(credentialType:clientID: enterpriseID: url: username: organizationURL: siteCollectionPath: clientSecret: publicKeyID: privateKey: passphrase: password: gatewayID: sourceVersion: webApplicationURL: domain: endpoint: accessKeyID: secretAccessKey: ) Initialize a
CredentialDetailswith member variables.Declaration
Swift
public init( credentialType: String? = nil, clientID: String? = nil, enterpriseID: String? = nil, url: String? = nil, username: String? = nil, organizationURL: String? = nil, siteCollectionPath: String? = nil, clientSecret: String? = nil, publicKeyID: String? = nil, privateKey: String? = nil, passphrase: String? = nil, password: String? = nil, gatewayID: String? = nil, sourceVersion: String? = nil, webApplicationURL: String? = nil, domain: String? = nil, endpoint: String? = nil, accessKeyID: String? = nil, secretAccessKey: String? = nil )Parameters
credentialTypeThe authentication method for this credentials definition. The credential_type specified must be supported by the source_type. The following combinations are possible:
"source_type": "box"- validcredential_types:oauth2"source_type": "salesforce"- validcredential_types:username_password"source_type": "sharepoint"- validcredential_types:samlwith source_version ofonline, orntlm_v1with source_version of2016"source_type": "web_crawl"- validcredential_types:noauthorbasic- “source_type”: “cloud_object_storage”
- validcredential_types:aws4_hmac`. 
clientIDThe client_id of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2.enterpriseIDThe enterprise_id of the Box site that these credentials connect to. Only valid, and required, with a source_type of
box.urlThe url of the source that these credentials connect to. Only valid, and required, with a credential_type of
username_password,noauth, andbasic.usernameThe username of the source that these credentials connect to. Only valid, and required, with a credential_type of
saml,username_password,basic, orntlm_v1.organizationURLThe organization_url of the source that these credentials connect to. Only valid, and required, with a credential_type of
saml.siteCollectionPathThe site_collection.path of the source that these credentials connect to. Only valid, and required, with a source_type of
sharepoint.clientSecretThe client_secret of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.publicKeyIDThe public_key_id of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.privateKeyThe private_key of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.passphraseThe passphrase of the source that these credentials connect to. Only valid, and required, with a credential_type of
oauth2. This value is never returned and is only used when creating or modifying credentials.passwordThe password of the source that these credentials connect to. Only valid, and required, with credential_types of
saml,username_password,basic, orntlm_v1. Note: When used with a source_type ofsalesforce, the password consists of the Salesforce password and a valid Salesforce security token concatenated. This value is never returned and is only used when creating or modifying credentials.gatewayIDThe ID of the gateway to be connected through (when connecting to intranet sites). Only valid with a credential_type of
noauth,basic, orntlm_v1. Gateways are created using the/v1/environments/{environment_id}/gatewaysmethods.sourceVersionThe type of Sharepoint repository to connect to. Only valid, and required, with a source_type of
sharepoint.webApplicationURLSharePoint OnPrem WebApplication URL. Only valid, and required, with a source_version of
2016. If a port is not supplied, the default to port80for http and port443for https connections are used.domainThe domain used to log in to your OnPrem SharePoint account. Only valid, and required, with a source_version of
2016.endpointThe endpoint associated with the cloud object store that your are connecting to. Only valid, and required, with a credential_type of
aws4_hmac.accessKeyIDThe access key ID associated with the cloud object store. Only valid, and required, with a credential_type of
aws4_hmac. This value is never returned and is only used when creating or modifying credentials. For more infomation, see the cloud object store documentation.secretAccessKeyThe secret access key associated with the cloud object store. Only valid, and required, with a credential_type of
aws4_hmac. This value is never returned and is only used when creating or modifying credentials. For more infomation, see the cloud object store documentation.Return Value
An initialized
CredentialDetails. 
View on GitHub
        CredentialDetails Structure Reference