"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "monasca_log_api/policies/versions.py" between
monasca-log-api-2.7.0.tar.gz and monasca-log-api-2.9.0.tar.gz

About: OpenStack Monasca Log API is a RESTful API server acting as gateway for logs collected from log-agents.
The "Stein" series (maintained release).

versions.py  (monasca-log-api-2.7.0):versions.py  (monasca-log-api-2.9.0)
skipping to change at line 15 skipping to change at line 15
# a copy of the License at # a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_config import cfg
from oslo_policy import policy from oslo_policy import policy
from monasca_log_api.policies import CHECK_AUTHORIZED_ROLES from monasca_log_api import policies
CHECK_AUTHORIZED_ROLES = policies.roles_list_to_check_str(
cfg.CONF.roles_middleware.check_roles)
rules = [ rules = [
policy.DocumentedRuleDefault( policy.DocumentedRuleDefault(
name='log_api:versions:get', name='log_api:versions:get',
check_str=CHECK_AUTHORIZED_ROLES, check_str=CHECK_AUTHORIZED_ROLES,
description='Versions get rule', description='Versions get rule',
operations=[ operations=[
{'path': '/', 'method': 'GET'}, {'path': '/', 'method': 'GET'},
{'path': '/version', 'method': 'GET'}, {'path': '/version', 'method': 'GET'},
{'path': '/version/{version_id}', 'method': 'GET'} {'path': '/version/{version_id}', 'method': 'GET'}
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)