Skip to content

Commit b000c33

Browse files
committed
SDK Release v1.51.0-alpha
1 parent 91593ef commit b000c33

33 files changed

+318
-16
lines changed

README.md

Lines changed: 3 additions & 2 deletions
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.50.2-alpha
11+
- Package version: v1.51.0-alpha
1212
- Generator version: 7.10.0
1313
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1414

@@ -128,7 +128,7 @@ Class | Method | HTTP request | Description
128128
*AssigningMemberRoleApi* | [**assign_rbac_role_to_user**](docs/AssigningMemberRoleApi.md#assign_rbac_role_to_user) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role
129129
*AssigningMemberRoleApi* | [**remove_rbac_role_from_user**](docs/AssigningMemberRoleApi.md#remove_rbac_role_from_user) | **DELETE** /auth/users/{user_id}/roles | Remove RBAC Role From User
130130
*AuthApi* | [**change_organization_for_token**](docs/AuthApi.md#change_organization_for_token) | **GET** /auth/token/change-org/{org_id} |
131-
*AuthApi* | [**disable_mfa**](docs/AuthApi.md#disable_mfa) | **GET** /auth/me/mfa/disable |
131+
*AuthApi* | [**disable_mfa**](docs/AuthApi.md#disable_mfa) | **POST** /auth/me/mfa/disable |
132132
*AuthApi* | [**get_user_mfa_status**](docs/AuthApi.md#get_user_mfa_status) | **GET** /auth/me/mfa | Get MFA status for authenticated user
133133
*AuthApi* | [**get_user_organizations**](docs/AuthApi.md#get_user_organizations) | **GET** /auth/me/organizations | Get User Organizations
134134
*AuthApi* | [**retrieve_authenticated_user_details**](docs/AuthApi.md#retrieve_authenticated_user_details) | **GET** /auth/me | Retrieve Authenticated User Details
@@ -345,6 +345,7 @@ Class | Method | HTTP request | Description
345345
- [ClusterListResponse](docs/ClusterListResponse.md)
346346
- [ClusterNodeFields](docs/ClusterNodeFields.md)
347347
- [ClusterNodeGroupFields](docs/ClusterNodeGroupFields.md)
348+
- [ClusterNodeGroupFirewallFields](docs/ClusterNodeGroupFirewallFields.md)
348349
- [ClusterNodeGroupsCreateResponse](docs/ClusterNodeGroupsCreateResponse.md)
349350
- [ClusterNodeGroupsGetResponse](docs/ClusterNodeGroupsGetResponse.md)
350351
- [ClusterNodeGroupsListResponse](docs/ClusterNodeGroupsListResponse.md)

docs/AuthApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**change_organization_for_token**](AuthApi.md#change_organization_for_token) | **GET** /auth/token/change-org/{org_id} |
8-
[**disable_mfa**](AuthApi.md#disable_mfa) | **GET** /auth/me/mfa/disable |
8+
[**disable_mfa**](AuthApi.md#disable_mfa) | **POST** /auth/me/mfa/disable |
99
[**get_user_mfa_status**](AuthApi.md#get_user_mfa_status) | **GET** /auth/me/mfa | Get MFA status for authenticated user
1010
[**get_user_organizations**](AuthApi.md#get_user_organizations) | **GET** /auth/me/organizations | Get User Organizations
1111
[**retrieve_authenticated_user_details**](AuthApi.md#retrieve_authenticated_user_details) | **GET** /auth/me | Retrieve Authenticated User Details
@@ -165,6 +165,7 @@ This endpoint does not need any parameter.
165165
|-------------|-------------|------------------|
166166
**200** | MFA Disabled | - |
167167
**401** | Unauthorized | - |
168+
**403** | Forbidden - CSRF validation failed | - |
168169
**404** | User not found | - |
169170
**500** | Internal Server Error | - |
170171

docs/ClusterNodeGroupFields.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**count** | **int** | | [optional]
99
**created_at** | **datetime** | | [optional]
10+
**firewall_ids** | **List[int]** | | [optional]
11+
**firewalls** | [**List[ClusterNodeGroupFirewallFields]**](ClusterNodeGroupFirewallFields.md) | | [optional]
1012
**flavor** | [**ClusterFlavorFields**](ClusterFlavorFields.md) | | [optional]
1113
**id** | **int** | | [optional]
1214
**max_count** | **int** | | [optional]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ClusterNodeGroupFirewallFields
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | | [optional]
9+
**name** | **str** | | [optional]
10+
**status** | **str** | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hyperstack.models.cluster_node_group_firewall_fields import ClusterNodeGroupFirewallFields
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of ClusterNodeGroupFirewallFields from a JSON string
20+
cluster_node_group_firewall_fields_instance = ClusterNodeGroupFirewallFields.from_json(json)
21+
# print the JSON string representation of the object
22+
print(ClusterNodeGroupFirewallFields.to_json())
23+
24+
# convert the object into a dict
25+
cluster_node_group_firewall_fields_dict = cluster_node_group_firewall_fields_instance.to_dict()
26+
# create an instance of ClusterNodeGroupFirewallFields from a dict
27+
cluster_node_group_firewall_fields_from_dict = ClusterNodeGroupFirewallFields.from_dict(cluster_node_group_firewall_fields_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/CreateClusterNodeGroupPayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**count** | **int** | | [optional]
9+
**firewall_ids** | **List[int]** | IDs of the firewalls to apply to all nodes in this node group | [optional]
910
**flavor_name** | **str** | |
1011
**max_count** | **int** | | [optional]
1112
**min_count** | **int** | | [optional]

docs/UpdateClusterNodeGroupPayload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**firewall_ids** | **List[int]** | IDs of the firewalls to apply to all nodes in this node group | [optional]
89
**max_count** | **int** | | [optional]
910
**min_count** | **int** | | [optional]
1011

hyperstack/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "v1.50.2-alpha"
17+
__version__ = "v1.51.0-alpha"
1818

1919
# import apis into sdk package
2020
from .api.access_keys_api import AccessKeysApi
@@ -119,6 +119,7 @@
119119
from .models.cluster_list_response import ClusterListResponse
120120
from .models.cluster_node_fields import ClusterNodeFields
121121
from .models.cluster_node_group_fields import ClusterNodeGroupFields
122+
from .models.cluster_node_group_firewall_fields import ClusterNodeGroupFirewallFields
122123
from .models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
123124
from .models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
124125
from .models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse

hyperstack/__init__.py.bak

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "v1.50.2-alpha"
17+
__version__ = "v1.51.0-alpha"
1818

1919
# import apis into sdk package
2020
from hyperstack.api.access_keys_api import AccessKeysApi
@@ -119,6 +119,7 @@ from hyperstack.models.cluster_flavor_fields import ClusterFlavorFields
119119
from hyperstack.models.cluster_list_response import ClusterListResponse
120120
from hyperstack.models.cluster_node_fields import ClusterNodeFields
121121
from hyperstack.models.cluster_node_group_fields import ClusterNodeGroupFields
122+
from hyperstack.models.cluster_node_group_firewall_fields import ClusterNodeGroupFirewallFields
122123
from hyperstack.models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
123124
from hyperstack.models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
124125
from hyperstack.models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse

hyperstack/api/auth_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ def disable_mfa(
366366
_response_types_map: Dict[str, Optional[str]] = {
367367
'200': "CommonResponseModel",
368368
'401': "ErrorResponseModel",
369+
'403': "ErrorResponseModel",
369370
'404': "ErrorResponseModel",
370371
'500': "ErrorResponseModel",
371372
}
@@ -432,6 +433,7 @@ def disable_mfa_with_http_info(
432433
_response_types_map: Dict[str, Optional[str]] = {
433434
'200': "CommonResponseModel",
434435
'401': "ErrorResponseModel",
436+
'403': "ErrorResponseModel",
435437
'404': "ErrorResponseModel",
436438
'500': "ErrorResponseModel",
437439
}
@@ -498,6 +500,7 @@ def disable_mfa_without_preload_content(
498500
_response_types_map: Dict[str, Optional[str]] = {
499501
'200': "CommonResponseModel",
500502
'401': "ErrorResponseModel",
503+
'403': "ErrorResponseModel",
501504
'404': "ErrorResponseModel",
502505
'500': "ErrorResponseModel",
503506
}
@@ -552,7 +555,7 @@ def _disable_mfa_serialize(
552555
]
553556

554557
return self.api_client.param_serialize(
555-
method='GET',
558+
method='POST',
556559
resource_path='/auth/me/mfa/disable',
557560
path_params=_path_params,
558561
query_params=_query_params,

hyperstack/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v1.50.2-alpha/python'
93+
self.user_agent = 'OpenAPI-Generator/v1.51.0-alpha/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

0 commit comments

Comments
 (0)