コード例 #1
0
    def Args(parser):
        """Specifies additional command flags.

    Args:
      parser: argparse.Parser: Parser object for command line inputs.
    """
        flags.AddRegion(parser)
        flags.AddCluster(parser)
コード例 #2
0
    def Args(parser):
        """Specifies additional command flags.

    Args:
      parser: argparse.Parser: Parser object for command line inputs.
    """
        base.ASYNC_FLAG.AddToParser(parser)
        flags.AddRegion(parser)
        flags.AddCluster(parser)
        flags.AddForce(parser)
コード例 #3
0
    def Args(cls, parser):
        """Specifies additional command flags.

    Args:
      parser: argparse.Parser: Parser object for command line inputs.
    """
        alloydb_messages = api_util.GetMessagesModule(cls.ReleaseTrack())
        base.ASYNC_FLAG.AddToParser(parser)
        flags.AddRegion(parser)
        flags.AddCluster(parser)
        flags.AddAutomatedBackupFlags(parser, alloydb_messages, update=True)
コード例 #4
0
  def Args(parser):
    """Specifies additional command flags.

    Args:
      parser: argparse.Parser: Parser object for command line inputs.
    """
    base.ASYNC_FLAG.AddToParser(parser)
    parser.add_argument(
        '--region',
        required=True,
        type=str,
        help=('The region of the cluster to backup. Note: both the cluster '
              'and the backup have to be in the same region.'))
    flags.AddBackup(parser)
    flags.AddCluster(parser, False)
コード例 #5
0
    def Args(parser):
        """Specifies additional command flags.

    Args:
      parser: argparse.Parser, Parser object for command line inputs
    """
        base.ASYNC_FLAG.AddToParser(parser)
        flags.AddAvailabilityType(parser)
        flags.AddCluster(parser, False)
        flags.AddDatabaseFlags(parser)
        flags.AddInstance(parser)
        flags.AddCPUCount(parser, required=False)
        flags.AddReadPoolNodeCount(parser)
        flags.AddRegion(parser)
        flags.AddZone(parser)