コード例 #1
0
ファイル: list.py プロジェクト: Guliux10/bchacks_deepbreath
    def Args(parser):
        parser.display_info.AddFormat(
            'table(index, publicKeyCertificate.format,'
            'publicKeyCertificate.x509Details.issuer,'
            'publicKeyCertificate.x509Details.subject,'
            'publicKeyCertificate.x509Details.startTime,'
            'publicKeyCertificate.x509Details.expiryTime,'
            'publicKeyCertificate.x509Details.signatureAlgorithm,'
            'publicKeyCertificate.x509Details.publicKeyType)')

        base.URI_FLAG.RemoveFromParser(parser)
        base.PAGE_SIZE_FLAG.RemoveFromParser(parser)
        resource_args.AddRegistryResourceArg(parser,
                                             'for which to list credentials',
                                             positional=False)
コード例 #2
0
ファイル: list.py プロジェクト: dominickhera/basicTokenAuthGo
  def Args(parser):
    parser.display_info.AddFormat('table(id, numId, blocked)')
    parser.display_info.AddUriFunc(util.DevicesUriFunc)

    resource_args.AddRegistryResourceArg(parser, 'in which to show devices',
                                         positional=False)

    base.Argument(
        '--device-ids',
        metavar='[ID,...]',
        type=arg_parsers.ArgList(),
        help='If given, show only devices with one of the provided IDs.'
        ).AddToParser(parser)
    base.Argument(
        '--device-num-ids',
        metavar='[NUM_ID,...]',
        type=arg_parsers.ArgList(element_type=int),
        help=('If given, show only devices with one of the provided numerical '
              'IDs.')).AddToParser(parser)
コード例 #3
0
 def Args(parser):
     resource_args.AddRegistryResourceArg(
         parser, 'from which to delete credentials', positional=False)
     flags.GetIndexFlag('credential', 'to delete').AddToParser(parser)
コード例 #4
0
 def Args(parser):
   resource_args.AddRegistryResourceArg(parser, 'for which to set IAM policy')
   flags.GetIamPolicyFileFlag().AddToParser(parser)
コード例 #5
0
 def Args(parser):
   resource_args.AddRegistryResourceArg(parser,
                                        'to which the credential belongs',
                                        positional=False)
   flags.GetIndexFlag('credential', 'to describe').AddToParser(parser)
コード例 #6
0
 def Args(parser):
     resource_args.AddRegistryResourceArg(parser,
                                          'for which to create credentials',
                                          positional=False)
     flags.AddDeviceRegistryCredentialFlagsToParser(parser)
コード例 #7
0
 def Args(parser):
     resource_args.AddRegistryResourceArg(parser, 'to describe')
コード例 #8
0
 def Args(parser):
   resource_args.AddRegistryResourceArg(parser, 'for which to get IAM policy')
   base.URI_FLAG.RemoveFromParser(parser)
コード例 #9
0
ファイル: update.py プロジェクト: Akiho-Yasuda/wip
 def Args(parser):
     resource_args.AddRegistryResourceArg(parser, 'to update')
     flags.AddDeviceRegistrySettingsFlagsToParser(parser, defaults=False)
     flags.AddLogLevelFlagToParser(parser)
コード例 #10
0
 def Args(parser):
   resource_args.AddRegistryResourceArg(parser, 'to create')
   flags.AddDeviceRegistrySettingsFlagsToParser(parser,
                                                include_deprecated=False)
   flags.AddDeviceRegistryCredentialFlagsToParser(
       parser, credentials_surface=False)
コード例 #11
0
 def Args(parser):
     resource_args.AddRegistryResourceArg(parser, 'to update')
     flags.AddDeviceRegistrySettingsFlagsToParser(parser,
                                                  defaults=False,
                                                  include_deprecated=False)
コード例 #12
0
 def Args(parser):
   resource_args.AddRegistryResourceArg(parser,
                                        'for which to clear credentials',
                                        positional=False)