commit e97a7550467ccf2bcd69bec57025c2b1d1ce615d
Author: Brian Curtin <email address hidden>
Date: Wed Feb 1 15:00:34 2017 -0500
Adjust some proxy method names in cluster
In auditing our proxy method names heading into the 1.0 release,
where we'll need to be more careful about backwards compatibility,
some names in the cluster proxy use structures that are different than
we're using both around the other services and also within cluster
itself. We've converged on several naming formats for add/remove,
attach/detach, and several other grammar styles when naming operations
that are done on a certain resource.
This change introduces a deprecation decorator using the `deprecation`
library, which was recently added to global-requirements. This is also
the first change of several in the auditing process, just going
alphabetical order through the services.
The plan with these is that they're marked for deprecation in the
next release (0.9.14), both here in the code and in the documentation
via the deprecation library's ability to modify the docstring, which
then shows up in our built documentation. In the meantime, we should
help any users we know of—in this case we have cluster developers on
this project—in updating calling code to use the newer format before
1.0 happens.
Reviewed: https:/ /review. openstack. org/427898 /git.openstack. org/cgit/ openstack/ python- openstacksdk/ commit/ ?id=e97a7550467 ccf2bcd69bec570 25c2b1d1ce615d
Committed: https:/
Submitter: Jenkins
Branch: master
commit e97a7550467ccf2 bcd69bec57025c2 b1d1ce615d
Author: Brian Curtin <email address hidden>
Date: Wed Feb 1 15:00:34 2017 -0500
Adjust some proxy method names in cluster
In auditing our proxy method names heading into the 1.0 release,
where we'll need to be more careful about backwards compatibility,
some names in the cluster proxy use structures that are different than
we're using both around the other services and also within cluster
itself. We've converged on several naming formats for add/remove,
attach/detach, and several other grammar styles when naming operations
that are done on a certain resource.
This change introduces a deprecation decorator using the `deprecation` requirements. This is also
library, which was recently added to global-
the first change of several in the auditing process, just going
alphabetical order through the services.
The plan with these is that they're marked for deprecation in the
next release (0.9.14), both here in the code and in the documentation
via the deprecation library's ability to modify the docstring, which
then shows up in our built documentation. In the meantime, we should
help any users we know of—in this case we have cluster developers on
this project—in updating calling code to use the newer format before
1.0 happens.
The following deprecations were made: to_cluster nodes_from_ cluster replace_ nodes -> replace_ nodes_in_ cluster attach_ policy -> attach_ policy_ to_cluster detach_ policy -> detach_ policy_ from_cluster update_ policy -> update_ cluster_ policy operation_ on_cluster operation_ on_node
* cluster_add_nodes -> add_nodes_
* cluster_del_nodes -> remove_
* cluster_
* cluster_scale_out -> scale_out_cluster
* cluster_scale_in -> scale_in_cluster
* cluster_
* cluster_
* cluster_
* cluster_operation -> perform_
* node_operation -> perform_
Partial-Bug: 1657498
Change-Id: I3df0494f9ec009 7aee7d47e05fb42 094439bc4a4