moziacl

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package moziacl 包含MOZI权限API相关结构体

https://open.taobao.com/API.htm?docType=2&docId=45484

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPermissionToRoleRequest

type AddPermissionToRoleRequest struct {
	// 要添加的权限name列表(功能权限唯一code,在ACL中全局唯一)
	PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"`
	// 角色所在应用name(应用唯一code)
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 操作原因
	ApplyReason string `json:"apply_reason,omitempty" xml:"apply_reason,omitempty"`
	// 请求参数扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 角色name(角色唯一code,在ACL中全局唯一)
	RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"`
	// 操作主体
	PrincipalParam *BucPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
}

AddPermissionToRoleRequest 结构体

type AddPermissionToRoleResult

type AddPermissionToRoleResult struct {
	// 返回数据,这个接口返回数据为空
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应结果message,若处理失败则返回失败原因
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否处理成功,若成功则返回true
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AddPermissionToRoleResult 结构体

type AlibabamoziaclappgetpermisspkgsAPIRequest added in v1.3.1

type AlibabamoziaclappgetpermisspkgsAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclappgetpermisspkgsAPIRequest 分页获取应用的权限套餐 API请求 alibaba.mozi.acl.app.getpermisspkgs

分页查询应用下的权限套餐列表

func NewAlibabamoziaclappgetpermisspkgsRequest added in v1.3.1

func NewAlibabamoziaclappgetpermisspkgsRequest() *AlibabamoziaclappgetpermisspkgsAPIRequest

NewAlibabamoziaclappgetpermisspkgsRequest 初始化AlibabamoziaclappgetpermisspkgsAPIRequest对象

func (AlibabamoziaclappgetpermisspkgsAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclappgetpermisspkgsAPIRequest) GetApiParams added in v1.3.1

func (r AlibabamoziaclappgetpermisspkgsAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclappgetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest added in v1.3.1

func (r AlibabamoziaclappgetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest() *GetAppPermissionPackageRequest

GetGetAppPermissionPackagesRequest GetAppPermissionPackagesRequest Getter

func (AlibabamoziaclappgetpermisspkgsAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclappgetpermisspkgsAPIRequest) SetGetAppPermissionPackagesRequest added in v1.3.1

func (r *AlibabamoziaclappgetpermisspkgsAPIRequest) SetGetAppPermissionPackagesRequest(_getAppPermissionPackagesRequest *GetAppPermissionPackageRequest) error

SetGetAppPermissionPackagesRequest is GetAppPermissionPackagesRequest Setter 获取应用的权限套餐请求对象

type AlibabamoziaclappgetpermisspkgsAPIResponse added in v1.3.1

type AlibabamoziaclappgetpermisspkgsAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclappgetpermisspkgsAPIResponseModel
}

AlibabamoziaclappgetpermisspkgsAPIResponse 分页获取应用的权限套餐 API返回值 alibaba.mozi.acl.app.getpermisspkgs

分页查询应用下的权限套餐列表

type AlibabamoziaclappgetpermisspkgsAPIResponseModel added in v1.3.1

type AlibabamoziaclappgetpermisspkgsAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_app_getpermisspkgs_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 获取应用的权限套餐列表结果对象
	Result *AppPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclappgetpermisspkgsAPIResponseModel is 分页获取应用的权限套餐 成功返回结果

type AlibabamoziaclgrantgrantroleAPIRequest added in v1.3.1

type AlibabamoziaclgrantgrantroleAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclgrantgrantroleAPIRequest 将一个角色授予一个账号 API请求 alibaba.mozi.acl.grant.grantrole

根据入参,将入参中的角色授权给入参的某个账户,调用此接口后,该账户就会被授予该角色

func NewAlibabamoziaclgrantgrantroleRequest added in v1.3.1

func NewAlibabamoziaclgrantgrantroleRequest() *AlibabamoziaclgrantgrantroleAPIRequest

NewAlibabamoziaclgrantgrantroleRequest 初始化AlibabamoziaclgrantgrantroleAPIRequest对象

func (AlibabamoziaclgrantgrantroleAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabamoziaclgrantgrantroleAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclgrantgrantroleAPIRequest) GetApiParams added in v1.3.1

func (r AlibabamoziaclgrantgrantroleAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclgrantgrantroleAPIRequest) GetGrantRolesRequest added in v1.3.1

GetGrantRolesRequest GrantRolesRequest Getter

func (AlibabamoziaclgrantgrantroleAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclgrantgrantroleAPIRequest) SetGrantRolesRequest added in v1.3.1

func (r *AlibabamoziaclgrantgrantroleAPIRequest) SetGrantRolesRequest(_grantRolesRequest *GrantRolesRequest) error

SetGrantRolesRequest is GrantRolesRequest Setter 整体入参对象

type AlibabamoziaclgrantgrantroleAPIResponse added in v1.3.1

type AlibabamoziaclgrantgrantroleAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclgrantgrantroleAPIResponseModel
}

AlibabamoziaclgrantgrantroleAPIResponse 将一个角色授予一个账号 API返回值 alibaba.mozi.acl.grant.grantrole

根据入参,将入参中的角色授权给入参的某个账户,调用此接口后,该账户就会被授予该角色

type AlibabamoziaclgrantgrantroleAPIResponseModel added in v1.3.1

type AlibabamoziaclgrantgrantroleAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_grant_grantrole_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 给账号授予角色结果
	Result *GrantRolesResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclgrantgrantroleAPIResponseModel is 将一个角色授予一个账号 成功返回结果

type AlibabamoziaclpermissionpagerolepermissionAPIRequest added in v1.3.1

type AlibabamoziaclpermissionpagerolepermissionAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclpermissionpagerolepermissionAPIRequest 分页查询角色下包含的权限列表 API请求 alibaba.mozi.acl.permission.page.rolepermission

根据传入的角色name,分页查询该角色包含的权限列表

func NewAlibabamoziaclpermissionpagerolepermissionRequest added in v1.3.1

func NewAlibabamoziaclpermissionpagerolepermissionRequest() *AlibabamoziaclpermissionpagerolepermissionAPIRequest

NewAlibabamoziaclpermissionpagerolepermissionRequest 初始化AlibabamoziaclpermissionpagerolepermissionAPIRequest对象

func (AlibabamoziaclpermissionpagerolepermissionAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclpermissionpagerolepermissionAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclpermissionpagerolepermissionAPIRequest) GetPageRolePermisions added in v1.3.1

GetPageRolePermisions PageRolePermisions Getter

func (AlibabamoziaclpermissionpagerolepermissionAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclpermissionpagerolepermissionAPIRequest) SetPageRolePermisions added in v1.3.1

func (r *AlibabamoziaclpermissionpagerolepermissionAPIRequest) SetPageRolePermisions(_pageRolePermisions *PageRolePermissionRequest) error

SetPageRolePermisions is PageRolePermisions Setter 分页查询角色下包含的权限列表

type AlibabamoziaclpermissionpagerolepermissionAPIResponse added in v1.3.1

type AlibabamoziaclpermissionpagerolepermissionAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclpermissionpagerolepermissionAPIResponseModel
}

