From ff96dbce52a4f0036de92b275fe3baf3492d4caa Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 17 Jul 2026 06:59:12 +0000 Subject: [PATCH] Regenerate client from commit 992e539 of spec repo --- .generator/schemas/v2/openapi.yaml | 16 ++++++++++++++++ .../agentless-scanning/CreateAzureScanOptions.py | 1 + .../agentless-scanning/CreateGcpScanOptions.py | 1 + .../agentless-scanning/UpdateGcpScanOptions.py | 1 + .../model/azure_scan_options_data_attributes.py | 8 ++++++++ ..._scan_options_input_update_data_attributes.py | 8 ++++++++ .../v2/model/gcp_scan_options_data_attributes.py | 8 ++++++++ ..._scan_options_input_update_data_attributes.py | 8 ++++++++ ..._scan_options_returns_created_response.frozen | 2 +- ...re_scan_options_returns_created_response.yaml | 4 ++-- ..._options_enabled_successfully_response.frozen | 2 +- ...an_options_enabled_successfully_response.yaml | 4 ++-- ...e_gcp_scan_options_returns_ok_response.frozen | 2 +- ...ate_gcp_scan_options_returns_ok_response.yaml | 4 ++-- tests/v2/features/agentless_scanning.feature | 9 ++++++--- 15 files changed, 66 insertions(+), 12 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a03900136a..ee899f5065 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -12638,6 +12638,7 @@ components: data: attributes: compliance_host: false + function: true vuln_containers_os: true vuln_host_os: true id: 12345678-90ab-cdef-1234-567890abcdef @@ -12652,6 +12653,7 @@ components: data: - attributes: compliance_host: false + function: true vuln_containers_os: true vuln_host_os: true id: 12345678-90ab-cdef-1234-567890abcdef @@ -12686,6 +12688,9 @@ components: compliance_host: description: Indicates whether host compliance scanning is enabled. type: boolean + function: + description: Indicates if scanning of Azure Functions is enabled. + type: boolean vuln_containers_os: description: Indicates if scanning for vulnerabilities in containers is enabled. type: boolean @@ -12733,6 +12738,9 @@ components: compliance_host: description: Indicates whether host compliance scanning is enabled. type: boolean + function: + description: Indicates if scanning of Azure Functions is enabled. + type: boolean vuln_containers_os: description: Indicates if scanning for vulnerabilities in containers is enabled. type: boolean @@ -40828,6 +40836,7 @@ components: example: data: attributes: + cloud_function: true compliance_host: false vuln_containers_os: true vuln_host_os: true @@ -40842,6 +40851,7 @@ components: example: data: - attributes: + cloud_function: true compliance_host: false vuln_containers_os: true vuln_host_os: true @@ -40874,6 +40884,9 @@ components: GcpScanOptionsDataAttributes: description: Attributes for GCP scan options configuration. properties: + cloud_function: + description: Indicates if scanning of Cloud Functions is enabled. + type: boolean compliance_host: description: Indicates whether host compliance scanning is enabled. type: boolean @@ -40921,6 +40934,9 @@ components: GcpScanOptionsInputUpdateDataAttributes: description: Attributes for updating GCP scan options configuration. properties: + cloud_function: + description: Indicates if scanning of Cloud Functions is enabled. + type: boolean compliance_host: description: Indicates whether host compliance scanning is enabled. type: boolean diff --git a/examples/v2/agentless-scanning/CreateAzureScanOptions.py b/examples/v2/agentless-scanning/CreateAzureScanOptions.py index 6a4fbdb5a9..7218f72507 100644 --- a/examples/v2/agentless-scanning/CreateAzureScanOptions.py +++ b/examples/v2/agentless-scanning/CreateAzureScanOptions.py @@ -12,6 +12,7 @@ body = AzureScanOptions( data=AzureScanOptionsData( attributes=AzureScanOptionsDataAttributes( + function=True, vuln_containers_os=True, vuln_host_os=True, ), diff --git a/examples/v2/agentless-scanning/CreateGcpScanOptions.py b/examples/v2/agentless-scanning/CreateGcpScanOptions.py index 6bca7f978e..630d8f7049 100644 --- a/examples/v2/agentless-scanning/CreateGcpScanOptions.py +++ b/examples/v2/agentless-scanning/CreateGcpScanOptions.py @@ -14,6 +14,7 @@ id="new-project", type=GcpScanOptionsDataType.GCP_SCAN_OPTIONS, attributes=GcpScanOptionsDataAttributes( + cloud_function=True, vuln_host_os=True, vuln_containers_os=True, ), diff --git a/examples/v2/agentless-scanning/UpdateGcpScanOptions.py b/examples/v2/agentless-scanning/UpdateGcpScanOptions.py index 014deee356..da399320a7 100644 --- a/examples/v2/agentless-scanning/UpdateGcpScanOptions.py +++ b/examples/v2/agentless-scanning/UpdateGcpScanOptions.py @@ -16,6 +16,7 @@ id="api-spec-test", type=GcpScanOptionsInputUpdateDataType.GCP_SCAN_OPTIONS, attributes=GcpScanOptionsInputUpdateDataAttributes( + cloud_function=True, vuln_containers_os=False, ), ), diff --git a/src/datadog_api_client/v2/model/azure_scan_options_data_attributes.py b/src/datadog_api_client/v2/model/azure_scan_options_data_attributes.py index 1f06c909ee..4dc0b2d2a8 100644 --- a/src/datadog_api_client/v2/model/azure_scan_options_data_attributes.py +++ b/src/datadog_api_client/v2/model/azure_scan_options_data_attributes.py @@ -18,12 +18,14 @@ class AzureScanOptionsDataAttributes(ModelNormal): def openapi_types(_): return { "compliance_host": (bool,), + "function": (bool,), "vuln_containers_os": (bool,), "vuln_host_os": (bool,), } attribute_map = { "compliance_host": "compliance_host", + "function": "function", "vuln_containers_os": "vuln_containers_os", "vuln_host_os": "vuln_host_os", } @@ -31,6 +33,7 @@ def openapi_types(_): def __init__( self_, compliance_host: Union[bool, UnsetType] = unset, + function: Union[bool, UnsetType] = unset, vuln_containers_os: Union[bool, UnsetType] = unset, vuln_host_os: Union[bool, UnsetType] = unset, **kwargs, @@ -41,6 +44,9 @@ def __init__( :param compliance_host: Indicates whether host compliance scanning is enabled. :type compliance_host: bool, optional + :param function: Indicates if scanning of Azure Functions is enabled. + :type function: bool, optional + :param vuln_containers_os: Indicates if scanning for vulnerabilities in containers is enabled. :type vuln_containers_os: bool, optional @@ -49,6 +55,8 @@ def __init__( """ if compliance_host is not unset: kwargs["compliance_host"] = compliance_host + if function is not unset: + kwargs["function"] = function if vuln_containers_os is not unset: kwargs["vuln_containers_os"] = vuln_containers_os if vuln_host_os is not unset: diff --git a/src/datadog_api_client/v2/model/azure_scan_options_input_update_data_attributes.py b/src/datadog_api_client/v2/model/azure_scan_options_input_update_data_attributes.py index d9af7c6c70..79edac7c54 100644 --- a/src/datadog_api_client/v2/model/azure_scan_options_input_update_data_attributes.py +++ b/src/datadog_api_client/v2/model/azure_scan_options_input_update_data_attributes.py @@ -18,12 +18,14 @@ class AzureScanOptionsInputUpdateDataAttributes(ModelNormal): def openapi_types(_): return { "compliance_host": (bool,), + "function": (bool,), "vuln_containers_os": (bool,), "vuln_host_os": (bool,), } attribute_map = { "compliance_host": "compliance_host", + "function": "function", "vuln_containers_os": "vuln_containers_os", "vuln_host_os": "vuln_host_os", } @@ -31,6 +33,7 @@ def openapi_types(_): def __init__( self_, compliance_host: Union[bool, UnsetType] = unset, + function: Union[bool, UnsetType] = unset, vuln_containers_os: Union[bool, UnsetType] = unset, vuln_host_os: Union[bool, UnsetType] = unset, **kwargs, @@ -41,6 +44,9 @@ def __init__( :param compliance_host: Indicates whether host compliance scanning is enabled. :type compliance_host: bool, optional + :param function: Indicates if scanning of Azure Functions is enabled. + :type function: bool, optional + :param vuln_containers_os: Indicates if scanning for vulnerabilities in containers is enabled. :type vuln_containers_os: bool, optional @@ -49,6 +55,8 @@ def __init__( """ if compliance_host is not unset: kwargs["compliance_host"] = compliance_host + if function is not unset: + kwargs["function"] = function if vuln_containers_os is not unset: kwargs["vuln_containers_os"] = vuln_containers_os if vuln_host_os is not unset: diff --git a/src/datadog_api_client/v2/model/gcp_scan_options_data_attributes.py b/src/datadog_api_client/v2/model/gcp_scan_options_data_attributes.py index 3467c99db1..5f9d077699 100644 --- a/src/datadog_api_client/v2/model/gcp_scan_options_data_attributes.py +++ b/src/datadog_api_client/v2/model/gcp_scan_options_data_attributes.py @@ -17,12 +17,14 @@ class GcpScanOptionsDataAttributes(ModelNormal): @cached_property def openapi_types(_): return { + "cloud_function": (bool,), "compliance_host": (bool,), "vuln_containers_os": (bool,), "vuln_host_os": (bool,), } attribute_map = { + "cloud_function": "cloud_function", "compliance_host": "compliance_host", "vuln_containers_os": "vuln_containers_os", "vuln_host_os": "vuln_host_os", @@ -30,6 +32,7 @@ def openapi_types(_): def __init__( self_, + cloud_function: Union[bool, UnsetType] = unset, compliance_host: Union[bool, UnsetType] = unset, vuln_containers_os: Union[bool, UnsetType] = unset, vuln_host_os: Union[bool, UnsetType] = unset, @@ -38,6 +41,9 @@ def __init__( """ Attributes for GCP scan options configuration. + :param cloud_function: Indicates if scanning of Cloud Functions is enabled. + :type cloud_function: bool, optional + :param compliance_host: Indicates whether host compliance scanning is enabled. :type compliance_host: bool, optional @@ -47,6 +53,8 @@ def __init__( :param vuln_host_os: Indicates if scanning for vulnerabilities in hosts is enabled. :type vuln_host_os: bool, optional """ + if cloud_function is not unset: + kwargs["cloud_function"] = cloud_function if compliance_host is not unset: kwargs["compliance_host"] = compliance_host if vuln_containers_os is not unset: diff --git a/src/datadog_api_client/v2/model/gcp_scan_options_input_update_data_attributes.py b/src/datadog_api_client/v2/model/gcp_scan_options_input_update_data_attributes.py index cb0f956bd5..3c919924b5 100644 --- a/src/datadog_api_client/v2/model/gcp_scan_options_input_update_data_attributes.py +++ b/src/datadog_api_client/v2/model/gcp_scan_options_input_update_data_attributes.py @@ -17,12 +17,14 @@ class GcpScanOptionsInputUpdateDataAttributes(ModelNormal): @cached_property def openapi_types(_): return { + "cloud_function": (bool,), "compliance_host": (bool,), "vuln_containers_os": (bool,), "vuln_host_os": (bool,), } attribute_map = { + "cloud_function": "cloud_function", "compliance_host": "compliance_host", "vuln_containers_os": "vuln_containers_os", "vuln_host_os": "vuln_host_os", @@ -30,6 +32,7 @@ def openapi_types(_): def __init__( self_, + cloud_function: Union[bool, UnsetType] = unset, compliance_host: Union[bool, UnsetType] = unset, vuln_containers_os: Union[bool, UnsetType] = unset, vuln_host_os: Union[bool, UnsetType] = unset, @@ -38,6 +41,9 @@ def __init__( """ Attributes for updating GCP scan options configuration. + :param cloud_function: Indicates if scanning of Cloud Functions is enabled. + :type cloud_function: bool, optional + :param compliance_host: Indicates whether host compliance scanning is enabled. :type compliance_host: bool, optional @@ -47,6 +53,8 @@ def __init__( :param vuln_host_os: Indicates if scanning for vulnerabilities in hosts is enabled. :type vuln_host_os: bool, optional """ + if cloud_function is not unset: + kwargs["cloud_function"] = cloud_function if compliance_host is not unset: kwargs["compliance_host"] = compliance_host if vuln_containers_os is not unset: diff --git a/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.frozen index 283b6451f6..14b188d1d5 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.frozen @@ -1 +1 @@ -2025-10-23T22:21:55.015Z \ No newline at end of file +2026-07-17T06:38:46.211Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.yaml index 31df312a1d..e33b8015bf 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_create_azure_scan_options_returns_created_response.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"vuln_containers_os":true,"vuln_host_os":true},"id":"12345678-90ab-cdef-1234-567890abcdef","type":"azure_scan_options"}}' + body: '{"data":{"attributes":{"function":true,"vuln_containers_os":true,"vuln_host_os":true},"id":"12345678-90ab-cdef-1234-567890abcdef","type":"azure_scan_options"}}' headers: accept: - application/json @@ -10,7 +10,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/azure response: body: - string: '{"data":{"id":"12345678-90ab-cdef-1234-567890abcdef","type":"azure_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}}' + string: '{"data":{"id":"12345678-90ab-cdef-1234-567890abcdef","type":"azure_scan_options","attributes":{"compliance_host":false,"function":true,"vuln_containers_os":true,"vuln_host_os":true}}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.frozen index a6a44de7fc..94aee94de6 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.frozen @@ -1 +1 @@ -2025-10-23T22:21:55.656Z \ No newline at end of file +2026-07-17T06:38:47.064Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.yaml index a8c1865285..d721f28c1e 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_create_gcp_scan_options_returns_agentless_scan_options_enabled_successfully_response.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"vuln_containers_os":true,"vuln_host_os":true},"id":"new-project","type":"gcp_scan_options"}}' + body: '{"data":{"attributes":{"cloud_function":true,"vuln_containers_os":true,"vuln_host_os":true},"id":"new-project","type":"gcp_scan_options"}}' headers: accept: - application/json @@ -10,7 +10,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp response: body: - string: '{"data":{"id":"new-project","type":"gcp_scan_options","attributes":{"vuln_containers_os":true,"vuln_host_os":true}}}' + string: '{"data":{"id":"new-project","type":"gcp_scan_options","attributes":{"cloud_function":true,"compliance_host":false,"vuln_containers_os":true,"vuln_host_os":true}}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.frozen index e13f833231..eb1b85a19f 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-23T22:22:02.253Z \ No newline at end of file +2026-07-17T06:38:47.452Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.yaml index c6e135f5ab..39459b610e 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_gcp_scan_options_returns_ok_response.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"vuln_containers_os":false},"id":"api-spec-test","type":"gcp_scan_options"}}' + body: '{"data":{"attributes":{"cloud_function":true,"vuln_containers_os":false},"id":"api-spec-test","type":"gcp_scan_options"}}' headers: accept: - application/json @@ -10,7 +10,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/agentless_scanning/accounts/gcp/api-spec-test response: body: - string: '{"data":{"id":"api-spec-test","type":"gcp_scan_options","attributes":{"vuln_containers_os":false,"vuln_host_os":true}}}' + string: '{"data":{"id":"api-spec-test","type":"gcp_scan_options","attributes":{"cloud_function":true,"compliance_host":false,"vuln_containers_os":false,"vuln_host_os":true}}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/features/agentless_scanning.feature b/tests/v2/features/agentless_scanning.feature index bbbf5b71f9..3b1344cb4a 100644 --- a/tests/v2/features/agentless_scanning.feature +++ b/tests/v2/features/agentless_scanning.feature @@ -52,16 +52,18 @@ Feature: Agentless Scanning @skip-validation @team:DataDog/k9-agentless Scenario: Create Azure scan options returns "Created" response Given new "CreateAzureScanOptions" request - And body with value {"data": {"attributes": {"vuln_containers_os": true, "vuln_host_os": true}, "id": "12345678-90ab-cdef-1234-567890abcdef", "type": "azure_scan_options"}} + And body with value {"data": {"attributes": {"function": true, "vuln_containers_os": true, "vuln_host_os": true}, "id": "12345678-90ab-cdef-1234-567890abcdef", "type": "azure_scan_options"}} When the request is sent Then the response status is 201 Created + And the response "data.attributes.function" is equal to true @team:DataDog/k9-agentless Scenario: Create GCP scan options returns "Agentless scan options enabled successfully." response Given new "CreateGcpScanOptions" request - And body with value {"data": {"id": "new-project", "type": "gcp_scan_options", "attributes": {"vuln_host_os": true, "vuln_containers_os": true}}} + And body with value {"data": {"id": "new-project", "type": "gcp_scan_options", "attributes": {"cloud_function": true, "vuln_host_os": true, "vuln_containers_os": true}}} When the request is sent Then the response status is 201 Created + And the response "data.attributes.cloud_function" is equal to true @team:DataDog/k9-agentless Scenario: Create GCP scan options returns "Bad Request" response @@ -301,9 +303,10 @@ Feature: Agentless Scanning Scenario: Update GCP scan options returns "OK" response Given new "UpdateGcpScanOptions" request And request contains "project_id" parameter with value "api-spec-test" - And body with value {"data": {"id": "api-spec-test", "type": "gcp_scan_options", "attributes": {"vuln_containers_os": false}}} + And body with value {"data": {"id": "api-spec-test", "type": "gcp_scan_options", "attributes": {"cloud_function": true, "vuln_containers_os": false}}} When the request is sent Then the response status is 200 OK And the response "data.id" is equal to "api-spec-test" And the response "data.attributes.vuln_host_os" is equal to true And the response "data.attributes.vuln_containers_os" is equal to false + And the response "data.attributes.cloud_function" is equal to true