All URIs are relative to http://localhost:8989
Method | HTTP request | Description |
---|---|---|
CreateReleaseProfile | Post /api/v3/releaseprofile | |
DeleteReleaseProfile | Delete /api/v3/releaseprofile/{id} | |
GetReleaseProfileById | Get /api/v3/releaseprofile/{id} | |
ListReleaseProfile | Get /api/v3/releaseprofile | |
UpdateReleaseProfile | Put /api/v3/releaseprofile/{id} |
ReleaseProfileResource CreateReleaseProfile(ctx).ReleaseProfileResource(releaseProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
releaseProfileResource := *sonarrClient.NewReleaseProfileResource() // ReleaseProfileResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ReleaseProfileAPI.CreateReleaseProfile(context.Background()).ReleaseProfileResource(releaseProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReleaseProfileAPI.CreateReleaseProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateReleaseProfile`: ReleaseProfileResource
fmt.Fprintf(os.Stdout, "Response from `ReleaseProfileAPI.CreateReleaseProfile`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateReleaseProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
releaseProfileResource | ReleaseProfileResource |
- 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]
DeleteReleaseProfile(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.ReleaseProfileAPI.DeleteReleaseProfile(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReleaseProfileAPI.DeleteReleaseProfile``: %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 apiDeleteReleaseProfileRequest 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]
ReleaseProfileResource GetReleaseProfileById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ReleaseProfileAPI.GetReleaseProfileById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReleaseProfileAPI.GetReleaseProfileById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetReleaseProfileById`: ReleaseProfileResource
fmt.Fprintf(os.Stdout, "Response from `ReleaseProfileAPI.GetReleaseProfileById`: %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 apiGetReleaseProfileByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ReleaseProfileResource ListReleaseProfile(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ReleaseProfileAPI.ListReleaseProfile(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReleaseProfileAPI.ListReleaseProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListReleaseProfile`: []ReleaseProfileResource
fmt.Fprintf(os.Stdout, "Response from `ReleaseProfileAPI.ListReleaseProfile`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListReleaseProfileRequest 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]
ReleaseProfileResource UpdateReleaseProfile(ctx, id).ReleaseProfileResource(releaseProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := "id_example" // string |
releaseProfileResource := *sonarrClient.NewReleaseProfileResource() // ReleaseProfileResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ReleaseProfileAPI.UpdateReleaseProfile(context.Background(), id).ReleaseProfileResource(releaseProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReleaseProfileAPI.UpdateReleaseProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateReleaseProfile`: ReleaseProfileResource
fmt.Fprintf(os.Stdout, "Response from `ReleaseProfileAPI.UpdateReleaseProfile`: %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 apiUpdateReleaseProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
releaseProfileResource | ReleaseProfileResource | |
- 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]