Skip to content

Commit cddc3c7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 71aadcd of spec repo
1 parent bf6cc60 commit cddc3c7

10 files changed

Lines changed: 123 additions & 8 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7731,6 +7731,10 @@ components:
77317731
AwsScanOptionsAttributes:
77327732
description: Attributes for the AWS scan options.
77337733
properties:
7734+
compliance_host:
7735+
description: Indicates whether host compliance scanning is enabled.
7736+
example: false
7737+
type: boolean
77347738
lambda:
77357739
description: Indicates if scanning of Lambda functions is enabled.
77367740
example: true
@@ -7751,6 +7755,10 @@ components:
77517755
AwsScanOptionsCreateAttributes:
77527756
description: Attributes for the AWS scan options to create.
77537757
properties:
7758+
compliance_host:
7759+
description: Indicates whether host compliance scanning is enabled.
7760+
example: false
7761+
type: boolean
77547762
lambda:
77557763
description: Indicates if scanning of Lambda functions is enabled.
77567764
example: true
@@ -7768,6 +7776,7 @@ components:
77687776
example: true
77697777
type: boolean
77707778
required:
7779+
- compliance_host
77717780
- lambda
77727781
- sensitive_data
77737782
- vuln_containers_os
@@ -7833,6 +7842,10 @@ components:
78337842
AwsScanOptionsUpdateAttributes:
78347843
description: Attributes for the AWS scan options to update.
78357844
properties:
7845+
compliance_host:
7846+
description: Indicates whether host compliance scanning is enabled.
7847+
example: false
7848+
type: boolean
78367849
lambda:
78377850
description: Indicates if scanning of Lambda functions is enabled.
78387851
example: true
@@ -7914,6 +7927,7 @@ components:
79147927
example:
79157928
data:
79167929
attributes:
7930+
compliance_host: false
79177931
vuln_containers_os: true
79187932
vuln_host_os: true
79197933
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -7927,6 +7941,7 @@ components:
79277941
example:
79287942
data:
79297943
- attributes:
7944+
compliance_host: false
79307945
vuln_containers_os: true
79317946
vuln_host_os: true
79327947
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -7958,6 +7973,9 @@ components:
79587973
AzureScanOptionsDataAttributes:
79597974
description: Attributes for Azure scan options configuration.
79607975
properties:
7976+
compliance_host:
7977+
description: Indicates whether host compliance scanning is enabled.
7978+
type: boolean
79617979
vuln_containers_os:
79627980
description: Indicates if scanning for vulnerabilities in containers is enabled.
79637981
type: boolean
@@ -8002,6 +8020,9 @@ components:
80028020
AzureScanOptionsInputUpdateDataAttributes:
80038021
description: Attributes for updating Azure scan options configuration.
80048022
properties:
8023+
compliance_host:
8024+
description: Indicates whether host compliance scanning is enabled.
8025+
type: boolean
80058026
vuln_containers_os:
80068027
description: Indicates if scanning for vulnerabilities in containers is enabled.
80078028
type: boolean
@@ -29874,6 +29895,7 @@ components:
2987429895
example:
2987529896
data:
2987629897
attributes:
29898+
compliance_host: false
2987729899
vuln_containers_os: true
2987829900
vuln_host_os: true
2987929901
id: company-project-id
@@ -29887,6 +29909,7 @@ components:
2988729909
example:
2988829910
data:
2988929911
- attributes:
29912+
compliance_host: false
2989029913
vuln_containers_os: true
2989129914
vuln_host_os: true
2989229915
id: company-project-id
@@ -29918,6 +29941,9 @@ components:
2991829941
GcpScanOptionsDataAttributes:
2991929942
description: Attributes for GCP scan options configuration.
2992029943
properties:
29944+
compliance_host:
29945+
description: Indicates whether host compliance scanning is enabled.
29946+
type: boolean
2992129947
vuln_containers_os:
2992229948
description: Indicates if scanning for vulnerabilities in containers is enabled.
2992329949
type: boolean
@@ -29962,6 +29988,9 @@ components:
2996229988
GcpScanOptionsInputUpdateDataAttributes:
2996329989
description: Attributes for updating GCP scan options configuration.
2996429990
properties:
29991+
compliance_host:
29992+
description: Indicates whether host compliance scanning is enabled.
29993+
type: boolean
2996529994
vuln_containers_os:
2996629995
description: Indicates if scanning for vulnerabilities in containers is enabled.
2996729996
type: boolean
@@ -84684,6 +84713,7 @@ paths:
8468484713
value:
8468584714
data:
8468684715
attributes:
84716+
compliance_host: false
8468784717
lambda: true
8468884718
sensitive_data: false
8468984719
vuln_containers_os: true
@@ -84781,6 +84811,7 @@ paths:
8478184811
value:
8478284812
data:
8478384813
attributes:
84814+
compliance_host: false
8478484815
lambda: true
8478584816
sensitive_data: false
8478684817
vuln_containers_os: true
@@ -84842,6 +84873,7 @@ paths:
8484284873
value:
8484384874
data:
8484484875
attributes:
84876+
compliance_host: false
8484584877
vuln_containers_os: true
8484684878
vuln_host_os: true
8484784879
id: 12345678-90ab-cdef-1234-567890abcdef
@@ -85000,6 +85032,7 @@ paths:
8500085032
value:
8500185033
data:
8500285034
attributes:
85035+
compliance_host: false
8500385036
vuln_containers_os: true
8500485037
vuln_host_os: true
8500585038
id: company-project-id

