models

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPermissionsInfo

type AddPermissionsInfo struct {

	/* 权限id集合  */
	PermissionIds []int `json:"permissionIds"`
}

type CreatePermissionInfo

type CreatePermissionInfo struct {

	/* 权限名称,1~32位数字、字母、中文、下划线、下划线、中划线  */
	Name string `json:"name"`

	/* 描述,0~256个字符 (Optional) */
	Description *string `json:"description"`

	/* 权限详细信息  */
	Content []PermissionDetail `json:"content"`
}

type CreateSubUserInfo

type CreateSubUserInfo struct {

	/* 子账号用户名,4~20位数字、字母、中文、下划线、中划线  */
	Name string `json:"name"`

	/* 描述,0~256个字符 (Optional) */
	Description *string `json:"description"`

	/* 密码,6~20位,至少包含一个字母,至少包含一个数字或半角符号  */
	Password string `json:"password"`

	/* 手机号码,区号-手机号,目前只支持0086-中国手机号码  */
	Phone string `json:"phone"`

	/* 邮箱  */
	Email string `json:"email"`

	/* 确认密码  */
	PasswordConfirm string `json:"passwordConfirm"`

	/* 是否创建accessKey  */
	CreateAk bool `json:"createAk"`
}

type Permission

type Permission struct {

	/* 权限id (Optional) */
	Id int `json:"id"`

	/* 主账号pin (Optional) */
	Account string `json:"account"`

	/* 权限名称 (Optional) */
	Name string `json:"name"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 权限类型 (Optional) */
	PermissionType string `json:"permissionType"`

	/* 权限版本号 (Optional) */
	Version string `json:"version"`

	/* 权限内容 (Optional) */
	Content string `json:"content"`

	/* 权限详细信息 (Optional) */
	PermissionDetailList []PermissionDetail `json:"permissionDetailList"`
}

type PermissionDetail

type PermissionDetail struct {

	/* 权限类型,只读-R、删除-D、修改-M  */
	Permission string `json:"permission"`

	/* 资源信息  */
	Resource []Resource `json:"resource"`
}

type RemovePermissionInfo

type RemovePermissionInfo struct {

	/* 权限id  */
	PermissionId int `json:"permissionId"`
}

type Resource

type Resource struct {

	/* 资源id集合,传*表示对所有id生效  */
	Ids []string `json:"ids"`

	/* 资源类型,云主机-server、镜像-image、云硬盘-volume、vpc-vpc、公网Ip-floatingIp、负载均衡-loadbalance、云数据库(mysql)-database、云缓存-cache  */
	Type string `json:"type"`
}

type UpdatePermissionInfo

type UpdatePermissionInfo struct {

	/* 权限名称,1~32位数字、字符、中文、中划线、下划线  */
	Name string `json:"name"`

	/* 描述,0~256个字符 (Optional) */
	Description *string `json:"description"`

	/* 权限详细信息  */
	Content []PermissionDetail `json:"content"`
}

type UserAccessKey

type UserAccessKey struct {

	/* accessKey (Optional) */
	AccessKey string `json:"accessKey"`

	/* accessKeySecret (Optional) */
	AccessKeySecret string `json:"accessKeySecret"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 禁用/启用状态[0-禁用,1-启用] (Optional) */
	State int `json:"state"`

	/* 删除/有效状态[0-删除,1-有效] (Optional) */
	Yn int `json:"yn"`
}

Jump to

Keyboard shortcuts

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