designateclient.v2.cli.zones module

class designateclient.v2.cli.zones.AXFRZoneCommand(app, app_args, cmd_name=None)[source]

Bases: Command

AXFR a zone

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.AXFRZoneCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.zones.AbandonZoneCommand(app, app_args, cmd_name=None)[source]

Bases: Command

Abandon a zone

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.AbandonZoneCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.zones.AcceptTransferRequestCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Accept a Zone Transfer Request

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.AcceptTransferRequestCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.CreateTransferRequestCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Create new zone transfer request

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.CreateTransferRequestCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.CreateZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Create new zone

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.CreateZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.DeleteSharedZoneCommand(app, app_args, cmd_name=None)[source]

Bases: Command

Delete a Zone Share

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.DeleteSharedZoneCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.zones.DeleteTransferRequestCommand(app, app_args, cmd_name=None)[source]

Bases: Command

Delete a Zone Transfer Request

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.DeleteTransferRequestCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.zones.DeleteZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Delete zone

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.DeleteZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.DeleteZoneExportCommand(app, app_args, cmd_name=None)[source]

Bases: Command

Delete a Zone Export

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.DeleteZoneExportCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.zones.DeleteZoneImportCommand(app, app_args, cmd_name=None)[source]

Bases: Command

Delete a Zone Import

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.DeleteZoneImportCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.zones.ExportZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Export a Zone

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ExportZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ImportZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Import a Zone from a file on the filesystem

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ImportZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ListSharedZonesCommand(app, app_args, cmd_name=None)[source]

Bases: Lister

List Zone Shares

columns = ['id', 'zone_id', 'target_project_id']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ListSharedZonesCommand (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.zones.ListTransferAcceptsCommand(app, app_args, cmd_name=None)[source]

Bases: Lister

List Zone Transfer Accepts

columns = ['id', 'zone_id', 'project_id', 'zone_transfer_request_id', 'status', 'key']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ListTransferAcceptsCommand (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.zones.ListTransferRequestsCommand(app, app_args, cmd_name=None)[source]

Bases: Lister

List Zone Transfer Requests

columns = ['id', 'zone_id', 'zone_name', 'project_id', 'target_project_id', 'status', 'key']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ListTransferRequestsCommand (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.zones.ListZoneExportsCommand(app, app_args, cmd_name=None)[source]

Bases: Lister

List Zone Exports

columns = ['id', 'zone_id', 'created_at', 'status']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ListZoneExportsCommand (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.zones.ListZoneImportsCommand(app, app_args, cmd_name=None)[source]

Bases: Lister

List Zone Imports

columns = ['id', 'zone_id', 'created_at', 'status', 'message']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ListZoneImportsCommand (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.zones.ListZonesCommand(app, app_args, cmd_name=None)[source]

Bases: Lister

List zones

columns = ['id', 'name', 'type', 'serial', 'status', 'action']
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ListZonesCommand (WARNING)>
take_action(parsed_args)[source]

Run command.

Return a tuple containing the column names and an iterable containing the data to be listed.

class designateclient.v2.cli.zones.PoolMoveZoneCommand(app, app_args, cmd_name=None)[source]

Bases: Command

Move a zone to another pool

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.PoolMoveZoneCommand (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class designateclient.v2.cli.zones.SetTransferRequestCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Set a Zone Transfer Request

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.SetTransferRequestCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.SetZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Set zone properties

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.SetZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShareZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Share a Zone

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShareZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShowSharedZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show Zone Share Details

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShowSharedZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShowTransferAcceptCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show Zone Transfer Accept

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShowTransferAcceptCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShowTransferRequestCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show Zone Transfer Request Details

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShowTransferRequestCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShowZoneCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show zone details

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShowZoneCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShowZoneExportCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show a Zone Export

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShowZoneExportCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShowZoneExportFileCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show the zone file for the Zone Export

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShowZoneExportFileCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class designateclient.v2.cli.zones.ShowZoneImportCommand(app, app_args, cmd_name=None)[source]

Bases: ShowOne

Show a Zone Import

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger designateclient.v2.cli.zones.ShowZoneImportCommand (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.