CiscoUcs/imcsdk

View on GitHub
imcsdk/imcbasetype.py

Summary

Maintainability
C
1 day
Test Coverage
# Copyright 2015 Cisco Systems, Inc.
#
# 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.

"""
This is an auto-generated module.
It contains supporting classes for Filter and External Method.

"""

from .imccore import BaseObject


class Method(BaseObject):
    """This is Method class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "Method", "method")
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)


class ConfigConfig(BaseObject):
    """This is ConfigConfig class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "ConfigConfig", "configConfig")
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)


class ConfigMap(BaseObject):
    """This is ConfigMap class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "ConfigMap", "configMap")
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)


class ConfigSet(BaseObject):
    """This is ConfigSet class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "ConfigSet", "configSet")
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)


class FailedMo(BaseObject):
    """This is FailedMo class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "FailedMo", "failedMo")
        self.dn = None
        self.error_code = None
        self.error_descr = None
        self.name = None
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)


class FailedMos(BaseObject):
    """This is FailedMos class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "FailedMos", "failedMos")
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)


class FilterFilter(BaseObject):
    """This is FilterFilter class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "FilterFilter", "filter")
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)


class Pair(BaseObject):
    """This is Pair class."""
    def __init__(self, **kwargs):
        BaseObject.__init__(self, "Pair", "pair")
        self.key = None
        if kwargs:
            for n, v in kwargs.items():
                self.attr_set(n, v)