# Path: vitrageclient/client.py
# def Client(version, *args, **kwargs):
#     def request(self, url, method, **kwargs):
# class VitrageClient(keystoneauth.Adapter):
# 
# Path: vitrageclient/v1/alarm.py
# class Alarm(object):
#     def __init__(self, api):
#     def list(self, vitrage_id, all_tenants=False,
#              limit=1000,
#              sort_by=['start_timestamp', 'vitrage_id'],
#              sort_dirs=['asc', 'asc'],
#              filter_by=None,
#              filter_vals=None,
#              next_page=True,
#              marker=None):
#     def history(self, all_tenants=False,
#                 start=None,
#                 end=None,
#                 limit=1000,
#                 sort_by=('start_timestamp', 'vitrage_id'),
#                 sort_dirs=('asc', 'asc'),
#                 filter_by=None,
#                 filter_vals=None,
#                 next_page=True,
#                 marker=None):
#     def get(self, vitrage_id):
#     def count(self, all_tenants=False):
# 
# Path: vitrageclient/v1/event.py
# class Event(object):
#     URL = 'v1/event/'
#     def __init__(self, api):
#     def post(self, event_time, event_type, details):
# 
# Path: vitrageclient/v1/healthcheck.py
# class HealthCheck(object):
#     URL = 'healthcheck/'
#     STATUS_CODE_OK = 200
#     def __init__(self, api):
#     def get(self):
# 
# Path: vitrageclient/v1/rca.py
# class Rca(object):
#     def __init__(self, api):
#     def get(self, alarm_id, all_tenants=False):
# 
# Path: vitrageclient/v1/resource.py
# class Resource(object):
#     def __init__(self, api):
#     def list(self, resource_type=None, all_tenants=False, query=None):
#     def get(self, vitrage_id):
#     def count(self, resource_type=None, all_tenants=False, query=None,
#               group_by=None):
# 
# Path: vitrageclient/v1/service.py
# class Service(object):
#     def __init__(self, api):
#     def list(self):
# 
# Path: vitrageclient/v1/status.py
# class Status(object):
#     URL = 'v1/status/'
#     def __init__(self, api):
#     def get(self):
# 
# Path: vitrageclient/v1/template.py
# class Template(object):
#     def __init__(self, api):
#     def list(self):
#     def versions(self):
#     def show(self, _id):
#     def add(self, path=None, template_type=None,
#             params=None, template_str=None, overwrite=False):
#     def delete(self, ids):
#     def validate(self, path=None, template_type=None,
#                  params=None, template_str=None):
#     def _load_yaml_files(cls, path):
#     def _load_yaml_file(cls, path):
#     def _load_yaml(cls, yaml_content):
#     def _load_template(cls, path, template_str):
# 
# Path: vitrageclient/v1/topology.py
# class Topology(object):
#     URL = 'v1/topology/'
#     def __init__(self, api):
#     def get(self,
#             limit=None,
#             graph_type='graph',
#             query=None,
#             root=None,
#             all_tenants=False):
# 
# Path: vitrageclient/v1/webhook.py
# class Webhook(object):
#     def __init__(self, api):
#     def list(self, all_tenants=False):
#     def show(self, id):
#     def add(self, url, regex_filter=None, headers=None):
#     def delete(self, id):


import logging
from vitrageclient import client
from vitrageclient.v1 import alarm
from vitrageclient.v1 import event
from vitrageclient.v1 import healthcheck
from vitrageclient.v1 import rca
from vitrageclient.v1 import resource
from vitrageclient.v1 import service
from vitrageclient.v1 import status
from vitrageclient.v1 import template
from vitrageclient.v1 import topology
from vitrageclient.v1 import webhook
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.




class Client(object):

    def __init__(self, session=None, service_type='rca', **kwargs):
        logger = logging.getLogger(__name__)
        self._api = client.VitrageClient(session, service_type=service_type,
                                         logger=logger, **kwargs)
        self.topology = topology.Topology(self._api)

