Skip to content

Latest commit

 

History

History
543 lines (345 loc) · 18.4 KB

File metadata and controls

543 lines (345 loc) · 18.4 KB

\IntegrationDeliveryConfigurationsBetaApi

All URIs are relative to https://app.launchdarkly.com

Method HTTP request Description
CreateIntegrationDeliveryConfiguration Post /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey} Create delivery configuration
DeleteIntegrationDeliveryConfiguration Delete /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id} Delete delivery configuration
GetIntegrationDeliveryConfigurationByEnvironment Get /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey} Get delivery configurations by environment
GetIntegrationDeliveryConfigurationById Get /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id} Get delivery configuration by ID
GetIntegrationDeliveryConfigurations Get /api/v2/integration-capabilities/featureStore List all delivery configurations
PatchIntegrationDeliveryConfiguration Patch /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id} Update delivery configuration
ValidateIntegrationDeliveryConfiguration Post /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}/validate Validate delivery configuration

CreateIntegrationDeliveryConfiguration

IntegrationDeliveryConfiguration CreateIntegrationDeliveryConfiguration(ctx, projectKey, environmentKey, integrationKey).IntegrationDeliveryConfigurationPost(integrationDeliveryConfigurationPost).Execute()

Create delivery configuration

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/launchdarkly/api-client-go"
)

