From bbd92e92ea2a35eefc27849e744ea0996e706a44 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 18 Mar 2025 18:58:23 +0000 Subject: [PATCH] Regenerate client from commit 8b9cffb1 of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 14 +++++++++++++ ...response_included_raw_schema_attributes.rb | 20 ++++++++++++++++++- ...onse_included_related_entity_attributes.rb | 20 ++++++++++++++++++- ...se_included_related_incident_attributes.rb | 20 ++++++++++++++++++- ...onse_included_related_oncall_attributes.rb | 20 ++++++++++++++++++- ...ity_response_included_schema_attributes.rb | 20 ++++++++++++++++++- 7 files changed, 113 insertions(+), 9 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 4b15754974ee..4e15dac3d598 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-03-17 21:06:24.773354", - "spec_repo_commit": "2dfddc18" + "regenerated": "2025-03-18 18:57:53.011554", + "spec_repo_commit": "8b9cffb1" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-03-17 21:06:24.789125", - "spec_repo_commit": "2dfddc18" + "regenerated": "2025-03-18 18:57:53.027622", + "spec_repo_commit": "8b9cffb1" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index aa344b25b5e0..e9ed41203191 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -11968,7 +11968,10 @@ components: properties: rawSchema: description: Schema from user input in base64 encoding. + example: '' type: string + required: + - rawSchema type: object EntityResponseIncludedRelatedEntity: description: Included related entity. @@ -11989,6 +11992,7 @@ components: properties: kind: description: Entity kind. + example: '' type: string name: description: Entity name. @@ -11999,6 +12003,8 @@ components: type: description: Entity relation type to the associated entity. type: string + required: + - kind type: object EntityResponseIncludedRelatedEntityMeta: description: Included related entity meta. @@ -12036,7 +12042,10 @@ components: type: string title: description: Incident title. + example: '' type: string + required: + - title type: object EntityResponseIncludedRelatedOncallAttributes: description: Included related oncall attributes. @@ -12045,7 +12054,10 @@ components: $ref: '#/components/schemas/EntityResponseIncludedRelatedOncallEscalations' provider: description: Oncall provider. + example: '' type: string + required: + - provider type: object EntityResponseIncludedRelatedOncallEscalationItem: description: Oncall escalation. @@ -12083,6 +12095,8 @@ components: properties: schema: $ref: '#/components/schemas/EntityV3' + required: + - schema type: object EntityResponseMeta: description: Entity metadata. diff --git a/lib/datadog_api_client/v2/models/entity_response_included_raw_schema_attributes.rb b/lib/datadog_api_client/v2/models/entity_response_included_raw_schema_attributes.rb index d9c13ab03b7a..c4566247e4c4 100644 --- a/lib/datadog_api_client/v2/models/entity_response_included_raw_schema_attributes.rb +++ b/lib/datadog_api_client/v2/models/entity_response_included_raw_schema_attributes.rb @@ -22,7 +22,7 @@ class EntityResponseIncludedRawSchemaAttributes include BaseGenericModel # Schema from user input in base64 encoding. - attr_accessor :raw_schema + attr_reader :raw_schema 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 @raw_schema.nil? + true + end + + # Custom attribute writer method with validation + # @param raw_schema [Object] Object to be assigned + # @!visibility private + def raw_schema=(raw_schema) + if raw_schema.nil? + fail ArgumentError, 'invalid value for "raw_schema", raw_schema cannot be nil.' + end + @raw_schema = raw_schema + 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/entity_response_included_related_entity_attributes.rb b/lib/datadog_api_client/v2/models/entity_response_included_related_entity_attributes.rb index 20909c1edce6..eb852cf68ffd 100644 --- a/lib/datadog_api_client/v2/models/entity_response_included_related_entity_attributes.rb +++ b/lib/datadog_api_client/v2/models/entity_response_included_related_entity_attributes.rb @@ -22,7 +22,7 @@ class EntityResponseIncludedRelatedEntityAttributes include BaseGenericModel # Entity kind. - attr_accessor :kind + attr_reader :kind # Entity name. attr_accessor :name @@ -92,6 +92,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 @kind.nil? + true + end + + # Custom attribute writer method with validation + # @param kind [Object] Object to be assigned + # @!visibility private + def kind=(kind) + if kind.nil? + fail ArgumentError, 'invalid value for "kind", kind cannot be nil.' + end + @kind = kind + 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/entity_response_included_related_incident_attributes.rb b/lib/datadog_api_client/v2/models/entity_response_included_related_incident_attributes.rb index bdbfc4addc96..5e60952f92a8 100644 --- a/lib/datadog_api_client/v2/models/entity_response_included_related_incident_attributes.rb +++ b/lib/datadog_api_client/v2/models/entity_response_included_related_incident_attributes.rb @@ -34,7 +34,7 @@ class EntityResponseIncludedRelatedIncidentAttributes attr_accessor :status # Incident title. - attr_accessor :title + attr_reader :title attr_accessor :additional_properties @@ -101,6 +101,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 @title.nil? + true + end + + # Custom attribute writer method with validation + # @param title [Object] Object to be assigned + # @!visibility private + def title=(title) + if title.nil? + fail ArgumentError, 'invalid value for "title", title cannot be nil.' + end + @title = title + 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/entity_response_included_related_oncall_attributes.rb b/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb index 8abd9714182c..55bc8cba4c04 100644 --- a/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb +++ b/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb @@ -25,7 +25,7 @@ class EntityResponseIncludedRelatedOncallAttributes attr_accessor :escalations # Oncall provider. - attr_accessor :provider + attr_reader :provider attr_accessor :additional_properties @@ -76,6 +76,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 @provider.nil? + true + end + + # Custom attribute writer method with validation + # @param provider [Object] Object to be assigned + # @!visibility private + def provider=(provider) + if provider.nil? + fail ArgumentError, 'invalid value for "provider", provider cannot be nil.' + end + @provider = provider + 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/entity_response_included_schema_attributes.rb b/lib/datadog_api_client/v2/models/entity_response_included_schema_attributes.rb index 1e151e5b37de..1095080b273e 100644 --- a/lib/datadog_api_client/v2/models/entity_response_included_schema_attributes.rb +++ b/lib/datadog_api_client/v2/models/entity_response_included_schema_attributes.rb @@ -22,7 +22,7 @@ class EntityResponseIncludedSchemaAttributes include BaseGenericModel # Entity schema v3. - attr_accessor :schema + attr_reader :schema 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 @schema.nil? + true + end + + # Custom attribute writer method with validation + # @param schema [Object] Object to be assigned + # @!visibility private + def schema=(schema) + if schema.nil? + fail ArgumentError, 'invalid value for "schema", schema cannot be nil.' + end + @schema = schema + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private