moziacl

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 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

func ReleaseAddPermissionToRoleRequest added in v1.3.4

func ReleaseAddPermissionToRoleRequest(v *AddPermissionToRoleRequest)

ReleaseAddPermissionToRoleRequest 释放AddPermissionToRoleRequest

func ReleaseAddPermissionToRoleResult added in v1.3.4

func ReleaseAddPermissionToRoleResult(v *AddPermissionToRoleResult)

ReleaseAddPermissionToRoleResult 释放AddPermissionToRoleResult

func ReleaseAlibabaMoziAclAppGetpermisspkgsAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclAppGetpermisspkgsAPIRequest(v *AlibabaMoziAclAppGetpermisspkgsAPIRequest)

ReleaseAlibabaMoziAclAppGetpermisspkgsAPIRequest 将 AlibabaMoziAclAppGetpermisspkgsAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclAppGetpermisspkgsAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclAppGetpermisspkgsAPIResponse(v *AlibabaMoziAclAppGetpermisspkgsAPIResponse)

ReleaseAlibabaMoziAclAppGetpermisspkgsAPIResponse 将 AlibabaMoziAclAppGetpermisspkgsAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclGrantGrantroleAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclGrantGrantroleAPIRequest(v *AlibabaMoziAclGrantGrantroleAPIRequest)

ReleaseAlibabaMoziAclGrantGrantroleAPIRequest 将 AlibabaMoziAclGrantGrantroleAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclGrantGrantroleAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclGrantGrantroleAPIResponse(v *AlibabaMoziAclGrantGrantroleAPIResponse)

ReleaseAlibabaMoziAclGrantGrantroleAPIResponse 将 AlibabaMoziAclGrantGrantroleAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclPermissionPageRolepermissionAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclPermissionPageRolepermissionAPIRequest(v *AlibabaMoziAclPermissionPageRolepermissionAPIRequest)

ReleaseAlibabaMoziAclPermissionPageRolepermissionAPIRequest 将 AlibabaMoziAclPermissionPageRolepermissionAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclPermissionPageRolepermissionAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclPermissionPageRolepermissionAPIResponse(v *AlibabaMoziAclPermissionPageRolepermissionAPIResponse)

ReleaseAlibabaMoziAclPermissionPageRolepermissionAPIResponse 将 AlibabaMoziAclPermissionPageRolepermissionAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclPermissionpkgAddPermissionsAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclPermissionpkgAddPermissionsAPIRequest(v *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest)

ReleaseAlibabaMoziAclPermissionpkgAddPermissionsAPIRequest 将 AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclPermissionpkgAddPermissionsAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclPermissionpkgAddPermissionsAPIResponse(v *AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse)

ReleaseAlibabaMoziAclPermissionpkgAddPermissionsAPIResponse 将 AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclPermissionpkgAddRolesAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclPermissionpkgAddRolesAPIRequest(v *AlibabaMoziAclPermissionpkgAddRolesAPIRequest)

ReleaseAlibabaMoziAclPermissionpkgAddRolesAPIRequest 将 AlibabaMoziAclPermissionpkgAddRolesAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclPermissionpkgAddRolesAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclPermissionpkgAddRolesAPIResponse(v *AlibabaMoziAclPermissionpkgAddRolesAPIResponse)

ReleaseAlibabaMoziAclPermissionpkgAddRolesAPIResponse 将 AlibabaMoziAclPermissionpkgAddRolesAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclRoleAddAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclRoleAddAPIRequest(v *AlibabaMoziAclRoleAddAPIRequest)

ReleaseAlibabaMoziAclRoleAddAPIRequest 将 AlibabaMoziAclRoleAddAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclRoleAddAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclRoleAddAPIResponse(v *AlibabaMoziAclRoleAddAPIResponse)

ReleaseAlibabaMoziAclRoleAddAPIResponse 将 AlibabaMoziAclRoleAddAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclRoleAddPermissionsAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclRoleAddPermissionsAPIRequest(v *AlibabaMoziAclRoleAddPermissionsAPIRequest)

ReleaseAlibabaMoziAclRoleAddPermissionsAPIRequest 将 AlibabaMoziAclRoleAddPermissionsAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclRoleAddPermissionsAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclRoleAddPermissionsAPIResponse(v *AlibabaMoziAclRoleAddPermissionsAPIResponse)

ReleaseAlibabaMoziAclRoleAddPermissionsAPIResponse 将 AlibabaMoziAclRoleAddPermissionsAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclRoleRemoveAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclRoleRemoveAPIRequest(v *AlibabaMoziAclRoleRemoveAPIRequest)

ReleaseAlibabaMoziAclRoleRemoveAPIRequest 将 AlibabaMoziAclRoleRemoveAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclRoleRemoveAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclRoleRemoveAPIResponse(v *AlibabaMoziAclRoleRemoveAPIResponse)

ReleaseAlibabaMoziAclRoleRemoveAPIResponse 将 AlibabaMoziAclRoleRemoveAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclRoleRemovePermissionsAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclRoleRemovePermissionsAPIRequest(v *AlibabaMoziAclRoleRemovePermissionsAPIRequest)

