Skip to content

Commit d005ffe

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 95e7052c of spec repo
1 parent 79645df commit d005ffe

File tree

4 files changed

+179
-4
lines changed

4 files changed

+179
-4
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.4",
7-
"regenerated": "2023-03-27 19:48:20.211619",
8-
"spec_repo_commit": "b6741167"
7+
"regenerated": "2023-03-27 20:31:31.325578",
8+
"spec_repo_commit": "95e7052c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-03-27 19:48:20.224682",
13-
"spec_repo_commit": "b6741167"
12+
"regenerated": "2023-03-27 20:31:31.340834",
13+
"spec_repo_commit": "95e7052c"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,6 +3786,22 @@ components:
37863786
type: string
37873787
type: array
37883788
type: object
3789+
IPPrefixesGlobal:
3790+
description: Available prefix information for all Datadog endpoints.
3791+
properties:
3792+
prefixes_ipv4:
3793+
description: List of IPv4 prefixes.
3794+
items:
3795+
description: IPv4 prefix
3796+
type: string
3797+
type: array
3798+
prefixes_ipv6:
3799+
description: List of IPv6 prefixes.
3800+
items:
3801+
description: IPv6 prefix
3802+
type: string
3803+
type: array
3804+
type: object
37893805
IPPrefixesLogs:
37903806
description: Available prefix information for the Logs endpoints.
37913807
properties:
@@ -3910,6 +3926,8 @@ components:
39103926
$ref: '#/components/schemas/IPPrefixesAPI'
39113927
apm:
39123928
$ref: '#/components/schemas/IPPrefixesAPM'
3929+
global:
3930+
$ref: '#/components/schemas/IPPrefixesGlobal'
39133931
logs:
39143932
$ref: '#/components/schemas/IPPrefixesLogs'
39153933
modified:
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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.v1.model;
8+
9+
import com.fasterxml.jackson.annotation.JsonIgnore;
10+
import com.fasterxml.jackson.annotation.JsonInclude;
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
13+
import java.util.ArrayList;
14+
import java.util.List;
15+
import java.util.Objects;
16+
17+
/** Available prefix information for all Datadog endpoints. */
18+
@JsonPropertyOrder({
19+
IPPrefixesGlobal.JSON_PROPERTY_PREFIXES_IPV4,
20+
IPPrefixesGlobal.JSON_PROPERTY_PREFIXES_IPV6
21+
})
22+
@jakarta.annotation.Generated(
23+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
24+
public class IPPrefixesGlobal {
25+
@JsonIgnore public boolean unparsed = false;
26+
public static final String JSON_PROPERTY_PREFIXES_IPV4 = "prefixes_ipv4";
27+
private List<String> prefixesIpv4 = null;
28+
29+
public static final String JSON_PROPERTY_PREFIXES_IPV6 = "prefixes_ipv6";
30+
private List<String> prefixesIpv6 = null;
31+
32+
public IPPrefixesGlobal prefixesIpv4(List<String> prefixesIpv4) {
33+
this.prefixesIpv4 = prefixesIpv4;
34+
return this;
35+
}
36+
37+
public IPPrefixesGlobal addPrefixesIpv4Item(String prefixesIpv4Item) {
38+
if (this.prefixesIpv4 == null) {
39+
this.prefixesIpv4 = new ArrayList<>();
40+
}
41+
this.prefixesIpv4.add(prefixesIpv4Item);
42+
return this;
43+
}
44+
45+
/**
46+
* List of IPv4 prefixes.
47+
*
48+
* @return prefixesIpv4
49+
*/
50+
@jakarta.annotation.Nullable
51+
@JsonProperty(JSON_PROPERTY_PREFIXES_IPV4)
52+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
53+
public List<String> getPrefixesIpv4() {
54+
return prefixesIpv4;
55+
}
56+
57+
public void setPrefixesIpv4(List<String> prefixesIpv4) {
58+
this.prefixesIpv4 = prefixesIpv4;
59+
}
60+
61+
public IPPrefixesGlobal prefixesIpv6(List<String> prefixesIpv6) {
62+
this.prefixesIpv6 = prefixesIpv6;
63+
return this;
64+
}
65+
66+
public IPPrefixesGlobal addPrefixesIpv6Item(String prefixesIpv6Item) {
67+
if (this.prefixesIpv6 == null) {
68+
this.prefixesIpv6 = new ArrayList<>();
69+
}
70+
this.prefixesIpv6.add(prefixesIpv6Item);
71+
return this;
72+
}
73+
74+
/**
75+
* List of IPv6 prefixes.
76+
*
77+
* @return prefixesIpv6
78+
*/
79+
@jakarta.annotation.Nullable
80+
@JsonProperty(JSON_PROPERTY_PREFIXES_IPV6)
81+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
82+
public List<String> getPrefixesIpv6() {
83+
return prefixesIpv6;
84+
}
85+
86+
public void setPrefixesIpv6(List<String> prefixesIpv6) {
87+
this.prefixesIpv6 = prefixesIpv6;
88+
}
89+
90+
/** Return true if this IPPrefixesGlobal object is equal to o. */
91+
@Override
92+
public boolean equals(Object o) {
93+
if (this == o) {
94+
return true;
95+
}
96+
if (o == null || getClass() != o.getClass()) {
97+
return false;
98+
}
99+
IPPrefixesGlobal ipPrefixesGlobal = (IPPrefixesGlobal) o;
100+
return Objects.equals(this.prefixesIpv4, ipPrefixesGlobal.prefixesIpv4)
101+
&& Objects.equals(this.prefixesIpv6, ipPrefixesGlobal.prefixesIpv6);
102+
}
103+
104+
@Override
105+
public int hashCode() {
106+
return Objects.hash(prefixesIpv4, prefixesIpv6);
107+
}
108+
109+
@Override
110+
public String toString() {
111+
StringBuilder sb = new StringBuilder();
112+
sb.append("class IPPrefixesGlobal {\n");
113+
sb.append(" prefixesIpv4: ").append(toIndentedString(prefixesIpv4)).append("\n");
114+
sb.append(" prefixesIpv6: ").append(toIndentedString(prefixesIpv6)).append("\n");
115+
sb.append("}");
116+
return sb.toString();
117+
}
118+
119+
/**
120+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
121+
*/
122+
private String toIndentedString(Object o) {
123+
if (o == null) {
124+
return "null";
125+
}
126+
return o.toString().replace("\n", "\n ");
127+
}
128+
}

src/main/java/com/datadog/api/client/v1/model/IPRanges.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
IPRanges.JSON_PROPERTY_AGENTS,
1818
IPRanges.JSON_PROPERTY_API,
1919
IPRanges.JSON_PROPERTY_APM,
20+
IPRanges.JSON_PROPERTY_GLOBAL,
2021
IPRanges.JSON_PROPERTY_LOGS,
2122
IPRanges.JSON_PROPERTY_MODIFIED,
2223
IPRanges.JSON_PROPERTY_ORCHESTRATOR,
@@ -39,6 +40,9 @@ public class IPRanges {
3940
public static final String JSON_PROPERTY_APM = "apm";
4041
private IPPrefixesAPM apm;
4142

43+
public static final String JSON_PROPERTY_GLOBAL = "global";
44+
private IPPrefixesGlobal global;
45+
4246
public static final String JSON_PROPERTY_LOGS = "logs";
4347
private IPPrefixesLogs logs;
4448

@@ -130,6 +134,28 @@ public void setApm(IPPrefixesAPM apm) {
130134
this.apm = apm;
131135
}
132136

137+
public IPRanges global(IPPrefixesGlobal global) {
138+
this.global = global;
139+
this.unparsed |= global.unparsed;
140+
return this;
141+
}
142+
143+
/**
144+
* Available prefix information for all Datadog endpoints.
145+
*
146+
* @return global
147+
*/
148+
@jakarta.annotation.Nullable
149+
@JsonProperty(JSON_PROPERTY_GLOBAL)
150+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151+
public IPPrefixesGlobal getGlobal() {
152+
return global;
153+
}
154+
155+
public void setGlobal(IPPrefixesGlobal global) {
156+
this.global = global;
157+
}
158+
133159
public IPRanges logs(IPPrefixesLogs logs) {
134160
this.logs = logs;
135161
this.unparsed |= logs.unparsed;
@@ -319,6 +345,7 @@ public boolean equals(Object o) {
319345
return Objects.equals(this.agents, ipRanges.agents)
320346
&& Objects.equals(this.api, ipRanges.api)
321347
&& Objects.equals(this.apm, ipRanges.apm)
348+
&& Objects.equals(this.global, ipRanges.global)
322349
&& Objects.equals(this.logs, ipRanges.logs)
323350
&& Objects.equals(this.modified, ipRanges.modified)
324351
&& Objects.equals(this.orchestrator, ipRanges.orchestrator)
@@ -335,6 +362,7 @@ public int hashCode() {
335362
agents,
336363
api,
337364
apm,
365+
global,
338366
logs,
339367
modified,
340368
orchestrator,
@@ -352,6 +380,7 @@ public String toString() {
352380
sb.append(" agents: ").append(toIndentedString(agents)).append("\n");
353381
sb.append(" api: ").append(toIndentedString(api)).append("\n");
354382
sb.append(" apm: ").append(toIndentedString(apm)).append("\n");
383+
sb.append(" global: ").append(toIndentedString(global)).append("\n");
355384
sb.append(" logs: ").append(toIndentedString(logs)).append("\n");
356385
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
357386
sb.append(" orchestrator: ").append(toIndentedString(orchestrator)).append("\n");

0 commit comments

Comments
 (0)