uaccount

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 10

Documentation

Overview

Package uaccount include resources of ucloud uaccount product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProjectRequest

type CreateProjectRequest struct {
	request.CommonBase

	// 项目名称
	ProjectName *string `required:"true"`

	// 项目父节点Id, 不填写创建顶层项目
	ParentId *string `required:"false"`
}

CreateProjectRequest is request schema for CreateProject action

type CreateProjectResponse

type CreateProjectResponse struct {
	response.CommonBase

	// 所创建项目的Id
	ProjectId string
}

CreateProjectResponse is response schema for CreateProject action

type GetProjectListRequest

type GetProjectListRequest struct {
	request.CommonBase

	// 是否是财务账号(Yes: 是, No: 否)
	IsFinance *string `required:"false"`
}

GetProjectListRequest is request schema for GetProjectList action

type GetProjectListResponse

type GetProjectListResponse struct {
	response.CommonBase

	// 项目总数
	ProjectCount int

	// JSON格式的项目列表实例
	ProjectSet []ProjectListInfo
}

GetProjectListResponse is response schema for GetProjectList action

type GetRegionRequest

type GetRegionRequest struct {
	request.CommonBase
}

GetRegionRequest is request schema for GetRegion action

type GetRegionResponse

type GetRegionResponse struct {
	response.CommonBase

	// 各数据中心信息
	Regions []RegionInfo
}

GetRegionResponse is response schema for GetRegion action

type GetUserInfoRequest

type GetUserInfoRequest struct {
	request.CommonBase
}

GetUserInfoRequest is request schema for GetUserInfo action

type GetUserInfoResponse

type GetUserInfoResponse struct {
	response.CommonBase

	// 用户信息返回数组
	DataSet []UserInfo
}

GetUserInfoResponse is response schema for GetUserInfo action

type ModifyProjectRequest

type ModifyProjectRequest struct {
	request.CommonBase

	// 新的项目名称
	ProjectName *string `required:"true"`
}

ModifyProjectRequest is request schema for ModifyProject action

type ModifyProjectResponse

type ModifyProjectResponse struct {
	response.CommonBase
}

ModifyProjectResponse is response schema for ModifyProject action

type ProjectListInfo

type ProjectListInfo struct {

	// 项目ID
	ProjectId string

	// 项目名称
	ProjectName string

	// 父项目ID
	ParentId string

	// 父项目名称
	ParentName string

	// 创建时间(Unix时间戳)
	CreateTime int

	// 是否为默认项目
	IsDefault bool

	// 项目下资源数量
	ResourceCount int

	// 项目下成员数量
	MemberCount int
}

ProjectListInfo - 项目信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type RegionInfo

type RegionInfo struct {

	// 数据中心ID
	RegionId int

	// 数据中心名称
	RegionName string

	// 是否用户当前默认数据中心
	IsDefault bool

	// 用户在此数据中心的权限位
	BitMaps string

	// 地域名字,如cn-bj
	Region string

	// 可用区名字,如cn-bj-01
	Zone string
}

RegionInfo - 数据中心信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type TerminateProjectRequest

type TerminateProjectRequest struct {
	request.CommonBase
}

TerminateProjectRequest is request schema for TerminateProject action

type TerminateProjectResponse

type TerminateProjectResponse struct {
	response.CommonBase
}

TerminateProjectResponse is response schema for TerminateProject action

type UAccountClient

type UAccountClient struct {
	*ucloud.Client
}

UAccountClient is the client of UAccount

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UAccountClient

NewClient will return a instance of UAccountClient

func (*UAccountClient) CreateProject

CreateProject - 创建项目

func (*UAccountClient) GetProjectList

GetProjectList - 获取项目列表

func (*UAccountClient) GetRegion

func (c *UAccountClient) GetRegion(req *GetRegionRequest) (*GetRegionResponse, error)

GetRegion - 获取用户在各数据中心的权限等信息

func (*UAccountClient) GetUserInfo

GetUserInfo - 获取用户信息

func (*UAccountClient) ModifyProject

ModifyProject - 修改项目

func (*UAccountClient) NewCreateProjectRequest

func (c *UAccountClient) NewCreateProjectRequest() *CreateProjectRequest

NewCreateProjectRequest will create request of CreateProject action.

func (*UAccountClient) NewGetProjectListRequest

func (c *UAccountClient) NewGetProjectListRequest() *GetProjectListRequest

NewGetProjectListRequest will create request of GetProjectList action.

func (*UAccountClient) NewGetRegionRequest

func (c *UAccountClient) NewGetRegionRequest() *GetRegionRequest

NewGetRegionRequest will create request of GetRegion action.

func (*UAccountClient) NewGetUserInfoRequest

func (c *UAccountClient) NewGetUserInfoRequest() *GetUserInfoRequest

NewGetUserInfoRequest will create request of GetUserInfo action.

func (*UAccountClient) NewModifyProjectRequest

func (c *UAccountClient) NewModifyProjectRequest() *ModifyProjectRequest

NewModifyProjectRequest will create request of ModifyProject action.

func (*UAccountClient) NewTerminateProjectRequest

func (c *UAccountClient) NewTerminateProjectRequest() *TerminateProjectRequest

NewTerminateProjectRequest will create request of TerminateProject action.

func (*UAccountClient) TerminateProject

TerminateProject - 删除项目

type UserInfo

type UserInfo struct {

	// 用户Id
	UserId int

	// 用户邮箱
	UserEmail string

	// 用户手机
	UserPhone string

	// 国际号码前缀
	PhonePrefix string

	// 会员类型
	UserType int

	// 称呼
	UserName string

	// 公司名称
	CompanyName string

	// 所属行业
	IndustryType int

	// 省份
	Province string

	// 城市
	City string

	// 公司地址
	UserAddress string

	// 是否超级管理员 0:否 1:是
	Admin int

	// 是否子帐户(大于100为子帐户)
	UserVersion int

	// 是否有财务权限 0:否 1:是
	Finance int

	// 管理员
	Administrator string

	// 实名认证状态
	AuthState string
}

UserInfo - 用户信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

Jump to

Keyboard shortcuts

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