Documentation ¶
Overview ¶
Package iam include resources of ucloud iam product
See also
for detail.
Index ¶
- type CreateProjectRequest
- type CreateProjectResponse
- type DeleteProjectRequest
- type DeleteProjectResponse
- type IAMClient
- func (c *IAMClient) CreateProject(req *CreateProjectRequest) (*CreateProjectResponse, error)
- func (c *IAMClient) DeleteProject(req *DeleteProjectRequest) (*DeleteProjectResponse, error)
- func (c *IAMClient) NewCreateProjectRequest() *CreateProjectRequest
- func (c *IAMClient) NewDeleteProjectRequest() *DeleteProjectRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateProjectRequest ¶
type CreateProjectRequest struct { request.CommonBase // 【该字段已废弃,请谨慎使用】 ParentId *string `required:"false" deprecated:"true"` // 项目名称,不得与现有项目重名 ProjectName *string `required:"true"` }
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 DeleteProjectRequest ¶
type DeleteProjectRequest struct { request.CommonBase // 项目ID ProjectID *string `required:"true"` }
DeleteProjectRequest is request schema for DeleteProject action
type DeleteProjectResponse ¶
type DeleteProjectResponse struct { response.CommonBase // 错误消息 Message string }
DeleteProjectResponse is response schema for DeleteProject action
type IAMClient ¶
IAMClient is the client of IAM
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *IAMClient
NewClient will return a instance of IAMClient
func (*IAMClient) CreateProject ¶
func (c *IAMClient) CreateProject(req *CreateProjectRequest) (*CreateProjectResponse, error)
API: CreateProject
创建项目
func (*IAMClient) DeleteProject ¶
func (c *IAMClient) DeleteProject(req *DeleteProjectRequest) (*DeleteProjectResponse, error)
API: DeleteProject
删除项目
func (*IAMClient) NewCreateProjectRequest ¶
func (c *IAMClient) NewCreateProjectRequest() *CreateProjectRequest
NewCreateProjectRequest will create request of CreateProject action.
func (*IAMClient) NewDeleteProjectRequest ¶
func (c *IAMClient) NewDeleteProjectRequest() *DeleteProjectRequest
NewDeleteProjectRequest will create request of DeleteProject action.
Click to show internal directories.
Click to hide internal directories.