abstract class CB::FirewallRuleAction

Overview

API Action for network firewall rules.

All network firewall rule actions must inherit this action.

Direct Known Subclasses

Defined in:

cb/firewall_rule.cr

Instance Method Summary

Instance methods inherited from class CB::APIAction

client : Client client, client=(client : Client) client=, run run

Constructor methods inherited from class CB::APIAction

new(client : CB::Client, input = STDIN, output = STDOUT) new

Instance methods inherited from class CB::Action

call call, input : IO input, input=(input : IO) input=, output : IO output, output=(output : IO) output=

Constructor methods inherited from class CB::Action

new(input : IO = STDIN, output : IO = STDOUT) new

Macros inherited from class CB::Action

bool_setter(property) bool_setter, bool_setter?(property) bool_setter?, cluster_identifier_setter(property) cluster_identifier_setter, eid_setter(property, description = nil) eid_setter, format_setter(property) format_setter, format_setter?(property) format_setter?, i32_setter(property) i32_setter, ident_setter(property) ident_setter, identifier_setter(property) identifier_setter, name_setter(property) name_setter, name_setter?(property) name_setter?, role_setter(property) role_setter, role_setter?(property) role_setter?, time_setter(property) time_setter

Instance Method Detail

def display(firewall_rules : Array(Model::FirewallRule)) #

[View source]
def format : Format #

The output format. The default format is table format.


def format=(str : String) #

The output format. The default format is table format.


[View source]
def format=(format : Format) #

The output format. The default format is table format.


def network_id : String | Nil #

The ID of the target network.


def network_id=(str : String) #

The ID of the target network.


[View source]
def network_id=(network_id : String | Nil) #

The ID of the target network.


def no_header=(no_header : Bool) #

Flag to indicate whether the output should include a header. This only has an effect when the output format is a table.


[View source]
def no_header? : Bool #

Flag to indicate whether the output should include a header. This only has an effect when the output format is a table.


[View source]
def output_json(firewall_rules : Array(Model::FirewallRule)) #

[View source]
def output_table(firewall_rules : Array(Model::FirewallRule)) #

[View source]
abstract def run #

[View source]
def validate #

[View source]