Skip to content

Commit f6ce170

Browse files
author
gadamc
committed
removing deprecated classes
1 parent a219661 commit f6ce170

File tree

2 files changed

+1
-58
lines changed

2 files changed

+1
-58
lines changed

python/ibmos2spark/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
Helper to connect to Softlayer and Bluemix ObjectStore from IBM Spark Service
1717
"""
1818
from .__info__ import __version__
19-
from .osconfig import softlayer, bluemix, softlayer2d, bluemix2d
19+
from .osconfig import softlayer, bluemix

python/ibmos2spark/osconfig.py

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -108,26 +108,6 @@ def __init__(self, sparkcontext, name, auth_url, tenant, username, password=None
108108
def url(self, container_name, object_name):
109109
return swifturl2d(self.name, container_name, object_name)
110110

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-
131111

132112
class bluemix(object):
133113

@@ -190,40 +170,3 @@ def __init__(self, sparkcontext, credentials, name=None, public=False, swift2d_d
190170

191171
def url(self, container_name, object_name):
192172
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

Comments
 (0)