Skip to content

Commit eb595a9

Browse files
committed
Merge pull request #8 from NexGenCloud/DOP-1354/js-ts-sdk-build-copy-publish-workflow
Merge the Latest Code to main branch (Includes DOP-904,feature-sdk-js-ts,DOP-1354)
1 parent c8156f5 commit eb595a9

32 files changed

+618
-8
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To contribute, please raise an issue with a bug report, feature request, feedbac
88
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
99

1010
- API version: 1.0
11-
- Package version: v1.41.0-alpha
11+
- Package version: v1.41.2-alpha
1212
- Generator version: 7.10.0
1313
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1414

@@ -171,6 +171,7 @@ Class | Method | HTTP request | Description
171171
*CallbacksApi* | [**update_virtual_machine_callback**](docs/CallbacksApi.md#update_virtual_machine_callback) | **PUT** /core/virtual-machines/{vm_id}/update-callback | Update virtual machine callback
172172
*CallbacksApi* | [**update_volume_callback**](docs/CallbacksApi.md#update_volume_callback) | **PUT** /core/volumes/{volume_id}/update-callback | Update volume callback
173173
*ClusterEventsApi* | [**fetch_all_of_a_cluster_events**](docs/ClusterEventsApi.md#fetch_all_of_a_cluster_events) | **GET** /core/clusters/{cluster_id}/events | Fetch all of a cluster events
174+
*ClustersApi* | [**attempt_to_manually_reconcile_a_cluster**](docs/ClustersApi.md#attempt_to_manually_reconcile_a_cluster) | **POST** /core/clusters/{cluster_id}/reconcile | Reconcile a cluster
174175
*ClustersApi* | [**create_cluster**](docs/ClustersApi.md#create_cluster) | **POST** /core/clusters | Create Cluster
175176
*ClustersApi* | [**create_node**](docs/ClustersApi.md#create_node) | **POST** /core/clusters/{cluster_id}/nodes | Create Node
176177
*ClustersApi* | [**create_node_group**](docs/ClustersApi.md#create_node_group) | **POST** /core/clusters/{cluster_id}/node-groups | Create a node group in a cluster
@@ -448,6 +449,7 @@ Class | Method | HTTP request | Description
448449
- [Logos](docs/Logos.md)
449450
- [MFAStatusFields](docs/MFAStatusFields.md)
450451
- [MFAStatusResponse](docs/MFAStatusResponse.md)
452+
- [ManualReconciliationModel](docs/ManualReconciliationModel.md)
451453
- [MasterFlavorsResponse](docs/MasterFlavorsResponse.md)
452454
- [MetricItemFields](docs/MetricItemFields.md)
453455
- [MetricsFields](docs/MetricsFields.md)
File renamed without changes.
File renamed without changes.

docs/ClustersApi.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**attempt_to_manually_reconcile_a_cluster**](ClustersApi.md#attempt_to_manually_reconcile_a_cluster) | **POST** /core/clusters/{cluster_id}/reconcile | Reconcile a cluster
78
[**create_cluster**](ClustersApi.md#create_cluster) | **POST** /core/clusters | Create Cluster
89
[**create_node**](ClustersApi.md#create_node) | **POST** /core/clusters/{cluster_id}/nodes | Create Node
910
[**create_node_group**](ClustersApi.md#create_node_group) | **POST** /core/clusters/{cluster_id}/node-groups | Create a node group in a cluster
@@ -20,6 +21,87 @@ Method | HTTP request | Description
2021
[**retrieve_a_node_group**](ClustersApi.md#retrieve_a_node_group) | **GET** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Retrieve a node group in a cluster
2122

2223

24+
# **attempt_to_manually_reconcile_a_cluster**
25+
> ManualReconciliationModel attempt_to_manually_reconcile_a_cluster(cluster_id)
26+
27+
Reconcile a cluster
28+
29+
### Example
30+
31+
* Api Key Authentication (apiKey):
32+
33+
```python
34+
import hyperstack
35+
from hyperstack.models.manual_reconciliation_model import ManualReconciliationModel
36+
from hyperstack.rest import ApiException
37+
from pprint import pprint
38+
39+
# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
40+
# See configuration.py for a list of all supported configuration parameters.
41+
configuration = hyperstack.Configuration(
42+
host = "https://infrahub-api.nexgencloud.com/v1"
43+
)
44+
45+
# The client must configure the authentication and authorization parameters
46+
# in accordance with the API server security policy.
47+
# Examples for each auth method are provided below, use the example that
48+
# satisfies your auth use case.
49+
50+
# Configure API key authorization: apiKey
51+
configuration.api_key['apiKey'] = os.environ["API_KEY"]
52+
53+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
54+
# configuration.api_key_prefix['apiKey'] = 'Bearer'
55+
56+
# Enter a context with an instance of the API client
57+
with hyperstack.ApiClient(configuration) as api_client:
58+
# Create an instance of the API class
59+
api_instance = hyperstack.ClustersApi(api_client)
60+
cluster_id = 56 # int |
61+
62+
try:
63+
# Reconcile a cluster
64+
api_response = api_instance.attempt_to_manually_reconcile_a_cluster(cluster_id)
65+
print("The response of ClustersApi->attempt_to_manually_reconcile_a_cluster:\n")
66+
pprint(api_response)
67+
except Exception as e:
68+
print("Exception when calling ClustersApi->attempt_to_manually_reconcile_a_cluster: %s\n" % e)
69+
```
70+
71+
72+
73+
### Parameters
74+
75+
76+
Name | Type | Description | Notes
77+
------------- | ------------- | ------------- | -------------
78+
**cluster_id** | **int**| |
79+
80+
### Return type
81+
82+
[**ManualReconciliationModel**](ManualReconciliationModel.md)
83+
84+
### Authorization
85+
86+
[apiKey](../README.md#apiKey)
87+
88+
### HTTP request headers
89+
90+
- **Content-Type**: Not defined
91+
- **Accept**: application/json
92+
93+
### HTTP response details
94+
95+
| Status code | Description | Response headers |
96+
|-------------|-------------|------------------|
97+
**200** | Success | - |
98+
**400** | Bad Request | - |
99+
**401** | Unauthorized | - |
100+
**404** | Not Found | - |
101+
**500** | Internal Server Error | - |
102+
103+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
104+
23105
# **create_cluster**
24106
> ClusterResponse create_cluster(payload)
25107
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)