Skip to content

Commit 4bbd455

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b3ed9190 of spec repo
1 parent d0cabb4 commit 4bbd455

File tree

7 files changed

+1087
-16
lines changed

7 files changed

+1087
-16
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-24 14:58:29.224495",
8-
"spec_repo_commit": "764de5f0"
7+
"regenerated": "2025-03-25 18:02:24.050498",
8+
"spec_repo_commit": "b3ed9190"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-24 14:58:29.240267",
13-
"spec_repo_commit": "764de5f0"
12+
"regenerated": "2025-03-25 18:02:24.066373",
13+
"spec_repo_commit": "b3ed9190"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10813,6 +10813,17 @@ components:
1081310813
type: string
1081410814
x-enum-varnames:
1081510815
- DATATRANSFORM
10816+
DatabaseMonitoringTriggerWrapper:
10817+
description: Schema for a Database Monitoring-based trigger.
10818+
properties:
10819+
databaseMonitoringTrigger:
10820+
description: Trigger a workflow VIA Database Monitoring.
10821+
type: object
10822+
startStepNames:
10823+
$ref: '#/components/schemas/StartStepNames'
10824+
required:
10825+
- databaseMonitoringTrigger
10826+
type: object
1081610827
Date:
1081710828
description: Date as Unix timestamp in milliseconds.
1081810829
example: 1722439510282
@@ -21317,6 +21328,17 @@ components:
2131721328
meta:
2131821329
$ref: '#/components/schemas/MonthlyCostAttributionMeta'
2131921330
type: object
21331+
NotebookTriggerWrapper:
21332+
description: Schema for a Notebook-based trigger.
21333+
properties:
21334+
notebookTrigger:
21335+
description: Trigger a workflow VIA a Notebook.
21336+
type: object
21337+
startStepNames:
21338+
$ref: '#/components/schemas/StartStepNames'
21339+
required:
21340+
- notebookTrigger
21341+
type: object
2132021342
NotificationRule:
2132121343
description: 'Notification rules allow full control over notifications generated
2132221344
by the various Datadog security products.
@@ -28475,6 +28497,17 @@ components:
2847528497
required:
2847628498
- trigger_source
2847728499
type: object
28500+
SelfServiceTriggerWrapper:
28501+
description: Schema for a Self Service-based trigger.
28502+
properties:
28503+
selfServiceTrigger:
28504+
description: Trigger a workflow VIA Self Service.
28505+
type: object
28506+
startStepNames:
28507+
$ref: '#/components/schemas/StartStepNames'
28508+
required:
28509+
- selfServiceTrigger
28510+
type: object
2847828511
SensitiveDataScannerConfigRequest:
2847928512
description: Group reorder request.
2848028513
properties:
@@ -30249,6 +30282,17 @@ components:
3024930282
required:
3025030283
- attributes
3025130284
type: object
30285+
SoftwareCatalogTriggerWrapper:
30286+
description: Schema for a Software Catalog-based trigger.
30287+
properties:
30288+
softwareCatalogTrigger:
30289+
description: Trigger a workflow VIA Software Catalog.
30290+
type: object
30291+
startStepNames:
30292+
$ref: '#/components/schemas/StartStepNames'
30293+
required:
30294+
- softwareCatalogTrigger
30295+
type: object
3025230296
SortDirection:
3025330297
default: desc
3025430298
description: The direction to sort by.
@@ -32108,13 +32152,17 @@ components:
3210832152
- $ref: '#/components/schemas/AppTriggerWrapper'
3210932153
- $ref: '#/components/schemas/CaseTriggerWrapper'
3211032154
- $ref: '#/components/schemas/ChangeEventTriggerWrapper'
32155+
- $ref: '#/components/schemas/DatabaseMonitoringTriggerWrapper'
3211132156
- $ref: '#/components/schemas/DashboardTriggerWrapper'
3211232157
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
3211332158
- $ref: '#/components/schemas/IncidentTriggerWrapper'
3211432159
- $ref: '#/components/schemas/MonitorTriggerWrapper'
32160+
- $ref: '#/components/schemas/NotebookTriggerWrapper'
3211532161
- $ref: '#/components/schemas/ScheduleTriggerWrapper'
3211632162
- $ref: '#/components/schemas/SecurityTriggerWrapper'
32163+
- $ref: '#/components/schemas/SelfServiceTriggerWrapper'
3211732164
- $ref: '#/components/schemas/SlackTriggerWrapper'
32165+
- $ref: '#/components/schemas/SoftwareCatalogTriggerWrapper'
3211832166
- $ref: '#/components/schemas/WorkflowTriggerWrapper'
3211932167
TriggerRateLimit:
3212032168
description: Defines a rate limit for a trigger.
Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*/
6+
7+
package com.datadog.api.client.v2.model;
8+
9+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
10+
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
12+
import com.fasterxml.jackson.annotation.JsonIgnore;
13+
import com.fasterxml.jackson.annotation.JsonInclude;
14+
import com.fasterxml.jackson.annotation.JsonProperty;
15+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.util.ArrayList;
17+
import java.util.HashMap;
18+
import java.util.List;
19+
import java.util.Map;
20+
import java.util.Objects;
21+
22+
/** Schema for a Database Monitoring-based trigger. */
23+
@JsonPropertyOrder({
24+
DatabaseMonitoringTriggerWrapper.JSON_PROPERTY_DATABASE_MONITORING_TRIGGER,
25+
DatabaseMonitoringTriggerWrapper.JSON_PROPERTY_START_STEP_NAMES
26+
})
27+
@jakarta.annotation.Generated(
28+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
29+
public class DatabaseMonitoringTriggerWrapper {
30+
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_DATABASE_MONITORING_TRIGGER =
32+
"databaseMonitoringTrigger";
33+
private Object databaseMonitoringTrigger;
34+
35+
public static final String JSON_PROPERTY_START_STEP_NAMES = "startStepNames";
36+
private List<String> startStepNames = null;
37+
38+
public DatabaseMonitoringTriggerWrapper() {}
39+
40+
@JsonCreator
41+
public DatabaseMonitoringTriggerWrapper(
42+
@JsonProperty(required = true, value = JSON_PROPERTY_DATABASE_MONITORING_TRIGGER)
43+
Object databaseMonitoringTrigger) {
44+
this.databaseMonitoringTrigger = databaseMonitoringTrigger;
45+
}
46+
47+
public DatabaseMonitoringTriggerWrapper databaseMonitoringTrigger(
48+
Object databaseMonitoringTrigger) {
49+
this.databaseMonitoringTrigger = databaseMonitoringTrigger;
50+
return this;
51+
}
52+
53+
/**
54+
* Trigger a workflow VIA Database Monitoring.
55+
*
56+
* @return databaseMonitoringTrigger
57+
*/
58+
@JsonProperty(JSON_PROPERTY_DATABASE_MONITORING_TRIGGER)
59+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
60+
public Object getDatabaseMonitoringTrigger() {
61+
return databaseMonitoringTrigger;
62+
}
63+
64+
public void setDatabaseMonitoringTrigger(Object databaseMonitoringTrigger) {
65+
this.databaseMonitoringTrigger = databaseMonitoringTrigger;
66+
}
67+
68+
public DatabaseMonitoringTriggerWrapper startStepNames(List<String> startStepNames) {
69+
this.startStepNames = startStepNames;
70+
return this;
71+
}
72+
73+
public DatabaseMonitoringTriggerWrapper addStartStepNamesItem(String startStepNamesItem) {
74+
if (this.startStepNames == null) {
75+
this.startStepNames = new ArrayList<>();
76+
}
77+
this.startStepNames.add(startStepNamesItem);
78+
return this;
79+
}
80+
81+
/**
82+
* A list of steps that run first after a trigger fires.
83+
*
84+
* @return startStepNames
85+
*/
86+
@jakarta.annotation.Nullable
87+
@JsonProperty(JSON_PROPERTY_START_STEP_NAMES)
88+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
89+
public List<String> getStartStepNames() {
90+
return startStepNames;
91+
}
92+
93+
public void setStartStepNames(List<String> startStepNames) {
94+
this.startStepNames = startStepNames;
95+
}
96+
97+
/**
98+
* A container for additional, undeclared properties. This is a holder for any undeclared
99+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
100+
*/
101+
private Map<String, Object> additionalProperties;
102+
103+
/**
104+
* Set the additional (undeclared) property with the specified name and value. If the property
105+
* does not already exist, create it otherwise replace it.
106+
*
107+
* @param key The arbitrary key to set
108+
* @param value The associated value
109+
* @return DatabaseMonitoringTriggerWrapper
110+
*/
111+
@JsonAnySetter
112+
public DatabaseMonitoringTriggerWrapper putAdditionalProperty(String key, Object value) {
113+
if (this.additionalProperties == null) {
114+
this.additionalProperties = new HashMap<String, Object>();
115+
}
116+
this.additionalProperties.put(key, value);
117+
return this;
118+
}
119+
120+
/**
121+
* Return the additional (undeclared) property.
122+
*
123+
* @return The additional properties
124+
*/
125+
@JsonAnyGetter
126+
public Map<String, Object> getAdditionalProperties() {
127+
return additionalProperties;
128+
}
129+
130+
/**
131+
* Return the additional (undeclared) property with the specified name.
132+
*
133+
* @param key The arbitrary key to get
134+
* @return The specific additional property for the given key
135+
*/
136+
public Object getAdditionalProperty(String key) {
137+
if (this.additionalProperties == null) {
138+
return null;
139+
}
140+
return this.additionalProperties.get(key);
141+
}
142+
143+
/** Return true if this DatabaseMonitoringTriggerWrapper object is equal to o. */
144+
@Override
145+
public boolean equals(Object o) {
146+
if (this == o) {
147+
return true;
148+
}
149+
if (o == null || getClass() != o.getClass()) {
150+
return false;
151+
}
152+
DatabaseMonitoringTriggerWrapper databaseMonitoringTriggerWrapper =
153+
(DatabaseMonitoringTriggerWrapper) o;
154+
return Objects.equals(
155+
this.databaseMonitoringTrigger,
156+
databaseMonitoringTriggerWrapper.databaseMonitoringTrigger)
157+
&& Objects.equals(this.startStepNames, databaseMonitoringTriggerWrapper.startStepNames)
158+
&& Objects.equals(
159+
this.additionalProperties, databaseMonitoringTriggerWrapper.additionalProperties);
160+
}
161+
162+
@Override
163+
public int hashCode() {
164+
return Objects.hash(databaseMonitoringTrigger, startStepNames, additionalProperties);
165+
}
166+
167+
@Override
168+
public String toString() {
169+
StringBuilder sb = new StringBuilder();
170+
sb.append("class DatabaseMonitoringTriggerWrapper {\n");
171+
sb.append(" databaseMonitoringTrigger: ")
172+
.append(toIndentedString(databaseMonitoringTrigger))
173+
.append("\n");
174+
sb.append(" startStepNames: ").append(toIndentedString(startStepNames)).append("\n");
175+
sb.append(" additionalProperties: ")
176+
.append(toIndentedString(additionalProperties))
177+
.append("\n");
178+
sb.append('}');
179+
return sb.toString();
180+
}
181+
182+
/**
183+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
184+
*/
185+
private String toIndentedString(Object o) {
186+
if (o == null) {
187+
return "null";
188+
}
189+
return o.toString().replace("\n", "\n ");
190+
}
191+
}

0 commit comments

Comments
 (0)