Method: OCI::DataIntegration::Models::ConnectionFromAmazonS3Details#initialize
- Defined in:
- lib/oci/data_integration/models/connection_from_amazon_s3_details.rb
#initialize(attributes = {}) ⇒ ConnectionFromAmazonS3Details
Initializes the object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/oci/data_integration/models/connection_from_amazon_s3_details.rb', line 83 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['modelType'] = 'AMAZON_S3_CONNECTION' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.access_key = attributes[:'accessKey'] if attributes[:'accessKey'] raise 'You cannot provide both :accessKey and :access_key' if attributes.key?(:'accessKey') && attributes.key?(:'access_key') self.access_key = attributes[:'access_key'] if attributes[:'access_key'] self.secret_key = attributes[:'secretKey'] if attributes[:'secretKey'] raise 'You cannot provide both :secretKey and :secret_key' if attributes.key?(:'secretKey') && attributes.key?(:'secret_key') self.secret_key = attributes[:'secret_key'] if attributes[:'secret_key'] end |