@@ -108,26 +108,6 @@ def __init__(self, sparkcontext, name, auth_url, tenant, username, password=None
108
108
def url (self , container_name , object_name ):
109
109
return swifturl2d (self .name , container_name , object_name )
110
110
111
- class softlayer2d (softlayer ):
112
-
113
- def __init__ (self , sparkcontext , name , auth_url , tenant , username , password ,
114
- swift2d_driver = 'com.ibm.stocator.fs.ObjectStoreFileSystem' , public = False ):
115
- '''
116
- WARNING: This class will be deprecated by spring 2017. Use the 'softlayer' class directly.
117
-
118
- sparkcontext is a SparkContext object.
119
-
120
- name is a string that identifies this configuration. You can
121
- use any string you like. This allows you to create
122
- multiple configurations to different Object Storage accounts.
123
-
124
- auth_url, tenant username and password are string credentials for your
125
- Softlayer Object Store
126
- '''
127
-
128
- super (softlayer2d , self ).__init__ (sparkcontext , name , auth_url , tenant , username , password , public , swift2d_driver )
129
- warnings .warn ('This class will be deprecated by spring 2017. Use the \' softlayer\' class directly.' , UserWarning )
130
-
131
111
132
112
class bluemix (object ):
133
113
@@ -190,40 +170,3 @@ def __init__(self, sparkcontext, credentials, name=None, public=False, swift2d_d
190
170
191
171
def url (self , container_name , object_name ):
192
172
return swifturl2d (self .name , container_name , object_name )
193
-
194
- class bluemix2d (bluemix ):
195
-
196
- def __init__ (self , sparkcontext , credentials , name = None ,
197
- swift2d_driver = 'com.ibm.stocator.fs.ObjectStoreFileSystem' ,
198
- public = False ):
199
- '''
200
- WARNING: This class will be deprecated by spring 2017. Use the 'bluemix' class directly.
201
-
202
- sparkcontext: a SparkContext object.
203
-
204
- credentials: a dictionary with the following required keys:
205
-
206
- auth_url
207
- project_id (or projectId)
208
- user_id (or userId)
209
- password
210
- region
211
-
212
- and optional key:
213
- name #[to be deprecated] The name of the configuration.
214
-
215
- name: string that identifies this configuration. You can
216
- use any string you like. This allows you to create
217
- multiple configurations to different Object Storage accounts.
218
- This is not required at the moment, since credentials['name']
219
- is still supported.
220
-
221
- When using this from a IBM Spark service instance that
222
- is configured to connect to particular Bluemix object store
223
- instances, the values for these credentials can be obtained
224
- by clicking on the 'insert to code' link just below a data
225
- source.
226
- '''
227
- super (bluemix2d , self ).__init__ (sparkcontext , credentials , name , public , swift2d_driver )
228
- warnings .warn ('This class will be deprecated by spring 2017. Use the \' bluemix\' class directly.' , UserWarning )
229
-
0 commit comments