Skip to content

Commit

Permalink
feat: add response to lidarr custom format and auto tag schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
devopsarr[bot] committed Feb 24, 2024
1 parent 75c45c4 commit 7c74f71
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 92 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Class | Method | HTTP request | Description
*AutoTaggingAPI* | [**CreateAutoTagging**](docs/AutoTaggingAPI.md#createautotagging) | **Post** /api/v1/autotagging |
*AutoTaggingAPI* | [**DeleteAutoTagging**](docs/AutoTaggingAPI.md#deleteautotagging) | **Delete** /api/v1/autotagging/{id} |
*AutoTaggingAPI* | [**GetAutoTaggingById**](docs/AutoTaggingAPI.md#getautotaggingbyid) | **Get** /api/v1/autotagging/{id} |
*AutoTaggingAPI* | [**GetAutoTaggingSchema**](docs/AutoTaggingAPI.md#getautotaggingschema) | **Get** /api/v1/autotagging/schema |
*AutoTaggingAPI* | [**ListAutoTagging**](docs/AutoTaggingAPI.md#listautotagging) | **Get** /api/v1/autotagging |
*AutoTaggingAPI* | [**ListAutoTaggingSchema**](docs/AutoTaggingAPI.md#listautotaggingschema) | **Get** /api/v1/autotagging/schema |
*AutoTaggingAPI* | [**UpdateAutoTagging**](docs/AutoTaggingAPI.md#updateautotagging) | **Put** /api/v1/autotagging/{id} |
*BackupAPI* | [**CreateSystemBackupRestoreById**](docs/BackupAPI.md#createsystembackuprestorebyid) | **Post** /api/v1/system/backup/restore/{id} |
*BackupAPI* | [**CreateSystemBackupRestoreUpload**](docs/BackupAPI.md#createsystembackuprestoreupload) | **Post** /api/v1/system/backup/restore/upload |
Expand All @@ -124,8 +124,8 @@ Class | Method | HTTP request | Description
*CustomFormatAPI* | [**CreateCustomFormat**](docs/CustomFormatAPI.md#createcustomformat) | **Post** /api/v1/customformat |
*CustomFormatAPI* | [**DeleteCustomFormat**](docs/CustomFormatAPI.md#deletecustomformat) | **Delete** /api/v1/customformat/{id} |
*CustomFormatAPI* | [**GetCustomFormatById**](docs/CustomFormatAPI.md#getcustomformatbyid) | **Get** /api/v1/customformat/{id} |
*CustomFormatAPI* | [**GetCustomFormatSchema**](docs/CustomFormatAPI.md#getcustomformatschema) | **Get** /api/v1/customformat/schema |
*CustomFormatAPI* | [**ListCustomFormat**](docs/CustomFormatAPI.md#listcustomformat) | **Get** /api/v1/customformat |
*CustomFormatAPI* | [**ListCustomFormatSchema**](docs/CustomFormatAPI.md#listcustomformatschema) | **Get** /api/v1/customformat/schema |
*CustomFormatAPI* | [**UpdateCustomFormat**](docs/CustomFormatAPI.md#updatecustomformat) | **Put** /api/v1/customformat/{id} |
*CutoffAPI* | [**GetWantedCutoff**](docs/CutoffAPI.md#getwantedcutoff) | **Get** /api/v1/wanted/cutoff |
*CutoffAPI* | [**GetWantedCutoffById**](docs/CutoffAPI.md#getwantedcutoffbyid) | **Get** /api/v1/wanted/cutoff/{id} |
Expand Down
34 changes: 18 additions & 16 deletions docs/AutoTaggingAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Method | HTTP request | Description
[**CreateAutoTagging**](AutoTaggingAPI.md#CreateAutoTagging) | **Post** /api/v1/autotagging |
[**DeleteAutoTagging**](AutoTaggingAPI.md#DeleteAutoTagging) | **Delete** /api/v1/autotagging/{id} |
[**GetAutoTaggingById**](AutoTaggingAPI.md#GetAutoTaggingById) | **Get** /api/v1/autotagging/{id} |
[**GetAutoTaggingSchema**](AutoTaggingAPI.md#GetAutoTaggingSchema) | **Get** /api/v1/autotagging/schema |
[**ListAutoTagging**](AutoTaggingAPI.md#ListAutoTagging) | **Get** /api/v1/autotagging |
[**ListAutoTaggingSchema**](AutoTaggingAPI.md#ListAutoTaggingSchema) | **Get** /api/v1/autotagging/schema |
[**UpdateAutoTagging**](AutoTaggingAPI.md#UpdateAutoTagging) | **Put** /api/v1/autotagging/{id} |


Expand Down Expand Up @@ -211,9 +211,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## GetAutoTaggingSchema
## ListAutoTagging

> GetAutoTaggingSchema(ctx).Execute()
> []AutoTaggingResource ListAutoTagging(ctx).Execute()


Expand All @@ -233,11 +233,13 @@ func main() {

configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
r, err := apiClient.AutoTaggingAPI.GetAutoTaggingSchema(context.Background()).Execute()
resp, r, err := apiClient.AutoTaggingAPI.ListAutoTagging(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.GetAutoTaggingSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.ListAutoTagging``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAutoTagging`: []AutoTaggingResource
fmt.Fprintf(os.Stdout, "Response from `AutoTaggingAPI.ListAutoTagging`: %v\n", resp)
}
```

Expand All @@ -247,12 +249,12 @@ This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiGetAutoTaggingSchemaRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiListAutoTaggingRequest struct via the builder pattern


### Return type

(empty response body)
[**[]AutoTaggingResource**](AutoTaggingResource.md)

### Authorization

Expand All @@ -261,16 +263,16 @@ Other parameters are passed through a pointer to a apiGetAutoTaggingSchemaReques
### HTTP request headers

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

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


## ListAutoTagging
## ListAutoTaggingSchema

> []AutoTaggingResource ListAutoTagging(ctx).Execute()
> []AutoTaggingSpecificationSchema ListAutoTaggingSchema(ctx).Execute()


Expand All @@ -290,13 +292,13 @@ func main() {

configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AutoTaggingAPI.ListAutoTagging(context.Background()).Execute()
resp, r, err := apiClient.AutoTaggingAPI.ListAutoTaggingSchema(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.ListAutoTagging``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.ListAutoTaggingSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAutoTagging`: []AutoTaggingResource
fmt.Fprintf(os.Stdout, "Response from `AutoTaggingAPI.ListAutoTagging`: %v\n", resp)
// response from `ListAutoTaggingSchema`: []AutoTaggingSpecificationSchema
fmt.Fprintf(os.Stdout, "Response from `AutoTaggingAPI.ListAutoTaggingSchema`: %v\n", resp)
}
```

Expand All @@ -306,12 +308,12 @@ This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiListAutoTaggingRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiListAutoTaggingSchemaRequest struct via the builder pattern


### Return type

[**[]AutoTaggingResource**](AutoTaggingResource.md)
[**[]AutoTaggingSpecificationSchema**](AutoTaggingSpecificationSchema.md)

### Authorization

Expand Down
34 changes: 18 additions & 16 deletions docs/CustomFormatAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Method | HTTP request | Description
[**CreateCustomFormat**](CustomFormatAPI.md#CreateCustomFormat) | **Post** /api/v1/customformat |
[**DeleteCustomFormat**](CustomFormatAPI.md#DeleteCustomFormat) | **Delete** /api/v1/customformat/{id} |
[**GetCustomFormatById**](CustomFormatAPI.md#GetCustomFormatById) | **Get** /api/v1/customformat/{id} |
[**GetCustomFormatSchema**](CustomFormatAPI.md#GetCustomFormatSchema) | **Get** /api/v1/customformat/schema |
[**ListCustomFormat**](CustomFormatAPI.md#ListCustomFormat) | **Get** /api/v1/customformat |
[**ListCustomFormatSchema**](CustomFormatAPI.md#ListCustomFormatSchema) | **Get** /api/v1/customformat/schema |
[**UpdateCustomFormat**](CustomFormatAPI.md#UpdateCustomFormat) | **Put** /api/v1/customformat/{id} |


Expand Down Expand Up @@ -211,9 +211,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## GetCustomFormatSchema
## ListCustomFormat

> GetCustomFormatSchema(ctx).Execute()
> []CustomFormatResource ListCustomFormat(ctx).Execute()


Expand All @@ -233,11 +233,13 @@ func main() {

configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
r, err := apiClient.CustomFormatAPI.GetCustomFormatSchema(context.Background()).Execute()
resp, r, err := apiClient.CustomFormatAPI.ListCustomFormat(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.GetCustomFormatSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.ListCustomFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCustomFormat`: []CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.ListCustomFormat`: %v\n", resp)
}
```

Expand All @@ -247,12 +249,12 @@ This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiGetCustomFormatSchemaRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiListCustomFormatRequest struct via the builder pattern


### Return type

(empty response body)
[**[]CustomFormatResource**](CustomFormatResource.md)

### Authorization

Expand All @@ -261,16 +263,16 @@ Other parameters are passed through a pointer to a apiGetCustomFormatSchemaReque
### HTTP request headers

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

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


## ListCustomFormat
## ListCustomFormatSchema

> []CustomFormatResource ListCustomFormat(ctx).Execute()
> []CustomFormatSpecificationSchema ListCustomFormatSchema(ctx).Execute()


Expand All @@ -290,13 +292,13 @@ func main() {

configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatAPI.ListCustomFormat(context.Background()).Execute()
resp, r, err := apiClient.CustomFormatAPI.ListCustomFormatSchema(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.ListCustomFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatAPI.ListCustomFormatSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCustomFormat`: []CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.ListCustomFormat`: %v\n", resp)
// response from `ListCustomFormatSchema`: []CustomFormatSpecificationSchema
fmt.Fprintf(os.Stdout, "Response from `CustomFormatAPI.ListCustomFormatSchema`: %v\n", resp)
}
```

Expand All @@ -306,12 +308,12 @@ This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiListCustomFormatRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiListCustomFormatSchemaRequest struct via the builder pattern


### Return type

[**[]CustomFormatResource**](CustomFormatResource.md)
[**[]CustomFormatSpecificationSchema**](CustomFormatSpecificationSchema.md)

### Authorization

Expand Down
69 changes: 40 additions & 29 deletions lidarr/api_auto_tagging.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7c74f71

Please sign in to comment.