Class: MintPress::InfrastructureOci::OCISecurityRuleCommon
- Inherits:
-
Object
- Object
- MintPress::InfrastructureOci::OCISecurityRuleCommon
- Includes:
- MintLogger, Mixins::Properties
- Defined in:
- src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb
Overview
Direct Known Subclasses
Properties (Read/Write)
-
#platform ⇒ MintPress::InfrastructureOci::OciPlatform (Default Value: Proc.new {
if opts[:provider]
MintPress::InfrastructureOci::OciPlatform.new(:provider => opts[:provider])
else
MintPress::InfrastructureOci::OciPlatform.new
end
})
'This incapsulates all properties required for the OCI provider.'
Property Attributes- default ⇒ Proc.new { if opts[:provider] MintPress::InfrastructureOci::OciPlatform.new(:provider => opts[:provider]) else MintPress::InfrastructureOci::OciPlatform.new end }
33 34 35 36 37 38 39
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 33 property :platform, type: MintPress::InfrastructureOci::OciPlatform, default: Proc.new { if opts[:provider] MintPress::InfrastructureOci::OciPlatform.new(:provider => opts[:provider]) else MintPress::InfrastructureOci::OciPlatform.new end }, description: 'This incapsulates all properties required for the OCI provider.'
-
#description ⇒ String
An optional description of your choice for the rule. If specified, and you're updating rules, this is used as a primary key!
Property Attributes42
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 42 property :description, type: String
-
#destination_type ⇒ String
Conceptually, this is the range of IP addresses that a packet originating from the instance can go to.
Property Attributes- allowed_values ⇒ ['CIDR_BLOCK', 'SERVICE_CIDR_BLOCK', 'NETWORK_SECURITY_GROUP']
44
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 44 property :destination_type, type: String, allowed_values: ['CIDR_BLOCK', 'SERVICE_CIDR_BLOCK', 'NETWORK_SECURITY_GROUP']
-
#destination ⇒ String
Type of destination for the rule.
Property Attributes46
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 46 property :destination, type: String
-
#direction ⇒ String
[Required] Direction of the security rule.
Property Attributes- allowed_values ⇒ ['INGRESS', 'EGRESS']
48
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 48 property :direction, type: String, allowed_values: ['INGRESS', 'EGRESS']
-
#is_stateless ⇒ [TrueClass, FalseClass] (Default Value: false)
A stateless rule allows traffic in one direction.
Property Attributes- default ⇒ false
50
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 50 property :is_stateless, type: [TrueClass, FalseClass], default: false
-
#protocol ⇒ String
[Required] The transport protocol. Specify either all or an IPv4 protocol number as defined in Protocol Numbers. Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58").
Property Attributes- from ⇒ Integer
52
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 52 property :protocol, type: String, from: Integer
-
#source ⇒ String
Conceptually, this is the range of IP addresses that a packet coming into the instance can come from.
Property Attributes54
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 54 property :source, type: String
-
#source_type ⇒ String
Type of source for the rule.
Property Attributes- allowed_values ⇒ ['CIDR_BLOCK', 'SERVICE_CIDR_BLOCK', 'NETWORK_SECURITY_GROUP']
56
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 56 property :source_type, type: String, allowed_values: ['CIDR_BLOCK', 'SERVICE_CIDR_BLOCK', 'NETWORK_SECURITY_GROUP']
-
#icmp_code ⇒ Integer
If this is an ICMP rule, the allowed code
Property Attributes59
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 59 property :icmp_code, type: Integer
-
#icmp_type ⇒ Integer
If this is an ICMP rule, the allowed type
Property Attributes61
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 61 property :icmp_type, type: Integer
-
#tcp_dport_range_low ⇒ Integer
tcp_options
Property Attributes64
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 64 property :tcp_dport_range_low, type: Integer
-
#tcp_dport_range_high ⇒ Integer
tcp_options
Property Attributes66
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 66 property :tcp_dport_range_high, type: Integer
-
#tcp_sport_range_low ⇒ Integer
tcp_options
Property Attributes68
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 68 property :tcp_sport_range_low, type: Integer
-
#tcp_sport_range_high ⇒ Integer
tcp_options
Property Attributes70
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 70 property :tcp_sport_range_high, type: Integer
-
#udp_sport_range_low ⇒ Integer
udp_options
Property Attributes72
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 72 property :udp_sport_range_low, type: Integer
-
#udp_sport_range_high ⇒ Integer
udp_options
Property Attributes74
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 74 property :udp_sport_range_high, type: Integer
-
#ocid ⇒ String
The ocid of this item
Property Attributes77
# File 'src/mintpress-infrastructure-oci/lib/mintpress-infrastructure-oci/oci_security_rule_common.rb', line 77 property :ocid, type: String
Properties (Read Only)
Constant Summary
Constants included from MintLogger
MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN
Instance Attribute Summary
Attributes included from Mixins::Properties
#autopush_set_cache, #dynamic_create, #harvest_on_access, #harvest_undefined_only, #harvested, #tree_root
Instance Method Summary collapse
- #cmp_icmp(rule) ⇒ Object
- #cmp_tcp(rule) ⇒ Object
- #cmp_udp(rule) ⇒ Object
- #compare_class(rule, items) ⇒ Object
- #exists? ⇒ Boolean
-
#fill_class!(obj, props) ⇒ Object
Fill in props so we don't have to do a whole bunch of nozin around.
- #fill_icmp!(rule) ⇒ Object
- #fill_tcp!(rule) ⇒ Object
- #fill_udp!(rule) ⇒ Object
-
#initialize(opts = {}) ⇒ OCISecurityRuleCommon
constructor
A new instance of OCISecurityRuleCommon.
Methods included from Mixins::Properties
#[], #[]=, #add_validate_report_result, #armour_set_property, #array_contains?, #array_is_a?, #check_autopush, #check_stack_overflow, #clone_property_object, #cloner_handle_single_property, #coerce_single, #contains_as_string?, #display_validate_report_result, #double_initialize?, #dump_to_hash, #find_parent, #find_parent_by_identity, #generate_accessor_functions, #get_canonical_renamed, #get_from_opts, #get_my_name, #get_property, #get_property_item, #has?, included, #initialize_validate_report, #inspect, #is_cloned_object?, #is_mintpress_object?, #is_probably_canonical?, #is_set?, #local_debug, #local_info, #local_verbose, #mintpress_property_definitions, #place_object_by_identity, #process_properties, #prop_set?, #property, #property_definitions, #property_details, #property_is_simple_object?, #push_root!, #require_property, #require_update, #retrieve_docstring, #sanitize, #set_map_dirty, #set_property, #set_property_item, #show_short_array, #strip_defaults!, #synchronize, #uncloned_property_definitions, #update_map, #validate, #validate_generic, #validate_properties, #validate_property, #validate_required, #version_allowed?, #weakref
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send