Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-18 20:22:48.887517",
"spec_repo_commit": "c8707cdc"
"regenerated": "2025-02-18 22:25:26.654004",
"spec_repo_commit": "98988fd6"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-18 20:22:48.903125",
"spec_repo_commit": "c8707cdc"
"regenerated": "2025-02-18 22:25:26.671016",
"spec_repo_commit": "98988fd6"
}
}
}
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,7 @@ components:
type: array
required:
- exclude_only
type: object
AWSNamespaceFiltersIncludeOnly:
description: Include only these namespaces.
properties:
Expand All @@ -1543,6 +1544,7 @@ components:
type: array
required:
- include_only
type: object
AWSNamespaceTagFilter:
description: 'AWS Metrics Collection tag filters list. Defaults to `[]`.

Expand Down Expand Up @@ -1676,6 +1678,7 @@ components:
type: boolean
required:
- include_all
type: object
AWSRegionsIncludeOnly:
description: Include only these regions.
properties:
Expand All @@ -1689,6 +1692,7 @@ components:
type: array
required:
- include_only
type: object
AWSResourcesConfig:
description: AWS Resources Collection config.
properties:
Expand Down Expand Up @@ -10934,13 +10938,15 @@ components:
definition:
description: The API definition.
type: object
type: object
EntityV3APISpecInterfaceFileRef:
additionalProperties: false
description: The definition of `EntityV3APISpecInterfaceFileRef` object.
properties:
fileRef:
description: The reference to the API definition file.
type: string
type: object
EntityV3APIVersion:
description: The schema version of entity type. The field is known as schema-version
in the previous version.
Expand Down Expand Up @@ -11206,6 +11212,7 @@ components:
type: string
required:
- name
type: object
EntityV3MetadataContactsItems:
additionalProperties: false
description: The definition of Entity V3 Metadata Contacts Items object.
Expand Down Expand Up @@ -20228,6 +20235,7 @@ components:
$ref: '#/components/schemas/OktaAccountUpdateRequestAttributes'
type:
$ref: '#/components/schemas/OktaAccountType'
type: object
OktaAccountsResponse:
description: The expected response schema when getting Okta accounts.
properties:
Expand Down Expand Up @@ -25939,6 +25947,7 @@ components:
description: The version of the rule.
format: int64
type: integer
type: object
SecurityMonitoringSignalRuleResponseQuery:
description: Query for matching rule on signals.
properties:
Expand Down Expand Up @@ -26475,6 +26484,7 @@ components:
description: The version of the rule.
format: int64
type: integer
type: object
SecurityMonitoringStandardRuleTestPayload:
description: The payload of a rule to test
properties:
Expand Down Expand Up @@ -32266,6 +32276,7 @@ components:
type: boolean
required:
- include_all
type: object
XRayServicesIncludeOnly:
description: Include only these services. Defaults to `[]`.
nullable: true
Expand All @@ -32280,6 +32291,7 @@ components:
type: array
required:
- include_only
type: object
XRayServicesList:
description: AWS X-Ray services to collect traces from. Defaults to `include_only`.
oneOf:
Expand Down
4 changes: 4 additions & 0 deletions examples/v2/software-catalog/UpsertCatalogEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.datadog.api.client.v2.model.EntityV3DatadogPipelines;
import com.datadog.api.client.v2.model.EntityV3Integrations;
import com.datadog.api.client.v2.model.EntityV3Metadata;
import com.datadog.api.client.v2.model.EntityV3MetadataAdditionalOwnersItems;
import com.datadog.api.client.v2.model.EntityV3MetadataContactsItems;
import com.datadog.api.client.v2.model.EntityV3MetadataLinksItems;
import com.datadog.api.client.v2.model.EntityV3Service;
Expand Down Expand Up @@ -55,6 +56,9 @@ public static void main(String[] args) {
.kind(EntityV3ServiceKind.SERVICE)
.metadata(
new EntityV3Metadata()
.additionalOwners(
Collections.singletonList(
new EntityV3MetadataAdditionalOwnersItems().name("")))
.contacts(
Collections.singletonList(
new EntityV3MetadataContactsItems()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public class OktaAccountUpdateRequest {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_DATA = "data";
private OktaAccountUpdateRequestData data = new OktaAccountUpdateRequestData();
private OktaAccountUpdateRequestData data;

public OktaAccountUpdateRequest() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ Feature: Okta Integration
Scenario: Update Okta account returns "Bad Request" response
Given new "UpdateOktaAccount" request
And request contains "account_id" parameter from "REPLACE.ME"
And body with value {}
And body with value {"data": {"attributes": {"auth_method": "oauth", "domain": "https://dev-test.okta.com/"}, "type": "okta-accounts"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/saas-integrations
Scenario: Update Okta account returns "Not Found" response
Given new "UpdateOktaAccount" request
And request contains "account_id" parameter from "REPLACE.ME"
And body with value {}
And body with value {"data": {"attributes": {"auth_method": "oauth", "domain": "https://dev-test.okta.com/"}, "type": "okta-accounts"}}
When the request is sent
Then the response status is 404 Not Found

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Feature: Software Catalog
@generated @skip @team:DataDog/service-catalog
Scenario: Create or update entities returns "ACCEPTED" response
Given new "UpsertCatalogEntity" request
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": [], "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": []}}
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": []}}
When the request is sent
Then the response status is 202 ACCEPTED

@generated @skip @team:DataDog/service-catalog
Scenario: Create or update entities returns "Bad Request" response
Given new "UpsertCatalogEntity" request
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": [], "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": []}}
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": []}}
When the request is sent
Then the response status is 400 Bad Request

Expand Down