Skip to content

Commit 538eaee

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5ee7c11 of spec repo
1 parent 865f960 commit 538eaee

File tree

4 files changed

+421
-16
lines changed

4 files changed

+421
-16
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26516,6 +26516,24 @@ components:
2651626516
required:
2651726517
- data
2651826518
type: object
26519+
FormTrigger:
26520+
description: Trigger a workflow from a Form.
26521+
properties:
26522+
formId:
26523+
description: The form UUID.
26524+
example: ''
26525+
type: string
26526+
type: object
26527+
FormTriggerWrapper:
26528+
description: Schema for a Form-based trigger.
26529+
properties:
26530+
formTrigger:
26531+
$ref: '#/components/schemas/FormTrigger'
26532+
startStepNames:
26533+
$ref: '#/components/schemas/StartStepNames'
26534+
required:
26535+
- formTrigger
26536+
type: object
2651926537
FormulaLimit:
2652026538
description: 'Message for specifying limits to the number of values returned
2652126539
by a query.
@@ -66222,6 +66240,7 @@ components:
6622266240
- $ref: '#/components/schemas/DatabaseMonitoringTriggerWrapper'
6622366241
- $ref: '#/components/schemas/DatastoreTriggerWrapper'
6622466242
- $ref: '#/components/schemas/DashboardTriggerWrapper'
66243+
- $ref: '#/components/schemas/FormTriggerWrapper'
6622566244
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
6622666245
- $ref: '#/components/schemas/IncidentTriggerWrapper'
6622766246
- $ref: '#/components/schemas/MonitorTriggerWrapper'
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
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+
/** Trigger a workflow from a Form. */
20+
@JsonPropertyOrder({FormTrigger.JSON_PROPERTY_FORM_ID})
21+
@jakarta.annotation.Generated(
22+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
23+
public class FormTrigger {
24+
@JsonIgnore public boolean unparsed = false;
25+
public static final String JSON_PROPERTY_FORM_ID = "formId";
26+
private String formId;
27+
28+
public FormTrigger formId(String formId) {
29+
this.formId = formId;
30+
return this;
31+
}
32+
33+
/**
34+
* The form UUID.
35+
*
36+
* @return formId
37+
*/
38+
@jakarta.annotation.Nullable
39+
@JsonProperty(JSON_PROPERTY_FORM_ID)
40+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
41+
public String getFormId() {
42+
return formId;
43+
}
44+
45+
public void setFormId(String formId) {
46+
this.formId = formId;
47+
}
48+
49+
/**
50+
* A container for additional, undeclared properties. This is a holder for any undeclared
51+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
52+
*/
53+
private Map<String, Object> additionalProperties;
54+
55+
/**
56+
* Set the additional (undeclared) property with the specified name and value. If the property
57+
* does not already exist, create it otherwise replace it.
58+
*
59+
* @param key The arbitrary key to set
60+
* @param value The associated value
61+
* @return FormTrigger
62+
*/
63+
@JsonAnySetter
64+
public FormTrigger putAdditionalProperty(String key, Object value) {
65+
if (this.additionalProperties == null) {
66+
this.additionalProperties = new HashMap<String, Object>();
67+
}
68+
this.additionalProperties.put(key, value);
69+
return this;
70+
}
71+
72+
/**
73+
* Return the additional (undeclared) property.
74+
*
75+
* @return The additional properties
76+
*/
77+
@JsonAnyGetter
78+
public Map<String, Object> getAdditionalProperties() {
79+
return additionalProperties;
80+
}
81+
82+
/**
83+
* Return the additional (undeclared) property with the specified name.
84+
*
85+
* @param key The arbitrary key to get
86+
* @return The specific additional property for the given key
87+
*/
88+
public Object getAdditionalProperty(String key) {
89+
if (this.additionalProperties == null) {
90+
return null;
91+
}
92+
return this.additionalProperties.get(key);
93+
}
94+
95+
/** Return true if this FormTrigger object is equal to o. */
96+
@Override
97+
public boolean equals(Object o) {
98+
if (this == o) {
99+
return true;
100+
}
101+
if (o == null || getClass() != o.getClass()) {
102+
return false;
103+
}
104+
FormTrigger formTrigger = (FormTrigger) o;
105+
return Objects.equals(this.formId, formTrigger.formId)
106+
&& Objects.equals(this.additionalProperties, formTrigger.additionalProperties);
107+
}
108+
109+
@Override
110+
public int hashCode() {
111+
return Objects.hash(formId, additionalProperties);
112+
}
113+
114+
@Override
115+
public String toString() {
116+
StringBuilder sb = new StringBuilder();
117+
sb.append("class FormTrigger {\n");
118+
sb.append(" formId: ").append(toIndentedString(formId)).append("\n");
119+
sb.append(" additionalProperties: ")
120+
.append(toIndentedString(additionalProperties))
121+
.append("\n");
122+
sb.append('}');
123+
return sb.toString();
124+
}
125+
126+
/**
127+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
128+
*/
129+
private String toIndentedString(Object o) {
130+
if (o == null) {
131+
return "null";
132+
}
133+
return o.toString().replace("\n", "\n ");
134+
}
135+
}
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
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 Form-based trigger. */
23+
@JsonPropertyOrder({
24+
FormTriggerWrapper.JSON_PROPERTY_FORM_TRIGGER,
25+
FormTriggerWrapper.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 FormTriggerWrapper {
30+
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_FORM_TRIGGER = "formTrigger";
32+
private FormTrigger formTrigger;
33+
34+
public static final String JSON_PROPERTY_START_STEP_NAMES = "startStepNames";
35+
private List<String> startStepNames = null;
36+
37+
public FormTriggerWrapper() {}
38+
39+
@JsonCreator
40+
public FormTriggerWrapper(
41+
@JsonProperty(required = true, value = JSON_PROPERTY_FORM_TRIGGER) FormTrigger formTrigger) {
42+
this.formTrigger = formTrigger;
43+
this.unparsed |= formTrigger.unparsed;
44+
}
45+
46+
public FormTriggerWrapper formTrigger(FormTrigger formTrigger) {
47+
this.formTrigger = formTrigger;
48+
this.unparsed |= formTrigger.unparsed;
49+
return this;
50+
}
51+
52+
/**
53+
* Trigger a workflow from a Form.
54+
*
55+
* @return formTrigger
56+
*/
57+
@JsonProperty(JSON_PROPERTY_FORM_TRIGGER)
58+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
59+
public FormTrigger getFormTrigger() {
60+
return formTrigger;
61+
}
62+
63+
public void setFormTrigger(FormTrigger formTrigger) {
64+
this.formTrigger = formTrigger;
65+
}
66+
67+
public FormTriggerWrapper startStepNames(List<String> startStepNames) {
68+
this.startStepNames = startStepNames;
69+
return this;
70+
}
71+
72+
public FormTriggerWrapper addStartStepNamesItem(String startStepNamesItem) {
73+
if (this.startStepNames == null) {
74+
this.startStepNames = new ArrayList<>();
75+
}
76+
this.startStepNames.add(startStepNamesItem);
77+
return this;
78+
}
79+
80+
/**
81+
* A list of steps that run first after a trigger fires.
82+
*
83+
* @return startStepNames
84+
*/
85+
@jakarta.annotation.Nullable
86+
@JsonProperty(JSON_PROPERTY_START_STEP_NAMES)
87+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
88+
public List<String> getStartStepNames() {
89+
return startStepNames;
90+
}
91+
92+
public void setStartStepNames(List<String> startStepNames) {
93+
this.startStepNames = startStepNames;
94+
}
95+
96+
/**
97+
* A container for additional, undeclared properties. This is a holder for any undeclared
98+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
99+
*/
100+
private Map<String, Object> additionalProperties;
101+
102+
/**
103+
* Set the additional (undeclared) property with the specified name and value. If the property
104+
* does not already exist, create it otherwise replace it.
105+
*
106+
* @param key The arbitrary key to set
107+
* @param value The associated value
108+
* @return FormTriggerWrapper
109+
*/
110+
@JsonAnySetter
111+
public FormTriggerWrapper putAdditionalProperty(String key, Object value) {
112+
if (this.additionalProperties == null) {
113+
this.additionalProperties = new HashMap<String, Object>();
114+
}
115+
this.additionalProperties.put(key, value);
116+
return this;
117+
}
118+
119+
/**
120+
* Return the additional (undeclared) property.
121+
*
122+
* @return The additional properties
123+
*/
124+
@JsonAnyGetter
125+
public Map<String, Object> getAdditionalProperties() {
126+
return additionalProperties;
127+
}
128+
129+
/**
130+
* Return the additional (undeclared) property with the specified name.
131+
*
132+
* @param key The arbitrary key to get
133+
* @return The specific additional property for the given key
134+
*/
135+
public Object getAdditionalProperty(String key) {
136+
if (this.additionalProperties == null) {
137+
return null;
138+
}
139+
return this.additionalProperties.get(key);
140+
}
141+
142+
/** Return true if this FormTriggerWrapper object is equal to o. */
143+
@Override
144+
public boolean equals(Object o) {
145+
if (this == o) {
146+
return true;
147+
}
148+
if (o == null || getClass() != o.getClass()) {
149+
return false;
150+
}
151+
FormTriggerWrapper formTriggerWrapper = (FormTriggerWrapper) o;
152+
return Objects.equals(this.formTrigger, formTriggerWrapper.formTrigger)
153+
&& Objects.equals(this.startStepNames, formTriggerWrapper.startStepNames)
154+
&& Objects.equals(this.additionalProperties, formTriggerWrapper.additionalProperties);
155+
}
156+
157+
@Override
158+
public int hashCode() {
159+
return Objects.hash(formTrigger, startStepNames, additionalProperties);
160+
}
161+
162+
@Override
163+
public String toString() {
164+
StringBuilder sb = new StringBuilder();
165+
sb.append("class FormTriggerWrapper {\n");
166+
sb.append(" formTrigger: ").append(toIndentedString(formTrigger)).append("\n");
167+
sb.append(" startStepNames: ").append(toIndentedString(startStepNames)).append("\n");
168+
sb.append(" additionalProperties: ")
169+
.append(toIndentedString(additionalProperties))
170+
.append("\n");
171+
sb.append('}');
172+
return sb.toString();
173+
}
174+
175+
/**
176+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
177+
*/
178+
private String toIndentedString(Object o) {
179+
if (o == null) {
180+
return "null";
181+
}
182+
return o.toString().replace("\n", "\n ");
183+
}
184+
}

0 commit comments

Comments
 (0)