Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Conversation

@Lance52259
Copy link
Contributor

What this PR does / why we need it:
Huaweicloud API support rename instance, we need to support rename function in Huaweicloud sdk.

Which issue this PR fixes:

NONE

Special notes for your reviewer:

Release note:

1. Add name struct, opts and some function(toMap, Rename) to instances request.
2. Add rename urls to instances urls

@coveralls
Copy link

coveralls commented Jan 29, 2021

Pull Request Test Coverage Report for Build 1098

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 68.034%

Totals Coverage Status
Change from base Build 1097: 0.0%
Covered Lines: 11510
Relevant Lines: 16918

💛 - Coveralls

Comment on lines 25 to 28
func renameURL(c *golangsdk.ServiceClient, instancesId string) string {
return c.ServiceURL("instances", instancesId, "name")
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can define a common function named updateURL which has tree parameters: c *golangsdk.ServiceClient, instancesId string and updata string

return b, nil
}

func Rename(client *golangsdk.ServiceClient, opts RenameRdsInstanceBuilder, instanceId string) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest set the return value to commonResult

@ShiChangkuo ShiChangkuo merged commit 0e4040f into huaweicloud:master Jan 30, 2021
ShiChangkuo pushed a commit that referenced this pull request Mar 17, 2021
@Lance52259 Lance52259 deleted the RdsInstancePatch branch April 2, 2021 09:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants