Skip to content

Commit ded5304

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0d5ba16 of spec repo
1 parent 8643253 commit ded5304

File tree

5 files changed

+667
-13
lines changed

5 files changed

+667
-13
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28684,6 +28684,19 @@ components:
2868428684
type: string
2868528685
x-enum-varnames:
2868628686
- INCIDENT_ATTACHMENTS
28687+
IncidentCondition:
28688+
description: A condition evaluated against incident tags.
28689+
properties:
28690+
tags:
28691+
description: Tags that must match for the condition to pass.
28692+
example:
28693+
- ''
28694+
items:
28695+
type: string
28696+
type: array
28697+
required:
28698+
- tags
28699+
type: object
2868728700
IncidentCreateAttributes:
2868828701
description: The incident's attributes for a create request.
2868928702
properties:
@@ -30203,6 +30216,32 @@ components:
3020330216
user_defined_fields:
3020430217
$ref: '#/components/schemas/RelationshipToIncidentUserDefinedFields'
3020530218
type: object
30219+
IncidentScheduleTrigger:
30220+
description: Trigger a workflow from an Incident Schedule. The workflow must
30221+
be published.
30222+
properties:
30223+
incidentType:
30224+
description: Incident type filter for the schedule.
30225+
type: string
30226+
rrule:
30227+
description: Recurrence rule expression for scheduling.
30228+
example: ''
30229+
type: string
30230+
tagCondition:
30231+
$ref: '#/components/schemas/IncidentCondition'
30232+
required:
30233+
- rrule
30234+
type: object
30235+
IncidentScheduleTriggerWrapper:
30236+
description: Schema for an Incident Schedule-based trigger.
30237+
properties:
30238+
incidentScheduleTrigger:
30239+
$ref: '#/components/schemas/IncidentScheduleTrigger'
30240+
startStepNames:
30241+
$ref: '#/components/schemas/StartStepNames'
30242+
required:
30243+
- incidentScheduleTrigger
30244+
type: object
3020630245
IncidentSearchResponse:
3020730246
description: Response with incidents and facets.
3020830247
properties:
@@ -65465,6 +65504,7 @@ components:
6546565504
- $ref: '#/components/schemas/DashboardTriggerWrapper'
6546665505
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
6546765506
- $ref: '#/components/schemas/IncidentTriggerWrapper'
65507+
- $ref: '#/components/schemas/IncidentScheduleTriggerWrapper'
6546865508
- $ref: '#/components/schemas/MonitorTriggerWrapper'
6546965509
- $ref: '#/components/schemas/NotebookTriggerWrapper'
6547065510
- $ref: '#/components/schemas/OnCallTriggerWrapper'
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
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+
/** A condition evaluated against incident tags. */
23+
@JsonPropertyOrder({IncidentCondition.JSON_PROPERTY_TAGS})
24+
@jakarta.annotation.Generated(
25+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
26+
public class IncidentCondition {
27+
@JsonIgnore public boolean unparsed = false;
28+
public static final String JSON_PROPERTY_TAGS = "tags";
29+
private List<String> tags = new ArrayList<>();
30+
31+
public IncidentCondition() {}
32+
33+
@JsonCreator
34+
public IncidentCondition(
35+
@JsonProperty(required = true, value = JSON_PROPERTY_TAGS) List<String> tags) {
36+
this.tags = tags;
37+
}
38+
39+
public IncidentCondition tags(List<String> tags) {
40+
this.tags = tags;
41+
return this;
42+
}
43+
44+
public IncidentCondition addTagsItem(String tagsItem) {
45+
this.tags.add(tagsItem);
46+
return this;
47+
}
48+
49+
/**
50+
* Tags that must match for the condition to pass.
51+
*
52+
* @return tags
53+
*/
54+
@JsonProperty(JSON_PROPERTY_TAGS)
55+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
56+
public List<String> getTags() {
57+
return tags;
58+
}
59+
60+
public void setTags(List<String> tags) {
61+
this.tags = tags;
62+
}
63+
64+
/**
65+
* A container for additional, undeclared properties. This is a holder for any undeclared
66+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
67+
*/
68+
private Map<String, Object> additionalProperties;
69+
70+
/**
71+
* Set the additional (undeclared) property with the specified name and value. If the property
72+
* does not already exist, create it otherwise replace it.
73+
*
74+
* @param key The arbitrary key to set
75+
* @param value The associated value
76+
* @return IncidentCondition
77+
*/
78+
@JsonAnySetter
79+
public IncidentCondition putAdditionalProperty(String key, Object value) {
80+
if (this.additionalProperties == null) {
81+
this.additionalProperties = new HashMap<String, Object>();
82+
}
83+
this.additionalProperties.put(key, value);
84+
return this;
85+
}
86+
87+
/**
88+
* Return the additional (undeclared) property.
89+
*
90+
* @return The additional properties
91+
*/
92+
@JsonAnyGetter
93+
public Map<String, Object> getAdditionalProperties() {
94+
return additionalProperties;
95+
}
96+
97+
/**
98+
* Return the additional (undeclared) property with the specified name.
99+
*
100+
* @param key The arbitrary key to get
101+
* @return The specific additional property for the given key
102+
*/
103+
public Object getAdditionalProperty(String key) {
104+
if (this.additionalProperties == null) {
105+
return null;
106+
}
107+
return this.additionalProperties.get(key);
108+
}
109+
110+
/** Return true if this IncidentCondition object is equal to o. */
111+
@Override
112+
public boolean equals(Object o) {
113+
if (this == o) {
114+
return true;
115+
}
116+
if (o == null || getClass() != o.getClass()) {
117+
return false;
118+
}
119+
IncidentCondition incidentCondition = (IncidentCondition) o;
120+
return Objects.equals(this.tags, incidentCondition.tags)
121+
&& Objects.equals(this.additionalProperties, incidentCondition.additionalProperties);
122+
}
123+
124+
@Override
125+
public int hashCode() {
126+
return Objects.hash(tags, additionalProperties);
127+
}
128+
129+
@Override
130+
public String toString() {
131+
StringBuilder sb = new StringBuilder();
132+
sb.append("class IncidentCondition {\n");
133+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
134+
sb.append(" additionalProperties: ")
135+
.append(toIndentedString(additionalProperties))
136+
.append("\n");
137+
sb.append('}');
138+
return sb.toString();
139+
}
140+
141+
/**
142+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
143+
*/
144+
private String toIndentedString(Object o) {
145+
if (o == null) {
146+
return "null";
147+
}
148+
return o.toString().replace("\n", "\n ");
149+
}
150+
}

0 commit comments

Comments
 (0)