@@ -0,0 +1,1654 @@
+# Copyright 2018, Red Hat, Inc.%0A# Alan Rominger %3Carominge@redhat.com%3E%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#     http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0Afrom tower_cli import models%0Afrom tower_cli.cli import types%0A%0A%0Aclass Resource(models.BaseResource):%0A    %22%22%22A resource for job events.%22%22%22%0A    cli_help = 'View events from jobs.'%0A    endpoint = '/job_events/'%0A    internal = True%0A%0A    job = models.Field(%0A        type=types.Related('job'), display=True%0A    )%0A    host = models.Field(%0A        type=types.Related('host'), display=True%0A    )%0A    parent = models.Field(%0A        type=types.Related('job_event'), display=False%0A    )%0A    event = models.Field()%0A    playbook = models.Field()%0A    play = models.Field()%0A    task = models.Field()%0A    role = models.Field()%0A    counter = models.Field(display=False)%0A    event_level = models.Field(display=False)%0A    event_data = models.Field(display=False)%0A    failed = models.Field(display=False, type=bool)%0A    changed = models.Field(type=bool)%0A    verbosity = models.Field(display=False)%0A%0A    def __getattribute__(self, attr):%0A        if attr == 'delete':%0A            raise AttributeError%0A        return super(Resource, self).__getattribute__(attr)%0A

add job event resource