chitralverma opened a new issue, #9325: URL: https://github.com/apache/opendal/issues/9325
*Drafted with AI assistance (Claude Code, Claude Opus 5.5, effort xhigh); the author is accountable for it.* ### Feature Description Expose core's operation options in the Ruby binding and generate them from core. Part of #9320. **The API shape needs to be agreed first. This is not planned immediately.** ### Problem and Solution **Current code** (links point at `4ae8e61222`): - `list(path, limit:, start_after:, recursive:)` is the only method that takes options ([operator.rs#L258-L287](https://github.com/apache/opendal/blob/4ae8e61222e6d282b2a1ec99db4e87dccacf5919/bindings/ruby/src/operator.rs#L258-L287)). - `open` derives `append` and `if_not_exists` from its mode string ([io.rs#L119-L131](https://github.com/apache/opendal/blob/4ae8e61222e6d282b2a1ec99db4e87dccacf5919/bindings/ruby/src/io.rs#L119-L131)). - `remove_all` sets `recursive` internally ([operator.rs#L202-L213](https://github.com/apache/opendal/blob/4ae8e61222e6d282b2a1ec99db4e87dccacf5919/bindings/ruby/src/operator.rs#L202-L213)). - `read`, `write`, `stat`, `delete`, `copy`, and `rename` take no options. Compose, restore, and the deleter have no API. - `dev/src/generate/ruby.rs` generates only `Capability` and `Metadata`. **Missing.** Every core option except the three `list` keywords and the two write fields that `open` derives from its mode. **Questions to settle first** - Keyword arguments on the existing methods, which matches `list` and is additive in Ruby, versus option objects. - How Ruby passes timestamps, durations, `user_metadata`, and a `Metadata` for `if_not_changed`. - Whether `list` keeps its keywords exactly as they are when the generator takes over. Once the shape is agreed, follow the same two steps as the other bindings: generate the existing `list` keywords without changes, then add the rest. ### Additional Context The same prerequisites apply as for the other bindings: #9319 for write-side and compose version conditions, and #9316 for `checksum`. ### Are you willing to contribute to the development of this feature? - [ ] Yes, I am willing to contribute to the development of this feature. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
