示例#1
0
 def Args(parser):
   resource_args.AddLocationResourceArg(
       parser,
       'in which to list environments',
       positional=False,
       required=False,
       plural=True,
       help_supplement='If not specified, the location stored in the property '
       ' [composer/location] will be used.')
   parser.display_info.AddFormat('table[box]('
                                 'name.segment(5):label=NAME,'
                                 'name.segment(3):label=LOCATION,'
                                 'state:label=STATE,'
                                 'createTime:reverse'
                                 ')')
示例#2
0
 def Args(parser):
   resource_args.AddLocationResourceArg(
       parser,
       'in which to list operations.',
       positional=False,
       required=False,
       plural=True,
       help_supplement='If not specified, the location stored in the property '
       ' [composer/location] will be used.')
   parser.display_info.AddFormat(
       'table[box]('
       'name.segment(5):label=UUID,'
       'metadata.operationType:label=TYPE,'
       'name.segment(3):label=LOCATION,'
       'metadata.resource.basename():label=TARGET_ENVIRONMENT,'
       'metadata.state:label=STATE,'
       'metadata.createTime:label=CREATE_TIME:reverse'
       ')')