From efb95f544d35c3f09a3edcf02e0bfbf5745b71fe Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 8 Apr 2024 13:09:45 +0100
Subject: [PATCH] chore(deps): bump github.com/launchdarkly/api-client-go/v15
from 15.0.0 to 15.1.0 (#115)
Bumps
[github.com/launchdarkly/api-client-go/v15](https://github.com/launchdarkly/api-client-go)
from 15.0.0 to 15.1.0.
Commits
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/launchdarkly/api-client-go/v15&package-manager=go_modules&previous-version=15.0.0&new-version=15.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Henry Barrow
---
go.mod | 2 +-
go.sum | 4 +-
.../launchdarkly/api-client-go/v15/README.md | 5 +-
.../v15/api_account_usage_beta.go | 364 ++++++++++++++++++
.../api-client-go/v15/api_feature_flags.go | 10 +-
.../v15/api_insights_charts_beta.go | 4 +-
.../v15/api_insights_flag_events_beta.go | 2 +-
.../v15/model_feature_flag_body.go | 74 ++++
.../v15/model_metric_listing_rep.go | 6 +-
.../api-client-go/v15/model_metric_post.go | 112 +++++-
.../api-client-go/v15/model_metric_rep.go | 6 +-
.../api-client-go/v15/model_project.go | 36 ++
.../api-client-go/v15/model_project_rep.go | 36 ++
.../v15/model_release_audience.go | 139 +++++++
.../api-client-go/v15/model_release_phase.go | 12 +-
vendor/modules.txt | 2 +-
16 files changed, 792 insertions(+), 22 deletions(-)
create mode 100644 vendor/github.com/launchdarkly/api-client-go/v15/model_release_audience.go
diff --git a/go.mod b/go.mod
index ac5e3436..0d8cbde5 100644
--- a/go.mod
+++ b/go.mod
@@ -44,7 +44,7 @@ require (
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/imdario/mergo v0.3.15 // indirect
github.com/kyoh86/xdg v1.2.0 // indirect
- github.com/launchdarkly/api-client-go/v15 v15.0.0
+ github.com/launchdarkly/api-client-go/v15 v15.1.0
github.com/launchdarkly/json-patch v0.0.0-20180720210516-dd68d883319f // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
diff --git a/go.sum b/go.sum
index d0976bbc..f6f5555d 100644
--- a/go.sum
+++ b/go.sum
@@ -156,8 +156,8 @@ github.com/kyoh86/richgo v0.3.12 h1:W66IRaaC1BWoCPIyI94t/PChWBQ38QFDRsF1nWu4904=
github.com/kyoh86/richgo v0.3.12/go.mod h1:op8jQyhnxSZQelHDyupswwJGerEDB6zkKfzCnuqAwx4=
github.com/kyoh86/xdg v1.2.0 h1:CERuT/ShdTDj+A2UaX3hQ3mOV369+Sj+wyn2nIRIIkI=
github.com/kyoh86/xdg v1.2.0/go.mod h1:/mg8zwu1+qe76oTFUBnyS7rJzk7LLC0VGEzJyJ19DHs=
-github.com/launchdarkly/api-client-go/v15 v15.0.0 h1:tA1oYCrId9L9vE8nFtAtlqkYkjPtnlXeXFMqvuezDtA=
-github.com/launchdarkly/api-client-go/v15 v15.0.0/go.mod h1:7dpsX/epfhhRbCv5sEIxKng0xxYbzRYXlp0oJB3+XrQ=
+github.com/launchdarkly/api-client-go/v15 v15.1.0 h1:SSBqU4x36OWJql7uKuEl6awsPNC3bMFWSiDI/s3OD/I=
+github.com/launchdarkly/api-client-go/v15 v15.1.0/go.mod h1:7dpsX/epfhhRbCv5sEIxKng0xxYbzRYXlp0oJB3+XrQ=
github.com/launchdarkly/json-patch v0.0.0-20180720210516-dd68d883319f h1:jfiPiz2hE/7mHv2NOS4cm07sSJCsKlbxmR7pzPhhvpU=
github.com/launchdarkly/json-patch v0.0.0-20180720210516-dd68d883319f/go.mod h1:CHbYdMs8UjvNnS2fatlQvi4UYnBTRYGxRHc/0kQupSQ=
github.com/launchdarkly/ld-find-code-refs/v2 v2.12.0 h1:vQXNnti7iSCQdJnCMeIY9JMNiuIKUoqW2iLXNc+ZvHo=
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/README.md b/vendor/github.com/launchdarkly/api-client-go/v15/README.md
index cca2fa8c..20d01e9b 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/README.md
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/README.md
@@ -481,6 +481,7 @@ Class | Method | HTTP request | Description
*AccountMembersApi* | [**PostMemberTeams**](docs/AccountMembersApi.md#postmemberteams) | **Post** /api/v2/members/{id}/teams | Add a member to teams
*AccountMembersApi* | [**PostMembers**](docs/AccountMembersApi.md#postmembers) | **Post** /api/v2/members | Invite new members
*AccountMembersBetaApi* | [**PatchMembers**](docs/AccountMembersBetaApi.md#patchmembers) | **Patch** /api/v2/members | Modify account members
+*AccountUsageBetaApi* | [**GetDataExportEventsUsage**](docs/AccountUsageBetaApi.md#getdataexporteventsusage) | **Get** /api/v2/usage/data-export-events | Get data export events usage
*AccountUsageBetaApi* | [**GetEvaluationsUsage**](docs/AccountUsageBetaApi.md#getevaluationsusage) | **Get** /api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey} | Get evaluations usage
*AccountUsageBetaApi* | [**GetEventsUsage**](docs/AccountUsageBetaApi.md#geteventsusage) | **Get** /api/v2/usage/events/{type} | Get events usage
*AccountUsageBetaApi* | [**GetExperimentationKeysUsage**](docs/AccountUsageBetaApi.md#getexperimentationkeysusage) | **Get** /api/v2/usage/experimentation-keys | Get experimentation keys usage
@@ -488,6 +489,7 @@ Class | Method | HTTP request | Description
*AccountUsageBetaApi* | [**GetMauSdksByType**](docs/AccountUsageBetaApi.md#getmausdksbytype) | **Get** /api/v2/usage/mau/sdks | Get MAU SDKs by type
*AccountUsageBetaApi* | [**GetMauUsage**](docs/AccountUsageBetaApi.md#getmauusage) | **Get** /api/v2/usage/mau | Get MAU usage
*AccountUsageBetaApi* | [**GetMauUsageByCategory**](docs/AccountUsageBetaApi.md#getmauusagebycategory) | **Get** /api/v2/usage/mau/bycategory | Get MAU usage by category
+*AccountUsageBetaApi* | [**GetServiceConnectionUsage**](docs/AccountUsageBetaApi.md#getserviceconnectionusage) | **Get** /api/v2/usage/service-connections | Get service connection usage
*AccountUsageBetaApi* | [**GetStreamUsage**](docs/AccountUsageBetaApi.md#getstreamusage) | **Get** /api/v2/usage/streams/{source} | Get stream usage
*AccountUsageBetaApi* | [**GetStreamUsageBySdkVersion**](docs/AccountUsageBetaApi.md#getstreamusagebysdkversion) | **Get** /api/v2/usage/streams/{source}/bysdkversion | Get stream usage by SDK version
*AccountUsageBetaApi* | [**GetStreamUsageSdkversion**](docs/AccountUsageBetaApi.md#getstreamusagesdkversion) | **Get** /api/v2/usage/streams/{source}/sdkversions | Get stream usage SDK versions
@@ -596,7 +598,7 @@ Class | Method | HTTP request | Description
*InsightsChartsBetaApi* | [**GetDeploymentFrequencyChart**](docs/InsightsChartsBetaApi.md#getdeploymentfrequencychart) | **Get** /api/v2/engineering-insights/charts/deployments/frequency | Get deployment frequency chart data
*InsightsChartsBetaApi* | [**GetFlagStatusChart**](docs/InsightsChartsBetaApi.md#getflagstatuschart) | **Get** /api/v2/engineering-insights/charts/flags/status | Get flag status chart data
*InsightsChartsBetaApi* | [**GetLeadTimeChart**](docs/InsightsChartsBetaApi.md#getleadtimechart) | **Get** /api/v2/engineering-insights/charts/lead-time | Get lead time chart data
-*InsightsChartsBetaApi* | [**GetReleaseFrequencyChart**](docs/InsightsChartsBetaApi.md#getreleasefrequencychart) | **Get** /api/v2/engineering-insights/charts/releases/frequency | Get replease frequency chart data
+*InsightsChartsBetaApi* | [**GetReleaseFrequencyChart**](docs/InsightsChartsBetaApi.md#getreleasefrequencychart) | **Get** /api/v2/engineering-insights/charts/releases/frequency | Get release frequency chart data
*InsightsChartsBetaApi* | [**GetStaleFlagsChart**](docs/InsightsChartsBetaApi.md#getstaleflagschart) | **Get** /api/v2/engineering-insights/charts/flags/stale | Get stale flags chart data
*InsightsDeploymentsBetaApi* | [**CreateDeploymentEvent**](docs/InsightsDeploymentsBetaApi.md#createdeploymentevent) | **Post** /api/v2/engineering-insights/deployment-events | Create deployment event
*InsightsDeploymentsBetaApi* | [**GetDeployment**](docs/InsightsDeploymentsBetaApi.md#getdeployment) | **Get** /api/v2/engineering-insights/deployments/{deploymentID} | Get deployment
@@ -1030,6 +1032,7 @@ Class | Method | HTTP request | Description
- [RelayAutoConfigPost](docs/RelayAutoConfigPost.md)
- [RelayAutoConfigRep](docs/RelayAutoConfigRep.md)
- [Release](docs/Release.md)
+ - [ReleaseAudience](docs/ReleaseAudience.md)
- [ReleasePhase](docs/ReleasePhase.md)
- [ReleasePipeline](docs/ReleasePipeline.md)
- [ReleasePipelineCollection](docs/ReleasePipelineCollection.md)
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/api_account_usage_beta.go b/vendor/github.com/launchdarkly/api-client-go/v15/api_account_usage_beta.go
index 4e707c0b..56e373a1 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/api_account_usage_beta.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/api_account_usage_beta.go
@@ -24,6 +24,188 @@ import (
// AccountUsageBetaApiService AccountUsageBetaApi service
type AccountUsageBetaApiService service
+type ApiGetDataExportEventsUsageRequest struct {
+ ctx context.Context
+ ApiService *AccountUsageBetaApiService
+ from *string
+ to *string
+}
+
+// The series of data returned starts from this timestamp (Unix seconds). Defaults to the beginning of the current month.
+func (r ApiGetDataExportEventsUsageRequest) From(from string) ApiGetDataExportEventsUsageRequest {
+ r.from = &from
+ return r
+}
+
+// The series of data returned ends at this timestamp (Unix seconds). Defaults to the current time.
+func (r ApiGetDataExportEventsUsageRequest) To(to string) ApiGetDataExportEventsUsageRequest {
+ r.to = &to
+ return r
+}
+
+func (r ApiGetDataExportEventsUsageRequest) Execute() (*SeriesIntervalsRep, *http.Response, error) {
+ return r.ApiService.GetDataExportEventsUsageExecute(r)
+}
+
+/*
+GetDataExportEventsUsage Get data export events usage
+
+Get a time-series array of the number of monthly data export events from your account. The granularity is always daily, with a maximum of 31 days.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiGetDataExportEventsUsageRequest
+*/
+func (a *AccountUsageBetaApiService) GetDataExportEventsUsage(ctx context.Context) ApiGetDataExportEventsUsageRequest {
+ return ApiGetDataExportEventsUsageRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+// @return SeriesIntervalsRep
+func (a *AccountUsageBetaApiService) GetDataExportEventsUsageExecute(r ApiGetDataExportEventsUsageRequest) (*SeriesIntervalsRep, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SeriesIntervalsRep
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountUsageBetaApiService.GetDataExportEventsUsage")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/v2/usage/data-export-events"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.from != nil {
+ localVarQueryParams.Add("from", parameterToString(*r.from, ""))
+ }
+ if r.to != nil {
+ localVarQueryParams.Add("to", parameterToString(*r.to, ""))
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["ApiKey"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v InvalidRequestErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v UnauthorizedErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ForbiddenErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 429 {
+ var v RateLimitedErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 503 {
+ var v StatusServiceUnavailable
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
type ApiGetEvaluationsUsageRequest struct {
ctx context.Context
ApiService *AccountUsageBetaApiService
@@ -1374,6 +1556,188 @@ func (a *AccountUsageBetaApiService) GetMauUsageByCategoryExecute(r ApiGetMauUsa
return localVarReturnValue, localVarHTTPResponse, nil
}
+type ApiGetServiceConnectionUsageRequest struct {
+ ctx context.Context
+ ApiService *AccountUsageBetaApiService
+ from *string
+ to *string
+}
+
+// The series of data returned starts from this timestamp (Unix seconds). Defaults to the beginning of the current month.
+func (r ApiGetServiceConnectionUsageRequest) From(from string) ApiGetServiceConnectionUsageRequest {
+ r.from = &from
+ return r
+}
+
+// The series of data returned ends at this timestamp (Unix seconds). Defaults to the current time.
+func (r ApiGetServiceConnectionUsageRequest) To(to string) ApiGetServiceConnectionUsageRequest {
+ r.to = &to
+ return r
+}
+
+func (r ApiGetServiceConnectionUsageRequest) Execute() (*SeriesIntervalsRep, *http.Response, error) {
+ return r.ApiService.GetServiceConnectionUsageExecute(r)
+}
+
+/*
+GetServiceConnectionUsage Get service connection usage
+
+Get a time-series array of the number of monthly service connections from your account. The granularity is always daily, with a maximum of 31 days.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiGetServiceConnectionUsageRequest
+*/
+func (a *AccountUsageBetaApiService) GetServiceConnectionUsage(ctx context.Context) ApiGetServiceConnectionUsageRequest {
+ return ApiGetServiceConnectionUsageRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+// @return SeriesIntervalsRep
+func (a *AccountUsageBetaApiService) GetServiceConnectionUsageExecute(r ApiGetServiceConnectionUsageRequest) (*SeriesIntervalsRep, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SeriesIntervalsRep
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountUsageBetaApiService.GetServiceConnectionUsage")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/api/v2/usage/service-connections"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.from != nil {
+ localVarQueryParams.Add("from", parameterToString(*r.from, ""))
+ }
+ if r.to != nil {
+ localVarQueryParams.Add("to", parameterToString(*r.to, ""))
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ if r.ctx != nil {
+ // API Key Authentication
+ if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok {
+ if apiKey, ok := auth["ApiKey"]; ok {
+ var key string
+ if apiKey.Prefix != "" {
+ key = apiKey.Prefix + " " + apiKey.Key
+ } else {
+ key = apiKey.Key
+ }
+ localVarHeaderParams["Authorization"] = key
+ }
+ }
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode == 400 {
+ var v InvalidRequestErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 401 {
+ var v UnauthorizedErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 403 {
+ var v ForbiddenErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 429 {
+ var v RateLimitedErrorRep
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode == 503 {
+ var v StatusServiceUnavailable
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
type ApiGetStreamUsageRequest struct {
ctx context.Context
ApiService *AccountUsageBetaApiService
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/api_feature_flags.go b/vendor/github.com/launchdarkly/api-client-go/v15/api_feature_flags.go
index b6aeb878..df8cc756 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/api_feature_flags.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/api_feature_flags.go
@@ -1492,7 +1492,8 @@ The `filter` query parameter supports the following arguments:
| Filter argument | Description | Example |
|-----------------------|-------------|----------------------|
-| `archived` | A boolean value. It filters the list to archived flags. Setting the value to `true` returns only archived flags. When this is absent, only unarchived flags are returned. | `filter=archived:true` |
+| `applicationEvaluated` | A string. It filters the list to flags that are evaluated in the application with the given key. | `filter=applicationEvaluated:com.launchdarkly.cafe` |
+| `archived` | (deprecated) A boolean value. It filters the list to archived flags. | Use `filter=state:archived` instead |
| `contextKindsEvaluated` | A `+`-separated list of context kind keys. It filters the list to flags which have been evaluated in the past 30 days for all of the context kinds in the list. | `filter=contextKindsEvaluated:user+application` |
| `contextKindTargeted` | A string. It filters the list to flags that are targeting the given context kind key. | `filter=contextKindTargeted:user` |
| `codeReferences.max` | An integer value. Use `0` to return flags that do not have code references. | `filter=codeReferences.max:0` |
@@ -1506,6 +1507,7 @@ The `filter` query parameter supports the following arguments:
| `maintainerId` | A valid member ID. It filters the list to flags that are maintained by this member. | `filter=maintainerId:12ab3c45de678910abc12345` |
| `maintainerTeamKey` | A string. It filters the list to flags that are maintained by the team with this key. | `filter=maintainerTeamKey:example-team-key` |
| `query` | A string. It filters the list to flags that include the specified string in their key or name. It is not case sensitive. | `filter=query:example` |
+| `state` | A string, either `live`, `deprecated`, or `archived`. It filters the list to flags in this state. | `filter=state:archived` |
| `sdkAvailability` | A string, one of `client`, `mobile`, `anyClient`, `server`. Using `client` filters the list to flags whose client-side SDK availability is set to use the client-side ID. Using `mobile` filters to flags set to use the mobile key. Using `anyClient` filters to flags set to use either the client-side ID or the mobile key. Using `server` filters to flags set to use neither, that is, to flags only available in server-side SDKs. | `filter=sdkAvailability:client` |
| `segmentTargeted` | A string. It filters the list to flags that target the segment with this key. This filter requires the `filterEnv` filter. | `filter=segmentTargeted:example-segment-key,filterEnv:production` |
| `status` | A string, either `new`, `inactive`, `active`, or `launched`. It filters the list to flags with the specified status in the specified environment. This filter requires the `filterEnv` filter. | `filter=status:active,filterEnv:production` |
@@ -3640,9 +3642,13 @@ PostFeatureFlag Create a feature flag
Create a feature flag with the given name, key, and variations.
+
+Click to expand instructions for creating a migration flag
+
### Creating a migration flag
When you create a migration flag, the variations are pre-determined based on the number of stages in the migration.
+
To create a migration flag, omit the `variations` and `defaults` information. Instead, provide a `purpose` of `migration`, and `migrationSettings`. If you create a migration flag with six stages, `contextKind` is required. Otherwise, it should be omitted.
Here's an example:
@@ -3660,6 +3666,8 @@ Here's an example:
To learn more, read [Migration Flags](https://docs.launchdarkly.com/home/flag-types/migration-flags).
+
+
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectKey The project key
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_charts_beta.go b/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_charts_beta.go
index 2c44e2f6..ff67a4c9 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_charts_beta.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_charts_beta.go
@@ -768,7 +768,7 @@ func (r ApiGetReleaseFrequencyChartRequest) ApplicationKey(applicationKey string
return r
}
-// Filter events to those associated with an experiment
+// Filter events to those associated with an experiment (`true`) or without an experiment (`false`)
func (r ApiGetReleaseFrequencyChartRequest) HasExperiments(hasExperiments bool) ApiGetReleaseFrequencyChartRequest {
r.hasExperiments = &hasExperiments
return r
@@ -821,7 +821,7 @@ func (r ApiGetReleaseFrequencyChartRequest) Execute() (*InsightsChart, *http.Res
}
/*
-GetReleaseFrequencyChart Get replease frequency chart data
+GetReleaseFrequencyChart Get release frequency chart data
Get release frequency chart data. Engineering insights displays release frequency data in the [release frequency metric view](https://docs.launchdarkly.com/home/engineering-insights/metrics/release).
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_flag_events_beta.go b/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_flag_events_beta.go
index 457fe329..11c61984 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_flag_events_beta.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/api_insights_flag_events_beta.go
@@ -71,7 +71,7 @@ func (r ApiGetFlagEventsRequest) ImpactSize(impactSize string) ApiGetFlagEventsR
return r
}
-// Filter events to those associated with an experiment
+// Filter events to those associated with an experiment (`true`) or without an experiment (`false`)
func (r ApiGetFlagEventsRequest) HasExperiments(hasExperiments bool) ApiGetFlagEventsRequest {
r.hasExperiments = &hasExperiments
return r
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_feature_flag_body.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_feature_flag_body.go
index 0abb65bd..7f8925a8 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/model_feature_flag_body.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_feature_flag_body.go
@@ -38,6 +38,10 @@ type FeatureFlagBody struct {
// Purpose of the flag
Purpose *string `json:"purpose,omitempty"`
MigrationSettings *MigrationSettingsPost `json:"migrationSettings,omitempty"`
+ // The ID of the member who maintains this feature flag
+ MaintainerId *string `json:"maintainerId,omitempty"`
+ // The key of the team that maintains this feature flag
+ MaintainerTeamKey *string `json:"maintainerTeamKey,omitempty"`
}
// NewFeatureFlagBody instantiates a new FeatureFlagBody object
@@ -430,6 +434,70 @@ func (o *FeatureFlagBody) SetMigrationSettings(v MigrationSettingsPost) {
o.MigrationSettings = &v
}
+// GetMaintainerId returns the MaintainerId field value if set, zero value otherwise.
+func (o *FeatureFlagBody) GetMaintainerId() string {
+ if o == nil || o.MaintainerId == nil {
+ var ret string
+ return ret
+ }
+ return *o.MaintainerId
+}
+
+// GetMaintainerIdOk returns a tuple with the MaintainerId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *FeatureFlagBody) GetMaintainerIdOk() (*string, bool) {
+ if o == nil || o.MaintainerId == nil {
+ return nil, false
+ }
+ return o.MaintainerId, true
+}
+
+// HasMaintainerId returns a boolean if a field has been set.
+func (o *FeatureFlagBody) HasMaintainerId() bool {
+ if o != nil && o.MaintainerId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMaintainerId gets a reference to the given string and assigns it to the MaintainerId field.
+func (o *FeatureFlagBody) SetMaintainerId(v string) {
+ o.MaintainerId = &v
+}
+
+// GetMaintainerTeamKey returns the MaintainerTeamKey field value if set, zero value otherwise.
+func (o *FeatureFlagBody) GetMaintainerTeamKey() string {
+ if o == nil || o.MaintainerTeamKey == nil {
+ var ret string
+ return ret
+ }
+ return *o.MaintainerTeamKey
+}
+
+// GetMaintainerTeamKeyOk returns a tuple with the MaintainerTeamKey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *FeatureFlagBody) GetMaintainerTeamKeyOk() (*string, bool) {
+ if o == nil || o.MaintainerTeamKey == nil {
+ return nil, false
+ }
+ return o.MaintainerTeamKey, true
+}
+
+// HasMaintainerTeamKey returns a boolean if a field has been set.
+func (o *FeatureFlagBody) HasMaintainerTeamKey() bool {
+ if o != nil && o.MaintainerTeamKey != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMaintainerTeamKey gets a reference to the given string and assigns it to the MaintainerTeamKey field.
+func (o *FeatureFlagBody) SetMaintainerTeamKey(v string) {
+ o.MaintainerTeamKey = &v
+}
+
func (o FeatureFlagBody) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
@@ -468,6 +536,12 @@ func (o FeatureFlagBody) MarshalJSON() ([]byte, error) {
if o.MigrationSettings != nil {
toSerialize["migrationSettings"] = o.MigrationSettings
}
+ if o.MaintainerId != nil {
+ toSerialize["maintainerId"] = o.MaintainerId
+ }
+ if o.MaintainerTeamKey != nil {
+ toSerialize["maintainerTeamKey"] = o.MaintainerTeamKey
+ }
return json.Marshal(toSerialize)
}
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_listing_rep.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_listing_rep.go
index 180ee4ee..c7891ea2 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_listing_rep.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_listing_rep.go
@@ -56,11 +56,11 @@ type MetricListingRep struct {
EventKey *string `json:"eventKey,omitempty"`
// An array of randomization units allowed for this metric
RandomizationUnits []string `json:"randomizationUnits,omitempty"`
- // The method in which multiple unit event values are aggregated
+ // The method by which multiple unit event values are aggregated
UnitAggregationType *string `json:"unitAggregationType,omitempty"`
- // The strategy for analyzing metric events
+ // The method for analyzing metric events
AnalysisType *string `json:"analysisType,omitempty"`
- // The percentile, an integer denoting the target percentile between 0 and 100. Only present when analysisType
is percentile
.
+ // The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType
is percentile
.
PercentileValue *int32 `json:"percentileValue,omitempty"`
EventDefault *MetricEventDefaultRep `json:"eventDefault,omitempty"`
}
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_post.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_post.go
index c4423790..c8e2f927 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_post.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_post.go
@@ -43,8 +43,13 @@ type MetricPost struct {
Tags []string `json:"tags,omitempty"`
// An array of randomization units allowed for this metric
RandomizationUnits []string `json:"randomizationUnits,omitempty"`
- // The method in which multiple unit event values are aggregated
+ // The method by which multiple unit event values are aggregated
UnitAggregationType *string `json:"unitAggregationType,omitempty"`
+ // The method for analyzing metric events
+ AnalysisType *string `json:"analysisType,omitempty"`
+ // The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType
is percentile
.
+ PercentileValue *int32 `json:"percentileValue,omitempty"`
+ EventDefault *MetricEventDefaultRep `json:"eventDefault,omitempty"`
}
// NewMetricPost instantiates a new MetricPost object
@@ -498,6 +503,102 @@ func (o *MetricPost) SetUnitAggregationType(v string) {
o.UnitAggregationType = &v
}
+// GetAnalysisType returns the AnalysisType field value if set, zero value otherwise.
+func (o *MetricPost) GetAnalysisType() string {
+ if o == nil || o.AnalysisType == nil {
+ var ret string
+ return ret
+ }
+ return *o.AnalysisType
+}
+
+// GetAnalysisTypeOk returns a tuple with the AnalysisType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MetricPost) GetAnalysisTypeOk() (*string, bool) {
+ if o == nil || o.AnalysisType == nil {
+ return nil, false
+ }
+ return o.AnalysisType, true
+}
+
+// HasAnalysisType returns a boolean if a field has been set.
+func (o *MetricPost) HasAnalysisType() bool {
+ if o != nil && o.AnalysisType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAnalysisType gets a reference to the given string and assigns it to the AnalysisType field.
+func (o *MetricPost) SetAnalysisType(v string) {
+ o.AnalysisType = &v
+}
+
+// GetPercentileValue returns the PercentileValue field value if set, zero value otherwise.
+func (o *MetricPost) GetPercentileValue() int32 {
+ if o == nil || o.PercentileValue == nil {
+ var ret int32
+ return ret
+ }
+ return *o.PercentileValue
+}
+
+// GetPercentileValueOk returns a tuple with the PercentileValue field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MetricPost) GetPercentileValueOk() (*int32, bool) {
+ if o == nil || o.PercentileValue == nil {
+ return nil, false
+ }
+ return o.PercentileValue, true
+}
+
+// HasPercentileValue returns a boolean if a field has been set.
+func (o *MetricPost) HasPercentileValue() bool {
+ if o != nil && o.PercentileValue != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPercentileValue gets a reference to the given int32 and assigns it to the PercentileValue field.
+func (o *MetricPost) SetPercentileValue(v int32) {
+ o.PercentileValue = &v
+}
+
+// GetEventDefault returns the EventDefault field value if set, zero value otherwise.
+func (o *MetricPost) GetEventDefault() MetricEventDefaultRep {
+ if o == nil || o.EventDefault == nil {
+ var ret MetricEventDefaultRep
+ return ret
+ }
+ return *o.EventDefault
+}
+
+// GetEventDefaultOk returns a tuple with the EventDefault field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MetricPost) GetEventDefaultOk() (*MetricEventDefaultRep, bool) {
+ if o == nil || o.EventDefault == nil {
+ return nil, false
+ }
+ return o.EventDefault, true
+}
+
+// HasEventDefault returns a boolean if a field has been set.
+func (o *MetricPost) HasEventDefault() bool {
+ if o != nil && o.EventDefault != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEventDefault gets a reference to the given MetricEventDefaultRep and assigns it to the EventDefault field.
+func (o *MetricPost) SetEventDefault(v MetricEventDefaultRep) {
+ o.EventDefault = &v
+}
+
func (o MetricPost) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
@@ -542,6 +643,15 @@ func (o MetricPost) MarshalJSON() ([]byte, error) {
if o.UnitAggregationType != nil {
toSerialize["unitAggregationType"] = o.UnitAggregationType
}
+ if o.AnalysisType != nil {
+ toSerialize["analysisType"] = o.AnalysisType
+ }
+ if o.PercentileValue != nil {
+ toSerialize["percentileValue"] = o.PercentileValue
+ }
+ if o.EventDefault != nil {
+ toSerialize["eventDefault"] = o.EventDefault
+ }
return json.Marshal(toSerialize)
}
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_rep.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_rep.go
index bd6beb37..dcad9c4b 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_rep.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_metric_rep.go
@@ -56,11 +56,11 @@ type MetricRep struct {
EventKey *string `json:"eventKey,omitempty"`
// An array of randomization units allowed for this metric
RandomizationUnits []string `json:"randomizationUnits,omitempty"`
- // The method in which multiple unit event values are aggregated
+ // The method by which multiple unit event values are aggregated
UnitAggregationType *string `json:"unitAggregationType,omitempty"`
- // The strategy for analyzing metric events
+ // The method for analyzing metric events
AnalysisType *string `json:"analysisType,omitempty"`
- // The percentile, an integer denoting the target percentile between 0 and 100. Only present when analysisType
is percentile
.
+ // The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType
is percentile
.
PercentileValue *int32 `json:"percentileValue,omitempty"`
EventDefault *MetricEventDefaultRep `json:"eventDefault,omitempty"`
Experiments []DependentExperimentRep `json:"experiments,omitempty"`
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_project.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_project.go
index 714c9a07..7fc4a3bc 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/model_project.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_project.go
@@ -28,6 +28,7 @@ type Project struct {
DefaultClientSideAvailability *ClientSideAvailability `json:"defaultClientSideAvailability,omitempty"`
// A human-friendly name for the project
Name string `json:"name"`
+ Access *Access `json:"_access,omitempty"`
// A list of tags for the project
Tags []string `json:"tags"`
// The key of the default release pipeline for this project
@@ -210,6 +211,38 @@ func (o *Project) SetName(v string) {
o.Name = v
}
+// GetAccess returns the Access field value if set, zero value otherwise.
+func (o *Project) GetAccess() Access {
+ if o == nil || o.Access == nil {
+ var ret Access
+ return ret
+ }
+ return *o.Access
+}
+
+// GetAccessOk returns a tuple with the Access field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Project) GetAccessOk() (*Access, bool) {
+ if o == nil || o.Access == nil {
+ return nil, false
+ }
+ return o.Access, true
+}
+
+// HasAccess returns a boolean if a field has been set.
+func (o *Project) HasAccess() bool {
+ if o != nil && o.Access != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAccess gets a reference to the given Access and assigns it to the Access field.
+func (o *Project) SetAccess(v Access) {
+ o.Access = &v
+}
+
// GetTags returns the Tags field value
func (o *Project) GetTags() []string {
if o == nil {
@@ -318,6 +351,9 @@ func (o Project) MarshalJSON() ([]byte, error) {
if true {
toSerialize["name"] = o.Name
}
+ if o.Access != nil {
+ toSerialize["_access"] = o.Access
+ }
if true {
toSerialize["tags"] = o.Tags
}
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_project_rep.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_project_rep.go
index 0e35f381..3115777e 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/model_project_rep.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_project_rep.go
@@ -28,6 +28,7 @@ type ProjectRep struct {
DefaultClientSideAvailability *ClientSideAvailability `json:"defaultClientSideAvailability,omitempty"`
// A human-friendly name for the project
Name string `json:"name"`
+ Access *Access `json:"_access,omitempty"`
// A list of tags for the project
Tags []string `json:"tags"`
// The key of the default release pipeline for this project
@@ -212,6 +213,38 @@ func (o *ProjectRep) SetName(v string) {
o.Name = v
}
+// GetAccess returns the Access field value if set, zero value otherwise.
+func (o *ProjectRep) GetAccess() Access {
+ if o == nil || o.Access == nil {
+ var ret Access
+ return ret
+ }
+ return *o.Access
+}
+
+// GetAccessOk returns a tuple with the Access field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *ProjectRep) GetAccessOk() (*Access, bool) {
+ if o == nil || o.Access == nil {
+ return nil, false
+ }
+ return o.Access, true
+}
+
+// HasAccess returns a boolean if a field has been set.
+func (o *ProjectRep) HasAccess() bool {
+ if o != nil && o.Access != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAccess gets a reference to the given Access and assigns it to the Access field.
+func (o *ProjectRep) SetAccess(v Access) {
+ o.Access = &v
+}
+
// GetTags returns the Tags field value
func (o *ProjectRep) GetTags() []string {
if o == nil {
@@ -312,6 +345,9 @@ func (o ProjectRep) MarshalJSON() ([]byte, error) {
if true {
toSerialize["name"] = o.Name
}
+ if o.Access != nil {
+ toSerialize["_access"] = o.Access
+ }
if true {
toSerialize["tags"] = o.Tags
}
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_release_audience.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_release_audience.go
new file mode 100644
index 00000000..6be83751
--- /dev/null
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_release_audience.go
@@ -0,0 +1,139 @@
+/*
+LaunchDarkly REST API
+
+# Overview ## Authentication LaunchDarkly's REST API uses the HTTPS protocol with a minimum TLS version of 1.2. All REST API resources are authenticated with either [personal or service access tokens](https://docs.launchdarkly.com/home/account-security/api-access-tokens), or session cookies. Other authentication mechanisms are not supported. You can manage personal access tokens on your [**Account settings**](https://app.launchdarkly.com/settings/tokens) page. LaunchDarkly also has SDK keys, mobile keys, and client-side IDs that are used by our server-side SDKs, mobile SDKs, and JavaScript-based SDKs, respectively. **These keys cannot be used to access our REST API**. These keys are environment-specific, and can only perform read-only operations such as fetching feature flag settings. | Auth mechanism | Allowed resources | Use cases | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------------------- | | [Personal or service access tokens](https://docs.launchdarkly.com/home/account-security/api-access-tokens) | Can be customized on a per-token basis | Building scripts, custom integrations, data export. | | SDK keys | Can only access read-only resources specific to server-side SDKs. Restricted to a single environment. | Server-side SDKs | | Mobile keys | Can only access read-only resources specific to mobile SDKs, and only for flags marked available to mobile keys. Restricted to a single environment. | Mobile SDKs | | Client-side ID | Can only access read-only resources specific to JavaScript-based client-side SDKs, and only for flags marked available to client-side. Restricted to a single environment. | Client-side JavaScript | > #### Keep your access tokens and SDK keys private > > Access tokens should _never_ be exposed in untrusted contexts. Never put an access token in client-side JavaScript, or embed it in a mobile application. LaunchDarkly has special mobile keys that you can embed in mobile apps. If you accidentally expose an access token or SDK key, you can reset it from your [**Account settings**](https://app.launchdarkly.com/settings/tokens) page. > > The client-side ID is safe to embed in untrusted contexts. It's designed for use in client-side JavaScript. ### Authentication using request header The preferred way to authenticate with the API is by adding an `Authorization` header containing your access token to your requests. The value of the `Authorization` header must be your access token. Manage personal access tokens from the [**Account settings**](https://app.launchdarkly.com/settings/tokens) page. ### Authentication using session cookie For testing purposes, you can make API calls directly from your web browser. If you are logged in to the LaunchDarkly application, the API will use your existing session to authenticate calls. If you have a [role](https://docs.launchdarkly.com/home/team/built-in-roles) other than Admin, or have a [custom role](https://docs.launchdarkly.com/home/team/custom-roles) defined, you may not have permission to perform some API calls. You will receive a `401` response code in that case. > ### Modifying the Origin header causes an error > > LaunchDarkly validates that the Origin header for any API request authenticated by a session cookie matches the expected Origin header. The expected Origin header is `https://app.launchdarkly.com`. > > If the Origin header does not match what's expected, LaunchDarkly returns an error. This error can prevent the LaunchDarkly app from working correctly. > > Any browser extension that intentionally changes the Origin header can cause this problem. For example, the `Allow-Control-Allow-Origin: *` Chrome extension changes the Origin header to `http://evil.com` and causes the app to fail. > > To prevent this error, do not modify your Origin header. > > LaunchDarkly does not require origin matching when authenticating with an access token, so this issue does not affect normal API usage. ## Representations All resources expect and return JSON response bodies. Error responses also send a JSON body. To learn more about the error format of the API, read [Errors](/#section/Overview/Errors). In practice this means that you always get a response with a `Content-Type` header set to `application/json`. In addition, request bodies for `PATCH`, `POST`, and `PUT` requests must be encoded as JSON with a `Content-Type` header set to `application/json`. ### Summary and detailed representations When you fetch a list of resources, the response includes only the most important attributes of each resource. This is a _summary representation_ of the resource. When you fetch an individual resource, such as a single feature flag, you receive a _detailed representation_ of the resource. The best way to find a detailed representation is to follow links. Every summary representation includes a link to its detailed representation. ### Expanding responses Sometimes the detailed representation of a resource does not include all of the attributes of the resource by default. If this is the case, the request method will clearly document this and describe which attributes you can include in an expanded response. To include the additional attributes, append the `expand` request parameter to your request and add a comma-separated list of the attributes to include. For example, when you append `?expand=members,roles` to the [Get team](/tag/Teams#operation/getTeam) endpoint, the expanded response includes both of these attributes. ### Links and addressability The best way to navigate the API is by following links. These are attributes in representations that link to other resources. The API always uses the same format for links: - Links to other resources within the API are encapsulated in a `_links` object - If the resource has a corresponding link to HTML content on the site, it is stored in a special `_site` link Each link has two attributes: - An `href`, which contains the URL - A `type`, which describes the content type For example, a feature resource might return the following: ```json { \"_links\": { \"parent\": { \"href\": \"/api/features\", \"type\": \"application/json\" }, \"self\": { \"href\": \"/api/features/sort.order\", \"type\": \"application/json\" } }, \"_site\": { \"href\": \"/features/sort.order\", \"type\": \"text/html\" } } ``` From this, you can navigate to the parent collection of features by following the `parent` link, or navigate to the site page for the feature by following the `_site` link. Collections are always represented as a JSON object with an `items` attribute containing an array of representations. Like all other representations, collections have `_links` defined at the top level. Paginated collections include `first`, `last`, `next`, and `prev` links containing a URL with the respective set of elements in the collection. ## Updates Resources that accept partial updates use the `PATCH` verb. Most resources support the [JSON patch](/reference#updates-using-json-patch) format. Some resources also support the [JSON merge patch](/reference#updates-using-json-merge-patch) format, and some resources support the [semantic patch](/reference#updates-using-semantic-patch) format, which is a way to specify the modifications to perform as a set of executable instructions. Each resource supports optional [comments](/reference#updates-with-comments) that you can submit with updates. Comments appear in outgoing webhooks, the audit log, and other integrations. When a resource supports both JSON patch and semantic patch, we document both in the request method. However, the specific request body fields and descriptions included in our documentation only match one type of patch or the other. ### Updates using JSON patch [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) is a way to specify the modifications to perform on a resource. JSON patch uses paths and a limited set of operations to describe how to transform the current state of the resource into a new state. JSON patch documents are always arrays, where each element contains an operation, a path to the field to update, and the new value. For example, in this feature flag representation: ```json { \"name\": \"New recommendations engine\", \"key\": \"engine.enable\", \"description\": \"This is the description\", ... } ``` You can change the feature flag's description with the following patch document: ```json [{ \"op\": \"replace\", \"path\": \"/description\", \"value\": \"This is the new description\" }] ``` You can specify multiple modifications to perform in a single request. You can also test that certain preconditions are met before applying the patch: ```json [ { \"op\": \"test\", \"path\": \"/version\", \"value\": 10 }, { \"op\": \"replace\", \"path\": \"/description\", \"value\": \"The new description\" } ] ``` The above patch request tests whether the feature flag's `version` is `10`, and if so, changes the feature flag's description. Attributes that are not editable, such as a resource's `_links`, have names that start with an underscore. ### Updates using JSON merge patch [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) is another format for specifying the modifications to perform on a resource. JSON merge patch is less expressive than JSON patch. However, in many cases it is simpler to construct a merge patch document. For example, you can change a feature flag's description with the following merge patch document: ```json { \"description\": \"New flag description\" } ``` ### Updates using semantic patch Some resources support the semantic patch format. A semantic patch is a way to specify the modifications to perform on a resource as a set of executable instructions. Semantic patch allows you to be explicit about intent using precise, custom instructions. In many cases, you can define semantic patch instructions independently of the current state of the resource. This can be useful when defining a change that may be applied at a future date. To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. Here's how: ``` Content-Type: application/json; domain-model=launchdarkly.semanticpatch ``` If you call a semantic patch resource without this header, you will receive a `400` response because your semantic patch will be interpreted as a JSON patch. The body of a semantic patch request takes the following properties: * `comment` (string): (Optional) A description of the update. * `environmentKey` (string): (Required for some resources only) The environment key. * `instructions` (array): (Required) A list of actions the update should perform. Each action in the list must be an object with a `kind` property that indicates the instruction. If the instruction requires parameters, you must include those parameters as additional fields in the object. The documentation for each resource that supports semantic patch includes the available instructions and any additional parameters. For example: ```json { \"comment\": \"optional comment\", \"instructions\": [ {\"kind\": \"turnFlagOn\"} ] } ``` If any instruction in the patch encounters an error, the endpoint returns an error and will not change the resource. In general, each instruction silently does nothing if the resource is already in the state you request. ### Updates with comments You can submit optional comments with `PATCH` changes. To submit a comment along with a JSON patch document, use the following format: ```json { \"comment\": \"This is a comment string\", \"patch\": [{ \"op\": \"replace\", \"path\": \"/description\", \"value\": \"The new description\" }] } ``` To submit a comment along with a JSON merge patch document, use the following format: ```json { \"comment\": \"This is a comment string\", \"merge\": { \"description\": \"New flag description\" } } ``` To submit a comment along with a semantic patch, use the following format: ```json { \"comment\": \"This is a comment string\", \"instructions\": [ {\"kind\": \"turnFlagOn\"} ] } ``` ## Errors The API always returns errors in a common format. Here's an example: ```json { \"code\": \"invalid_request\", \"message\": \"A feature with that key already exists\", \"id\": \"30ce6058-87da-11e4-b116-123b93f75cba\" } ``` The `code` indicates the general class of error. The `message` is a human-readable explanation of what went wrong. The `id` is a unique identifier. Use it when you're working with LaunchDarkly Support to debug a problem with a specific API call. ### HTTP status error response codes | Code | Definition | Description | Possible Solution | | ---- | ----------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | 400 | Invalid request | The request cannot be understood. | Ensure JSON syntax in request body is correct. | | 401 | Invalid access token | Requestor is unauthorized or does not have permission for this API call. | Ensure your API access token is valid and has the appropriate permissions. | | 403 | Forbidden | Requestor does not have access to this resource. | Ensure that the account member or access token has proper permissions set. | | 404 | Invalid resource identifier | The requested resource is not valid. | Ensure that the resource is correctly identified by ID or key. | | 405 | Method not allowed | The request method is not allowed on this resource. | Ensure that the HTTP verb is correct. | | 409 | Conflict | The API request can not be completed because it conflicts with a concurrent API request. | Retry your request. | | 422 | Unprocessable entity | The API request can not be completed because the update description can not be understood. | Ensure that the request body is correct for the type of patch you are using, either JSON patch or semantic patch. | 429 | Too many requests | Read [Rate limiting](/#section/Overview/Rate-limiting). | Wait and try again later. | ## CORS The LaunchDarkly API supports Cross Origin Resource Sharing (CORS) for AJAX requests from any origin. If an `Origin` header is given in a request, it will be echoed as an explicitly allowed origin. Otherwise the request returns a wildcard, `Access-Control-Allow-Origin: *`. For more information on CORS, read the [CORS W3C Recommendation](http://www.w3.org/TR/cors). Example CORS headers might look like: ```http Access-Control-Allow-Headers: Accept, Content-Type, Content-Length, Accept-Encoding, Authorization Access-Control-Allow-Methods: OPTIONS, GET, DELETE, PATCH Access-Control-Allow-Origin: * Access-Control-Max-Age: 300 ``` You can make authenticated CORS calls just as you would make same-origin calls, using either [token or session-based authentication](/#section/Overview/Authentication). If you are using session authentication, you should set the `withCredentials` property for your `xhr` request to `true`. You should never expose your access tokens to untrusted entities. ## Rate limiting We use several rate limiting strategies to ensure the availability of our APIs. Rate-limited calls to our APIs return a `429` status code. Calls to our APIs include headers indicating the current rate limit status. The specific headers returned depend on the API route being called. The limits differ based on the route, authentication mechanism, and other factors. Routes that are not rate limited may not contain any of the headers described below. > ### Rate limiting and SDKs > > LaunchDarkly SDKs are never rate limited and do not use the API endpoints defined here. LaunchDarkly uses a different set of approaches, including streaming/server-sent events and a global CDN, to ensure availability to the routes used by LaunchDarkly SDKs. ### Global rate limits Authenticated requests are subject to a global limit. This is the maximum number of calls that your account can make to the API per ten seconds. All service and personal access tokens on the account share this limit, so exceeding the limit with one access token will impact other tokens. Calls that are subject to global rate limits may return the headers below: | Header name | Description | | ------------------------------ | -------------------------------------------------------------------------------- | | `X-Ratelimit-Global-Remaining` | The maximum number of requests the account is permitted to make per ten seconds. | | `X-Ratelimit-Reset` | The time at which the current rate limit window resets in epoch milliseconds. | We do not publicly document the specific number of calls that can be made globally. This limit may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limit. ### Route-level rate limits Some authenticated routes have custom rate limits. These also reset every ten seconds. Any service or personal access tokens hitting the same route share this limit, so exceeding the limit with one access token may impact other tokens. Calls that are subject to route-level rate limits return the headers below: | Header name | Description | | ----------------------------- | ----------------------------------------------------------------------------------------------------- | | `X-Ratelimit-Route-Remaining` | The maximum number of requests to the current route the account is permitted to make per ten seconds. | | `X-Ratelimit-Reset` | The time at which the current rate limit window resets in epoch milliseconds. | A _route_ represents a specific URL pattern and verb. For example, the [Delete environment](/tag/Environments#operation/deleteEnvironment) endpoint is considered a single route, and each call to delete an environment counts against your route-level rate limit for that route. We do not publicly document the specific number of calls that an account can make to each endpoint per ten seconds. These limits may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limits. ### IP-based rate limiting We also employ IP-based rate limiting on some API routes. If you hit an IP-based rate limit, your API response will include a `Retry-After` header indicating how long to wait before re-trying the call. Clients must wait at least `Retry-After` seconds before making additional calls to our API, and should employ jitter and backoff strategies to avoid triggering rate limits again. ## OpenAPI (Swagger) and client libraries We have a [complete OpenAPI (Swagger) specification](https://app.launchdarkly.com/api/v2/openapi.json) for our API. We auto-generate multiple client libraries based on our OpenAPI specification. To learn more, visit the [collection of client libraries on GitHub](https://github.com/search?q=topic%3Alaunchdarkly-api+org%3Alaunchdarkly&type=Repositories). You can also use this specification to generate client libraries to interact with our REST API in your language of choice. Our OpenAPI specification is supported by several API-based tools such as Postman and Insomnia. In many cases, you can directly import our specification to explore our APIs. ## Method overriding Some firewalls and HTTP clients restrict the use of verbs other than `GET` and `POST`. In those environments, our API endpoints that use `DELETE`, `PATCH`, and `PUT` verbs are inaccessible. To avoid this issue, our API supports the `X-HTTP-Method-Override` header, allowing clients to \"tunnel\" `DELETE`, `PATCH`, and `PUT` requests using a `POST` request. For example, to call a `PATCH` endpoint using a `POST` request, you can include `X-HTTP-Method-Override:PATCH` as a header. ## Beta resources We sometimes release new API resources in **beta** status before we release them with general availability. Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible. We try to promote resources into general availability as quickly as possible. This happens after sufficient testing and when we're satisfied that we no longer need to make backwards-incompatible changes. We mark beta resources with a \"Beta\" callout in our documentation, pictured below: > ### This feature is in beta > > To use this feature, pass in a header including the `LD-API-Version` key with value set to `beta`. Use this header with each call. To learn more, read [Beta resources](/#section/Overview/Beta-resources). > > Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible. ### Using beta resources To use a beta resource, you must include a header in the request. If you call a beta resource without this header, you receive a `403` response. Use this header: ``` LD-API-Version: beta ``` ## Federal environments The version of LaunchDarkly that is available on domains controlled by the United States government is different from the version of LaunchDarkly available to the general public. If you are an employee or contractor for a United States federal agency and use LaunchDarkly in your work, you likely use the federal instance of LaunchDarkly. If you are working in the federal instance of LaunchDarkly, the base URI for each request is `https://app.launchdarkly.us`. In the \"Try it\" sandbox for each request, click the request path to view the complete resource path for the federal environment. To learn more, read [LaunchDarkly in federal environments](https://docs.launchdarkly.com/home/advanced/federal). ## Versioning We try hard to keep our REST API backwards compatible, but we occasionally have to make backwards-incompatible changes in the process of shipping new features. These breaking changes can cause unexpected behavior if you don't prepare for them accordingly. Updates to our REST API include support for the latest features in LaunchDarkly. We also release a new version of our REST API every time we make a breaking change. We provide simultaneous support for multiple API versions so you can migrate from your current API version to a new version at your own pace. ### Setting the API version per request You can set the API version on a specific request by sending an `LD-API-Version` header, as shown in the example below: ``` LD-API-Version: 20220603 ``` The header value is the version number of the API version you would like to request. The number for each version corresponds to the date the version was released in `yyyymmdd` format. In the example above the version `20220603` corresponds to June 03, 2022. ### Setting the API version per access token When you create an access token, you must specify a specific version of the API to use. This ensures that integrations using this token cannot be broken by version changes. Tokens created before versioning was released have their version set to `20160426`, which is the version of the API that existed before the current versioning scheme, so that they continue working the same way they did before versioning. If you would like to upgrade your integration to use a new API version, you can explicitly set the header described above. > ### Best practice: Set the header for every client or integration > > We recommend that you set the API version header explicitly in any client or integration you build. > > Only rely on the access token API version during manual testing. ### API version changelog |Version
| Changes | End of life (EOL) |---|---|---| | `20220603` | - Changed the [list projects](/tag/Projects#operation/getProjects) return value:
- Response is now paginated with a default limit of `20`.
- Added support for filter and sort.
- The project `environments` field is now expandable. This field is omitted by default.
- Changed the [get project](/tag/Projects#operation/getProject) return value:
- The `environments` field is now expandable. This field is omitted by default.
| Current | | `20210729` | - Changed the [create approval request](/tag/Approvals#operation/postApprovalRequest) return value. It now returns HTTP Status Code `201` instead of `200`.
- Changed the [get users](/tag/Users#operation/getUser) return value. It now returns a user record, not a user.
- Added additional optional fields to environment, segments, flags, members, and segments, including the ability to create big segments.
- Added default values for flag variations when new environments are created.
- Added filtering and pagination for getting flags and members, including `limit`, `number`, `filter`, and `sort` query parameters.
- Added endpoints for expiring user targets for flags and segments, scheduled changes, access tokens, Relay Proxy configuration, integrations and subscriptions, and approvals.
| 2023-06-03 | | `20191212` | - [List feature flags](/tag/Feature-flags#operation/getFeatureFlags) now defaults to sending summaries of feature flag configurations, equivalent to setting the query parameter `summary=true`. Summaries omit flag targeting rules and individual user targets from the payload.
- Added endpoints for flags, flag status, projects, environments, audit logs, members, users, custom roles, segments, usage, streams, events, and data export.
| 2022-07-29 | | `20160426` | - Initial versioning of API. Tokens created before versioning have their version set to this.
| 2020-12-12 |
+
+API version: 2.0
+Contact: support@launchdarkly.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package ldapi
+
+import (
+ "encoding/json"
+)
+
+// ReleaseAudience struct for ReleaseAudience
+type ReleaseAudience struct {
+ Environment EnvironmentSummary `json:"environment"`
+ // The release phase name
+ Name string `json:"name"`
+}
+
+// NewReleaseAudience instantiates a new ReleaseAudience object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewReleaseAudience(environment EnvironmentSummary, name string) *ReleaseAudience {
+ this := ReleaseAudience{}
+ this.Environment = environment
+ this.Name = name
+ return &this
+}
+
+// NewReleaseAudienceWithDefaults instantiates a new ReleaseAudience object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewReleaseAudienceWithDefaults() *ReleaseAudience {
+ this := ReleaseAudience{}
+ return &this
+}
+
+// GetEnvironment returns the Environment field value
+func (o *ReleaseAudience) GetEnvironment() EnvironmentSummary {
+ if o == nil {
+ var ret EnvironmentSummary
+ return ret
+ }
+
+ return o.Environment
+}
+
+// GetEnvironmentOk returns a tuple with the Environment field value
+// and a boolean to check if the value has been set.
+func (o *ReleaseAudience) GetEnvironmentOk() (*EnvironmentSummary, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Environment, true
+}
+
+// SetEnvironment sets field value
+func (o *ReleaseAudience) SetEnvironment(v EnvironmentSummary) {
+ o.Environment = v
+}
+
+// GetName returns the Name field value
+func (o *ReleaseAudience) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *ReleaseAudience) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *ReleaseAudience) SetName(v string) {
+ o.Name = v
+}
+
+func (o ReleaseAudience) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]interface{}{}
+ if true {
+ toSerialize["environment"] = o.Environment
+ }
+ if true {
+ toSerialize["name"] = o.Name
+ }
+ return json.Marshal(toSerialize)
+}
+
+type NullableReleaseAudience struct {
+ value *ReleaseAudience
+ isSet bool
+}
+
+func (v NullableReleaseAudience) Get() *ReleaseAudience {
+ return v.value
+}
+
+func (v *NullableReleaseAudience) Set(val *ReleaseAudience) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableReleaseAudience) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableReleaseAudience) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableReleaseAudience(val *ReleaseAudience) *NullableReleaseAudience {
+ return &NullableReleaseAudience{value: val, isSet: true}
+}
+
+func (v NullableReleaseAudience) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableReleaseAudience) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/vendor/github.com/launchdarkly/api-client-go/v15/model_release_phase.go b/vendor/github.com/launchdarkly/api-client-go/v15/model_release_phase.go
index 6f63004b..4bc7a0f0 100644
--- a/vendor/github.com/launchdarkly/api-client-go/v15/model_release_phase.go
+++ b/vendor/github.com/launchdarkly/api-client-go/v15/model_release_phase.go
@@ -27,14 +27,14 @@ type ReleasePhase struct {
CompletionDate *int64 `json:"_completionDate,omitempty"`
CompletedBy *CompletedBy `json:"_completedBy,omitempty"`
// A logical grouping of one or more environments that share attributes for rolling out changes
- Audiences []Audience `json:"_audiences"`
+ Audiences []ReleaseAudience `json:"_audiences"`
}
// NewReleasePhase instantiates a new ReleasePhase object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewReleasePhase(id string, name string, complete bool, creationDate int64, audiences []Audience) *ReleasePhase {
+func NewReleasePhase(id string, name string, complete bool, creationDate int64, audiences []ReleaseAudience) *ReleasePhase {
this := ReleasePhase{}
this.Id = id
this.Name = name
@@ -213,9 +213,9 @@ func (o *ReleasePhase) SetCompletedBy(v CompletedBy) {
}
// GetAudiences returns the Audiences field value
-func (o *ReleasePhase) GetAudiences() []Audience {
+func (o *ReleasePhase) GetAudiences() []ReleaseAudience {
if o == nil {
- var ret []Audience
+ var ret []ReleaseAudience
return ret
}
@@ -224,7 +224,7 @@ func (o *ReleasePhase) GetAudiences() []Audience {
// GetAudiencesOk returns a tuple with the Audiences field value
// and a boolean to check if the value has been set.
-func (o *ReleasePhase) GetAudiencesOk() ([]Audience, bool) {
+func (o *ReleasePhase) GetAudiencesOk() ([]ReleaseAudience, bool) {
if o == nil {
return nil, false
}
@@ -232,7 +232,7 @@ func (o *ReleasePhase) GetAudiencesOk() ([]Audience, bool) {
}
// SetAudiences sets field value
-func (o *ReleasePhase) SetAudiences(v []Audience) {
+func (o *ReleasePhase) SetAudiences(v []ReleaseAudience) {
o.Audiences = v
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 98b1b00b..65f83803 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -77,7 +77,7 @@ github.com/kyoh86/richgo/editor/test
# github.com/kyoh86/xdg v1.2.0
## explicit; go 1.12
github.com/kyoh86/xdg
-# github.com/launchdarkly/api-client-go/v15 v15.0.0
+# github.com/launchdarkly/api-client-go/v15 v15.1.0
## explicit; go 1.13
github.com/launchdarkly/api-client-go/v15
# github.com/launchdarkly/json-patch v0.0.0-20180720210516-dd68d883319f