iam

package
v0.21.43 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package iam include resources of ucloud iam 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

	// 【该字段已废弃,请谨慎使用】
	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

type IAMClient struct {
	*ucloud.Client
}

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.

Jump to

Keyboard shortcuts

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