Documentation ¶
Overview ¶
MOZI权限API model
Index ¶
- type AddPermissionToRoleRequest
- type AddPermissionToRoleResult
- type AlibabaMoziAclAppGetpermisspkgsAPIRequest
- func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest() *GetAppPermissionPackageRequest
- func (r *AlibabaMoziAclAppGetpermisspkgsAPIRequest) SetGetAppPermissionPackagesRequest(_getAppPermissionPackagesRequest *GetAppPermissionPackageRequest) error
- type AlibabaMoziAclAppGetpermisspkgsAPIResponse
- type AlibabaMoziAclAppGetpermisspkgsAPIResponseModel
- type AlibabaMoziAclGrantGrantroleAPIRequest
- func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetGrantRolesRequest() *GrantRolesRequest
- func (r *AlibabaMoziAclGrantGrantroleAPIRequest) SetGrantRolesRequest(_grantRolesRequest *GrantRolesRequest) error
- type AlibabaMoziAclGrantGrantroleAPIResponse
- type AlibabaMoziAclGrantGrantroleAPIResponseModel
- type AlibabaMoziAclPermissionPageRolepermissionAPIRequest
- func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetPageRolePermisions() *PageRolePermissionRequest
- func (r *AlibabaMoziAclPermissionPageRolepermissionAPIRequest) SetPageRolePermisions(_pageRolePermisions *PageRolePermissionRequest) error
- type AlibabaMoziAclPermissionPageRolepermissionAPIResponse
- type AlibabaMoziAclPermissionPageRolepermissionAPIResponseModel
- type AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest
- func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetParameters() *UpdatePermissionsToPermissionPackageRequest
- func (r *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) SetParameters(_parameters *UpdatePermissionsToPermissionPackageRequest) error
- type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse
- type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponseModel
- type AlibabaMoziAclPermissionpkgAddRolesAPIRequest
- func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetParameters() *UpdateRolesToPermissionPackageRequest
- func (r *AlibabaMoziAclPermissionpkgAddRolesAPIRequest) SetParameters(_parameters *UpdateRolesToPermissionPackageRequest) error
- type AlibabaMoziAclPermissionpkgAddRolesAPIResponse
- type AlibabaMoziAclPermissionpkgAddRolesAPIResponseModel
- type AlibabaMoziAclRoleAddAPIRequest
- func (r AlibabaMoziAclRoleAddAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclRoleAddAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclRoleAddAPIRequest) GetCreateRoleRequest() *CreateRoleRequest
- func (r *AlibabaMoziAclRoleAddAPIRequest) SetCreateRoleRequest(_createRoleRequest *CreateRoleRequest) error
- type AlibabaMoziAclRoleAddAPIResponse
- type AlibabaMoziAclRoleAddAPIResponseModel
- type AlibabaMoziAclRoleAddPermissionsAPIRequest
- func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetAddPermissionsToRole() *AddPermissionToRoleRequest
- func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiParams() url.Values
- func (r *AlibabaMoziAclRoleAddPermissionsAPIRequest) SetAddPermissionsToRole(_addPermissionsToRole *AddPermissionToRoleRequest) error
- type AlibabaMoziAclRoleAddPermissionsAPIResponse
- type AlibabaMoziAclRoleAddPermissionsAPIResponseModel
- type AlibabaMoziAclRoleRemoveAPIRequest
- func (r AlibabaMoziAclRoleRemoveAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclRoleRemoveAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclRoleRemoveAPIRequest) GetDeleteRolesRequest() *DeleteRolesRequest
- func (r *AlibabaMoziAclRoleRemoveAPIRequest) SetDeleteRolesRequest(_deleteRolesRequest *DeleteRolesRequest) error
- type AlibabaMoziAclRoleRemoveAPIResponse
- type AlibabaMoziAclRoleRemoveAPIResponseModel
- type AlibabaMoziAclRoleRemovePermissionsAPIRequest
- func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetRemovePermissionsFromRole() *RemovePermissionsFromRoleRequest
- func (r *AlibabaMoziAclRoleRemovePermissionsAPIRequest) SetRemovePermissionsFromRole(_removePermissionsFromRole *RemovePermissionsFromRoleRequest) error
- type AlibabaMoziAclRoleRemovePermissionsAPIResponse
- type AlibabaMoziAclRoleRemovePermissionsAPIResponseModel
- type AlibabaMoziAclUserpermissionsRevokeAPIRequest
- func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetRevokePermission() *RevokePermissionsRequest
- func (r *AlibabaMoziAclUserpermissionsRevokeAPIRequest) SetRevokePermission(_revokePermission *RevokePermissionsRequest) error
- type AlibabaMoziAclUserpermissionsRevokeAPIResponse
- type AlibabaMoziAclUserpermissionsRevokeAPIResponseModel
- type AlibabaMoziAclUserrolesRevokeAPIRequest
- func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetApiMethodName() string
- func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetApiParams() url.Values
- func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetRevokeRolesRequest() *RevokeRolesRequest
- func (r *AlibabaMoziAclUserrolesRevokeAPIRequest) SetRevokeRolesRequest(_revokeRolesRequest *RevokeRolesRequest) error
- type AlibabaMoziAclUserrolesRevokeAPIResponse
- type AlibabaMoziAclUserrolesRevokeAPIResponseModel
- type AppPermissionPackageResult
- type BucPrincipalParam
- type BucUser
- type BucUserPrincipalParam
- type CreateRoleRequest
- type CreateRoleResult
- type DeleteRolesRequest
- type GetAppPermissionPackageRequest
- type GrantRolesRequest
- type GrantRolesResult
- type PageRolePermissionRequest
- type PageRolePermissionResult
- type PermissionEntity
- type PermissionPackageEntity
- type RealmEntity
- type RemovePermissionsFromRoleRequest
- type RemovePermissionsFromRoleResult
- type RevokePermissionsRequest
- type RevokePermissionsResult
- type RevokeRolesRequest
- type RevokeRolesResult
- type UpdatePermissionsToPermissionPackageRequest
- type UpdatePermissionsToPermissionPackageResult
- type UpdateRolesToPermissionPackageRequest
- type UpdateRolesToPermissionPackageResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPermissionToRoleRequest ¶
type AddPermissionToRoleRequest struct { // 操作主体 PrincipalParam *BucPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,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"` // 要添加的权限name列表(功能权限唯一code,在ACL中全局唯一) PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"` }
AddPermissionToRoleRequest 结构体
type AddPermissionToRoleResult ¶
type AddPermissionToRoleResult struct { // 返回数据,这个接口返回数据为空 Data string `json:"data,omitempty" xml:"data,omitempty"` // 是否处理成功,若成功则返回true Success bool `json:"success,omitempty" xml:"success,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"` }
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 NewAlibabaMoziAclAppGetpermisspkgsRequest ¶
func NewAlibabaMoziAclAppGetpermisspkgsRequest() *AlibabaMoziAclAppGetpermisspkgsAPIRequest
NewAlibabaMoziAclAppGetpermisspkgsRequest 初始化AlibabaMoziAclAppGetpermisspkgsAPIRequest对象
func (AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest ¶ added in v1.2.0
func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest() *GetAppPermissionPackageRequest
Get GetAppPermissionPackagesRequest Getter
func (*AlibabaMoziAclAppGetpermisspkgsAPIRequest) SetGetAppPermissionPackagesRequest ¶ added in v1.2.0
func (r *AlibabaMoziAclAppGetpermisspkgsAPIRequest) SetGetAppPermissionPackagesRequest(_getAppPermissionPackagesRequest *GetAppPermissionPackageRequest) error
Set is GetAppPermissionPackagesRequest Setter 获取应用的权限套餐请求对象
type AlibabaMoziAclAppGetpermisspkgsAPIResponse ¶
type AlibabaMoziAclAppGetpermisspkgsAPIResponse struct { model.CommonResponse AlibabaMoziAclAppGetpermisspkgsAPIResponseModel }
AlibabaMoziAclAppGetpermisspkgsAPIResponse
分页获取应用的权限套餐 API返回值 alibaba.mozi.acl.app.getpermisspkgs
分页查询应用下的权限套餐列表
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 分页获取应用的权限套餐 成功返回结果
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 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() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclGrantGrantroleAPIRequest) GetGrantRolesRequest ¶ added in v1.2.0
func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetGrantRolesRequest() *GrantRolesRequest
Get GrantRolesRequest Getter
func (*AlibabaMoziAclGrantGrantroleAPIRequest) SetGrantRolesRequest ¶ added in v1.2.0
func (r *AlibabaMoziAclGrantGrantroleAPIRequest) SetGrantRolesRequest(_grantRolesRequest *GrantRolesRequest) error
Set is GrantRolesRequest Setter 整体入参对象
type AlibabaMoziAclGrantGrantroleAPIResponse ¶
type AlibabaMoziAclGrantGrantroleAPIResponse struct { model.CommonResponse AlibabaMoziAclGrantGrantroleAPIResponseModel }
AlibabaMoziAclGrantGrantroleAPIResponse
将一个角色授予一个账号 API返回值 alibaba.mozi.acl.grant.grantrole
根据入参,将入参中的角色授权给入参的某个账户,调用此接口后,该账户就会被授予该角色
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 将一个角色授予一个账号 成功返回结果
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 NewAlibabaMoziAclPermissionPageRolepermissionRequest ¶
func NewAlibabaMoziAclPermissionPageRolepermissionRequest() *AlibabaMoziAclPermissionPageRolepermissionAPIRequest
NewAlibabaMoziAclPermissionPageRolepermissionRequest 初始化AlibabaMoziAclPermissionPageRolepermissionAPIRequest对象
func (AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetPageRolePermisions ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetPageRolePermisions() *PageRolePermissionRequest
Get PageRolePermisions Getter
func (*AlibabaMoziAclPermissionPageRolepermissionAPIRequest) SetPageRolePermisions ¶ added in v1.2.0
func (r *AlibabaMoziAclPermissionPageRolepermissionAPIRequest) SetPageRolePermisions(_pageRolePermisions *PageRolePermissionRequest) error
Set is PageRolePermisions Setter 分页查询角色下包含的权限列表
type AlibabaMoziAclPermissionPageRolepermissionAPIResponse ¶
type AlibabaMoziAclPermissionPageRolepermissionAPIResponse struct { model.CommonResponse AlibabaMoziAclPermissionPageRolepermissionAPIResponseModel }
AlibabaMoziAclPermissionPageRolepermissionAPIResponse
分页查询角色下包含的权限列表 API返回值 alibaba.mozi.acl.permission.page.rolepermission
根据传入的角色name,分页查询该角色包含的权限列表
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 分页查询角色下包含的权限列表 成功返回结果
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 NewAlibabaMoziAclPermissionpkgAddPermissionsRequest ¶
func NewAlibabaMoziAclPermissionpkgAddPermissionsRequest() *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest
NewAlibabaMoziAclPermissionpkgAddPermissionsRequest 初始化AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest对象
func (AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetParameters ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetParameters() *UpdatePermissionsToPermissionPackageRequest
Get Parameters Getter
func (*AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) SetParameters ¶ added in v1.2.0
func (r *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) SetParameters(_parameters *UpdatePermissionsToPermissionPackageRequest) error
Set is Parameters Setter 请求对象
type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse ¶
type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse struct { model.CommonResponse AlibabaMoziAclPermissionpkgAddPermissionsAPIResponseModel }
AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse
权限套餐添加权限 API返回值 alibaba.mozi.acl.permissionpkg.add.permissions
此接口的功能为:将一批应用下的权限添加到该应用下的权限套餐中
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 权限套餐添加权限 成功返回结果
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 NewAlibabaMoziAclPermissionpkgAddRolesRequest ¶
func NewAlibabaMoziAclPermissionpkgAddRolesRequest() *AlibabaMoziAclPermissionpkgAddRolesAPIRequest
NewAlibabaMoziAclPermissionpkgAddRolesRequest 初始化AlibabaMoziAclPermissionpkgAddRolesAPIRequest对象
func (AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetParameters ¶ added in v1.2.0
func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetParameters() *UpdateRolesToPermissionPackageRequest
Get Parameters Getter
func (*AlibabaMoziAclPermissionpkgAddRolesAPIRequest) SetParameters ¶ added in v1.2.0
func (r *AlibabaMoziAclPermissionpkgAddRolesAPIRequest) SetParameters(_parameters *UpdateRolesToPermissionPackageRequest) error
Set is Parameters Setter 请求入参对象
type AlibabaMoziAclPermissionpkgAddRolesAPIResponse ¶
type AlibabaMoziAclPermissionpkgAddRolesAPIResponse struct { model.CommonResponse AlibabaMoziAclPermissionpkgAddRolesAPIResponseModel }
AlibabaMoziAclPermissionpkgAddRolesAPIResponse
将角色添加到权限套餐中 API返回值 alibaba.mozi.acl.permissionpkg.add.roles
此接口是将应用下的一批角色添加到该应用的某个权限套餐中
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 将角色添加到权限套餐中 成功返回结果
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 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() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclRoleAddAPIRequest) GetCreateRoleRequest ¶ added in v1.2.0
func (r AlibabaMoziAclRoleAddAPIRequest) GetCreateRoleRequest() *CreateRoleRequest
Get CreateRoleRequest Getter
func (*AlibabaMoziAclRoleAddAPIRequest) SetCreateRoleRequest ¶ added in v1.2.0
func (r *AlibabaMoziAclRoleAddAPIRequest) SetCreateRoleRequest(_createRoleRequest *CreateRoleRequest) error
Set is CreateRoleRequest Setter 创建角色请求对象
type AlibabaMoziAclRoleAddAPIResponse ¶
type AlibabaMoziAclRoleAddAPIResponse struct { model.CommonResponse AlibabaMoziAclRoleAddAPIResponseModel }
AlibabaMoziAclRoleAddAPIResponse
新增一个角色 API返回值 alibaba.mozi.acl.role.add
新增一个角色
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 新增一个角色 成功返回结果
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 NewAlibabaMoziAclRoleAddPermissionsRequest ¶
func NewAlibabaMoziAclRoleAddPermissionsRequest() *AlibabaMoziAclRoleAddPermissionsAPIRequest
NewAlibabaMoziAclRoleAddPermissionsRequest 初始化AlibabaMoziAclRoleAddPermissionsAPIRequest对象
func (AlibabaMoziAclRoleAddPermissionsAPIRequest) GetAddPermissionsToRole ¶ added in v1.2.0
func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetAddPermissionsToRole() *AddPermissionToRoleRequest
Get AddPermissionsToRole Getter
func (AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (*AlibabaMoziAclRoleAddPermissionsAPIRequest) SetAddPermissionsToRole ¶ added in v1.2.0
func (r *AlibabaMoziAclRoleAddPermissionsAPIRequest) SetAddPermissionsToRole(_addPermissionsToRole *AddPermissionToRoleRequest) error
Set is AddPermissionsToRole Setter 角色添加功能权限请求对象
type AlibabaMoziAclRoleAddPermissionsAPIResponse ¶
type AlibabaMoziAclRoleAddPermissionsAPIResponse struct { model.CommonResponse AlibabaMoziAclRoleAddPermissionsAPIResponseModel }
AlibabaMoziAclRoleAddPermissionsAPIResponse
角色添加功能权限 API返回值 alibaba.mozi.acl.role.add.permissions
往角色中添加一批功能权限
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 角色添加功能权限 成功返回结果
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 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() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclRoleRemoveAPIRequest) GetDeleteRolesRequest ¶ added in v1.2.0
func (r AlibabaMoziAclRoleRemoveAPIRequest) GetDeleteRolesRequest() *DeleteRolesRequest
Get DeleteRolesRequest Getter
func (*AlibabaMoziAclRoleRemoveAPIRequest) SetDeleteRolesRequest ¶ added in v1.2.0
func (r *AlibabaMoziAclRoleRemoveAPIRequest) SetDeleteRolesRequest(_deleteRolesRequest *DeleteRolesRequest) error
Set is DeleteRolesRequest Setter 删除角色请求对象
type AlibabaMoziAclRoleRemoveAPIResponse ¶
type AlibabaMoziAclRoleRemoveAPIResponse struct { model.CommonResponse AlibabaMoziAclRoleRemoveAPIResponseModel }
AlibabaMoziAclRoleRemoveAPIResponse
删除角色 API返回值 alibaba.mozi.acl.role.remove
根据传入的角色code、租户id,删除租户内对应的角色
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"` // 是否操作成功,true代表操作成功 IsSuccess bool `json:"is_success,omitempty" xml:"is_success,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"` }
AlibabaMoziAclRoleRemoveAPIResponseModel is 删除角色 成功返回结果
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 NewAlibabaMoziAclRoleRemovePermissionsRequest ¶
func NewAlibabaMoziAclRoleRemovePermissionsRequest() *AlibabaMoziAclRoleRemovePermissionsAPIRequest
NewAlibabaMoziAclRoleRemovePermissionsRequest 初始化AlibabaMoziAclRoleRemovePermissionsAPIRequest对象
func (AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetRemovePermissionsFromRole ¶ added in v1.2.0
func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetRemovePermissionsFromRole() *RemovePermissionsFromRoleRequest
Get RemovePermissionsFromRole Getter
func (*AlibabaMoziAclRoleRemovePermissionsAPIRequest) SetRemovePermissionsFromRole ¶ added in v1.2.0
func (r *AlibabaMoziAclRoleRemovePermissionsAPIRequest) SetRemovePermissionsFromRole(_removePermissionsFromRole *RemovePermissionsFromRoleRequest) error
Set is RemovePermissionsFromRole Setter 角色移除功能权限请求对象
type AlibabaMoziAclRoleRemovePermissionsAPIResponse ¶
type AlibabaMoziAclRoleRemovePermissionsAPIResponse struct { model.CommonResponse AlibabaMoziAclRoleRemovePermissionsAPIResponseModel }
AlibabaMoziAclRoleRemovePermissionsAPIResponse
角色移除功能权限 API返回值 alibaba.mozi.acl.role.remove.permissions
从角色中移除一批功能权限
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 角色移除功能权限 成功返回结果
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 NewAlibabaMoziAclUserpermissionsRevokeRequest ¶
func NewAlibabaMoziAclUserpermissionsRevokeRequest() *AlibabaMoziAclUserpermissionsRevokeAPIRequest
NewAlibabaMoziAclUserpermissionsRevokeRequest 初始化AlibabaMoziAclUserpermissionsRevokeAPIRequest对象
func (AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetRevokePermission ¶ added in v1.2.0
func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetRevokePermission() *RevokePermissionsRequest
Get RevokePermission Getter
func (*AlibabaMoziAclUserpermissionsRevokeAPIRequest) SetRevokePermission ¶ added in v1.2.0
func (r *AlibabaMoziAclUserpermissionsRevokeAPIRequest) SetRevokePermission(_revokePermission *RevokePermissionsRequest) error
Set is RevokePermission Setter 回收权限入参对象
type AlibabaMoziAclUserpermissionsRevokeAPIResponse ¶
type AlibabaMoziAclUserpermissionsRevokeAPIResponse struct { model.CommonResponse AlibabaMoziAclUserpermissionsRevokeAPIResponseModel }
AlibabaMoziAclUserpermissionsRevokeAPIResponse
回收账户权限 API返回值 alibaba.mozi.acl.userpermissions.revoke
调用此接口,会根据入参回收该账户下的该批权限点
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 回收账户权限 成功返回结果
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 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() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaMoziAclUserrolesRevokeAPIRequest) GetRevokeRolesRequest ¶ added in v1.2.0
func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetRevokeRolesRequest() *RevokeRolesRequest
Get RevokeRolesRequest Getter
func (*AlibabaMoziAclUserrolesRevokeAPIRequest) SetRevokeRolesRequest ¶ added in v1.2.0
func (r *AlibabaMoziAclUserrolesRevokeAPIRequest) SetRevokeRolesRequest(_revokeRolesRequest *RevokeRolesRequest) error
Set is RevokeRolesRequest Setter 回收角色入参对象
type AlibabaMoziAclUserrolesRevokeAPIResponse ¶
type AlibabaMoziAclUserrolesRevokeAPIResponse struct { model.CommonResponse AlibabaMoziAclUserrolesRevokeAPIResponseModel }
AlibabaMoziAclUserrolesRevokeAPIResponse
回收账户被授予的角色接口 API返回值 alibaba.mozi.acl.userroles.revoke
调用此接口,会根据入参回收该账户下的该批角色
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 回收账户被授予的角色接口 成功返回结果
type AppPermissionPackageResult ¶
type AppPermissionPackageResult struct { // 应用下套餐总数 TotalSize int64 `json:"total_size,omitempty" xml:"total_size,omitempty"` // 套权限餐数据列表 Datas []PermissionPackageEntity `json:"datas,omitempty" xml:"datas>permission_package_entity,omitempty"` // 是否处理成功,成功则为true Success bool `json:"success,omitempty" xml:"success,omitempty"` // 请求唯一id RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 每页数据条数 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 查询第几页 CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,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"` }
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 { // 操作人userId UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"` // 操作人所在租户Id TenantId int64 `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"` // 租户名称,不需要填 TenantName string `json:"tenant_name,omitempty" xml:"tenant_name,omitempty"` }
BucUserPrincipalParam 结构体
type CreateRoleRequest ¶
type CreateRoleRequest struct { // 角色归属的应用name,不传则以appKey对应的应用为准 TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"` // 角色包含的权限name列表 AddPermissionNames []string `json:"add_permission_names,omitempty" xml:"add_permission_names>string,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"` // 是否数据权限,角色没有挂载数据权限,则为false IsData bool `json:"is_data,omitempty" xml:"is_data,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"` // 操作主体 PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"` // 操作人的userId OperatorUserId int64 `json:"operator_user_id,omitempty" xml:"operator_user_id,omitempty"` // 角色唯一code,在ACL中全局唯一 Name string `json:"name,omitempty" xml:"name,omitempty"` // 角色归属人userId OwnerUserId int64 `json:"owner_user_id,omitempty" xml:"owner_user_id,omitempty"` // 角色回收策略(REVOKE代表用户所在部门发生变化时,该用户的权限将被回收,RESERVE代表用户所在部门发生变化时,该用户的权限将被保留,TRANSFER_REVOKE代表个人主动转岗时回收 - 只在小二主动申请转岗时回收本权限) RevokeRule string `json:"revoke_rule,omitempty" xml:"revoke_rule,omitempty"` // 角色审批人userId列表 ApproverUserIds []int64 `json:"approver_user_ids,omitempty" xml:"approver_user_ids>int64,omitempty"` // 扩展字段 ExtentionMap string `json:"extention_map,omitempty" xml:"extention_map,omitempty"` }
CreateRoleRequest 结构体
type CreateRoleResult ¶
type CreateRoleResult struct { // 创建角色返回data,此处无数据返回 Data string `json:"data,omitempty" xml:"data,omitempty"` // 接口调用是否成功,若成功则为true Success bool `json:"success,omitempty" xml:"success,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"` }
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 { // 是否查询权限套餐被开通的租户列表(如无必要,建议不要设置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"` // 操作主体 PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"` // 要查询的应用的appname TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"` // 每页数据条数 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 是否查询权限套餐中包含的角色、权限、数据权限 的数量。(如无必要,建议不要设置为true,会增加额外查询) ShowELementCount bool `json:"show_e_lement_count,omitempty" xml:"show_e_lement_count,omitempty"` // 请求扩展字段 RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"` // 权限套餐名模糊匹配 FuzzyName string `json:"fuzzy_name,omitempty" xml:"fuzzy_name,omitempty"` // 查询第几页 PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` }
GetAppPermissionPackageRequest 结构体
type GrantRolesRequest ¶
type GrantRolesRequest struct { // 调用接口授角色的原因 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"` // 授角色主体 Principal *BucUserPrincipalParam `json:"principal,omitempty" xml:"principal,omitempty"` // 授予角色的过期时间 ExpireDate string `json:"expire_date,omitempty" xml:"expire_date,omitempty"` // 授予的角色的code列表 RoleNames []string `json:"role_names,omitempty" xml:"role_names>string,omitempty"` }
GrantRolesRequest 结构体
type GrantRolesResult ¶
type GrantRolesResult struct { // 是否调用成功,成功则为true,否则为false Success bool `json:"success,omitempty" xml:"success,omitempty"` // 请求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"` }
GrantRolesResult 结构体
type PageRolePermissionRequest ¶
type PageRolePermissionRequest struct { // 是否返回数据总数量 ReturnTotalSize bool `json:"return_total_size,omitempty" xml:"return_total_size,omitempty"` // 操作主体 PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"` // 角色所在的应用app name TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"` // 每页返回数量 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 请求扩展字段 RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"` // 角色下权限模糊匹配,如果传了,则将按照此模糊字段匹配角色下的权限 FuzzyName string `json:"fuzzy_name,omitempty" xml:"fuzzy_name,omitempty"` // 查询第几页 PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` // 要查询的角色name RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"` }
PageRolePermissionRequest 结构体
type PageRolePermissionResult ¶
type PageRolePermissionResult struct { // 角色下权限总数量 TotalSize int64 `json:"total_size,omitempty" xml:"total_size,omitempty"` // 角色下的权限列表数据 Datas []PermissionEntity `json:"datas,omitempty" xml:"datas>permission_entity,omitempty"` // 是否处理成功,成功则返回true Success bool `json:"success,omitempty" xml:"success,omitempty"` // 请求唯一id RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 要查询的角色name RoleName string `json:"role_name,omitempty" xml:"role_name,omitempty"` // 每页数量 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 当前页 CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,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"` }
PageRolePermissionResult 结构体
type PermissionEntity ¶
type PermissionEntity struct { // 权限描述 PermissionDescription string `json:"permission_description,omitempty" xml:"permission_description,omitempty"` // 权限归属人userId列表 PermissionOwnerIdList []string `json:"permission_owner_id_list,omitempty" xml:"permission_owner_id_list>string,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"` // 创建人 Creator *BucUser `json:"creator,omitempty" xml:"creator,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"` // 是否可用 IsActive bool `json:"is_active,omitempty" xml:"is_active,omitempty"` }
PermissionEntity 结构体
type PermissionPackageEntity ¶
type PermissionPackageEntity struct { // 权限套餐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"` // 注册的租户列表 RegistRealmList []RealmEntity `json:"regist_realm_list,omitempty" xml:"regist_realm_list>realm_entity,omitempty"` // 权限套餐创建人 Creator *BucUser `json:"creator,omitempty" xml:"creator,omitempty"` }
PermissionPackageEntity 结构体
type RealmEntity ¶
type RealmEntity struct { // 租户id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 租户名称 Name string `json:"name,omitempty" xml:"name,omitempty"` // 租户描述 Description string `json:"description,omitempty" xml:"description,omitempty"` }
RealmEntity 结构体
type RemovePermissionsFromRoleRequest ¶
type RemovePermissionsFromRoleRequest struct { // 操作主体 PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,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"` // 要移除的权限name列表(功能权限唯一code,在ACL中全局唯一) PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"` // 请求参数扩展字段 RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"` }
RemovePermissionsFromRoleRequest 结构体
type RemovePermissionsFromRoleResult ¶
type RemovePermissionsFromRoleResult struct { // 返回数据,这个接口返回数据为空 Data string `json:"data,omitempty" xml:"data,omitempty"` // 是否处理成功,若成功则返回true Success bool `json:"success,omitempty" xml:"success,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"` }
RemovePermissionsFromRoleResult 结构体
type RevokePermissionsRequest ¶
type RevokePermissionsRequest struct { // 回收主体对象 Principal *BucUserPrincipalParam `json:"principal,omitempty" xml:"principal,omitempty"` // 回收权限所在的app name TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"` // 回收权限的name列表 PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"` // 请求扩展字段 RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"` }
RevokePermissionsRequest 结构体
type RevokePermissionsResult ¶
type RevokePermissionsResult struct { // 是否调用成功,成功则为true Success bool `json:"success,omitempty" xml:"success,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"` }
RevokePermissionsResult 结构体
type RevokeRolesRequest ¶
type RevokeRolesRequest struct { // 回收主体对象 Principal *BucUserPrincipalParam `json:"principal,omitempty" xml:"principal,omitempty"` // 回收的角色所在的应用的app name TargetAppName string `json:"target_app_name,omitempty" xml:"target_app_name,omitempty"` // 回收的角色name列表 RoleNames []string `json:"role_names,omitempty" xml:"role_names>string,omitempty"` // 请求扩展字段 RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"` }
RevokeRolesRequest 结构体
type RevokeRolesResult ¶
type RevokeRolesResult struct { // 是否调用成功,成功则为true Success bool `json:"success,omitempty" xml:"success,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"` }
RevokeRolesResult 结构体
type UpdatePermissionsToPermissionPackageRequest ¶
type UpdatePermissionsToPermissionPackageRequest struct { // 请求主体 PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"` // 权限套餐唯一标识 Name string `json:"name,omitempty" xml:"name,omitempty"` // 权限唯一标识列表 PermissionNames []string `json:"permission_names,omitempty" xml:"permission_names>string,omitempty"` // 请求扩展字段,返回数据中扩展字段值与此相同 RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"` }
UpdatePermissionsToPermissionPackageRequest 结构体
type UpdatePermissionsToPermissionPackageResult ¶
type UpdatePermissionsToPermissionPackageResult struct { // 返回data,此接口此字段返回值为空 Data string `json:"data,omitempty" xml:"data,omitempty"` // 是否调用成功 Success bool `json:"success,omitempty" xml:"success,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"` }
UpdatePermissionsToPermissionPackageResult 结构体
type UpdateRolesToPermissionPackageRequest ¶
type UpdateRolesToPermissionPackageRequest struct { // 请求主体 PrincipalParam *BucUserPrincipalParam `json:"principal_param,omitempty" xml:"principal_param,omitempty"` // 权限套餐唯一标识 Name string `json:"name,omitempty" xml:"name,omitempty"` // 角色唯一标识列表 RoleNames []string `json:"role_names,omitempty" xml:"role_names>string,omitempty"` // 请求扩展字段 RequestMetaData string `json:"request_meta_data,omitempty" xml:"request_meta_data,omitempty"` }
UpdateRolesToPermissionPackageRequest 结构体
type UpdateRolesToPermissionPackageResult ¶
type UpdateRolesToPermissionPackageResult struct { // 返回data,此接口此字段返回值为空 Data string `json:"data,omitempty" xml:"data,omitempty"` // 是否调用成功 Success bool `json:"success,omitempty" xml:"success,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"` }
UpdateRolesToPermissionPackageResult 结构体
Source Files ¶
- AddPermissionToRoleRequest.go
- AddPermissionToRoleResult.go
- AlibabaMoziAclAppGetpermisspkgsAPIRequest.go
- AlibabaMoziAclAppGetpermisspkgsAPIResponse.go
- AlibabaMoziAclGrantGrantroleAPIRequest.go
- AlibabaMoziAclGrantGrantroleAPIResponse.go
- AlibabaMoziAclPermissionPageRolepermissionAPIRequest.go
- AlibabaMoziAclPermissionPageRolepermissionAPIResponse.go
- AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest.go
- AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse.go
- AlibabaMoziAclPermissionpkgAddRolesAPIRequest.go
- AlibabaMoziAclPermissionpkgAddRolesAPIResponse.go
- AlibabaMoziAclRoleAddAPIRequest.go
- AlibabaMoziAclRoleAddAPIResponse.go
- AlibabaMoziAclRoleAddPermissionsAPIRequest.go
- AlibabaMoziAclRoleAddPermissionsAPIResponse.go
- AlibabaMoziAclRoleRemoveAPIRequest.go
- AlibabaMoziAclRoleRemoveAPIResponse.go
- AlibabaMoziAclRoleRemovePermissionsAPIRequest.go
- AlibabaMoziAclRoleRemovePermissionsAPIResponse.go
- AlibabaMoziAclUserpermissionsRevokeAPIRequest.go
- AlibabaMoziAclUserpermissionsRevokeAPIResponse.go
- AlibabaMoziAclUserrolesRevokeAPIRequest.go
- AlibabaMoziAclUserrolesRevokeAPIResponse.go
- AppPermissionPackageResult.go
- BucPrincipalParam.go
- BucUser.go
- BucUserPrincipalParam.go
- CreateRoleRequest.go
- CreateRoleResult.go
- DeleteRolesRequest.go
- GetAppPermissionPackageRequest.go
- GrantRolesRequest.go
- GrantRolesResult.go
- PageRolePermissionRequest.go
- PageRolePermissionResult.go
- PermissionEntity.go
- PermissionPackageEntity.go
- RealmEntity.go
- RemovePermissionsFromRoleRequest.go
- RemovePermissionsFromRoleResult.go
- RevokePermissionsRequest.go
- RevokePermissionsResult.go
- RevokeRolesRequest.go
- RevokeRolesResult.go
- UpdatePermissionsToPermissionPackageRequest.go
- UpdatePermissionsToPermissionPackageResult.go
- UpdateRolesToPermissionPackageRequest.go
- UpdateRolesToPermissionPackageResult.go
- doc.go