Skip to content

Commit

Permalink
Regenerate client from commit d83fe206 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jul 11, 2024
1 parent b35abfc commit 460d128
Show file tree
Hide file tree
Showing 15 changed files with 763 additions and 54 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-11 14:29:36.223481",
"spec_repo_commit": "3eedf0af"
"regenerated": "2024-07-11 16:35:18.052271",
"spec_repo_commit": "d83fe206"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-11 14:29:36.242281",
"spec_repo_commit": "3eedf0af"
"regenerated": "2024-07-11 16:35:18.070573",
"spec_repo_commit": "d83fe206"
}
}
}
86 changes: 86 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17377,6 +17377,18 @@ components:
required:
- status
type: object
SecurityMonitoringRuleConvertPayload:
description: Convert a rule from JSON to Terraform.
oneOf:
- $ref: '#/components/schemas/SecurityMonitoringStandardRulePayload'
- $ref: '#/components/schemas/SecurityMonitoringSignalRulePayload'
SecurityMonitoringRuleConvertResponse:
description: Result of the convert rule request containing Terraform content.
properties:
terraformContent:
description: Terraform string as a result of converting the rule from JSON.
type: string
type: object
SecurityMonitoringRuleCreatePayload:
description: Create a new rule.
oneOf:
Expand Down Expand Up @@ -33246,6 +33258,47 @@ paths:
tags:
- Security Monitoring
x-codegen-request-body-name: body
/api/v2/security_monitoring/rules/convert:
post:
description: 'Convert a rule that doesn''t (yet) exist from JSON to Terraform
for datadog provider

resource datadog_security_monitoring_rule.'
operationId: ConvertSecurityMonitoringRuleFromJSONToTerraform
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityMonitoringRuleConvertPayload'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityMonitoringRuleConvertResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'401':
$ref: '#/components/responses/ConcurrentModificationResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- security_monitoring_rules_write
summary: Convert a rule from JSON to Terraform
tags:
- Security Monitoring
x-codegen-request-body-name: body
x-unstable: '**Note**: This feature is in private beta. Reach out to support
to request access.'
/api/v2/security_monitoring/rules/test:
post:
description: Test a rule.
Expand Down Expand Up @@ -33403,6 +33456,39 @@ paths:
tags:
- Security Monitoring
x-codegen-request-body-name: body
/api/v2/security_monitoring/rules/{rule_id}/convert:
get:
description: 'Convert an existing rule from JSON to Terraform for datadog provider

resource datadog_security_monitoring_rule.'
operationId: ConvertExistingSecurityMonitoringRule
parameters:
- $ref: '#/components/parameters/SecurityMonitoringRuleID'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityMonitoringRuleConvertResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- security_monitoring_rules_read
summary: Convert an existing rule from JSON to Terraform
tags:
- Security Monitoring
x-unstable: '**Note**: This feature is in private beta. Reach out to support
to request access.'
/api/v2/security_monitoring/rules/{rule_id}/test:
post:
description: Test an existing rule.
Expand Down
102 changes: 52 additions & 50 deletions api/datadog/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,56 +323,58 @@ func NewConfiguration() *Configuration {
},
},
unstableOperations: map[string]bool{
"v2.CreateOpenAPI": false,
"v2.DeleteOpenAPI": false,
"v2.GetOpenAPI": false,
"v2.ListAPIs": false,
"v2.UpdateOpenAPI": false,
"v2.GetActiveBillingDimensions": false,
"v2.GetMonthlyCostAttribution": false,
"v2.CreateDORADeployment": false,
"v2.CreateDORAIncident": false,
"v2.CreateIncident": false,
"v2.CreateIncidentIntegration": false,
"v2.CreateIncidentTodo": false,
"v2.DeleteIncident": false,
"v2.DeleteIncidentIntegration": false,
"v2.DeleteIncidentTodo": false,
"v2.GetIncident": false,
"v2.GetIncidentIntegration": false,
"v2.GetIncidentTodo": false,
"v2.ListIncidentAttachments": false,
"v2.ListIncidentIntegrations": false,
"v2.ListIncidents": false,
"v2.ListIncidentTodos": false,
"v2.SearchIncidents": false,
"v2.UpdateIncident": false,
"v2.UpdateIncidentAttachments": false,
"v2.UpdateIncidentIntegration": false,
"v2.UpdateIncidentTodo": false,
"v2.QueryScalarData": false,
"v2.QueryTimeseriesData": false,
"v2.GetFinding": false,
"v2.ListFindings": false,
"v2.MuteFindings": false,
"v2.CreateScorecardOutcomesBatch": false,
"v2.CreateScorecardRule": false,
"v2.DeleteScorecardRule": false,
"v2.ListScorecardOutcomes": false,
"v2.ListScorecardRules": false,
"v2.CreateIncidentService": false,
"v2.DeleteIncidentService": false,
"v2.GetIncidentService": false,
"v2.ListIncidentServices": false,
"v2.UpdateIncidentService": false,
"v2.CreateSLOReportJob": false,
"v2.GetSLOReport": false,
"v2.GetSLOReportJobStatus": false,
"v2.CreateIncidentTeam": false,
"v2.DeleteIncidentTeam": false,
"v2.GetIncidentTeam": false,
"v2.ListIncidentTeams": false,
"v2.UpdateIncidentTeam": false,
"v2.CreateOpenAPI": false,
"v2.DeleteOpenAPI": false,
"v2.GetOpenAPI": false,
"v2.ListAPIs": false,
"v2.UpdateOpenAPI": false,
"v2.GetActiveBillingDimensions": false,
"v2.GetMonthlyCostAttribution": false,
"v2.CreateDORADeployment": false,
"v2.CreateDORAIncident": false,
"v2.CreateIncident": false,
"v2.CreateIncidentIntegration": false,
"v2.CreateIncidentTodo": false,
"v2.DeleteIncident": false,
"v2.DeleteIncidentIntegration": false,
"v2.DeleteIncidentTodo": false,
"v2.GetIncident": false,
"v2.GetIncidentIntegration": false,
"v2.GetIncidentTodo": false,
"v2.ListIncidentAttachments": false,
"v2.ListIncidentIntegrations": false,
"v2.ListIncidents": false,
"v2.ListIncidentTodos": false,
"v2.SearchIncidents": false,
"v2.UpdateIncident": false,
"v2.UpdateIncidentAttachments": false,
"v2.UpdateIncidentIntegration": false,
"v2.UpdateIncidentTodo": false,
"v2.QueryScalarData": false,
"v2.QueryTimeseriesData": false,
"v2.ConvertExistingSecurityMonitoringRule": false,
"v2.ConvertSecurityMonitoringRuleFromJSONToTerraform": false,
"v2.GetFinding": false,
"v2.ListFindings": false,
"v2.MuteFindings": false,
"v2.CreateScorecardOutcomesBatch": false,
"v2.CreateScorecardRule": false,
"v2.DeleteScorecardRule": false,
"v2.ListScorecardOutcomes": false,
"v2.ListScorecardRules": false,
"v2.CreateIncidentService": false,
"v2.DeleteIncidentService": false,
"v2.GetIncidentService": false,
"v2.ListIncidentServices": false,
"v2.UpdateIncidentService": false,
"v2.CreateSLOReportJob": false,
"v2.GetSLOReport": false,
"v2.GetSLOReportJobStatus": false,
"v2.CreateIncidentTeam": false,
"v2.DeleteIncidentTeam": false,
"v2.GetIncidentTeam": false,
"v2.ListIncidentTeams": false,
"v2.UpdateIncidentTeam": false,
},
RetryConfiguration: RetryConfiguration{
EnableRetry: false,
Expand Down
Loading

0 comments on commit 460d128

Please sign in to comment.