Class: OCI::VnMonitoring::Models::VirtualCircuitDrgAttachmentNetworkCreateDetails
- Inherits:
-
DrgAttachmentNetworkCreateDetails
- Object
- DrgAttachmentNetworkCreateDetails
- OCI::VnMonitoring::Models::VirtualCircuitDrgAttachmentNetworkCreateDetails
- Defined in:
- lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb
Overview
VirtualCircuitDrgAttachmentNetworkCreateDetails model.
Constant Summary collapse
- THROUGHPUT_ENUM =
[ THROUGHPUT_100_M = '100M'.freeze, THROUGHPUT_200_M = '200M'.freeze, THROUGHPUT_500_M = '500M'.freeze, THROUGHPUT_1_G = '1G'.freeze, THROUGHPUT_2_G = '2G'.freeze, THROUGHPUT_3_G = '3G'.freeze, THROUGHPUT_4_G = '4G'.freeze, THROUGHPUT_5_G = '5G'.freeze, THROUGHPUT_10_G = '10G'.freeze, THROUGHPUT_20_G = '20G'.freeze, THROUGHPUT_30_G = '30G'.freeze, THROUGHPUT_40_G = '40G'.freeze, THROUGHPUT_50_G = '50G'.freeze, THROUGHPUT_100_G = '100G'.freeze, THROUGHPUT_200_G = '200G'.freeze, THROUGHPUT_400_G = '400G'.freeze, THROUGHPUT_500_G = '500G'.freeze ].freeze
Constants inherited from DrgAttachmentNetworkCreateDetails
DrgAttachmentNetworkCreateDetails::TYPE_ENUM
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
[Required] The OCID of compartment that contains the Virtual Circuit.
-
#is_edge_pop ⇒ BOOLEAN
Whether the Fast Connect exists through an edge pop region.
-
#is_whitelisted_for_ingress_disintermediation_c3 ⇒ BOOLEAN
Determines whether the ingress traffic/routes through this attachment are disintermediated or not.
-
#region_name ⇒ String
The OCI region name.
-
#regional_oci_asn ⇒ String
The BGP ASN to use for the Virtual Circuit's route target.
-
#throughput ⇒ String
Determines Throughput capacity of Virtual Circuit.
-
#transport_only_mode ⇒ BOOLEAN
Boolean flag that determines wether all traffic over the VCs is encrypted.
Attributes inherited from DrgAttachmentNetworkCreateDetails
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 = {}) ⇒ VirtualCircuitDrgAttachmentNetworkCreateDetails
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 DrgAttachmentNetworkCreateDetails
Constructor Details
#initialize(attributes = {}) ⇒ VirtualCircuitDrgAttachmentNetworkCreateDetails
Initializes the object
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 122 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.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] 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 self.throughput = attributes[:'throughput'] if attributes[:'throughput'] self.throughput = "null" if throughput.nil? && !attributes.key?(:'throughput') # rubocop:disable Style/StringLiterals self.is_whitelisted_for_ingress_disintermediation_c3 = attributes[:'isWhitelistedForIngressDisintermediationC3'] unless attributes[:'isWhitelistedForIngressDisintermediationC3'].nil? self.is_whitelisted_for_ingress_disintermediation_c3 = false if is_whitelisted_for_ingress_disintermediation_c3.nil? && !attributes.key?(:'isWhitelistedForIngressDisintermediationC3') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isWhitelistedForIngressDisintermediationC3 and :is_whitelisted_for_ingress_disintermediation_c3' if attributes.key?(:'isWhitelistedForIngressDisintermediationC3') && attributes.key?(:'is_whitelisted_for_ingress_disintermediation_c3') self.is_whitelisted_for_ingress_disintermediation_c3 = attributes[:'is_whitelisted_for_ingress_disintermediation_c3'] unless attributes[:'is_whitelisted_for_ingress_disintermediation_c3'].nil? self.is_whitelisted_for_ingress_disintermediation_c3 = false if is_whitelisted_for_ingress_disintermediation_c3.nil? && !attributes.key?(:'isWhitelistedForIngressDisintermediationC3') && !attributes.key?(:'is_whitelisted_for_ingress_disintermediation_c3') # rubocop:disable Style/StringLiterals end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of compartment that contains the Virtual Circuit.
34 35 36 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 34 def compartment_id @compartment_id end |
#is_edge_pop ⇒ BOOLEAN
Whether the Fast Connect exists through an edge pop region.
Example: true
46 47 48 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 46 def is_edge_pop @is_edge_pop end |
#is_whitelisted_for_ingress_disintermediation_c3 ⇒ BOOLEAN
Determines whether the ingress traffic/routes through this attachment are disintermediated or not.
Example: true
72 73 74 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 72 def is_whitelisted_for_ingress_disintermediation_c3 @is_whitelisted_for_ingress_disintermediation_c3 end |
#region_name ⇒ String
The OCI region name
51 52 53 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 51 def region_name @region_name end |
#regional_oci_asn ⇒ String
The BGP ASN to use for the Virtual Circuit's route target
39 40 41 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 39 def regional_oci_asn @regional_oci_asn end |
#throughput ⇒ String
Determines Throughput capacity of Virtual Circuit.
Example: 400G
65 66 67 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 65 def throughput @throughput end |
#transport_only_mode ⇒ BOOLEAN
Boolean flag that determines wether all traffic over the VCs is encrypted.
Example: true
58 59 60 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 58 def transport_only_mode @transport_only_mode end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 75 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'type': :'type', 'id': :'id', 'compartment_id': :'compartmentId', 'regional_oci_asn': :'regionalOciAsn', 'is_edge_pop': :'isEdgePop', 'region_name': :'regionName', 'transport_only_mode': :'transportOnlyMode', 'throughput': :'throughput', 'is_whitelisted_for_ingress_disintermediation_c3': :'isWhitelistedForIngressDisintermediationC3' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 92 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'type': :'String', 'id': :'String', 'compartment_id': :'String', 'regional_oci_asn': :'String', 'is_edge_pop': :'BOOLEAN', 'region_name': :'String', 'transport_only_mode': :'BOOLEAN', 'throughput': :'String', 'is_whitelisted_for_ingress_disintermediation_c3': :'BOOLEAN' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 193 def ==(other) return true if equal?(other) self.class == other.class && type == other.type && id == other.id && compartment_id == other.compartment_id && 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 && throughput == other.throughput && is_whitelisted_for_ingress_disintermediation_c3 == other.is_whitelisted_for_ingress_disintermediation_c3 end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 231 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
211 212 213 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 211 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
220 221 222 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 220 def hash [type, id, compartment_id, regional_oci_asn, is_edge_pop, region_name, transport_only_mode, throughput, is_whitelisted_for_ingress_disintermediation_c3].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
264 265 266 267 268 269 270 271 272 273 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 264 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
258 259 260 |
# File 'lib/oci/vn_monitoring/models/virtual_circuit_drg_attachment_network_create_details.rb', line 258 def to_s to_hash.to_s end |