def get_parser(self, prog_name):
        parser = super(ListZoneImportsCommand, self).get_parser(
            prog_name)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListZoneImportsCommand, self).get_parser(
            prog_name)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListTransferAcceptsCommand, self).get_parser(
            prog_name)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListTransferAcceptsCommand, self).get_parser(
            prog_name)

        common.add_all_common_options(parser)

        return parser
Beispiel #5
0
    def get_parser(self, prog_name):
        parser = super(ListRecordSetsCommand, self).get_parser(prog_name)

        parser.add_argument('--name', help="RecordSet Name", required=False)
        parser.add_argument('--type', help="RecordSet Type", required=False)
        parser.add_argument('--data',
                            help="RecordSet Record Data",
                            required=False)
        parser.add_argument('--ttl',
                            help="Time To Live (Seconds)",
                            required=False)
        parser.add_argument('--description',
                            help="Description",
                            required=False)
        parser.add_argument('--status',
                            help="RecordSet Status",
                            required=False)
        parser.add_argument('--action',
                            help="RecordSet Action",
                            required=False)

        parser.add_argument('zone_id',
                            help="Zone ID. To list all"
                            " recordsets specify 'all'")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(AXFRZoneCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone ID")

        common.add_all_common_options(parser)

        return parser
Beispiel #7
0
    def get_parser(self, prog_name):
        parser = super(AXFRZoneCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone ID")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ResetQuotasCommand, self).get_parser(prog_name)

        common.add_all_common_options(parser)

        parser.add_argument('--project-id', help="Project ID")

        return parser
    def get_parser(self, prog_name):
        parser = super(ResetQuotasCommand, self).get_parser(prog_name)

        common.add_all_common_options(parser)

        parser.add_argument('--project-id', help="Project ID")

        return parser
Beispiel #10
0
    def get_parser(self, prog_name):
        parser = super(DeleteBlacklistCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Blacklist ID")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ShowTransferAcceptCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone Tranfer Accept ID")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ShowBlacklistCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Blacklist ID")

        common.add_all_common_options(parser)

        return parser
Beispiel #13
0
    def get_parser(self, prog_name):
        parser = super(ShowTransferAcceptCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone Tranfer Accept ID")

        common.add_all_common_options(parser)

        return parser
Beispiel #14
0
    def get_parser(self, prog_name):
        parser = super(DeleteZoneImportCommand, self).get_parser(prog_name)

        parser.add_argument('zone_import_id', help="Zone Import ID", type=str)

        common.add_all_common_options(parser)

        return parser
Beispiel #15
0
    def get_parser(self, prog_name):
        parser = super(ShowZoneExportFileCommand, self).get_parser(prog_name)

        parser.add_argument('zone_export_id', help="Zone Export ID", type=str)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ShowServiceStatusCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Service Status ID")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(DeleteTLDCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="TLD ID")

        common.add_all_common_options(parser)

        return parser
Beispiel #18
0
    def get_parser(self, prog_name):
        parser = super(ShowServiceStatusCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Service Status ID")

        common.add_all_common_options(parser)

        return parser
Beispiel #19
0
    def get_parser(self, prog_name):
        parser = super(ShowTSIGKeyCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="TSIGKey ID")

        common.add_all_common_options(parser)

        return parser
Beispiel #20
0
    def get_parser(self, prog_name):
        parser = super(ShowFloatingIPCommand, self).get_parser(prog_name)

        parser.add_argument('floatingip_id', help="Floating IP ID in format "
                            "region:floatingip_id")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ShowZoneExportFileCommand, self).get_parser(
            prog_name)

        parser.add_argument('zone_export_id', help="Zone Export ID", type=str)

        common.add_all_common_options(parser)

        return parser
Beispiel #22
0
    def get_parser(self, prog_name):
        parser = super(DeleteTransferRequestCommand,
                       self).get_parser(prog_name)

        parser.add_argument('id', help="Zone Transfer Request ID")

        common.add_all_common_options(parser)

        return parser
Beispiel #23
0
    def get_parser(self, prog_name):
        parser = super(DeleteRecordSetCommand, self).get_parser(prog_name)

        parser.add_argument('zone_id', help="Zone ID")
        parser.add_argument('id', help="RecordSet ID")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(CreateTLDCommand, self).get_parser(prog_name)

        parser.add_argument('--name', help="TLD Name", required=True)
        parser.add_argument('--description', help="Description")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(DeleteZoneImportCommand, self).get_parser(
            prog_name)

        parser.add_argument('zone_import_id', help="Zone Import ID", type=str)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(DeleteTransferRequestCommand, self).get_parser(
            prog_name)

        parser.add_argument('id', help="Zone Transfer Request ID")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListTLDsCommand, self).get_parser(prog_name)

        parser.add_argument('--name', help="TLD NAME")

        parser.add_argument('--description', help="TLD Description")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListServiceStatusesCommand, self).get_parser(prog_name)

        parser.add_argument("--hostname", help="Hostname", required=False)
        parser.add_argument("--service_name", help="Service Name",
                            required=False)
        parser.add_argument("--status", help="Status", required=False)
        common.add_all_common_options(parser)

        return parser
Beispiel #29
0
    def get_parser(self, prog_name):
        parser = super(ImportZoneCommand, self).get_parser(prog_name)

        parser.add_argument('zone_file_path',
                            help="Path to a zone file",
                            type=str)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ImportZoneCommand, self).get_parser(
            prog_name)

        parser.add_argument('zone_file_path',
                            help="Path to a zone file", type=str)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(CreateBlacklistCommand, self).get_parser(prog_name)

        parser.add_argument('--pattern', help="Blacklist pattern",
                            required=True)
        parser.add_argument('--description', help="Description")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(SetTransferRequestCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone Transfer Request ID")
        description_group = parser.add_mutually_exclusive_group()
        description_group.add_argument('--description', help="Description")
        description_group.add_argument('--no-description', action='store_true')

        common.add_all_common_options(parser)

        return parser
Beispiel #33
0
    def get_parser(self, prog_name):
        parser = super(ListServiceStatusesCommand, self).get_parser(prog_name)

        parser.add_argument("--hostname", help="Hostname", required=False)
        parser.add_argument("--service_name",
                            help="Service Name",
                            required=False)
        parser.add_argument("--status", help="Status", required=False)
        common.add_all_common_options(parser)

        return parser
Beispiel #34
0
    def get_parser(self, prog_name):
        parser = super(CreateBlacklistCommand, self).get_parser(prog_name)

        parser.add_argument('--pattern',
                            help="Blacklist pattern",
                            required=True)
        parser.add_argument('--description', help="Description")

        common.add_all_common_options(parser)

        return parser
Beispiel #35
0
    def get_parser(self, prog_name):
        parser = super(SetTransferRequestCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone Transfer Request ID")
        description_group = parser.add_mutually_exclusive_group()
        description_group.add_argument('--description', help="Description")
        description_group.add_argument('--no-description', action='store_true')

        common.add_all_common_options(parser)

        return parser
Beispiel #36
0
    def get_parser(self, prog_name):
        parser = super(SetTSIGKeyCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="TSIGKey ID")
        parser.add_argument('--name', help="TSIGKey Name")
        parser.add_argument('--algorithm', help="TSIGKey algorithm")
        parser.add_argument('--secret', help="TSIGKey secret")
        parser.add_argument('--scope', help="TSIGKey scope")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(AcceptTransferRequestCommand, self).get_parser(
            prog_name)

        parser.add_argument('--transfer-id', help="Transfer ID", type=str,
                            required=True)
        parser.add_argument('--key', help="Transfer Key", type=str,
                            required=True)

        common.add_all_common_options(parser)

        return parser
Beispiel #38
0
    def get_parser(self, prog_name):
        parser = super(ListTSIGKeysCommand, self).get_parser(prog_name)

        parser.add_argument('--name', help="TSIGKey NAME", required=False)
        parser.add_argument('--algorithm',
                            help="TSIGKey algorithm",
                            required=False)
        parser.add_argument('--scope', help="TSIGKey scope", required=False)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(AcceptTransferRequestCommand, self).get_parser(
            prog_name)

        parser.add_argument('--transfer-id', help="Transfer ID", type=str,
                            required=True)
        parser.add_argument('--key', help="Transfer Key", type=str,
                            required=True)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(CreateTransferRequestCommand, self).get_parser(
            prog_name)

        parser.add_argument('zone_id', help="Zone ID to transfer.",)
        parser.add_argument(
            '--target-project-id',
            help="Target Project ID to transfer to.")
        parser.add_argument('--description', help="Description")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(CreateTransferRequestCommand, self).get_parser(
            prog_name)

        parser.add_argument('zone_id', help="Zone ID to transfer.",)
        parser.add_argument(
            '--target-project-id',
            help="Target Project ID to transfer to.")
        parser.add_argument('--description', help="Description")

        common.add_all_common_options(parser)

        return parser
Beispiel #42
0
    def get_parser(self, prog_name):
        parser = super(CreateZoneCommand, self).get_parser(prog_name)

        parser.add_argument('name', help="Zone Name")
        parser.add_argument('--email', help="Zone Email")
        parser.add_argument('--type', help="Zone Type", default='PRIMARY')
        parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
        parser.add_argument('--description', help="Description")
        parser.add_argument('--masters', help="Zone Masters", nargs='+')
        parser.add_argument('--attributes', help="Zone Attributes", nargs='+')

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(CreateZoneCommand, self).get_parser(prog_name)

        parser.add_argument('name', help="Zone Name")
        parser.add_argument('--email', help="Zone Email")
        parser.add_argument('--type', help="Zone Type", default='PRIMARY')
        parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
        parser.add_argument('--description', help="Description")
        parser.add_argument('--masters', help="Zone Masters", nargs='+')
        parser.add_argument('--attributes', help="Zone Attributes", nargs='+')

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListZonesCommand, self).get_parser(prog_name)

        parser.add_argument('--name', help="Zone Name", required=False)
        parser.add_argument('--email', help="Zone Email", required=False)
        parser.add_argument('--type', help="Zone Type", required=False)
        parser.add_argument('--ttl', help="Time To Live (Seconds)",
                            required=False)
        parser.add_argument('--description', help="Description",
                            required=False)
        parser.add_argument('--status', help="Zone Status", required=False)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListZonesCommand, self).get_parser(prog_name)

        parser.add_argument('--name', help="Zone Name", required=False)
        parser.add_argument('--email', help="Zone Email", required=False)
        parser.add_argument('--type', help="Zone Type", required=False)
        parser.add_argument('--ttl', help="Time To Live (Seconds)",
                            required=False)
        parser.add_argument('--description', help="Description",
                            required=False)
        parser.add_argument('--status', help="Zone Status", required=False)

        common.add_all_common_options(parser)

        return parser
