current function pattern is : CloudObjectStorage(sc, credentials, configurationName, "bluemix_cos")
It's wrong to call "bluemix_cos" for IAM usage and SoftLayer_cos for usage with access key and password. Both brandings are not in use by IBM anymore.
It also confuse our customers and i suggest the last entry in the function better be removed at all.
I suggest:
If user provided credentials with api_key, service_jd then use IAM based authentication, otherwise if user provided access_key then use old style authentication.
If user provided both - then choose IAM as default.