@@ -173,18 +173,18 @@ class CloudObjectStorage(object):
173
173
def __init__ (self , sparkcontext , credentials , configuration_name = '' , cos_type = 'softlayer_cos' , auth_method = 'api_key' , bucket_name = '' ):
174
174
175
175
'''
176
- This class allows you to connect to a cloud object storage (COS) instance. It also support connecting to a cos instance
176
+ This class allows you to connect to an IBM cloud object storage (COS) instance. It also support connecting to an IBM COS instance
177
177
that is being hosted on bluemix.
178
178
179
179
sparkcontext: a SparkContext object.
180
180
181
181
credentials: a dictionary with the required keys to connect to cos. The required keys differ according
182
- to the type of cos .
183
- - for cos type "softlayer_cos" the following key are required:
182
+ to the type of COS .
183
+ - for COS type "softlayer_cos" the following key are required:
184
184
* endpoint
185
185
* access_key
186
186
* secret_key
187
- - for cos type "bluemix_cos", here are the required/optional key:
187
+ - for COS type "bluemix_cos", here are the required/optional key:
188
188
* endpoint [required]
189
189
* service_id [required]
190
190
* api_key OR iam_token depends on the selected authorization method (auth_method) [required]
@@ -196,10 +196,10 @@ def __init__(self, sparkcontext, credentials, configuration_name='', cos_type='s
196
196
multiple configurations to different Object Storage accounts.
197
197
if a configuration name is not passed the default one will be used "service".
198
198
199
- cos_type [optional]: string that identifies the type of cos to connect to. The supported types of cos
199
+ cos_type [optional]: string that identifies the type of COS to connect to. The supported types of COS
200
200
are "softlayer_cos" and "bluemix_cos". "softlayer_cos" will be chosen as default if no cos_type is passed.
201
201
202
- auth_method [optional]: string that identifies the type of authorization to use when connecting to cos . This parameter
202
+ auth_method [optional]: string that identifies the type of authorization to use when connecting to an IBM COS . This parameter
203
203
is not reqired for softlayer_cos but only needed for bluemix_cos. Two options can be chosen for this params
204
204
"api_key" or "iam_token". "api_key" will be chosen as default if the value is not set.
205
205
0 commit comments