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

AUTH-3689: Adds support for access keys config endpoints #704

Conversation

GreenStage
Copy link
Contributor

Description

Adds support for access key configuration per account.

Has your change been tested?

-Tested by updating the automated tests.
-Tested by using the sdk against the staging api

Types of changes

What sort of change does your code introduce/modify?

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • This change is using publicly documented (api.cloudflare.com or developers.cloudflare.com) and stable APIs.

access_keys.go Outdated
// AccessKeysConfig returns the Access Keys Configuration for an account.
// API reference: https://api.cloudflare.com/#access-keys-configuration-get-access-keys-configuration
func (api *API) AccessKeysConfig(ctx context.Context, accountID string) (AccessKeysConfig, error) {
return api.accessKeysConfig(ctx, accountID, AccountRouteRoot)
Copy link
Member

Choose a reason for hiding this comment

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

we don't really need these intermediate methods; other Access resources have it where it's available at the account and zone level to reduce duplication.

}

// AccessKeysConfig returns the Access Keys Configuration for an account.
// API reference: https://api.cloudflare.com/#access-keys-configuration-get-access-keys-configuration
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// API reference: https://api.cloudflare.com/#access-keys-configuration-get-access-keys-configuration
//
// API reference: https://api.cloudflare.com/#access-keys-configuration-get-access-keys-configuration

access_keys.go Outdated
Comment on lines 39 to 38
// UpdateAccessKeysConfig updates the Access Keys Configuration for an account.
// API reference: https://api.cloudflare.com/#access-keys-configuration-update-access-keys-configuration
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// UpdateAccessKeysConfig updates the Access Keys Configuration for an account.
// API reference: https://api.cloudflare.com/#access-keys-configuration-update-access-keys-configuration
// UpdateAccessKeysConfig updates the Access Keys Configuration for an account.
//
// API reference: https://api.cloudflare.com/#access-keys-configuration-update-access-keys-configuration

access_keys.go Outdated
Comment on lines 51 to 47
// RotateAccessKeys rotates the Access Keys for an account and returns the updated Access Keys Configuration
// API reference: https://api.cloudflare.com/#access-keys-configuration-rotate-access-keys
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// RotateAccessKeys rotates the Access Keys for an account and returns the updated Access Keys Configuration
// API reference: https://api.cloudflare.com/#access-keys-configuration-rotate-access-keys
// RotateAccessKeys rotates the Access Keys for an account and returns the updated Access Keys Configuration.
//
// API reference: https://api.cloudflare.com/#access-keys-configuration-rotate-access-keys

@GreenStage GreenStage force-pushed the egomes/AUTH-3689-support-access-keys-config branch from e61967f to ece521f Compare September 14, 2021 15:08
@GreenStage
Copy link
Contributor Author

@jacobbednarz can you re-review please? I updated according to your comments

@jacobbednarz
Copy link
Member

looks great! thanking you @GreenStage 👏

@jacobbednarz jacobbednarz merged commit 3f49384 into cloudflare:master Sep 14, 2021
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.

2 participants