compliance/compliance.py
def list_jobs(self, type):
        """
        Return a 'data' array of job objects.
       """
        job_list = {}

        #Optional request parameters: status, start_time, end_time
        response = requests.get(f"{self.url}?type={type}", auth=self.bearer_oauth, headers=self.headers)

        if response.status_code != 200:
            print(f"Error requesting Job list: {response.status_code} | {response.text}")
            return job_list

        response_dict = response.json()

        job_list = response_dict['data']

        return job_list

        Return a 'data' array of job objects.
       
Return a 'data' array of job objects.
Return a ' data ' array of job objects .
def list_jobs(self, type):
        job_list = {}
        response = requests.get(f"{self.url}?type={type}", auth=self.bearer_oauth, headers=self.headers)
        if response.status_code != 200:
            print(f"Error requesting Job list: {response.status_code} | {response.text}")
            return job_list
        response_dict = response.json()
        job_list = response_dict['data']
        return job_list
def list_jobs ( self , type ) : job_list = { } response = requests . get ( f"{self.url}?type={type}" , auth = self . bearer_oauth , headers = self . headers ) if response . status_code != 200 : print ( f"Error requesting Job list: {response.status_code} | {response.text}" ) return job_list response_dict = response . json ( ) job_list = response_dict [ 'data' ] return job_list
Return a 'data' array of job objects.
Return a ' data ' array of job objects .
"""
        Return a 'data' array of job objects.
       """ #Optional request parameters: status, start_time, end_time
self
type