sin 246690b51c Support workflow creation
Can use `evoque workflow-create -s workflow-spec-file`.

Co-Authored-By: Liuqing Jing <lawrancejing@gmail.com>

Change-Id: I8726e5661fb2a206c3e67b18856dcb1878e5a5f1
2015-11-23 12:33:43 +00:00

28 lines
1.0 KiB
Python

# 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.
from evoqueclient.common import http
from evoqueclient.v1 import tickets
from evoqueclient.v1 import workflows
class Client(http.HTTPClient):
"""Client for the Evoque v1 API.
"""
def __init__(self, *args, **kwargs):
"""Initialize a new client for the Evoque v1 API."""
super(Client, self).__init__(*args, **kwargs)
self.tickets = tickets.TicketManager(self)
self.workflows = workflows.WorkflowManager(self)