AlibabamoziaclpermissionpagerolepermissionAPIResponse 分页查询角色下包含的权限列表 API返回值 alibaba.mozi.acl.permission.page.rolepermission

根据传入的角色name,分页查询该角色包含的权限列表

type AlibabamoziaclpermissionpagerolepermissionAPIResponseModel added in v1.3.1

type AlibabamoziaclpermissionpagerolepermissionAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_permission_page_rolepermission_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询角色下权限列表结果对象
	Result *PageRolePermissionResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclpermissionpagerolepermissionAPIResponseModel is 分页查询角色下包含的权限列表 成功返回结果

type AlibabamoziaclpermissionpkgaddpermissionsAPIRequest added in v1.3.1

type AlibabamoziaclpermissionpkgaddpermissionsAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclpermissionpkgaddpermissionsAPIRequest 权限套餐添加权限 API请求 alibaba.mozi.acl.permissionpkg.add.permissions

此接口的功能为:将一批应用下的权限添加到该应用下的权限套餐中

func NewAlibabamoziaclpermissionpkgaddpermissionsRequest added in v1.3.1

func NewAlibabamoziaclpermissionpkgaddpermissionsRequest() *AlibabamoziaclpermissionpkgaddpermissionsAPIRequest

NewAlibabamoziaclpermissionpkgaddpermissionsRequest 初始化AlibabamoziaclpermissionpkgaddpermissionsAPIRequest对象

func (AlibabamoziaclpermissionpkgaddpermissionsAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclpermissionpkgaddpermissionsAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclpermissionpkgaddpermissionsAPIRequest) GetParameters added in v1.3.1

GetParameters Parameters Getter

func (AlibabamoziaclpermissionpkgaddpermissionsAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclpermissionpkgaddpermissionsAPIRequest) SetParameters added in v1.3.1

SetParameters is Parameters Setter 请求对象

type AlibabamoziaclpermissionpkgaddpermissionsAPIResponse added in v1.3.1

type AlibabamoziaclpermissionpkgaddpermissionsAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclpermissionpkgaddpermissionsAPIResponseModel
}

AlibabamoziaclpermissionpkgaddpermissionsAPIResponse 权限套餐添加权限 API返回值 alibaba.mozi.acl.permissionpkg.add.permissions

此接口的功能为:将一批应用下的权限添加到该应用下的权限套餐中

type AlibabamoziaclpermissionpkgaddpermissionsAPIResponseModel added in v1.3.1

type AlibabamoziaclpermissionpkgaddpermissionsAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_permissionpkg_add_permissions_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果对象
	Result *UpdatePermissionsToPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclpermissionpkgaddpermissionsAPIResponseModel is 权限套餐添加权限 成功返回结果

type AlibabamoziaclpermissionpkgaddrolesAPIRequest added in v1.3.1

type AlibabamoziaclpermissionpkgaddrolesAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclpermissionpkgaddrolesAPIRequest 将角色添加到权限套餐中 API请求 alibaba.mozi.acl.permissionpkg.add.roles

此接口是将应用下的一批角色添加到该应用的某个权限套餐中

func NewAlibabamoziaclpermissionpkgaddrolesRequest added in v1.3.1

func NewAlibabamoziaclpermissionpkgaddrolesRequest() *AlibabamoziaclpermissionpkgaddrolesAPIRequest

NewAlibabamoziaclpermissionpkgaddrolesRequest 初始化AlibabamoziaclpermissionpkgaddrolesAPIRequest对象

func (AlibabamoziaclpermissionpkgaddrolesAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclpermissionpkgaddrolesAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclpermissionpkgaddrolesAPIRequest) GetParameters added in v1.3.1

GetParameters Parameters Getter

func (AlibabamoziaclpermissionpkgaddrolesAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclpermissionpkgaddrolesAPIRequest) SetParameters added in v1.3.1

SetParameters is Parameters Setter 请求入参对象

type AlibabamoziaclpermissionpkgaddrolesAPIResponse added in v1.3.1

type AlibabamoziaclpermissionpkgaddrolesAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclpermissionpkgaddrolesAPIResponseModel
}

AlibabamoziaclpermissionpkgaddrolesAPIResponse 将角色添加到权限套餐中 API返回值 alibaba.mozi.acl.permissionpkg.add.roles

此接口是将应用下的一批角色添加到该应用的某个权限套餐中

type AlibabamoziaclpermissionpkgaddrolesAPIResponseModel added in v1.3.1

type AlibabamoziaclpermissionpkgaddrolesAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_permissionpkg_add_roles_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果对象
	Result *UpdateRolesToPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclpermissionpkgaddrolesAPIResponseModel is 将角色添加到权限套餐中 成功返回结果

type AlibabamoziaclroleaddAPIRequest added in v1.3.1

type AlibabamoziaclroleaddAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclroleaddAPIRequest 新增一个角色 API请求 alibaba.mozi.acl.role.add

新增一个角色

func NewAlibabamoziaclroleaddRequest added in v1.3.1

func NewAlibabamoziaclroleaddRequest() *AlibabamoziaclroleaddAPIRequest

NewAlibabamoziaclroleaddRequest 初始化AlibabamoziaclroleaddAPIRequest对象

func (AlibabamoziaclroleaddAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabamoziaclroleaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclroleaddAPIRequest) GetApiParams added in v1.3.1

func (r AlibabamoziaclroleaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclroleaddAPIRequest) GetCreateRoleRequest added in v1.3.1

func (r AlibabamoziaclroleaddAPIRequest) GetCreateRoleRequest() *CreateRoleRequest

GetCreateRoleRequest CreateRoleRequest Getter

func (AlibabamoziaclroleaddAPIRequest) GetRawParams added in v1.3.1

func (r AlibabamoziaclroleaddAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclroleaddAPIRequest) SetCreateRoleRequest added in v1.3.1

func (r *AlibabamoziaclroleaddAPIRequest) SetCreateRoleRequest(_createRoleRequest *CreateRoleRequest) error

SetCreateRoleRequest is CreateRoleRequest Setter 创建角色请求对象

type AlibabamoziaclroleaddAPIResponse added in v1.3.1

type AlibabamoziaclroleaddAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclroleaddAPIResponseModel
}

AlibabamoziaclroleaddAPIResponse 新增一个角色 API返回值 alibaba.mozi.acl.role.add

新增一个角色

type AlibabamoziaclroleaddAPIResponseModel added in v1.3.1

type AlibabamoziaclroleaddAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_role_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 创建角色结果对象
	Result *CreateRoleResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclroleaddAPIResponseModel is 新增一个角色 成功返回结果

type AlibabamoziaclroleaddpermissionsAPIRequest added in v1.3.1

type AlibabamoziaclroleaddpermissionsAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclroleaddpermissionsAPIRequest 角色添加功能权限 API请求 alibaba.mozi.acl.role.add.permissions

往角色中添加一批功能权限

func NewAlibabamoziaclroleaddpermissionsRequest added in v1.3.1

func NewAlibabamoziaclroleaddpermissionsRequest() *AlibabamoziaclroleaddpermissionsAPIRequest

