-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] the group of api admin tags missing user project id
- Loading branch information
1 parent
e499e4c
commit aee2a78
Showing
7 changed files
with
133 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package v1 | ||
|
||
func NewGetEndpointByIdRequest(pendpointId string) IGetEndpointByIdRequest { | ||
opt := new(GetEndpointByIdRequest) | ||
opt.EndpointId = pendpointId | ||
return opt | ||
} | ||
|
||
func NewCreateEndpointRequest(pname, pserviceId, pvpcId, psubnetId string) ICreateEndpointRequest { | ||
opts := new(CreateEndpointRequest) | ||
opts.ResourceInfo.EndpointName = pname | ||
opts.ResourceInfo.ServiceUuid = pserviceId | ||
opts.ResourceInfo.VpcUuid = pvpcId | ||
opts.ResourceInfo.SubnetUuid = psubnetId | ||
opts.ResourceInfo.PackageUuid = defaultPackageId | ||
|
||
return opts | ||
} | ||
|
||
func NewDeleteEndpointByIdRequest(pendpointId, pvpcId, pendpointServiceId string) IDeleteEndpointByIdRequest { | ||
opt := new(DeleteEndpointByIdRequest) | ||
opt.EndpointId = pendpointId | ||
opt.EndpointUuid = pendpointId | ||
opt.VpcUuid = pvpcId | ||
opt.EndpointServiceUuid = pendpointServiceId | ||
|
||
return opt | ||
} | ||
|
||
func NewListEndpointsRequest(ppage, psize int) IListEndpointsRequest { | ||
return &ListEndpointsRequest{ | ||
Page: ppage, | ||
Size: psize, | ||
} | ||
} | ||
|
||
func NewListTagsByEndpointIdRequest(puserId, pprojectId, pendpointId string) IListTagsByEndpointIdRequest { | ||
opt := new(ListTagsByEndpointIdRequest) | ||
opt.Id = pendpointId | ||
opt.EndpointId = pendpointId | ||
opt.ProjectId = pprojectId | ||
opt.SetPortalUserId(puserId) | ||
return opt | ||
} | ||
|
||
func NewCreateTagsWithEndpointIdRequest(puserId, pprojectId, pendpointId string) ICreateTagsWithEndpointIdRequest { | ||
opt := new(CreateTagsWithEndpointIdRequest) | ||
opt.ResourceUuid = pendpointId | ||
opt.EndpointId = pendpointId | ||
opt.SystemTag = true | ||
opt.ProjectId = pprojectId | ||
opt.SetPortalUserId(puserId) | ||
|
||
return opt | ||
} | ||
|
||
func NewDeleteTagOfEndpointRequest(puserId, pprojectId, ptagId string) IDeleteTagOfEndpointRequest { | ||
opt := new(DeleteTagOfEndpointRequest) | ||
opt.TagId = ptagId | ||
opt.ProjectId = pprojectId | ||
opt.SetPortalUserId(puserId) | ||
|
||
return opt | ||
} | ||
|
||
func NewUpdateTagValueOfEndpointRequest(puserId, pprojectId, ptagId, pvalue string) IUpdateTagValueOfEndpointRequest { | ||
opt := new(UpdateTagValueOfEndpointRequest) | ||
opt.TagId = ptagId | ||
opt.TagValue = pvalue | ||
opt.ProjectId = pprojectId | ||
opt.SetPortalUserId(puserId) | ||
|
||
return opt | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters