Beispiel #1
0
 def get_parser(self, prog_name):
     parser = AppsFormatOne.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument('username',
                         type=str,
                         help='username to show permission for')
     return parser
Beispiel #2
0
 def get_parser(self, prog_name):
     parser = SystemsFormatOne.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument('username',
                         metavar='<username>',
                         type=str,
                         help='Revokee username')
     return parser
Beispiel #3
0
 def get_parser(self, prog_name):
     parser = super(SystemsDefaultSet, self).get_parser(prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument(
         '-G',
         dest='global_default',
         action='store_true',
         help='Set tenant-wide default (requires admin rights)')
     return parser
Beispiel #4
0
 def get_parser(self, prog_name):
     parser = JobsFormatOne.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument('-T',
                         '--template',
                         dest='job_template',
                         action='store_true',
                         help='Job template from verbose')
     return parser
Beispiel #5
0
 def get_parser(self, prog_name):
     parser = AppsFormatOne.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument(
         '-e',
         '--execution-system',
         type=str,
         dest='public_execution_system',
         help='Execution system where published app will run')
     return parser
Beispiel #6
0
    def get_parser(self, prog_name):
        parser = super(SystemsRolesGrant, self).get_parser(prog_name)
        parser = ServiceIdentifier.extend_parser(self, parser)
        parser = Username.extend_parser(self, parser)

        parser.add_argument('role',
                            type=str,
                            metavar='ROLE',
                            choices=SystemRole.NAMES,
                            help='Role ({0})'.format('| '.join(
                                SystemRole.NAMES)))
        return parser
Beispiel #7
0
 def get_parser(self, prog_name):
     parser = AppsFormatMany.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument('username',
                         metavar='<username>',
                         type=str,
                         help='Grantee username')
     parser.add_argument('permission',
                         type=str,
                         metavar='<permission>',
                         choices=AppPermission.NAMES,
                         help='Permission string ({0})'.format('| '.join(
                             AppPermission.NAMES)))
     return parser
Beispiel #8
0
 def get_parser(self, prog_name):
     parser = SystemsFormatOne.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument('username',
                         metavar='<username>',
                         type=str,
                         help='Grantee username')
     parser.add_argument('role',
                         type=str,
                         metavar='<permission>',
                         choices=SystemRole.NAMES,
                         help='Role ({0})'.format('| '.join(
                             SystemRole.NAMES)))
     return parser
Beispiel #9
0
 def get_parser(self, prog_name):
     parser = super(SystemsFormatMany, self).get_parser(prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
Beispiel #10
0
 def get_parser(self, prog_name):
     parser = AppsFormatMany.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
Beispiel #11
0
 def get_parser(self, prog_name):
     parser = SystemsFormatOne.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
 def get_parser(self, prog_name):
     parser = super(SystemsQueuesList, self).get_parser(prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
Beispiel #13
0
 def get_parser(self, prog_name):
     parser = AppsFormatMany.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser.add_argument('username', type=str, help='target username')
     return parser
Beispiel #14
0
 def get_parser(self, prog_name):
     parser = super(SystemsRolesShow, self).get_parser(prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     parser = Username.extend_parser(self, parser)
     return parser
Beispiel #15
0
 def get_parser(self, prog_name):
     parser = AppsCreate.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser