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
1,103 changes: 1,091 additions & 12 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions api/datadog/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,8 @@ func NewConfiguration() *Configuration {
"v2.GetOpenAPI": false,
"v2.ListAPIs": false,
"v2.UpdateOpenAPI": false,
"v2.AttachJiraIssue": false,
"v2.CancelThreatHuntingJob": false,
"v2.ConvertJobResultToSignal": false,
"v2.CreateJiraIssues": false,
"v2.DeleteThreatHuntingJob": false,
"v2.GetFinding": false,
"v2.GetRuleVersionHistory": false,
Expand Down Expand Up @@ -808,8 +806,18 @@ func NewConfiguration() *Configuration {
"v2.GetSLOReportJobStatus": false,
"v2.GetSPARecommendations": false,
"v2.GetSPARecommendationsWithShard": false,
"v2.CreateCustomRule": false,
"v2.CreateCustomRuleRevision": false,
"v2.CreateSCAResolveVulnerableSymbols": false,
"v2.CreateSCAResult": false,
"v2.DeleteCustomRule": false,
"v2.DeleteCustomRuleset": false,
"v2.GetCustomRule": false,
"v2.GetCustomRuleRevision": false,
"v2.GetCustomRuleset": false,
"v2.ListCustomRuleRevisions": false,
"v2.RevertCustomRuleRevision": false,
"v2.UpdateCustomRuleset": false,
"v2.AddMemberTeam": false,
"v2.ListMemberTeams": false,
"v2.RemoveMemberTeam": false,
Expand Down
18 changes: 0 additions & 18 deletions api/datadogV2/api_security_monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,6 @@ func (a *SecurityMonitoringApi) AttachJiraIssue(ctx _context.Context, body Attac
localVarReturnValue FindingCaseResponse
)

operationId := "v2.AttachJiraIssue"
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.SecurityMonitoringApi.AttachJiraIssue")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down Expand Up @@ -763,15 +754,6 @@ func (a *SecurityMonitoringApi) CreateJiraIssues(ctx _context.Context, body Crea
localVarReturnValue FindingCaseResponseArray
)

operationId := "v2.CreateJiraIssues"
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.SecurityMonitoringApi.CreateJiraIssues")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
Expand Down
Loading
Loading