troveclient.osc.v1.database_clusters module¶
Database v1 Clusters action implementations
- class troveclient.osc.v1.database_clusters.CreateDatabaseCluster(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.ShowOne
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.CreateDatabaseCluster (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class troveclient.osc.v1.database_clusters.DeleteDatabaseCluster(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Command
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.DeleteDatabaseCluster (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class troveclient.osc.v1.database_clusters.ForceDeleteDatabaseCluster(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Command
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.ForceDeleteDatabaseCluster (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class troveclient.osc.v1.database_clusters.GrowDatabaseCluster(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Command
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.GrowDatabaseCluster (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class troveclient.osc.v1.database_clusters.ListDatabaseClusterInstances(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Lister
- columns = ['ID', 'Name', 'Flavor ID', 'Size', 'Status']¶
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.ListDatabaseClusterInstances (WARNING)>¶
- take_action(parsed_args)¶
Run command.
Return a tuple containing the column names and an iterable containing the data to be listed.
- class troveclient.osc.v1.database_clusters.ListDatabaseClusterModules(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Lister
- columns = ['instance_name', 'Module Name', 'Module Type', 'md5', 'created', 'updated']¶
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.ListDatabaseClusterModules (WARNING)>¶
- take_action(parsed_args)¶
Run command.
Return a tuple containing the column names and an iterable containing the data to be listed.
- class troveclient.osc.v1.database_clusters.ListDatabaseClusters(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Lister
- columns = ['ID', 'Name', 'Datastore', 'Datastore Version', 'Task Name']¶
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.ListDatabaseClusters (WARNING)>¶
- take_action(parsed_args)¶
Run command.
Return a tuple containing the column names and an iterable containing the data to be listed.
- class troveclient.osc.v1.database_clusters.ResetDatabaseClusterStatus(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Command
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.ResetDatabaseClusterStatus (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class troveclient.osc.v1.database_clusters.ShowDatabaseCluster(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.ShowOne
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.ShowDatabaseCluster (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class troveclient.osc.v1.database_clusters.ShrinkDatabaseCluster(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Command
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.ShrinkDatabaseCluster (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class troveclient.osc.v1.database_clusters.UpgradeDatabaseCluster(app, app_args, cmd_name=None)¶
Bases:
osc_lib.command.command.Command
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger troveclient.osc.v1.database_clusters.UpgradeDatabaseCluster (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- troveclient.osc.v1.database_clusters.set_attributes_for_print_detail(cluster)¶