Method: OCI::ObjectStorage::Models::ListObjects#initialize
- Defined in:
- lib/oci/object_storage/models/list_objects.rb
#initialize(attributes = {}) ⇒ ListObjects
Initializes the object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/oci/object_storage/models/list_objects.rb', line 61 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.objects = attributes[:'objects'] if attributes[:'objects'] self.prefixes = attributes[:'prefixes'] if attributes[:'prefixes'] self.next_start_with = attributes[:'nextStartWith'] if attributes[:'nextStartWith'] raise 'You cannot provide both :nextStartWith and :next_start_with' if attributes.key?(:'nextStartWith') && attributes.key?(:'next_start_with') self.next_start_with = attributes[:'next_start_with'] if attributes[:'next_start_with'] end |