Skip to content

Commit c0ba1ad

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit dde5309 of spec repo
1 parent e10909b commit c0ba1ad

9 files changed

Lines changed: 1427 additions & 3 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48659,6 +48659,16 @@ components:
4865948659
description: Name of the environment variable or secret that holds the username (used when `auth_strategy` is `plain`).
4866048660
example: HTTP_AUTH_USERNAME
4866148661
type: string
48662+
valid_tokens:
48663+
description: |-
48664+
A list of tokens that are accepted for authenticating incoming HTTP requests. When set,
48665+
the source rejects any request whose token does not match an enabled entry in this list.
48666+
Cannot be combined with the `plain` auth strategy.
48667+
items:
48668+
$ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidToken"
48669+
maxItems: 1000
48670+
minItems: 1
48671+
type: array
4866248672
required:
4866348673
- id
4866448674
- type
@@ -48684,6 +48694,55 @@ components:
4868448694
type: string
4868548695
x-enum-varnames:
4868648696
- HTTP_SERVER
48697+
ObservabilityPipelineHttpServerSourceValidToken:
48698+
description: An accepted token used to authenticate incoming HTTP server requests.
48699+
properties:
48700+
enabled:
48701+
default: true
48702+
description: |-
48703+
Whether this token is currently accepted. Disabled tokens are rejected without
48704+
being removed from the configuration.
48705+
example: true
48706+
type: boolean
48707+
field_to_add:
48708+
$ref: "#/components/schemas/ObservabilityPipelineSourceValidTokenFieldToAdd"
48709+
path_to_token:
48710+
$ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidTokenPathToToken"
48711+
token_key:
48712+
description: Name of the environment variable or secret that holds the expected token value.
48713+
example: HTTP_SERVER_TOKEN
48714+
pattern: "^[A-Za-z0-9_]+$"
48715+
type: string
48716+
required:
48717+
- token_key
48718+
type: object
48719+
ObservabilityPipelineHttpServerSourceValidTokenPathToToken:
48720+
description: |-
48721+
Specifies where the worker extracts the token from in the incoming HTTP request.
48722+
Either a built-in location (`path` or `address`) or an HTTP header object.
48723+
oneOf:
48724+
- $ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidTokenPathToTokenLocation"
48725+
- $ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidTokenPathToTokenHeader"
48726+
ObservabilityPipelineHttpServerSourceValidTokenPathToTokenHeader:
48727+
description: Extract the token from a specific HTTP request header.
48728+
properties:
48729+
header:
48730+
description: The name of the HTTP header that carries the token.
48731+
example: X-Token
48732+
type: string
48733+
required:
48734+
- header
48735+
type: object
48736+
ObservabilityPipelineHttpServerSourceValidTokenPathToTokenLocation:
48737+
description: Built-in token location on the incoming HTTP request.
48738+
enum:
48739+
- path
48740+
- address
48741+
example: path
48742+
type: string
48743+
x-enum-varnames:
48744+
- PATH
48745+
- ADDRESS
4868748746
ObservabilityPipelineKafkaDestination:
4868848747
description: |-
4868948748
The `kafka` destination sends logs to Apache Kafka topics.
@@ -50707,6 +50766,27 @@ components:
5070750766
type: string
5070850767
x-enum-varnames:
5070950768
- SOCKET
50769+
ObservabilityPipelineSourceValidTokenFieldToAdd:
50770+
description: |-
50771+
An optional metadata field that is attached to every event authenticated by the
50772+
associated token. Both `key` and `value` must match `^[A-Za-z0-9_]+$`.
50773+
properties:
50774+
key:
50775+
description: The metadata field name to add to incoming events.
50776+
example: token_name
50777+
maxLength: 256
50778+
pattern: "^[A-Za-z0-9_]+$"
50779+
type: string
50780+
value:
50781+
description: The metadata field value to add to incoming events.
50782+
example: my_token
50783+
maxLength: 1024
50784+
pattern: "^[A-Za-z0-9_]+$"
50785+
type: string
50786+
required:
50787+
- key
50788+
- value
50789+
type: object
5071050790
ObservabilityPipelineSpec:
5071150791
description: Input schema representing an observability pipeline configuration. Used in create and validate requests.
5071250792
properties:
@@ -50903,6 +50983,15 @@ components:
5090350983
$ref: "#/components/schemas/ObservabilityPipelineTls"
5090450984
type:
5090550985
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecSourceType"
50986+
valid_tokens:
50987+
description: |-
50988+
A list of tokens that are accepted for authenticating incoming HEC requests. When set, the source
50989+
rejects any request whose HEC token does not match an enabled entry in this list.
50990+
items:
50991+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecSourceValidToken"
50992+
maxItems: 1000
50993+
minItems: 1
50994+
type: array
5090650995
required:
5090750996
- id
5090850997
- type
@@ -50917,6 +51006,26 @@ components:
5091751006
type: string
5091851007
x-enum-varnames:
5091951008
- SPLUNK_HEC
51009+
ObservabilityPipelineSplunkHecSourceValidToken:
51010+
description: An accepted HEC token used to authenticate incoming Splunk HEC requests.
51011+
properties:
51012+
enabled:
51013+
default: true
51014+
description: |-
51015+
Whether this token is currently accepted. Disabled tokens are rejected without
51016+
being removed from the configuration.
51017+
example: true
51018+
type: boolean
51019+
field_to_add:
51020+
$ref: "#/components/schemas/ObservabilityPipelineSourceValidTokenFieldToAdd"
51021+
token_key:
51022+
description: Name of the environment variable or secret that holds the expected HEC token value.
51023+
example: SPLUNK_HEC_TOKEN
51024+
pattern: "^[A-Za-z0-9_]+$"
51025+
type: string
51026+
required:
51027+
- token_key
51028+
type: object
5092051029
ObservabilityPipelineSplunkTcpSource:
5092151030
description: |-
5092251031
The `splunk_tcp` source receives logs from a Splunk Universal Forwarder over TCP.

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

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
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

