troveclient.osc.v1.database_instances module¶
Database v1 Instances action implementations
-
class
troveclient.osc.v1.database_instances.
CreateDatabaseInstance
(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_instances.CreateDatabaseInstance (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_instances.
DeleteDatabaseInstance
(app, app_args, cmd_name=None)¶ Bases:
troveclient.osc.v1.base.TroveDeleter
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger troveclient.osc.v1.database_instances.DeleteDatabaseInstance (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
DetachDatabaseInstanceReplica
(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_instances.DetachDatabaseInstanceReplica (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
EjectDatabaseInstanceReplicaSource
(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_instances.EjectDatabaseInstanceReplicaSource (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
ForceDeleteDatabaseInstance
(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_instances.ForceDeleteDatabaseInstance (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
ListDatabaseInstances
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Lister
-
admin_columns
= ['ID', 'Name', 'Datastore', 'Datastore Version', 'Status', 'Operating Status', 'Public', 'Addresses', 'Flavor ID', 'Size', 'Role', 'Server ID', 'Tenant ID']¶
-
columns
= ['ID', 'Name', 'Datastore', 'Datastore Version', 'Status', 'Operating Status', 'Public', 'Addresses', 'Flavor ID', 'Size', 'Role']¶
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger troveclient.osc.v1.database_instances.ListDatabaseInstances (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_instances.
PromoteDatabaseInstanceToReplicaSource
(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_instances.PromoteDatabaseInstanceToReplicaSource (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
RebootDatabaseInstance
(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_instances.RebootDatabaseInstance (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
RebuildDatabaseInstance
(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_instances.RebuildDatabaseInstance (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
ResetDatabaseInstanceStatus
(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_instances.ResetDatabaseInstanceStatus (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
ResizeDatabaseInstanceFlavor
(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_instances.ResizeDatabaseInstanceFlavor (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
ResizeDatabaseInstanceVolume
(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_instances.ResizeDatabaseInstanceVolume (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
RestartDatabaseInstance
(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_instances.RestartDatabaseInstance (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
ShowDatabaseInstance
(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_instances.ShowDatabaseInstance (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_instances.
UpdateDatabaseInstance
(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_instances.UpdateDatabaseInstance (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_instances.
UpgradeDatabaseInstance
(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_instances.UpgradeDatabaseInstance (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
troveclient.osc.v1.database_instances.
get_instances_info
(instances)¶
-
troveclient.osc.v1.database_instances.
set_attributes_for_print_detail
(instance)¶