Ejemplo n.º 1
0
 def Args(parser):
     flags.AddParentFlagsToParser(parser)
     flags.OperationAsyncFlag().AddToParser(parser)
     base.Argument('--display-name',
                   required=True,
                   help='Friendly display name to use for the new folder'
                   ).AddToParser(parser)
Ejemplo n.º 2
0
 def Args(parser):
     labels_util.AddCreateLabelsFlags(parser)
     type_ = arg_parsers.RegexpValidator(r'[a-z][a-z0-9-]{5,29}',
                                         ID_DESCRIPTION)
     project_id = parser.add_argument(
         'id',
         metavar='PROJECT_ID',
         type=type_,
         nargs='?',
         help='ID for the project you want to create.')
     project_id.detailed_help = ('ID for the project you want to create.'
                                 '\n\n{0}'.format(ID_DESCRIPTION))
     parser.add_argument('--name',
                         help='Name for the project you want to create. '
                         'If not specified, will use project id as name.')
     parser.add_argument(
         '--enable-cloud-apis',
         action='store_true',
         default=True,
         help='Enable cloudapis.googleapis.com during creation.')
     parser.add_argument(
         '--set-as-default',
         action='store_true',
         default=False,
         help='Set newly created project as [core.project] property.')
     flags.AddParentFlagsToParser(parser)
Ejemplo n.º 3
0
 def Args(parser):
     flags.FolderIdArg('you want to move.').AddToParser(parser)
     flags.OperationAsyncFlag().AddToParser(parser)
     flags.AddParentFlagsToParser(parser)
Ejemplo n.º 4
0
 def Args(parser):
     project_flags.GetProjectIDNumberFlag('move').AddToParser(parser)
     folder_flags.AddParentFlagsToParser(parser)
     parser.display_info.AddFormat(command_lib_util.LIST_FORMAT)