NewAlibabamoziaclroleaddpermissionsRequest 初始化AlibabamoziaclroleaddpermissionsAPIRequest对象

func (AlibabamoziaclroleaddpermissionsAPIRequest) GetAddPermissionsToRole added in v1.3.1

GetAddPermissionsToRole AddPermissionsToRole Getter

func (AlibabamoziaclroleaddpermissionsAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclroleaddpermissionsAPIRequest) GetApiParams added in v1.3.1

func (r AlibabamoziaclroleaddpermissionsAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclroleaddpermissionsAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclroleaddpermissionsAPIRequest) SetAddPermissionsToRole added in v1.3.1

func (r *AlibabamoziaclroleaddpermissionsAPIRequest) SetAddPermissionsToRole(_addPermissionsToRole *AddPermissionToRoleRequest) error

SetAddPermissionsToRole is AddPermissionsToRole Setter 角色添加功能权限请求对象

type AlibabamoziaclroleaddpermissionsAPIResponse added in v1.3.1

type AlibabamoziaclroleaddpermissionsAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclroleaddpermissionsAPIResponseModel
}

AlibabamoziaclroleaddpermissionsAPIResponse 角色添加功能权限 API返回值 alibaba.mozi.acl.role.add.permissions

往角色中添加一批功能权限

type AlibabamoziaclroleaddpermissionsAPIResponseModel added in v1.3.1

type AlibabamoziaclroleaddpermissionsAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_role_add_permissions_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 角色移除功能权限结果对象
	Result *AddPermissionToRoleResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclroleaddpermissionsAPIResponseModel is 角色添加功能权限 成功返回结果

type AlibabamoziaclroleremoveAPIRequest added in v1.3.1

type AlibabamoziaclroleremoveAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclroleremoveAPIRequest 删除角色 API请求 alibaba.mozi.acl.role.remove

根据传入的角色code、租户id,删除租户内对应的角色

func NewAlibabamoziaclroleremoveRequest added in v1.3.1

func NewAlibabamoziaclroleremoveRequest() *AlibabamoziaclroleremoveAPIRequest

NewAlibabamoziaclroleremoveRequest 初始化AlibabamoziaclroleremoveAPIRequest对象

func (AlibabamoziaclroleremoveAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabamoziaclroleremoveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclroleremoveAPIRequest) GetApiParams added in v1.3.1

func (r AlibabamoziaclroleremoveAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclroleremoveAPIRequest) GetDeleteRolesRequest added in v1.3.1

func (r AlibabamoziaclroleremoveAPIRequest) GetDeleteRolesRequest() *DeleteRolesRequest

GetDeleteRolesRequest DeleteRolesRequest Getter

func (AlibabamoziaclroleremoveAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabamoziaclroleremoveAPIRequest) SetDeleteRolesRequest added in v1.3.1

func (r *AlibabamoziaclroleremoveAPIRequest) SetDeleteRolesRequest(_deleteRolesRequest *DeleteRolesRequest) error

SetDeleteRolesRequest is DeleteRolesRequest Setter 删除角色请求对象

type AlibabamoziaclroleremoveAPIResponse added in v1.3.1

type AlibabamoziaclroleremoveAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclroleremoveAPIResponseModel
}

AlibabamoziaclroleremoveAPIResponse 删除角色 API返回值 alibaba.mozi.acl.role.remove

根据传入的角色code、租户id,删除租户内对应的角色

type AlibabamoziaclroleremoveAPIResponseModel added in v1.3.1

type AlibabamoziaclroleremoveAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_role_remove_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 无值
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 请求id
	MoziRequestId string `json:"mozi_request_id,omitempty" xml:"mozi_request_id,omitempty"`
	// 如果success不为true,则自此段返回详细的错误信息
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 如果success为true,则返回0,否则此段返回详细的错误code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否操作成功,true代表操作成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabamoziaclroleremoveAPIResponseModel is 删除角色 成功返回结果

type AlibabamoziaclroleremovepermissionsAPIRequest added in v1.3.1

type AlibabamoziaclroleremovepermissionsAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziaclroleremovepermissionsAPIRequest 角色移除功能权限 API请求 alibaba.mozi.acl.role.remove.permissions

从角色中移除一批功能权限

func NewAlibabamoziaclroleremovepermissionsRequest added in v1.3.1

func NewAlibabamoziaclroleremovepermissionsRequest() *AlibabamoziaclroleremovepermissionsAPIRequest

NewAlibabamoziaclroleremovepermissionsRequest 初始化AlibabamoziaclroleremovepermissionsAPIRequest对象

func (AlibabamoziaclroleremovepermissionsAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziaclroleremovepermissionsAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziaclroleremovepermissionsAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabamoziaclroleremovepermissionsAPIRequest) GetRemovePermissionsFromRole added in v1.3.1

