class Meta: list_allowed_methods = ["get", "post"] detail_allowed_methods = ["get", "put"] resource_name = "host_profile" authentication = AnonymousAuthentication() authorization = PatchedDjangoAuthorization() object_class = dict
class Meta: list_allowed_methods = ['get', 'post'] detail_allowed_methods = ['get', 'put'] resource_name = 'host_profile' authentication = AnonymousAuthentication() authorization = DjangoAuthorization() object_class = dict
class Meta: resource_name = 'ha_cluster' authorization = DjangoAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = [] include_resource_uri = False
class Meta: # ManagedTarget is a Polymorphic Model which gets related # to content_type in the __metaclass__ queryset = ManagedTarget.objects.all() resource_name = "target" excludes = ["not_deleted", "bytes_per_inode", "reformat"] filtering = { "id": ["exact", "in"], "immutable_state": ["exact"], "name": ["exact"], } authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication() ordering = ["name"] list_allowed_methods = ["get"] detail_allowed_methods = ["get", "put", "delete"] validation = TargetValidation() always_return_data = True readonly = [ "filesystems", "name", "uuid", "ha_label", "filesystem_name", "filesystem_id", ]
class Meta: # ManagedTarget is a Polymorphic Model which gets related # to content_type in the __metaclass__ queryset = ManagedTarget.objects.select_related( 'content_type', 'volume', 'volume__storage_resource__resource_class', 'volume__storage_resource__resource_class__storage_plugin', 'managedost', 'managedmdt', 'managedmgs').prefetch_related( 'managedtargetmount_set', 'managedtargetmount_set__host', 'managedtargetmount_set__host__lnet_configuration') resource_name = 'target' excludes = ['not_deleted', 'bytes_per_inode', 'reformat'] filtering = { 'kind': ['exact'], 'filesystem_id': ['exact'], 'host_id': ['exact'], 'id': ['exact', 'in'], 'immutable_state': ['exact'], 'name': ['exact'] } authorization = DjangoAuthorization() authentication = AnonymousAuthentication() ordering = ['volume_name', 'name'] list_allowed_methods = ['get', 'post', 'patch'] detail_allowed_methods = ['get', 'put', 'delete'] validation = TargetValidation() always_return_data = True readonly = [ 'active_host', 'failover_server_name', 'volume_name', 'primary_server_name', 'active_host_name', 'filesystems', 'name', 'uuid', 'primary_server', 'failover_servers', 'active_host_name', 'ha_label', 'filesystem_name', 'filesystem_id' ]
class Meta: object_class = dict resource_name = "help" detail_allowed_methods = [] list_allowed_methods = [] authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication()
class Meta: resource_name = "ha_cluster" authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ["get"] detail_allowed_methods = [] include_resource_uri = False
class Meta: resource_name = "updates_available" authorization = DjangoAuthorization() authentication = AnonymousAuthentication() validation = UpdatesAvailableAlertValidation() list_allowed_methods = ["post"] detail_allowed_methods = []
class Meta: queryset = AlertState.objects.order_by('-begin') resource_name = 'alert' filtering = { 'begin': SeverityResource.ALL_FILTER_DATE, 'end': SeverityResource.ALL_FILTER_DATE, 'message': SeverityResource.ALL_FILTER_STR, 'active': SeverityResource.ALL_FILTER_BOOL, 'dismissed': SeverityResource.ALL_FILTER_BOOL, 'id': SeverityResource.ALL_FILTER_INT, 'severity': SeverityResource.ALL_FILTER_ENUMERATION, 'created_at': SeverityResource.ALL_FILTER_DATE, 'alert_type': SeverityResource.ALL_FILTER_ENUMERATION, 'alert_item_id': SeverityResource.ALL_FILTER_INT, 'lustre_pid': SeverityResource.ALL_FILTER_INT, 'record_type': SeverityResource.ALL_FILTER_ENUMERATION } ordering = ['begin', 'end', 'active'] authorization = DjangoAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = ['get', 'patch', 'put'] always_return_data = True
class Meta: queryset = NTPConfiguration.objects.all() resource_name = "ntp_configuration" list_allowed_methods = ["get", "put"] detail_allowed_methods = ["get", "put"] authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication()
class Meta: queryset = ManagedHost.objects.select_related( 'lnet_configuration').prefetch_related( 'lnet_configuration__nid_set') resource_name = 'host' excludes = ['not_deleted'] authentication = AnonymousAuthentication() authorization = DjangoAuthorization() ordering = ['fqdn'] list_allowed_methods = ['get', 'post', 'put'] detail_allowed_methods = ['get', 'put', 'delete'] readonly = [ 'nodename', 'fqdn', 'nids', 'member_of_active_filesystem', 'needs_update', 'boot_time', 'client_mounts' ] # HYD-2256: remove these fields when other auth schemes work readonly += ['root_pw', 'private_key_passphrase', 'private_key'] validation = HostValidation() always_return_data = True filtering = { 'id': ['exact'], 'fqdn': ['exact', 'startswith'], 'role': ['exact'] }
class Meta: queryset = ManagedHost.objects.select_related( "lnet_configuration").prefetch_related( "lnet_configuration__nid_set") resource_name = "host" excludes = ["not_deleted"] authentication = AnonymousAuthentication() authorization = PatchedDjangoAuthorization() ordering = ["fqdn"] list_allowed_methods = ["get", "post", "put"] detail_allowed_methods = ["get", "put", "delete"] readonly = [ "nodename", "fqdn", "nids", "member_of_active_filesystem", "needs_update", "boot_time", "client_mounts", ] # HYD-2256: remove these fields when other auth schemes work readonly += ["root_pw", "private_key_passphrase", "private_key"] validation = HostValidation() always_return_data = True filtering = { "id": ["exact"], "fqdn": ["exact", "startswith"], "role": ["exact"] }
class Meta: queryset = AlertState.objects.order_by("-begin") resource_name = "alert" filtering = { "begin": SeverityResource.ALL_FILTER_DATE, "end": SeverityResource.ALL_FILTER_DATE, "message": SeverityResource.ALL_FILTER_STR, "active": SeverityResource.ALL_FILTER_BOOL, "dismissed": SeverityResource.ALL_FILTER_BOOL, "id": SeverityResource.ALL_FILTER_INT, "severity": SeverityResource.ALL_FILTER_ENUMERATION, "created_at": SeverityResource.ALL_FILTER_DATE, "alert_type": SeverityResource.ALL_FILTER_ENUMERATION, "alert_item_id": SeverityResource.ALL_FILTER_INT, "lustre_pid": SeverityResource.ALL_FILTER_INT, "record_type": SeverityResource.ALL_FILTER_ENUMERATION, } ordering = ["begin", "end", "active"] serializer = DateSerializer() authorization = DjangoAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ["get"] detail_allowed_methods = ["get", "patch", "put"] always_return_data = True
class Meta: class_object = Auth authentication = AnonymousAuthentication() authorization = ReadOnlyAuthorization() list_allowed_methods = ["get"] detail_allowed_methods = [] resource_name = "auth"
class Meta: queryset = CopytoolOperation.objects.select_related().all() resource_name = 'copytool_operation' excludes = ['not_deleted'] authorization = DjangoAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = ['get']
class Meta: queryset = StorageResourceRecord.objects.filter(resource_class__id__in=filter_class_ids()) resource_name = "storage_resource" filtering = {"class_name": ["exact"], "plugin_name": ["exact"]} authorization = DjangoAuthorization() authentication = AnonymousAuthentication() always_return_data = True validation = StorageResourceValidation()
class Meta: resource_name = "alert_subscription" queryset = AlertSubscription.objects.all() authorization = AlertSubscriptionAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ["get", "post", "patch"] detail_allowed_methods = ["get", "delete", "put"] validation = AlertSubscriptionValidation()
class Meta: queryset = PacemakerConfiguration.objects.all() authorization = DjangoAuthorization() authentication = AnonymousAuthentication() resource_name = "pacemaker_configuration" list_allowed_methods = ["get", "put"] detail_allowed_methods = ["get", "put"] filtering = {"host": ALL_WITH_RELATIONS, "id": ["exact"], "host__fqdn": ["exact", "startswith"]}
class Meta: list_allowed_methods = ["post"] detail_allowed_methods = [] resource_name = "run_stratagem" authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication() object_class = dict validation = RunStratagemValidation()
class Meta: queryset = NetworkInterface.objects.select_related("host", "nid").all() authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication() resource_name = "network_interface" list_allowed_methods = ["get"] detail_allowed_methods = ["get"] filtering = {"host": ALL_WITH_RELATIONS, "id": ["exact"]}
class Meta: object_class = SystemStatus resource_name = 'system_status' authorization = StatusAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ['get'] detail_allowed_methods = []
class Meta: queryset = LustreClientMount.objects.all() resource_name = "client_mount" authentication = AnonymousAuthentication() authorization = PatchedDjangoAuthorization() list_allowed_methods = ["get", "post"] filtering = {"host": ["exact"], "filesystem": ["exact"]}
class Meta: queryset = NetworkInterface.objects.select_related('host', 'nid').all() authorization = DjangoAuthorization() authentication = AnonymousAuthentication() resource_name = 'network_interface' list_allowed_methods = ['get'] detail_allowed_methods = ['get'] filtering = {'host': ALL_WITH_RELATIONS, 'id': ['exact']}
class Meta: allowed_methods = None authentication = AnonymousAuthentication() authorization = DjangoAuthorization() validation = ActionValidation() object_class = Action resource_name = "action" list_allowed_methods = ["get"]
class Meta: queryset = CopytoolOperation.objects.select_related().all() resource_name = "copytool_operation" excludes = ["not_deleted"] authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ["get"] detail_allowed_methods = ["get"]
class Meta: list_allowed_methods = ['post'] detail_allowed_methods = [] resource_name = 'test_host' authentication = AnonymousAuthentication() authorization = PermissionAuthorization('chroma_core.add_managedhost') object_class = dict validation = HostTestValidation()
class Meta: queryset = LustreClientMount.objects.all() resource_name = 'client_mount' authentication = AnonymousAuthentication() authorization = DjangoAuthorization() list_allowed_methods = ['get', 'post'] filtering = {'host': ['exact'], 'filesystem': ['exact']}
class Meta: resource_name = "alert_subscription" queryset = AlertSubscription.objects.all() authorization = AlertSubscriptionAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ['get', 'post', 'patch'] detail_allowed_methods = ['get', 'delete', 'put'] validation = AlertSubscriptionValidation()
class Meta: resource_name = "stratagem_configuration" queryset = StratagemConfiguration.objects.all() authorization = PatchedDjangoAuthorization() authentication = AnonymousAuthentication() list_allowed_methods = ["get", "post"] detail_allowed_methods = ["get", "put", "delete"] validation = StratagemConfigurationValidation() filtering = {"filesystem": ["exact"]}
class Meta: queryset = VolumeNode.objects.all().select_related("host") resource_name = 'volume_node' authorization = DjangoAuthorization() authentication = AnonymousAuthentication() excludes = ['not_deleted'] list_allowed_methods = ['get'] detail_allowed_methods = ['get'] filtering = {'host': ['exact'], 'path': ['exact']}