Skip to content

Commit f5bef1e

Browse files
committed
build: update sdk to v0.8.8 using openapi-generator v7.0.1
Signed-off-by: Kush Sharma <[email protected]>
1 parent 20260f5 commit f5bef1e

File tree

509 files changed

+26349
-52382
lines changed

Some content is hidden

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

509 files changed

+26349
-52382
lines changed

Diff for: .openapi-generator/FILES

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.gitlab-ci.yml
44
.travis.yml
55
README.md
6+
docs/AdminServiceDelegatedCheckoutRequest.md
67
docs/AuditLogApi.md
78
docs/AuthnApi.md
89
docs/AuthzApi.md
@@ -104,6 +105,7 @@ docs/V1beta1CreateServiceUserResponse.md
104105
docs/V1beta1CreateServiceUserSecretResponse.md
105106
docs/V1beta1CreateUserPreferencesResponse.md
106107
docs/V1beta1CreateUserResponse.md
108+
docs/V1beta1DelegatedCheckoutResponse.md
107109
docs/V1beta1DescribePreferencesResponse.md
108110
docs/V1beta1Domain.md
109111
docs/V1beta1Feature.md
@@ -169,6 +171,7 @@ docs/V1beta1ListOrganizationsByUserResponse.md
169171
docs/V1beta1ListOrganizationsResponse.md
170172
docs/V1beta1ListPermissionsResponse.md
171173
docs/V1beta1ListPlansResponse.md
174+
docs/V1beta1ListPlatformUsersResponse.md
172175
docs/V1beta1ListPoliciesResponse.md
173176
docs/V1beta1ListPreferencesResponse.md
174177
docs/V1beta1ListProjectAdminsResponse.md
@@ -274,6 +277,7 @@ frontier_api/api_response.py
274277
frontier_api/configuration.py
275278
frontier_api/exceptions.py
276279
frontier_api/models/__init__.py
280+
frontier_api/models/admin_service_delegated_checkout_request.py
277281
frontier_api/models/billing_account_address.py
278282
frontier_api/models/billing_account_balance.py
279283
frontier_api/models/frontier_service_add_group_users_request.py
@@ -350,6 +354,7 @@ frontier_api/models/v1beta1_create_service_user_response.py
350354
frontier_api/models/v1beta1_create_service_user_secret_response.py
351355
frontier_api/models/v1beta1_create_user_preferences_response.py
352356
frontier_api/models/v1beta1_create_user_response.py
357+
frontier_api/models/v1beta1_delegated_checkout_response.py
353358
frontier_api/models/v1beta1_describe_preferences_response.py
354359
frontier_api/models/v1beta1_domain.py
355360
frontier_api/models/v1beta1_feature.py
@@ -415,6 +420,7 @@ frontier_api/models/v1beta1_list_organizations_by_user_response.py
415420
frontier_api/models/v1beta1_list_organizations_response.py
416421
frontier_api/models/v1beta1_list_permissions_response.py
417422
frontier_api/models/v1beta1_list_plans_response.py
423+
frontier_api/models/v1beta1_list_platform_users_response.py
418424
frontier_api/models/v1beta1_list_policies_response.py
419425
frontier_api/models/v1beta1_list_preferences_response.py
420426
frontier_api/models/v1beta1_list_project_admins_response.py
@@ -496,6 +502,7 @@ setup.cfg
496502
setup.py
497503
test-requirements.txt
498504
test/__init__.py
505+
test/test_admin_service_delegated_checkout_request.py
499506
test/test_audit_log_api.py
500507
test/test_authn_api.py
501508
test/test_authz_api.py
@@ -597,6 +604,7 @@ test/test_v1beta1_create_service_user_response.py
597604
test/test_v1beta1_create_service_user_secret_response.py
598605
test/test_v1beta1_create_user_preferences_response.py
599606
test/test_v1beta1_create_user_response.py
607+
test/test_v1beta1_delegated_checkout_response.py
600608
test/test_v1beta1_describe_preferences_response.py
601609
test/test_v1beta1_domain.py
602610
test/test_v1beta1_feature.py
@@ -662,6 +670,7 @@ test/test_v1beta1_list_organizations_by_user_response.py
662670
test/test_v1beta1_list_organizations_response.py
663671
test/test_v1beta1_list_permissions_response.py
664672
test/test_v1beta1_list_plans_response.py
673+
test/test_v1beta1_list_platform_users_response.py
665674
test/test_v1beta1_list_policies_response.py
666675
test/test_v1beta1_list_preferences_response.py
667676
test/test_v1beta1_list_project_admins_response.py