GetRemovePermissionsFromRole RemovePermissionsFromRole Getter

func (*AlibabamoziaclroleremovepermissionsAPIRequest) SetRemovePermissionsFromRole added in v1.3.1

func (r *AlibabamoziaclroleremovepermissionsAPIRequest) SetRemovePermissionsFromRole(_removePermissionsFromRole *RemovePermissionsFromRoleRequest) error

SetRemovePermissionsFromRole is RemovePermissionsFromRole Setter 角色移除功能权限请求对象

type AlibabamoziaclroleremovepermissionsAPIResponse added in v1.3.1

type AlibabamoziaclroleremovepermissionsAPIResponse struct {
	model.CommonResponse
	AlibabamoziaclroleremovepermissionsAPIResponseModel
}

AlibabamoziaclroleremovepermissionsAPIResponse 角色移除功能权限 API返回值 alibaba.mozi.acl.role.remove.permissions

从角色中移除一批功能权限

type AlibabamoziaclroleremovepermissionsAPIResponseModel added in v1.3.1

type AlibabamoziaclroleremovepermissionsAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_role_remove_permissions_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 角色移除功能权限结果对象
	Result *RemovePermissionsFromRoleResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziaclroleremovepermissionsAPIResponseModel is 角色移除功能权限 成功返回结果

type AlibabamoziacluserpermissionsrevokeAPIRequest added in v1.3.1

type AlibabamoziacluserpermissionsrevokeAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziacluserpermissionsrevokeAPIRequest 回收账户权限 API请求 alibaba.mozi.acl.userpermissions.revoke

调用此接口,会根据入参回收该账户下的该批权限点

func NewAlibabamoziacluserpermissionsrevokeRequest added in v1.3.1

func NewAlibabamoziacluserpermissionsrevokeRequest() *AlibabamoziacluserpermissionsrevokeAPIRequest

NewAlibabamoziacluserpermissionsrevokeRequest 初始化AlibabamoziacluserpermissionsrevokeAPIRequest对象

func (AlibabamoziacluserpermissionsrevokeAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziacluserpermissionsrevokeAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziacluserpermissionsrevokeAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabamoziacluserpermissionsrevokeAPIRequest) GetRevokePermission added in v1.3.1

GetRevokePermission RevokePermission Getter

func (*AlibabamoziacluserpermissionsrevokeAPIRequest) SetRevokePermission added in v1.3.1

func (r *AlibabamoziacluserpermissionsrevokeAPIRequest) SetRevokePermission(_revokePermission *RevokePermissionsRequest) error

SetRevokePermission is RevokePermission Setter 回收权限入参对象

type AlibabamoziacluserpermissionsrevokeAPIResponse added in v1.3.1

type AlibabamoziacluserpermissionsrevokeAPIResponse struct {
	model.CommonResponse
	AlibabamoziacluserpermissionsrevokeAPIResponseModel
}

AlibabamoziacluserpermissionsrevokeAPIResponse 回收账户权限 API返回值 alibaba.mozi.acl.userpermissions.revoke

调用此接口,会根据入参回收该账户下的该批权限点

type AlibabamoziacluserpermissionsrevokeAPIResponseModel added in v1.3.1

type AlibabamoziacluserpermissionsrevokeAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_userpermissions_revoke_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 回收账户的权限请求返回对象
	Result *RevokePermissionsResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziacluserpermissionsrevokeAPIResponseModel is 回收账户权限 成功返回结果

type AlibabamoziacluserrolesrevokeAPIRequest added in v1.3.1

type AlibabamoziacluserrolesrevokeAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabamoziacluserrolesrevokeAPIRequest 回收账户被授予的角色接口 API请求 alibaba.mozi.acl.userroles.revoke

调用此接口,会根据入参回收该账户下的该批角色

func NewAlibabamoziacluserrolesrevokeRequest added in v1.3.1

func NewAlibabamoziacluserrolesrevokeRequest() *AlibabamoziacluserrolesrevokeAPIRequest

NewAlibabamoziacluserrolesrevokeRequest 初始化AlibabamoziacluserrolesrevokeAPIRequest对象

func (AlibabamoziacluserrolesrevokeAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabamoziacluserrolesrevokeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabamoziacluserrolesrevokeAPIRequest) GetApiParams added in v1.3.1

func (r AlibabamoziacluserrolesrevokeAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabamoziacluserrolesrevokeAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabamoziacluserrolesrevokeAPIRequest) GetRevokeRolesRequest added in v1.3.1

GetRevokeRolesRequest RevokeRolesRequest Getter

func (*AlibabamoziacluserrolesrevokeAPIRequest) SetRevokeRolesRequest added in v1.3.1

func (r *AlibabamoziacluserrolesrevokeAPIRequest) SetRevokeRolesRequest(_revokeRolesRequest *RevokeRolesRequest) error

