All URIs are relative to http://localhost:8686
| Method | HTTP request | Description |
|---|---|---|
| CreateMetadataProfile | Post /api/v1/metadataprofile | |
| DeleteMetadataProfile | Delete /api/v1/metadataprofile/{id} | |
| GetMetadataProfileById | Get /api/v1/metadataprofile/{id} | |
| ListMetadataProfile | Get /api/v1/metadataprofile | |
| UpdateMetadataProfile | Put /api/v1/metadataprofile/{id} |
MetadataProfileResource CreateMetadataProfile(ctx).MetadataProfileResource(metadataProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
metadataProfileResource := *lidarrClient.NewMetadataProfileResource() // MetadataProfileResource | (optional)
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.MetadataProfileAPI.CreateMetadataProfile(context.Background()).MetadataProfileResource(metadataProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetadataProfileAPI.CreateMetadataProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateMetadataProfile`: MetadataProfileResource
fmt.Fprintf(os.Stdout, "Response from `MetadataProfileAPI.CreateMetadataProfile`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateMetadataProfileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| metadataProfileResource | MetadataProfileResource |
- 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]
DeleteMetadataProfile(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)
r, err := apiClient.MetadataProfileAPI.DeleteMetadataProfile(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetadataProfileAPI.DeleteMetadataProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| 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 apiDeleteMetadataProfileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MetadataProfileResource GetMetadataProfileById(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.MetadataProfileAPI.GetMetadataProfileById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetadataProfileAPI.GetMetadataProfileById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMetadataProfileById`: MetadataProfileResource
fmt.Fprintf(os.Stdout, "Response from `MetadataProfileAPI.GetMetadataProfileById`: %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 apiGetMetadataProfileByIdRequest 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]
[]MetadataProfileResource ListMetadataProfile(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.MetadataProfileAPI.ListMetadataProfile(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetadataProfileAPI.ListMetadataProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListMetadataProfile`: []MetadataProfileResource
fmt.Fprintf(os.Stdout, "Response from `MetadataProfileAPI.ListMetadataProfile`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListMetadataProfileRequest 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]
MetadataProfileResource UpdateMetadataProfile(ctx, id).MetadataProfileResource(metadataProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
id := "id_example" // string |
metadataProfileResource := *lidarrClient.NewMetadataProfileResource() // MetadataProfileResource | (optional)
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.MetadataProfileAPI.UpdateMetadataProfile(context.Background(), id).MetadataProfileResource(metadataProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetadataProfileAPI.UpdateMetadataProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateMetadataProfile`: MetadataProfileResource
fmt.Fprintf(os.Stdout, "Response from `MetadataProfileAPI.UpdateMetadataProfile`: %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 apiUpdateMetadataProfileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
metadataProfileResource | MetadataProfileResource | |
- 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]