ReleaseAlibabaMoziAclRoleRemovePermissionsAPIRequest 将 AlibabaMoziAclRoleRemovePermissionsAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclRoleRemovePermissionsAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclRoleRemovePermissionsAPIResponse(v *AlibabaMoziAclRoleRemovePermissionsAPIResponse)

ReleaseAlibabaMoziAclRoleRemovePermissionsAPIResponse 将 AlibabaMoziAclRoleRemovePermissionsAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclUserpermissionsRevokeAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclUserpermissionsRevokeAPIRequest(v *AlibabaMoziAclUserpermissionsRevokeAPIRequest)

ReleaseAlibabaMoziAclUserpermissionsRevokeAPIRequest 将 AlibabaMoziAclUserpermissionsRevokeAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclUserpermissionsRevokeAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclUserpermissionsRevokeAPIResponse(v *AlibabaMoziAclUserpermissionsRevokeAPIResponse)

ReleaseAlibabaMoziAclUserpermissionsRevokeAPIResponse 将 AlibabaMoziAclUserpermissionsRevokeAPIResponse 保存到 sync.Pool

func ReleaseAlibabaMoziAclUserrolesRevokeAPIRequest added in v1.3.4

func ReleaseAlibabaMoziAclUserrolesRevokeAPIRequest(v *AlibabaMoziAclUserrolesRevokeAPIRequest)

ReleaseAlibabaMoziAclUserrolesRevokeAPIRequest 将 AlibabaMoziAclUserrolesRevokeAPIRequest 放入 sync.Pool

func ReleaseAlibabaMoziAclUserrolesRevokeAPIResponse added in v1.3.4

func ReleaseAlibabaMoziAclUserrolesRevokeAPIResponse(v *AlibabaMoziAclUserrolesRevokeAPIResponse)

ReleaseAlibabaMoziAclUserrolesRevokeAPIResponse 将 AlibabaMoziAclUserrolesRevokeAPIResponse 保存到 sync.Pool

func ReleaseAppPermissionPackageResult added in v1.3.4

func ReleaseAppPermissionPackageResult(v *AppPermissionPackageResult)

ReleaseAppPermissionPackageResult 释放AppPermissionPackageResult

func ReleaseBucPrincipalParam added in v1.3.4

func ReleaseBucPrincipalParam(v *BucPrincipalParam)

ReleaseBucPrincipalParam 释放BucPrincipalParam

func ReleaseBucUser added in v1.3.4

func ReleaseBucUser(v *BucUser)

ReleaseBucUser 释放BucUser

func ReleaseBucUserPrincipalParam added in v1.3.4

func ReleaseBucUserPrincipalParam(v *BucUserPrincipalParam)

ReleaseBucUserPrincipalParam 释放BucUserPrincipalParam

func ReleaseCreateRoleRequest added in v1.3.4

func ReleaseCreateRoleRequest(v *CreateRoleRequest)

ReleaseCreateRoleRequest 释放CreateRoleRequest

func ReleaseCreateRoleResult added in v1.3.4

func ReleaseCreateRoleResult(v *CreateRoleResult)

ReleaseCreateRoleResult 释放CreateRoleResult

func ReleaseDeleteRolesRequest added in v1.3.4

func ReleaseDeleteRolesRequest(v *DeleteRolesRequest)

ReleaseDeleteRolesRequest 释放DeleteRolesRequest

func ReleaseGetAppPermissionPackageRequest added in v1.3.4

func ReleaseGetAppPermissionPackageRequest(v *GetAppPermissionPackageRequest)

ReleaseGetAppPermissionPackageRequest 释放GetAppPermissionPackageRequest

func ReleaseGrantRolesRequest added in v1.3.4

func ReleaseGrantRolesRequest(v *GrantRolesRequest)

ReleaseGrantRolesRequest 释放GrantRolesRequest

func ReleaseGrantRolesResult added in v1.3.4

func ReleaseGrantRolesResult(v *GrantRolesResult)

ReleaseGrantRolesResult 释放GrantRolesResult

func ReleasePageRolePermissionRequest added in v1.3.4

func ReleasePageRolePermissionRequest(v *PageRolePermissionRequest)

ReleasePageRolePermissionRequest 释放PageRolePermissionRequest

func ReleasePageRolePermissionResult added in v1.3.4

func ReleasePageRolePermissionResult(v *PageRolePermissionResult)

ReleasePageRolePermissionResult 释放PageRolePermissionResult

func ReleasePermissionEntity added in v1.3.4

func ReleasePermissionEntity(v *PermissionEntity)

ReleasePermissionEntity 释放PermissionEntity

func ReleasePermissionPackageEntity added in v1.3.4

func ReleasePermissionPackageEntity(v *PermissionPackageEntity)

ReleasePermissionPackageEntity 释放PermissionPackageEntity

func ReleaseRealmEntity added in v1.3.4