SetRevokeRolesRequest is RevokeRolesRequest Setter 回收角色入参对象

type AlibabamoziacluserrolesrevokeAPIResponse added in v1.3.1

type AlibabamoziacluserrolesrevokeAPIResponse struct {
	model.CommonResponse
	AlibabamoziacluserrolesrevokeAPIResponseModel
}

AlibabamoziacluserrolesrevokeAPIResponse 回收账户被授予的角色接口 API返回值 alibaba.mozi.acl.userroles.revoke

调用此接口,会根据入参回收该账户下的该批角色

type AlibabamoziacluserrolesrevokeAPIResponseModel added in v1.3.1

type AlibabamoziacluserrolesrevokeAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_mozi_acl_userroles_revoke_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 回收角色结果对象
	Result *RevokeRolesResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabamoziacluserrolesrevokeAPIResponseModel is 回收账户被授予的角色接口 成功返回结果

type AppPermissionPackageResult

type AppPermissionPackageResult struct {
	// 套权限餐数据列表
	Datas []PermissionPackageEntity `json:"datas,omitempty" xml:"datas>permission_package_entity,omitempty"`
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应message,若失败则返回失败原因
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 应用下套餐总数
	TotalSize int64 `json:"total_size,omitempty" xml:"total_size,omitempty"`
	// 每页数据条数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 查询第几页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 是否处理成功,成功则为true
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AppPermissionPackageResult 结构体

type BucPrincipalParam

type BucPrincipalParam struct {
	// 操作人所在租户
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 操作人userId
	TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
}

BucPrincipalParam 结构体

type BucUser

type BucUser struct {
	// userId
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
}

BucUser 结构体

type BucUserPrincipalParam

type BucUserPrincipalParam struct {
	// 租户名称,不需要填
	TenantName string `json:"tenant_name,omitempty" xml:"tenant_name,omitempty"`
	// 操作人userId
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 操作人所在租户Id
	TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
}

BucUserPrincipalParam 结构体

type CreateRoleRequest

type CreateRoleRequest struct {
	// 角色包含的权限name列表
	AddPermissionNames []string `json:"add_permission_names,omitempty" xml:"add_permission_names>string,omitempty"`
	// 角色审批人userId列表
	ApproverUserIds []string `json:"approver_user_ids,omitempty" xml:"approver_user_ids>string,omitempty"`
	// 角色归属的应用name,不传则以appKey对应的应用为准
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 角色描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 角色中文名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 角色类型,重点注意:如果创建租户内角色,则必须填“Realm_Role”,ISV开发者创建应用侧角色,则可不填
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 请求扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 角色包含的数据权限,以json传入
	DataPermissionJsonStr string `json:"data_permission_json_str,omitempty" xml:"data_permission_json_str,omitempty"`
	// 角色英文名称
	TitleEN string `json:"title_e_n,omitempty" xml:"title_e_n,omitempty"`
	// 角色审批规则类型(random、self 两种类型)
	RuleType string `json:"rule_type,omitempty" xml:"rule_type,omitempty"`
	// 角色申请规则(1表示公开可申请,2表示公开不可申请、3表示不公开)
	PublicAttri string `json:"public_attri,omitempty" xml:"public_attri,omitempty"`
	// 风险等级:L表示低风险,M表示中风,H表示高风险
	AssignLevel string `json:"assign_level,omitempty" xml:"assign_level,omitempty"`
	// 角色唯一code,在ACL中全局唯一
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 角色回收策略(REVOKE代表用户所在部门发生变化时,该用户的权限将被回收,RESERVE代表用户所在部门发生变化时,该用户的权限将被保留,TRANSFER_REVOKE代表个人主动转岗时回收 - 只在小二主动申请转岗时回收本权限)
	RevokeRule string `json:"revoke_rule,omitempty" xml:"revoke_rule,omitempty"`
	// 扩展字段
	ExtentionMap string `json:"extention_map,omitempty" xml:"extention_map,omitempty"`
	// 操作主体
	PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
	// 操作人的userId
	OperatorUserId int64 `json:"operator_user_id,omitempty" xml:"operator_user_id,omitempty"`
	// 角色归属人userId
	OwnerUserId int64 `json:"owner_user_id,omitempty" xml:"owner_user_id,omitempty"`
	// 是否数据权限,角色没有挂载数据权限,则为false
	IsData bool `json:"is_data,omitempty" xml:"is_data,omitempty"`
}

CreateRoleRequest 结构体

type CreateRoleResult

type CreateRoleResult struct {
	// 创建角色返回data,此处无数据返回
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应message,若失败则返回失败原因
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 接口调用是否成功,若成功则为true
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

CreateRoleResult 结构体

type DeleteRolesRequest

type DeleteRolesRequest struct {
	// 要删除的角色code列表
	Names []string `json:"names,omitempty" xml:"names>string,omitempty"`
	// 操作主体
	PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
}

DeleteRolesRequest 结构体

type GetAppPermissionPackageRequest

type GetAppPermissionPackageRequest struct {
	// 要查询的应用的appname
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 请求扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 权限套餐名模糊匹配
	FuzzyName string `json:"fuzzy_name,omitempty" xml:"fuzzy_name,omitempty"`
	// 操作主体
	PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
	// 每页数据条数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 查询第几页
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 是否查询权限套餐被开通的租户列表(如无必要,建议不要设置true,会增加额外查询)
	ShowRealmInfo bool `json:"show_realm_info,omitempty" xml:"show_realm_info,omitempty"`
	// 是否返回数据总量
	ReturnTotalSize bool `json:"return_total_size,omitempty" xml:"return_total_size,omitempty"`
	// 是否查询权限套餐中包含的角色、权限、数据权限 的数量。(如无必要,建议不要设置为true,会增加额外查询)
	ShowELementCount bool `json:"show_e_lement_count,omitempty" xml:"show_e_lement_count,omitempty"`
}

GetAppPermissionPackageRequest 结构体

type GrantRolesRequest

type GrantRolesRequest struct {
	// 授予的角色的code列表
	RoleNames []string `json:"role_names,omitempty" xml:"role_names>string,omitempty"`
	// 调用接口授角色的原因
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 目标应用名
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 扩展参数
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 授予角色的过期时间
	ExpireDate string `json:"expire_date,omitempty" xml:"expire_date,omitempty"`
	// 授角色主体
	Principal *BucUserPrincipalParam `json:"principal,omitempty" xml:"principal,omitempty"`
}

GrantRolesRequest 结构体

type GrantRolesResult

type GrantRolesResult struct {
	// 请求id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应信息,若失败,则返回失败信息
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否调用成功,成功则为true,否则为false
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

GrantRolesResult 结构体

type PageRolePermissionRequest

type PageRolePermissionRequest struct {
	// 角色所在的应用app name
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 请求扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 角色下权限模糊匹配,如果传了,则将按照此模糊字段匹配角色下的权限
	FuzzyName string `json:"fuzzy_name,omitempty" xml:"fuzzy_name,omitempty"`
	// 要查询的角色name
	RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"`
	// 操作主体
	PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
	// 每页返回数量
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 查询第几页
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 是否返回数据总数量
	ReturnTotalSize bool `json:"return_total_size,omitempty" xml:"return_total_size,omitempty"`
}

PageRolePermissionRequest 结构体

type PageRolePermissionResult

type PageRolePermissionResult struct {
	// 角色下的权限列表数据
	Datas []PermissionEntity `json:"datas,omitempty" xml:"datas>permission_entity,omitempty"`
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 要查询的角色name
	RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"`
	// 响应message,若失败则返回失败原因
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 角色下权限总数量
	TotalSize int64 `json:"total_size,omitempty" xml:"total_size,omitempty"`
	// 每页数量
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 是否处理成功,成功则返回true
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

PageRolePermissionResult 结构体

type PermissionEntity

type PermissionEntity struct {
	// 权限归属人userId列表
	PermissionOwnerIdList []string `json:"permission_owner_id_list,omitempty" xml:"permission_owner_id_list>string,omitempty"`
	// 权限描述
	PermissionDescription string `json:"permission_description,omitempty" xml:"permission_description,omitempty"`
	// 最大过期时间
	MaxExpireDate string `json:"max_expire_date,omitempty" xml:"max_expire_date,omitempty"`
	// 风险等级
	RiskLevel string `json:"risk_level,omitempty" xml:"risk_level,omitempty"`
	// 权限英文名
	PermissionTitleEN string `json:"permission_title_e_n,omitempty" xml:"permission_title_e_n,omitempty"`
	// 权限中文名
	PermissionTitle string `json:"permission_title,omitempty" xml:"permission_title,omitempty"`
	// 权限code
	PermissionName string `json:"permission_name,omitempty" xml:"permission_name,omitempty"`
	// 状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 公开申请策略
	PublicAttri string `json:"public_attri,omitempty" xml:"public_attri,omitempty"`
	// 创建时间
	CreatTime string `json:"creat_time,omitempty" xml:"creat_time,omitempty"`
	// 创建时间
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 回收规则
	RevokeRule string `json:"revoke_rule,omitempty" xml:"revoke_rule,omitempty"`
	// 创建人
	Creator *BucUser `json:"creator,omitempty" xml:"creator,omitempty"`
	// 是否可用
	IsActive bool `json:"is_active,omitempty" xml:"is_active,omitempty"`
}

PermissionEntity 结构体

type PermissionPackageEntity

type PermissionPackageEntity struct {
	// 注册的租户列表
	RegistRealmList []RealmEntity `json:"regist_realm_list,omitempty" xml:"regist_realm_list>realm_entity,omitempty"`
	// 权限套餐code
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 权限套餐中文名
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 权限套餐英文名
	NameEN string `json:"name_e_n,omitempty" xml:"name_e_n,omitempty"`
	// 权限套餐所属应用名
	AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"`
	// 权限套餐中文描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 权限套餐英文描述
	DescriptionEN string `json:"description_e_n,omitempty" xml:"description_e_n,omitempty"`
	// 扩展字段
	ExtStr string `json:"ext_str,omitempty" xml:"ext_str,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 包含功能权限数量
	PermissionCount int64 `json:"permission_count,omitempty" xml:"permission_count,omitempty"`
	// 包含角色数量
	RoleCount int64 `json:"role_count,omitempty" xml:"role_count,omitempty"`
	// 包含数据权限数量
	DataPermissionCount int64 `json:"data_permission_count,omitempty" xml:"data_permission_count,omitempty"`
	// 权限套餐创建人
	Creator *BucUser `json:"creator,omitempty" xml:"creator,omitempty"`
}

PermissionPackageEntity 结构体

type RealmEntity

type RealmEntity struct {
	// 租户名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 租户描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 租户id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

RealmEntity 结构体

type RemovePermissionsFromRoleRequest

type RemovePermissionsFromRoleRequest struct {
	// 要移除的权限name列表(功能权限唯一code,在ACL中全局唯一)
	PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"`
	// 角色所在应用name(应用唯一code)
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 角色name(角色唯一code,在ACL中全局唯一)
	RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"`
	// 请求参数扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 操作主体
	PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
}

RemovePermissionsFromRoleRequest 结构体

type RemovePermissionsFromRoleResult

type RemovePermissionsFromRoleResult struct {
	// 返回数据,这个接口返回数据为空
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应结果message,若处理失败则返回失败原因
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否处理成功,若成功则返回true
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

RemovePermissionsFromRoleResult 结构体

type RevokePermissionsRequest

type RevokePermissionsRequest struct {
	// 回收权限的name列表
	PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"`
	// 回收权限所在的app name
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 请求扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 回收主体对象
	Principal *BucUserPrincipalParam `json:"principal,omitempty" xml:"principal,omitempty"`
}

RevokePermissionsRequest 结构体

type RevokePermissionsResult

type RevokePermissionsResult struct {
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应message,若失败则返回失败原因
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否调用成功,成功则为true
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

RevokePermissionsResult 结构体

type RevokeRolesRequest

type RevokeRolesRequest struct {
	// 回收的角色name列表
	RoleNames []string `json:"role_names,omitempty" xml:"role_names>string,omitempty"`
	// 回收的角色所在的应用的app name
	TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"`
	// 请求扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 回收主体对象
	Principal *BucUserPrincipalParam `json:"principal,omitempty" xml:"principal,omitempty"`
}

RevokeRolesRequest 结构体

type RevokeRolesResult

type RevokeRolesResult struct {
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应message,若失败则返回失败原因
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,与入参扩展字段值相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否调用成功,成功则为true
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

RevokeRolesResult 结构体

type UpdatePermissionsToPermissionPackageRequest

type UpdatePermissionsToPermissionPackageRequest struct {
	// 权限唯一标识列表
	PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"`
	// 权限套餐唯一标识
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 请求扩展字段,返回数据中扩展字段值与此相同
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 请求主体
	PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
}

UpdatePermissionsToPermissionPackageRequest 结构体

type UpdatePermissionsToPermissionPackageResult

type UpdatePermissionsToPermissionPackageResult struct {
	// 返回data,此接口此字段返回值为空
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应message
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,值与入参扩展字段相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否调用成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

UpdatePermissionsToPermissionPackageResult 结构体

type UpdateRolesToPermissionPackageRequest

type UpdateRolesToPermissionPackageRequest struct {
	// 角色唯一标识列表
	RoleNames []string `json:"role_names,omitempty" xml:"role_names>string,omitempty"`
	// 权限套餐唯一标识
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 请求扩展字段
	RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"`
	// 请求主体
	PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"`
}

UpdateRolesToPermissionPackageRequest 结构体

type UpdateRolesToPermissionPackageResult

type UpdateRolesToPermissionPackageResult struct {
	// 返回data,此接口此字段返回值为空
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 请求唯一id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应message,提供异常信息
	ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"`
	// 扩展字段,值与入参扩展字段相同
	ResponseMetaData string `json:"response_meta_data,omitempty" xml:"response_meta_data,omitempty"`
	// 响应code
	ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"`
	// 是否调用成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

UpdateRolesToPermissionPackageResult 结构体

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL