[Proposal] Add `Optional` (default `None`) to Node classes
オープン
api: compute
proposal / rfc
- 主要言語
- Python
- スター
- 2.1k
- フォーク
- 931
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 4
説明
## Proposal
Some classes have attributes that are not required for building a Node.
For example, we don't need the `NodeSize.bandwidth` argument to create a new node. Only the `id` is necessary. But we still have to instanciate the `NodeSize` class with `bandwidth=None` since it's a required argument.
It could be possible to add a default `None` value to each optional argument to make things simpler when using Sizes/Images/Locations.
コントリビューションガイド
調査の方向性
まず Node クラス、特に NodeSize と、提案で言及されている Sizes、Images、Locations クラスを確認します。どのコンストラクター引数がオプションかを特定し、それらの値を明示的に渡さなくてもノードをインスタンス化できることを確認します。ただし、id などの必須属性は引き続き必要です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cloud
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100