diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index fcf5fd48e2c3..ee9db84ef411 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -55239,7 +55239,6 @@ components: type: string required: - name - - project_id type: object LLMObsAnnotationQueueDataAttributesResponse: description: Attributes of an LLM Observability annotation queue. @@ -158838,7 +158837,8 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- - Create an annotation queue. The `name` and `project_id` fields are required. + Create an annotation queue. The `name` field is required. + Optionally associate the queue with a project by providing `project_id`. An optional `annotation_schema` can be provided to define the labels for the queue. Fields such as `created_by`, `owned_by`, `created_at`, `modified_by`, and `modified_at` are inferred by the backend. diff --git a/lib/datadog_api_client/v2/api/llm_observability_api.rb b/lib/datadog_api_client/v2/api/llm_observability_api.rb index c419cc5cb7b5..8cc562927027 100644 --- a/lib/datadog_api_client/v2/api/llm_observability_api.rb +++ b/lib/datadog_api_client/v2/api/llm_observability_api.rb @@ -275,7 +275,8 @@ def create_llm_obs_annotation_queue(body, opts = {}) # Create an LLM Observability annotation queue. # - # Create an annotation queue. The `name` and `project_id` fields are required. + # Create an annotation queue. The `name` field is required. + # Optionally associate the queue with a project by providing `project_id`. # An optional `annotation_schema` can be provided to define the labels for the queue. # Fields such as `created_by`, `owned_by`, `created_at`, `modified_by`, # and `modified_at` are inferred by the backend. diff --git a/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_data_attributes_request.rb b/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_data_attributes_request.rb index 4a71521ca893..9f5a134e169e 100644 --- a/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_data_attributes_request.rb +++ b/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_data_attributes_request.rb @@ -31,7 +31,7 @@ class LLMObsAnnotationQueueDataAttributesRequest attr_reader :name # Identifier of the project this queue belongs to. - attr_reader :project_id + attr_accessor :project_id attr_accessor :additional_properties @@ -97,7 +97,6 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @name.nil? - return false if @project_id.nil? true end @@ -111,16 +110,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param project_id [Object] Object to be assigned - # @!visibility private - def project_id=(project_id) - if project_id.nil? - fail ArgumentError, 'invalid value for "project_id", project_id cannot be nil.' - end - @project_id = project_id - end - # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private