Skip to content

Commit 63d891a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 94f7c372 of spec repo
1 parent 22b1d7c commit 63d891a

9 files changed

+131
-14
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-18 16:20:32.486865",
8-
"spec_repo_commit": "78376979"
7+
"regenerated": "2025-03-21 17:04:07.195289",
8+
"spec_repo_commit": "94f7c372"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-18 16:20:32.502823",
13-
"spec_repo_commit": "78376979"
12+
"regenerated": "2025-03-21 17:04:07.211782",
13+
"spec_repo_commit": "94f7c372"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11968,7 +11968,10 @@ components:
1196811968
properties:
1196911969
rawSchema:
1197011970
description: Schema from user input in base64 encoding.
11971+
example: b3BlbmFwaTogMy4wLjQKaW5mbzoKICB0aXRsZTogU2FtcGxlIEFQSQogIHZlcnNpb246IDAuMS45Cg==
1197111972
type: string
11973+
required:
11974+
- rawSchema
1197211975
type: object
1197311976
EntityResponseIncludedRelatedEntity:
1197411977
description: Included related entity.
@@ -11989,16 +11992,21 @@ components:
1198911992
properties:
1199011993
kind:
1199111994
description: Entity kind.
11995+
example: team
1199211996
type: string
1199311997
name:
1199411998
description: Entity name.
11999+
example: bits-ai
1199512000
type: string
1199612001
namespace:
1199712002
description: Entity namespace.
1199812003
type: string
1199912004
type:
1200012005
description: Entity relation type to the associated entity.
1200112006
type: string
12007+
required:
12008+
- kind
12009+
- name
1200212010
type: object
1200312011
EntityResponseIncludedRelatedEntityMeta:
1200412012
description: Included related entity meta.
@@ -12036,7 +12044,10 @@ components:
1203612044
type: string
1203712045
title:
1203812046
description: Incident title.
12047+
example: fake-incident-title
1203912048
type: string
12049+
required:
12050+
- title
1204012051
type: object
1204112052
EntityResponseIncludedRelatedOncallAttributes:
1204212053
description: Included related oncall attributes.
@@ -12045,7 +12056,10 @@ components:
1204512056
$ref: '#/components/schemas/EntityResponseIncludedRelatedOncallEscalations'
1204612057
provider:
1204712058
description: Oncall provider.
12059+
example: pagerduty
1204812060
type: string
12061+
required:
12062+
- provider
1204912063
type: object
1205012064
EntityResponseIncludedRelatedOncallEscalationItem:
1205112065
description: Oncall escalation.
@@ -12083,6 +12097,8 @@ components:
1208312097
properties:
1208412098
schema:
1208512099
$ref: '#/components/schemas/EntityV3'
12100+
required:
12101+
- schema
1208612102
type: object
1208712103
EntityResponseMeta:
1208812104
description: Entity metadata.
@@ -12486,7 +12502,7 @@ components:
1248612502
properties:
1248712503
name:
1248812504
description: Team name.
12489-
example: ''
12505+
example: fake-team-name
1249012506
type: string
1249112507
type:
1249212508
description: Team type.

