def __init__(self):
     PluginBase.__init__(self)
     self.method = "PUT"
     self.path = "v1/plugins/private"
     
     self.pluginName = None
     self.organizationName = None
     self.repositoryName = None
예제 #2
0
    def __init__(self):
        PluginBase.__init__(self)
        self.method = "PUT"
        self.path = "v1/plugins/private"

        self.pluginName = None
        self.organizationName = None
        self.repositoryName = None
예제 #3
0
 def add_arguments(self):
     PluginBase.add_arguments(self)
     self.parser.add_argument('-o', '--organization-name', dest='organizationName', action='store',
                              required=True, metavar="organization_name",
                              help='Name of the GitHub user or organization')
     self.parser.add_argument('-r', '--repository-name', dest='repositoryName', action='store',
                              required=True, metavar="repository_name",
                              help='Name of the GitHub repository')
 def getArguments(self):
     '''
     Extracts the specific arguments of this CLI
     '''
     PluginBase.getArguments(self)
     if self.args.organizationName != None:
         self.organizationName = self.args.organizationName
     if self.args.repositoryName != None:
         self.repositoryName = self.args.repositoryName
         
     self.path = "v1/plugins/private/{0}/{1}/{2}".format(self.pluginName, self.organizationName, self.repositoryName)
예제 #5
0
    def get_arguments(self):
        """
        Extracts the specific arguments of this CLI
        """
        PluginBase.get_arguments(self)
        if self.args.organizationName is not None:
            self.organizationName = self.args.organizationName
        if self.args.repositoryName is not None:
            self.repositoryName = self.args.repositoryName

        self.path = "v1/plugins/private/{0}/{1}/{2}".format(
            self.pluginName, self.organizationName, self.repositoryName)
 def addArguments(self):
     PluginBase.addArguments(self)
     self.parser.add_argument(
         "-d",
         "--remove-Dashes",
         dest="removeDashes",
         action="store_true",
         help="Remove dashboards associated with the plugin",
     )
     self.parser.add_argument(
         "-r",
         "--remove-Metrics",
         dest="removeMetrics",
         action="store_true",
         help="Remove metrics associated with the plugin",
     )
예제 #7
0
 def add_arguments(self):
     PluginBase.add_arguments(self)
     self.parser.add_argument(
         '-o',
         '--organization-name',
         dest='organizationName',
         action='store',
         required=True,
         metavar="organization_name",
         help='Name of the GitHub user or organization')
     self.parser.add_argument('-r',
                              '--repository-name',
                              dest='repositoryName',
                              action='store',
                              required=True,
                              metavar="repository_name",
                              help='Name of the GitHub repository')
 def get_arguments(self):
     PluginBase.get_arguments(self)
     self.path = "v1/plugins/installed/{0}".format(self.pluginName)
     self.url_parameters = {"removeMetrics": self.removeMetrics, "removeDashes": self.removeDashes}
 def add_arguments(self):
     PluginBase.add_arguments(self)
     self.parser.add_argument('-d', '--remove-Dashes', dest='removeDashes', action='store_true',
                              help='Remove dashboards associated with the plugin')
     self.parser.add_argument('-r', '--remove-Metrics', dest='removeMetrics', action='store_true',
                              help='Remove metrics associated with the plugin')
예제 #10
0
 def __init__(self):
     PluginBase.__init__(self)
     self.method = "DELETE"
     self.path = "v1/plugins/installed"
     self.removeMetrics = False
     self.removeDashes = False
예제 #11
0
 def get_arguments(self):
     PluginBase.get_arguments(self)
     self.path = "v1/plugins/installed/{0}".format(self.pluginName)
예제 #12
0
 def __init__(self):
     PluginBase.__init__(self)
     self.method = "PUT"
     self.path = "v1/plugins/installed"
 def getArguments(self):
     """
     Extracts the specific arguments of this CLI
     """
     PluginBase.getArguments(self)
     self.path = "v1/plugins/private/{0}".format(self.pluginName)
 def __init__(self):
     PluginBase.__init__(self)
     self.method = "DELETE"
예제 #15
0
 def get_arguments(self):
     """
     Extracts the specific arguments of this CLI
     """
     PluginBase.get_arguments(self)
     self.path = "v1/plugins/private/{0}".format(self.pluginName)
예제 #16
0
 def __init__(self):
     PluginBase.__init__(self)
     self.method = "DELETE"