label

package
v0.22.19 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package label include resources of ucloud label product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindLabelsParamLabels

type BindLabelsParamLabels struct {

	// 标签键
	Key *string `required:"true"`

	// 标签值
	Value *string `required:"true"`
}

BindLabelsParamLabels is request schema for complex param

type BindLabelsRequest

type BindLabelsRequest struct {
	request.CommonBase

	//
	Labels []BindLabelsParamLabels `required:"false"`

	// 资源id数组
	ResourceIds []string `required:"true"`
}

BindLabelsRequest is request schema for BindLabels action

type BindLabelsResponse

type BindLabelsResponse struct {
	response.CommonBase
}

BindLabelsResponse is response schema for BindLabels action

type CreateLabelsParamLabels

type CreateLabelsParamLabels struct {

	// 标签键
	Key *string `required:"true"`

	// 标签值
	Value *string `required:"true"`
}

CreateLabelsParamLabels is request schema for complex param

type CreateLabelsRequest

type CreateLabelsRequest struct {
	request.CommonBase

	//
	Labels []CreateLabelsParamLabels `required:"false"`
}

CreateLabelsRequest is request schema for CreateLabels action

type CreateLabelsResponse

type CreateLabelsResponse struct {
	response.CommonBase
}

CreateLabelsResponse is response schema for CreateLabels action

type DeleteLabelsParamLabels

type DeleteLabelsParamLabels struct {

	// 标签键
	Key *string `required:"true"`

	// 标签值
	Value *string `required:"true"`
}

DeleteLabelsParamLabels is request schema for complex param

type DeleteLabelsRequest

type DeleteLabelsRequest struct {
	request.CommonBase

	//
	Labels []DeleteLabelsParamLabels `required:"false"`
}

DeleteLabelsRequest is request schema for DeleteLabels action

type DeleteLabelsResponse

type DeleteLabelsResponse struct {
	response.CommonBase
}

DeleteLabelsResponse is response schema for DeleteLabels action

type LabelClient

type LabelClient struct {
	*ucloud.Client
}

LabelClient is the client of Label

func NewClient

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

NewClient will return a instance of LabelClient

func (*LabelClient) BindLabels

func (c *LabelClient) BindLabels(req *BindLabelsRequest) (*BindLabelsResponse, error)

API: BindLabels

绑定标签

func (*LabelClient) CreateLabels

func (c *LabelClient) CreateLabels(req *CreateLabelsRequest) (*CreateLabelsResponse, error)

API: CreateLabels

创建标签

func (*LabelClient) DeleteLabels

func (c *LabelClient) DeleteLabels(req *DeleteLabelsRequest) (*DeleteLabelsResponse, error)

API: DeleteLabels

删除标签

func (*LabelClient) ListLabels

func (c *LabelClient) ListLabels(req *ListLabelsRequest) (*ListLabelsResponse, error)

API: ListLabels

标签列表

func (*LabelClient) ListLabelsByResourceIds

API: ListLabelsByResourceIds

根据资源ID获取标签列表

func (*LabelClient) ListProjectsByLabels

API: ListProjectsByLabels

根据标签获取项目列表

func (*LabelClient) ListResourcesByLabels

API: ListResourcesByLabels

根据标签获取资源列表

func (*LabelClient) ListResourcesTypesForLabel

API: ListResourcesTypesForLabel

获取支持标签的资源类型

func (*LabelClient) NewBindLabelsRequest

func (c *LabelClient) NewBindLabelsRequest() *BindLabelsRequest

NewBindLabelsRequest will create request of BindLabels action.

func (*LabelClient) NewCreateLabelsRequest

func (c *LabelClient) NewCreateLabelsRequest() *CreateLabelsRequest

NewCreateLabelsRequest will create request of CreateLabels action.

func (*LabelClient) NewDeleteLabelsRequest

func (c *LabelClient) NewDeleteLabelsRequest() *DeleteLabelsRequest

NewDeleteLabelsRequest will create request of DeleteLabels action.

func (*LabelClient) NewListLabelsByResourceIdsRequest

func (c *LabelClient) NewListLabelsByResourceIdsRequest() *ListLabelsByResourceIdsRequest

NewListLabelsByResourceIdsRequest will create request of ListLabelsByResourceIds action.

func (*LabelClient) NewListLabelsRequest

func (c *LabelClient) NewListLabelsRequest() *ListLabelsRequest

NewListLabelsRequest will create request of ListLabels action.

func (*LabelClient) NewListProjectsByLabelsRequest

func (c *LabelClient) NewListProjectsByLabelsRequest() *ListProjectsByLabelsRequest

NewListProjectsByLabelsRequest will create request of ListProjectsByLabels action.

func (*LabelClient) NewListResourcesByLabelsRequest

func (c *LabelClient) NewListResourcesByLabelsRequest() *ListResourcesByLabelsRequest

NewListResourcesByLabelsRequest will create request of ListResourcesByLabels action.

func (*LabelClient) NewListResourcesTypesForLabelRequest

func (c *LabelClient) NewListResourcesTypesForLabelRequest() *ListResourcesTypesForLabelRequest

NewListResourcesTypesForLabelRequest will create request of ListResourcesTypesForLabel action.

func (*LabelClient) NewUnbindLabelsRequest

func (c *LabelClient) NewUnbindLabelsRequest() *UnbindLabelsRequest

NewUnbindLabelsRequest will create request of UnbindLabels action.

func (*LabelClient) UnbindLabels

func (c *LabelClient) UnbindLabels(req *UnbindLabelsRequest) (*UnbindLabelsResponse, error)

API: UnbindLabels

解绑标签

type ListLabelsByResourceIdsLabel

type ListLabelsByResourceIdsLabel struct {

	// 标签类型,system:系统标签;custom:自定义标签
	Category string

	// 标签键
	Key string

	// 资源id
	ResourceId string

	// 标签值
	Value string
}

ListLabelsByResourceIdsLabel - 标签

type ListLabelsByResourceIdsRequest

type ListLabelsByResourceIdsRequest struct {
	request.CommonBase

	// 返回数据长度,默认为10,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 资源id数组
	ResourceIds []string `required:"true"`
}

ListLabelsByResourceIdsRequest is request schema for ListLabelsByResourceIds action

type ListLabelsByResourceIdsResponse

type ListLabelsByResourceIdsResponse struct {
	response.CommonBase

	// 资源标签数组
	Labels []ListLabelsByResourceIdsLabel

	// 资源标签总数
	TotalCount int
}

ListLabelsByResourceIdsResponse is response schema for ListLabelsByResourceIds action

type ListLabelsLabel

type ListLabelsLabel struct {

	// 标签键
	Key string

	// 资源数量
	ResourceCount int

	// 标签值
	Value string
}

ListLabelsLabel - 标签

type ListLabelsRequest

type ListLabelsRequest struct {
	request.CommonBase

	// 标签类型,system:系统标签;custom:自定义标签
	Category *string `required:"true"`

	// 返回数据长度,默认为10,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`
}

ListLabelsRequest is request schema for ListLabels action

type ListLabelsResponse

type ListLabelsResponse struct {
	response.CommonBase

	// 标签数组
	Labels []ListLabelsLabel

	// 标签总数
	TotalCount int
}

ListLabelsResponse is response schema for ListLabels action

type ListProjectsByLabelsParamLabels

type ListProjectsByLabelsParamLabels struct {

	// 标签键
	Key *string `required:"true"`

	// 标签值
	Value *string `required:"true"`
}

ListProjectsByLabelsParamLabels is request schema for complex param

type ListProjectsByLabelsProject

type ListProjectsByLabelsProject struct {

	// 禁用的资源类型列表
	DisabledResourceTypes []string

	// 项目id
	ProjectId string

	// 项目名称
	ProjectName string

	// 资源类型列表
	ResourceTypes []string
}

ListProjectsByLabelsProject - 项目

type ListProjectsByLabelsRequest

type ListProjectsByLabelsRequest struct {
	request.CommonBase

	//
	Labels []ListProjectsByLabelsParamLabels `required:"false"`
}

ListProjectsByLabelsRequest is request schema for ListProjectsByLabels action

type ListProjectsByLabelsResponse

type ListProjectsByLabelsResponse struct {
	response.CommonBase

	// 项目列表
	Projects []ListProjectsByLabelsProject
}

ListProjectsByLabelsResponse is response schema for ListProjectsByLabels action

type ListResourcesByLabelsLabel added in v0.22.17

type ListResourcesByLabelsLabel struct {

	// 标签类型,system:系统标签;custom:自定义标签
	Category string

	// 标签键
	Key string

	// 标签值
	Value string
}

ListResourcesByLabelsLabel - 标签

type ListResourcesByLabelsParamLabels

type ListResourcesByLabelsParamLabels struct {

	// 标签键
	Key *string `required:"false"`

	// 标签值
	Value *string `required:"false"`
}

ListResourcesByLabelsParamLabels is request schema for complex param

type ListResourcesByLabelsRequest

type ListResourcesByLabelsRequest struct {
	request.CommonBase

	//
	Labels []ListResourcesByLabelsParamLabels `required:"false"`

	// 返回数据长度,默认为10,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 项目id数组
	ProjectIds []string `required:"false"`

	// 资源类型数组
	ResourceTypes []string `required:"false"`
}

ListResourcesByLabelsRequest is request schema for ListResourcesByLabels action

type ListResourcesByLabelsResource added in v0.22.17

type ListResourcesByLabelsResource struct {

	// 标签数组
	Labels []ListResourcesByLabelsLabel

	// 项目id
	ProjectId string

	// 项目名称
	ProjectName string

	// 资源id
	ResourceId string

	// 资源名称
	ResourceName string

	// 资源类型
	ResourceType string
}

ListResourcesByLabelsResource - 资源标签绑定的资源信息

type ListResourcesByLabelsResponse

type ListResourcesByLabelsResponse struct {
	response.CommonBase

	// 资源列表
	Resources []ListResourcesByLabelsResource

	// 资源总数
	TotalCount int
}

ListResourcesByLabelsResponse is response schema for ListResourcesByLabels action

type ListResourcesTypesForLabelRequest

type ListResourcesTypesForLabelRequest struct {
	request.CommonBase
}

ListResourcesTypesForLabelRequest is request schema for ListResourcesTypesForLabel action

type ListResourcesTypesForLabelResponse

type ListResourcesTypesForLabelResponse struct {
	response.CommonBase

	// 资源类型列表
	ResourceTypes []string

	// 总数
	TotalCount int
}

ListResourcesTypesForLabelResponse is response schema for ListResourcesTypesForLabel action

type UnbindLabelsParamLabels

type UnbindLabelsParamLabels struct {

	// 标签键
	Key *string `required:"true"`

	// 标签值
	Value *string `required:"true"`
}

UnbindLabelsParamLabels is request schema for complex param

type UnbindLabelsRequest

type UnbindLabelsRequest struct {
	request.CommonBase

	//
	Labels []UnbindLabelsParamLabels `required:"false"`

	// 资源id数组
	ResourceIds []string `required:"true"`
}

UnbindLabelsRequest is request schema for UnbindLabels action

type UnbindLabelsResponse

type UnbindLabelsResponse struct {
	response.CommonBase
}

UnbindLabelsResponse is response schema for UnbindLabels action

Jump to

Keyboard shortcuts

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