3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 from cmframework.apis import cmerror
17 class CMPluginClient(object):
18 # pylint: disable=no-self-use, unused-argument
19 def get_property(self, prop_name):
20 """read the value assoicated with a property
24 prop_name: The name of the property to be read.
28 CMError is raised in-case of failure
30 raise cmerror.CMError('Not implemented')
32 # pylint: disable=no-self-use, unused-argument
33 def get_properties(self, prop_filter):
34 """read a set of properties matching a filter.
38 prop_filter: A string containing the re used to match the read
43 CMError is raised in-case of a failure.
45 raise cmerror.CMError('Not implemented')
47 # pylint: disable=no-self-use, unused-argument
48 def set_property(self, name, value):
49 raise cmerror.CMError('Not implemented')