Skip to content

Commit 465a9b4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit db567d8 of spec repo (#3153)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent fbd0bf3 commit 465a9b4

File tree

4 files changed

+425
-16
lines changed

4 files changed

+425
-16
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14697,6 +14697,23 @@ components:
1469714697
x-enum-varnames:
1469814698
- NONE
1469914699
- UUID
14700+
DatastoreTrigger:
14701+
description: Trigger a workflow from a Datastore. For automatic triggering a
14702+
handle must be configured and the workflow must be published.
14703+
properties:
14704+
rateLimit:
14705+
$ref: '#/components/schemas/TriggerRateLimit'
14706+
type: object
14707+
DatastoreTriggerWrapper:
14708+
description: Schema for a Datastore-based trigger.
14709+
properties:
14710+
datastoreTrigger:
14711+
$ref: '#/components/schemas/DatastoreTrigger'
14712+
startStepNames:
14713+
$ref: '#/components/schemas/StartStepNames'
14714+
required:
14715+
- datastoreTrigger
14716+
type: object
1470014717
Date:
1470114718
description: Date as Unix timestamp in milliseconds.
1470214719
example: 1722439510282
@@ -47710,6 +47727,7 @@ components:
4771047727
- $ref: '#/components/schemas/CaseTriggerWrapper'
4771147728
- $ref: '#/components/schemas/ChangeEventTriggerWrapper'
4771247729
- $ref: '#/components/schemas/DatabaseMonitoringTriggerWrapper'
47730+
- $ref: '#/components/schemas/DatastoreTriggerWrapper'
4771347731
- $ref: '#/components/schemas/DashboardTriggerWrapper'
4771447732
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
4771547733
- $ref: '#/components/schemas/IncidentTriggerWrapper'
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
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.JsonIgnore;
12+
import com.fasterxml.jackson.annotation.JsonInclude;
13+
import com.fasterxml.jackson.annotation.JsonProperty;
14+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
19+
/**
20+
* Trigger a workflow from a Datastore. For automatic triggering a handle must be configured and the
21+
* workflow must be published.
22+
*/
23+
@JsonPropertyOrder({DatastoreTrigger.JSON_PROPERTY_RATE_LIMIT})
24+
@jakarta.annotation.Generated(
25+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
26+
public class DatastoreTrigger {
27+
@JsonIgnore public boolean unparsed = false;
28+
public static final String JSON_PROPERTY_RATE_LIMIT = "rateLimit";
29+
private TriggerRateLimit rateLimit;
30+
31+
public DatastoreTrigger rateLimit(TriggerRateLimit rateLimit) {
32+
this.rateLimit = rateLimit;
33+
this.unparsed |= rateLimit.unparsed;
34+
return this;
35+
}
36+
37+
/**
38+
* Defines a rate limit for a trigger.
39+
*
40+
* @return rateLimit
41+
*/
42+
@jakarta.annotation.Nullable
43+
@JsonProperty(JSON_PROPERTY_RATE_LIMIT)
44+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
45+
public TriggerRateLimit getRateLimit() {
46+
return rateLimit;
47+
}
48+
49+
public void setRateLimit(TriggerRateLimit rateLimit) {
50+
this.rateLimit = rateLimit;
51+
}
52+
53+
/**
54+
* A container for additional, undeclared properties. This is a holder for any undeclared
55+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
56+
*/
57+
private Map<String, Object> additionalProperties;
58+
59+
/**
60+
* Set the additional (undeclared) property with the specified name and value. If the property
61+
* does not already exist, create it otherwise replace it.
62+
*
63+
* @param key The arbitrary key to set
64+
* @param value The associated value
65+
* @return DatastoreTrigger
66+
*/
67+
@JsonAnySetter
68+
public DatastoreTrigger putAdditionalProperty(String key, Object value) {
69+
if (this.additionalProperties == null) {
70+
this.additionalProperties = new HashMap<String, Object>();
71+
}
72+
this.additionalProperties.put(key, value);
73+
return this;
74+
}
75+
76+
/**
77+
* Return the additional (undeclared) property.
78+
*
79+
* @return The additional properties
80+
*/
81+
@JsonAnyGetter
82+
public Map<String, Object> getAdditionalProperties() {
83+
return additionalProperties;
84+
}
85+
86+
/**
87+
* Return the additional (undeclared) property with the specified name.
88+
*
89+
* @param key The arbitrary key to get
90+
* @return The specific additional property for the given key
91+
*/
92+
public Object getAdditionalProperty(String key) {
93+
if (this.additionalProperties == null) {
94+
return null;
95+
}
96+
return this.additionalProperties.get(key);
97+
}
98+
99+
/** Return true if this DatastoreTrigger object is equal to o. */
100+
@Override
101+
public boolean equals(Object o) {
102+
if (this == o) {
103+
return true;
104+
}
105+
if (o == null || getClass() != o.getClass()) {
106+
return false;
107+
}
108+
DatastoreTrigger datastoreTrigger = (DatastoreTrigger) o;
109+
return Objects.equals(this.rateLimit, datastoreTrigger.rateLimit)
110+
&& Objects.equals(this.additionalProperties, datastoreTrigger.additionalProperties);
111+
}
112+
113+
@Override
114+
public int hashCode() {
115+
return Objects.hash(rateLimit, additionalProperties);
116+
}
117+
118+
@Override
119+
public String toString() {
120+
StringBuilder sb = new StringBuilder();
121+
sb.append("class DatastoreTrigger {\n");
122+
sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n");
123+
sb.append(" additionalProperties: ")
124+
.append(toIndentedString(additionalProperties))
125+
.append("\n");
126+
sb.append('}');
127+
return sb.toString();
128+
}
129+
130+
/**
131+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
132+
*/
133+
private String toIndentedString(Object o) {
134+
if (o == null) {
135+
return "null";
136+
}
137+
return o.toString().replace("\n", "\n ");
138+
}
139+
}
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
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 Datastore-based trigger. */
23+
@JsonPropertyOrder({
24+
DatastoreTriggerWrapper.JSON_PROPERTY_DATASTORE_TRIGGER,
25+
DatastoreTriggerWrapper.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 DatastoreTriggerWrapper {
30+
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_DATASTORE_TRIGGER = "datastoreTrigger";
32+
private DatastoreTrigger datastoreTrigger;
33+
34+
public static final String JSON_PROPERTY_START_STEP_NAMES = "startStepNames";
35+
private List<String> startStepNames = null;
36+
37+
public DatastoreTriggerWrapper() {}
38+
39+
@JsonCreator
40+
public DatastoreTriggerWrapper(
41+
@JsonProperty(required = true, value = JSON_PROPERTY_DATASTORE_TRIGGER)
42+
DatastoreTrigger datastoreTrigger) {
43+
this.datastoreTrigger = datastoreTrigger;
44+
this.unparsed |= datastoreTrigger.unparsed;
45+
}
46+
47+
public DatastoreTriggerWrapper datastoreTrigger(DatastoreTrigger datastoreTrigger) {
48+
this.datastoreTrigger = datastoreTrigger;
49+
this.unparsed |= datastoreTrigger.unparsed;
50+
return this;
51+
}
52+
53+
/**
54+
* Trigger a workflow from a Datastore. For automatic triggering a handle must be configured and
55+
* the workflow must be published.
56+
*
57+
* @return datastoreTrigger
58+
*/
59+
@JsonProperty(JSON_PROPERTY_DATASTORE_TRIGGER)
60+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
61+
public DatastoreTrigger getDatastoreTrigger() {
62+
return datastoreTrigger;
63+
}
64+
65+
public void setDatastoreTrigger(DatastoreTrigger datastoreTrigger) {
66+
this.datastoreTrigger = datastoreTrigger;
67+
}
68+
69+
public DatastoreTriggerWrapper startStepNames(List<String> startStepNames) {
70+
this.startStepNames = startStepNames;
71+
return this;
72+
}
73+
74+
public DatastoreTriggerWrapper addStartStepNamesItem(String startStepNamesItem) {
75+
if (this.startStepNames == null) {
76+
this.startStepNames = new ArrayList<>();
77+
}
78+
this.startStepNames.add(startStepNamesItem);
79+
return this;
80+
}
81+
82+
/**
83+
* A list of steps that run first after a trigger fires.
84+
*
85+
* @return startStepNames
86+
*/
87+
@jakarta.annotation.Nullable
88+
@JsonProperty(JSON_PROPERTY_START_STEP_NAMES)
89+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90+
public List<String> getStartStepNames() {
91+
return startStepNames;
92+
}
93+
94+
public void setStartStepNames(List<String> startStepNames) {
95+
this.startStepNames = startStepNames;
96+
}
97+
98+
/**
99+
* A container for additional, undeclared properties. This is a holder for any undeclared
100+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
101+
*/
102+
private Map<String, Object> additionalProperties;
103+
104+
/**
105+
* Set the additional (undeclared) property with the specified name and value. If the property
106+
* does not already exist, create it otherwise replace it.
107+
*
108+
* @param key The arbitrary key to set
109+
* @param value The associated value
110+
* @return DatastoreTriggerWrapper
111+
*/
112+
@JsonAnySetter
113+
public DatastoreTriggerWrapper putAdditionalProperty(String key, Object value) {
114+
if (this.additionalProperties == null) {
115+
this.additionalProperties = new HashMap<String, Object>();
116+
}
117+
this.additionalProperties.put(key, value);
118+
return this;
119+
}
120+
121+
/**
122+
* Return the additional (undeclared) property.
123+
*
124+
* @return The additional properties
125+
*/
126+
@JsonAnyGetter
127+
public Map<String, Object> getAdditionalProperties() {
128+
return additionalProperties;
129+
}
130+
131+
/**
132+
* Return the additional (undeclared) property with the specified name.
133+
*
134+
* @param key The arbitrary key to get
135+
* @return The specific additional property for the given key
136+
*/
137+
public Object getAdditionalProperty(String key) {
138+
if (this.additionalProperties == null) {
139+
return null;
140+
}
141+
return this.additionalProperties.get(key);
142+
}
143+
144+
/** Return true if this DatastoreTriggerWrapper object is equal to o. */
145+
@Override
146+
public boolean equals(Object o) {
147+
if (this == o) {
148+
return true;
149+
}
150+
if (o == null || getClass() != o.getClass()) {
151+
return false;
152+
}
153+
DatastoreTriggerWrapper datastoreTriggerWrapper = (DatastoreTriggerWrapper) o;
154+
return Objects.equals(this.datastoreTrigger, datastoreTriggerWrapper.datastoreTrigger)
155+
&& Objects.equals(this.startStepNames, datastoreTriggerWrapper.startStepNames)
156+
&& Objects.equals(this.additionalProperties, datastoreTriggerWrapper.additionalProperties);
157+
}
158+
159+
@Override
160+
public int hashCode() {
161+
return Objects.hash(datastoreTrigger, startStepNames, additionalProperties);
162+
}
163+
164+
@Override
165+
public String toString() {
166+
StringBuilder sb = new StringBuilder();
167+
sb.append("class DatastoreTriggerWrapper {\n");
168+
sb.append(" datastoreTrigger: ").append(toIndentedString(datastoreTrigger)).append("\n");
169+
sb.append(" startStepNames: ").append(toIndentedString(startStepNames)).append("\n");
170+
sb.append(" additionalProperties: ")
171+
.append(toIndentedString(additionalProperties))
172+
.append("\n");
173+
sb.append('}');
174+
return sb.toString();
175+
}
176+
177+
/**
178+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
179+
*/
180+
private String toIndentedString(Object o) {
181+
if (o == null) {
182+
return "null";
183+
}
184+
return o.toString().replace("\n", "\n ");
185+
}
186+
}

0 commit comments

Comments
 (0)