@@ -115,17 +115,33 @@ bluemix <- setRefClass("bluemix",
115
115
)
116
116
117
117
# ' 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.
119
120
# '
120
121
# ' sparkContext: a SparkContext object.
121
122
# ''
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.
126
141
# '
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.
129
145
# ' @export CloudObjectStorage
130
146
# ' @exportClass CloudObjectStorage
131
147
CloudObjectStorage <- setRefClass(" CloudObjectStorage" ,
0 commit comments