Metadata-Version: 2.0
Name: CATools
Version: 0.0.1
Summary: Helper Library for CA Service Desk Soap API
Home-page: https://github.com/jsarver/catools
Author: Josh Sarver
Author-email: josh.sarver@gmail.com
License: Copyright (c) 2016, Josh Sarver
Requires-Dist: pyyaml
Requires-Dist: suds-jurko

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Download-URL: https://github.com/jsarver/catools/tarball/v0.0.1-alpha
Description: Soap Helper Library for CA Service Desk
        
        Features
        Create and update any Object
        Create and update tickets
        Create and contacts
        
        Usage:
        #creating a client that interfaces with CA
        client = login("hostname", "username", "password")
        
        #Now you can perform several tasks
        results = client.searchObjects("cnt","last_name='smith'",-1, ["last_name","first_name"])
        #print list of users
        for user in results.to_dict():
            print(user['last_name'], user['first_name']
        
        
        #Update an object
        #query for users named smith and asking to only return the last_name and first_name attributes
        results = client.searchObjects("cnt", "last_name='smith'",-1, ["last_name","first_name"])
        
        #pick first user from search
        user = results[0]
        #change users first name to ned
        c.updateObject(user['handle'], ["first_name","ned"], ["first_name","last_name"])
        
        #list attributes for an object
        print(client.listAttributes('cnt'))
        
        
Keywords: soap,ca service desk
Platform: UNKNOWN
