-
Notifications
You must be signed in to change notification settings - Fork 55
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
Gnocchi: implement archive policy Delete method #52
Gnocchi: implement archive policy Delete method #52
Conversation
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.
@ozerovandrei All 3 of these PRs look good to me - really nice work with them.
There are two minor doc fixes. I'll merge everything once that's fixed.
@@ -17,3 +17,104 @@ func Get(c *gophercloud.ServiceClient, archivePolicyName string) (r GetResult) { | |||
_, r.Err = c.Get(getURL(c, archivePolicyName), &r.Body, nil) | |||
return | |||
} | |||
|
|||
// CreateOptsBuilder allows to add additional parameters to the Create request. |
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.
// CreateOptsBuilder allows extensions to add additional parameters to the Create request.
ToArchivePolicyCreateMap() (map[string]interface{}, error) | ||
} | ||
|
||
// CreateOpts specifies parameters of a new subnetpool. |
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.
s/subnetpool/Archive Policy/
4bd267e
to
f07cdb4
Compare
Add support for updating Gnocchi archive policies. Add unit test and example in documentation.
Add Update call into the archive policies acceptance test.
Add the Delete method to the archivepolicies package with tests and documentation example.
f07cdb4
to
e9b328d
Compare
Add the Delete method to the archivepolicies package with tests and documentation example.
For #42
API reference:
https://gnocchi.xyz/rest.html#id5
Code references:
https://github.com/gnocchixyz/gnocchi/blob/stable/4.2/gnocchi/rest/api.py#L299
https://github.com/gnocchixyz/gnocchi/blob/stable/4.2/gnocchi/indexer/sqlalchemy.py#L592