Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragsharma-123 committed Jul 3, 2024
1 parent 0134b80 commit 2cd768d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.10.0] - 2024-07-04
### Added
- Added `initialNodes` query parameter for Ocean GKE `create_virtual_node_group` API.

## [3.9.1] - 2024-06-28
### Fixed
- Made few parameter objects in `create_right_sizing_rule` to optional (For internal use only).
Expand Down
4 changes: 3 additions & 1 deletion docs/clients/ocean/ocean_gcp_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,16 @@ __Returns__
<h2 id="spotinst_sdk2.clients.ocean.OceanGcpClient.create_virtual_node_group">create_virtual_node_group</h2>

```python
OceanGcpClient.create_virtual_node_group(vng: VirtualNodeGroup)
OceanGcpClient.create_virtual_node_group(vng: VirtualNodeGroup,
initial_nodes: int = None)
```

Create a virtual node group.

__Arguments__

- __vng (VirtualNodeGroup)__: VirtualNodeGroup Object
- __initial_nodes__: When set to an integer greater than 0, a corresponding number of nodes will be launched from the virtual node group created.

__Returns__

Expand Down
4 changes: 4 additions & 0 deletions spotinst_sdk2/clients/ocean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,8 @@ def get_aggregated_summary_costs(self, ocean_id: str, aggregated_cluster_costs:
# endregion

# region GCP


class OceanGcpClient(Client):
__base_ocean_url = "/ocean/k8s/cluster/"
__base_ocean_cluster_url = "/ocean/gcp/k8s/cluster"
Expand Down Expand Up @@ -2484,6 +2486,8 @@ def launch_nodes_in_vng(self, ocean_launch_spec_id: str, amount: int):
# endRegion

# region RightSizing


class OceanRightSizingClient(Client):

def create_right_sizing_rule(self, ocean_id: str, rule_name: str, restart_pods: bool,
Expand Down
2 changes: 1 addition & 1 deletion spotinst_sdk2/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.9.1'
__version__ = '3.10.0'

0 comments on commit 2cd768d

Please sign in to comment.