'use strict';

var pluginPermissionCommon = require('@backstage/plugin-permission-common');

const kuadrantPlanPolicyCreatePermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.planpolicy.create",
  attributes: { action: "create" }
});
const kuadrantPlanPolicyReadPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.planpolicy.read",
  attributes: { action: "read" }
});
const kuadrantPlanPolicyUpdatePermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.planpolicy.update",
  attributes: { action: "update" }
});
const kuadrantPlanPolicyDeletePermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.planpolicy.delete",
  attributes: { action: "delete" }
});
const kuadrantPlanPolicyListPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.planpolicy.list",
  attributes: { action: "read" }
});
const kuadrantAuthPolicyListPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.authpolicy.list",
  attributes: { action: "read" }
});
const kuadrantRateLimitPolicyListPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.ratelimitpolicy.list",
  attributes: { action: "read" }
});
const kuadrantApiProductCreatePermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.create",
  attributes: { action: "create" }
});
const kuadrantApiProductReadOwnPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.read.own",
  attributes: { action: "read" }
});
const kuadrantApiProductReadAllPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.read.all",
  attributes: { action: "read" }
});
const kuadrantApiProductUpdateOwnPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.update.own",
  attributes: { action: "update" }
});
const kuadrantApiProductUpdateAllPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.update.all",
  attributes: { action: "update" }
});
const kuadrantApiProductDeleteOwnPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.delete.own",
  attributes: { action: "delete" }
});
const kuadrantApiProductDeleteAllPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.delete.all",
  attributes: { action: "delete" }
});
const kuadrantApiProductListPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apiproduct.list",
  attributes: { action: "read" }
});
const kuadrantApiKeyCreatePermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.create",
  attributes: { action: "create" },
  resourceType: "apiproduct"
});
const kuadrantApiKeyReadOwnPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.read.own",
  attributes: { action: "read" }
});
const kuadrantApiKeyReadAllPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.read.all",
  attributes: { action: "read" }
});
const kuadrantApiKeyUpdateOwnPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.update.own",
  attributes: { action: "update" }
});
const kuadrantApiKeyUpdateAllPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.update.all",
  attributes: { action: "update" }
});
const kuadrantApiKeyDeleteOwnPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.delete.own",
  attributes: { action: "delete" }
});
const kuadrantApiKeyDeleteAllPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.delete.all",
  attributes: { action: "delete" }
});
const kuadrantApiKeyApprovePermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.apikey.approve",
  attributes: { action: "update" }
});
const kuadrantHttpRouteListPermission = pluginPermissionCommon.createPermission({
  name: "kuadrant.httproute.list",
  attributes: { action: "read" }
});
const kuadrantPermissions = [
  kuadrantPlanPolicyCreatePermission,
  kuadrantPlanPolicyReadPermission,
  kuadrantPlanPolicyUpdatePermission,
  kuadrantPlanPolicyDeletePermission,
  kuadrantPlanPolicyListPermission,
  kuadrantAuthPolicyListPermission,
  kuadrantRateLimitPolicyListPermission,
  kuadrantApiProductCreatePermission,
  kuadrantApiProductReadOwnPermission,
  kuadrantApiProductReadAllPermission,
  kuadrantApiProductUpdateOwnPermission,
  kuadrantApiProductUpdateAllPermission,
  kuadrantApiProductDeleteOwnPermission,
  kuadrantApiProductDeleteAllPermission,
  kuadrantApiProductListPermission,
  kuadrantApiKeyCreatePermission,
  kuadrantApiKeyReadOwnPermission,
  kuadrantApiKeyReadAllPermission,
  kuadrantApiKeyUpdateOwnPermission,
  kuadrantApiKeyUpdateAllPermission,
  kuadrantApiKeyDeleteOwnPermission,
  kuadrantApiKeyDeleteAllPermission,
  kuadrantApiKeyApprovePermission,
  kuadrantHttpRouteListPermission
];

exports.kuadrantApiKeyApprovePermission = kuadrantApiKeyApprovePermission;
exports.kuadrantApiKeyCreatePermission = kuadrantApiKeyCreatePermission;
exports.kuadrantApiKeyDeleteAllPermission = kuadrantApiKeyDeleteAllPermission;
exports.kuadrantApiKeyDeleteOwnPermission = kuadrantApiKeyDeleteOwnPermission;
exports.kuadrantApiKeyReadAllPermission = kuadrantApiKeyReadAllPermission;
exports.kuadrantApiKeyReadOwnPermission = kuadrantApiKeyReadOwnPermission;
exports.kuadrantApiKeyUpdateAllPermission = kuadrantApiKeyUpdateAllPermission;
exports.kuadrantApiKeyUpdateOwnPermission = kuadrantApiKeyUpdateOwnPermission;
exports.kuadrantApiProductCreatePermission = kuadrantApiProductCreatePermission;
exports.kuadrantApiProductDeleteAllPermission = kuadrantApiProductDeleteAllPermission;
exports.kuadrantApiProductDeleteOwnPermission = kuadrantApiProductDeleteOwnPermission;
exports.kuadrantApiProductListPermission = kuadrantApiProductListPermission;
exports.kuadrantApiProductReadAllPermission = kuadrantApiProductReadAllPermission;
exports.kuadrantApiProductReadOwnPermission = kuadrantApiProductReadOwnPermission;
exports.kuadrantApiProductUpdateAllPermission = kuadrantApiProductUpdateAllPermission;
exports.kuadrantApiProductUpdateOwnPermission = kuadrantApiProductUpdateOwnPermission;
exports.kuadrantAuthPolicyListPermission = kuadrantAuthPolicyListPermission;
exports.kuadrantHttpRouteListPermission = kuadrantHttpRouteListPermission;
exports.kuadrantPermissions = kuadrantPermissions;
exports.kuadrantPlanPolicyCreatePermission = kuadrantPlanPolicyCreatePermission;
exports.kuadrantPlanPolicyDeletePermission = kuadrantPlanPolicyDeletePermission;
exports.kuadrantPlanPolicyListPermission = kuadrantPlanPolicyListPermission;
exports.kuadrantPlanPolicyReadPermission = kuadrantPlanPolicyReadPermission;
exports.kuadrantPlanPolicyUpdatePermission = kuadrantPlanPolicyUpdatePermission;
exports.kuadrantRateLimitPolicyListPermission = kuadrantRateLimitPolicyListPermission;
//# sourceMappingURL=permissions.cjs.js.map
