예제 #1
0
def _CommonArgsAlphaBeta(track, parser):
  """Add common flags for Alpha, Beta track."""
  flags.MakeCommitmentArg(False).AddArgument(parser, operation_type='create')
  flags.AddCreateFlags(parser, enable_ssd_and_accelerator_support=True)
  flags.AddReservationArgGroup(parser)
  messages = apis.GetMessagesModule('compute', track)
  flags.GetTypeMapperFlag(messages).choice_arg.AddToParser(parser)
예제 #2
0
 def Args(cls, parser):
     flags.MakeCommitmentArg(False).AddArgument(parser,
                                                operation_type='create')
     flags.AddCreateFlags(parser, enable_ssd_and_accelerator_support=True)
     flags.AddReservationArgGroup(parser)
     messages = apis.GetMessagesModule('compute', 'alpha')
     flags.GetTypeMapperFlag(messages).choice_arg.AddToParser(parser)
예제 #3
0
 def Args(cls, parser):
     flags.MakeCommitmentArg(False).AddArgument(parser,
                                                operation_type='create')
     flags.AddCreateFlags(parser, enable_ssd_and_accelerator_support=True)
     flags.AddReservationArgGroup(parser)
예제 #4
0
 def Args(parser):
   flags.MakeCommitmentArg(False).AddArgument(
       parser, operation_type='update reservation')
   flags.AddReservationArgGroup(parser)