Skip to content

Commit

Permalink
build: update sdk to v0.8.8 using openapi-generator v7.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed Dec 18, 2023
1 parent 20260f5 commit f5bef1e
Show file tree
Hide file tree
Showing 509 changed files with 26,349 additions and 52,382 deletions.
9 changes: 9 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.gitlab-ci.yml
.travis.yml
README.md
docs/AdminServiceDelegatedCheckoutRequest.md
docs/AuditLogApi.md
docs/AuthnApi.md
docs/AuthzApi.md
Expand Down Expand Up @@ -104,6 +105,7 @@ docs/V1beta1CreateServiceUserResponse.md
docs/V1beta1CreateServiceUserSecretResponse.md
docs/V1beta1CreateUserPreferencesResponse.md
docs/V1beta1CreateUserResponse.md
docs/V1beta1DelegatedCheckoutResponse.md
docs/V1beta1DescribePreferencesResponse.md
docs/V1beta1Domain.md
docs/V1beta1Feature.md
Expand Down Expand Up @@ -169,6 +171,7 @@ docs/V1beta1ListOrganizationsByUserResponse.md
docs/V1beta1ListOrganizationsResponse.md
docs/V1beta1ListPermissionsResponse.md
docs/V1beta1ListPlansResponse.md
docs/V1beta1ListPlatformUsersResponse.md
docs/V1beta1ListPoliciesResponse.md
docs/V1beta1ListPreferencesResponse.md
docs/V1beta1ListProjectAdminsResponse.md
Expand Down Expand Up @@ -274,6 +277,7 @@ frontier_api/api_response.py
frontier_api/configuration.py
frontier_api/exceptions.py
frontier_api/models/__init__.py
frontier_api/models/admin_service_delegated_checkout_request.py
frontier_api/models/billing_account_address.py
frontier_api/models/billing_account_balance.py
frontier_api/models/frontier_service_add_group_users_request.py
Expand Down Expand Up @@ -350,6 +354,7 @@ frontier_api/models/v1beta1_create_service_user_response.py
frontier_api/models/v1beta1_create_service_user_secret_response.py
frontier_api/models/v1beta1_create_user_preferences_response.py
frontier_api/models/v1beta1_create_user_response.py
frontier_api/models/v1beta1_delegated_checkout_response.py
frontier_api/models/v1beta1_describe_preferences_response.py
frontier_api/models/v1beta1_domain.py
frontier_api/models/v1beta1_feature.py
Expand Down Expand Up @@ -415,6 +420,7 @@ frontier_api/models/v1beta1_list_organizations_by_user_response.py
frontier_api/models/v1beta1_list_organizations_response.py
frontier_api/models/v1beta1_list_permissions_response.py
frontier_api/models/v1beta1_list_plans_response.py
frontier_api/models/v1beta1_list_platform_users_response.py
frontier_api/models/v1beta1_list_policies_response.py
frontier_api/models/v1beta1_list_preferences_response.py
frontier_api/models/v1beta1_list_project_admins_response.py
Expand Down Expand Up @@ -496,6 +502,7 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_admin_service_delegated_checkout_request.py
test/test_audit_log_api.py
test/test_authn_api.py
test/test_authz_api.py
Expand Down Expand Up @@ -597,6 +604,7 @@ test/test_v1beta1_create_service_user_response.py
test/test_v1beta1_create_service_user_secret_response.py
test/test_v1beta1_create_user_preferences_response.py
test/test_v1beta1_create_user_response.py
test/test_v1beta1_delegated_checkout_response.py
test/test_v1beta1_describe_preferences_response.py
test/test_v1beta1_domain.py
test/test_v1beta1_feature.py
Expand Down Expand Up @@ -662,6 +670,7 @@ test/test_v1beta1_list_organizations_by_user_response.py
test/test_v1beta1_list_organizations_response.py
test/test_v1beta1_list_permissions_response.py
test/test_v1beta1_list_plans_response.py
test/test_v1beta1_list_platform_users_response.py
test/test_v1beta1_list_policies_response.py
test/test_v1beta1_list_preferences_response.py
test/test_v1beta1_list_project_admins_response.py
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.0.1
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FRONTIER_COMMIT := df8151fb7b24a0c2f2072257bd82516b816cdd30
FRONTIER_COMMIT := 553c3384828abfc7fa68d67fd04ac0b14520cb0a
.PHONY: clean genclient genspec

genclient: clean genspec ## Generate the client using openapi-generator
Expand All @@ -23,3 +23,9 @@ genspec: ## Generate the openapi v3 spec using raystack/frontier generated v2 sp
@curl -X 'GET' \
'https://converter.swagger.io/api/convert?url=https%3A%2F%2Fraw.githubusercontent.com%2Fraystack%2Ffrontier%2F${FRONTIER_COMMIT}%2Fproto%2Fapidocs.swagger.yaml' \
-H 'accept: application/json' > ./etc/openapi.json

