Skip to content

Commit

Permalink
Merge pull request #34 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update prowlarr digest to 768ce14
  • Loading branch information
devopsarr[bot] committed Oct 25, 2023
2 parents c5abd88 + 4e9a1d2 commit 1fe5186
Show file tree
Hide file tree
Showing 7 changed files with 254 additions and 178 deletions.
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ docs/PingResource.md
docs/ProviderMessage.md
docs/ProviderMessageType.md
docs/ProxyType.md
docs/QualityProfileSchemaApi.md
docs/ReleaseResource.md
docs/RuntimeMode.md
docs/SearchApi.md
Expand Down Expand Up @@ -131,7 +130,6 @@ prowlarr/api/log_file_api.py
prowlarr/api/newznab_api.py
prowlarr/api/notification_api.py
prowlarr/api/ping_api.py
prowlarr/api/quality_profile_schema_api.py
prowlarr/api/search_api.py
prowlarr/api/static_resource_api.py
prowlarr/api/system_api.py
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Class | Method | HTTP request | Description
*AppProfileApi* | [**create_app_profile**](docs/AppProfileApi.md#create_app_profile) | **POST** /api/v1/appprofile |
*AppProfileApi* | [**delete_app_profile**](docs/AppProfileApi.md#delete_app_profile) | **DELETE** /api/v1/appprofile/{id} |
*AppProfileApi* | [**get_app_profile_by_id**](docs/AppProfileApi.md#get_app_profile_by_id) | **GET** /api/v1/appprofile/{id} |
*AppProfileApi* | [**get_app_profile_schema**](docs/AppProfileApi.md#get_app_profile_schema) | **GET** /api/v1/appprofile/schema |
*AppProfileApi* | [**list_app_profile**](docs/AppProfileApi.md#list_app_profile) | **GET** /api/v1/appprofile |
*AppProfileApi* | [**update_app_profile**](docs/AppProfileApi.md#update_app_profile) | **PUT** /api/v1/appprofile/{id} |
*ApplicationApi* | [**create_applications**](docs/ApplicationApi.md#create_applications) | **POST** /api/v1/applications |
Expand Down Expand Up @@ -198,7 +199,6 @@ Class | Method | HTTP request | Description
*NotificationApi* | [**testall_notification**](docs/NotificationApi.md#testall_notification) | **POST** /api/v1/notification/testall |
*NotificationApi* | [**update_notification**](docs/NotificationApi.md#update_notification) | **PUT** /api/v1/notification/{id} |
*PingApi* | [**get_ping**](docs/PingApi.md#get_ping) | **GET** /ping |
*QualityProfileSchemaApi* | [**get_appprofile_schema**](docs/QualityProfileSchemaApi.md#get_appprofile_schema) | **GET** /api/v1/appprofile/schema |
*SearchApi* | [**create_search**](docs/SearchApi.md#create_search) | **POST** /api/v1/search |
*SearchApi* | [**create_search_bulk**](docs/SearchApi.md#create_search_bulk) | **POST** /api/v1/search/bulk |
*SearchApi* | [**list_search**](docs/SearchApi.md#list_search) | **GET** /api/v1/search |
Expand Down
119 changes: 119 additions & 0 deletions docs/AppProfileApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Method | HTTP request | Description
[**create_app_profile**](AppProfileApi.md#create_app_profile) | **POST** /api/v1/appprofile |
[**delete_app_profile**](AppProfileApi.md#delete_app_profile) | **DELETE** /api/v1/appprofile/{id} |
[**get_app_profile_by_id**](AppProfileApi.md#get_app_profile_by_id) | **GET** /api/v1/appprofile/{id} |
[**get_app_profile_schema**](AppProfileApi.md#get_app_profile_schema) | **GET** /api/v1/appprofile/schema |
[**list_app_profile**](AppProfileApi.md#list_app_profile) | **GET** /api/v1/appprofile |
[**update_app_profile**](AppProfileApi.md#update_app_profile) | **PUT** /api/v1/appprofile/{id} |

Expand Down Expand Up @@ -378,6 +379,124 @@ 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)

# **get_app_profile_schema**
> AppProfileResource get_app_profile_schema()


### Example

* Api Key Authentication (apikey):
```python
from __future__ import print_function
import time
import os
import prowlarr
from prowlarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:9696
# See configuration.py for a list of all supported configuration parameters.
configuration = prowlarr.Configuration(
host = "http://localhost:9696"
)

# 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 API key authorization: apikey
configuration.api_key['apikey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# Configure API key authorization: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'

# Enter a context with an instance of the API client
with prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.AppProfileApi(api_client)

try:
api_response = api_instance.get_app_profile_schema()
print("The response of AppProfileApi->get_app_profile_schema:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AppProfileApi->get_app_profile_schema: %s\n" % e)
```

* Api Key Authentication (X-Api-Key):
```python
from __future__ import print_function
import time
import os
import prowlarr
from prowlarr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:9696
# See configuration.py for a list of all supported configuration parameters.
configuration = prowlarr.Configuration(
host = "http://localhost:9696"
)

# 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 API key authorization: apikey
configuration.api_key['apikey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# Configure API key authorization: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'

# Enter a context with an instance of the API client
with prowlarr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = prowlarr.AppProfileApi(api_client)

try:
api_response = api_instance.get_app_profile_schema()
print("The response of AppProfileApi->get_app_profile_schema:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AppProfileApi->get_app_profile_schema: %s\n" % e)
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**AppProfileResource**](AppProfileResource.md)

### Authorization

[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Success | - |

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

# **list_app_profile**
> List[AppProfileResource] list_app_profile()
Expand Down
1 change: 0 additions & 1 deletion prowlarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
from prowlarr.api.newznab_api import NewznabApi
from prowlarr.api.notification_api import NotificationApi
from prowlarr.api.ping_api import PingApi
from prowlarr.api.quality_profile_schema_api import QualityProfileSchemaApi
from prowlarr.api.search_api import SearchApi
from prowlarr.api.static_resource_api import StaticResourceApi
from prowlarr.api.system_api import SystemApi
Expand Down
1 change: 0 additions & 1 deletion prowlarr/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from prowlarr.api.newznab_api import NewznabApi
from prowlarr.api.notification_api import NotificationApi
from prowlarr.api.ping_api import PingApi
from prowlarr.api.quality_profile_schema_api import QualityProfileSchemaApi
from prowlarr.api.search_api import SearchApi
from prowlarr.api.static_resource_api import StaticResourceApi
from prowlarr.api.system_api import SystemApi
Expand Down
134 changes: 134 additions & 0 deletions prowlarr/api/app_profile_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,140 @@ def get_app_profile_by_id_with_http_info(self, id : StrictInt, **kwargs): # noq
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

@validate_arguments
def get_app_profile_schema(self, **kwargs) -> AppProfileResource: # noqa: E501
"""get_app_profile_schema # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_app_profile_schema(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: AppProfileResource
"""
kwargs['_return_http_data_only'] = True
return self.get_app_profile_schema_with_http_info(**kwargs) # noqa: E501

@validate_arguments
def get_app_profile_schema_with_http_info(self, **kwargs): # noqa: E501
"""get_app_profile_schema # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_app_profile_schema_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
and headers
:type _return_http_data_only: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:type _preload_content: bool, optional
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
:type _request_auth: dict, optional
:type _content_type: string, optional: force content-type for the request
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(AppProfileResource, status_code(int), headers(HTTPHeaderDict))
"""

_params = locals()

_all_params = [
]
_all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout',
'_request_auth',
'_content_type',
'_headers'
]
)

# validate the arguments
for _key, _val in _params['kwargs'].items():
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method get_app_profile_schema" % _key
)
_params[_key] = _val
del _params['kwargs']

_collection_formats = {}

# process the path parameters
_path_params = {}

# process the query parameters
_query_params = []

# process the header parameters
_header_params = dict(_params.get('_headers', {}))

# process the form parameters
_form_params = []
_files = {}

# process the body parameter
_body_params = None

# set the HTTP header `Accept`
_header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# authentication setting
_auth_settings = ['apikey', 'X-Api-Key'] # noqa: E501

_response_types_map = {
'200': "AppProfileResource",
}

return self.api_client.call_api(
'/api/v1/appprofile/schema', 'GET',
_path_params,
_query_params,
_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
async_req=_params.get('async_req'),
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
_preload_content=_params.get('_preload_content', True),
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

@validate_arguments
def list_app_profile(self, **kwargs) -> List[AppProfileResource]: # noqa: E501
"""list_app_profile # noqa: E501
Expand Down
Loading

0 comments on commit 1fe5186

Please sign in to comment.