def Args(parser): """Specifies additional command flags. Args: parser: argparse.Parser: Parser object for command line inputs. """ flags.AddRegion(parser) flags.AddCluster(parser)
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)
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)
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)
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)