Method: OCI::Core::Models::FastConnectProviderServiceKey#initialize
- Defined in:
- lib/oci/core/models/fast_connect_provider_service_key.rb
#initialize(attributes = {}) ⇒ FastConnectProviderServiceKey
Initializes the object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/oci/core/models/fast_connect_provider_service_key.rb', line 63 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.name = attributes[:'name'] if attributes[:'name'] self.bandwidth_shape_name = attributes[:'bandwidthShapeName'] if attributes[:'bandwidthShapeName'] raise 'You cannot provide both :bandwidthShapeName and :bandwidth_shape_name' if attributes.key?(:'bandwidthShapeName') && attributes.key?(:'bandwidth_shape_name') self.bandwidth_shape_name = attributes[:'bandwidth_shape_name'] if attributes[:'bandwidth_shape_name'] self.peering_location = attributes[:'peeringLocation'] if attributes[:'peeringLocation'] raise 'You cannot provide both :peeringLocation and :peering_location' if attributes.key?(:'peeringLocation') && attributes.key?(:'peering_location') self.peering_location = attributes[:'peering_location'] if attributes[:'peering_location'] end |