examples/v2/agentless-scanning/CreateAwsScanOptions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
id: "000000000003",
99
type: DatadogAPIClient::V2::AwsScanOptionsType::AWS_SCAN_OPTIONS,
1010
attributes: DatadogAPIClient::V2::AwsScanOptionsCreateAttributes.new({
11+
compliance_host: true,
1112
lambda: true,
1213
sensitive_data: false,
1314
vuln_containers_os: true,

features/v2/agentless_scanning.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Feature: Agentless Scanning
3131
@skip @team:DataDog/k9-agentless
3232
Scenario: Create AWS scan options returns "Agentless scan options enabled successfully." response
3333
Given new "CreateAwsScanOptions" request
34-
And body with value {"data": {"id": "000000000003", "type": "aws_scan_options", "attributes": {"lambda": true, "sensitive_data": false, "vuln_containers_os": true, "vuln_host_os": true}}}
34+
And body with value {"data": {"id": "000000000003", "type": "aws_scan_options", "attributes": {"compliance_host": true, "lambda": true, "sensitive_data": false, "vuln_containers_os": true, "vuln_host_os": true}}}
3535
When the request is sent
3636
Then the response status is 201 Created
3737

lib/datadog_api_client/v2/models/aws_scan_options_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class AwsScanOptionsAttributes
2222
include BaseGenericModel
2323

24+
# Indicates whether host compliance scanning is enabled.
25+
attr_accessor :compliance_host
26+
2427
# Indicates if scanning of Lambda functions is enabled.
2528
attr_accessor :lambda
2629

@@ -39,6 +42,7 @@ class AwsScanOptionsAttributes
3942
# @!visibility private
4043
def self.attribute_map
4144
{
45+
:'compliance_host' => :'compliance_host',
4246
:'lambda' => :'lambda',
4347
:'sensitive_data' => :'sensitive_data',
4448
:'vuln_containers_os' => :'vuln_containers_os',
@@ -50,6 +54,7 @@ def self.attribute_map
5054
# @!visibility private
5155
def self.openapi_types
5256
{
57+
:'compliance_host' => :'Boolean',
5358
:'lambda' => :'Boolean',
5459
:'sensitive_data' => :'Boolean',
5560
:'vuln_containers_os' => :'Boolean',
@@ -75,6 +80,10 @@ def initialize(attributes = {})
7580
end
7681
}
7782

83+
if attributes.key?(:'compliance_host')
84+
self.compliance_host = attributes[:'compliance_host']
85+
end
86+
7887
if attributes.key?(:'lambda')
7988
self.lambda = attributes[:'lambda']
8089
end
@@ -118,6 +127,7 @@ def to_hash
118127
def ==(o)
119128
return true if self.equal?(o)
120129
self.class == o.class &&
130+
compliance_host == o.compliance_host &&
121131
lambda == o.lambda &&
122132
sensitive_data == o.sensitive_data &&
123133
vuln_containers_os == o.vuln_containers_os &&
@@ -129,7 +139,7 @@ def ==(o)
129139
# @return [Integer] Hash code
130140
# @!visibility private
131141
def hash
132-
[lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
142+
[compliance_host, lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
133143
end
134144
end
135145
end

lib/datadog_api_client/v2/models/aws_scan_options_create_attributes.rb

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class AwsScanOptionsCreateAttributes
2222
include BaseGenericModel
2323

24+
# Indicates whether host compliance scanning is enabled.
25+
attr_reader :compliance_host
26+
2427
# Indicates if scanning of Lambda functions is enabled.
2528
attr_reader :lambda
2629

@@ -39,6 +42,7 @@ class AwsScanOptionsCreateAttributes
3942
# @!visibility private
4043
def self.attribute_map
4144
{
45+
:'compliance_host' => :'compliance_host',
4246
:'lambda' => :'lambda',
4347
:'sensitive_data' => :'sensitive_data',
4448
:'vuln_containers_os' => :'vuln_containers_os',
@@ -50,6 +54,7 @@ def self.attribute_map
5054
# @!visibility private
5155
def self.openapi_types
5256
{
57+
:'compliance_host' => :'Boolean',
5358
:'lambda' => :'Boolean',
5459
:'sensitive_data' => :'Boolean',
5560
:'vuln_containers_os' => :'Boolean',
@@ -75,6 +80,10 @@ def initialize(attributes = {})
7580
end
7681
}
7782

83+
if attributes.key?(:'compliance_host')
84+
self.compliance_host = attributes[:'compliance_host']
85+
end
86+
7887
if attributes.key?(:'lambda')
7988
self.lambda = attributes[:'lambda']
8089
end
@@ -96,13 +105,24 @@ def initialize(attributes = {})
96105
# @return true if the model is valid
97106
# @!visibility private
98107
def valid?
108+
return false if @compliance_host.nil?
99109
return false if @lambda.nil?
100110
return false if @sensitive_data.nil?
101111
return false if @vuln_containers_os.nil?
102112
return false if @vuln_host_os.nil?
103113
true
104114
end
105115

116+
# Custom attribute writer method with validation
117+
# @param compliance_host [Object] Object to be assigned
118+
# @!visibility private
119+
def compliance_host=(compliance_host)
120+
if compliance_host.nil?
121+
fail ArgumentError, 'invalid value for "compliance_host", compliance_host cannot be nil.'
122+
end
123+
@compliance_host = compliance_host
124+
end
125+
106126
# Custom attribute writer method with validation
107127
# @param lambda [Object] Object to be assigned
108128
# @!visibility private
@@ -169,6 +189,7 @@ def to_hash
169189
def ==(o)
170190
return true if self.equal?(o)
171191
self.class == o.class &&
192+
compliance_host == o.compliance_host &&
172193
lambda == o.lambda &&
173194
sensitive_data == o.sensitive_data &&
174195
vuln_containers_os == o.vuln_containers_os &&
@@ -180,7 +201,7 @@ def ==(o)
180201
# @return [Integer] Hash code
181202
# @!visibility private
182203
def hash
183-
[lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
204+
[compliance_host, lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
184205
end
185206
end
186207
end

lib/datadog_api_client/v2/models/aws_scan_options_update_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class AwsScanOptionsUpdateAttributes
2222
include BaseGenericModel
2323

24+
# Indicates whether host compliance scanning is enabled.
25+
attr_accessor :compliance_host
26+
2427
# Indicates if scanning of Lambda functions is enabled.
2528
attr_accessor :lambda
2629

@@ -39,6 +42,7 @@ class AwsScanOptionsUpdateAttributes
3942
# @!visibility private
4043
def self.attribute_map
4144
{
45+
:'compliance_host' => :'compliance_host',
4246
:'lambda' => :'lambda',
4347
:'sensitive_data' => :'sensitive_data',
4448
:'vuln_containers_os' => :'vuln_containers_os',
@@ -50,6 +54,7 @@ def self.attribute_map
5054
# @!visibility private
5155
def self.openapi_types
5256
{
57+
:'compliance_host' => :'Boolean',
5358
:'lambda' => :'Boolean',
5459
:'sensitive_data' => :'Boolean',
5560
:'vuln_containers_os' => :'Boolean',
@@ -75,6 +80,10 @@ def initialize(attributes = {})
7580
end
7681
}
7782

83+
if attributes.key?(:'compliance_host')
84+
self.compliance_host = attributes[:'compliance_host']
85+
end
86+
7887
if attributes.key?(:'lambda')
7988
self.lambda = attributes[:'lambda']
8089
end
@@ -118,6 +127,7 @@ def to_hash
118127
def ==(o)
119128
return true if self.equal?(o)
120129
self.class == o.class &&
130+
compliance_host == o.compliance_host &&
121131
lambda == o.lambda &&
122132
sensitive_data == o.sensitive_data &&
123133
vuln_containers_os == o.vuln_containers_os &&
@@ -129,7 +139,7 @@ def ==(o)
129139
# @return [Integer] Hash code
130140
# @!visibility private
131141
def hash
132-
[lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
142+
[compliance_host, lambda, sensitive_data, vuln_containers_os, vuln_host_os, additional_properties].hash
133143
end
134144
end
135145
end

0 commit comments

Comments
 (0)