@@ -217,6 +217,7 @@ def __init__(self, container):
217217 self ._set_meta_data_uri ()
218218 # Supported versions for each class will be defined here.
219219 # List can be modified downstream in each sub-class
220+ print ('about to set the "minimum_version" for %s' % self .__class__ .__name__ )
220221 self ._meta_data ['minimum_version' ] = '11.5.0'
221222 # Commands you can run on a resource or collection, we define it here
222223 self ._meta_data ['allowed_commands' ] = []
@@ -364,22 +365,6 @@ class ResourceBase(PathElement, ToDictMixin):
364365 that represents objects in a hierarchical relationship similar to the
365366 device's uri path hierarchy.
366367 """
367- def __init__ (self , container ):
368- """Call this with containing_object_instance.FOO
369-
370- Where FOO is a concrete subclass of this class, ResourceBase. The '.'
371- operator passes "FOO" to the __getattr__ method of the
372- containing_object_instance which instantiates it as the appropriate
373- sub-type of ResourceBase.
374-
375- Since all ResourceBases sub-types must support the `refresh` method, it
376- is defined here, in the base class.
377- NOTE: The BIG-IP® uri 'mgmt/tm/' uniquely passes itself to this
378- constructor as the "container".
379-
380- :param container: instance is an attribute of a ResourceBase container
381- """
382- super (ResourceBase , self ).__init__ (container )
383368
384369 def _modify (self , ** patch ):
385370 """Wrapped with modify, override in a subclass to customize."""
@@ -634,12 +619,6 @@ class OrganizingCollection(ResourceBase):
634619 * provide a list of dictionaries that contain uri's to other
635620 resources on the device.
636621 """
637- def __init__ (self , container ):
638- """Call this to construct an OC. It should be an attribute of BIG-IP®.
639-
640- :param bigip: all OCs are attributes of a BIG-IP® instance
641- """
642- super (OrganizingCollection , self ).__init__ (container )
643622
644623 def get_collection (self , ** kwargs ):
645624 """Call to obtain a list of the reference dicts in the instance `items`
@@ -665,20 +644,6 @@ class Collection(ResourceBase):
665644 unless it ends in ``s`` then it must have ``_s``.
666645
667646 """
668- def __init__ (self , container ):
669- """Call this with the __get_attr__ of a Resource or OC.
670-
671- The contained-by-an-OC-or-Resource pattern is observed, and not a
672- strictly enforced part of the model.
673-
674- URIs are constructed _from_ Collection subclass names. All Collection
675- subclass names MUST end in 's' or '_s', to distinguish them from their
676- associated Resource (which is always accessible as an attribute of the
677- subclass instance.
678-
679- :param container: instances of Collection are attributes of container
680- """
681- super (Collection , self ).__init__ (container )
682647
683648 def get_collection (self , ** kwargs ):
684649 """Get an iterator of Python ``Resource`` objects that represent URIs.
0 commit comments