model

package
v0.1.83 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggTag

type AggTag struct {

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

	// 相同键的值列表
	Values *[]string `json:"values,omitempty"`
}

AggTag 对于多个key相同的value,聚合成为key/values

func (AggTag) String

func (o AggTag) String() string

type BatchCreateDeleteTagsRequest

type BatchCreateDeleteTagsRequest struct {

	// 资源ID
	ResourceId string `json:"resource_id"`

	// 资源类型: - cloud-connection: 云连接 - bandwidth-package: 带宽包
	ResourceType BatchCreateDeleteTagsRequestResourceType `json:"resource_type"`

	Body *ResourceTags `json:"body,omitempty"`
}

BatchCreateDeleteTagsRequest Request Object

func (BatchCreateDeleteTagsRequest) String

type BatchCreateDeleteTagsRequestResourceType

type BatchCreateDeleteTagsRequestResourceType struct {
	// contains filtered or unexported fields
}

func (BatchCreateDeleteTagsRequestResourceType) MarshalJSON

func (*BatchCreateDeleteTagsRequestResourceType) UnmarshalJSON

func (c *BatchCreateDeleteTagsRequestResourceType) UnmarshalJSON(b []byte) error

func (BatchCreateDeleteTagsRequestResourceType) Value

type BatchCreateDeleteTagsRequestResourceTypeEnum

type BatchCreateDeleteTagsRequestResourceTypeEnum struct {
	CLOUD_CONNECTION  BatchCreateDeleteTagsRequestResourceType
	BANDWIDTH_PACKAGE BatchCreateDeleteTagsRequestResourceType
}

func GetBatchCreateDeleteTagsRequestResourceTypeEnum

func GetBatchCreateDeleteTagsRequestResourceTypeEnum() BatchCreateDeleteTagsRequestResourceTypeEnum

type BatchCreateDeleteTagsResponse

type BatchCreateDeleteTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchCreateDeleteTagsResponse Response Object

func (BatchCreateDeleteTagsResponse) String

type BatchCreateGcbResourceTagsRequest added in v0.1.80

type BatchCreateGcbResourceTagsRequest struct {

	// 资源唯一标识符。
	ResourceId string `json:"resource_id"`

	Body *CreateDeleteGcbTagsRequestBody `json:"body,omitempty"`
}

BatchCreateGcbResourceTagsRequest Request Object

func (BatchCreateGcbResourceTagsRequest) String added in v0.1.80

type BatchCreateGcbResourceTagsResponse added in v0.1.80

type BatchCreateGcbResourceTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchCreateGcbResourceTagsResponse Response Object

func (BatchCreateGcbResourceTagsResponse) String added in v0.1.80

type BatchDeleteGcbResourceTagsRequest added in v0.1.80

type BatchDeleteGcbResourceTagsRequest struct {

	// 资源唯一标识符。
	ResourceId string `json:"resource_id"`

	Body *CreateDeleteGcbTagsRequestBody `json:"body,omitempty"`
}

BatchDeleteGcbResourceTagsRequest Request Object

func (BatchDeleteGcbResourceTagsRequest) String added in v0.1.80

type BatchDeleteGcbResourceTagsResponse added in v0.1.80

type BatchDeleteGcbResourceTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchDeleteGcbResourceTagsResponse Response Object

func (BatchDeleteGcbResourceTagsResponse) String added in v0.1.80

type CountGcbResourceByTagRequest added in v0.1.80

type CountGcbResourceByTagRequest struct {
	Body *QueryResourceByTagRequestBody `json:"body,omitempty"`
}

CountGcbResourceByTagRequest Request Object

func (CountGcbResourceByTagRequest) String added in v0.1.80

type CountGcbResourceByTagResponse added in v0.1.80

type CountGcbResourceByTagResponse struct {

	// 总记录数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CountGcbResourceByTagResponse Response Object

func (CountGcbResourceByTagResponse) String added in v0.1.80

type CreateDeleteGcbTagsRequestBody added in v0.1.80

type CreateDeleteGcbTagsRequestBody struct {

	// 批量添加/删除资源标签。
	Tags []RequiredTag `json:"tags"`
}

CreateDeleteGcbTagsRequestBody 资源标签Tag汇总复数。

func (CreateDeleteGcbTagsRequestBody) String added in v0.1.80

type CreateGcbResourceTagRequest added in v0.1.80

type CreateGcbResourceTagRequest struct {

	// 资源唯一标识符。
	ResourceId string `json:"resource_id"`

	Body *CreateGcbTagRequestBody `json:"body,omitempty"`
}

CreateGcbResourceTagRequest Request Object

func (CreateGcbResourceTagRequest) String added in v0.1.80

type CreateGcbResourceTagResponse added in v0.1.80

type CreateGcbResourceTagResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateGcbResourceTagResponse Response Object

func (CreateGcbResourceTagResponse) String added in v0.1.80

type CreateGcbTagRequestBody added in v0.1.80

type CreateGcbTagRequestBody struct {
	Tag *RequiredTag `json:"tag"`
}

CreateGcbTagRequestBody 创建Tag请求体。

func (CreateGcbTagRequestBody) String added in v0.1.80

func (o CreateGcbTagRequestBody) String() string

type CreateTagRequest

type CreateTagRequest struct {

	// 资源ID。
	ResourceId string `json:"resource_id"`

	// 资源类型: - cloud-connection: 云连接 - bandwidth-package: 带宽包
	ResourceType CreateTagRequestResourceType `json:"resource_type"`

	Body *CreateTagRequestBody `json:"body,omitempty"`
}

CreateTagRequest Request Object

func (CreateTagRequest) String

func (o CreateTagRequest) String() string

type CreateTagRequestBody

type CreateTagRequestBody struct {
	Tag *Tag `json:"tag,omitempty"`
}

CreateTagRequestBody 创建Tag请求体

func (CreateTagRequestBody) String

func (o CreateTagRequestBody) String() string

type CreateTagRequestResourceType

type CreateTagRequestResourceType struct {
	// contains filtered or unexported fields
}

func (CreateTagRequestResourceType) MarshalJSON

func (c CreateTagRequestResourceType) MarshalJSON() ([]byte, error)

func (*CreateTagRequestResourceType) UnmarshalJSON

func (c *CreateTagRequestResourceType) UnmarshalJSON(b []byte) error

func (CreateTagRequestResourceType) Value

type CreateTagRequestResourceTypeEnum

type CreateTagRequestResourceTypeEnum struct {
	CLOUD_CONNECTION  CreateTagRequestResourceType
	BANDWIDTH_PACKAGE CreateTagRequestResourceType
}

func GetCreateTagRequestResourceTypeEnum

func GetCreateTagRequestResourceTypeEnum() CreateTagRequestResourceTypeEnum

type CreateTagResponse

type CreateTagResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateTagResponse Response Object

func (CreateTagResponse) String

func (o CreateTagResponse) String() string

type DeleteGcbResourceTagRequest added in v0.1.80

type DeleteGcbResourceTagRequest struct {

	// 资源唯一标识符。
	ResourceId string `json:"resource_id"`

	// 删除的tag的key。
	TagKey string `json:"tag_key"`
}

DeleteGcbResourceTagRequest Request Object

func (DeleteGcbResourceTagRequest) String added in v0.1.80

type DeleteGcbResourceTagResponse added in v0.1.80

type DeleteGcbResourceTagResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteGcbResourceTagResponse Response Object

func (DeleteGcbResourceTagResponse) String added in v0.1.80

type DeleteTagRequest

type DeleteTagRequest struct {

	// 资源ID
	ResourceId string `json:"resource_id"`

	// 待删除资源标签的key
	TagKey string `json:"tag_key"`

	// 资源类型: - cloud-connection: 云连接 - bandwidth-package: 带宽包
	ResourceType DeleteTagRequestResourceType `json:"resource_type"`
}

DeleteTagRequest Request Object

func (DeleteTagRequest) String

func (o DeleteTagRequest) String() string

type DeleteTagRequestResourceType

type DeleteTagRequestResourceType struct {
	// contains filtered or unexported fields
}

func (DeleteTagRequestResourceType) MarshalJSON

func (c DeleteTagRequestResourceType) MarshalJSON() ([]byte, error)

func (*DeleteTagRequestResourceType) UnmarshalJSON

func (c *DeleteTagRequestResourceType) UnmarshalJSON(b []byte) error

func (DeleteTagRequestResourceType) Value

type DeleteTagRequestResourceTypeEnum

type DeleteTagRequestResourceTypeEnum struct {
	CLOUD_CONNECTION  DeleteTagRequestResourceType
	BANDWIDTH_PACKAGE DeleteTagRequestResourceType
}

func GetDeleteTagRequestResourceTypeEnum

func GetDeleteTagRequestResourceTypeEnum() DeleteTagRequestResourceTypeEnum

type DeleteTagResponse

type DeleteTagResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTagResponse Response Object

func (DeleteTagResponse) String

func (o DeleteTagResponse) String() string

type FilterTagResource

type FilterTagResource struct {

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称
	ResourceName string `json:"resource_name"`

	// 资源详情
	ResourceDetail *string `json:"resource_detail,omitempty"`

	// 资源下包含的标签
	Tags *[]Tag `json:"tags,omitempty"`
}

FilterTagResource 标签资源

func (FilterTagResource) String

func (o FilterTagResource) String() string

type ListDomainTagsRequest

type ListDomainTagsRequest struct {

	// 资源类型: - cloud-connection: 云连接 - bandwidth-package: 带宽包
	ResourceType ListDomainTagsRequestResourceType `json:"resource_type"`
}

ListDomainTagsRequest Request Object

func (ListDomainTagsRequest) String

func (o ListDomainTagsRequest) String() string

type ListDomainTagsRequestResourceType

type ListDomainTagsRequestResourceType struct {
	// contains filtered or unexported fields
}

func (ListDomainTagsRequestResourceType) MarshalJSON

func (c ListDomainTagsRequestResourceType) MarshalJSON() ([]byte, error)

func (*ListDomainTagsRequestResourceType) UnmarshalJSON

func (c *ListDomainTagsRequestResourceType) UnmarshalJSON(b []byte) error

func (ListDomainTagsRequestResourceType) Value

type ListDomainTagsRequestResourceTypeEnum

type ListDomainTagsRequestResourceTypeEnum struct {
	CLOUD_CONNECTION  ListDomainTagsRequestResourceType
	BANDWIDTH_PACKAGE ListDomainTagsRequestResourceType
}

func GetListDomainTagsRequestResourceTypeEnum

func GetListDomainTagsRequestResourceTypeEnum() ListDomainTagsRequestResourceTypeEnum

type ListDomainTagsResponse

type ListDomainTagsResponse struct {

	// 标签列表
	Tags *[]AggTag `json:"tags,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListDomainTagsResponse Response Object

func (ListDomainTagsResponse) String

func (o ListDomainTagsResponse) String() string

type ListGcbResourceByTagRequest added in v0.1.80

type ListGcbResourceByTagRequest struct {

	// 查询记录数。
	Limit *int32 `json:"limit,omitempty"`

	// 索引位置,偏移量。
	Offset *int32 `json:"offset,omitempty"`

	Body *QueryResourceByTagRequestBody `json:"body,omitempty"`
}

ListGcbResourceByTagRequest Request Object

func (ListGcbResourceByTagRequest) String added in v0.1.80

type ListGcbResourceByTagResponse added in v0.1.80

type ListGcbResourceByTagResponse struct {

	// 资源列表。
	Resources *[]TmsResource `json:"resources,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListGcbResourceByTagResponse Response Object

func (ListGcbResourceByTagResponse) String added in v0.1.80

type ListGcbResourceTagsRequest added in v0.1.80

type ListGcbResourceTagsRequest struct {

	// 资源唯一标识符。
	ResourceId string `json:"resource_id"`
}

ListGcbResourceTagsRequest Request Object

func (ListGcbResourceTagsRequest) String added in v0.1.80

type ListGcbResourceTagsResponse added in v0.1.80

type ListGcbResourceTagsResponse struct {

	// 标签列表。
	Tags *[]Tag `json:"tags,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListGcbResourceTagsResponse Response Object

func (ListGcbResourceTagsResponse) String added in v0.1.80

type ListGcbTenantTagsRequest added in v0.1.80

type ListGcbTenantTagsRequest struct {
}

ListGcbTenantTagsRequest Request Object

func (ListGcbTenantTagsRequest) String added in v0.1.80

func (o ListGcbTenantTagsRequest) String() string

type ListGcbTenantTagsResponse added in v0.1.80

type ListGcbTenantTagsResponse struct {

	// 标签列表。
	Tags *[]TmsTagValues `json:"tags,omitempty"`

	// 总记录数。
	TotalCount *int32 `json:"total_count,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListGcbTenantTagsResponse Response Object

func (ListGcbTenantTagsResponse) String added in v0.1.80

func (o ListGcbTenantTagsResponse) String() string

type ListResourceByFilterTagRequest

type ListResourceByFilterTagRequest struct {

	// 资源类型: - cloud-connection: 云连接 - bandwidth-package: 带宽包
	ResourceType ListResourceByFilterTagRequestResourceType `json:"resource_type"`

	Body *ListResourceByFilterTagRequestBody `json:"body,omitempty"`
}

ListResourceByFilterTagRequest Request Object

func (ListResourceByFilterTagRequest) String

type ListResourceByFilterTagRequestBody

type ListResourceByFilterTagRequestBody struct {

	// 动作。|- filter:过滤。 count:查询总条数。
	Action *ListResourceByFilterTagRequestBodyAction `json:"action,omitempty"`

	// 查询结果数量限制
	Limit *int32 `json:"limit,omitempty"`

	// 查询结果偏移
	Offset *int32 `json:"offset,omitempty"`

	// 是否包含以下tag(多个key取\"与\"关系,多个value取\"或\"关系)
	Tags *[]AggTag `json:"tags,omitempty"`

	// 是否匹配以下tag,key必须为\"resource_name\",value如果有值则模糊匹配,如果为空字符串则精确匹配
	Matches *[]Tag `json:"matches,omitempty"`
}

ListResourceByFilterTagRequestBody 用于查询资源实例的Tag过滤条件

func (ListResourceByFilterTagRequestBody) String

type ListResourceByFilterTagRequestBodyAction

type ListResourceByFilterTagRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (ListResourceByFilterTagRequestBodyAction) MarshalJSON

func (*ListResourceByFilterTagRequestBodyAction) UnmarshalJSON

func (c *ListResourceByFilterTagRequestBodyAction) UnmarshalJSON(b []byte) error

func (ListResourceByFilterTagRequestBodyAction) Value

type ListResourceByFilterTagRequestBodyActionEnum

type ListResourceByFilterTagRequestBodyActionEnum struct {
	FILTER ListResourceByFilterTagRequestBodyAction
	COUNT  ListResourceByFilterTagRequestBodyAction
}

func GetListResourceByFilterTagRequestBodyActionEnum

func GetListResourceByFilterTagRequestBodyActionEnum() ListResourceByFilterTagRequestBodyActionEnum

type ListResourceByFilterTagRequestResourceType

type ListResourceByFilterTagRequestResourceType struct {
	// contains filtered or unexported fields
}

func (ListResourceByFilterTagRequestResourceType) MarshalJSON

func (*ListResourceByFilterTagRequestResourceType) UnmarshalJSON

func (ListResourceByFilterTagRequestResourceType) Value

type ListResourceByFilterTagRequestResourceTypeEnum

type ListResourceByFilterTagRequestResourceTypeEnum struct {
	CLOUD_CONNECTION  ListResourceByFilterTagRequestResourceType
	BANDWIDTH_PACKAGE ListResourceByFilterTagRequestResourceType
}

func GetListResourceByFilterTagRequestResourceTypeEnum

func GetListResourceByFilterTagRequestResourceTypeEnum() ListResourceByFilterTagRequestResourceTypeEnum

type ListResourceByFilterTagResponse

type ListResourceByFilterTagResponse struct {

	// 资源实例实例列表。
	Resources *[]FilterTagResource `json:"resources,omitempty"`

	// 请求ID。
	RequestId *string `json:"request_id,omitempty"`

	// 符合过滤条件的资源总数量。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListResourceByFilterTagResponse Response Object

func (ListResourceByFilterTagResponse) String

type ListTagsRequest

type ListTagsRequest struct {

	// 资源类型: - cloud-connection: 云连接 - bandwidth-package: 带宽包
	ResourceType ListTagsRequestResourceType `json:"resource_type"`

	// 资源ID
	ResourceId string `json:"resource_id"`
}

ListTagsRequest Request Object

func (ListTagsRequest) String

func (o ListTagsRequest) String() string

type ListTagsRequestResourceType

type ListTagsRequestResourceType struct {
	// contains filtered or unexported fields
}

func (ListTagsRequestResourceType) MarshalJSON

func (c ListTagsRequestResourceType) MarshalJSON() ([]byte, error)

func (*ListTagsRequestResourceType) UnmarshalJSON

func (c *ListTagsRequestResourceType) UnmarshalJSON(b []byte) error

func (ListTagsRequestResourceType) Value

type ListTagsRequestResourceTypeEnum

type ListTagsRequestResourceTypeEnum struct {
	CLOUD_CONNECTION  ListTagsRequestResourceType
	BANDWIDTH_PACKAGE ListTagsRequestResourceType
}

func GetListTagsRequestResourceTypeEnum

func GetListTagsRequestResourceTypeEnum() ListTagsRequestResourceTypeEnum

type ListTagsResponse

type ListTagsResponse struct {

	// 标签列表
	Tags *[]Tag `json:"tags,omitempty"`

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListTagsResponse Response Object

func (ListTagsResponse) String

func (o ListTagsResponse) String() string

type QueryResourceByTagRequestBody added in v0.1.80

type QueryResourceByTagRequestBody struct {

	// 请求ID。
	RequestId *string `json:"request_id,omitempty"`

	// 不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略 “tags”、“tags_any”、“not_tags”、“not_tags_any”字段。
	WithoutAnyTag *bool `json:"without_any_tag,omitempty"`

	// 包含标签,最多包含20个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无tag过滤条件时返回全量数据。
	Tags *[]QueryTag `json:"tags,omitempty"`

	// 包含任意标签,最多包含20个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回包含标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	TagsAny *[]QueryTag `json:"tags_any,omitempty"`

	// 不包含标签,最多包含20个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回不包含标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	NotTags *[]QueryTag `json:"not_tags,omitempty"`

	// 不包含任意标签,最多包含20个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。结果返回不包含标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。无过滤条件时返回全量数据。
	NotTagsAny *[]QueryTag `json:"not_tags_any,omitempty"`

	// 是否匹配以下tag,key必须为\"resource_name\",value如果有值则模糊匹配,如果为空字符串则精确匹配。
	Matches *[]TmsMatch `json:"matches,omitempty"`
}

func (QueryResourceByTagRequestBody) String added in v0.1.80

type QueryTag added in v0.1.80

type QueryTag struct {

	// 键。
	Key string `json:"key"`

	// 值列表。
	Values []string `json:"values"`
}

func (QueryTag) String added in v0.1.80

func (o QueryTag) String() string

type RequiredTag added in v0.1.80

type RequiredTag struct {

	// 键
	Key string `json:"key"`

	// 值
	Value string `json:"value"`
}

RequiredTag 一个key/value键值对

func (RequiredTag) String added in v0.1.80

func (o RequiredTag) String() string

type ResourceTags

type ResourceTags struct {

	// 动作。|- create:创建。 delete:删除。
	Action *ResourceTagsAction `json:"action,omitempty"`

	// 批量添加/删除资源标签
	Tags *[]Tag `json:"tags,omitempty"`
}

ResourceTags 资源标签Tag汇总复数

func (ResourceTags) String

func (o ResourceTags) String() string

type ResourceTagsAction

type ResourceTagsAction struct {
	// contains filtered or unexported fields
}

func (ResourceTagsAction) MarshalJSON

func (c ResourceTagsAction) MarshalJSON() ([]byte, error)

func (*ResourceTagsAction) UnmarshalJSON

func (c *ResourceTagsAction) UnmarshalJSON(b []byte) error

func (ResourceTagsAction) Value

func (c ResourceTagsAction) Value() string

type ResourceTagsActionEnum

type ResourceTagsActionEnum struct {
	CREATE ResourceTagsAction
	DELETE ResourceTagsAction
}

func GetResourceTagsActionEnum

func GetResourceTagsActionEnum() ResourceTagsActionEnum

type Tag

type Tag struct {

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

	// 值
	Value *string `json:"value,omitempty"`
}

Tag 一个key/value键值对

func (Tag) String

func (o Tag) String() string

type TmsMatch added in v0.1.80

type TmsMatch struct {

	// 键。第一期限定为resource_name,后续扩展。
	Key string `json:"key"`

	// 值。
	Value string `json:"value"`
}

func (TmsMatch) String added in v0.1.80

func (o TmsMatch) String() string

type TmsResource added in v0.1.80

type TmsResource struct {

	// 资源ID。
	ResourceId string `json:"resource_id"`

	// 标签列表,没有标签默认为空数组。
	Tags []Tag `json:"tags"`

	// 资源名称,资源没有名称时默认为空字符串。
	ResourceName string `json:"resource_name"`
}

func (TmsResource) String added in v0.1.80

func (o TmsResource) String() string

type TmsTagValues added in v0.1.80

type TmsTagValues struct {

	// 键。
	Key string `json:"key"`

	// 值列表。
	Values []string `json:"values"`
}

func (TmsTagValues) String added in v0.1.80

func (o TmsTagValues) String() string

Source Files

Jump to

Keyboard shortcuts

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