Пример #1
0
 def get_parser(self, prog_name):
     parser = super(JobsPemsGrant, self).get_parser(prog_name)
     parser = JobsUUID.extend_parser(self, parser)
     parser = Username.extend_parser(self, parser)
     parser.add_argument('permission',
                         metavar='<permission>',
                         choices=Permission.NAMES,
                         help='Permission string ({0})'.format('| '.join(
                             Permission.NAMES)))
     return parser
Пример #2
0
 def get_parser(self, prog_name):
     parser = super(FilesPemsGrant, self).get_parser(prog_name)
     parser = AgaveURI.extend_parser(self, parser)
     parser = Username.extend_parser(self, parser)
     parser.add_argument('permission',
                         metavar='PERMISSION',
                         choices=Permission.NAMES,
                         help='Permission string ({0})'.format('| '.join(
                             Permission.NAMES)))
     return parser
Пример #3
0
 def get_parser(self, prog_name):
     parser = super(ActorsPemsGrant, self).get_parser(prog_name)
     parser = ActorIdentifier().extend_parser(parser)
     parser = Username().extend_parser(parser)
     parser.add_argument('permission',
                         metavar='PERMISSION',
                         choices=AbacoPermission.NAMES,
                         help='Permission name ({0})'.format('| '.join(
                             AbacoPermission.NAMES)))
     return parser
Пример #4
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
Пример #5
0
 def get_parser(self, prog_name):
     parser = super(JobsPemsShow, self).get_parser(prog_name)
     parser = JobsUUID.extend_parser(self, parser)
     parser = Username.extend_parser(self, parser)
     return parser
Пример #6
0
 def get_parser(self, prog_name):
     parser = super(MetadataPemsShow, self).get_parser(prog_name)
     parser = MetadataUUID.extend_parser(self, parser)
     parser = Username.extend_parser(self, parser)
     return parser
Пример #7
0
 def get_parser(self, prog_name):
     parser = super(AppsPemsShow, self).get_parser(prog_name)
     parser = AppIdentifier.extend_parser(self, parser)
     parser = Username.extend_parser(self, parser)
     return parser
Пример #8
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
Пример #9
0
 def get_parser(self, prog_name):
     parser = super(ActorsPemsShow, self).get_parser(prog_name)
     parser = ActorIdentifier().extend_parser(parser)
     parser = Username().extend_parser(parser)
     return parser
Пример #10
0
 def get_parser(self, prog_name):
     parser = super(FilesPemsRevoke, self).get_parser(prog_name)
     parser = AgaveURI.extend_parser(self, parser)
     parser = Username.extend_parser(self, parser)
     return parser
Пример #11
0
 def get_parser(self, prog_name):
     parser = super(ProfilesShow, self).get_parser(prog_name)
     parser = Username.extend_parser(self, parser)
     return parser