Skip to content

Commit d56ae8c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c943fd2 of spec repo
1 parent 6dba70d commit d56ae8c

3 files changed

Lines changed: 119 additions & 4 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4249,6 +4249,18 @@ components:
42494249
description: Name of the connection
42504250
example: My AWS Connection
42514251
type: string
4252+
tags:
4253+
description: |-
4254+
Tags associated with the connection. Each tag must follow the `key:value` format.
4255+
The `default` tag key is reserved.
4256+
example:
4257+
- env:prod
4258+
- team:action-platform
4259+
items:
4260+
description: A non-reserved tag in `key:value` format.
4261+
pattern: "^[A-Za-z0-9._/-]+:[A-Za-z0-9._/-]+$"
4262+
type: string
4263+
type: array
42524264
required:
42534265
- name
42544266
- integration
@@ -4262,6 +4274,18 @@ components:
42624274
description: Name of the connection
42634275
example: My AWS Connection
42644276
type: string
4277+
tags:
4278+
description: |-
4279+
Tags associated with the connection. Each tag must follow the `key:value` format.
4280+
The `default` tag key is reserved.
4281+
example:
4282+
- env:prod
4283+
- team:action-platform
4284+
items:
4285+
description: A non-reserved tag in `key:value` format.
4286+
pattern: "^[A-Za-z0-9._/-]+:[A-Za-z0-9._/-]+$"
4287+
type: string
4288+
type: array
42654289
type: object
42664290
ActionConnectionData:
42674291
description: Data related to the connection.
@@ -121707,6 +121731,9 @@ paths:
121707121731
type: AWSAssumeRole
121708121732
type: AWS
121709121733
name: My AWS Connection
121734+
tags:
121735+
- env:prod
121736+
- team:action-platform
121710121737
type: action_connection
121711121738
schema:
121712121739
$ref: "#/components/schemas/CreateActionConnectionRequest"
@@ -121723,6 +121750,9 @@ paths:
121723121750
integration:
121724121751
type: AWS
121725121752
name: My AWS Connection
121753+
tags:
121754+
- env:prod
121755+
- team:action-platform
121726121756
id: 00000000-0000-0000-0000-000000000001
121727121757
type: action_connection
121728121758
schema:
@@ -121800,6 +121830,9 @@ paths:
121800121830
integration:
121801121831
type: AWS
121802121832
name: My AWS Connection
121833+
tags:
121834+
- env:prod
121835+
- team:action-platform
121803121836
id: 00000000-0000-0000-0000-000000000002
121804121837
type: action_connection
121805121838
schema:
@@ -121848,6 +121881,9 @@ paths:
121848121881
integration:
121849121882
type: AWS
121850121883
name: My AWS Connection
121884+
tags:
121885+
- env:prod
121886+
- team:action-platform
121851121887
type: action_connection
121852121888
schema:
121853121889
$ref: "#/components/schemas/UpdateActionConnectionRequest"
@@ -121865,6 +121901,9 @@ paths:
121865121901
integration:
121866121902
type: AWS
121867121903
name: My AWS Connection
121904+
tags:
121905+
- env:prod
121906+
- team:action-platform
121868121907
id: 00000000-0000-0000-0000-000000000003
121869121908
type: action_connection
121870121909
schema:

src/main/java/com/datadog/api/client/v2/model/ActionConnectionAttributes.java

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@
1313
import com.fasterxml.jackson.annotation.JsonInclude;
1414
import com.fasterxml.jackson.annotation.JsonProperty;
1515
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.util.ArrayList;
1617
import java.util.HashMap;
18+
import java.util.List;
1719
import java.util.Map;
1820
import java.util.Objects;
1921

