Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade SDK to v0.47.0 #26

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"info_version": "2",
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-09-05 20:33:50.273864",
"apigentools_version": "1.6.6",
"regenerated": "2023-12-30 12:32:29.313885",
"spec_repo_commit": null
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pollination Server OpenAPI Definition

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.43.0
- API version: 0.47.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://pollination.cloud](https://pollination.cloud)
Expand Down
237 changes: 4 additions & 233 deletions docs/APITokensApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,53 +19,6 @@ Create a new API token

### Example

* Api Key Authentication (APIKeyAuth):
```python
from __future__ import print_function
import time
import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

auth = pollination_sdk.UserApi()
api_token = pollination_sdk.LoginDto(
api_token=API_TOKEN
)

auth_response = auth.login(api_token)

# Configure Bearer authorization (JWT): JWTAuth
configuration = pollination_sdk.Configuration(
access_token=auth_response.access_token
)

# Enter a context with an instance of the API client
with pollination_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pollination_sdk.APITokensApi(api_client)
api_token_create = pollination_sdk.APITokenCreate() # APITokenCreate |

try:
# Create a new API token
api_response = api_instance.create_token(api_token_create)
pprint(api_response)
except ApiException as e:
print("Exception when calling APITokensApi->create_token: %s\n" % e)
```

* Bearer (JWT) Authentication (JWTAuth):
```python
from __future__ import print_function
Expand All @@ -74,16 +27,6 @@ import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

Expand Down Expand Up @@ -125,7 +68,7 @@ Name | Type | Description | Notes

### Authorization

[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth)
[JWTAuth](../README.md#JWTAuth)

### HTTP request headers

Expand All @@ -149,53 +92,6 @@ Delete a token

### Example

* Api Key Authentication (APIKeyAuth):
```python
from __future__ import print_function
import time
import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

auth = pollination_sdk.UserApi()
api_token = pollination_sdk.LoginDto(
api_token=API_TOKEN
)

auth_response = auth.login(api_token)

# Configure Bearer authorization (JWT): JWTAuth
configuration = pollination_sdk.Configuration(
access_token=auth_response.access_token
)

# Enter a context with an instance of the API client
with pollination_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pollination_sdk.APITokensApi(api_client)
token_id = 'token_id_example' # str |

try:
# Delete an API Token
api_response = api_instance.delete_token(token_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling APITokensApi->delete_token: %s\n" % e)
```

* Bearer (JWT) Authentication (JWTAuth):
```python
from __future__ import print_function
Expand All @@ -204,16 +100,6 @@ import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

Expand Down Expand Up @@ -255,7 +141,7 @@ Name | Type | Description | Notes

### Authorization

[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth)
[JWTAuth](../README.md#JWTAuth)

### HTTP request headers

Expand All @@ -279,54 +165,6 @@ List API tokens for the authenticated user

### Example

* Api Key Authentication (APIKeyAuth):
```python
from __future__ import print_function
import time
import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

auth = pollination_sdk.UserApi()
api_token = pollination_sdk.LoginDto(
api_token=API_TOKEN
)

auth_response = auth.login(api_token)

# Configure Bearer authorization (JWT): JWTAuth
configuration = pollination_sdk.Configuration(
access_token=auth_response.access_token
)

# Enter a context with an instance of the API client
with pollination_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pollination_sdk.APITokensApi(api_client)
page = 1 # int | Page number starting from 1 (optional) (default to 1)
per_page = 25 # int | Number of items per page (optional) (default to 25)

try:
# List user API tokens
api_response = api_instance.list_tokens(page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling APITokensApi->list_tokens: %s\n" % e)
```

* Bearer (JWT) Authentication (JWTAuth):
```python
from __future__ import print_function
Expand All @@ -335,16 +173,6 @@ import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

Expand Down Expand Up @@ -388,7 +216,7 @@ Name | Type | Description | Notes

### Authorization

[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth)
[JWTAuth](../README.md#JWTAuth)

### HTTP request headers

Expand All @@ -412,53 +240,6 @@ Regenerate a token

### Example

* Api Key Authentication (APIKeyAuth):
```python
from __future__ import print_function
import time
import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

auth = pollination_sdk.UserApi()
api_token = pollination_sdk.LoginDto(
api_token=API_TOKEN
)

auth_response = auth.login(api_token)

# Configure Bearer authorization (JWT): JWTAuth
configuration = pollination_sdk.Configuration(
access_token=auth_response.access_token
)

# Enter a context with an instance of the API client
with pollination_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pollination_sdk.APITokensApi(api_client)
token_id = 'token_id_example' # str |

try:
# Regenerate an API token
api_response = api_instance.regenerate_token(token_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling APITokensApi->regenerate_token: %s\n" % e)
```

* Bearer (JWT) Authentication (JWTAuth):
```python
from __future__ import print_function
Expand All @@ -467,16 +248,6 @@ import pollination_sdk
from pollination_sdk.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyAuth
configuration = pollination_sdk.Configuration(
host = "http://localhost",
api_key = {
'APIKeyAuth': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKeyAuth'] = 'Bearer'

# Retrieve a temporary Acces Token (JWT) using your API token
API_TOKEN = 'some-token-string'

Expand Down Expand Up @@ -518,7 +289,7 @@ Name | Type | Description | Notes

### Authorization

[APIKeyAuth](../README.md#APIKeyAuth), [JWTAuth](../README.md#JWTAuth)
[JWTAuth](../README.md#JWTAuth)

### HTTP request headers

Expand Down
2 changes: 2 additions & 0 deletions docs/Application.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**deployment_config** | [**DeploymentConfig**](DeploymentConfig.md) | The deployment configuration for the application | [optional]
**description** | **str** | A description of the application | [optional] [default to '']
**has_been_deployed** | **bool** | Whether or not the application has been deployed |
**id** | **str** | The application ID |
**image** | **str** | An image associated with the application | [optional] [default to 'https://picsum.photos/400']
**is_paid** | **bool** | Whether or not the application is paid | [optional] [default to False]
Expand All @@ -17,6 +18,7 @@ Name | Type | Description | Notes
**sdk** | [**SDKEnum**](SDKEnum.md) | The SDK used to build the application | [optional]
**slug** | **str** | The application name in slug format |
**source** | **str** | A link to the source code of the application | [optional]
**url** | **str** | The URL of the application deployment | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading
Loading