Skip to content

Commit 2973bb7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
document agentless GCP scan options CRUD endpoints (#3401)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 22ba517 commit 2973bb7

File tree

84 files changed

+2630
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2630
-62
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 326 additions & 15 deletions
Large diffs are not rendered by default.

api/datadogV2/api_agentless_scanning.go

Lines changed: 462 additions & 0 deletions
Large diffs are not rendered by default.

api/datadogV2/doc.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,21 @@
4646
// - [AgentlessScanningApi.CreateAwsOnDemandTask]
4747
// - [AgentlessScanningApi.CreateAwsScanOptions]
4848
// - [AgentlessScanningApi.CreateAzureScanOptions]
49+
// - [AgentlessScanningApi.CreateGcpScanOptions]
4950
// - [AgentlessScanningApi.DeleteAwsScanOptions]
5051
// - [AgentlessScanningApi.DeleteAzureScanOptions]
52+
// - [AgentlessScanningApi.DeleteGcpScanOptions]
5153
// - [AgentlessScanningApi.GetAwsOnDemandTask]
5254
// - [AgentlessScanningApi.GetAwsScanOptions]
55+
// - [AgentlessScanningApi.GetAzureScanOptions]
56+
// - [AgentlessScanningApi.GetGcpScanOptions]
5357
// - [AgentlessScanningApi.ListAwsOnDemandTasks]
5458
// - [AgentlessScanningApi.ListAwsScanOptions]
5559
// - [AgentlessScanningApi.ListAzureScanOptions]
60+
// - [AgentlessScanningApi.ListGcpScanOptions]
5661
// - [AgentlessScanningApi.UpdateAwsScanOptions]
5762
// - [AgentlessScanningApi.UpdateAzureScanOptions]
63+
// - [AgentlessScanningApi.UpdateGcpScanOptions]
5864
// - [AppBuilderApi.CreateApp]
5965
// - [AppBuilderApi.DeleteApp]
6066
// - [AppBuilderApi.DeleteApps]

api/datadogV2/model_azure_scan_options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// AzureScanOptions The definition of `AzureScanOptions` object.
11+
// AzureScanOptions Response object containing Azure scan options for a single subscription.
1212
type AzureScanOptions struct {
13-
// The definition of `AzureScanOptionsData` object.
13+
// Single Azure scan options entry.
1414
Data *AzureScanOptionsData `json:"data,omitempty"`
1515
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1616
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_azure_scan_options_array.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// AzureScanOptionsArray The definition of `AzureScanOptionsArray` object.
13+
// AzureScanOptionsArray Response object containing a list of Azure scan options.
1414
type AzureScanOptionsArray struct {
15-
// The `AzureScanOptionsArray` `data`.
15+
// A list of Azure scan options.
1616
Data []AzureScanOptionsData `json:"data"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_azure_scan_options_data.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// AzureScanOptionsData The definition of `AzureScanOptionsData` object.
13+
// AzureScanOptionsData Single Azure scan options entry.
1414
type AzureScanOptionsData struct {
15-
// The definition of `AzureScanOptionsDataAttributes` object.
15+
// Attributes for Azure scan options configuration.
1616
Attributes *AzureScanOptionsDataAttributes `json:"attributes,omitempty"`
17-
// The `AzureScanOptionsData` `id`.
17+
// The Azure subscription ID.
1818
Id string `json:"id"`
1919
// The type of the resource. The value should always be `azure_scan_options`.
2020
Type AzureScanOptionsDataType `json:"type"`

api/datadogV2/model_azure_scan_options_data_attributes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// AzureScanOptionsDataAttributes The definition of `AzureScanOptionsDataAttributes` object.
11+
// AzureScanOptionsDataAttributes Attributes for Azure scan options configuration.
1212
type AzureScanOptionsDataAttributes struct {
13-
// The `attributes` `vuln_containers_os`.
13+
// Indicates if scanning for vulnerabilities in containers is enabled.
1414
VulnContainersOs *bool `json:"vuln_containers_os,omitempty"`
15-
// The `attributes` `vuln_host_os`.
15+
// Indicates if scanning for vulnerabilities in hosts is enabled.
1616
VulnHostOs *bool `json:"vuln_host_os,omitempty"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_azure_scan_options_input_update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// AzureScanOptionsInputUpdate The definition of `AzureScanOptionsInputUpdate` object.
11+
// AzureScanOptionsInputUpdate Request object for updating Azure scan options.
1212
type AzureScanOptionsInputUpdate struct {
13-
// The definition of `AzureScanOptionsInputUpdateData` object.
13+
// Data object for updating the scan options of a single Azure subscription.
1414
Data *AzureScanOptionsInputUpdateData `json:"data,omitempty"`
1515
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1616
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_azure_scan_options_input_update_data.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// AzureScanOptionsInputUpdateData The definition of `AzureScanOptionsInputUpdateData` object.
13+
// AzureScanOptionsInputUpdateData Data object for updating the scan options of a single Azure subscription.
1414
type AzureScanOptionsInputUpdateData struct {
15-
// The definition of `AzureScanOptionsInputUpdateDataAttributes` object.
15+
// Attributes for updating Azure scan options configuration.
1616
Attributes *AzureScanOptionsInputUpdateDataAttributes `json:"attributes,omitempty"`
17-
// The `AzureScanOptionsInputUpdateData` `id`.
17+
// The Azure subscription ID.
1818
Id string `json:"id"`
1919
// Azure scan options resource type.
2020
Type AzureScanOptionsInputUpdateDataType `json:"type"`

api/datadogV2/model_azure_scan_options_input_update_data_attributes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// AzureScanOptionsInputUpdateDataAttributes The definition of `AzureScanOptionsInputUpdateDataAttributes` object.
11+
// AzureScanOptionsInputUpdateDataAttributes Attributes for updating Azure scan options configuration.
1212
type AzureScanOptionsInputUpdateDataAttributes struct {
13-
// The `attributes` `vuln_containers_os`.
13+
// Indicates if scanning for vulnerabilities in containers is enabled.
1414
VulnContainersOs *bool `json:"vuln_containers_os,omitempty"`
15-
// The `attributes` `vuln_host_os`.
15+
// Indicates if scanning for vulnerabilities in hosts is enabled.
1616
VulnHostOs *bool `json:"vuln_host_os,omitempty"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

0 commit comments

Comments
 (0)