Example #1
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        resource_args.AddMigrationJobResourceArgs(parser, 'to update')
        mj_flags.AddDisplayNameFlag(parser)
        mj_flags.AddTypeFlag(parser)
        mj_flags.AddDumpPathFlag(parser)
        mj_flags.AddConnectivityGroupFlag(parser, mj_flags.ApiType.UPDATE)
        flags.AddLabelsUpdateFlags(parser)
Example #2
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        resource_args.AddConnectionProfileResourceArg(parser, 'to update')

        cp_flags.AddDisplayNameFlag(parser)
        cp_flags.AddUsernameFlag(parser)
        cp_flags.AddPasswordFlagGroup(parser)
        cp_flags.AddHostFlag(parser)
        cp_flags.AddPortFlag(parser)
        cp_flags.AddCaCertificateFlag(parser)
        cp_flags.AddPrivateKeyFlag(parser)
        flags.AddLabelsUpdateFlags(parser)