Exemplo n.º 1
0
 def Args(parser):
   flags.AddRegistryResourceFlags(parser, 'in which to create the device',
                                  positional=False)
   flags.GetIdFlag('device', 'to create').AddToParser(parser)
   for flag in flags.GetDeviceFlags():
     flag.AddToParser(parser)
   flags.AddDeviceCredentialFlagsToParser(parser)
Exemplo n.º 2
0
    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)
        flags.AddRegistryResourceFlags(parser,
                                       'for which to list credentials',
                                       positional=False)
Exemplo n.º 3
0
    def Args(parser):
        parser.display_info.AddFormat('table(id, numId, blocked)')
        parser.display_info.AddUriFunc(util.DevicesUriFunc)

        flags.AddRegistryResourceFlags(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)
Exemplo n.º 4
0
 def Args(parser):
     flags.AddRegistryResourceFlags(parser, 'to delete')
 def Args(parser):
   flags.AddRegistryResourceFlags(parser, 'for which to set IAM policy')
   flags.GetIamPolicyFileFlag().AddToParser(parser)
Exemplo n.º 6
0
 def Args(parser):
     flags.AddRegistryResourceFlags(parser,
                                    'for which to clear credentials',
                                    positional=False)
Exemplo n.º 7
0
 def Args(parser):
     flags.AddRegistryResourceFlags(parser, 'to update')
     for flag in flags.GetDeviceRegistrySettingsFlags(defaults=False):
         flag.AddToParser(parser)
Exemplo n.º 8
0
 def Args(parser):
     flags.AddRegistryResourceFlags(parser, 'to update')
     flags.AddDeviceRegistrySettingsFlagsToParser(parser, defaults=False)
 def Args(parser):
     flags.AddRegistryResourceFlags(parser, 'for which to get IAM policy')
Exemplo n.º 10
0
 def Args(parser):
     flags.AddRegistryResourceFlags(parser,
                                    'from which to delete credentials',
                                    positional=False)
     flags.GetIndexFlag('credential', 'to delete').AddToParser(parser)
Exemplo n.º 11
0
 def Args(parser):
     flags.AddRegistryResourceFlags(parser,
                                    'to which the credential belongs',
                                    positional=False)
     flags.GetIndexFlag('credential', 'to describe').AddToParser(parser)
Exemplo n.º 12
0
 def Args(parser):
   flags.AddRegistryResourceFlags(parser, 'for which to create credentials',
                                  positional=False)
   flags.AddDeviceRegistryCredentialFlagsToParser(parser)