zrm

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

* Zenlayer.com Inc. * Copyright (c) 2014-2022 All Rights Reserved.

Index

Constants

View Source
const (
	APIVersion = "2025-10-14"
	SERVICE    = "zrm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(config *common.Config, secretKeyId, secretKeyPassword string) (client *Client, err error)

func NewClientWithSecretKey

func NewClientWithSecretKey(secretKeyId, secretKeyPassword string) (client *Client, err error)

func (*Client) CreateTags

func (c *Client) CreateTags(request *CreateTagsRequest) (response *CreateTagsResponse, err error)

CreateTags 批量创建标签

func (*Client) DeleteTags

func (c *Client) DeleteTags(request *DeleteTagsRequest) (response *DeleteTagsResponse, err error)

DeleteTags 批量删除标签

func (*Client) DescribeResourceTags

func (c *Client) DescribeResourceTags(request *DescribeResourceTagsRequest) (response *DescribeResourceTagsResponse, err error)

DescribeResourceTags 获取某个资源下绑定的所有标签列表。

func (*Client) DescribeTags

func (c *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error)

DescribeTags 标签分页列表

func (*Client) ModifyResourceTags added in v0.2.16

func (c *Client) ModifyResourceTags(request *ModifyResourceTagsRequest) (response *ModifyResourceTagsResponse, err error)

ModifyResourceTags 修改某个资源的标签。

func (*Client) TagBindResources

func (c *Client) TagBindResources(request *TagBindResourcesRequest) (response *TagBindResourcesResponse, err error)

TagBindResources 标签批量绑定资源

func (*Client) TagUnbindResources

func (c *Client) TagUnbindResources(request *TagUnbindResourcesRequest) (response *TagUnbindResourcesResponse, err error)

TagUnbindResources 标签批量解绑资源

type CreateTagsRequest

type CreateTagsRequest struct {
	*common.BaseRequest

	// Tags 创建的标签。一次性最多创建20个标签。
	Tags []*Tag `json:"tags,omitempty"`
}

CreateTagsRequest 批量创建标签的请求参数。

func NewCreateTagsRequest

func NewCreateTagsRequest() (request *CreateTagsRequest)

type CreateTagsResponse

type CreateTagsResponse struct {
	*common.BaseResponse

	RequestId *string `json:"requestId,omitempty"`

	Response struct {
		RequestId string `json:"requestId,omitempty"`
	} `json:"response,omitempty"`
}

func NewCreateTagsResponse

func NewCreateTagsResponse() (response *CreateTagsResponse)

type DeleteTagsRequest

type DeleteTagsRequest struct {
	*common.BaseRequest

	// Tags 需要删除的标签。
	Tags []*Tag `json:"tags,omitempty"`
}

DeleteTagsRequest 批量删除标签的请求参数。

func NewDeleteTagsRequest

func NewDeleteTagsRequest() (request *DeleteTagsRequest)

type DeleteTagsResponse

type DeleteTagsResponse struct {
	*common.BaseResponse

	RequestId *string `json:"requestId,omitempty"`

	Response struct {
		RequestId string `json:"requestId,omitempty"`
	} `json:"response,omitempty"`
}

func NewDeleteTagsResponse

func NewDeleteTagsResponse() (response *DeleteTagsResponse)

type DescribeResourceTagsRequest

type DescribeResourceTagsRequest struct {
	*common.BaseRequest

	// ResourceUuid 资源的唯一标识。
	ResourceUuid *string `json:"resourceUuid,omitempty"`
}

DescribeResourceTagsRequest 获取资源绑定标签的请求参数。

func NewDescribeResourceTagsRequest

func NewDescribeResourceTagsRequest() (request *DescribeResourceTagsRequest)

type DescribeResourceTagsResponse

type DescribeResourceTagsResponse struct {
	*common.BaseResponse

	RequestId *string `json:"requestId,omitempty"`

	Response *DescribeResourceTagsResponseParams `json:"response,omitempty"`
}

func NewDescribeResourceTagsResponse

func NewDescribeResourceTagsResponse() (response *DescribeResourceTagsResponse)

type DescribeResourceTagsResponseParams

type DescribeResourceTagsResponseParams struct {
	RequestId *string `json:"requestId,omitempty"`

	// TotalCount 列表总数量。
	TotalCount *int `json:"totalCount,omitempty"`

	// DataSet 数据列表。
	DataSet []*ResourceTag `json:"dataSet,omitempty"`
}

type DescribeTagsRequest

type DescribeTagsRequest struct {
	*common.BaseRequest

	// PageNum 页码,默认值1。
	PageNum *int `json:"pageNum,omitempty"`

	// PageSize 每页面展示数量,默认值20。
	PageSize *int `json:"pageSize,omitempty"`

	// KeySort 标签键排序方式:ascend(正序),descend(倒序)。
	KeySort *string `json:"keySort,omitempty"`

	// CreatedDateSort 创建时间排序方式:ascend(正序),descend(倒序)。默认倒序。
	CreatedDateSort *string `json:"createdDateSort,omitempty"`

	// TagKeys 筛选的标签键集合。
	TagKeys []string `json:"tagKeys,omitempty"`

	// Tags 筛选的标签集合。
	Tags []*Tag `json:"tags,omitempty"`
}

DescribeTagsRequest 标签分页列表的请求参数。

func NewDescribeTagsRequest

func NewDescribeTagsRequest() (request *DescribeTagsRequest)

type DescribeTagsResponse

type DescribeTagsResponse struct {
	*common.BaseResponse

	RequestId *string `json:"requestId,omitempty"`

	Response *DescribeTagsResponseParams `json:"response,omitempty"`
}

func NewDescribeTagsResponse

func NewDescribeTagsResponse() (response *DescribeTagsResponse)

type DescribeTagsResponseParams

type DescribeTagsResponseParams struct {
	RequestId *string `json:"requestId,omitempty"`

	// TotalCount 列表总数量。
	TotalCount *int `json:"totalCount,omitempty"`

	// DataSet 数据列表。
	DataSet []*TagInfo `json:"dataSet,omitempty"`
}

type ModifyResourceTagsRequest added in v0.2.16

type ModifyResourceTagsRequest struct {
	*common.BaseRequest

	// ResourceUuid 需要绑定的资源唯一标识。
	ResourceUuid *string `json:"resourceUuid,omitempty"`

	// ReplaceTags 需要更新的标签列表,包含标签键和值。
	ReplaceTags []*Tag `json:"replaceTags,omitempty"`

	// DeleteTagKeys 需要解绑的标签列表,包含标签键。
	DeleteTagKeys []string `json:"deleteTagKeys,omitempty"`
}

ModifyResourceTagsRequest 修改资源的标签的请求参数。

func NewModifyResourceTagsRequest added in v0.2.16

func NewModifyResourceTagsRequest() (request *ModifyResourceTagsRequest)

type ModifyResourceTagsResponse added in v0.2.16

type ModifyResourceTagsResponse struct {
	*common.BaseResponse

	RequestId *string `json:"requestId,omitempty"`

	Response struct {
		RequestId string `json:"requestId,omitempty"`
	} `json:"response,omitempty"`
}

func NewModifyResourceTagsResponse added in v0.2.16

func NewModifyResourceTagsResponse() (response *ModifyResourceTagsResponse)

type ResourceTag

type ResourceTag struct {

	// Key 标签键。
	Key *string `json:"key,omitempty"`

	// Value 标签值。
	Value *string `json:"value,omitempty"`

	// CreatedDate 创建时间。
	CreatedDate *string `json:"createdDate,omitempty"`
}

ResourceTag 描述资源关联标签的基本信息

type Tag

type Tag struct {

	// Key 标签键。长度限制:1~64个字符。
	Key *string `json:"key,omitempty"`

	// Value 标签值。长度限制:1~64个字符。
	Value *string `json:"value,omitempty"`
}

Tag 描述一个标签键值对的信息。

type TagBindResourcesRequest

type TagBindResourcesRequest struct {
	*common.BaseRequest

	// Tag 标签,包含标签键和值。
	Tag *Tag `json:"tag,omitempty"`

	// ResourceUuids 需要绑定的资源唯一标识列表。
	ResourceUuids []string `json:"resourceUuids,omitempty"`
}

TagBindResourcesRequest 标签批量绑定资源的请求参数。

func NewTagBindResourcesRequest

func NewTagBindResourcesRequest() (request *TagBindResourcesRequest)

type TagBindResourcesResponse

type TagBindResourcesResponse struct {
	*common.BaseResponse

	RequestId *string `json:"requestId,omitempty"`

	Response struct {
		RequestId string `json:"requestId,omitempty"`
	} `json:"response,omitempty"`
}

func NewTagBindResourcesResponse

func NewTagBindResourcesResponse() (response *TagBindResourcesResponse)

type TagInfo

type TagInfo struct {

	// Key 标签键。
	Key *string `json:"key,omitempty"`

	// Value 标签值。
	Value *string `json:"value,omitempty"`

	// BindResourceCount 标签下绑定的资源总数。
	BindResourceCount *int `json:"bindResourceCount,omitempty"`

	// CreatedDate 创建时间。
	CreatedDate *string `json:"createdDate,omitempty"`
}

TagInfo 描述标签的基本信息

type TagUnbindResourcesRequest

type TagUnbindResourcesRequest struct {
	*common.BaseRequest

	// Tag 标签,包含标签键和值。
	Tag *Tag `json:"tag,omitempty"`

	// ResourceUuids 需要解绑的资源唯一标识列表。
	ResourceUuids []string `json:"resourceUuids,omitempty"`
}

TagUnbindResourcesRequest 标签批量解绑资源的请求参数。

func NewTagUnbindResourcesRequest

func NewTagUnbindResourcesRequest() (request *TagUnbindResourcesRequest)

type TagUnbindResourcesResponse

type TagUnbindResourcesResponse struct {
	*common.BaseResponse

	RequestId *string `json:"requestId,omitempty"`

	Response struct {
		RequestId string `json:"requestId,omitempty"`
	} `json:"response,omitempty"`
}

func NewTagUnbindResourcesResponse

func NewTagUnbindResourcesResponse() (response *TagUnbindResourcesResponse)

Jump to

Keyboard shortcuts

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