Skip to content

Commit 7c6d1e7

Browse files
committed
Update description
1 parent 8957767 commit 7c6d1e7

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

r/sparkr/R/osconfig.R

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,33 @@ bluemix <- setRefClass("bluemix",
115115
)
116116

117117
#' CloudObjectStorage is a class that is designed for IBM cloud object storage (COS)
118-
#' It sets up the hadoop config for COS and provide the final file url.
118+
#' It sets up the hadoop config for COS and provide the final file url. It also supports
119+
# connecting to an IBM COS instance that is being hosted on bluemix.
119120
#'
120121
#' sparkContext: a SparkContext object.
121122
#''
122-
#' credentials: a dictionary with the following required keys:
123-
#' endpoint
124-
#' accessKey
125-
#' secretKey
123+
#' credentials: a dictionary with the required keys to connect to an IBM cloud object storage.
124+
#' The required keys differ according to the type of COS.
125+
#' - for COS type "softlayer_cos" the following keys are required:
126+
#' endpoint [required]
127+
#' accessKey [required]
128+
#' secretKey [required]
129+
#' - for COS type "bluemix_cos", here are the required/optional key:
130+
#' endPoint [required]
131+
#' serviceId [required]
132+
#' apiKey OR iamToken depends on the selected authorization method (authMethod) [required]
133+
#' iamServiceEndpoint [optional] (default: https://iam.ng.bluemix.net/oidc/token)
134+
#' v2SignerType [optional]
135+
#'
136+
#' configurationName: string identifies the configurations to be set.
137+
#'
138+
#'
139+
#' cosType [optional]: string that identifies the type of COS to connect to. The supported types of COS
140+
#' are "softlayer_cos" and "bluemix_cos". "softlayer_cos" will be chosen as default if no cosType is passed.
126141
#'
127-
#' configurationName: string identifies the configurations that has been
128-
#' set.
142+
#' authMethod [optional]: string that identifies the type of authorization method to use when connecting to COS. This parameter
143+
#' is not reqired for softlayer_cos but only needed for bluemix_cos. Two options can be chosen for this params
144+
#' "api_key" or "iam_token". "api_key" will be chosen as default if the value is not set.
129145
#' @export CloudObjectStorage
130146
#' @exportClass CloudObjectStorage
131147
CloudObjectStorage <- setRefClass("CloudObjectStorage",

0 commit comments

Comments
 (0)