Diff for: .openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.1.0
1+
7.0.1

Diff for: Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FRONTIER_COMMIT := df8151fb7b24a0c2f2072257bd82516b816cdd30
1+
FRONTIER_COMMIT := 553c3384828abfc7fa68d67fd04ac0b14520cb0a
22
.PHONY: clean genclient genspec
33

44
genclient: clean genspec ## Generate the client using openapi-generator
@@ -23,3 +23,9 @@ genspec: ## Generate the openapi v3 spec using raystack/frontier generated v2 sp
2323
@curl -X 'GET' \
2424
'https://converter.swagger.io/api/convert?url=https%3A%2F%2Fraw.githubusercontent.com%2Fraystack%2Ffrontier%2F${FRONTIER_COMMIT}%2Fproto%2Fapidocs.swagger.yaml' \
2525
-H 'accept: application/json' > ./etc/openapi.json
26+
27+
install-openapi-generator: ## Install openapi-generator
28+
@echo " > installing openapi-generator"
29+
@curl https://raw.githubusercontent.com/Homebrew/homebrew-core/73338e79c4dffa794560535b642a2e0eccd78a9b/Formula/o/openapi-generator.rb > ./openapi-generator.rb
30+
@brew install ./openapi-generator.rb
31+
@rm ./openapi-generator.rb

Diff for: README.md

