diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 81ee332d55..bd320edb5e 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -56723,8 +56723,9 @@ components: description: The definition of a configurable parameter on a control or mitigation. properties: default_value: - description: The default value of the parameter. The JSON type depends on the parameter's `type`. + description: The default value of the parameter. The JSON type depends on the parameter's `type`. `null` when the parameter has no default. example: 30 + nullable: true description: description: A human-readable description of the parameter. example: "Number of days of inactivity before an API key is considered unused." diff --git a/src/datadog_api_client/v2/model/governance_control_parameter_definition.py b/src/datadog_api_client/v2/model/governance_control_parameter_definition.py index 38dac7a043..58feb0d43c 100644 --- a/src/datadog_api_client/v2/model/governance_control_parameter_definition.py +++ b/src/datadog_api_client/v2/model/governance_control_parameter_definition.py @@ -25,18 +25,7 @@ def openapi_types(_): from datadog_api_client.v2.model.governance_control_supported_value import GovernanceControlSupportedValue return { - "default_value": ( - bool, - date, - datetime, - dict, - float, - int, - list, - str, - UUID, - none_type, - ), + "default_value": (bool, date, datetime, dict, float, int, list, str, UUID, none_type, none_type), "description": (str,), "display_name": (str,), "name": (str,), @@ -57,7 +46,7 @@ def openapi_types(_): def __init__( self_, - default_value: Any, + default_value: Union[Any, none_type], description: str, display_name: str, name: str, @@ -69,8 +58,8 @@ def __init__( """ The definition of a configurable parameter on a control or mitigation. - :param default_value: The default value of the parameter. The JSON type depends on the parameter's ``type``. - :type default_value: bool, date, datetime, dict, float, int, list, str, UUID, none_type + :param default_value: The default value of the parameter. The JSON type depends on the parameter's ``type``. ``null`` when the parameter has no default. + :type default_value: bool, date, datetime, dict, float, int, list, str, UUID, none_type, none_type :param description: A human-readable description of the parameter. :type description: str