Beispiel #46
0
    def get_parser(self, prog_name):
        parser = super(SetZoneCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone ID")
        parser.add_argument('--email', help="Zone Email")
        parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
        description_group = parser.add_mutually_exclusive_group()
        description_group.add_argument('--description', help="Description")
        description_group.add_argument('--no-description', action='store_true')

        parser.add_argument('--masters', help="Zone Masters", nargs='+')

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(SetZoneCommand, self).get_parser(prog_name)

        parser.add_argument('id', help="Zone ID")
        parser.add_argument('--email', help="Zone Email")
        parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
        description_group = parser.add_mutually_exclusive_group()
        description_group.add_argument('--description', help="Description")
        description_group.add_argument('--no-description', action='store_true')

        parser.add_argument('--masters', help="Zone Masters", nargs='+')

        common.add_all_common_options(parser)

        return parser
Beispiel #48
0
    def get_parser(self, prog_name):
        parser = super(CreateTSIGKeyCommand, self).get_parser(prog_name)

        parser.add_argument('--name', help="TSIGKey Name", required=True)
        parser.add_argument('--algorithm',
                            help="TSIGKey algorithm",
                            required=True)
        parser.add_argument('--secret', help="TSIGKey secret", required=True)
        parser.add_argument('--scope', help="TSIGKey scope", required=True)
        parser.add_argument('--resource-id',
                            help="TSIGKey resource_id",
                            required=True)

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(SetQuotasCommand, self).get_parser(prog_name)

        common.add_all_common_options(parser)

        parser.add_argument('--project-id', help="Project ID")
        for k, v in self._build_options_list():
            parser.add_argument(
                '--%s' % v,
                metavar='<%s>' % v,
                dest=k,
                type=int,
                help='New value for the %s quota' % v,
            )

        return parser
    def get_parser(self, prog_name):
        parser = super(CreateRecordSetCommand, self).get_parser(prog_name)

        parser.add_argument('zone_id', help="Zone ID")
        parser.add_argument('name', help="RecordSet Name")
        parser.add_argument('--records',
                            help="RecordSet Records",
                            nargs='+',
                            required=True)
        parser.add_argument('--type', help="RecordSet Type", required=True)
        parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
        parser.add_argument('--description', help="Description")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(SetQuotasCommand, self).get_parser(prog_name)

        common.add_all_common_options(parser)

        parser.add_argument('--project-id', help="Project ID")
        for k, v in self._build_options_list():
            parser.add_argument(
                '--%s' % v,
                metavar='<%s>' % v,
                dest=k,
                type=int,
                help='New value for the %s quota' % v,
            )

        return parser
Beispiel #52
0
    def get_parser(self, prog_name):
        parser = super(CreateRecordSetCommand, self).get_parser(prog_name)

        parser.add_argument('zone_id', help="Zone ID")
        parser.add_argument('name', help="RecordSet Name")
        req_group = parser.add_mutually_exclusive_group(required=True)
        req_group.add_argument('--records', help=argparse.SUPPRESS, nargs='+')
        req_group.add_argument('--record',
                               help="RecordSet Record, repeat if necessary",
                               action='append')
        parser.add_argument('--type', help="RecordSet Type", required=True)
        parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
        parser.add_argument('--description', help="Description")

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(SetFloatingIPCommand, self).get_parser(prog_name)

        parser.add_argument('floatingip_id', help="Floating IP ID in format "
                            "region:floatingip_id")
        parser.add_argument('ptrdname', help="PTRD Name")

        description_group = parser.add_mutually_exclusive_group()
        description_group.add_argument('--description', help="Description")
        description_group.add_argument('--no-description', action='store_true')

        ttl_group = parser.add_mutually_exclusive_group()
        ttl_group.add_argument('--ttl', type=int, help="TTL")
        ttl_group.add_argument('--no-ttl', action='store_true')

        common.add_all_common_options(parser)

        return parser
Beispiel #54
0
    def get_parser(self, prog_name):
        parser = super(SetRecordSetCommand, self).get_parser(prog_name)

        parser.add_argument('zone_id', help="Zone ID")
        parser.add_argument('id', help="RecordSet ID")
        parser.add_argument('--records', help="Records", nargs='+')

        description_group = parser.add_mutually_exclusive_group()
        description_group.add_argument('--description', help="Description")
        description_group.add_argument('--no-description', action='store_true')

        ttl_group = parser.add_mutually_exclusive_group()
        ttl_group.add_argument('--ttl', type=int, help="TTL")
        ttl_group.add_argument('--no-ttl', action='store_true')

        common.add_all_common_options(parser)

        return parser
    def get_parser(self, prog_name):
        parser = super(ListFloatingIPCommand, self).get_parser(prog_name)

        common.add_all_common_options(parser)

        return parser