func main() {
	projectKey := "projectKey_example" // string | The project key
	environmentKey := "environmentKey_example" // string | The environment key
	integrationKey := "integrationKey_example" // string | The integration key
	integrationDeliveryConfigurationPost := *openapiclient.NewIntegrationDeliveryConfigurationPost(map[string]interface{}{"key": interface{}(123)}) // IntegrationDeliveryConfigurationPost | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IntegrationDeliveryConfigurationsBetaApi.CreateIntegrationDeliveryConfiguration(context.Background(), projectKey, environmentKey, integrationKey).IntegrationDeliveryConfigurationPost(integrationDeliveryConfigurationPost).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IntegrationDeliveryConfigurationsBetaApi.CreateIntegrationDeliveryConfiguration``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateIntegrationDeliveryConfiguration`: IntegrationDeliveryConfiguration
	fmt.Fprintf(os.Stdout, "Response from `IntegrationDeliveryConfigurationsBetaApi.CreateIntegrationDeliveryConfiguration`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectKey string The project key
environmentKey string The environment key
integrationKey string The integration key

Other Parameters

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

Name Type Description Notes

integrationDeliveryConfigurationPost | IntegrationDeliveryConfigurationPost | |

Return type

IntegrationDeliveryConfiguration

Authorization

ApiKey

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteIntegrationDeliveryConfiguration

DeleteIntegrationDeliveryConfiguration(ctx, projectKey, environmentKey, integrationKey, id).Execute()

Delete delivery configuration

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/launchdarkly/api-client-go"
)

func main() {
	projectKey := "projectKey_example" // string | The project key
	environmentKey := "environmentKey_example" // string | The environment key
	integrationKey := "integrationKey_example" // string | The integration key
	id := "id_example" // string | The configuration ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.IntegrationDeliveryConfigurationsBetaApi.DeleteIntegrationDeliveryConfiguration(context.Background(), projectKey, environmentKey, integrationKey, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IntegrationDeliveryConfigurationsBetaApi.DeleteIntegrationDeliveryConfiguration``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectKey string The project key
environmentKey string The environment key
integrationKey string The integration key
id string The configuration ID

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiKey

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetIntegrationDeliveryConfigurationByEnvironment

IntegrationDeliveryConfigurationCollection GetIntegrationDeliveryConfigurationByEnvironment(ctx, projectKey, environmentKey).Execute()

Get delivery configurations by environment

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/launchdarkly/api-client-go"
)

func main() {
	projectKey := "projectKey_example" // string | The project key
	environmentKey := "environmentKey_example" // string | The environment key

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurationByEnvironment(context.Background(), projectKey, environmentKey).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurationByEnvironment``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetIntegrationDeliveryConfigurationByEnvironment`: IntegrationDeliveryConfigurationCollection
	fmt.Fprintf(os.Stdout, "Response from `IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurationByEnvironment`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectKey string The project key
environmentKey string The environment key

Other Parameters

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

Name Type Description Notes

Return type

IntegrationDeliveryConfigurationCollection

Authorization

ApiKey

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetIntegrationDeliveryConfigurationById

IntegrationDeliveryConfiguration GetIntegrationDeliveryConfigurationById(ctx, projectKey, environmentKey, integrationKey, id).Execute()

Get delivery configuration by ID

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/launchdarkly/api-client-go"
)

func main() {
	projectKey := "projectKey_example" // string | The project key
	environmentKey := "environmentKey_example" // string | The environment key
	integrationKey := "integrationKey_example" // string | The integration key
	id := "id_example" // string | The configuration ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurationById(context.Background(), projectKey, environmentKey, integrationKey, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurationById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetIntegrationDeliveryConfigurationById`: IntegrationDeliveryConfiguration
	fmt.Fprintf(os.Stdout, "Response from `IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurationById`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectKey string The project key
environmentKey string The environment key
integrationKey string The integration key
id string The configuration ID

Other Parameters

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

Name Type Description Notes

Return type

IntegrationDeliveryConfiguration

Authorization

ApiKey

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetIntegrationDeliveryConfigurations

IntegrationDeliveryConfigurationCollection GetIntegrationDeliveryConfigurations(ctx).Execute()

List all delivery configurations

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/launchdarkly/api-client-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurations(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetIntegrationDeliveryConfigurations`: IntegrationDeliveryConfigurationCollection
	fmt.Fprintf(os.Stdout, "Response from `IntegrationDeliveryConfigurationsBetaApi.GetIntegrationDeliveryConfigurations`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

IntegrationDeliveryConfigurationCollection

Authorization

ApiKey

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchIntegrationDeliveryConfiguration

IntegrationDeliveryConfiguration PatchIntegrationDeliveryConfiguration(ctx, projectKey, environmentKey, integrationKey, id).PatchOperation(patchOperation).Execute()

Update delivery configuration

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/launchdarkly/api-client-go"
)

func main() {
	projectKey := "projectKey_example" // string | The project key
	environmentKey := "environmentKey_example" // string | The environment key
	integrationKey := "integrationKey_example" // string | The integration key
	id := "id_example" // string | The configuration ID
	patchOperation := []openapiclient.PatchOperation{*openapiclient.NewPatchOperation("replace", "/exampleField")} // []PatchOperation | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IntegrationDeliveryConfigurationsBetaApi.PatchIntegrationDeliveryConfiguration(context.Background(), projectKey, environmentKey, integrationKey, id).PatchOperation(patchOperation).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IntegrationDeliveryConfigurationsBetaApi.PatchIntegrationDeliveryConfiguration``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `PatchIntegrationDeliveryConfiguration`: IntegrationDeliveryConfiguration
	fmt.Fprintf(os.Stdout, "Response from `IntegrationDeliveryConfigurationsBetaApi.PatchIntegrationDeliveryConfiguration`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectKey string The project key
environmentKey string The environment key
integrationKey string The integration key
id string The configuration ID

Other Parameters

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

Name Type Description Notes

patchOperation | []PatchOperation | |

Return type

IntegrationDeliveryConfiguration

Authorization

ApiKey

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ValidateIntegrationDeliveryConfiguration

IntegrationDeliveryConfigurationResponse ValidateIntegrationDeliveryConfiguration(ctx, projectKey, environmentKey, integrationKey, id).Execute()

Validate delivery configuration

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/launchdarkly/api-client-go"
)

func main() {
	projectKey := "projectKey_example" // string | The project key
	environmentKey := "environmentKey_example" // string | The environment key
	integrationKey := "integrationKey_example" // string | The integration key
	id := "id_example" // string | The configuration ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IntegrationDeliveryConfigurationsBetaApi.ValidateIntegrationDeliveryConfiguration(context.Background(), projectKey, environmentKey, integrationKey, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IntegrationDeliveryConfigurationsBetaApi.ValidateIntegrationDeliveryConfiguration``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ValidateIntegrationDeliveryConfiguration`: IntegrationDeliveryConfigurationResponse
	fmt.Fprintf(os.Stdout, "Response from `IntegrationDeliveryConfigurationsBetaApi.ValidateIntegrationDeliveryConfiguration`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectKey string The project key
environmentKey string The environment key
integrationKey string The integration key
id string The configuration ID

Other Parameters

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

Name Type Description Notes

Return type

IntegrationDeliveryConfigurationResponse

Authorization

ApiKey

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]