install-openapi-generator: ## Install openapi-generator
@echo " > installing openapi-generator"
@curl https://raw.githubusercontent.com/Homebrew/homebrew-core/73338e79c4dffa794560535b642a2e0eccd78a9b/Formula/o/openapi-generator.rb > ./openapi-generator.rb
@brew install ./openapi-generator.rb
@rm ./openapi-generator.rb
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Class | Method | HTTP request | Description
*BillingApi* | [**frontier_service_get_billing_balance**](docs/BillingApi.md#frontier_service_get_billing_balance) | **GET** /v1beta1/organizations/{orgId}/billing/{id}/balance | Get billing balance
*BillingApi* | [**frontier_service_list_billing_accounts**](docs/BillingApi.md#frontier_service_list_billing_accounts) | **GET** /v1beta1/organizations/{orgId}/billing | List billing accounts
*BillingApi* | [**frontier_service_update_billing_account**](docs/BillingApi.md#frontier_service_update_billing_account) | **PUT** /v1beta1/organizations/{orgId}/billing/{id} | Update billing account
*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
*CheckoutApi* | [**frontier_service_create_checkout**](docs/CheckoutApi.md#frontier_service_create_checkout) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | Checkout a feature or subscription
*CheckoutApi* | [**frontier_service_list_checkouts**](docs/CheckoutApi.md#frontier_service_list_checkouts) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | List checkouts
*EntitlementApi* | [**frontier_service_check_feature_entitlement**](docs/EntitlementApi.md#frontier_service_check_feature_entitlement) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/check | Check entitlement
Expand Down Expand Up @@ -179,6 +180,7 @@ Class | Method | HTTP request | Description
*PlanApi* | [**frontier_service_list_plans**](docs/PlanApi.md#frontier_service_list_plans) | **GET** /v1beta1/billing/plans | List plans
*PlanApi* | [**frontier_service_update_plan**](docs/PlanApi.md#frontier_service_update_plan) | **PUT** /v1beta1/billing/plans/{id} | Update plan
*PlatformApi* | [**admin_service_add_platform_user**](docs/PlatformApi.md#admin_service_add_platform_user) | **POST** /v1beta1/admin/platform/users | Add platform user
*PlatformApi* | [**admin_service_list_platform_users**](docs/PlatformApi.md#admin_service_list_platform_users) | **GET** /v1beta1/admin/platform/users | List platform users
*PolicyApi* | [**frontier_service_create_policy**](docs/PolicyApi.md#frontier_service_create_policy) | **POST** /v1beta1/policies | Create policy
*PolicyApi* | [**frontier_service_delete_policy**](docs/PolicyApi.md#frontier_service_delete_policy) | **DELETE** /v1beta1/policies/{id} | Delete Policy
*PolicyApi* | [**frontier_service_get_policy**](docs/PolicyApi.md#frontier_service_get_policy) | **GET** /v1beta1/policies/{id} | Get policy
Expand Down Expand Up @@ -266,6 +268,7 @@ Class | Method | HTTP request | Description

## Documentation For Models

- [AdminServiceDelegatedCheckoutRequest](docs/AdminServiceDelegatedCheckoutRequest.md)
- [BillingAccountAddress](docs/BillingAccountAddress.md)
- [BillingAccountBalance](docs/BillingAccountBalance.md)
- [FrontierServiceAddGroupUsersRequest](docs/FrontierServiceAddGroupUsersRequest.md)
Expand Down Expand Up @@ -342,6 +345,7 @@ Class | Method | HTTP request | Description
- [V1beta1CreateServiceUserSecretResponse](docs/V1beta1CreateServiceUserSecretResponse.md)
- [V1beta1CreateUserPreferencesResponse](docs/V1beta1CreateUserPreferencesResponse.md)
- [V1beta1CreateUserResponse](docs/V1beta1CreateUserResponse.md)
- [V1beta1DelegatedCheckoutResponse](docs/V1beta1DelegatedCheckoutResponse.md)
- [V1beta1DescribePreferencesResponse](docs/V1beta1DescribePreferencesResponse.md)
- [V1beta1Domain](docs/V1beta1Domain.md)
- [V1beta1Feature](docs/V1beta1Feature.md)
Expand Down Expand Up @@ -407,6 +411,7 @@ Class | Method | HTTP request | Description
- [V1beta1ListOrganizationsResponse](docs/V1beta1ListOrganizationsResponse.md)
- [V1beta1ListPermissionsResponse](docs/V1beta1ListPermissionsResponse.md)
- [V1beta1ListPlansResponse](docs/V1beta1ListPlansResponse.md)
- [V1beta1ListPlatformUsersResponse](docs/V1beta1ListPlatformUsersResponse.md)
- [V1beta1ListPoliciesResponse](docs/V1beta1ListPoliciesResponse.md)
- [V1beta1ListPreferencesResponse](docs/V1beta1ListPreferencesResponse.md)
- [V1beta1ListProjectAdminsResponse](docs/V1beta1ListProjectAdminsResponse.md)
Expand Down
29 changes: 29 additions & 0 deletions docs/AdminServiceDelegatedCheckoutRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# AdminServiceDelegatedCheckoutRequest


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**subscription_body** | [**V1beta1CheckoutSubscriptionBody**](V1beta1CheckoutSubscriptionBody.md) | | [optional]
**feature_body** | [**V1beta1CheckoutFeatureBody**](V1beta1CheckoutFeatureBody.md) | | [optional]

## Example

```python
from frontier_api.models.admin_service_delegated_checkout_request import AdminServiceDelegatedCheckoutRequest

# TODO update the JSON string below
json = "{}"
# create an instance of AdminServiceDelegatedCheckoutRequest from a JSON string
admin_service_delegated_checkout_request_instance = AdminServiceDelegatedCheckoutRequest.from_json(json)
# print the JSON string representation of the object
print AdminServiceDelegatedCheckoutRequest.to_json()

# convert the object into a dict
admin_service_delegated_checkout_request_dict = admin_service_delegated_checkout_request_instance.to_dict()
# create an instance of AdminServiceDelegatedCheckoutRequest from a dict
admin_service_delegated_checkout_request_form_dict = admin_service_delegated_checkout_request.from_dict(admin_service_delegated_checkout_request_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


90 changes: 90 additions & 0 deletions docs/CheckoutApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,100 @@ All URIs are relative to *http://127.0.0.1:7400*

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


# **admin_service_delegated_checkout**
> V1beta1DelegatedCheckoutResponse admin_service_delegated_checkout(org_id, billing_id, body)
Checkout a feature or subscription

Checkout a feature to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.

### Example

* Basic Authentication (Basic):
```python
import time
import os
import frontier_api
from frontier_api.models.admin_service_delegated_checkout_request import AdminServiceDelegatedCheckoutRequest
from frontier_api.models.v1beta1_delegated_checkout_response import V1beta1DelegatedCheckoutResponse
from frontier_api.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://127.0.0.1:7400
# See configuration.py for a list of all supported configuration parameters.
configuration = frontier_api.Configuration(
host = "http://127.0.0.1:7400"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure HTTP basic authorization: Basic
configuration = frontier_api.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)

# Enter a context with an instance of the API client
with frontier_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = frontier_api.CheckoutApi(api_client)
org_id = 'org_id_example' # str |
billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for
body = frontier_api.AdminServiceDelegatedCheckoutRequest() # AdminServiceDelegatedCheckoutRequest |

try:
# Checkout a feature or subscription
api_response = api_instance.admin_service_delegated_checkout(org_id, billing_id, body)
print("The response of CheckoutApi->admin_service_delegated_checkout:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CheckoutApi->admin_service_delegated_checkout: %s\n" % e)
```



### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**org_id** | **str**| |
**billing_id** | **str**| ID of the billing account to update the subscription for |
**body** | [**AdminServiceDelegatedCheckoutRequest**](AdminServiceDelegatedCheckoutRequest.md)| |

### Return type

[**V1beta1DelegatedCheckoutResponse**](V1beta1DelegatedCheckoutResponse.md)

### Authorization

[Basic](../README.md#Basic)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A successful response. | - |
**400** | Bad Request - The request was malformed or contained invalid parameters. | - |
**401** | Unauthorized - Authentication is required | - |
**403** | Forbidden - User does not have permission to access the resource | - |
**404** | Not Found - The requested resource was not found | - |
**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - |
**0** | An unexpected error response. | - |

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

# **frontier_service_create_checkout**
> V1beta1CreateCheckoutResponse frontier_service_create_checkout(org_id, billing_id, body)
Expand Down
6 changes: 4 additions & 2 deletions docs/GroupApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ Name | Type | Description | Notes
[[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)

# **frontier_service_list_organization_groups**
> V1beta1ListOrganizationGroupsResponse frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members)
> V1beta1ListOrganizationGroupsResponse frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members, with_member_count=with_member_count)
List organization groups

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

try:
# List organization groups
api_response = api_instance.frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members)
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)
print("The response of GroupApi->frontier_service_list_organization_groups:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -774,6 +775,7 @@ Name | Type | Description | Notes
**state** | **str**| The state of the group to filter by. It can be enabled or disabled. | [optional]
**group_ids** | [**List[str]**](str.md)| | [optional]
**with_members** | **bool**| | [optional]
**with_member_count** | **bool**| | [optional]

### Return type

Expand Down
6 changes: 4 additions & 2 deletions docs/OrganizationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ Name | Type | Description | Notes
[[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)

# **frontier_service_list_organization_projects**
> V1beta1ListOrganizationProjectsResponse frontier_service_list_organization_projects(id, state=state)
> V1beta1ListOrganizationProjectsResponse frontier_service_list_organization_projects(id, state=state, with_member_count=with_member_count)
Get organization projects

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

try:
# Get organization projects
api_response = api_instance.frontier_service_list_organization_projects(id, state=state)
api_response = api_instance.frontier_service_list_organization_projects(id, state=state, with_member_count=with_member_count)
print("The response of OrganizationApi->frontier_service_list_organization_projects:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -1622,6 +1623,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| |
**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]
**with_member_count** | **bool**| | [optional]

### Return type

Expand Down
Loading

0 comments on commit f5bef1e

Please sign in to comment.