Class: OCI::VnMonitoring::Models::VirtualCircuitDrgAttachmentNetworkUpdateDetails
- Inherits:
-
DrgAttachmentNetworkUpdateDetails
- Object
- DrgAttachmentNetworkUpdateDetails
- OCI::VnMonitoring::Models::VirtualCircuitDrgAttachmentNetworkUpdateDetails
- Defined in:
- lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb
Overview
Specifies the update details for the virtual circuit attachment.
Constant Summary
Constants inherited from DrgAttachmentNetworkUpdateDetails
DrgAttachmentNetworkUpdateDetails::TYPE_ENUM
Instance Attribute Summary collapse
-
#is_edge_pop ⇒ BOOLEAN
Indicates whether FastConnect extends through an edge POP region.
-
#is_ffab ⇒ BOOLEAN
Whether the Fast Connect is an FFAB VirtualCircuit.
-
#region_name ⇒ String
The OCI region name.
-
#regional_oci_asn ⇒ String
The BGP ASN to use for the virtual circuit's route target.
-
#transport_only_mode ⇒ BOOLEAN
Boolean flag that determines wether all traffic over the VCs is encrypted.
Attributes inherited from DrgAttachmentNetworkUpdateDetails
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 = {}) ⇒ VirtualCircuitDrgAttachmentNetworkUpdateDetails
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.
Methods inherited from DrgAttachmentNetworkUpdateDetails
Constructor Details
#initialize(attributes = {}) ⇒ VirtualCircuitDrgAttachmentNetworkUpdateDetails
Initializes the object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 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 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 82 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['type'] = 'VIRTUAL_CIRCUIT' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.is_ffab = attributes[:'isFFAB'] unless attributes[:'isFFAB'].nil? self.is_ffab = false if is_ffab.nil? && !attributes.key?(:'isFFAB') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isFFAB and :is_ffab' if attributes.key?(:'isFFAB') && attributes.key?(:'is_ffab') self.is_ffab = attributes[:'is_ffab'] unless attributes[:'is_ffab'].nil? self.is_ffab = false if is_ffab.nil? && !attributes.key?(:'isFFAB') && !attributes.key?(:'is_ffab') # rubocop:disable Style/StringLiterals self.regional_oci_asn = attributes[:'regionalOciAsn'] if attributes[:'regionalOciAsn'] raise 'You cannot provide both :regionalOciAsn and :regional_oci_asn' if attributes.key?(:'regionalOciAsn') && attributes.key?(:'regional_oci_asn') self.regional_oci_asn = attributes[:'regional_oci_asn'] if attributes[:'regional_oci_asn'] self.is_edge_pop = attributes[:'isEdgePop'] unless attributes[:'isEdgePop'].nil? self.is_edge_pop = false if is_edge_pop.nil? && !attributes.key?(:'isEdgePop') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isEdgePop and :is_edge_pop' if attributes.key?(:'isEdgePop') && attributes.key?(:'is_edge_pop') self.is_edge_pop = attributes[:'is_edge_pop'] unless attributes[:'is_edge_pop'].nil? self.is_edge_pop = false if is_edge_pop.nil? && !attributes.key?(:'isEdgePop') && !attributes.key?(:'is_edge_pop') # rubocop:disable Style/StringLiterals self.region_name = attributes[:'regionName'] if attributes[:'regionName'] raise 'You cannot provide both :regionName and :region_name' if attributes.key?(:'regionName') && attributes.key?(:'region_name') self.region_name = attributes[:'region_name'] if attributes[:'region_name'] self.transport_only_mode = attributes[:'transportOnlyMode'] unless attributes[:'transportOnlyMode'].nil? self.transport_only_mode = false if transport_only_mode.nil? && !attributes.key?(:'transportOnlyMode') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :transportOnlyMode and :transport_only_mode' if attributes.key?(:'transportOnlyMode') && attributes.key?(:'transport_only_mode') self.transport_only_mode = attributes[:'transport_only_mode'] unless attributes[:'transport_only_mode'].nil? self.transport_only_mode = false if transport_only_mode.nil? && !attributes.key?(:'transportOnlyMode') && !attributes.key?(:'transport_only_mode') # rubocop:disable Style/StringLiterals end |
Instance Attribute Details
#is_edge_pop ⇒ BOOLEAN
Indicates whether FastConnect extends through an edge POP region.
Example: true
29 30 31 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 29 def is_edge_pop @is_edge_pop end |
#is_ffab ⇒ BOOLEAN
Whether the Fast Connect is an FFAB VirtualCircuit.
Example: true
17 18 19 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 17 def is_ffab @is_ffab end |
#region_name ⇒ String
The OCI region name
34 35 36 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 34 def region_name @region_name end |
#regional_oci_asn ⇒ String
The BGP ASN to use for the virtual circuit's route target.
22 23 24 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 22 def regional_oci_asn @regional_oci_asn end |
#transport_only_mode ⇒ BOOLEAN
Boolean flag that determines wether all traffic over the VCs is encrypted.
Example: true
41 42 43 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 41 def transport_only_mode @transport_only_mode end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 44 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'type': :'type', 'is_ffab': :'isFFAB', 'regional_oci_asn': :'regionalOciAsn', 'is_edge_pop': :'isEdgePop', 'region_name': :'regionName', 'transport_only_mode': :'transportOnlyMode' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 58 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'type': :'String', 'is_ffab': :'BOOLEAN', 'regional_oci_asn': :'String', 'is_edge_pop': :'BOOLEAN', 'region_name': :'String', 'transport_only_mode': :'BOOLEAN' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 136 def ==(other) return true if equal?(other) self.class == other.class && type == other.type && is_ffab == other.is_ffab && regional_oci_asn == other.regional_oci_asn && is_edge_pop == other.is_edge_pop && region_name == other.region_name && transport_only_mode == other.transport_only_mode end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 171 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
151 152 153 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 151 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
160 161 162 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 160 def hash [type, is_ffab, regional_oci_asn, is_edge_pop, region_name, transport_only_mode].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
204 205 206 207 208 209 210 211 212 213 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 204 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
198 199 200 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_update_details.rb', line 198 def to_s to_hash.to_s end |