All URIs are relative to https://rudder.example.local/rudder/api/latest
Method | HTTP request | Description |
---|---|---|
CreateTechnique | Put /techniques | Create technique |
DeleteTechnique | Delete /techniques/{techniqueId}/{techniqueVersion} | Delete technique |
GetTechniqueAllVersion | Get /techniques/{techniqueId} | Technique metadata by ID |
GetTechniqueAllVersionId | Get /techniques/{techniqueId}/{techniqueVersion} | Technique metadata by version and ID |
GetTechniquesResources | Get /techniques/{techniqueId}/{techniqueVersion}/resources | Technique's resources |
ListTechniqueVersionDirectives | Get /techniques/{techniqueId}/{techniqueVersion}/directives | List all directives based on a version of a technique |
ListTechniques | Get /techniques | List all techniques |
ListTechniquesDirectives | Get /techniques/{techniqueId}/directives | List all directives based on a technique |
ListTechniquesVersions | Get /techniques/versions | List versions |
Methods | Get /methods | List methods |
ReloadMethods | Post /methods/reload | Reload methods |
TechniqueCategories | Get /techniques/categories | List categories |
TechniqueRevisions | Get /techniques/{techniqueId}/{techniqueVersion}/revisions | Technique's revisions |
Techniques | Post /techniques/reload | Reload techniques |
UpdateTechnique | Post /techniques/{techniqueId}/{techniqueVersion} | Update technique |
CreateTechnique200Response CreateTechnique(ctx).EditorTechnique(editorTechnique).Execute()
Create technique
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
editorTechnique := []openapiclient.EditorTechnique{*openapiclient.NewEditorTechnique()} // []EditorTechnique |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.CreateTechnique(context.Background()).EditorTechnique(editorTechnique).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.CreateTechnique``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateTechnique`: CreateTechnique200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.CreateTechnique`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateTechniqueRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
editorTechnique | []EditorTechnique |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteTechnique200Response DeleteTechnique(ctx, techniqueId, techniqueVersion).Execute()
Delete technique
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
techniqueVersion := "6.0" // string | Technique version
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.DeleteTechnique(context.Background(), techniqueId, techniqueVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.DeleteTechnique``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteTechnique`: DeleteTechnique200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.DeleteTechnique`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID | |
techniqueVersion | string | Technique version |
Other parameters are passed through a pointer to a apiDeleteTechniqueRequest 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]
GetTechniqueAllVersion200Response GetTechniqueAllVersion(ctx, techniqueId).Execute()
Technique metadata by ID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.GetTechniqueAllVersion(context.Background(), techniqueId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.GetTechniqueAllVersion``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTechniqueAllVersion`: GetTechniqueAllVersion200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.GetTechniqueAllVersion`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID |
Other parameters are passed through a pointer to a apiGetTechniqueAllVersionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetTechniqueAllVersion200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTechniqueAllVersion200Response GetTechniqueAllVersionId(ctx, techniqueId, techniqueVersion).Execute()
Technique metadata by version and ID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
techniqueVersion := "6.0" // string | Technique version
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.GetTechniqueAllVersionId(context.Background(), techniqueId, techniqueVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.GetTechniqueAllVersionId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTechniqueAllVersionId`: GetTechniqueAllVersion200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.GetTechniqueAllVersionId`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID | |
techniqueVersion | string | Technique version |
Other parameters are passed through a pointer to a apiGetTechniqueAllVersionIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetTechniqueAllVersion200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTechniquesResources200Response GetTechniquesResources(ctx, techniqueId, techniqueVersion).Execute()
Technique's resources
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
techniqueVersion := "6.0" // string | Technique version
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.GetTechniquesResources(context.Background(), techniqueId, techniqueVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.GetTechniquesResources``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTechniquesResources`: GetTechniquesResources200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.GetTechniquesResources`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID | |
techniqueVersion | string | Technique version |
Other parameters are passed through a pointer to a apiGetTechniquesResourcesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetTechniquesResources200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTechniqueVersionDirectives200Response ListTechniqueVersionDirectives(ctx, techniqueId, techniqueVersion).Execute()
List all directives based on a version of a technique
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
techniqueVersion := "6.0" // string | Technique version
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.ListTechniqueVersionDirectives(context.Background(), techniqueId, techniqueVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.ListTechniqueVersionDirectives``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListTechniqueVersionDirectives`: ListTechniqueVersionDirectives200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.ListTechniqueVersionDirectives`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID | |
techniqueVersion | string | Technique version |
Other parameters are passed through a pointer to a apiListTechniqueVersionDirectivesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ListTechniqueVersionDirectives200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTechniques200Response ListTechniques(ctx).Execute()
List all techniques
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.ListTechniques(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.ListTechniques``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListTechniques`: ListTechniques200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.ListTechniques`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListTechniquesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTechniquesDirectives200Response ListTechniquesDirectives(ctx, techniqueId).Execute()
List all directives based on a technique
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.ListTechniquesDirectives(context.Background(), techniqueId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.ListTechniquesDirectives``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListTechniquesDirectives`: ListTechniquesDirectives200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.ListTechniquesDirectives`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID |
Other parameters are passed through a pointer to a apiListTechniquesDirectivesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ListTechniquesDirectives200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTechniquesVersions200Response ListTechniquesVersions(ctx).Execute()
List versions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.ListTechniquesVersions(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.ListTechniquesVersions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListTechniquesVersions`: ListTechniquesVersions200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.ListTechniquesVersions`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListTechniquesVersionsRequest struct via the builder pattern
ListTechniquesVersions200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Methods200Response Methods(ctx).Execute()
List methods
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.Methods(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.Methods``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Methods`: Methods200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.Methods`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiMethodsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Methods200Response ReloadMethods(ctx).Execute()
Reload methods
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.ReloadMethods(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.ReloadMethods``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ReloadMethods`: Methods200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.ReloadMethods`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiReloadMethodsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TechniqueCategories200Response TechniqueCategories(ctx).Execute()
List categories
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.TechniqueCategories(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.TechniqueCategories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TechniqueCategories`: TechniqueCategories200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.TechniqueCategories`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiTechniqueCategoriesRequest struct via the builder pattern
TechniqueCategories200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TechniqueRevisions200Response TechniqueRevisions(ctx, techniqueId, techniqueVersion).Execute()
Technique's revisions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
techniqueVersion := "6.0" // string | Technique version
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.TechniqueRevisions(context.Background(), techniqueId, techniqueVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.TechniqueRevisions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TechniqueRevisions`: TechniqueRevisions200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.TechniqueRevisions`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID | |
techniqueVersion | string | Technique version |
Other parameters are passed through a pointer to a apiTechniqueRevisionsRequest 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]
ListTechniques200Response Techniques(ctx).Execute()
Reload techniques
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.Techniques(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.Techniques``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Techniques`: ListTechniques200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.Techniques`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiTechniquesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateTechnique200Response UpdateTechnique(ctx, techniqueId, techniqueVersion).EditorTechnique(editorTechnique).Execute()
Update technique
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
techniqueId := "userManagement" // string | Technique ID
techniqueVersion := "6.0" // string | Technique version
editorTechnique := []openapiclient.EditorTechnique{*openapiclient.NewEditorTechnique()} // []EditorTechnique |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TechniquesAPI.UpdateTechnique(context.Background(), techniqueId, techniqueVersion).EditorTechnique(editorTechnique).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TechniquesAPI.UpdateTechnique``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateTechnique`: CreateTechnique200Response
fmt.Fprintf(os.Stdout, "Response from `TechniquesAPI.UpdateTechnique`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
techniqueId | string | Technique ID | |
techniqueVersion | string | Technique version |
Other parameters are passed through a pointer to a apiUpdateTechniqueRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
editorTechnique | []EditorTechnique | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]