All URIs are relative to http://localhost:8686
Method | HTTP request | Description |
---|---|---|
GetNamingConfig | Get /api/v1/config/naming | |
GetNamingConfigById | Get /api/v1/config/naming/{id} | |
GetNamingConfigExamples | Get /api/v1/config/naming/examples | |
UpdateNamingConfig | Put /api/v1/config/naming/{id} |
NamingConfigResource GetNamingConfig(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.NamingConfigAPI.GetNamingConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NamingConfigAPI.GetNamingConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNamingConfig`: NamingConfigResource
fmt.Fprintf(os.Stdout, "Response from `NamingConfigAPI.GetNamingConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetNamingConfigRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NamingConfigResource GetNamingConfigById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
id := int32(56) // int32 |
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.NamingConfigAPI.GetNamingConfigById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NamingConfigAPI.GetNamingConfigById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNamingConfigById`: NamingConfigResource
fmt.Fprintf(os.Stdout, "Response from `NamingConfigAPI.GetNamingConfigById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 |
Other parameters are passed through a pointer to a apiGetNamingConfigByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNamingConfigExamples(ctx).RenameTracks(renameTracks).ReplaceIllegalCharacters(replaceIllegalCharacters).ColonReplacementFormat(colonReplacementFormat).StandardTrackFormat(standardTrackFormat).MultiDiscTrackFormat(multiDiscTrackFormat).ArtistFolderFormat(artistFolderFormat).IncludeArtistName(includeArtistName).IncludeAlbumTitle(includeAlbumTitle).IncludeQuality(includeQuality).ReplaceSpaces(replaceSpaces).Separator(separator).NumberStyle(numberStyle).Id(id).ResourceName(resourceName).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
renameTracks := true // bool | (optional)
replaceIllegalCharacters := true // bool | (optional)
colonReplacementFormat := int32(56) // int32 | (optional)
standardTrackFormat := "standardTrackFormat_example" // string | (optional)
multiDiscTrackFormat := "multiDiscTrackFormat_example" // string | (optional)
artistFolderFormat := "artistFolderFormat_example" // string | (optional)
includeArtistName := true // bool | (optional)
includeAlbumTitle := true // bool | (optional)
includeQuality := true // bool | (optional)
replaceSpaces := true // bool | (optional)
separator := "separator_example" // string | (optional)
numberStyle := "numberStyle_example" // string | (optional)
id := int32(56) // int32 | (optional)
resourceName := "resourceName_example" // string | (optional)
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
r, err := apiClient.NamingConfigAPI.GetNamingConfigExamples(context.Background()).RenameTracks(renameTracks).ReplaceIllegalCharacters(replaceIllegalCharacters).ColonReplacementFormat(colonReplacementFormat).StandardTrackFormat(standardTrackFormat).MultiDiscTrackFormat(multiDiscTrackFormat).ArtistFolderFormat(artistFolderFormat).IncludeArtistName(includeArtistName).IncludeAlbumTitle(includeAlbumTitle).IncludeQuality(includeQuality).ReplaceSpaces(replaceSpaces).Separator(separator).NumberStyle(numberStyle).Id(id).ResourceName(resourceName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NamingConfigAPI.GetNamingConfigExamples``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetNamingConfigExamplesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
renameTracks | bool | ||
replaceIllegalCharacters | bool | ||
colonReplacementFormat | int32 | ||
standardTrackFormat | string | ||
multiDiscTrackFormat | string | ||
artistFolderFormat | string | ||
includeArtistName | bool | ||
includeAlbumTitle | bool | ||
includeQuality | bool | ||
replaceSpaces | bool | ||
separator | string | ||
numberStyle | string | ||
id | int32 | ||
resourceName | string |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NamingConfigResource UpdateNamingConfig(ctx, id).NamingConfigResource(namingConfigResource).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
id := "id_example" // string |
namingConfigResource := *lidarrClient.NewNamingConfigResource() // NamingConfigResource | (optional)
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.NamingConfigAPI.UpdateNamingConfig(context.Background(), id).NamingConfigResource(namingConfigResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `NamingConfigAPI.UpdateNamingConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateNamingConfig`: NamingConfigResource
fmt.Fprintf(os.Stdout, "Response from `NamingConfigAPI.UpdateNamingConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateNamingConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
namingConfigResource | NamingConfigResource | |
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]