Class: OCI::Oda::Models::OdaPrivateEndpointScanProxy
- Inherits:
-
Object
- Object
- OCI::Oda::Models::OdaPrivateEndpointScanProxy
- Defined in:
- lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb
Overview
Details pertaining to a scan proxy instance created for a scan listener FQDN/IPs
Constant Summary collapse
- SCAN_LISTENER_TYPE_ENUM =
[ SCAN_LISTENER_TYPE_FQDN = 'FQDN'.freeze, SCAN_LISTENER_TYPE_IP = 'IP'.freeze, SCAN_LISTENER_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- PROTOCOL_ENUM =
[ PROTOCOL_TCP = 'TCP'.freeze, PROTOCOL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_CREATING = 'CREATING'.freeze, LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_DELETED = 'DELETED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#id ⇒ String
[Required] The OCID of the ODA Private Endpoint Scan Proxy.
-
#lifecycle_state ⇒ String
The current state of the ODA Private Endpoint Scan Proxy.
-
#protocol ⇒ String
[Required] The protocol used for communication between client, scanProxy and RAC's scan listeners.
-
#scan_listener_infos ⇒ Array<OCI::Oda::Models::ScanListenerInfo>
[Required] The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
-
#scan_listener_type ⇒ String
[Required] Type indicating whether Scan listener is specified by its FQDN or list of IPs.
-
#time_created ⇒ DateTime
When the resource was created.
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 = {}) ⇒ OdaPrivateEndpointScanProxy
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 = {}) ⇒ OdaPrivateEndpointScanProxy
Initializes the object
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 100 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.id = attributes[:'id'] if attributes[:'id'] self.scan_listener_type = attributes[:'scanListenerType'] if attributes[:'scanListenerType'] raise 'You cannot provide both :scanListenerType and :scan_listener_type' if attributes.key?(:'scanListenerType') && attributes.key?(:'scan_listener_type') self.scan_listener_type = attributes[:'scan_listener_type'] if attributes[:'scan_listener_type'] self.protocol = attributes[:'protocol'] if attributes[:'protocol'] self.scan_listener_infos = attributes[:'scanListenerInfos'] if attributes[:'scanListenerInfos'] raise 'You cannot provide both :scanListenerInfos and :scan_listener_infos' if attributes.key?(:'scanListenerInfos') && attributes.key?(:'scan_listener_infos') self.scan_listener_infos = attributes[:'scan_listener_infos'] if attributes[:'scan_listener_infos'] self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] end |
Instance Attribute Details
#id ⇒ String
[Required] The OCID of the ODA Private Endpoint Scan Proxy.
35 36 37 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 35 def id @id end |
#lifecycle_state ⇒ String
The current state of the ODA Private Endpoint Scan Proxy.
54 55 56 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 54 def lifecycle_state @lifecycle_state end |
#protocol ⇒ String
[Required] The protocol used for communication between client, scanProxy and RAC's scan listeners
45 46 47 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 45 def protocol @protocol end |
#scan_listener_infos ⇒ Array<OCI::Oda::Models::ScanListenerInfo>
[Required] The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
50 51 52 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 50 def scan_listener_infos @scan_listener_infos end |
#scan_listener_type ⇒ String
[Required] Type indicating whether Scan listener is specified by its FQDN or list of IPs
40 41 42 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 40 def scan_listener_type @scan_listener_type end |
#time_created ⇒ DateTime
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
58 59 60 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 58 def time_created @time_created end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 61 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'scan_listener_type': :'scanListenerType', 'protocol': :'protocol', 'scan_listener_infos': :'scanListenerInfos', 'lifecycle_state': :'lifecycleState', 'time_created': :'timeCreated' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 75 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'scan_listener_type': :'String', 'protocol': :'String', 'scan_listener_infos': :'Array<OCI::Oda::Models::ScanListenerInfo>', 'lifecycle_state': :'String', 'time_created': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 181 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && scan_listener_type == other.scan_listener_type && protocol == other.protocol && scan_listener_infos == other.scan_listener_infos && lifecycle_state == other.lifecycle_state && time_created == other.time_created end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 216 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
196 197 198 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 196 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
205 206 207 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 205 def hash [id, scan_listener_type, protocol, scan_listener_infos, lifecycle_state, time_created].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
249 250 251 252 253 254 255 256 257 258 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 249 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
243 244 245 |
# File 'lib/oci/oda/models/oda_private_endpoint_scan_proxy.rb', line 243 def to_s to_hash.to_s end |