Skip to content

Commit

Permalink
sdk: rolling update for 0.22.17 (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Apr 23, 2024
1 parent 02fd9db commit 3659889
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
6 changes: 6 additions & 0 deletions services/label/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,12 @@ type ListResourcesByLabelsRequest struct {
// ListResourcesByLabelsResponse is response schema for ListResourcesByLabels action
type ListResourcesByLabelsResponse struct {
response.CommonBase

// 资源列表
Resources []ListResourcesByLabelsResource

// 资源总数
TotalCount int
}

// NewListResourcesByLabelsRequest will create request of ListResourcesByLabels action.
Expand Down
39 changes: 39 additions & 0 deletions services/label/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,42 @@ type ListProjectsByLabelsProject struct {
// 资源类型列表
ResourceTypes []string
}

/*
ListResourcesByLabelsLabel - 标签
*/
type ListResourcesByLabelsLabel struct {

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

// 标签键
Key string

// 标签值
Value string
}

/*
ListResourcesByLabelsResource - 资源标签绑定的资源信息
*/
type ListResourcesByLabelsResource struct {

// 标签数组
Labels []ListResourcesByLabelsLabel

// 项目id
ProjectId string

// 项目名称
ProjectName string

// 资源id
ResourceId string

// 资源名称
ResourceName string

// 资源类型
ResourceType string
}
4 changes: 4 additions & 0 deletions tests/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import (

"github.com/ucloud/ucloud-sdk-go/services/cube"
"github.com/ucloud/ucloud-sdk-go/services/isms"
"github.com/ucloud/ucloud-sdk-go/services/label"
"github.com/ucloud/ucloud-sdk-go/services/stepflow"
"github.com/ucloud/ucloud-sdk-go/services/tidb"
"github.com/ucloud/ucloud-sdk-go/services/ubox"
Expand Down Expand Up @@ -153,6 +154,9 @@ func testSetup() {
spec.AddFixture("ISMS", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) {
return isms.NewClient(&cfg, &credential), nil
}))
spec.AddFixture("Label", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) {
return label.NewClient(&cfg, &credential), nil
}))
spec.AddFixture("PathX", driver.SetupClientFixture(func() (ucloud.ServiceClient, error) {
return pathx.NewClient(&cfg, &credential), nil
}))
Expand Down
2 changes: 1 addition & 1 deletion ucloud/version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package version

const Version = "0.22.16"
const Version = "0.22.17"

0 comments on commit 3659889

Please sign in to comment.