func ReleaseRealmEntity(v *RealmEntity)

ReleaseRealmEntity 释放RealmEntity

func ReleaseRemovePermissionsFromRoleRequest added in v1.3.4

func ReleaseRemovePermissionsFromRoleRequest(v *RemovePermissionsFromRoleRequest)

ReleaseRemovePermissionsFromRoleRequest 释放RemovePermissionsFromRoleRequest

func ReleaseRemovePermissionsFromRoleResult added in v1.3.4

func ReleaseRemovePermissionsFromRoleResult(v *RemovePermissionsFromRoleResult)

ReleaseRemovePermissionsFromRoleResult 释放RemovePermissionsFromRoleResult

func ReleaseRevokePermissionsRequest added in v1.3.4

func ReleaseRevokePermissionsRequest(v *RevokePermissionsRequest)

ReleaseRevokePermissionsRequest 释放RevokePermissionsRequest

func ReleaseRevokePermissionsResult added in v1.3.4

func ReleaseRevokePermissionsResult(v *RevokePermissionsResult)

ReleaseRevokePermissionsResult 释放RevokePermissionsResult

func ReleaseRevokeRolesRequest added in v1.3.4

func ReleaseRevokeRolesRequest(v *RevokeRolesRequest)

ReleaseRevokeRolesRequest 释放RevokeRolesRequest

func ReleaseRevokeRolesResult added in v1.3.4

func ReleaseRevokeRolesResult(v *RevokeRolesResult)

ReleaseRevokeRolesResult 释放RevokeRolesResult

func ReleaseUpdatePermissionsToPermissionPackageRequest added in v1.3.4

func ReleaseUpdatePermissionsToPermissionPackageRequest(v *UpdatePermissionsToPermissionPackageRequest)

ReleaseUpdatePermissionsToPermissionPackageRequest 释放UpdatePermissionsToPermissionPackageRequest

func ReleaseUpdatePermissionsToPermissionPackageResult added in v1.3.4

func ReleaseUpdatePermissionsToPermissionPackageResult(v *UpdatePermissionsToPermissionPackageResult)

ReleaseUpdatePermissionsToPermissionPackageResult 释放UpdatePermissionsToPermissionPackageResult

func ReleaseUpdateRolesToPermissionPackageRequest added in v1.3.4

func ReleaseUpdateRolesToPermissionPackageRequest(v *UpdateRolesToPermissionPackageRequest)

ReleaseUpdateRolesToPermissionPackageRequest 释放UpdateRolesToPermissionPackageRequest

func ReleaseUpdateRolesToPermissionPackageResult added in v1.3.4

func ReleaseUpdateRolesToPermissionPackageResult(v *UpdateRolesToPermissionPackageResult)

ReleaseUpdateRolesToPermissionPackageResult 释放UpdateRolesToPermissionPackageResult

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 结构体

func GetAddPermissionToRoleRequest added in v1.3.4

func GetAddPermissionToRoleRequest() *AddPermissionToRoleRequest

GetAddPermissionToRoleRequest() 从对象池中获取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 结构体

func GetAddPermissionToRoleResult added in v1.3.4

func GetAddPermissionToRoleResult() *AddPermissionToRoleResult

GetAddPermissionToRoleResult() 从对象池中获取AddPermissionToRoleResult

type AlibabaMoziAclAppGetpermisspkgsAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclAppGetpermisspkgsAPIRequest added in v1.3.4

func GetAlibabaMoziAclAppGetpermisspkgsAPIRequest() *AlibabaMoziAclAppGetpermisspkgsAPIRequest

GetAlibabaMoziAclAppGetpermisspkgsRequest 从 sync.Pool 获取 AlibabaMoziAclAppGetpermisspkgsAPIRequest

func NewAlibabaMoziAclAppGetpermisspkgsRequest

func NewAlibabaMoziAclAppGetpermisspkgsRequest() *AlibabaMoziAclAppGetpermisspkgsAPIRequest

NewAlibabaMoziAclAppGetpermisspkgsRequest 初始化AlibabaMoziAclAppGetpermisspkgsAPIRequest对象

func (AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest added in v1.2.0

func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest() *GetAppPermissionPackageRequest

GetGetAppPermissionPackagesRequest GetAppPermissionPackagesRequest Getter

func (AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMoziAclAppGetpermisspkgsAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclAppGetpermisspkgsAPIRequest) SetGetAppPermissionPackagesRequest added in v1.2.0

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

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

type AlibabaMoziAclAppGetpermisspkgsAPIResponse

type AlibabaMoziAclAppGetpermisspkgsAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclAppGetpermisspkgsAPIResponseModel
}

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

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

func GetAlibabaMoziAclAppGetpermisspkgsAPIResponse added in v1.3.4

func GetAlibabaMoziAclAppGetpermisspkgsAPIResponse() *AlibabaMoziAclAppGetpermisspkgsAPIResponse

GetAlibabaMoziAclAppGetpermisspkgsAPIResponse 从 sync.Pool 获取 AlibabaMoziAclAppGetpermisspkgsAPIResponse

