Skip to content

Commit a98024d

Browse files
committed
CODEOWNERS: update to platform-team (#5)
1 parent 92b02dd commit a98024d

File tree

230 files changed

+929
-233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+929
-233
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ Class | Method | HTTP request | Description
9090
*BillingPaymentMethodsApi* | [**get_payment_method_list_v1**](docs/BillingPaymentMethodsApi.md#get_payment_method_list_v1) | **GET** /api/billing/v1/payment-methods | Get payment method list
9191
*BillingPaymentMethodsApi* | [**set_default_payment_method_v1**](docs/BillingPaymentMethodsApi.md#set_default_payment_method_v1) | **POST** /api/billing/v1/payment-methods/{paymentMethodId} | Set default payment method
9292
*BillingSubscriptionsApi* | [**cancel_subscription_v1**](docs/BillingSubscriptionsApi.md#cancel_subscription_v1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId} | Cancel subscription
93+
*BillingSubscriptionsApi* | [**disable_auto_renewal_v1**](docs/BillingSubscriptionsApi.md#disable_auto_renewal_v1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable | Disable auto-renewal
94+
*BillingSubscriptionsApi* | [**enable_auto_renewal_v1**](docs/BillingSubscriptionsApi.md#enable_auto_renewal_v1) | **PATCH** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable | Enable auto-renewal
9395
*BillingSubscriptionsApi* | [**get_subscription_list_v1**](docs/BillingSubscriptionsApi.md#get_subscription_list_v1) | **GET** /api/billing/v1/subscriptions | Get subscription list
9496
*DNSSnapshotApi* | [**get_dns_snapshot_list_v1**](docs/DNSSnapshotApi.md#get_dns_snapshot_list_v1) | **GET** /api/dns/v1/snapshots/{domain} | Get DNS snapshot list
9597
*DNSSnapshotApi* | [**get_dns_snapshot_v1**](docs/DNSSnapshotApi.md#get_dns_snapshot_v1) | **GET** /api/dns/v1/snapshots/{domain}/{snapshotId} | Get DNS snapshot

docs/BillingSubscriptionsApi.md

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All URIs are relative to *https://developers.hostinger.com*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**cancel_subscription_v1**](BillingSubscriptionsApi.md#cancel_subscription_v1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId} | Cancel subscription
8+
[**disable_auto_renewal_v1**](BillingSubscriptionsApi.md#disable_auto_renewal_v1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable | Disable auto-renewal
9+
[**enable_auto_renewal_v1**](BillingSubscriptionsApi.md#enable_auto_renewal_v1) | **PATCH** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable | Enable auto-renewal
810
[**get_subscription_list_v1**](BillingSubscriptionsApi.md#get_subscription_list_v1) | **GET** /api/billing/v1/subscriptions | Get subscription list
911

1012

@@ -84,6 +86,150 @@ Name | Type | Description | Notes
8486

8587
[[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)
8688

89+
# **disable_auto_renewal_v1**
90+
> BillingV1SubscriptionSubscriptionResource disable_auto_renewal_v1(subscription_id)
91+
92+
Disable auto-renewal
93+
94+
Disable auto-renewal for a subscription.
95+
96+
Use this endpoint when disable auto-renewal for a subscription.
97+
98+
### Example
99+
100+
* Bearer Authentication (apiToken):
101+
102+
```python
103+
import hostinger_api
104+
from hostinger_api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
105+
from hostinger_api.rest import ApiException
106+
from pprint import pprint
107+
108+
109+
# Configure Bearer authorization: apiToken
110+
configuration = hostinger_api.Configuration(
111+
access_token = os.environ["BEARER_TOKEN"]
112+
)
113+
114+
# Enter a context with an instance of the API client
115+
with hostinger_api.ApiClient(configuration) as api_client:
116+
# Create an instance of the API class
117+
api_instance = hostinger_api.BillingSubscriptionsApi(api_client)
118+
subscription_id = 'Cxy353Uhl1xC54pG6' # str | Subscription ID
119+
120+
try:
121+
# Disable auto-renewal
122+
api_response = api_instance.disable_auto_renewal_v1(subscription_id)
123+
print("The response of BillingSubscriptionsApi->disable_auto_renewal_v1:\n")
124+
pprint(api_response)
125+
except Exception as e:
126+
print("Exception when calling BillingSubscriptionsApi->disable_auto_renewal_v1: %s\n" % e)
127+
```
128+
129+
130+
131+
### Parameters
132+
133+
134+
Name | Type | Description | Notes
135+
------------- | ------------- | ------------- | -------------
136+
**subscription_id** | **str**| Subscription ID |
137+
138+
### Return type
139+
140+
[**BillingV1SubscriptionSubscriptionResource**](BillingV1SubscriptionSubscriptionResource.md)
141+
142+
### Authorization
143+
144+
[apiToken](../README.md#apiToken)
145+
146+
### HTTP request headers
147+
148+
- **Content-Type**: Not defined
149+
- **Accept**: application/json
150+
151+
### HTTP response details
152+
153+
| Status code | Description | Response headers |
154+
|-------------|-------------|------------------|
155+
**200** | Success response | - |
156+
**401** | Unauthenticated response | - |
157+
**500** | Error response | - |
158+
159+
[[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)
160+
161+
# **enable_auto_renewal_v1**
162+
> BillingV1SubscriptionSubscriptionResource enable_auto_renewal_v1(subscription_id)
163+
164+
Enable auto-renewal
165+
166+
Enable auto-renewal for a subscription.
167+
168+
Use this endpoint when enable auto-renewal for a subscription.
169+
170+
### Example
171+
172+
* Bearer Authentication (apiToken):
173+
174+
```python
175+
import hostinger_api
176+
from hostinger_api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
177+
from hostinger_api.rest import ApiException
178+
from pprint import pprint
179+
180+
181+
# Configure Bearer authorization: apiToken
182+
configuration = hostinger_api.Configuration(
183+
access_token = os.environ["BEARER_TOKEN"]
184+
)
185+
186+
# Enter a context with an instance of the API client
187+
with hostinger_api.ApiClient(configuration) as api_client:
188+
# Create an instance of the API class
189+
api_instance = hostinger_api.BillingSubscriptionsApi(api_client)
190+
subscription_id = 'Cxy353Uhl1xC54pG6' # str | Subscription ID
191+
192+
try:
193+
# Enable auto-renewal
194+
api_response = api_instance.enable_auto_renewal_v1(subscription_id)
195+
print("The response of BillingSubscriptionsApi->enable_auto_renewal_v1:\n")
196+
pprint(api_response)
197+
except Exception as e:
198+
print("Exception when calling BillingSubscriptionsApi->enable_auto_renewal_v1: %s\n" % e)
199+
```
200+
201+
202+
203+
### Parameters
204+
205+
206+
Name | Type | Description | Notes
207+
------------- | ------------- | ------------- | -------------
208+
**subscription_id** | **str**| Subscription ID |
209+
210+
### Return type
211+
212+
[**BillingV1SubscriptionSubscriptionResource**](BillingV1SubscriptionSubscriptionResource.md)
213+
214+
### Authorization
215+
216+
[apiToken](../README.md#apiToken)
217+
218+
### HTTP request headers
219+
220+
- **Content-Type**: Not defined
221+
- **Accept**: application/json
222+
223+
### HTTP response details
224+
225+
| Status code | Description | Response headers |
226+
|-------------|-------------|------------------|
227+
**200** | Success response | - |
228+
**401** | Unauthenticated response | - |
229+
**500** | Error response | - |
230+
231+
[[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)
232+
87233
# **get_subscription_list_v1**
88234
> List[BillingV1SubscriptionSubscriptionResource] get_subscription_list_v1()
89235

hostinger_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"""
66
Hostinger API Python SDK
77
8-
API Version: 0.1.7
8+
API Version: 0.1.16
99
1010
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
1111
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1212
""" # noqa: E501
1313

1414

15-
__version__ = "0.0.17"
15+
__version__ = "0.0.19"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.billing_catalog_api import BillingCatalogApi

hostinger_api/api/billing_catalog_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 0.1.7
6+
API Version: 0.1.16
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

hostinger_api/api/billing_orders_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 0.1.7
6+
API Version: 0.1.16
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

hostinger_api/api/billing_payment_methods_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 0.1.7
6+
API Version: 0.1.16
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

0 commit comments

Comments
 (0)