Skip to content

Commit 0bce73c

Browse files
committed
SDK Release v1.53.4-alpha
1 parent f956808 commit 0bce73c

15 files changed

Lines changed: 524 additions & 8 deletions

‎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.52.3-alpha
11+
- Package version: v1.53.4-alpha
1212
- Generator version: 7.10.0
1313
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1414

@@ -273,6 +273,7 @@ Class | Method | HTTP request | Description
273273
*TemplateApi* | [**list_templates**](docs/TemplateApi.md#list_templates) | **GET** /core/marketplace/templates | List templates
274274
*TemplateApi* | [**update_template**](docs/TemplateApi.md#update_template) | **PUT** /core/marketplace/templates/{id} | Update template
275275
*UserApi* | [**add_user_billing_info**](docs/UserApi.md#add_user_billing_info) | **POST** /billing/user/info | POST: Insert billing info
276+
*UserApi* | [**get_allowed_country_codes**](docs/UserApi.md#get_allowed_country_codes) | **GET** /billing/user/countries | GET: Retrieve allowed country codes
276277
*UserApi* | [**get_user_billing_info**](docs/UserApi.md#get_user_billing_info) | **GET** /billing/user/info | GET: Retrieve billing info
277278
*UserApi* | [**update_user_billing_info**](docs/UserApi.md#update_user_billing_info) | **PUT** /billing/user/info | PUT: Update billing info
278279
*UserConsentApi* | [**add_a_new_consent_for_a_user**](docs/UserConsentApi.md#add_a_new_consent_for_a_user) | **POST** /auth/user-consent | Add a new User consent
@@ -325,6 +326,7 @@ Class | Method | HTTP request | Description
325326
- [AccessTokenField](docs/AccessTokenField.md)
326327
- [AddUserInfoSuccessResponseModel](docs/AddUserInfoSuccessResponseModel.md)
327328
- [AllocatedGPUCountGraph](docs/AllocatedGPUCountGraph.md)
329+
- [AllowedCountriesResponse](docs/AllowedCountriesResponse.md)
328330
- [ApiKeyFields](docs/ApiKeyFields.md)
329331
- [AssignRbacRolePayload](docs/AssignRbacRolePayload.md)
330332
- [AttachCallbackPayload](docs/AttachCallbackPayload.md)

‎docs/AllowedCountriesResponse.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AllowedCountriesResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**countries** | **List[str]** | | [optional]
9+
**status** | **bool** | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hyperstack.models.allowed_countries_response import AllowedCountriesResponse
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of AllowedCountriesResponse from a JSON string
19+
allowed_countries_response_instance = AllowedCountriesResponse.from_json(json)
20+
# print the JSON string representation of the object
21+
print(AllowedCountriesResponse.to_json())
22+
23+
# convert the object into a dict
24+
allowed_countries_response_dict = allowed_countries_response_instance.to_dict()
25+
# create an instance of AllowedCountriesResponse from a dict
26+
allowed_countries_response_from_dict = AllowedCountriesResponse.from_dict(allowed_countries_response_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

‎docs/UserApi.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**add_user_billing_info**](UserApi.md#add_user_billing_info) | **POST** /billing/user/info | POST: Insert billing info
8+
[**get_allowed_country_codes**](UserApi.md#get_allowed_country_codes) | **GET** /billing/user/countries | GET: Retrieve allowed country codes
89
[**get_user_billing_info**](UserApi.md#get_user_billing_info) | **GET** /billing/user/info | GET: Retrieve billing info
910
[**update_user_billing_info**](UserApi.md#update_user_billing_info) | **PUT** /billing/user/info | PUT: Update billing info
1011

@@ -94,6 +95,83 @@ Name | Type | Description | Notes
9495

9596
[[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)
9697

98+
# **get_allowed_country_codes**
99+
> AllowedCountriesResponse get_allowed_country_codes()
100+
101+
GET: Retrieve allowed country codes
102+
103+
Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
104+
105+
### Example
106+
107+
* Api Key Authentication (apiKey):
108+
109+
```python
110+
import hyperstack
111+
from hyperstack.models.allowed_countries_response import AllowedCountriesResponse
112+
from hyperstack.rest import ApiException
113+
from pprint import pprint
114+
115+
# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
116+
# See configuration.py for a list of all supported configuration parameters.
117+
configuration = hyperstack.Configuration(
118+
host = "https://infrahub-api.nexgencloud.com/v1"
119+
)
120+
121+
# The client must configure the authentication and authorization parameters
122+
# in accordance with the API server security policy.
123+
# Examples for each auth method are provided below, use the example that
124+
# satisfies your auth use case.
125+
126+
# Configure API key authorization: apiKey
127+
configuration.api_key['apiKey'] = os.environ["API_KEY"]
128+
129+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
130+
# configuration.api_key_prefix['apiKey'] = 'Bearer'
131+
132+
# Enter a context with an instance of the API client
133+
with hyperstack.ApiClient(configuration) as api_client:
134+
# Create an instance of the API class
135+
api_instance = hyperstack.UserApi(api_client)
136+
137+
try:
138+
# GET: Retrieve allowed country codes
139+
api_response = api_instance.get_allowed_country_codes()
140+
print("The response of UserApi->get_allowed_country_codes:\n")
141+
pprint(api_response)
142+
except Exception as e:
143+
print("Exception when calling UserApi->get_allowed_country_codes: %s\n" % e)
144+
```
145+
146+
147+
148+
### Parameters
149+
150+
This endpoint does not need any parameter.
151+
152+
### Return type
153+
154+
[**AllowedCountriesResponse**](AllowedCountriesResponse.md)
155+
156+
### Authorization
157+
158+
[apiKey](../README.md#apiKey)
159+
160+
### HTTP request headers
161+
162+
- **Content-Type**: Not defined
163+
- **Accept**: application/json
164+
165+
### HTTP response details
166+
167+
| Status code | Description | Response headers |
168+
|-------------|-------------|------------------|
169+
**200** | Success | - |
170+
**401** | Unauthorized | - |
171+
**500** | Internal Server Error | - |
172+
173+
[[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)
174+
97175
# **get_user_billing_info**
98176
> UsersInfoListResponse get_user_billing_info()
99177

‎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.52.3-alpha"
17+
__version__ = "v1.53.4-alpha"
1818

1919
# import apis into sdk package
2020
from .api.access_keys_api import AccessKeysApi
@@ -88,6 +88,7 @@
8888
from .models.access_token_field import AccessTokenField
8989
from .models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
9090
from .models.allocated_gpu_count_graph import AllocatedGPUCountGraph
91+
from .models.allowed_countries_response import AllowedCountriesResponse
9192
from .models.api_key_fields import ApiKeyFields
9293
from .models.assign_rbac_role_payload import AssignRbacRolePayload
9394
from .models.attach_callback_payload import AttachCallbackPayload

‎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.52.3-alpha"
17+
__version__ = "v1.53.4-alpha"
1818

1919
# import apis into sdk package
2020
from hyperstack.api.access_keys_api import AccessKeysApi
@@ -88,6 +88,7 @@ from hyperstack.exceptions import ApiException
8888
from hyperstack.models.access_token_field import AccessTokenField
8989
from hyperstack.models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
9090
from hyperstack.models.allocated_gpu_count_graph import AllocatedGPUCountGraph
91+
from hyperstack.models.allowed_countries_response import AllowedCountriesResponse
9192
from hyperstack.models.api_key_fields import ApiKeyFields
9293
from hyperstack.models.assign_rbac_role_payload import AssignRbacRolePayload
9394
from hyperstack.models.attach_callback_payload import AttachCallbackPayload

0 commit comments

Comments
 (0)