func (*AlibabaMoziAclAppGetpermisspkgsAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclAppGetpermisspkgsAPIResponseModel added in v1.2.0

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 分页获取应用的权限套餐 成功返回结果

func (*AlibabaMoziAclAppGetpermisspkgsAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclGrantGrantroleAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclGrantGrantroleAPIRequest added in v1.3.4

func GetAlibabaMoziAclGrantGrantroleAPIRequest() *AlibabaMoziAclGrantGrantroleAPIRequest

GetAlibabaMoziAclGrantGrantroleRequest 从 sync.Pool 获取 AlibabaMoziAclGrantGrantroleAPIRequest

func NewAlibabaMoziAclGrantGrantroleRequest

func NewAlibabaMoziAclGrantGrantroleRequest() *AlibabaMoziAclGrantGrantroleAPIRequest

NewAlibabaMoziAclGrantGrantroleRequest 初始化AlibabaMoziAclGrantGrantroleAPIRequest对象

func (AlibabaMoziAclGrantGrantroleAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclGrantGrantroleAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclGrantGrantroleAPIRequest) GetGrantRolesRequest added in v1.2.0

GetGrantRolesRequest GrantRolesRequest Getter

func (AlibabaMoziAclGrantGrantroleAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMoziAclGrantGrantroleAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclGrantGrantroleAPIRequest) SetGrantRolesRequest added in v1.2.0

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

SetGrantRolesRequest is GrantRolesRequest Setter 整体入参对象

type AlibabaMoziAclGrantGrantroleAPIResponse

type AlibabaMoziAclGrantGrantroleAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclGrantGrantroleAPIResponseModel
}

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

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

func GetAlibabaMoziAclGrantGrantroleAPIResponse added in v1.3.4

func GetAlibabaMoziAclGrantGrantroleAPIResponse() *AlibabaMoziAclGrantGrantroleAPIResponse

GetAlibabaMoziAclGrantGrantroleAPIResponse 从 sync.Pool 获取 AlibabaMoziAclGrantGrantroleAPIResponse

func (*AlibabaMoziAclGrantGrantroleAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclGrantGrantroleAPIResponseModel added in v1.2.0

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 将一个角色授予一个账号 成功返回结果

func (*AlibabaMoziAclGrantGrantroleAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclPermissionPageRolepermissionAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclPermissionPageRolepermissionAPIRequest added in v1.3.4

func GetAlibabaMoziAclPermissionPageRolepermissionAPIRequest() *AlibabaMoziAclPermissionPageRolepermissionAPIRequest

GetAlibabaMoziAclPermissionPageRolepermissionRequest 从 sync.Pool 获取 AlibabaMoziAclPermissionPageRolepermissionAPIRequest

func NewAlibabaMoziAclPermissionPageRolepermissionRequest

func NewAlibabaMoziAclPermissionPageRolepermissionRequest() *AlibabaMoziAclPermissionPageRolepermissionAPIRequest

NewAlibabaMoziAclPermissionPageRolepermissionRequest 初始化AlibabaMoziAclPermissionPageRolepermissionAPIRequest对象

func (AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetPageRolePermisions added in v1.2.0

GetPageRolePermisions PageRolePermisions Getter

func (AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMoziAclPermissionPageRolepermissionAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclPermissionPageRolepermissionAPIRequest) SetPageRolePermisions added in v1.2.0

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

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

type AlibabaMoziAclPermissionPageRolepermissionAPIResponse

type AlibabaMoziAclPermissionPageRolepermissionAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclPermissionPageRolepermissionAPIResponseModel
}

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

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

func GetAlibabaMoziAclPermissionPageRolepermissionAPIResponse added in v1.3.4

func GetAlibabaMoziAclPermissionPageRolepermissionAPIResponse() *AlibabaMoziAclPermissionPageRolepermissionAPIResponse

GetAlibabaMoziAclPermissionPageRolepermissionAPIResponse 从 sync.Pool 获取 AlibabaMoziAclPermissionPageRolepermissionAPIResponse

func (*AlibabaMoziAclPermissionPageRolepermissionAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclPermissionPageRolepermissionAPIResponseModel added in v1.2.0

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 分页查询角色下包含的权限列表 成功返回结果

func (*AlibabaMoziAclPermissionPageRolepermissionAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclPermissionpkgAddPermissionsAPIRequest added in v1.3.4

func GetAlibabaMoziAclPermissionpkgAddPermissionsAPIRequest() *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest

GetAlibabaMoziAclPermissionpkgAddPermissionsRequest 从 sync.Pool 获取 AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest

func NewAlibabaMoziAclPermissionpkgAddPermissionsRequest

func NewAlibabaMoziAclPermissionpkgAddPermissionsRequest() *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest

NewAlibabaMoziAclPermissionpkgAddPermissionsRequest 初始化AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest对象

func (AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetParameters added in v1.2.0

GetParameters Parameters Getter

func (AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) SetParameters added in v1.2.0

SetParameters is Parameters Setter 请求对象

type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse

type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclPermissionpkgAddPermissionsAPIResponseModel
}

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

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

func GetAlibabaMoziAclPermissionpkgAddPermissionsAPIResponse added in v1.3.4

func GetAlibabaMoziAclPermissionpkgAddPermissionsAPIResponse() *AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse

GetAlibabaMoziAclPermissionpkgAddPermissionsAPIResponse 从 sync.Pool 获取 AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse

func (*AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponseModel added in v1.2.0

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 权限套餐添加权限 成功返回结果

func (*AlibabaMoziAclPermissionpkgAddPermissionsAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclPermissionpkgAddRolesAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclPermissionpkgAddRolesAPIRequest added in v1.3.4

func GetAlibabaMoziAclPermissionpkgAddRolesAPIRequest() *AlibabaMoziAclPermissionpkgAddRolesAPIRequest

GetAlibabaMoziAclPermissionpkgAddRolesRequest 从 sync.Pool 获取 AlibabaMoziAclPermissionpkgAddRolesAPIRequest

func NewAlibabaMoziAclPermissionpkgAddRolesRequest

func NewAlibabaMoziAclPermissionpkgAddRolesRequest() *AlibabaMoziAclPermissionpkgAddRolesAPIRequest

NewAlibabaMoziAclPermissionpkgAddRolesRequest 初始化AlibabaMoziAclPermissionpkgAddRolesAPIRequest对象

func (AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetParameters added in v1.2.0

GetParameters Parameters Getter

func (AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMoziAclPermissionpkgAddRolesAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclPermissionpkgAddRolesAPIRequest) SetParameters added in v1.2.0

SetParameters is Parameters Setter 请求入参对象

type AlibabaMoziAclPermissionpkgAddRolesAPIResponse

type AlibabaMoziAclPermissionpkgAddRolesAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclPermissionpkgAddRolesAPIResponseModel
}

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

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

func GetAlibabaMoziAclPermissionpkgAddRolesAPIResponse added in v1.3.4

func GetAlibabaMoziAclPermissionpkgAddRolesAPIResponse() *AlibabaMoziAclPermissionpkgAddRolesAPIResponse

GetAlibabaMoziAclPermissionpkgAddRolesAPIResponse 从 sync.Pool 获取 AlibabaMoziAclPermissionpkgAddRolesAPIResponse

func (*AlibabaMoziAclPermissionpkgAddRolesAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclPermissionpkgAddRolesAPIResponseModel added in v1.2.0

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 将角色添加到权限套餐中 成功返回结果

func (*AlibabaMoziAclPermissionpkgAddRolesAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleAddAPIRequest added in v1.2.0

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

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

新增一个角色

func GetAlibabaMoziAclRoleAddAPIRequest added in v1.3.4

func GetAlibabaMoziAclRoleAddAPIRequest() *AlibabaMoziAclRoleAddAPIRequest

GetAlibabaMoziAclRoleAddRequest 从 sync.Pool 获取 AlibabaMoziAclRoleAddAPIRequest

func NewAlibabaMoziAclRoleAddRequest

func NewAlibabaMoziAclRoleAddRequest() *AlibabaMoziAclRoleAddAPIRequest

NewAlibabaMoziAclRoleAddRequest 初始化AlibabaMoziAclRoleAddAPIRequest对象

func (AlibabaMoziAclRoleAddAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaMoziAclRoleAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclRoleAddAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclRoleAddAPIRequest) GetCreateRoleRequest added in v1.2.0

func (r AlibabaMoziAclRoleAddAPIRequest) GetCreateRoleRequest() *CreateRoleRequest

GetCreateRoleRequest CreateRoleRequest Getter

func (AlibabaMoziAclRoleAddAPIRequest) GetRawParams added in v1.2.8

func (r AlibabaMoziAclRoleAddAPIRequest) GetRawParams() model.Params

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

func (*AlibabaMoziAclRoleAddAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclRoleAddAPIRequest) SetCreateRoleRequest added in v1.2.0

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

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

type AlibabaMoziAclRoleAddAPIResponse

type AlibabaMoziAclRoleAddAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclRoleAddAPIResponseModel
}

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

新增一个角色

func GetAlibabaMoziAclRoleAddAPIResponse added in v1.3.4

func GetAlibabaMoziAclRoleAddAPIResponse() *AlibabaMoziAclRoleAddAPIResponse

GetAlibabaMoziAclRoleAddAPIResponse 从 sync.Pool 获取 AlibabaMoziAclRoleAddAPIResponse

func (*AlibabaMoziAclRoleAddAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleAddAPIResponseModel added in v1.2.0

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 新增一个角色 成功返回结果

func (*AlibabaMoziAclRoleAddAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleAddPermissionsAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclRoleAddPermissionsAPIRequest added in v1.3.4

func GetAlibabaMoziAclRoleAddPermissionsAPIRequest() *AlibabaMoziAclRoleAddPermissionsAPIRequest

GetAlibabaMoziAclRoleAddPermissionsRequest 从 sync.Pool 获取 AlibabaMoziAclRoleAddPermissionsAPIRequest

func NewAlibabaMoziAclRoleAddPermissionsRequest

func NewAlibabaMoziAclRoleAddPermissionsRequest() *AlibabaMoziAclRoleAddPermissionsAPIRequest

NewAlibabaMoziAclRoleAddPermissionsRequest 初始化AlibabaMoziAclRoleAddPermissionsAPIRequest对象

func (AlibabaMoziAclRoleAddPermissionsAPIRequest) GetAddPermissionsToRole added in v1.2.0

GetAddPermissionsToRole AddPermissionsToRole Getter

func (AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclRoleAddPermissionsAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMoziAclRoleAddPermissionsAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclRoleAddPermissionsAPIRequest) SetAddPermissionsToRole added in v1.2.0

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

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

type AlibabaMoziAclRoleAddPermissionsAPIResponse

type AlibabaMoziAclRoleAddPermissionsAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclRoleAddPermissionsAPIResponseModel
}

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

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

func GetAlibabaMoziAclRoleAddPermissionsAPIResponse added in v1.3.4

func GetAlibabaMoziAclRoleAddPermissionsAPIResponse() *AlibabaMoziAclRoleAddPermissionsAPIResponse

GetAlibabaMoziAclRoleAddPermissionsAPIResponse 从 sync.Pool 获取 AlibabaMoziAclRoleAddPermissionsAPIResponse

func (*AlibabaMoziAclRoleAddPermissionsAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleAddPermissionsAPIResponseModel added in v1.2.0

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 角色添加功能权限 成功返回结果

func (*AlibabaMoziAclRoleAddPermissionsAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleRemoveAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclRoleRemoveAPIRequest added in v1.3.4

func GetAlibabaMoziAclRoleRemoveAPIRequest() *AlibabaMoziAclRoleRemoveAPIRequest

GetAlibabaMoziAclRoleRemoveRequest 从 sync.Pool 获取 AlibabaMoziAclRoleRemoveAPIRequest

func NewAlibabaMoziAclRoleRemoveRequest

func NewAlibabaMoziAclRoleRemoveRequest() *AlibabaMoziAclRoleRemoveAPIRequest

NewAlibabaMoziAclRoleRemoveRequest 初始化AlibabaMoziAclRoleRemoveAPIRequest对象

func (AlibabaMoziAclRoleRemoveAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaMoziAclRoleRemoveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclRoleRemoveAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclRoleRemoveAPIRequest) GetDeleteRolesRequest added in v1.2.0

func (r AlibabaMoziAclRoleRemoveAPIRequest) GetDeleteRolesRequest() *DeleteRolesRequest

GetDeleteRolesRequest DeleteRolesRequest Getter

func (AlibabaMoziAclRoleRemoveAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaMoziAclRoleRemoveAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclRoleRemoveAPIRequest) SetDeleteRolesRequest added in v1.2.0

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

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

type AlibabaMoziAclRoleRemoveAPIResponse

type AlibabaMoziAclRoleRemoveAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclRoleRemoveAPIResponseModel
}

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

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

func GetAlibabaMoziAclRoleRemoveAPIResponse added in v1.3.4

func GetAlibabaMoziAclRoleRemoveAPIResponse() *AlibabaMoziAclRoleRemoveAPIResponse

GetAlibabaMoziAclRoleRemoveAPIResponse 从 sync.Pool 获取 AlibabaMoziAclRoleRemoveAPIResponse

func (*AlibabaMoziAclRoleRemoveAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleRemoveAPIResponseModel added in v1.2.0

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 删除角色 成功返回结果

func (*AlibabaMoziAclRoleRemoveAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleRemovePermissionsAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclRoleRemovePermissionsAPIRequest added in v1.3.4

func GetAlibabaMoziAclRoleRemovePermissionsAPIRequest() *AlibabaMoziAclRoleRemovePermissionsAPIRequest

GetAlibabaMoziAclRoleRemovePermissionsRequest 从 sync.Pool 获取 AlibabaMoziAclRoleRemovePermissionsAPIRequest

func NewAlibabaMoziAclRoleRemovePermissionsRequest

func NewAlibabaMoziAclRoleRemovePermissionsRequest() *AlibabaMoziAclRoleRemovePermissionsAPIRequest

NewAlibabaMoziAclRoleRemovePermissionsRequest 初始化AlibabaMoziAclRoleRemovePermissionsAPIRequest对象

func (AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetRemovePermissionsFromRole added in v1.2.0

GetRemovePermissionsFromRole RemovePermissionsFromRole Getter

func (*AlibabaMoziAclRoleRemovePermissionsAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclRoleRemovePermissionsAPIRequest) SetRemovePermissionsFromRole added in v1.2.0

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

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

type AlibabaMoziAclRoleRemovePermissionsAPIResponse

type AlibabaMoziAclRoleRemovePermissionsAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclRoleRemovePermissionsAPIResponseModel
}

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

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

func GetAlibabaMoziAclRoleRemovePermissionsAPIResponse added in v1.3.4

func GetAlibabaMoziAclRoleRemovePermissionsAPIResponse() *AlibabaMoziAclRoleRemovePermissionsAPIResponse

GetAlibabaMoziAclRoleRemovePermissionsAPIResponse 从 sync.Pool 获取 AlibabaMoziAclRoleRemovePermissionsAPIResponse

func (*AlibabaMoziAclRoleRemovePermissionsAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclRoleRemovePermissionsAPIResponseModel added in v1.2.0

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 角色移除功能权限 成功返回结果

func (*AlibabaMoziAclRoleRemovePermissionsAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclUserpermissionsRevokeAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclUserpermissionsRevokeAPIRequest added in v1.3.4

func GetAlibabaMoziAclUserpermissionsRevokeAPIRequest() *AlibabaMoziAclUserpermissionsRevokeAPIRequest

GetAlibabaMoziAclUserpermissionsRevokeRequest 从 sync.Pool 获取 AlibabaMoziAclUserpermissionsRevokeAPIRequest

func NewAlibabaMoziAclUserpermissionsRevokeRequest

func NewAlibabaMoziAclUserpermissionsRevokeRequest() *AlibabaMoziAclUserpermissionsRevokeAPIRequest

NewAlibabaMoziAclUserpermissionsRevokeRequest 初始化AlibabaMoziAclUserpermissionsRevokeAPIRequest对象

func (AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetRevokePermission added in v1.2.0

GetRevokePermission RevokePermission Getter

func (*AlibabaMoziAclUserpermissionsRevokeAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclUserpermissionsRevokeAPIRequest) SetRevokePermission added in v1.2.0

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

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

type AlibabaMoziAclUserpermissionsRevokeAPIResponse

type AlibabaMoziAclUserpermissionsRevokeAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclUserpermissionsRevokeAPIResponseModel
}

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

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

func GetAlibabaMoziAclUserpermissionsRevokeAPIResponse added in v1.3.4

func GetAlibabaMoziAclUserpermissionsRevokeAPIResponse() *AlibabaMoziAclUserpermissionsRevokeAPIResponse

GetAlibabaMoziAclUserpermissionsRevokeAPIResponse 从 sync.Pool 获取 AlibabaMoziAclUserpermissionsRevokeAPIResponse

func (*AlibabaMoziAclUserpermissionsRevokeAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclUserpermissionsRevokeAPIResponseModel added in v1.2.0

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 回收账户权限 成功返回结果

func (*AlibabaMoziAclUserpermissionsRevokeAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclUserrolesRevokeAPIRequest added in v1.2.0

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

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

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

func GetAlibabaMoziAclUserrolesRevokeAPIRequest added in v1.3.4

func GetAlibabaMoziAclUserrolesRevokeAPIRequest() *AlibabaMoziAclUserrolesRevokeAPIRequest

GetAlibabaMoziAclUserrolesRevokeRequest 从 sync.Pool 获取 AlibabaMoziAclUserrolesRevokeAPIRequest

func NewAlibabaMoziAclUserrolesRevokeRequest

func NewAlibabaMoziAclUserrolesRevokeRequest() *AlibabaMoziAclUserrolesRevokeAPIRequest

NewAlibabaMoziAclUserrolesRevokeRequest 初始化AlibabaMoziAclUserrolesRevokeAPIRequest对象

func (AlibabaMoziAclUserrolesRevokeAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaMoziAclUserrolesRevokeAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaMoziAclUserrolesRevokeAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaMoziAclUserrolesRevokeAPIRequest) GetRevokeRolesRequest added in v1.2.0

GetRevokeRolesRequest RevokeRolesRequest Getter

func (*AlibabaMoziAclUserrolesRevokeAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaMoziAclUserrolesRevokeAPIRequest) SetRevokeRolesRequest added in v1.2.0

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

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

type AlibabaMoziAclUserrolesRevokeAPIResponse

type AlibabaMoziAclUserrolesRevokeAPIResponse struct {
	model.CommonResponse
	AlibabaMoziAclUserrolesRevokeAPIResponseModel
}

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

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

func GetAlibabaMoziAclUserrolesRevokeAPIResponse added in v1.3.4

func GetAlibabaMoziAclUserrolesRevokeAPIResponse() *AlibabaMoziAclUserrolesRevokeAPIResponse

GetAlibabaMoziAclUserrolesRevokeAPIResponse 从 sync.Pool 获取 AlibabaMoziAclUserrolesRevokeAPIResponse

func (*AlibabaMoziAclUserrolesRevokeAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaMoziAclUserrolesRevokeAPIResponseModel added in v1.2.0

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 回收账户被授予的角色接口 成功返回结果

func (*AlibabaMoziAclUserrolesRevokeAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

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 结构体

func GetAppPermissionPackageResult added in v1.3.4

func GetAppPermissionPackageResult() *AppPermissionPackageResult

GetAppPermissionPackageResult() 从对象池中获取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 结构体

func GetBucPrincipalParam added in v1.3.4

func GetBucPrincipalParam() *BucPrincipalParam

GetBucPrincipalParam() 从对象池中获取BucPrincipalParam

type BucUser

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

BucUser 结构体

func GetBucUser added in v1.3.4

func GetBucUser() *BucUser

GetBucUser() 从对象池中获取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 结构体

func GetBucUserPrincipalParam added in v1.3.4

func GetBucUserPrincipalParam() *BucUserPrincipalParam

GetBucUserPrincipalParam() 从对象池中获取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 结构体

func GetCreateRoleRequest added in v1.3.4

func GetCreateRoleRequest() *CreateRoleRequest

GetCreateRoleRequest() 从对象池中获取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 结构体

func GetCreateRoleResult added in v1.3.4

func GetCreateRoleResult() *CreateRoleResult

GetCreateRoleResult() 从对象池中获取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 结构体

func GetDeleteRolesRequest added in v1.3.4

func GetDeleteRolesRequest() *DeleteRolesRequest

GetDeleteRolesRequest() 从对象池中获取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 结构体

func GetGetAppPermissionPackageRequest added in v1.3.4

func GetGetAppPermissionPackageRequest() *GetAppPermissionPackageRequest

GetGetAppPermissionPackageRequest() 从对象池中获取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 结构体

func GetGrantRolesRequest added in v1.3.4

func GetGrantRolesRequest() *GrantRolesRequest

GetGrantRolesRequest() 从对象池中获取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 结构体

func GetGrantRolesResult added in v1.3.4

func GetGrantRolesResult() *GrantRolesResult

GetGrantRolesResult() 从对象池中获取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 结构体

func GetPageRolePermissionRequest added in v1.3.4

func GetPageRolePermissionRequest() *PageRolePermissionRequest

GetPageRolePermissionRequest() 从对象池中获取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 结构体

func GetPageRolePermissionResult added in v1.3.4

func GetPageRolePermissionResult() *PageRolePermissionResult

GetPageRolePermissionResult() 从对象池中获取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 结构体

func GetPermissionEntity added in v1.3.4

func GetPermissionEntity() *PermissionEntity

GetPermissionEntity() 从对象池中获取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 结构体

func GetPermissionPackageEntity added in v1.3.4

func GetPermissionPackageEntity() *PermissionPackageEntity

GetPermissionPackageEntity() 从对象池中获取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 结构体

func GetRealmEntity added in v1.3.4

func GetRealmEntity() *RealmEntity

GetRealmEntity() 从对象池中获取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 结构体

func GetRemovePermissionsFromRoleRequest added in v1.3.4

func GetRemovePermissionsFromRoleRequest() *RemovePermissionsFromRoleRequest

GetRemovePermissionsFromRoleRequest() 从对象池中获取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 结构体

func GetRemovePermissionsFromRoleResult added in v1.3.4

func GetRemovePermissionsFromRoleResult() *RemovePermissionsFromRoleResult

GetRemovePermissionsFromRoleResult() 从对象池中获取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 结构体

func GetRevokePermissionsRequest added in v1.3.4

func GetRevokePermissionsRequest() *RevokePermissionsRequest

GetRevokePermissionsRequest() 从对象池中获取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 结构体

func GetRevokePermissionsResult added in v1.3.4

func GetRevokePermissionsResult() *RevokePermissionsResult

GetRevokePermissionsResult() 从对象池中获取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 结构体

func GetRevokeRolesRequest added in v1.3.4

func GetRevokeRolesRequest() *RevokeRolesRequest

GetRevokeRolesRequest() 从对象池中获取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 结构体

func GetRevokeRolesResult added in v1.3.4

func GetRevokeRolesResult() *RevokeRolesResult

GetRevokeRolesResult() 从对象池中获取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 结构体

func GetUpdatePermissionsToPermissionPackageRequest added in v1.3.4

func GetUpdatePermissionsToPermissionPackageRequest() *UpdatePermissionsToPermissionPackageRequest

GetUpdatePermissionsToPermissionPackageRequest() 从对象池中获取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 结构体

func GetUpdatePermissionsToPermissionPackageResult added in v1.3.4

func GetUpdatePermissionsToPermissionPackageResult() *UpdatePermissionsToPermissionPackageResult

GetUpdatePermissionsToPermissionPackageResult() 从对象池中获取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 结构体

func GetUpdateRolesToPermissionPackageRequest added in v1.3.4

func GetUpdateRolesToPermissionPackageRequest() *UpdateRolesToPermissionPackageRequest

GetUpdateRolesToPermissionPackageRequest() 从对象池中获取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 结构体

func GetUpdateRolesToPermissionPackageResult added in v1.3.4

func GetUpdateRolesToPermissionPackageResult() *UpdateRolesToPermissionPackageResult

GetUpdateRolesToPermissionPackageResult() 从对象池中获取UpdateRolesToPermissionPackageResult

Source Files

Jump to

Keyboard shortcuts

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