@@ -31,7 +33,8 @@
3133
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_PASSWORD_KEY,
3234
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_TLS,
3335
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_TYPE,
34-
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_USERNAME_KEY
36+
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_USERNAME_KEY,
37+
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_VALID_TOKENS
3538
})
3639
@jakarta.annotation.Generated(
3740
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -65,6 +68,9 @@ public class ObservabilityPipelineHttpServerSource {
6568
public static final String JSON_PROPERTY_USERNAME_KEY = "username_key";
6669
private String usernameKey;
6770

71+
public static final String JSON_PROPERTY_VALID_TOKENS = "valid_tokens";
72+
private List<ObservabilityPipelineHttpServerSourceValidToken> validTokens = null;
73+
6874
public ObservabilityPipelineHttpServerSource() {}
6975

7076
@JsonCreator
@@ -288,6 +294,43 @@ public void setUsernameKey(String usernameKey) {
288294
this.usernameKey = usernameKey;
289295
}
290296

297+
public ObservabilityPipelineHttpServerSource validTokens(
298+
List<ObservabilityPipelineHttpServerSourceValidToken> validTokens) {
299+
this.validTokens = validTokens;
300+
for (ObservabilityPipelineHttpServerSourceValidToken item : validTokens) {
301+
this.unparsed |= item.unparsed;
302+
}
303+
return this;
304+
}
305+
306+
public ObservabilityPipelineHttpServerSource addValidTokensItem(
307+
ObservabilityPipelineHttpServerSourceValidToken validTokensItem) {
308+
if (this.validTokens == null) {
309+
this.validTokens = new ArrayList<>();
310+
}
311+
this.validTokens.add(validTokensItem);
312+
this.unparsed |= validTokensItem.unparsed;
313+
return this;
314+
}
315+
316+
/**
317+
* A list of tokens that are accepted for authenticating incoming HTTP requests. When set, the
318+
* source rejects any request whose token does not match an enabled entry in this list. Cannot be
319+
* combined with the <code>plain</code> auth strategy.
320+
*
321+
* @return validTokens
322+
*/
323+
@jakarta.annotation.Nullable
324+
@JsonProperty(JSON_PROPERTY_VALID_TOKENS)
325+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
326+
public List<ObservabilityPipelineHttpServerSourceValidToken> getValidTokens() {
327+
return validTokens;
328+
}
329+
330+
public void setValidTokens(List<ObservabilityPipelineHttpServerSourceValidToken> validTokens) {
331+
this.validTokens = validTokens;
332+
}
333+
291334
/**
292335
* A container for additional, undeclared properties. This is a holder for any undeclared
293336
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -354,6 +397,7 @@ public boolean equals(Object o) {
354397
&& Objects.equals(this.tls, observabilityPipelineHttpServerSource.tls)
355398
&& Objects.equals(this.type, observabilityPipelineHttpServerSource.type)
356399
&& Objects.equals(this.usernameKey, observabilityPipelineHttpServerSource.usernameKey)
400+
&& Objects.equals(this.validTokens, observabilityPipelineHttpServerSource.validTokens)
357401
&& Objects.equals(
358402
this.additionalProperties, observabilityPipelineHttpServerSource.additionalProperties);
359403
}
@@ -370,6 +414,7 @@ public int hashCode() {
370414
tls,
371415
type,
372416
usernameKey,
417+
validTokens,
373418
additionalProperties);
374419
}
375420

@@ -386,6 +431,7 @@ public String toString() {
386431
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
387432
sb.append(" type: ").append(toIndentedString(type)).append("\n");
388433
sb.append(" usernameKey: ").append(toIndentedString(usernameKey)).append("\n");
434+
sb.append(" validTokens: ").append(toIndentedString(validTokens)).append("\n");
389435
sb.append(" additionalProperties: ")
390436
.append(toIndentedString(additionalProperties))
391437
.append("\n");

0 commit comments

Comments
 (0)