# Path: vitrageclient/client.py
# def Client(version, *args, **kwargs):
#     def request(self, url, method, **kwargs):
# class VitrageClient(keystoneauth.Adapter):
# 
# Path: vitrageclient/v1/alarm.py
# class Alarm(object):
#     def __init__(self, api):
#     def list(self, vitrage_id, all_tenants=False,
#              limit=1000,
#              sort_by=['start_timestamp', 'vitrage_id'],
#              sort_dirs=['asc', 'asc'],
#              filter_by=None,
#              filter_vals=None,
#              next_page=True,
#              marker=None):
#     def history(self, all_tenants=False,
#                 start=None,
#                 end=None,
#                 limit=1000,
#                 sort_by=('start_timestamp', 'vitrage_id'),
#                 sort_dirs=('asc', 'asc'),
#                 filter_by=None,
#                 filter_vals=None,
#                 next_page=True,
#                 marker=None):
#     def get(self, vitrage_id):
#     def count(self, all_tenants=False):
# 
# Path: vitrageclient/v1/event.py
# class Event(object):
#     URL = 'v1/event/'
#     def __init__(self, api):
#     def post(self, event_time, event_type, details):
# 
# Path: vitrageclient/v1/healthcheck.py
# class HealthCheck(object):
#     URL = 'healthcheck/'
#     STATUS_CODE_OK = 200
#     def __init__(self, api):
#     def get(self):
# 
# Path: vitrageclient/v1/rca.py
# class Rca(object):
#     def __init__(self, api):
#     def get(self, alarm_id, all_tenants=False):
# 
# Path: vitrageclient/v1/resource.py
# class Resource(object):
#     def __init__(self, api):
#     def list(self, resource_type=None, all_tenants=False, query=None):
#     def get(self, vitrage_id):
#     def count(self, resource_type=None, all_tenants=False, query=None,
#               group_by=None):
# 
# Path: vitrageclient/v1/service.py
# class Service(object):
#     def __init__(self, api):
#     def list(self):
# 
# Path: vitrageclient/v1/status.py
# class Status(object):
#     URL = 'v1/status/'
#     def __init__(self, api):
#     def get(self):
# 
# Path: vitrageclient/v1/template.py
# class Template(object):
#     def __init__(self, api):
#     def list(self):
#     def versions(self):
#     def show(self, _id):
#     def add(self, path=None, template_type=None,
#             params=None, template_str=None, overwrite=False):
#     def delete(self, ids):
#     def validate(self, path=None, template_type=None,
#                  params=None, template_str=None):
#     def _load_yaml_files(cls, path):
#     def _load_yaml_file(cls, path):
#     def _load_yaml(cls, yaml_content):
#     def _load_template(cls, path, template_str):
# 
# Path: vitrageclient/v1/topology.py
# class Topology(object):
#     URL = 'v1/topology/'
#     def __init__(self, api):
#     def get(self,
#             limit=None,
#             graph_type='graph',
#             query=None,
#             root=None,
#             all_tenants=False):
# 
# Path: vitrageclient/v1/webhook.py
# class Webhook(object):
#     def __init__(self, api):
#     def list(self, all_tenants=False):
#     def show(self, id):
#     def add(self, url, regex_filter=None, headers=None):
#     def delete(self, id):


# Path: vitrageclient/v1/client.py
import logging
from vitrageclient import client
from vitrageclient.v1 import alarm
from vitrageclient.v1 import event
from vitrageclient.v1 import healthcheck
from vitrageclient.v1 import rca
from vitrageclient.v1 import resource
from vitrageclient.v1 import service
from vitrageclient.v1 import status
from vitrageclient.v1 import template
from vitrageclient.v1 import topology
from vitrageclient.v1 import webhook

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.




class Client(object):

    def __init__(self, session=None, service_type='rca', **kwargs):
        logger = logging.getLogger(__name__)
        self._api = client.VitrageClient(session, service_type=service_type,
                                         logger=logger, **kwargs)
        self.topology = topology.Topology(self._api)

        self.resource = resource.Resource(self._api)