Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Hostname update function added #407

Merged
merged 2 commits into from
Jan 20, 2020
Merged

Custom Hostname update function added #407

merged 2 commits into from
Jan 20, 2020

Conversation

pcaminog
Copy link
Contributor

@pcaminog pcaminog commented Jan 10, 2020

Custom Hostname Update function added

Description

Function to be able to modify the custom hostname SSL settings

Has your change been tested?

Test file updated and new library used to modify the custom hostnames

Types of changes

What sort of change does your code introduce/modify?

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

go.sum Outdated Show resolved Hide resolved
@@ -55,8 +55,19 @@ type CustomHostnameListResponse struct {
// hostname in the given zone.
//
// API reference: https://api.cloudflare.com/#custom-hostname-for-a-zone-update-custom-hostname-configuration
func (api *API) UpdateCustomHostnameSSL(zoneID string, customHostnameID string, ssl CustomHostnameSSL) (CustomHostname, error) {
return CustomHostname{}, errors.New("Not implemented")
func (api *API) UpdateCustomHostnameSSL(zoneID string, customHostnameID string, ssl CustomHostnameSSL) (*CustomHostnameResponse, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason you're changing return type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just wanted to follow same style as it is in createCustomHostname, reponse from the API is similar on borh cases.

@patryk
Copy link
Contributor

patryk commented Jan 20, 2020

Thanks!

@patryk patryk merged commit bfa52fb into cloudflare:master Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants