-
Notifications
You must be signed in to change notification settings - Fork 601
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
AUTH-3689: Adds support for access keys config endpoints #704
Conversation
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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
// UpdateAccessKeysConfig updates the Access Keys Configuration for an account. | ||
// API reference: https://api.cloudflare.com/#access-keys-configuration-update-access-keys-configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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
// 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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 |
e61967f
to
ece521f
Compare
@jacobbednarz can you re-review please? I updated according to your comments |
looks great! thanking you @GreenStage 👏 |
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?
Checklist: