Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename the Cloud Workload Security tag to CSM Threats #2481

Merged
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
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-04-25 19:06:48.200292",
"spec_repo_commit": "6c17af3e"
"regenerated": "2024-04-26 19:29:34.164784",
"spec_repo_commit": "0e208c14"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-04-25 19:06:48.217920",
"spec_repo_commit": "6c17af3e"
"regenerated": "2024-04-26 19:29:34.183227",
"spec_repo_commit": "0e208c14"
}
}
}
28 changes: 12 additions & 16 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30681,7 +30681,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get all CSM Threats Agent rules
tags:
- Cloud Workload Security
- CSM Threats
post:
description: Create a new Cloud Security Management Threats Agent rule with
the given parameters.
Expand Down Expand Up @@ -30710,7 +30710,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Create a CSM Threats Agent rule
tags:
- Cloud Workload Security
- CSM Threats
x-codegen-request-body-name: body
/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}:
delete:
Expand All @@ -30729,7 +30729,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Delete a CSM Threats Agent rule
tags:
- Cloud Workload Security
- CSM Threats
get:
description: Get the details of a specific Cloud Security Management Threats
Agent rule.
Expand All @@ -30751,7 +30751,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get a CSM Threats Agent rule
tags:
- Cloud Workload Security
- CSM Threats
patch:
description: 'Update a specific Cloud Security Management Threats Agent rule.

Expand Down Expand Up @@ -30785,7 +30785,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Update a CSM Threats Agent rule
tags:
- Cloud Workload Security
- CSM Threats
x-codegen-request-body-name: body
/api/v2/remote_config/products/cws/policy/download:
get:
Expand All @@ -30811,7 +30811,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get the latest CSM Threats policy
tags:
- Cloud Workload Security
- CSM Threats
/api/v2/restriction_policy/{resource_id}:
delete:
description: Deletes the restriction policy associated with a specified resource.
Expand Down Expand Up @@ -32096,7 +32096,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get the latest Cloud Workload Security policy
tags:
- Cloud Workload Security
- CSM Threats
/api/v2/security_monitoring/cloud_workload_security/agent_rules:
get:
description: Get the list of Agent rules.
Expand All @@ -32114,7 +32114,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get all Cloud Workload Security Agent rules
tags:
- Cloud Workload Security
- CSM Threats
post:
description: Create a new Agent rule with the given parameters.
operationId: CreateCloudWorkloadSecurityAgentRule
Expand Down Expand Up @@ -32142,7 +32142,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Create a Cloud Workload Security Agent rule
tags:
- Cloud Workload Security
- CSM Threats
x-codegen-request-body-name: body
/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}:
delete:
Expand All @@ -32161,7 +32161,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Delete a Cloud Workload Security Agent rule
tags:
- Cloud Workload Security
- CSM Threats
get:
description: Get the details of a specific Agent rule.
operationId: GetCloudWorkloadSecurityAgentRule
Expand All @@ -32182,7 +32182,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get a Cloud Workload Security Agent rule
tags:
- Cloud Workload Security
- CSM Threats
patch:
description: 'Update a specific Agent rule.

Expand Down Expand Up @@ -32216,7 +32216,7 @@ paths:
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Update a Cloud Workload Security Agent rule
tags:
- Cloud Workload Security
- CSM Threats
x-codegen-request-body-name: body
/api/v2/security_monitoring/configuration/security_filters:
get:
Expand Down Expand Up @@ -36243,10 +36243,6 @@ tags:
Cloud Cost Management accounts for AWS and Azure. See the [Cloud Cost Management
page](https://docs.datadoghq.com/cloud_cost_management/) for more information.
name: Cloud Cost Management
- description: Workload activity security rules for generating events using the Datadog
security Agent. See the [Setting up CSM Workload Security page](https://docs.datadoghq.com/security/cloud_security_management/setup/csm_workload_security/)
for more information.
name: Cloud Workload Security
- description: Manage your Datadog Cloudflare integration directly through the Datadog
API. See the [Cloudflare integration page](https://docs.datadoghq.com/integrations/cloudflare/)
for more information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// CloudWorkloadSecurityApi service type
type CloudWorkloadSecurityApi datadog.Service
// CSMThreatsApi service type
type CSMThreatsApi datadog.Service

// CreateCSMThreatsAgentRule Create a CSM Threats Agent rule.
// Create a new Cloud Security Management Threats Agent rule with the given parameters.
func (a *CloudWorkloadSecurityApi) CreateCSMThreatsAgentRule(ctx _context.Context, body CloudWorkloadSecurityAgentRuleCreateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) CreateCSMThreatsAgentRule(ctx _context.Context, body CloudWorkloadSecurityAgentRuleCreateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRuleResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.CreateCSMThreatsAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.CreateCSMThreatsAgentRule")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -92,14 +92,14 @@ func (a *CloudWorkloadSecurityApi) CreateCSMThreatsAgentRule(ctx _context.Contex

// CreateCloudWorkloadSecurityAgentRule Create a Cloud Workload Security Agent rule.
// Create a new Agent rule with the given parameters.
func (a *CloudWorkloadSecurityApi) CreateCloudWorkloadSecurityAgentRule(ctx _context.Context, body CloudWorkloadSecurityAgentRuleCreateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) CreateCloudWorkloadSecurityAgentRule(ctx _context.Context, body CloudWorkloadSecurityAgentRuleCreateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRuleResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.CreateCloudWorkloadSecurityAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.CreateCloudWorkloadSecurityAgentRule")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -165,13 +165,13 @@ func (a *CloudWorkloadSecurityApi) CreateCloudWorkloadSecurityAgentRule(ctx _con

// DeleteCSMThreatsAgentRule Delete a CSM Threats Agent rule.
// Delete a specific Cloud Security Management Threats Agent rule.
func (a *CloudWorkloadSecurityApi) DeleteCSMThreatsAgentRule(ctx _context.Context, agentRuleId string) (*_nethttp.Response, error) {
func (a *CSMThreatsApi) DeleteCSMThreatsAgentRule(ctx _context.Context, agentRuleId string) (*_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
localVarPostBody interface{}
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.DeleteCSMThreatsAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.DeleteCSMThreatsAgentRule")
if err != nil {
return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -226,13 +226,13 @@ func (a *CloudWorkloadSecurityApi) DeleteCSMThreatsAgentRule(ctx _context.Contex

// DeleteCloudWorkloadSecurityAgentRule Delete a Cloud Workload Security Agent rule.
// Delete a specific Agent rule.
func (a *CloudWorkloadSecurityApi) DeleteCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (*_nethttp.Response, error) {
func (a *CSMThreatsApi) DeleteCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (*_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
localVarPostBody interface{}
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.DeleteCloudWorkloadSecurityAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.DeleteCloudWorkloadSecurityAgentRule")
if err != nil {
return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -289,14 +289,14 @@ func (a *CloudWorkloadSecurityApi) DeleteCloudWorkloadSecurityAgentRule(ctx _con
// The download endpoint generates a CSM Threats policy file from your currently active
// CSM Threats rules, and downloads them as a `.policy` file. This file can then be deployed to
// your Agents to update the policy running in your environment.
func (a *CloudWorkloadSecurityApi) DownloadCSMThreatsPolicy(ctx _context.Context) (_io.Reader, *_nethttp.Response, error) {
func (a *CSMThreatsApi) DownloadCSMThreatsPolicy(ctx _context.Context) (_io.Reader, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue _io.Reader
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.DownloadCSMThreatsPolicy")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.DownloadCSMThreatsPolicy")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -353,14 +353,14 @@ func (a *CloudWorkloadSecurityApi) DownloadCSMThreatsPolicy(ctx _context.Context
// The download endpoint generates a Cloud Workload Security policy file from your currently active
// Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to
// your Agents to update the policy running in your environment.
func (a *CloudWorkloadSecurityApi) DownloadCloudWorkloadPolicyFile(ctx _context.Context) (_io.Reader, *_nethttp.Response, error) {
func (a *CSMThreatsApi) DownloadCloudWorkloadPolicyFile(ctx _context.Context) (_io.Reader, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue _io.Reader
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.DownloadCloudWorkloadPolicyFile")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.DownloadCloudWorkloadPolicyFile")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -415,14 +415,14 @@ func (a *CloudWorkloadSecurityApi) DownloadCloudWorkloadPolicyFile(ctx _context.

// GetCSMThreatsAgentRule Get a CSM Threats Agent rule.
// Get the details of a specific Cloud Security Management Threats Agent rule.
func (a *CloudWorkloadSecurityApi) GetCSMThreatsAgentRule(ctx _context.Context, agentRuleId string) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) GetCSMThreatsAgentRule(ctx _context.Context, agentRuleId string) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRuleResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.GetCSMThreatsAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.GetCSMThreatsAgentRule")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -486,14 +486,14 @@ func (a *CloudWorkloadSecurityApi) GetCSMThreatsAgentRule(ctx _context.Context,

// GetCloudWorkloadSecurityAgentRule Get a Cloud Workload Security Agent rule.
// Get the details of a specific Agent rule.
func (a *CloudWorkloadSecurityApi) GetCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) GetCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRuleResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.GetCloudWorkloadSecurityAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.GetCloudWorkloadSecurityAgentRule")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -557,14 +557,14 @@ func (a *CloudWorkloadSecurityApi) GetCloudWorkloadSecurityAgentRule(ctx _contex

// ListCSMThreatsAgentRules Get all CSM Threats Agent rules.
// Get the list of Cloud Security Management Threats Agent rules.
func (a *CloudWorkloadSecurityApi) ListCSMThreatsAgentRules(ctx _context.Context) (CloudWorkloadSecurityAgentRulesListResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) ListCSMThreatsAgentRules(ctx _context.Context) (CloudWorkloadSecurityAgentRulesListResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRulesListResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.ListCSMThreatsAgentRules")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.ListCSMThreatsAgentRules")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -627,14 +627,14 @@ func (a *CloudWorkloadSecurityApi) ListCSMThreatsAgentRules(ctx _context.Context

// ListCloudWorkloadSecurityAgentRules Get all Cloud Workload Security Agent rules.
// Get the list of Agent rules.
func (a *CloudWorkloadSecurityApi) ListCloudWorkloadSecurityAgentRules(ctx _context.Context) (CloudWorkloadSecurityAgentRulesListResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) ListCloudWorkloadSecurityAgentRules(ctx _context.Context) (CloudWorkloadSecurityAgentRulesListResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRulesListResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.ListCloudWorkloadSecurityAgentRules")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.ListCloudWorkloadSecurityAgentRules")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -698,14 +698,14 @@ func (a *CloudWorkloadSecurityApi) ListCloudWorkloadSecurityAgentRules(ctx _cont
// UpdateCSMThreatsAgentRule Update a CSM Threats Agent rule.
// Update a specific Cloud Security Management Threats Agent rule.
// Returns the Agent rule object when the request is successful.
func (a *CloudWorkloadSecurityApi) UpdateCSMThreatsAgentRule(ctx _context.Context, agentRuleId string, body CloudWorkloadSecurityAgentRuleUpdateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) UpdateCSMThreatsAgentRule(ctx _context.Context, agentRuleId string, body CloudWorkloadSecurityAgentRuleUpdateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPatch
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRuleResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.UpdateCSMThreatsAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.UpdateCSMThreatsAgentRule")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -773,14 +773,14 @@ func (a *CloudWorkloadSecurityApi) UpdateCSMThreatsAgentRule(ctx _context.Contex
// UpdateCloudWorkloadSecurityAgentRule Update a Cloud Workload Security Agent rule.
// Update a specific Agent rule.
// Returns the Agent rule object when the request is successful.
func (a *CloudWorkloadSecurityApi) UpdateCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string, body CloudWorkloadSecurityAgentRuleUpdateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
func (a *CSMThreatsApi) UpdateCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string, body CloudWorkloadSecurityAgentRuleUpdateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPatch
localVarPostBody interface{}
localVarReturnValue CloudWorkloadSecurityAgentRuleResponse
)

localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudWorkloadSecurityApi.UpdateCloudWorkloadSecurityAgentRule")
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CSMThreatsApi.UpdateCloudWorkloadSecurityAgentRule")
if err != nil {
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
}
Expand Down Expand Up @@ -845,9 +845,9 @@ func (a *CloudWorkloadSecurityApi) UpdateCloudWorkloadSecurityAgentRule(ctx _con
return localVarReturnValue, localVarHTTPResponse, nil
}

// NewCloudWorkloadSecurityApi Returns NewCloudWorkloadSecurityApi.
func NewCloudWorkloadSecurityApi(client *datadog.APIClient) *CloudWorkloadSecurityApi {
return &CloudWorkloadSecurityApi{
// NewCSMThreatsApi Returns NewCSMThreatsApi.
func NewCSMThreatsApi(client *datadog.APIClient) *CSMThreatsApi {
return &CSMThreatsApi{
Client: client,
}
}
Loading
Loading