예제 #1
0
  def Args(cls, parser):
    cls.INSTANCE_ARG = instance_flags.InstanceArgumentForTargetInstance()
    cls.INSTANCE_ARG.AddArgument(parser)
    cls.TARGET_INSTANCE_ARG = flags.TargetInstanceArgument()
    cls.TARGET_INSTANCE_ARG.AddArgument(
        parser, operation_type='create the target instance in')

    parser.add_argument(
        '--description',
        help='An optional, textual description of the target instance.')
예제 #2
0
    def Args(cls, parser):
        parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
        cls.INSTANCE_ARG = instance_flags.InstanceArgumentForTargetInstance()
        cls.INSTANCE_ARG.AddArgument(parser)
        cls.TARGET_INSTANCE_ARG = flags.TargetInstanceArgument()
        cls.TARGET_INSTANCE_ARG.AddArgument(
            parser, operation_type='create the target instance in')

        parser.add_argument(
            '--description',
            help='An optional, textual description of the target instance.')
예제 #3
0
    def Args(cls, parser):
        """Add flags to create a target instance to the parser."""
        parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
        cls.INSTANCE_ARG = instance_flags.InstanceArgumentForTargetInstance()
        cls.INSTANCE_ARG.AddArgument(parser)
        cls.TARGET_INSTANCE_ARG = flags.TargetInstanceArgument()
        cls.TARGET_INSTANCE_ARG.AddArgument(parser)

        flags.AddNetwork(parser)

        parser.add_argument(
            '--description',
            help='An optional, textual description of the target instance.')

        parser.display_info.AddCacheUpdater(flags.TargetInstancesCompleter)