Remove unnecessary __init__ method

Change-Id: Id9a555caa1fa82840f37bef7b6e2b65106142cef
This commit is contained in:
Lin Yang
2019-05-24 09:39:56 -07:00
parent 5731010d0e
commit f810ae597c
26 changed files with 0 additions and 385 deletions

View File

@@ -100,13 +100,3 @@ class Metric(base.ResourceBase):
status = rsd_lib_common.StatusField('Status')
"""The report definition status"""
def __init__(self, connector, identity, redfish_version=None):
"""A class representing a Metric
:param connector: A Connector instance
:param identity: The identity of the Metric resource
:param redfish_version: The version of RedFish. Used to construct
the object according to schema of the given version.
"""
super(Metric, self).__init__(connector, identity, redfish_version)

View File

@@ -88,15 +88,3 @@ class MetricReportCollection(base.ResourceCollectionBase):
@property
def _resource_type(self):
return MetricReport
def __init__(self, connector, path, redfish_version=None):
"""A class representing a MetricReportCollection
:param connector: A Connector instance
:param path: The canonical path to the Metric Report collection
resource
:param redfish_version: The version of RedFish. Used to construct
the object according to schema of the given version.
"""
super(MetricReportCollection, self).__init__(connector, path,
redfish_version)

View File

@@ -97,17 +97,6 @@ class MetricReportDefinition(base.ResourceBase):
metric_properties = base.Field("MetricProperties")
"""The report definition metric properties"""
def __init__(self, connector, identity, redfish_version=None):
"""A class representing a MetricReportDefinition
:param connector: A Connector instance
:param identity: The identity of the MetricReportDefinition resource
:param redfish_version: The version of RedFish. Used to construct
the object according to schema of the given version.
"""
super(MetricReportDefinition, self).__init__(
connector, identity, redfish_version)
def _get_metrics_path(self):
"""Helper function to find the metrics path"""
if 'Metrics' not in self.json:
@@ -155,18 +144,6 @@ class MetricReportDefinitionCollection(base.ResourceCollectionBase):
def _resource_type(self):
return MetricReportDefinition
def __init__(self, connector, path, redfish_version=None):
"""A class representing a ReportDefinitionCollection
:param connector: A Connector instance
:param path: The canonical path to the ReportDefinition collection
resource
:param redfish_version: The version of RedFish. Used to construct
the object according to schema of the given version.
"""
super(MetricReportDefinitionCollection, self).__init__(
connector, path, redfish_version)
def create_metric_report_definition(self, metric_report_definition_req):
"""Create a new report definition

View File

@@ -121,18 +121,6 @@ class TriggerCollection(base.ResourceCollectionBase):
def _resource_type(self):
return Trigger
def __init__(self, connector, path, redfish_version=None):
"""A class representing a TriggerCollection
:param connector: A Connector instance
:param path: The canonical path to the Trigger collection
resource
:param redfish_version: The version of RedFish. Used to construct
the object according to schema of the given version.
"""
super(TriggerCollection, self).__init__(
connector, path, redfish_version)
def create_trigger(self, name=None, description=None, metric_type=None,
trigger_actions=None, numeric_triggers=None,
discrete_trigger_condition=None, discrete_triggers=None,