From 5db8001fabfd6921c16ec7e6b7b32240d37a0872 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 24 Aug 2026 12:55:50 +0000 Subject: [PATCH] Regenerate client from commit b90a9c8 of spec repo --- .generator/schemas/v2/openapi.yaml | 25 +++++++++++-------- .../v2/models/annotation.rb | 12 ++++++--- .../v2/models/annotation_display.rb | 4 +-- .../v2/models/annotation_display_bounds.rb | 10 ++++---- .../annotation_markdown_text_annotation.rb | 24 +++++++++++++++--- lib/datadog_api_client/v2/models/spec.rb | 22 ++++++++++++++-- 6 files changed, 70 insertions(+), 27 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9b5a962d1755..7484c39fc379 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -7199,13 +7199,14 @@ components: - fixes type: object Annotation: - description: "A list of annotations used in the workflow. These are like sticky notes for your workflow!" + description: A text annotation displayed on the workflow canvas. properties: display: $ref: "#/components/schemas/AnnotationDisplay" id: - description: The `Annotation` `id`. + description: The unique identifier of this annotation within the workflow. example: "" + minLength: 1 type: string markdownTextAnnotation: $ref: "#/components/schemas/AnnotationMarkdownTextAnnotation" @@ -7362,28 +7363,28 @@ components: - attributes type: object AnnotationDisplay: - description: The definition of `AnnotationDisplay` object. + description: The annotation's position and size on the workflow canvas. properties: bounds: $ref: "#/components/schemas/AnnotationDisplayBounds" type: object AnnotationDisplayBounds: - description: The definition of `AnnotationDisplayBounds` object. + description: Canvas coordinates and dimensions for an annotation on the workflow canvas. properties: height: - description: The `bounds` `height`. + description: The annotation's height on the canvas. format: double type: number width: - description: The `bounds` `width`. + description: The annotation's width on the canvas. format: double type: number x: - description: The `bounds` `x`. + description: The annotation's horizontal canvas coordinate. format: double type: number y: - description: The `bounds` `y`. + description: The annotation's vertical canvas coordinate. format: double type: number type: object @@ -7467,10 +7468,11 @@ components: - POINT_IN_TIME - TIME_REGION AnnotationMarkdownTextAnnotation: - description: The definition of `AnnotationMarkdownTextAnnotation` object. + description: Markdown content displayed in an annotation. properties: text: - description: The `markdownTextAnnotation` `text`. + description: The annotation's Markdown content. + maxLength: 3000 type: string type: object AnnotationRequestData: @@ -107323,9 +107325,10 @@ components: description: A complete Workflow Automation definition, including its triggers, steps, and connections. properties: annotations: - description: "A list of annotations used in the workflow. These are like sticky notes for your workflow!" + description: Up to 100 text annotations displayed on the workflow canvas. items: $ref: "#/components/schemas/Annotation" + maxItems: 100 type: array connectionEnvs: description: A list of connections or connection groups used in the workflow. diff --git a/lib/datadog_api_client/v2/models/annotation.rb b/lib/datadog_api_client/v2/models/annotation.rb index 9ba7dff309bd..706ffa3fe793 100644 --- a/lib/datadog_api_client/v2/models/annotation.rb +++ b/lib/datadog_api_client/v2/models/annotation.rb @@ -17,17 +17,17 @@ require 'time' module DatadogAPIClient::V2 - # A list of annotations used in the workflow. These are like sticky notes for your workflow! + # A text annotation displayed on the workflow canvas. class Annotation include BaseGenericModel - # The definition of `AnnotationDisplay` object. + # The annotation's position and size on the workflow canvas. attr_reader :display - # The `Annotation` `id`. + # The unique identifier of this annotation within the workflow. attr_reader :id - # The definition of `AnnotationMarkdownTextAnnotation` object. + # Markdown content displayed in an annotation. attr_reader :markdown_text_annotation attr_accessor :additional_properties @@ -89,6 +89,7 @@ def initialize(attributes = {}) def valid? return false if @display.nil? return false if @id.nil? + return false if @id.to_s.length < 1 return false if @markdown_text_annotation.nil? true end @@ -110,6 +111,9 @@ def id=(id) if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end + if id.to_s.length < 1 + fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.' + end @id = id end diff --git a/lib/datadog_api_client/v2/models/annotation_display.rb b/lib/datadog_api_client/v2/models/annotation_display.rb index 7d99e59a786f..a20c6d9831ef 100644 --- a/lib/datadog_api_client/v2/models/annotation_display.rb +++ b/lib/datadog_api_client/v2/models/annotation_display.rb @@ -17,11 +17,11 @@ require 'time' module DatadogAPIClient::V2 - # The definition of `AnnotationDisplay` object. + # The annotation's position and size on the workflow canvas. class AnnotationDisplay include BaseGenericModel - # The definition of `AnnotationDisplayBounds` object. + # Canvas coordinates and dimensions for an annotation on the workflow canvas. attr_accessor :bounds attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/annotation_display_bounds.rb b/lib/datadog_api_client/v2/models/annotation_display_bounds.rb index 7e0d728066b0..4c08a627075a 100644 --- a/lib/datadog_api_client/v2/models/annotation_display_bounds.rb +++ b/lib/datadog_api_client/v2/models/annotation_display_bounds.rb @@ -17,20 +17,20 @@ require 'time' module DatadogAPIClient::V2 - # The definition of `AnnotationDisplayBounds` object. + # Canvas coordinates and dimensions for an annotation on the workflow canvas. class AnnotationDisplayBounds include BaseGenericModel - # The `bounds` `height`. + # The annotation's height on the canvas. attr_accessor :height - # The `bounds` `width`. + # The annotation's width on the canvas. attr_accessor :width - # The `bounds` `x`. + # The annotation's horizontal canvas coordinate. attr_accessor :x - # The `bounds` `y`. + # The annotation's vertical canvas coordinate. attr_accessor :y attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/annotation_markdown_text_annotation.rb b/lib/datadog_api_client/v2/models/annotation_markdown_text_annotation.rb index f07b19bd4eba..5e975467b159 100644 --- a/lib/datadog_api_client/v2/models/annotation_markdown_text_annotation.rb +++ b/lib/datadog_api_client/v2/models/annotation_markdown_text_annotation.rb @@ -17,12 +17,12 @@ require 'time' module DatadogAPIClient::V2 - # The definition of `AnnotationMarkdownTextAnnotation` object. + # Markdown content displayed in an annotation. class AnnotationMarkdownTextAnnotation include BaseGenericModel - # The `markdownTextAnnotation` `text`. - attr_accessor :text + # The annotation's Markdown content. + attr_reader :text attr_accessor :additional_properties @@ -65,6 +65,24 @@ def initialize(attributes = {}) end end + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if !@text.nil? && @text.to_s.length > 3000 + true + end + + # Custom attribute writer method with validation + # @param text [Object] Object to be assigned + # @!visibility private + def text=(text) + if !text.nil? && text.to_s.length > 3000 + fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 3000.' + end + @text = text + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private diff --git a/lib/datadog_api_client/v2/models/spec.rb b/lib/datadog_api_client/v2/models/spec.rb index 327d84768d8d..b812fb7d04b5 100644 --- a/lib/datadog_api_client/v2/models/spec.rb +++ b/lib/datadog_api_client/v2/models/spec.rb @@ -21,8 +21,8 @@ module DatadogAPIClient::V2 class Spec include BaseGenericModel - # A list of annotations used in the workflow. These are like sticky notes for your workflow! - attr_accessor :annotations + # Up to 100 text annotations displayed on the workflow canvas. + attr_reader :annotations # A list of connections or connection groups used in the workflow. attr_accessor :connection_envs @@ -127,6 +127,24 @@ def initialize(attributes = {}) end end + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if !@annotations.nil? && @annotations.length > 100 + true + end + + # Custom attribute writer method with validation + # @param annotations [Object] Object to be assigned + # @!visibility private + def annotations=(annotations) + if !annotations.nil? && annotations.length > 100 + fail ArgumentError, 'invalid value for "annotations", number of items must be less than or equal to 100.' + end + @annotations = annotations + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private