8f7ff999be
The revision if match extension's API definition was rehomed into neutron-lib with I46e30079bc0708b7f55d404c262226cf986e5b66 This patch consumes it by using the APIExtensionDescriptor parent class along with the API definition. NeutronLibImpact Change-Id: I9044dd1f70ee2f342f872acca58baf74b233f1c1
22 lines
841 B
Python
22 lines
841 B
Python
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from neutron_lib.api.definitions import revisionifmatch as apidef
|
|
from neutron_lib.api import extensions as api_extensions
|
|
|
|
|
|
class Revisionifmatch(api_extensions.APIExtensionDescriptor):
|
|
"""Indicate that If-Match constraints on revision_number are supported."""
|
|
|
|
api_definition = apidef
|