+5
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Class | Method | HTTP request | Description
119119
*BillingApi* | [**frontier_service_get_billing_balance**](docs/BillingApi.md#frontier_service_get_billing_balance) | **GET** /v1beta1/organizations/{orgId}/billing/{id}/balance | Get billing balance
120120
*BillingApi* | [**frontier_service_list_billing_accounts**](docs/BillingApi.md#frontier_service_list_billing_accounts) | **GET** /v1beta1/organizations/{orgId}/billing | List billing accounts
121121
*BillingApi* | [**frontier_service_update_billing_account**](docs/BillingApi.md#frontier_service_update_billing_account) | **PUT** /v1beta1/organizations/{orgId}/billing/{id} | Update billing account
122+
*CheckoutApi* | [**admin_service_delegated_checkout**](docs/CheckoutApi.md#admin_service_delegated_checkout) | **POST** /v1beta1/admin/organizations/{orgId}/billing/{billingId}/checkouts | Checkout a feature or subscription
122123
*CheckoutApi* | [**frontier_service_create_checkout**](docs/CheckoutApi.md#frontier_service_create_checkout) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | Checkout a feature or subscription
123124
*CheckoutApi* | [**frontier_service_list_checkouts**](docs/CheckoutApi.md#frontier_service_list_checkouts) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | List checkouts
124125
*EntitlementApi* | [**frontier_service_check_feature_entitlement**](docs/EntitlementApi.md#frontier_service_check_feature_entitlement) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/check | Check entitlement
@@ -179,6 +180,7 @@ Class | Method | HTTP request | Description
179180
*PlanApi* | [**frontier_service_list_plans**](docs/PlanApi.md#frontier_service_list_plans) | **GET** /v1beta1/billing/plans | List plans
180181
*PlanApi* | [**frontier_service_update_plan**](docs/PlanApi.md#frontier_service_update_plan) | **PUT** /v1beta1/billing/plans/{id} | Update plan
181182
*PlatformApi* | [**admin_service_add_platform_user**](docs/PlatformApi.md#admin_service_add_platform_user) | **POST** /v1beta1/admin/platform/users | Add platform user
183+
*PlatformApi* | [**admin_service_list_platform_users**](docs/PlatformApi.md#admin_service_list_platform_users) | **GET** /v1beta1/admin/platform/users | List platform users
182184
*PolicyApi* | [**frontier_service_create_policy**](docs/PolicyApi.md#frontier_service_create_policy) | **POST** /v1beta1/policies | Create policy
183185
*PolicyApi* | [**frontier_service_delete_policy**](docs/PolicyApi.md#frontier_service_delete_policy) | **DELETE** /v1beta1/policies/{id} | Delete Policy
184186
*PolicyApi* | [**frontier_service_get_policy**](docs/PolicyApi.md#frontier_service_get_policy) | **GET** /v1beta1/policies/{id} | Get policy
@@ -266,6 +268,7 @@ Class | Method | HTTP request | Description
266268

267269
## Documentation For Models
268270

271+
- [AdminServiceDelegatedCheckoutRequest](docs/AdminServiceDelegatedCheckoutRequest.md)
269272
- [BillingAccountAddress](docs/BillingAccountAddress.md)
270273
- [BillingAccountBalance](docs/BillingAccountBalance.md)
271274
- [FrontierServiceAddGroupUsersRequest](docs/FrontierServiceAddGroupUsersRequest.md)
@@ -342,6 +345,7 @@ Class | Method | HTTP request | Description
342345
- [V1beta1CreateServiceUserSecretResponse](docs/V1beta1CreateServiceUserSecretResponse.md)
343346
- [V1beta1CreateUserPreferencesResponse](docs/V1beta1CreateUserPreferencesResponse.md)
344347
- [V1beta1CreateUserResponse](docs/V1beta1CreateUserResponse.md)
348+
- [V1beta1DelegatedCheckoutResponse](docs/V1beta1DelegatedCheckoutResponse.md)
345349
- [V1beta1DescribePreferencesResponse](docs/V1beta1DescribePreferencesResponse.md)
346350
- [V1beta1Domain](docs/V1beta1Domain.md)
347351
- [V1beta1Feature](docs/V1beta1Feature.md)
@@ -407,6 +411,7 @@ Class | Method | HTTP request | Description
407411
- [V1beta1ListOrganizationsResponse](docs/V1beta1ListOrganizationsResponse.md)
408412
- [V1beta1ListPermissionsResponse](docs/V1beta1ListPermissionsResponse.md)
409413
- [V1beta1ListPlansResponse](docs/V1beta1ListPlansResponse.md)
414+
- [V1beta1ListPlatformUsersResponse](docs/V1beta1ListPlatformUsersResponse.md)
410415
- [V1beta1ListPoliciesResponse](docs/V1beta1ListPoliciesResponse.md)
411416
- [V1beta1ListPreferencesResponse](docs/V1beta1ListPreferencesResponse.md)
412417
- [V1beta1ListProjectAdminsResponse](docs/V1beta1ListProjectAdminsResponse.md)

Diff for: docs/AdminServiceDelegatedCheckoutRequest.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# AdminServiceDelegatedCheckoutRequest
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**subscription_body** | [**V1beta1CheckoutSubscriptionBody**](V1beta1CheckoutSubscriptionBody.md) | | [optional]
8+
**feature_body** | [**V1beta1CheckoutFeatureBody**](V1beta1CheckoutFeatureBody.md) | | [optional]
9+
10+
## Example
11+
12+
```python
13+
from frontier_api.models.admin_service_delegated_checkout_request import AdminServiceDelegatedCheckoutRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of AdminServiceDelegatedCheckoutRequest from a JSON string
18+
admin_service_delegated_checkout_request_instance = AdminServiceDelegatedCheckoutRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print AdminServiceDelegatedCheckoutRequest.to_json()
21+
22+
# convert the object into a dict
23+
admin_service_delegated_checkout_request_dict = admin_service_delegated_checkout_request_instance.to_dict()
24+
# create an instance of AdminServiceDelegatedCheckoutRequest from a dict
25+
admin_service_delegated_checkout_request_form_dict = admin_service_delegated_checkout_request.from_dict(admin_service_delegated_checkout_request_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

Diff for: docs/CheckoutApi.md

+90
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,100 @@ All URIs are relative to *http://127.0.0.1:7400*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**admin_service_delegated_checkout**](CheckoutApi.md#admin_service_delegated_checkout) | **POST** /v1beta1/admin/organizations/{orgId}/billing/{billingId}/checkouts | Checkout a feature or subscription
78
[**frontier_service_create_checkout**](CheckoutApi.md#frontier_service_create_checkout) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | Checkout a feature or subscription
89
[**frontier_service_list_checkouts**](CheckoutApi.md#frontier_service_list_checkouts) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | List checkouts
910

1011

12+
# **admin_service_delegated_checkout**
13+
> V1beta1DelegatedCheckoutResponse admin_service_delegated_checkout(org_id, billing_id, body)
14+
15+
Checkout a feature or subscription
16+
17+
Checkout a feature to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
18+
19+
### Example
20+
21+
* Basic Authentication (Basic):
22+
```python
23+
import time
24+
import os
25+
import frontier_api
26+
from frontier_api.models.admin_service_delegated_checkout_request import AdminServiceDelegatedCheckoutRequest
27+
from frontier_api.models.v1beta1_delegated_checkout_response import V1beta1DelegatedCheckoutResponse
28+
from frontier_api.rest import ApiException
29+
from pprint import pprint
30+
31+
# Defining the host is optional and defaults to http://127.0.0.1:7400
32+
# See configuration.py for a list of all supported configuration parameters.
33+
configuration = frontier_api.Configuration(
34+
host = "http://127.0.0.1:7400"
35+
)
36+
37+
# The client must configure the authentication and authorization parameters
38+
# in accordance with the API server security policy.
39+
# Examples for each auth method are provided below, use the example that
40+
# satisfies your auth use case.
41+
42+
# Configure HTTP basic authorization: Basic
43+
configuration = frontier_api.Configuration(
44+
username = os.environ["USERNAME"],
45+
password = os.environ["PASSWORD"]
46+
)
47+
48+
# Enter a context with an instance of the API client
49+
with frontier_api.ApiClient(configuration) as api_client:
50+
# Create an instance of the API class
51+
api_instance = frontier_api.CheckoutApi(api_client)
52+
org_id = 'org_id_example' # str |
53+
billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for
54+
body = frontier_api.AdminServiceDelegatedCheckoutRequest() # AdminServiceDelegatedCheckoutRequest |
55+
56+
try:
57+
# Checkout a feature or subscription
58+
api_response = api_instance.admin_service_delegated_checkout(org_id, billing_id, body)
59+
print("The response of CheckoutApi->admin_service_delegated_checkout:\n")
60+
pprint(api_response)
61+
except Exception as e:
62+
print("Exception when calling CheckoutApi->admin_service_delegated_checkout: %s\n" % e)
63+
```
64+
65+
66+
67+
### Parameters
68+
69+
Name | Type | Description | Notes
70+
------------- | ------------- | ------------- | -------------
71+
**org_id** | **str**| |
72+
**billing_id** | **str**| ID of the billing account to update the subscription for |
73+
**body** | [**AdminServiceDelegatedCheckoutRequest**](AdminServiceDelegatedCheckoutRequest.md)| |
74+
75+
### Return type
76+
77+
[**V1beta1DelegatedCheckoutResponse**](V1beta1DelegatedCheckoutResponse.md)
78+
79+
### Authorization
80+
81+
[Basic](../README.md#Basic)
82+
83+
### HTTP request headers
84+
85+
- **Content-Type**: application/json
86+
- **Accept**: application/json
87+
88+
### HTTP response details
89+
| Status code | Description | Response headers |
90+
|-------------|-------------|------------------|
91+
**200** | A successful response. | - |
92+
**400** | Bad Request - The request was malformed or contained invalid parameters. | - |
93+
**401** | Unauthorized - Authentication is required | - |
94+
**403** | Forbidden - User does not have permission to access the resource | - |
95+
**404** | Not Found - The requested resource was not found | - |
96+
**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - |
97+
**0** | An unexpected error response. | - |
98+
99+
[[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)
100+
11101
# **frontier_service_create_checkout**
12102
> V1beta1CreateCheckoutResponse frontier_service_create_checkout(org_id, billing_id, body)
13103

Diff for: docs/GroupApi.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ Name | Type | Description | Notes
712712
[[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)
713713

714714
# **frontier_service_list_organization_groups**
715-
> V1beta1ListOrganizationGroupsResponse frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members)
715+
> V1beta1ListOrganizationGroupsResponse frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members, with_member_count=with_member_count)
716716
717717
List organization groups
718718

@@ -754,10 +754,11 @@ with frontier_api.ApiClient(configuration) as api_client:
754754
state = 'state_example' # str | The state of the group to filter by. It can be enabled or disabled. (optional)
755755
group_ids = ['group_ids_example'] # List[str] | (optional)
756756
with_members = True # bool | (optional)
757+
with_member_count = True # bool | (optional)
757758

758759
try:
759760
# List organization groups
760-
api_response = api_instance.frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members)
761+
api_response = api_instance.frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members, with_member_count=with_member_count)
761762
print("The response of GroupApi->frontier_service_list_organization_groups:\n")
762763
pprint(api_response)
763764
except Exception as e:
@@ -774,6 +775,7 @@ Name | Type | Description | Notes
774775
**state** | **str**| The state of the group to filter by. It can be enabled or disabled. | [optional]
775776
**group_ids** | [**List[str]**](str.md)| | [optional]
776777
**with_members** | **bool**| | [optional]
778+
**with_member_count** | **bool**| | [optional]
777779

778780
### Return type
779781

Diff for: docs/OrganizationApi.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ Name | Type | Description | Notes
15641564
[[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)
15651565

15661566
# **frontier_service_list_organization_projects**
1567-
> V1beta1ListOrganizationProjectsResponse frontier_service_list_organization_projects(id, state=state)
1567+
> V1beta1ListOrganizationProjectsResponse frontier_service_list_organization_projects(id, state=state, with_member_count=with_member_count)
15681568
15691569
Get organization projects
15701570

@@ -1604,10 +1604,11 @@ with frontier_api.ApiClient(configuration) as api_client:
16041604
api_instance = frontier_api.OrganizationApi(api_client)
16051605
id = 'id_example' # str |
16061606
state = 'state_example' # str | Filter projects by state. If not specified, all projects are returned. <br/> *Possible values:* `enabled` or `disabled` (optional)
1607+
with_member_count = True # bool | (optional)
16071608

16081609
try:
16091610
# Get organization projects
1610-
api_response = api_instance.frontier_service_list_organization_projects(id, state=state)
1611+
api_response = api_instance.frontier_service_list_organization_projects(id, state=state, with_member_count=with_member_count)
16111612
print("The response of OrganizationApi->frontier_service_list_organization_projects:\n")
16121613
pprint(api_response)
16131614
except Exception as e:
@@ -1622,6 +1623,7 @@ Name | Type | Description | Notes
16221623
------------- | ------------- | ------------- | -------------
16231624
**id** | **str**| |
16241625
**state** | **str**| Filter projects by state. If not specified, all projects are returned. &lt;br/&gt; *Possible values:* &#x60;enabled&#x60; or &#x60;disabled&#x60; | [optional]
1626+
**with_member_count** | **bool**| | [optional]
16251627

16261628
### Return type
16271629

0 commit comments

Comments
 (0)