Class: OracleBMC::Core::Models::UpdateVirtualCircuitDetails
- Inherits:
-
Object
- Object
- OracleBMC::Core::Models::UpdateVirtualCircuitDetails
- Defined in:
- lib/oraclebmc/core/models/update_virtual_circuit_details.rb
Constant Summary collapse
- PROVIDER_STATE_ENUM =
[PROVIDER_STATE_ACTIVE = 'ACTIVE', PROVIDER_STATE_INACTIVE = 'INACTIVE']
Instance Attribute Summary collapse
-
#bandwidth_shape_name ⇒ String
The provisioned data rate of the connection.
-
#cross_connect_mappings ⇒ Array<OracleBMC::Core::Models::CrossConnectMapping>
An array of mappings, each containing properties for a cross-connect or cross-connect group associated with this virtual circuit.
-
#customer_bgp_asn ⇒ Integer
The BGP ASN of the network at the other end of the BGP session from Oracle.
-
#display_name ⇒ String
A user-friendly name.
-
#gateway_id ⇒ String
The OCID of the Drg that this virtual circuit uses.
-
#provider_state ⇒ String
The provider’s state in relation to this virtual circuit.
-
#reference_comment ⇒ String
Provider-supplied reference information about this virtual circuit.
Instance Method Summary collapse
-
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other_object) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ UpdateVirtualCircuitDetails
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 = {}) ⇒ UpdateVirtualCircuitDetails
Initializes the object
81 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 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 81 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} if attributes[:'bandwidthShapeName'] self.bandwidth_shape_name = attributes[:'bandwidthShapeName'] end if attributes[:'crossConnectMappings'] self.cross_connect_mappings = attributes[:'crossConnectMappings'] end if attributes[:'customerBgpAsn'] self.customer_bgp_asn = attributes[:'customerBgpAsn'] end if attributes[:'displayName'] self.display_name = attributes[:'displayName'] end if attributes[:'gatewayId'] self.gateway_id = attributes[:'gatewayId'] end if attributes[:'providerState'] self.provider_state = attributes[:'providerState'] end if attributes[:'referenceComment'] self.reference_comment = attributes[:'referenceComment'] end end |
Instance Attribute Details
#bandwidth_shape_name ⇒ String
The provisioned data rate of the connection. To get a list of the available bandwidth levels (i.e., shapes), see list_virtual_circuit_bandwidth_shapes.
To be updated only by the customer who owns the virtual circuit.
18 19 20 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 18 def bandwidth_shape_name @bandwidth_shape_name end |
#cross_connect_mappings ⇒ Array<OracleBMC::Core::Models::CrossConnectMapping>
An array of mappings, each containing properties for a cross-connect or cross-connect group associated with this virtual circuit.
The customer and provider can update different properties in the mapping depending on the situation. See the description of the CrossConnectMapping.
28 29 30 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 28 def cross_connect_mappings @cross_connect_mappings end |
#customer_bgp_asn ⇒ Integer
The BGP ASN of the network at the other end of the BGP session from Oracle.
If the BGP session is from the customer’s edge router to Oracle, the required value is the customer’s ASN, and it can be updated only by the customer.
If the BGP session is from the provider’s edge router to Oracle, the required value is the provider’s ASN, and it can be updated only by the provider.
42 43 44 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 42 def customer_bgp_asn @customer_bgp_asn end |
#display_name ⇒ String
A user-friendly name. Does not have to be unique.
To be updated only by the customer who owns the virtual circuit.
49 50 51 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 49 def display_name @display_name end |
#gateway_id ⇒ String
The OCID of the Drg that this virtual circuit uses.
To be updated only by the customer who owns the virtual circuit.
57 58 59 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 57 def gateway_id @gateway_id end |
#provider_state ⇒ String
The provider’s state in relation to this virtual circuit. Relevant only if the customer is using FastConnect via a provider. ACTIVE means the provider has provisioned the virtual circuit from their end. INACTIVE means the provider has not yet provisioned the virtual circuit, or has de-provisioned it.
To be updated only by the provider.
68 69 70 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 68 def provider_state @provider_state end |
#reference_comment ⇒ String
Provider-supplied reference information about this virtual circuit. Relevant only if the customer is using FastConnect via a provider.
To be updated only by the provider.
76 77 78 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 76 def reference_comment @reference_comment end |
Instance Method Details
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 130 def ==(other_object) return true if self.equal?(other_object) self.class == other_object.class && bandwidth_shape_name == other_object.bandwidth_shape_name && cross_connect_mappings == other_object.cross_connect_mappings && customer_bgp_asn == other_object.customer_bgp_asn && display_name == other_object.display_name && gateway_id == other_object.gateway_id && provider_state == other_object.provider_state && reference_comment == other_object.reference_comment end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 157 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) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", OracleBMC::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_object) ⇒ Boolean
144 145 146 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 144 def eql?(other_object) self == other_object end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
150 151 152 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 150 def hash [bandwidth_shape_name, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, provider_state, reference_comment].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
182 183 184 185 186 187 188 189 190 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 182 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
176 177 178 |
# File 'lib/oraclebmc/core/models/update_virtual_circuit_details.rb', line 176 def to_s to_hash.to_s end |