Skip to content

Commit

Permalink
get_view_obj() removed, resolves #942
Browse files Browse the repository at this point in the history
  • Loading branch information
markheger committed Mar 20, 2020
1 parent e3c2058 commit 3477ee5
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""

__all__ = ['ActiveService', 'ActiveVersion', 'ApplicationBundle', 'ApplicationConfiguration', 'Domain', 'ExportedStream', 'Host', 'ImportedStream', 'Installation', 'Instance', 'Job', 'Metric', 'OperatorConnection', 'OperatorInputPort', 'OperatorOutputPort', 'Operator', 'PEConnection', 'PE', 'PublishedTopic', 'ResourceAllocation', 'Resource', 'ResourceTag', 'RestResource', 'StreamingAnalyticsService', 'Toolkit', 'ViewItem', 'View', 'get_view_obj']
__all__ = ['ActiveService', 'ActiveVersion', 'ApplicationBundle', 'ApplicationConfiguration', 'Domain', 'ExportedStream', 'Host', 'ImportedStream', 'Installation', 'Instance', 'Job', 'Metric', 'OperatorConnection', 'OperatorInputPort', 'OperatorOutputPort', 'Operator', 'PEConnection', 'PE', 'PublishedTopic', 'ResourceAllocation', 'Resource', 'ResourceTag', 'RestResource', 'StreamingAnalyticsService', 'Toolkit', 'ViewItem', 'View']

import logging
import requests
Expand Down Expand Up @@ -2391,14 +2391,6 @@ def get_resource(self):
return self.rest_client.make_request(self.resource)


def get_view_obj(_view, rc):
for domain in rc.get_domains():
for instance in domain.get_instances():
for view in instance.get_views():
if view.name == _view.name:
return view
return None

class StreamingAnalyticsService(object):
"""Streaming Analytics service running on IBM Cloud.
"""
Expand Down

0 comments on commit 3477ee5

Please sign in to comment.