mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-23 10:03:53 +08:00
90 lines
1.7 KiB
YAML
90 lines
1.7 KiB
YAML
PolicyListResponse:
|
|
type: object
|
|
properties:
|
|
limit:
|
|
type: integer
|
|
example: 20
|
|
offset:
|
|
type: integer
|
|
example: 0
|
|
total:
|
|
type: integer
|
|
description: 总量
|
|
policies:
|
|
type: array
|
|
items:
|
|
$ref: "#/Policy"
|
|
|
|
PolicyGetResponse:
|
|
type: object
|
|
properties:
|
|
policy:
|
|
type: object
|
|
$ref: "#/Policy"
|
|
|
|
PolicyPutRequestInput:
|
|
type: object
|
|
properties:
|
|
type:
|
|
type: string
|
|
description: 权限的名称/类型
|
|
enabled:
|
|
type: boolean
|
|
description: 启用/禁用权限
|
|
policy:
|
|
type: string
|
|
description: 权限的json定义
|
|
description:
|
|
type: string
|
|
description: 权限的描述
|
|
|
|
PolicyCreateInput:
|
|
type: object
|
|
properties:
|
|
type:
|
|
type: string
|
|
required: true
|
|
description: 权限的名称/类型
|
|
enabled:
|
|
type: boolean
|
|
description: 启用/禁用权限
|
|
policy:
|
|
type: string
|
|
description: 权限的json定义
|
|
domain:
|
|
type: string
|
|
description: 权限所属的域
|
|
description:
|
|
type: string
|
|
description: 项目的描述
|
|
|
|
Policy:
|
|
type: object
|
|
description: 权限
|
|
properties:
|
|
id:
|
|
type: string
|
|
description: 权限ID
|
|
readOnly: true
|
|
type:
|
|
type: string
|
|
description: 权限名称/类型,全局唯一
|
|
can_delete:
|
|
type: boolean
|
|
description: 是否可以删除
|
|
domain_id:
|
|
type: string
|
|
descrption: 所属域ID
|
|
project_domain:
|
|
type: string
|
|
description: 所属域名称
|
|
enabled:
|
|
type: boolean
|
|
description: 是否启用/禁用
|
|
is_public:
|
|
type: boolean
|
|
description: 是否共享
|
|
policy:
|
|
type: string
|
|
description: 权限内容的json定义
|