from boundary import ApiCli

class PluginGetComponents (ApiCli):
     
    def __init__(self):
        ApiCli.__init__(self)
        self.method = "GET"
        self.path="v1/plugins"
        self.pluginName = None
        
    def addArguments(self):
        ApiCli.addArguments(self)
        self.parser.add_argument('-n', '--plugin-Name', dest='pluginName',action='store',required=True,help='Plugin name')
        
    def getArguments(self):
        '''
        Extracts the specific arguments of this CLI
        '''
        ApiCli.getArguments(self)
        if self.args.pluginName != None:
            self.pluginName = self.args.pluginName
             
        self.path = "v1/plugins/{0}/components".format(self.pluginName)
         
    def getDescription(self):
        return "Get the components of a plugin in a Boundary account"
    
from boundary import ApiCli


class PluginGetComponents(ApiCli):
    def __init__(self):
        ApiCli.__init__(self)
        self.method = "GET"
        self.path = "v1/plugins"
        self.pluginName = None

    def addArguments(self):
        ApiCli.addArguments(self)
        self.parser.add_argument('-n', '--plugin-Name', dest='pluginName', action='store', metavar='plugin_name',
                                 required=True, help='Plugin name')

    def getArguments(self):
        """
        Extracts the specific arguments of this CLI
        """
        ApiCli.getArguments(self)
        if self.args.pluginName is not None:
            self.pluginName = self.args.pluginName

        self.path = "v1/plugins/{0}/components".format(self.pluginName)

    def getDescription(self):
        return "Get the components of a plugin in a Boundary account"

Reformat code to PEP-8 standards
Reformat code to PEP-8 standards

  from boundary import ApiCli
  
+ 
- class PluginGetComponents (ApiCli):
+ class PluginGetComponents(ApiCli):
-      
      def __init__(self):
          ApiCli.__init__(self)
          self.method = "GET"
-         self.path="v1/plugins"
+         self.path = "v1/plugins"
          self.pluginName = None
-         
+ 
      def addArguments(self):
          ApiCli.addArguments(self)
-         self.parser.add_argument('-n', '--plugin-Name', dest='pluginName',action='store',required=True,help='Plugin name')
+         self.parser.add_argument('-n', '--plugin-Name', dest='pluginName', action='store', metavar='plugin_name',
-         
+                                  required=True, help='Plugin name')
+ 
      def getArguments(self):
-         '''
+         """
          Extracts the specific arguments of this CLI
-         '''
+         """
          ApiCli.getArguments(self)
-         if self.args.pluginName != None:
+         if self.args.pluginName is not None:
              self.pluginName = self.args.pluginName
-              
+ 
          self.path = "v1/plugins/{0}/components".format(self.pluginName)
-          
+ 
      def getDescription(self):
          return "Get the components of a plugin in a Boundary account"
-     
+ 
Reformat code to PEP-8 standards
## Code Before:
from boundary import ApiCli

class PluginGetComponents (ApiCli):
     
    def __init__(self):
        ApiCli.__init__(self)
        self.method = "GET"
        self.path="v1/plugins"
        self.pluginName = None
        
    def addArguments(self):
        ApiCli.addArguments(self)
        self.parser.add_argument('-n', '--plugin-Name', dest='pluginName',action='store',required=True,help='Plugin name')
        
    def getArguments(self):
        '''
        Extracts the specific arguments of this CLI
        '''
        ApiCli.getArguments(self)
        if self.args.pluginName != None:
            self.pluginName = self.args.pluginName
             
        self.path = "v1/plugins/{0}/components".format(self.pluginName)
         
    def getDescription(self):
        return "Get the components of a plugin in a Boundary account"
    
## Instruction:
Reformat code to PEP-8 standards
## Code After:
from boundary import ApiCli


class PluginGetComponents(ApiCli):
    def __init__(self):
        ApiCli.__init__(self)
        self.method = "GET"
        self.path = "v1/plugins"
        self.pluginName = None

    def addArguments(self):
        ApiCli.addArguments(self)
        self.parser.add_argument('-n', '--plugin-Name', dest='pluginName', action='store', metavar='plugin_name',
                                 required=True, help='Plugin name')

    def getArguments(self):
        """
        Extracts the specific arguments of this CLI
        """
        ApiCli.getArguments(self)
        if self.args.pluginName is not None:
            self.pluginName = self.args.pluginName

        self.path = "v1/plugins/{0}/components".format(self.pluginName)

    def getDescription(self):
        return "Get the components of a plugin in a Boundary account"