2022
/** The definition of <code>ActionConnectionAttributes</code> object. */
2123
@JsonPropertyOrder({
2224
ActionConnectionAttributes.JSON_PROPERTY_INTEGRATION,
23-
ActionConnectionAttributes.JSON_PROPERTY_NAME
25+
ActionConnectionAttributes.JSON_PROPERTY_NAME,
26+
ActionConnectionAttributes.JSON_PROPERTY_TAGS
2427
})
2528
@jakarta.annotation.Generated(
2629
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,6 +35,9 @@ public class ActionConnectionAttributes {
3235
public static final String JSON_PROPERTY_NAME = "name";
3336
private String name;
3437

38+
public static final String JSON_PROPERTY_TAGS = "tags";
39+
private List<String> tags = null;
40+
3541
public ActionConnectionAttributes() {}
3642

3743
@JsonCreator
@@ -88,6 +94,36 @@ public void setName(String name) {
8894
this.name = name;
8995
}
9096

97+
public ActionConnectionAttributes tags(List<String> tags) {
98+
this.tags = tags;
99+
return this;
100+
}
101+
102+
public ActionConnectionAttributes addTagsItem(String tagsItem) {
103+
if (this.tags == null) {
104+
this.tags = new ArrayList<>();
105+
}
106+
this.tags.add(tagsItem);
107+
return this;
108+
}
109+
110+
/**
111+
* Tags associated with the connection. Each tag must follow the <code>key:value</code> format.
112+
* The <code>default</code> tag key is reserved.
113+
*
114+
* @return tags
115+
*/
116+
@jakarta.annotation.Nullable
117+
@JsonProperty(JSON_PROPERTY_TAGS)
118+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
119+
public List<String> getTags() {
120+
return tags;
121+
}
122+
123+
public void setTags(List<String> tags) {
124+
this.tags = tags;
125+
}
126+
91127
/**
92128
* A container for additional, undeclared properties. This is a holder for any undeclared
93129
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -146,13 +182,14 @@ public boolean equals(Object o) {
146182
ActionConnectionAttributes actionConnectionAttributes = (ActionConnectionAttributes) o;
147183
return Objects.equals(this.integration, actionConnectionAttributes.integration)
148184
&& Objects.equals(this.name, actionConnectionAttributes.name)
185+
&& Objects.equals(this.tags, actionConnectionAttributes.tags)
149186
&& Objects.equals(
150187
this.additionalProperties, actionConnectionAttributes.additionalProperties);
151188
}
152189

153190
@Override
154191
public int hashCode() {
155-
return Objects.hash(integration, name, additionalProperties);
192+
return Objects.hash(integration, name, tags, additionalProperties);
156193
}
157194

158195
@Override
@@ -161,6 +198,7 @@ public String toString() {
161198
sb.append("class ActionConnectionAttributes {\n");
162199
sb.append(" integration: ").append(toIndentedString(integration)).append("\n");
163200
sb.append(" name: ").append(toIndentedString(name)).append("\n");
201+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
164202
sb.append(" additionalProperties: ")
165203
.append(toIndentedString(additionalProperties))
166204
.append("\n");

src/main/java/com/datadog/api/client/v2/model/ActionConnectionAttributesUpdate.java

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@
1212
import com.fasterxml.jackson.annotation.JsonInclude;
1313
import com.fasterxml.jackson.annotation.JsonProperty;
1414
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15+
import java.util.ArrayList;
1516
import java.util.HashMap;
17+
import java.util.List;
1618
import java.util.Map;
1719
import java.util.Objects;
1820

1921
/** The definition of <code>ActionConnectionAttributesUpdate</code> object. */
2022
@JsonPropertyOrder({
2123
ActionConnectionAttributesUpdate.JSON_PROPERTY_INTEGRATION,
22-
ActionConnectionAttributesUpdate.JSON_PROPERTY_NAME
24+
ActionConnectionAttributesUpdate.JSON_PROPERTY_NAME,
25+
ActionConnectionAttributesUpdate.JSON_PROPERTY_TAGS
2326
})
2427
@jakarta.annotation.Generated(
2528
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -31,6 +34,9 @@ public class ActionConnectionAttributesUpdate {
3134
public static final String JSON_PROPERTY_NAME = "name";
3235
private String name;
3336

37+
public static final String JSON_PROPERTY_TAGS = "tags";
38+
private List<String> tags = null;
39+
3440
public ActionConnectionAttributesUpdate integration(
3541
ActionConnectionIntegrationUpdate integration) {
3642
this.integration = integration;
@@ -78,6 +84,36 @@ public void setName(String name) {
7884
this.name = name;
7985
}
8086

87+
public ActionConnectionAttributesUpdate tags(List<String> tags) {
88+
this.tags = tags;
89+
return this;
90+
}
91+
92+
public ActionConnectionAttributesUpdate addTagsItem(String tagsItem) {
93+
if (this.tags == null) {
94+
this.tags = new ArrayList<>();
95+
}
96+
this.tags.add(tagsItem);
97+
return this;
98+
}
99+
100+
/**
101+
* Tags associated with the connection. Each tag must follow the <code>key:value</code> format.
102+
* The <code>default</code> tag key is reserved.
103+
*
104+
* @return tags
105+
*/
106+
@jakarta.annotation.Nullable
107+
@JsonProperty(JSON_PROPERTY_TAGS)
108+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109+
public List<String> getTags() {
110+
return tags;
111+
}
112+
113+
public void setTags(List<String> tags) {
114+
this.tags = tags;
115+
}
116+
81117
/**
82118
* A container for additional, undeclared properties. This is a holder for any undeclared
83119
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -137,13 +173,14 @@ public boolean equals(Object o) {
137173
(ActionConnectionAttributesUpdate) o;
138174
return Objects.equals(this.integration, actionConnectionAttributesUpdate.integration)
139175
&& Objects.equals(this.name, actionConnectionAttributesUpdate.name)
176+
&& Objects.equals(this.tags, actionConnectionAttributesUpdate.tags)
140177
&& Objects.equals(
141178
this.additionalProperties, actionConnectionAttributesUpdate.additionalProperties);
142179
}
143180

144181
@Override
145182
public int hashCode() {
146-
return Objects.hash(integration, name, additionalProperties);
183+
return Objects.hash(integration, name, tags, additionalProperties);
147184
}
148185

149186
@Override
@@ -152,6 +189,7 @@ public String toString() {
152189
sb.append("class ActionConnectionAttributesUpdate {\n");
153190
sb.append(" integration: ").append(toIndentedString(integration)).append("\n");
154191
sb.append(" name: ").append(toIndentedString(name)).append("\n");
192+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
155193
sb.append(" additionalProperties: ")
156194
.append(toIndentedString(additionalProperties))
157195
.append("\n");

0 commit comments

Comments
 (0)