Skip to content

Commit

Permalink
add scope for ResourceSystemTags (#288)
Browse files Browse the repository at this point in the history
Co-authored-by: zhurenzhu.zrz <zhurenzhu.zrz@alibaba-inc.com>
  • Loading branch information
ZRZ2233 and zhurenzhu.zrz authored Jul 30, 2024
1 parent 5c752df commit 2fb1464
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type ResourceTags struct {
type ResourceSystemTags struct {
ResourceTags
TagOwnerUid string `json:"tagOwnerUid"`
Scope string `json:"scope,omitempty"`
}

// ResourceUnTags tag for untag sls resouce
Expand Down Expand Up @@ -92,12 +93,12 @@ func NewResourceUnTags(resourceType string, resourceId string, tags []string) *R
// NewResourceSystemTags create system tags for resource of certain type
func NewResourceSystemTags(resourceType string, resourceId string, tagOwnerUid string, tags []ResourceTag) *ResourceSystemTags {
return &ResourceSystemTags{
ResourceTags{
ResourceTags: ResourceTags{
ResourceType: resourceType,
ResourceID: []string{resourceId},
Tags: tags,
},
tagOwnerUid,
TagOwnerUid: tagOwnerUid,
}
}

Expand Down

0 comments on commit 2fb1464

Please sign in to comment.