Class: OCI::IdentityDomains::Models::NetworkPerimeterIpAddresses
- Inherits:
 - 
      Object
      
        
- Object
 - OCI::IdentityDomains::Models::NetworkPerimeterIpAddresses
 
 
- Defined in:
 - lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb
 
Overview
IPAddresses or Ranges assigned to the NetworkPerimeter
Constant Summary collapse
- TYPE_ENUM =
 [ TYPE_CIDR = 'CIDR'.freeze, TYPE_RANGE = 'RANGE'.freeze, TYPE_EXACT = 'EXACT'.freeze, TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- VERSION_ENUM =
 [ VERSION_IPV4 = 'IPV4'.freeze, VERSION_IPV6 = 'IPV6'.freeze, VERSION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
type of the ip address value.
 - 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
[Required] Value of exact ipaddress or the range in CIDR or the range with start and end ip addresses.
 - 
  
    
      #version  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Indicates the type of Ip Address example, IPV4 or IPV6.
 
Class Method Summary collapse
- 
  
    
      .attribute_map  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Attribute mapping from ruby-style variable name to JSON key.
 - 
  
    
      .swagger_types  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Attribute type mapping.
 
Instance Method Summary collapse
- 
  
    
      #==(other)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Checks equality by comparing each attribute.
 - 
  
    
      #build_from_hash(attributes)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Builds the object from hash.
 - #eql?(other) ⇒ Boolean
 - 
  
    
      #hash  ⇒ Fixnum 
    
    
  
  
  
  
  
  
  
  
  
    
Calculates hash code according to all attributes.
 - 
  
    
      #initialize(attributes = {})  ⇒ NetworkPerimeterIpAddresses 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Initializes the object.
 - 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the object in the form of hash.
 - 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the string representation of the object.
 
Constructor Details
#initialize(attributes = {}) ⇒ NetworkPerimeterIpAddresses
Initializes the object
      97 98 99 100 101 102 103 104 105 106 107 108  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 97 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.type = attributes[:'type'] if attributes[:'type'] self.version = attributes[:'version'] if attributes[:'version'] self.value = attributes[:'value'] if attributes[:'value'] end  | 
  
Instance Attribute Details
#type ⇒ String
type of the ip address value
SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
      37 38 39  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 37 def type @type end  | 
  
#value ⇒ String
[Required] Value of exact ipaddress or the range in CIDR or the range with start and end ip addresses
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none
      64 65 66  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 64 def value @value end  | 
  
#version ⇒ String
Indicates the type of Ip Address example, IPV4 or IPV6
SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
      51 52 53  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 51 def version @version end  | 
  
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
      67 68 69 70 71 72 73 74 75  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 67 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'type': :'type', 'version': :'version', 'value': :'value' # rubocop:enable Style/SymbolLiteral } end  | 
  
.swagger_types ⇒ Object
Attribute type mapping.
      78 79 80 81 82 83 84 85 86  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 78 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'type': :'String', 'version': :'String', 'value': :'String' # rubocop:enable Style/SymbolLiteral } end  | 
  
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
      143 144 145 146 147 148 149 150  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 143 def ==(other) return true if equal?(other) self.class == other.class && type == other.type && version == other.version && value == other.value end  | 
  
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
      175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 175 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end  | 
  
#eql?(other) ⇒ Boolean
      155 156 157  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 155 def eql?(other) self == other end  | 
  
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
      164 165 166  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 164 def hash [type, version, value].hash end  | 
  
#to_hash ⇒ Hash
Returns the object in the form of hash
      208 209 210 211 212 213 214 215 216 217  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 208 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end  | 
  
#to_s ⇒ String
Returns the string representation of the object
      202 203 204  | 
    
      # File 'lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb', line 202 def to_s to_hash.to_s end  |