lib/oci/object_storage/transfer/upload_manager.rb
# The client used to interact with the Object Storage service
# @return [OCI::ObjectStorage::ObjectStorageClient]
The client used to interact with the Object Storage service
The client used to interact with the Object Storage service
def upload_single(namespace_name, bucket_name, object_name, object_io_or_file_path, opts = {})
          opts[:opc_meta] = opts.delete(:metadata) if opts.key?(:metadata)
          if object_io_or_file_path.is_a?(String)
            File.open(object_io_or_file_path) do |file|
              @object_storage_client.put_object(namespace_name, bucket_name, object_name, file, opts)
            end
          else
            @object_storage_client.put_object(namespace_name, bucket_name, object_name, object_io_or_file_path, opts)
          end
        end
def upload_single ( namespace_name , bucket_name , object_name , object_io_or_file_path , opts = { } ) opts [ :opc_meta ] = opts . delete ( :metadata ) if opts . key? ( :metadata ) if object_io_or_file_path . is_a? ( String ) File . open ( object_io_or_file_path ) do | file | @object_storage_client . put_object ( namespace_name , bucket_name , object_name , file , opts ) end else @object_storage_client . put_object ( namespace_name , bucket_name , object_name , object_io_or_file_path , opts ) end end
The client used to interact with the Object Storage service
The client used to interact with the Object Storage service
None
OCI::ObjectStorage::ObjectStorageClient
namespace_name
bucket_name
object_name
object_io_or_file_path
opts