Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90580,9 +90580,6 @@ paths:
operator: OR
permissions:
- test_optimization_settings_write
x-unstable: |-
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
post:
description: |-
Retrieve Flaky Tests Management repository-level policies for the given repository.
Expand Down Expand Up @@ -90627,9 +90624,6 @@ paths:
operator: OR
permissions:
- test_optimization_read
x-unstable: |-
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/ci/test-optimization/settings/service:
delete:
description: |-
Expand Down Expand Up @@ -90673,9 +90667,6 @@ paths:
operator: OR
permissions:
- test_optimization_settings_write
x-unstable: |-
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
patch:
description: |-
Partially update Test Optimization settings for a specific service identified by repository, service name, and environment.
Expand Down Expand Up @@ -90729,9 +90720,6 @@ paths:
operator: OR
permissions:
- test_optimization_settings_write
x-unstable: |-
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
post:
description: |-
Retrieve Test Optimization settings for a specific service identified by repository, service name, and environment.
Expand Down Expand Up @@ -90778,9 +90766,6 @@ paths:
operator: OR
permissions:
- test_optimization_read
x-unstable: |-
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/ci/tests/analytics/aggregate:
post:
description: |-
Expand Down Expand Up @@ -132177,9 +132162,6 @@ paths:
operator: OR
permissions:
- test_optimization_write
x-unstable: |-
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
post:
description: |-
List endpoint returning flaky tests from Flaky Test Management. Results are paginated.
Expand Down Expand Up @@ -132246,9 +132228,6 @@ paths:
operator: OR
permissions:
- test_optimization_read
x-unstable: |-
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/usage/application_security:
get:
deprecated: true
Expand Down
7 changes: 0 additions & 7 deletions api/datadog/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,13 +721,6 @@ func NewConfiguration() *Configuration {
"v2.GetChangeRequest": false,
"v2.UpdateChangeRequest": false,
"v2.UpdateChangeRequestDecision": false,
"v2.DeleteTestOptimizationServiceSettings": false,
"v2.GetFlakyTestsManagementPolicies": false,
"v2.GetTestOptimizationServiceSettings": false,
"v2.SearchFlakyTests": false,
"v2.UpdateFlakyTests": false,
"v2.UpdateFlakyTestsManagementPolicies": false,
"v2.UpdateTestOptimizationServiceSettings": false,
"v2.CreateAWSCloudAuthPersonaMapping": false,
"v2.DeleteAWSCloudAuthPersonaMapping": false,
"v2.GetAWSCloudAuthPersonaMapping": false,
Expand Down
65 changes: 0 additions & 65 deletions api/datadogV2/api_test_optimization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ package datadogV2

import (
_context "context"
_fmt "fmt"
_log "log"
_nethttp "net/http"
_neturl "net/url"

Expand All @@ -25,15 +23,6 @@ func (a *TestOptimizationApi) DeleteTestOptimizationServiceSettings(ctx _context
localVarPostBody interface{}
)

operationId := "v2.DeleteTestOptimizationServiceSettings"
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
if !isOperationEnabled {
return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
}
if isOperationEnabled && a.Client.Cfg.Debug {
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
}

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.DeleteTestOptimizationServiceSettings")
if err != nil {
return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down Expand Up @@ -105,15 +94,6 @@ func (a *TestOptimizationApi) GetFlakyTestsManagementPolicies(ctx _context.Conte
localVarReturnValue TestOptimizationFlakyTestsManagementPoliciesResponse
)

operationId := "v2.GetFlakyTestsManagementPolicies"
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
if !isOperationEnabled {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
}
if isOperationEnabled && a.Client.Cfg.Debug {
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
}

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.GetFlakyTestsManagementPolicies")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down Expand Up @@ -194,15 +174,6 @@ func (a *TestOptimizationApi) GetTestOptimizationServiceSettings(ctx _context.Co
localVarReturnValue TestOptimizationServiceSettingsResponse
)

operationId := "v2.GetTestOptimizationServiceSettings"
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
if !isOperationEnabled {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
}
if isOperationEnabled && a.Client.Cfg.Debug {
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
}

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.GetTestOptimizationServiceSettings")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down Expand Up @@ -321,15 +292,6 @@ func (a *TestOptimizationApi) SearchFlakyTests(ctx _context.Context, o ...Search
optionalParams = o[0]
}

operationId := "v2.SearchFlakyTests"
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
if !isOperationEnabled {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
}
if isOperationEnabled && a.Client.Cfg.Debug {
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
}

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.SearchFlakyTests")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down Expand Up @@ -482,15 +444,6 @@ func (a *TestOptimizationApi) UpdateFlakyTests(ctx _context.Context, body Update
localVarReturnValue UpdateFlakyTestsResponse
)

operationId := "v2.UpdateFlakyTests"
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
if !isOperationEnabled {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
}
if isOperationEnabled && a.Client.Cfg.Debug {
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
}

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.UpdateFlakyTests")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down Expand Up @@ -572,15 +525,6 @@ func (a *TestOptimizationApi) UpdateFlakyTestsManagementPolicies(ctx _context.Co
localVarReturnValue TestOptimizationFlakyTestsManagementPoliciesResponse
)

operationId := "v2.UpdateFlakyTestsManagementPolicies"
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
if !isOperationEnabled {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
}
if isOperationEnabled && a.Client.Cfg.Debug {
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
}

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.UpdateFlakyTestsManagementPolicies")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down Expand Up @@ -662,15 +606,6 @@ func (a *TestOptimizationApi) UpdateTestOptimizationServiceSettings(ctx _context
localVarReturnValue TestOptimizationServiceSettingsResponse
)

operationId := "v2.UpdateTestOptimizationServiceSettings"
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
if !isOperationEnabled {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
}
if isOperationEnabled && a.Client.Cfg.Debug {
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
}

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.UpdateTestOptimizationServiceSettings")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.DeleteTestOptimizationServiceSettings", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
r, err := api.DeleteTestOptimizationServiceSettings(ctx, body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.GetFlakyTestsManagementPolicies", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
resp, r, err := api.GetFlakyTestsManagementPolicies(ctx, body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.GetTestOptimizationServiceSettings", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
resp, r, err := api.GetTestOptimizationServiceSettings(ctx, body)
Expand Down
1 change: 0 additions & 1 deletion examples/v2/test-optimization/SearchFlakyTests.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.SearchFlakyTests", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
resp, r, err := api.SearchFlakyTests(ctx, *datadogV2.NewSearchFlakyTestsOptionalParameters().WithBody(body))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.SearchFlakyTests", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
resp, _ := api.SearchFlakyTestsWithPagination(ctx, *datadogV2.NewSearchFlakyTestsOptionalParameters().WithBody(body))
Expand Down
1 change: 0 additions & 1 deletion examples/v2/test-optimization/UpdateFlakyTests.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.UpdateFlakyTests", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
resp, r, err := api.UpdateFlakyTests(ctx, body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.UpdateFlakyTestsManagementPolicies", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
resp, r, err := api.UpdateFlakyTestsManagementPolicies(ctx, body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func main() {
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("v2.UpdateTestOptimizationServiceSettings", true)
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewTestOptimizationApi(apiClient)
resp, r, err := api.UpdateTestOptimizationServiceSettings(ctx, body)
Expand Down
Loading
Loading