examples/v2/software-catalog/UpsertCatalogEntity.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
metadata: DatadogAPIClient::V2::EntityV3Metadata.new({
3737
additional_owners: [
3838
DatadogAPIClient::V2::EntityV3MetadataAdditionalOwnersItems.new({
39-
name: "",
39+
name: "fake-team-name",
4040
}),
4141
],
4242
contacts: [

features/v2/software_catalog.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Feature: Software Catalog
1010
@generated @skip @team:DataDog/service-catalog
1111
Scenario: Create or update entities returns "ACCEPTED" response
1212
Given new "UpsertCatalogEntity" request
13-
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": ""}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
13+
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": "fake-team-name"}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
1414
When the request is sent
1515
Then the response status is 202 ACCEPTED
1616

1717
@generated @skip @team:DataDog/service-catalog
1818
Scenario: Create or update entities returns "Bad Request" response
1919
Given new "UpsertCatalogEntity" request
20-
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": ""}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
20+
And body with value {"apiVersion": "v3", "datadog": {"codeLocations": [{"paths": []}], "events": [{}], "logs": [{}], "performanceData": {"tags": []}, "pipelines": {"fingerprints": []}}, "integrations": {"opsgenie": {"serviceURL": "https://www.opsgenie.com/service/shopping-cart"}, "pagerduty": {"serviceURL": "https://www.pagerduty.com/service-directory/Pshopping-cart"}}, "kind": "service", "metadata": {"additionalOwners": [{"name": "fake-team-name"}], "contacts": [{"contact": "https://slack/", "type": "slack"}], "id": "4b163705-23c0-4573-b2fb-f6cea2163fcb", "inheritFrom": "application:default/myapp", "links": [{"name": "mylink", "type": "link", "url": "https://mylink"}], "name": "myService", "namespace": "default", "tags": ["this:tag", "that:tag"]}, "spec": {"dependsOn": [], "languages": []}}
2121
When the request is sent
2222
Then the response status is 400 Bad Request
2323

lib/datadog_api_client/v2/models/entity_response_included_raw_schema_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EntityResponseIncludedRawSchemaAttributes
2222
include BaseGenericModel
2323

2424
# Schema from user input in base64 encoding.
25-
attr_accessor :raw_schema
25+
attr_reader :raw_schema
2626

2727
attr_accessor :additional_properties
2828

@@ -65,6 +65,24 @@ def initialize(attributes = {})
6565
end
6666
end
6767

68+
# Check to see if the all the properties in the model are valid
69+
# @return true if the model is valid
70+
# @!visibility private
71+
def valid?
72+
return false if @raw_schema.nil?
73+
true
74+
end
75+
76+
# Custom attribute writer method with validation
77+
# @param raw_schema [Object] Object to be assigned
78+
# @!visibility private
79+
def raw_schema=(raw_schema)
80+
if raw_schema.nil?
81+
fail ArgumentError, 'invalid value for "raw_schema", raw_schema cannot be nil.'
82+
end
83+
@raw_schema = raw_schema
84+
end
85+
6886
# Returns the object in the form of hash, with additionalProperties support.
6987
# @return [Hash] Returns the object in the form of hash
7088
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_related_entity_attributes.rb

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class EntityResponseIncludedRelatedEntityAttributes
2222
include BaseGenericModel
2323

2424
# Entity kind.
25-
attr_accessor :kind
25+
attr_reader :kind
2626

2727
# Entity name.
28-
attr_accessor :name
28+
attr_reader :name
2929

3030
# Entity namespace.
3131
attr_accessor :namespace
@@ -92,6 +92,35 @@ def initialize(attributes = {})
9292
end
9393
end
9494

95+
# Check to see if the all the properties in the model are valid
96+
# @return true if the model is valid
97+
# @!visibility private
98+
def valid?
99+
return false if @kind.nil?
100+
return false if @name.nil?
101+
true
102+
end
103+
104+
# Custom attribute writer method with validation
105+
# @param kind [Object] Object to be assigned
106+
# @!visibility private
107+
def kind=(kind)
108+
if kind.nil?
109+
fail ArgumentError, 'invalid value for "kind", kind cannot be nil.'
110+
end
111+
@kind = kind
112+
end
113+
114+
# Custom attribute writer method with validation
115+
# @param name [Object] Object to be assigned
116+
# @!visibility private
117+
def name=(name)
118+
if name.nil?
119+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
120+
end
121+
@name = name
122+
end
123+
95124
# Returns the object in the form of hash, with additionalProperties support.
96125
# @return [Hash] Returns the object in the form of hash
97126
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_related_incident_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class EntityResponseIncludedRelatedIncidentAttributes
3434
attr_accessor :status
3535

3636
# Incident title.
37-
attr_accessor :title
37+
attr_reader :title
3838

3939
attr_accessor :additional_properties
4040

@@ -101,6 +101,24 @@ def initialize(attributes = {})
101101
end
102102
end
103103

104+
# Check to see if the all the properties in the model are valid
105+
# @return true if the model is valid
106+
# @!visibility private
107+
def valid?
108+
return false if @title.nil?
109+
true
110+
end
111+
112+
# Custom attribute writer method with validation
113+
# @param title [Object] Object to be assigned
114+
# @!visibility private
115+
def title=(title)
116+
if title.nil?
117+
fail ArgumentError, 'invalid value for "title", title cannot be nil.'
118+
end
119+
@title = title
120+
end
121+
104122
# Returns the object in the form of hash, with additionalProperties support.
105123
# @return [Hash] Returns the object in the form of hash
106124
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EntityResponseIncludedRelatedOncallAttributes
2525
attr_accessor :escalations
2626

2727
# Oncall provider.
28-
attr_accessor :provider
28+
attr_reader :provider
2929

3030
attr_accessor :additional_properties
3131

@@ -76,6 +76,24 @@ def initialize(attributes = {})
7676
end
7777
end
7878

79+
# Check to see if the all the properties in the model are valid
80+
# @return true if the model is valid
81+
# @!visibility private
82+
def valid?
83+
return false if @provider.nil?
84+
true
85+
end
86+
87+
# Custom attribute writer method with validation
88+
# @param provider [Object] Object to be assigned
89+
# @!visibility private
90+
def provider=(provider)
91+
if provider.nil?
92+
fail ArgumentError, 'invalid value for "provider", provider cannot be nil.'
93+
end
94+
@provider = provider
95+
end
96+
7997
# Returns the object in the form of hash, with additionalProperties support.
8098
# @return [Hash] Returns the object in the form of hash
8199
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_schema_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EntityResponseIncludedSchemaAttributes
2222
include BaseGenericModel
2323

2424
# Entity schema v3.
25-
attr_accessor :schema
25+
attr_reader :schema
2626

2727
attr_accessor :additional_properties
2828

@@ -65,6 +65,24 @@ def initialize(attributes = {})
6565
end
6666
end
6767

68+
# Check to see if the all the properties in the model are valid
69+
# @return true if the model is valid
70+
# @!visibility private
71+
def valid?
72+
return false if @schema.nil?
73+
true
74+
end
75+
76+
# Custom attribute writer method with validation
77+
# @param schema [Object] Object to be assigned
78+
# @!visibility private
79+
def schema=(schema)
80+
if schema.nil?
81+
fail ArgumentError, 'invalid value for "schema", schema cannot be nil.'
82+
end
83+
@schema = schema
84+
end
85+
6886
# Returns the object in the form of hash, with additionalProperties support.
6987
# @return [Hash] Returns the object in the form of hash
7088
# @!visibility private

0 commit comments

Comments
 (0)