Esempio n. 1
0
 class Meta:
     list_allowed_methods = ['get']
     queryset = Notice.objects.all()
     resource_name = 'NoticeResource'
     authentication = MultiAuthentication(aix_user_Authentication(),
                                          common_admin_authentication(),
                                          sys_admin_authentication())
     authorization = DjangoAuthorization()
Esempio n. 2
0
 class Meta:
     list_allowed_methods = ['get', 'put']
     filtering = {
         'approve_status': ALL_WITH_RELATIONS,
     }
     queryset = Approve.objects.all()
     ordering = ['-id']
     resource_name = 'approve'
     authentication = MultiAuthentication(common_admin_authentication(),
                                          sys_admin_authentication())
     authorization = DjangoAuthorization()
Esempio n. 3
0
    class Meta:
        list_allowed_methods = ['get', 'put']

        filtering = {
            'status': ALL_WITH_RELATIONS,
        }

        queryset = SystemResourceAlert.objects.all()
        resource_name = 'system_alert'
        authentication = MultiAuthentication(common_admin_authentication(),
                                             sys_admin_authentication())
        authorization = DjangoAuthorization()
Esempio n. 4
0
 class Meta:
     list_allowed_methods = ['get']
     queryset = SystemResourceAlertStatus.objects.all()
     filtering = {
         'status_id': (
             'exact',
             'startswith',
         )
     }
     resource_name = 'system_alert_status'
     authentication = MultiAuthentication(sys_admin_authentication())
     authorization = DjangoAuthorization()
Esempio n. 5
0
 class Meta:
     list_allowed_methods = ['get', 'post', 'put']
     filtering = {
         'request_status': ALL_WITH_RELATIONS,
     }
     queryset = ServiceRequest.objects.all()
     resource_name = 'service_request_by_user'
     excludes = ['submitter', 'user']
     authentication = MultiAuthentication(aix_user_Authentication(),
                                          vmware_user_Authentication(),
                                          common_admin_authentication(),
                                          sys_admin_authentication())
     authorization = DjangoAuthorization()
Esempio n. 6
0
    class Meta:
        queryset = User.objects.all()
        resource_name = 'user'
        excludes = [
            'email', 'password', 'is_active', 'is_staff', 'is_superuser'
        ]
        allowed_methods = ['get']

        authentication = MultiAuthentication(aix_user_Authentication(),
                                             vmware_user_Authentication(),
                                             common_admin_authentication(),
                                             sys_admin_authentication())
        authorization = DjangoAuthorization()
Esempio n. 7
0
    class Meta:
        list_allowed_methods = ['get']
        queryset = RequestType.objects.all()
        resource_name = 'RequestType'

        filtering = {
            'request_type_id': (
                'exact',
                'startswith',
            )
        }
        authentication = MultiAuthentication(common_admin_authentication(),
                                             sys_admin_authentication())
        authorization = DjangoAuthorization()
Esempio n. 8
0
 class Meta:
     list_allowed_methods = ['get']
     queryset = ApproveStatus.objects.all()
     filtering = {
         'approve_status_id': (
             'exact',
             'startswith',
         )
     }
     resource_name = 'ApproveStatus'
     #excludes=['approve_status_id']
     authentication = MultiAuthentication(common_admin_authentication(),
                                          sys_admin_authentication())
     authorization = DjangoAuthorization()
Esempio n. 9
0
    class Meta:
        list_allowed_methods = ['get']
        queryset = RequestStatus.objects.all()

        filtering = {
            'request_status_id': (
                'lt',
                'tg',
                'exact',
                'startswith',
            )
        }
        resource_name = 'RequestStatus'
        authentication = MultiAuthentication(aix_user_Authentication(),
                                             vmware_user_Authentication(),
                                             common_admin_authentication(),
                                             sys_admin_authentication())
        authorization = DjangoAuthorization()
Esempio n. 10
0
 class Meta:
     list_allowed_methods = ['get']
     queryset = vioclient_usage_log.objects.all()
     resource_name = 'vioclient_usage_log'
     authentication = MultiAuthentication(sys_admin_authentication())
     authorization = DjangoAuthorization()