diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5da2e75e805..1c4147ddb7e 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6932,6 +6932,11 @@ components: type: string buffer: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' + connection_string_key: + description: Name of the environment variable or secret that holds the Azure + Storage connection string. + example: AZURE_STORAGE_CONNECTION_STRING + type: string container_name: description: The name of the Azure Blob Storage container to store logs in. @@ -37731,6 +37736,16 @@ components: description: Azure AD client ID used for authentication. example: a1b2c3d4-5678-90ab-cdef-1234567890ab type: string + client_secret_key: + description: Name of the environment variable or secret that holds the Azure + AD client secret. + example: AZURE_CLIENT_SECRET + type: string + dce_uri_key: + description: Name of the environment variable or secret that holds the Data + Collection Endpoint (DCE) URI. + example: DCE_URI + type: string dcr_immutable_id: description: The immutable ID of the Data Collection Rule (DCR). example: dcr-uuid-1234 @@ -39662,6 +39677,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the Firehose + delivery stream address. + example: FIREHOSE_ADDRESS + type: string auth: $ref: '#/components/schemas/ObservabilityPipelineAwsAuth' id: @@ -39874,6 +39894,11 @@ components: $ref: '#/components/schemas/ObservabilityPipelineTls' type: $ref: '#/components/schemas/ObservabilityPipelineAmazonS3SourceType' + url_key: + description: Name of the environment variable or secret that holds the S3 + bucket URL. + example: S3_BUCKET_URL + type: string required: - id - type @@ -40003,6 +40028,11 @@ components: **Supported pipeline types:** logs' properties: + endpoint_url_key: + description: Name of the environment variable or secret that holds the CloudPrem + endpoint URL. + example: CLOUDPREM_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: cloud-prem-destination @@ -40273,6 +40303,11 @@ components: $ref: '#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestinationCompression' encoding: $ref: '#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestinationEncoding' + endpoint_url_key: + description: Name of the environment variable or secret that holds the CrowdStrike + endpoint URL. + example: CROWDSTRIKE_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: crowdstrike-ngsiem-destination @@ -40287,6 +40322,11 @@ components: type: array tls: $ref: '#/components/schemas/ObservabilityPipelineTls' + token_key: + description: Name of the environment variable or secret that holds the CrowdStrike + API token. + example: CROWDSTRIKE_TOKEN + type: string type: $ref: '#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestinationType' required: @@ -40789,6 +40829,8 @@ components: properties: api_version: $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationApiVersion' + auth: + $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationAuth' buffer: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' bulk_index: @@ -40797,6 +40839,11 @@ components: type: string data_stream: $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationDataStream' + endpoint_url_key: + description: Name of the environment variable or secret that holds the Elasticsearch + endpoint URL. + example: ELASTICSEARCH_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: elasticsearch-destination @@ -40832,6 +40879,27 @@ components: - V6 - V7 - V8 + ObservabilityPipelineElasticsearchDestinationAuth: + description: 'Authentication settings for the Elasticsearch destination. + + When `strategy` is `basic`, use `username_key` and `password_key` to reference + credentials stored in environment variables or secrets.' + properties: + password_key: + description: Name of the environment variable or secret that holds the Elasticsearch + password (used when `strategy` is `basic`). + example: ELASTICSEARCH_PASSWORD + type: string + strategy: + $ref: '#/components/schemas/ObservabilityPipelineAmazonOpenSearchDestinationAuthStrategy' + username_key: + description: Name of the environment variable or secret that holds the Elasticsearch + username (used when `strategy` is `basic`). + example: ELASTICSEARCH_USERNAME + type: string + required: + - strategy + type: object ObservabilityPipelineElasticsearchDestinationDataStream: description: Configuration options for writing to Elasticsearch Data Streams instead of a fixed index. @@ -41043,6 +41111,11 @@ components: ObservabilityPipelineEnrichmentTableReferenceTable: description: Uses a Datadog reference table to enrich logs. properties: + app_key_key: + description: Name of the environment variable or secret that holds the Datadog + application key used to access the reference table. + example: DD_APP_KEY + type: string columns: description: List of column names to include from the reference table. If not provided, all columns are included. @@ -41129,6 +41202,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the Fluent Bit receiver. + example: FLUENT_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -41160,6 +41238,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the Fluent receiver. + example: FLUENT_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -41186,10 +41269,11 @@ components: x-enum-varnames: - FLUENTD ObservabilityPipelineGcpAuth: - description: GCP credentials used to authenticate with Google Cloud Storage. + description: Google Cloud credentials used to authenticate with Google Cloud + Storage. properties: credentials_file: - description: Path to the GCP service account key file. + description: Path to the Google Cloud service account key file. example: /var/secrets/gcp-credentials.json type: string required: @@ -41344,6 +41428,11 @@ components: type: string encoding: $ref: '#/components/schemas/ObservabilityPipelineGoogleChronicleDestinationEncoding' + endpoint_url_key: + description: Name of the environment variable or secret that holds the Google + Chronicle endpoint URL. + example: CHRONICLE_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: google-chronicle-destination @@ -41393,7 +41482,7 @@ components: description: 'The `google_cloud_storage` destination stores logs in a Google Cloud Storage (GCS) bucket. - It requires a bucket name, GCP authentication, and metadata fields. + It requires a bucket name, Google Cloud authentication, and metadata fields. **Supported pipeline types:** logs' @@ -41496,6 +41585,11 @@ components: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: $ref: '#/components/schemas/ObservabilityPipelineGooglePubSubDestinationEncoding' + endpoint_url_key: + description: Name of the environment variable or secret that holds the Google + Cloud Pub/Sub endpoint URL. + example: GCP_PUBSUB_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: google-pubsub-destination @@ -41509,7 +41603,7 @@ components: type: string type: array project: - description: The GCP project ID that owns the Pub/Sub topic. + description: The Google Cloud project ID that owns the Pub/Sub topic. example: my-gcp-project type: string tls: @@ -41567,7 +41661,7 @@ components: example: google-pubsub-source type: string project: - description: The GCP project ID that owns the Pub/Sub subscription. + description: The Google Cloud project ID that owns the Pub/Sub subscription. example: my-gcp-project type: string subscription: @@ -41606,6 +41700,11 @@ components: $ref: '#/components/schemas/ObservabilityPipelineHttpClientDestinationAuthStrategy' compression: $ref: '#/components/schemas/ObservabilityPipelineHttpClientDestinationCompression' + custom_key: + description: Name of the environment variable or secret that holds a custom + header value (used with custom auth strategies). + example: HTTP_AUTH_CUSTOM_HEADER + type: string encoding: $ref: '#/components/schemas/ObservabilityPipelineHttpClientDestinationEncoding' id: @@ -41620,10 +41719,30 @@ components: items: type: string type: array + password_key: + description: Name of the environment variable or secret that holds the password + (used when `auth_strategy` is `basic`). + example: HTTP_AUTH_PASSWORD + type: string tls: $ref: '#/components/schemas/ObservabilityPipelineTls' + token_key: + description: Name of the environment variable or secret that holds the bearer + token (used when `auth_strategy` is `bearer`). + example: HTTP_AUTH_TOKEN + type: string type: $ref: '#/components/schemas/ObservabilityPipelineHttpClientDestinationType' + uri_key: + description: Name of the environment variable or secret that holds the HTTP + endpoint URI. + example: HTTP_DESTINATION_URI + type: string + username_key: + description: Name of the environment variable or secret that holds the username + (used when `auth_strategy` is `basic`). + example: HTTP_AUTH_USERNAME + type: string required: - id - type @@ -41687,14 +41806,29 @@ components: properties: auth_strategy: $ref: '#/components/schemas/ObservabilityPipelineHttpClientSourceAuthStrategy' + custom_key: + description: Name of the environment variable or secret that holds a custom + header value (used with custom auth strategies). + example: HTTP_AUTH_CUSTOM_HEADER + type: string decoding: $ref: '#/components/schemas/ObservabilityPipelineDecoding' + endpoint_url_key: + description: Name of the environment variable or secret that holds the HTTP + endpoint URL to scrape. + example: HTTP_ENDPOINT_URL + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components). example: http-client-source type: string + password_key: + description: Name of the environment variable or secret that holds the password + (used when `auth_strategy` is `basic`). + example: HTTP_AUTH_PASSWORD + type: string scrape_interval_secs: description: The interval (in seconds) between HTTP scrape requests. example: 60 @@ -41707,8 +41841,18 @@ components: type: integer tls: $ref: '#/components/schemas/ObservabilityPipelineTls' + token_key: + description: Name of the environment variable or secret that holds the bearer + token (used when `auth_strategy` is `bearer`). + example: HTTP_AUTH_TOKEN + type: string type: $ref: '#/components/schemas/ObservabilityPipelineHttpClientSourceType' + username_key: + description: Name of the environment variable or secret that holds the username + (used when `auth_strategy` is `basic`). + example: HTTP_AUTH_USERNAME + type: string required: - id - type @@ -41746,18 +41890,38 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the HTTP server. + example: HTTP_SERVER_ADDRESS + type: string auth_strategy: $ref: '#/components/schemas/ObservabilityPipelineHttpServerSourceAuthStrategy' + custom_key: + description: Name of the environment variable or secret that holds a custom + header value (used with custom auth strategies). + example: HTTP_AUTH_CUSTOM_HEADER + type: string decoding: $ref: '#/components/schemas/ObservabilityPipelineDecoding' id: description: Unique ID for the HTTP server source. example: http-server-source type: string + password_key: + description: Name of the environment variable or secret that holds the password + (used when `auth_strategy` is `plain`). + example: HTTP_AUTH_PASSWORD + type: string tls: $ref: '#/components/schemas/ObservabilityPipelineTls' type: $ref: '#/components/schemas/ObservabilityPipelineHttpServerSourceType' + username_key: + description: Name of the environment variable or secret that holds the username + (used when `auth_strategy` is `plain`). + example: HTTP_AUTH_USERNAME + type: string required: - id - type @@ -41791,6 +41955,11 @@ components: **Supported pipeline types:** logs' properties: + bootstrap_servers_key: + description: Name of the environment variable or secret that holds the Kafka + bootstrap servers list. + example: KAFKA_BOOTSTRAP_SERVERS + type: string compression: $ref: '#/components/schemas/ObservabilityPipelineKafkaDestinationCompression' encoding: @@ -41923,6 +42092,16 @@ components: properties: mechanism: $ref: '#/components/schemas/ObservabilityPipelineKafkaSaslMechanism' + password_key: + description: Name of the environment variable or secret that holds the SASL + password. + example: KAFKA_SASL_PASSWORD + type: string + username_key: + description: Name of the environment variable or secret that holds the SASL + username. + example: KAFKA_SASL_USERNAME + type: string type: object ObservabilityPipelineKafkaSaslMechanism: description: SASL mechanism used for Kafka authentication. @@ -41941,6 +42120,11 @@ components: **Supported pipeline types:** logs' properties: + bootstrap_servers_key: + description: Name of the environment variable or secret that holds the Kafka + bootstrap servers list. + example: KAFKA_BOOTSTRAP_SERVERS + type: string group_id: description: Consumer group ID used by the Kafka client. example: consumer-group-0 @@ -41995,6 +42179,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the Logstash receiver. + example: LOGSTASH_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -42172,6 +42361,11 @@ components: **Supported pipeline types:** logs' properties: + account_id_key: + description: Name of the environment variable or secret that holds the New + Relic account ID. + example: NEW_RELIC_ACCOUNT_ID + type: string buffer: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' id: @@ -42186,6 +42380,11 @@ components: items: type: string type: array + license_key_key: + description: Name of the environment variable or secret that holds the New + Relic license key. + example: NEW_RELIC_LICENSE_KEY + type: string region: $ref: '#/components/schemas/ObservabilityPipelineNewRelicDestinationRegion' type: @@ -42431,6 +42630,8 @@ components: **Supported pipeline types:** logs' properties: + auth: + $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationAuth' buffer: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' bulk_index: @@ -42439,6 +42640,11 @@ components: type: string data_stream: $ref: '#/components/schemas/ObservabilityPipelineOpenSearchDestinationDataStream' + endpoint_url_key: + description: Name of the environment variable or secret that holds the OpenSearch + endpoint URL. + example: OPENSEARCH_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: opensearch-destination @@ -43148,6 +43354,11 @@ components: properties: buffer: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' + endpoint_url_key: + description: Name of the environment variable or secret that holds the syslog + server endpoint URL. + example: SYSLOG_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: rsyslog-destination @@ -43193,6 +43404,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the syslog receiver. + example: SYSLOG_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -43669,6 +43885,11 @@ components: type: array region: $ref: '#/components/schemas/ObservabilityPipelineSentinelOneDestinationRegion' + token_key: + description: Name of the environment variable or secret that holds the SentinelOne + API token. + example: SENTINELONE_TOKEN + type: string type: $ref: '#/components/schemas/ObservabilityPipelineSentinelOneDestinationType' required: @@ -43709,6 +43930,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the socket + address (host:port). + example: SOCKET_ADDRESS + type: string buffer: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: @@ -43843,6 +44069,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the socket. + example: SOCKET_ADDRESS + type: string framing: $ref: '#/components/schemas/ObservabilityPipelineSocketSourceFraming' id: @@ -44091,6 +44322,11 @@ components: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: $ref: '#/components/schemas/ObservabilityPipelineSplunkHecDestinationEncoding' + endpoint_url_key: + description: Name of the environment variable or secret that holds the Splunk + HEC endpoint URL. + example: SPLUNK_HEC_ENDPOINT_URL + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -44113,6 +44349,11 @@ components: description: The Splunk sourcetype to assign to log events. example: custom_sourcetype type: string + token_key: + description: Name of the environment variable or secret that holds the Splunk + HEC token. + example: SPLUNK_HEC_TOKEN + type: string type: $ref: '#/components/schemas/ObservabilityPipelineSplunkHecDestinationType' required: @@ -44148,6 +44389,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the HEC API. + example: SPLUNK_HEC_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -44182,6 +44428,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the Splunk TCP receiver. + example: SPLUNK_TCP_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -44217,6 +44468,11 @@ components: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' encoding: $ref: '#/components/schemas/ObservabilityPipelineSumoLogicDestinationEncoding' + endpoint_url_key: + description: Name of the environment variable or secret that holds the Sumo + Logic HTTP endpoint URL. + example: SUMO_LOGIC_ENDPOINT_URL + type: string header_custom_fields: description: A list of custom headers to include in the request to Sumo Logic. @@ -44298,6 +44554,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the Sumo Logic receiver. + example: SUMO_LOGIC_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -44330,6 +44591,11 @@ components: properties: buffer: $ref: '#/components/schemas/ObservabilityPipelineBufferOptions' + endpoint_url_key: + description: Name of the environment variable or secret that holds the syslog-ng + server endpoint URL. + example: SYSLOG_ENDPOINT_URL + type: string id: description: The unique identifier for this component. example: syslog-ng-destination @@ -44375,6 +44641,11 @@ components: **Supported pipeline types:** logs' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the syslog-ng receiver. + example: SYSLOG_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` @@ -44492,6 +44763,11 @@ components: description: Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication. type: string + key_pass_key: + description: Name of the environment variable or secret that holds the passphrase + for the private key file. + example: TLS_KEY_PASSPHRASE + type: string required: - crt_file type: object diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1330454428.java b/examples/v2/observability-pipelines/ValidatePipeline_1330454428.java new file mode 100644 index 00000000000..8a44d4092ae --- /dev/null +++ b/examples/v2/observability-pipelines/ValidatePipeline_1330454428.java @@ -0,0 +1,89 @@ +// Validate an observability pipeline with destination secret key returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.ObservabilityPipelinesApi; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfig; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigDestinationItem; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorGroup; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorItem; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigSourceItem; +import com.datadog.api.client.v2.model.ObservabilityPipelineDataAttributes; +import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogAgentSource; +import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogAgentSourceType; +import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessor; +import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessorType; +import com.datadog.api.client.v2.model.ObservabilityPipelineSpec; +import com.datadog.api.client.v2.model.ObservabilityPipelineSpecData; +import com.datadog.api.client.v2.model.ObservabilityPipelineSumoLogicDestination; +import com.datadog.api.client.v2.model.ObservabilityPipelineSumoLogicDestinationType; +import com.datadog.api.client.v2.model.ValidationResponse; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + ObservabilityPipelinesApi apiInstance = new ObservabilityPipelinesApi(defaultClient); + + ObservabilityPipelineSpec body = + new ObservabilityPipelineSpec() + .data( + new ObservabilityPipelineSpecData() + .attributes( + new ObservabilityPipelineDataAttributes() + .config( + new ObservabilityPipelineConfig() + .destinations( + Collections.singletonList( + new ObservabilityPipelineConfigDestinationItem( + new ObservabilityPipelineSumoLogicDestination() + .id("sumo-logic-destination") + .inputs( + Collections.singletonList( + "my-processor-group")) + .type( + ObservabilityPipelineSumoLogicDestinationType + .SUMO_LOGIC) + .endpointUrlKey("SUMO_LOGIC_ENDPOINT_URL")))) + .processorGroups( + Collections.singletonList( + new ObservabilityPipelineConfigProcessorGroup() + .enabled(true) + .id("my-processor-group") + .include("service:my-service") + .inputs( + Collections.singletonList( + "datadog-agent-source")) + .processors( + Collections.singletonList( + new ObservabilityPipelineConfigProcessorItem( + new ObservabilityPipelineFilterProcessor() + .enabled(true) + .id("filter-processor") + .include("status:error") + .type( + ObservabilityPipelineFilterProcessorType + .FILTER)))))) + .sources( + Collections.singletonList( + new ObservabilityPipelineConfigSourceItem( + new ObservabilityPipelineDatadogAgentSource() + .id("datadog-agent-source") + .type( + ObservabilityPipelineDatadogAgentSourceType + .DATADOG_AGENT))))) + .name("Pipeline with Secret Key")) + .type("pipelines")); + + try { + ValidationResponse result = apiInstance.validatePipeline(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ObservabilityPipelinesApi#validatePipeline"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/observability-pipelines/ValidatePipeline_2899320203.java b/examples/v2/observability-pipelines/ValidatePipeline_2899320203.java new file mode 100644 index 00000000000..2d5058256c5 --- /dev/null +++ b/examples/v2/observability-pipelines/ValidatePipeline_2899320203.java @@ -0,0 +1,97 @@ +// Validate an observability pipeline with source secret key returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.ObservabilityPipelinesApi; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfig; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigDestinationItem; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorGroup; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorItem; +import com.datadog.api.client.v2.model.ObservabilityPipelineConfigSourceItem; +import com.datadog.api.client.v2.model.ObservabilityPipelineDataAttributes; +import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogLogsDestination; +import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogLogsDestinationType; +import com.datadog.api.client.v2.model.ObservabilityPipelineDecoding; +import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessor; +import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessorType; +import com.datadog.api.client.v2.model.ObservabilityPipelineHttpClientSource; +import com.datadog.api.client.v2.model.ObservabilityPipelineHttpClientSourceAuthStrategy; +import com.datadog.api.client.v2.model.ObservabilityPipelineHttpClientSourceType; +import com.datadog.api.client.v2.model.ObservabilityPipelineSpec; +import com.datadog.api.client.v2.model.ObservabilityPipelineSpecData; +import com.datadog.api.client.v2.model.ValidationResponse; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + ObservabilityPipelinesApi apiInstance = new ObservabilityPipelinesApi(defaultClient); + + ObservabilityPipelineSpec body = + new ObservabilityPipelineSpec() + .data( + new ObservabilityPipelineSpecData() + .attributes( + new ObservabilityPipelineDataAttributes() + .config( + new ObservabilityPipelineConfig() + .destinations( + Collections.singletonList( + new ObservabilityPipelineConfigDestinationItem( + new ObservabilityPipelineDatadogLogsDestination() + .id("datadog-logs-destination") + .inputs( + Collections.singletonList( + "my-processor-group")) + .type( + ObservabilityPipelineDatadogLogsDestinationType + .DATADOG_LOGS)))) + .processorGroups( + Collections.singletonList( + new ObservabilityPipelineConfigProcessorGroup() + .enabled(true) + .id("my-processor-group") + .include("service:my-service") + .inputs( + Collections.singletonList("http-client-source")) + .processors( + Collections.singletonList( + new ObservabilityPipelineConfigProcessorItem( + new ObservabilityPipelineFilterProcessor() + .enabled(true) + .id("filter-processor") + .include("status:error") + .type( + ObservabilityPipelineFilterProcessorType + .FILTER)))))) + .sources( + Collections.singletonList( + new ObservabilityPipelineConfigSourceItem( + new ObservabilityPipelineHttpClientSource() + .id("http-client-source") + .type( + ObservabilityPipelineHttpClientSourceType + .HTTP_CLIENT) + .decoding( + ObservabilityPipelineDecoding.DECODE_BYTES) + .scrapeIntervalSecs(15L) + .scrapeTimeoutSecs(5L) + .authStrategy( + ObservabilityPipelineHttpClientSourceAuthStrategy + .BEARER) + .tokenKey("HTTP_CLIENT_TOKEN"))))) + .name("Pipeline with Source Secret")) + .type("pipelines")); + + try { + ValidationResponse result = apiInstance.validatePipeline(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ObservabilityPipelinesApi#validatePipeline"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java b/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java index d46d455c142..e2a795215b5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java @@ -27,6 +27,7 @@ @JsonPropertyOrder({ AzureStorageDestination.JSON_PROPERTY_BLOB_PREFIX, AzureStorageDestination.JSON_PROPERTY_BUFFER, + AzureStorageDestination.JSON_PROPERTY_CONNECTION_STRING_KEY, AzureStorageDestination.JSON_PROPERTY_CONTAINER_NAME, AzureStorageDestination.JSON_PROPERTY_ID, AzureStorageDestination.JSON_PROPERTY_INPUTS, @@ -42,6 +43,9 @@ public class AzureStorageDestination { public static final String JSON_PROPERTY_BUFFER = "buffer"; private ObservabilityPipelineBufferOptions buffer; + public static final String JSON_PROPERTY_CONNECTION_STRING_KEY = "connection_string_key"; + private String connectionStringKey; + public static final String JSON_PROPERTY_CONTAINER_NAME = "container_name"; private String containerName; @@ -112,6 +116,27 @@ public void setBuffer(ObservabilityPipelineBufferOptions buffer) { this.buffer = buffer; } + public AzureStorageDestination connectionStringKey(String connectionStringKey) { + this.connectionStringKey = connectionStringKey; + return this; + } + + /** + * Name of the environment variable or secret that holds the Azure Storage connection string. + * + * @return connectionStringKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONNECTION_STRING_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getConnectionStringKey() { + return connectionStringKey; + } + + public void setConnectionStringKey(String connectionStringKey) { + this.connectionStringKey = connectionStringKey; + } + public AzureStorageDestination containerName(String containerName) { this.containerName = containerName; return this; @@ -259,6 +284,7 @@ public boolean equals(Object o) { AzureStorageDestination azureStorageDestination = (AzureStorageDestination) o; return Objects.equals(this.blobPrefix, azureStorageDestination.blobPrefix) && Objects.equals(this.buffer, azureStorageDestination.buffer) + && Objects.equals(this.connectionStringKey, azureStorageDestination.connectionStringKey) && Objects.equals(this.containerName, azureStorageDestination.containerName) && Objects.equals(this.id, azureStorageDestination.id) && Objects.equals(this.inputs, azureStorageDestination.inputs) @@ -268,7 +294,15 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(blobPrefix, buffer, containerName, id, inputs, type, additionalProperties); + return Objects.hash( + blobPrefix, + buffer, + connectionStringKey, + containerName, + id, + inputs, + type, + additionalProperties); } @Override @@ -277,6 +311,9 @@ public String toString() { sb.append("class AzureStorageDestination {\n"); sb.append(" blobPrefix: ").append(toIndentedString(blobPrefix)).append("\n"); sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); + sb.append(" connectionStringKey: ") + .append(toIndentedString(connectionStringKey)) + .append("\n"); sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java b/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java index 500121c0cf6..91726a163dd 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java @@ -27,6 +27,8 @@ @JsonPropertyOrder({ MicrosoftSentinelDestination.JSON_PROPERTY_BUFFER, MicrosoftSentinelDestination.JSON_PROPERTY_CLIENT_ID, + MicrosoftSentinelDestination.JSON_PROPERTY_CLIENT_SECRET_KEY, + MicrosoftSentinelDestination.JSON_PROPERTY_DCE_URI_KEY, MicrosoftSentinelDestination.JSON_PROPERTY_DCR_IMMUTABLE_ID, MicrosoftSentinelDestination.JSON_PROPERTY_ID, MicrosoftSentinelDestination.JSON_PROPERTY_INPUTS, @@ -44,6 +46,12 @@ public class MicrosoftSentinelDestination { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; private String clientId; + public static final String JSON_PROPERTY_CLIENT_SECRET_KEY = "client_secret_key"; + private String clientSecretKey; + + public static final String JSON_PROPERTY_DCE_URI_KEY = "dce_uri_key"; + private String dceUriKey; + public static final String JSON_PROPERTY_DCR_IMMUTABLE_ID = "dcr_immutable_id"; private String dcrImmutableId; @@ -127,6 +135,48 @@ public void setClientId(String clientId) { this.clientId = clientId; } + public MicrosoftSentinelDestination clientSecretKey(String clientSecretKey) { + this.clientSecretKey = clientSecretKey; + return this; + } + + /** + * Name of the environment variable or secret that holds the Azure AD client secret. + * + * @return clientSecretKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CLIENT_SECRET_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getClientSecretKey() { + return clientSecretKey; + } + + public void setClientSecretKey(String clientSecretKey) { + this.clientSecretKey = clientSecretKey; + } + + public MicrosoftSentinelDestination dceUriKey(String dceUriKey) { + this.dceUriKey = dceUriKey; + return this; + } + + /** + * Name of the environment variable or secret that holds the Data Collection Endpoint (DCE) URI. + * + * @return dceUriKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DCE_URI_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDceUriKey() { + return dceUriKey; + } + + public void setDceUriKey(String dceUriKey) { + this.dceUriKey = dceUriKey; + } + public MicrosoftSentinelDestination dcrImmutableId(String dcrImmutableId) { this.dcrImmutableId = dcrImmutableId; return this; @@ -314,6 +364,8 @@ public boolean equals(Object o) { MicrosoftSentinelDestination microsoftSentinelDestination = (MicrosoftSentinelDestination) o; return Objects.equals(this.buffer, microsoftSentinelDestination.buffer) && Objects.equals(this.clientId, microsoftSentinelDestination.clientId) + && Objects.equals(this.clientSecretKey, microsoftSentinelDestination.clientSecretKey) + && Objects.equals(this.dceUriKey, microsoftSentinelDestination.dceUriKey) && Objects.equals(this.dcrImmutableId, microsoftSentinelDestination.dcrImmutableId) && Objects.equals(this.id, microsoftSentinelDestination.id) && Objects.equals(this.inputs, microsoftSentinelDestination.inputs) @@ -327,7 +379,17 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - buffer, clientId, dcrImmutableId, id, inputs, table, tenantId, type, additionalProperties); + buffer, + clientId, + clientSecretKey, + dceUriKey, + dcrImmutableId, + id, + inputs, + table, + tenantId, + type, + additionalProperties); } @Override @@ -336,6 +398,8 @@ public String toString() { sb.append("class MicrosoftSentinelDestination {\n"); sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); + sb.append(" clientSecretKey: ").append(toIndentedString(clientSecretKey)).append("\n"); + sb.append(" dceUriKey: ").append(toIndentedString(dceUriKey)).append("\n"); sb.append(" dcrImmutableId: ").append(toIndentedString(dcrImmutableId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonDataFirehoseSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonDataFirehoseSource.java index 874440b2b2b..1ecf8442c47 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonDataFirehoseSource.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonDataFirehoseSource.java @@ -23,6 +23,7 @@ *
Supported pipeline types: logs */ @JsonPropertyOrder({ + ObservabilityPipelineAmazonDataFirehoseSource.JSON_PROPERTY_ADDRESS_KEY, ObservabilityPipelineAmazonDataFirehoseSource.JSON_PROPERTY_AUTH, ObservabilityPipelineAmazonDataFirehoseSource.JSON_PROPERTY_ID, ObservabilityPipelineAmazonDataFirehoseSource.JSON_PROPERTY_TLS, @@ -32,6 +33,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineAmazonDataFirehoseSource { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key"; + private String addressKey; + public static final String JSON_PROPERTY_AUTH = "auth"; private ObservabilityPipelineAwsAuth auth; @@ -57,6 +61,27 @@ public ObservabilityPipelineAmazonDataFirehoseSource( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineAmazonDataFirehoseSource addressKey(String addressKey) { + this.addressKey = addressKey; + return this; + } + + /** + * Name of the environment variable or secret that holds the Firehose delivery stream address. + * + * @return addressKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADDRESS_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAddressKey() { + return addressKey; + } + + public void setAddressKey(String addressKey) { + this.addressKey = addressKey; + } + public ObservabilityPipelineAmazonDataFirehoseSource auth(ObservabilityPipelineAwsAuth auth) { this.auth = auth; this.unparsed |= auth.unparsed; @@ -206,7 +231,8 @@ public boolean equals(Object o) { } ObservabilityPipelineAmazonDataFirehoseSource observabilityPipelineAmazonDataFirehoseSource = (ObservabilityPipelineAmazonDataFirehoseSource) o; - return Objects.equals(this.auth, observabilityPipelineAmazonDataFirehoseSource.auth) + return Objects.equals(this.addressKey, observabilityPipelineAmazonDataFirehoseSource.addressKey) + && Objects.equals(this.auth, observabilityPipelineAmazonDataFirehoseSource.auth) && Objects.equals(this.id, observabilityPipelineAmazonDataFirehoseSource.id) && Objects.equals(this.tls, observabilityPipelineAmazonDataFirehoseSource.tls) && Objects.equals(this.type, observabilityPipelineAmazonDataFirehoseSource.type) @@ -217,13 +243,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(auth, id, tls, type, additionalProperties); + return Objects.hash(addressKey, auth, id, tls, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineAmazonDataFirehoseSource {\n"); + sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n"); sb.append(" auth: ").append(toIndentedString(auth)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tls: ").append(toIndentedString(tls)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Source.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Source.java index 3dc30af3ced..5c5339ec0e4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Source.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAmazonS3Source.java @@ -28,7 +28,8 @@ ObservabilityPipelineAmazonS3Source.JSON_PROPERTY_ID, ObservabilityPipelineAmazonS3Source.JSON_PROPERTY_REGION, ObservabilityPipelineAmazonS3Source.JSON_PROPERTY_TLS, - ObservabilityPipelineAmazonS3Source.JSON_PROPERTY_TYPE + ObservabilityPipelineAmazonS3Source.JSON_PROPERTY_TYPE, + ObservabilityPipelineAmazonS3Source.JSON_PROPERTY_URL_KEY }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -50,6 +51,9 @@ public class ObservabilityPipelineAmazonS3Source { private ObservabilityPipelineAmazonS3SourceType type = ObservabilityPipelineAmazonS3SourceType.AMAZON_S3; + public static final String JSON_PROPERTY_URL_KEY = "url_key"; + private String urlKey; + public ObservabilityPipelineAmazonS3Source() {} @JsonCreator @@ -174,6 +178,27 @@ public void setType(ObservabilityPipelineAmazonS3SourceType type) { this.type = type; } + public ObservabilityPipelineAmazonS3Source urlKey(String urlKey) { + this.urlKey = urlKey; + return this; + } + + /** + * Name of the environment variable or secret that holds the S3 bucket URL. + * + * @return urlKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_URL_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUrlKey() { + return urlKey; + } + + public void setUrlKey(String urlKey) { + this.urlKey = urlKey; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -236,13 +261,14 @@ public boolean equals(Object o) { && Objects.equals(this.region, observabilityPipelineAmazonS3Source.region) && Objects.equals(this.tls, observabilityPipelineAmazonS3Source.tls) && Objects.equals(this.type, observabilityPipelineAmazonS3Source.type) + && Objects.equals(this.urlKey, observabilityPipelineAmazonS3Source.urlKey) && Objects.equals( this.additionalProperties, observabilityPipelineAmazonS3Source.additionalProperties); } @Override public int hashCode() { - return Objects.hash(auth, id, region, tls, type, additionalProperties); + return Objects.hash(auth, id, region, tls, type, urlKey, additionalProperties); } @Override @@ -254,6 +280,7 @@ public String toString() { sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" tls: ").append(toIndentedString(tls)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" urlKey: ").append(toIndentedString(urlKey)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCloudPremDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCloudPremDestination.java index e19c69c0234..131acfc7c3e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCloudPremDestination.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCloudPremDestination.java @@ -25,6 +25,7 @@ *
Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineCloudPremDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineCloudPremDestination.JSON_PROPERTY_ID,
ObservabilityPipelineCloudPremDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineCloudPremDestination.JSON_PROPERTY_TYPE
@@ -33,6 +34,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineCloudPremDestination {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -57,6 +61,27 @@ public ObservabilityPipelineCloudPremDestination(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineCloudPremDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the CloudPrem endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineCloudPremDestination id(String id) {
this.id = id;
return this;
@@ -184,7 +209,9 @@ public boolean equals(Object o) {
}
ObservabilityPipelineCloudPremDestination observabilityPipelineCloudPremDestination =
(ObservabilityPipelineCloudPremDestination) o;
- return Objects.equals(this.id, observabilityPipelineCloudPremDestination.id)
+ return Objects.equals(
+ this.endpointUrlKey, observabilityPipelineCloudPremDestination.endpointUrlKey)
+ && Objects.equals(this.id, observabilityPipelineCloudPremDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineCloudPremDestination.inputs)
&& Objects.equals(this.type, observabilityPipelineCloudPremDestination.type)
&& Objects.equals(
@@ -194,13 +221,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, inputs, type, additionalProperties);
+ return Objects.hash(endpointUrlKey, id, inputs, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineCloudPremDestination {\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java
index bd6741381fc..7f818ad15b7 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineCrowdStrikeNextGenSiemDestination.java
@@ -29,9 +29,11 @@
ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_COMPRESSION,
ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_ENCODING,
+ ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_ID,
ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_TLS,
+ ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_TOKEN_KEY,
ObservabilityPipelineCrowdStrikeNextGenSiemDestination.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
@@ -47,6 +49,9 @@ public class ObservabilityPipelineCrowdStrikeNextGenSiemDestination {
public static final String JSON_PROPERTY_ENCODING = "encoding";
private ObservabilityPipelineCrowdStrikeNextGenSiemDestinationEncoding encoding;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -56,6 +61,9 @@ public class ObservabilityPipelineCrowdStrikeNextGenSiemDestination {
public static final String JSON_PROPERTY_TLS = "tls";
private ObservabilityPipelineTls tls;
+ public static final String JSON_PROPERTY_TOKEN_KEY = "token_key";
+ private String tokenKey;
+
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineCrowdStrikeNextGenSiemDestinationType type =
ObservabilityPipelineCrowdStrikeNextGenSiemDestinationType.CROWDSTRIKE_NEXT_GEN_SIEM;
@@ -150,6 +158,28 @@ public void setEncoding(ObservabilityPipelineCrowdStrikeNextGenSiemDestinationEn
this.encoding = encoding;
}
+ public ObservabilityPipelineCrowdStrikeNextGenSiemDestination endpointUrlKey(
+ String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the CrowdStrike endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineCrowdStrikeNextGenSiemDestination id(String id) {
this.id = id;
return this;
@@ -217,6 +247,27 @@ public void setTls(ObservabilityPipelineTls tls) {
this.tls = tls;
}
+ public ObservabilityPipelineCrowdStrikeNextGenSiemDestination tokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the CrowdStrike API token.
+ *
+ * @return tokenKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TOKEN_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTokenKey() {
+ return tokenKey;
+ }
+
+ public void setTokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ }
+
public ObservabilityPipelineCrowdStrikeNextGenSiemDestination type(
ObservabilityPipelineCrowdStrikeNextGenSiemDestinationType type) {
this.type = type;
@@ -310,10 +361,15 @@ public boolean equals(Object o) {
this.compression, observabilityPipelineCrowdStrikeNextGenSiemDestination.compression)
&& Objects.equals(
this.encoding, observabilityPipelineCrowdStrikeNextGenSiemDestination.encoding)
+ && Objects.equals(
+ this.endpointUrlKey,
+ observabilityPipelineCrowdStrikeNextGenSiemDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineCrowdStrikeNextGenSiemDestination.id)
&& Objects.equals(
this.inputs, observabilityPipelineCrowdStrikeNextGenSiemDestination.inputs)
&& Objects.equals(this.tls, observabilityPipelineCrowdStrikeNextGenSiemDestination.tls)
+ && Objects.equals(
+ this.tokenKey, observabilityPipelineCrowdStrikeNextGenSiemDestination.tokenKey)
&& Objects.equals(this.type, observabilityPipelineCrowdStrikeNextGenSiemDestination.type)
&& Objects.equals(
this.additionalProperties,
@@ -322,7 +378,17 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(buffer, compression, encoding, id, inputs, tls, type, additionalProperties);
+ return Objects.hash(
+ buffer,
+ compression,
+ encoding,
+ endpointUrlKey,
+ id,
+ inputs,
+ tls,
+ tokenKey,
+ type,
+ additionalProperties);
}
@Override
@@ -332,9 +398,11 @@ public String toString() {
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" compression: ").append(toIndentedString(compression)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
+ sb.append(" tokenKey: ").append(toIndentedString(tokenKey)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java
index 3f441c4ef65..f3b0d8eccee 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestination.java
@@ -26,9 +26,11 @@
*/
@JsonPropertyOrder({
ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_API_VERSION,
+ ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_AUTH,
ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_BULK_INDEX,
ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_DATA_STREAM,
+ ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_ID,
ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineElasticsearchDestination.JSON_PROPERTY_TYPE
@@ -40,6 +42,9 @@ public class ObservabilityPipelineElasticsearchDestination {
public static final String JSON_PROPERTY_API_VERSION = "api_version";
private ObservabilityPipelineElasticsearchDestinationApiVersion apiVersion;
+ public static final String JSON_PROPERTY_AUTH = "auth";
+ private ObservabilityPipelineElasticsearchDestinationAuth auth;
+
public static final String JSON_PROPERTY_BUFFER = "buffer";
private ObservabilityPipelineBufferOptions buffer;
@@ -49,6 +54,9 @@ public class ObservabilityPipelineElasticsearchDestination {
public static final String JSON_PROPERTY_DATA_STREAM = "data_stream";
private ObservabilityPipelineElasticsearchDestinationDataStream dataStream;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -99,6 +107,31 @@ public void setApiVersion(ObservabilityPipelineElasticsearchDestinationApiVersio
this.apiVersion = apiVersion;
}
+ public ObservabilityPipelineElasticsearchDestination auth(
+ ObservabilityPipelineElasticsearchDestinationAuth auth) {
+ this.auth = auth;
+ this.unparsed |= auth.unparsed;
+ return this;
+ }
+
+ /**
+ * Authentication settings for the Elasticsearch destination. When Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineFluentBitSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineFluentBitSource.JSON_PROPERTY_ID,
ObservabilityPipelineFluentBitSource.JSON_PROPERTY_TLS,
ObservabilityPipelineFluentBitSource.JSON_PROPERTY_TYPE
@@ -31,6 +32,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineFluentBitSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -53,6 +57,28 @@ public ObservabilityPipelineFluentBitSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineFluentBitSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the Fluent Bit
+ * receiver.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineFluentBitSource id(String id) {
this.id = id;
return this;
@@ -177,7 +203,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineFluentBitSource observabilityPipelineFluentBitSource =
(ObservabilityPipelineFluentBitSource) o;
- return Objects.equals(this.id, observabilityPipelineFluentBitSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineFluentBitSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineFluentBitSource.id)
&& Objects.equals(this.tls, observabilityPipelineFluentBitSource.tls)
&& Objects.equals(this.type, observabilityPipelineFluentBitSource.type)
&& Objects.equals(
@@ -186,13 +213,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, tls, type, additionalProperties);
+ return Objects.hash(addressKey, id, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineFluentBitSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineFluentdSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineFluentdSource.java
index 4317bbf6d56..07c729e32f8 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineFluentdSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineFluentdSource.java
@@ -23,6 +23,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineFluentdSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineFluentdSource.JSON_PROPERTY_ID,
ObservabilityPipelineFluentdSource.JSON_PROPERTY_TLS,
ObservabilityPipelineFluentdSource.JSON_PROPERTY_TYPE
@@ -31,6 +32,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineFluentdSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -53,6 +57,28 @@ public ObservabilityPipelineFluentdSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineFluentdSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the Fluent
+ * receiver.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineFluentdSource id(String id) {
this.id = id;
return this;
@@ -177,7 +203,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineFluentdSource observabilityPipelineFluentdSource =
(ObservabilityPipelineFluentdSource) o;
- return Objects.equals(this.id, observabilityPipelineFluentdSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineFluentdSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineFluentdSource.id)
&& Objects.equals(this.tls, observabilityPipelineFluentdSource.tls)
&& Objects.equals(this.type, observabilityPipelineFluentdSource.type)
&& Objects.equals(
@@ -186,13 +213,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, tls, type, additionalProperties);
+ return Objects.hash(addressKey, id, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineFluentdSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGcpAuth.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGcpAuth.java
index 6e65889c195..62b22418cee 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGcpAuth.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGcpAuth.java
@@ -17,7 +17,7 @@
import java.util.Map;
import java.util.Objects;
-/** GCP credentials used to authenticate with Google Cloud Storage. */
+/** Google Cloud credentials used to authenticate with Google Cloud Storage. */
@JsonPropertyOrder({ObservabilityPipelineGcpAuth.JSON_PROPERTY_CREDENTIALS_FILE})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -41,7 +41,7 @@ public ObservabilityPipelineGcpAuth credentialsFile(String credentialsFile) {
}
/**
- * Path to the GCP service account key file.
+ * Path to the Google Cloud service account key file.
*
* @return credentialsFile
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java
index 905fc27f209..e4075c83e82 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java
@@ -29,6 +29,7 @@
ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_CUSTOMER_ID,
ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_ENCODING,
+ ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_ID,
ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineGoogleChronicleDestination.JSON_PROPERTY_LOG_TYPE,
@@ -50,6 +51,9 @@ public class ObservabilityPipelineGoogleChronicleDestination {
public static final String JSON_PROPERTY_ENCODING = "encoding";
private ObservabilityPipelineGoogleChronicleDestinationEncoding encoding;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -86,7 +90,7 @@ public ObservabilityPipelineGoogleChronicleDestination auth(ObservabilityPipelin
}
/**
- * GCP credentials used to authenticate with Google Cloud Storage.
+ * Google Cloud credentials used to authenticate with Google Cloud Storage.
*
* @return auth
*/
@@ -170,6 +174,27 @@ public void setEncoding(ObservabilityPipelineGoogleChronicleDestinationEncoding
this.encoding = encoding;
}
+ public ObservabilityPipelineGoogleChronicleDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Google Chronicle endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineGoogleChronicleDestination id(String id) {
this.id = id;
return this;
@@ -325,6 +350,8 @@ public boolean equals(Object o) {
&& Objects.equals(
this.customerId, observabilityPipelineGoogleChronicleDestination.customerId)
&& Objects.equals(this.encoding, observabilityPipelineGoogleChronicleDestination.encoding)
+ && Objects.equals(
+ this.endpointUrlKey, observabilityPipelineGoogleChronicleDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineGoogleChronicleDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineGoogleChronicleDestination.inputs)
&& Objects.equals(this.logType, observabilityPipelineGoogleChronicleDestination.logType)
@@ -337,7 +364,16 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- auth, buffer, customerId, encoding, id, inputs, logType, type, additionalProperties);
+ auth,
+ buffer,
+ customerId,
+ encoding,
+ endpointUrlKey,
+ id,
+ inputs,
+ logType,
+ type,
+ additionalProperties);
}
@Override
@@ -348,6 +384,7 @@ public String toString() {
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" logType: ").append(toIndentedString(logType)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java
index 317cb20bdf7..63993a6ff60 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java
@@ -21,7 +21,7 @@
/**
* The Supported pipeline types: logs
*/
@@ -126,7 +126,7 @@ public ObservabilityPipelineGoogleCloudStorageDestination auth(
}
/**
- * GCP credentials used to authenticate with Google Cloud Storage.
+ * Google Cloud credentials used to authenticate with Google Cloud Storage.
*
* @return auth
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java
index 4edb02fbc8f..fb9e7963062 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubDestination.java
@@ -28,6 +28,7 @@
ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_AUTH,
ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_ENCODING,
+ ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_ID,
ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineGooglePubSubDestination.JSON_PROPERTY_PROJECT,
@@ -48,6 +49,9 @@ public class ObservabilityPipelineGooglePubSubDestination {
public static final String JSON_PROPERTY_ENCODING = "encoding";
private ObservabilityPipelineGooglePubSubDestinationEncoding encoding;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -96,7 +100,7 @@ public ObservabilityPipelineGooglePubSubDestination auth(ObservabilityPipelineGc
}
/**
- * GCP credentials used to authenticate with Google Cloud Storage.
+ * Google Cloud credentials used to authenticate with Google Cloud Storage.
*
* @return auth
*/
@@ -159,6 +163,27 @@ public void setEncoding(ObservabilityPipelineGooglePubSubDestinationEncoding enc
this.encoding = encoding;
}
+ public ObservabilityPipelineGooglePubSubDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Google Cloud Pub/Sub endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineGooglePubSubDestination id(String id) {
this.id = id;
return this;
@@ -210,7 +235,7 @@ public ObservabilityPipelineGooglePubSubDestination project(String project) {
}
/**
- * The GCP project ID that owns the Pub/Sub topic.
+ * The Google Cloud project ID that owns the Pub/Sub topic.
*
* @return project
*/
@@ -352,6 +377,8 @@ public boolean equals(Object o) {
return Objects.equals(this.auth, observabilityPipelineGooglePubSubDestination.auth)
&& Objects.equals(this.buffer, observabilityPipelineGooglePubSubDestination.buffer)
&& Objects.equals(this.encoding, observabilityPipelineGooglePubSubDestination.encoding)
+ && Objects.equals(
+ this.endpointUrlKey, observabilityPipelineGooglePubSubDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineGooglePubSubDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineGooglePubSubDestination.inputs)
&& Objects.equals(this.project, observabilityPipelineGooglePubSubDestination.project)
@@ -366,7 +393,17 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- auth, buffer, encoding, id, inputs, project, tls, topic, type, additionalProperties);
+ auth,
+ buffer,
+ encoding,
+ endpointUrlKey,
+ id,
+ inputs,
+ project,
+ tls,
+ topic,
+ type,
+ additionalProperties);
}
@Override
@@ -376,6 +413,7 @@ public String toString() {
sb.append(" auth: ").append(toIndentedString(auth)).append("\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" project: ").append(toIndentedString(project)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubSource.java
index 6a6f56bc73b..1dcc09169c9 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubSource.java
@@ -84,7 +84,7 @@ public ObservabilityPipelineGooglePubSubSource auth(ObservabilityPipelineGcpAuth
}
/**
- * GCP credentials used to authenticate with Google Cloud Storage.
+ * Google Cloud credentials used to authenticate with Google Cloud Storage.
*
* @return auth
*/
@@ -150,7 +150,7 @@ public ObservabilityPipelineGooglePubSubSource project(String project) {
}
/**
- * The GCP project ID that owns the Pub/Sub subscription.
+ * The Google Cloud project ID that owns the Pub/Sub subscription.
*
* @return project
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientDestination.java
index 0a94ae3bc26..a56bd69ce27 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientDestination.java
@@ -27,11 +27,16 @@
@JsonPropertyOrder({
ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_AUTH_STRATEGY,
ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_COMPRESSION,
+ ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_CUSTOM_KEY,
ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_ENCODING,
ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_ID,
ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_INPUTS,
+ ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_PASSWORD_KEY,
ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_TLS,
- ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_TYPE
+ ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_TOKEN_KEY,
+ ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_TYPE,
+ ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_URI_KEY,
+ ObservabilityPipelineHttpClientDestination.JSON_PROPERTY_USERNAME_KEY
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -43,6 +48,9 @@ public class ObservabilityPipelineHttpClientDestination {
public static final String JSON_PROPERTY_COMPRESSION = "compression";
private ObservabilityPipelineHttpClientDestinationCompression compression;
+ public static final String JSON_PROPERTY_CUSTOM_KEY = "custom_key";
+ private String customKey;
+
public static final String JSON_PROPERTY_ENCODING = "encoding";
private ObservabilityPipelineHttpClientDestinationEncoding encoding;
@@ -52,13 +60,25 @@ public class ObservabilityPipelineHttpClientDestination {
public static final String JSON_PROPERTY_INPUTS = "inputs";
private List Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineHttpServerSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_AUTH_STRATEGY,
+ ObservabilityPipelineHttpServerSource.JSON_PROPERTY_CUSTOM_KEY,
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_DECODING,
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_ID,
+ ObservabilityPipelineHttpServerSource.JSON_PROPERTY_PASSWORD_KEY,
ObservabilityPipelineHttpServerSource.JSON_PROPERTY_TLS,
- ObservabilityPipelineHttpServerSource.JSON_PROPERTY_TYPE
+ ObservabilityPipelineHttpServerSource.JSON_PROPERTY_TYPE,
+ ObservabilityPipelineHttpServerSource.JSON_PROPERTY_USERNAME_KEY
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineHttpServerSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_AUTH_STRATEGY = "auth_strategy";
private ObservabilityPipelineHttpServerSourceAuthStrategy authStrategy;
+ public static final String JSON_PROPERTY_CUSTOM_KEY = "custom_key";
+ private String customKey;
+
public static final String JSON_PROPERTY_DECODING = "decoding";
private ObservabilityPipelineDecoding decoding;
public static final String JSON_PROPERTY_ID = "id";
private String id;
+ public static final String JSON_PROPERTY_PASSWORD_KEY = "password_key";
+ private String passwordKey;
+
public static final String JSON_PROPERTY_TLS = "tls";
private ObservabilityPipelineTls tls;
@@ -49,6 +62,9 @@ public class ObservabilityPipelineHttpServerSource {
private ObservabilityPipelineHttpServerSourceType type =
ObservabilityPipelineHttpServerSourceType.HTTP_SERVER;
+ public static final String JSON_PROPERTY_USERNAME_KEY = "username_key";
+ private String usernameKey;
+
public ObservabilityPipelineHttpServerSource() {}
@JsonCreator
@@ -69,6 +85,27 @@ public ObservabilityPipelineHttpServerSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineHttpServerSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the HTTP server.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineHttpServerSource authStrategy(
ObservabilityPipelineHttpServerSourceAuthStrategy authStrategy) {
this.authStrategy = authStrategy;
@@ -94,6 +131,28 @@ public void setAuthStrategy(ObservabilityPipelineHttpServerSourceAuthStrategy au
this.authStrategy = authStrategy;
}
+ public ObservabilityPipelineHttpServerSource customKey(String customKey) {
+ this.customKey = customKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds a custom header value (used with custom
+ * auth strategies).
+ *
+ * @return customKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CUSTOM_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getCustomKey() {
+ return customKey;
+ }
+
+ public void setCustomKey(String customKey) {
+ this.customKey = customKey;
+ }
+
public ObservabilityPipelineHttpServerSource decoding(ObservabilityPipelineDecoding decoding) {
this.decoding = decoding;
this.unparsed |= !decoding.isValid();
@@ -138,6 +197,28 @@ public void setId(String id) {
this.id = id;
}
+ public ObservabilityPipelineHttpServerSource passwordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the password (used when Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineKafkaDestination.JSON_PROPERTY_BOOTSTRAP_SERVERS_KEY,
ObservabilityPipelineKafkaDestination.JSON_PROPERTY_COMPRESSION,
ObservabilityPipelineKafkaDestination.JSON_PROPERTY_ENCODING,
ObservabilityPipelineKafkaDestination.JSON_PROPERTY_HEADERS_KEY,
@@ -45,6 +46,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineKafkaDestination {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_BOOTSTRAP_SERVERS_KEY = "bootstrap_servers_key";
+ private String bootstrapServersKey;
+
public static final String JSON_PROPERTY_COMPRESSION = "compression";
private ObservabilityPipelineKafkaDestinationCompression compression;
@@ -111,6 +115,27 @@ public ObservabilityPipelineKafkaDestination(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineKafkaDestination bootstrapServersKey(String bootstrapServersKey) {
+ this.bootstrapServersKey = bootstrapServersKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Kafka bootstrap servers list.
+ *
+ * @return bootstrapServersKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_BOOTSTRAP_SERVERS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getBootstrapServersKey() {
+ return bootstrapServersKey;
+ }
+
+ public void setBootstrapServersKey(String bootstrapServersKey) {
+ this.bootstrapServersKey = bootstrapServersKey;
+ }
+
public ObservabilityPipelineKafkaDestination compression(
ObservabilityPipelineKafkaDestinationCompression compression) {
this.compression = compression;
@@ -515,7 +540,9 @@ public boolean equals(Object o) {
}
ObservabilityPipelineKafkaDestination observabilityPipelineKafkaDestination =
(ObservabilityPipelineKafkaDestination) o;
- return Objects.equals(this.compression, observabilityPipelineKafkaDestination.compression)
+ return Objects.equals(
+ this.bootstrapServersKey, observabilityPipelineKafkaDestination.bootstrapServersKey)
+ && Objects.equals(this.compression, observabilityPipelineKafkaDestination.compression)
&& Objects.equals(this.encoding, observabilityPipelineKafkaDestination.encoding)
&& Objects.equals(this.headersKey, observabilityPipelineKafkaDestination.headersKey)
&& Objects.equals(this.id, observabilityPipelineKafkaDestination.id)
@@ -541,6 +568,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
+ bootstrapServersKey,
compression,
encoding,
headersKey,
@@ -563,6 +591,9 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineKafkaDestination {\n");
+ sb.append(" bootstrapServersKey: ")
+ .append(toIndentedString(bootstrapServersKey))
+ .append("\n");
sb.append(" compression: ").append(toIndentedString(compression)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
sb.append(" headersKey: ").append(toIndentedString(headersKey)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSasl.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSasl.java
index 89c8f57a3ac..054cf21286c 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSasl.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSasl.java
@@ -17,7 +17,11 @@
import java.util.Objects;
/** Specifies the SASL mechanism for authenticating with a Kafka cluster. */
-@JsonPropertyOrder({ObservabilityPipelineKafkaSasl.JSON_PROPERTY_MECHANISM})
+@JsonPropertyOrder({
+ ObservabilityPipelineKafkaSasl.JSON_PROPERTY_MECHANISM,
+ ObservabilityPipelineKafkaSasl.JSON_PROPERTY_PASSWORD_KEY,
+ ObservabilityPipelineKafkaSasl.JSON_PROPERTY_USERNAME_KEY
+})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineKafkaSasl {
@@ -25,6 +29,12 @@ public class ObservabilityPipelineKafkaSasl {
public static final String JSON_PROPERTY_MECHANISM = "mechanism";
private ObservabilityPipelineKafkaSaslMechanism mechanism;
+ public static final String JSON_PROPERTY_PASSWORD_KEY = "password_key";
+ private String passwordKey;
+
+ public static final String JSON_PROPERTY_USERNAME_KEY = "username_key";
+ private String usernameKey;
+
public ObservabilityPipelineKafkaSasl mechanism(
ObservabilityPipelineKafkaSaslMechanism mechanism) {
this.mechanism = mechanism;
@@ -51,6 +61,48 @@ public void setMechanism(ObservabilityPipelineKafkaSaslMechanism mechanism) {
this.mechanism = mechanism;
}
+ public ObservabilityPipelineKafkaSasl passwordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the SASL password.
+ *
+ * @return passwordKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PASSWORD_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPasswordKey() {
+ return passwordKey;
+ }
+
+ public void setPasswordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ }
+
+ public ObservabilityPipelineKafkaSasl usernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the SASL username.
+ *
+ * @return usernameKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_USERNAME_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getUsernameKey() {
+ return usernameKey;
+ }
+
+ public void setUsernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -109,13 +161,15 @@ public boolean equals(Object o) {
ObservabilityPipelineKafkaSasl observabilityPipelineKafkaSasl =
(ObservabilityPipelineKafkaSasl) o;
return Objects.equals(this.mechanism, observabilityPipelineKafkaSasl.mechanism)
+ && Objects.equals(this.passwordKey, observabilityPipelineKafkaSasl.passwordKey)
+ && Objects.equals(this.usernameKey, observabilityPipelineKafkaSasl.usernameKey)
&& Objects.equals(
this.additionalProperties, observabilityPipelineKafkaSasl.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(mechanism, additionalProperties);
+ return Objects.hash(mechanism, passwordKey, usernameKey, additionalProperties);
}
@Override
@@ -123,6 +177,8 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineKafkaSasl {\n");
sb.append(" mechanism: ").append(toIndentedString(mechanism)).append("\n");
+ sb.append(" passwordKey: ").append(toIndentedString(passwordKey)).append("\n");
+ sb.append(" usernameKey: ").append(toIndentedString(usernameKey)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSource.java
index 801bfbe54e5..e9c7fd88e9c 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaSource.java
@@ -25,6 +25,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineKafkaSource.JSON_PROPERTY_BOOTSTRAP_SERVERS_KEY,
ObservabilityPipelineKafkaSource.JSON_PROPERTY_GROUP_ID,
ObservabilityPipelineKafkaSource.JSON_PROPERTY_ID,
ObservabilityPipelineKafkaSource.JSON_PROPERTY_LIBRDKAFKA_OPTIONS,
@@ -37,6 +38,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineKafkaSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_BOOTSTRAP_SERVERS_KEY = "bootstrap_servers_key";
+ private String bootstrapServersKey;
+
public static final String JSON_PROPERTY_GROUP_ID = "group_id";
private String groupId;
@@ -74,6 +78,27 @@ public ObservabilityPipelineKafkaSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineKafkaSource bootstrapServersKey(String bootstrapServersKey) {
+ this.bootstrapServersKey = bootstrapServersKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Kafka bootstrap servers list.
+ *
+ * @return bootstrapServersKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_BOOTSTRAP_SERVERS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getBootstrapServersKey() {
+ return bootstrapServersKey;
+ }
+
+ public void setBootstrapServersKey(String bootstrapServersKey) {
+ this.bootstrapServersKey = bootstrapServersKey;
+ }
+
public ObservabilityPipelineKafkaSource groupId(String groupId) {
this.groupId = groupId;
return this;
@@ -302,7 +327,9 @@ public boolean equals(Object o) {
}
ObservabilityPipelineKafkaSource observabilityPipelineKafkaSource =
(ObservabilityPipelineKafkaSource) o;
- return Objects.equals(this.groupId, observabilityPipelineKafkaSource.groupId)
+ return Objects.equals(
+ this.bootstrapServersKey, observabilityPipelineKafkaSource.bootstrapServersKey)
+ && Objects.equals(this.groupId, observabilityPipelineKafkaSource.groupId)
&& Objects.equals(this.id, observabilityPipelineKafkaSource.id)
&& Objects.equals(
this.librdkafkaOptions, observabilityPipelineKafkaSource.librdkafkaOptions)
@@ -317,13 +344,24 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- groupId, id, librdkafkaOptions, sasl, tls, topics, type, additionalProperties);
+ bootstrapServersKey,
+ groupId,
+ id,
+ librdkafkaOptions,
+ sasl,
+ tls,
+ topics,
+ type,
+ additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineKafkaSource {\n");
+ sb.append(" bootstrapServersKey: ")
+ .append(toIndentedString(bootstrapServersKey))
+ .append("\n");
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" librdkafkaOptions: ").append(toIndentedString(librdkafkaOptions)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineLogstashSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineLogstashSource.java
index 616f0c262dc..b503f259cdb 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineLogstashSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineLogstashSource.java
@@ -23,6 +23,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineLogstashSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineLogstashSource.JSON_PROPERTY_ID,
ObservabilityPipelineLogstashSource.JSON_PROPERTY_TLS,
ObservabilityPipelineLogstashSource.JSON_PROPERTY_TYPE
@@ -31,6 +32,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineLogstashSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -53,6 +57,28 @@ public ObservabilityPipelineLogstashSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineLogstashSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the Logstash
+ * receiver.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineLogstashSource id(String id) {
this.id = id;
return this;
@@ -177,7 +203,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineLogstashSource observabilityPipelineLogstashSource =
(ObservabilityPipelineLogstashSource) o;
- return Objects.equals(this.id, observabilityPipelineLogstashSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineLogstashSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineLogstashSource.id)
&& Objects.equals(this.tls, observabilityPipelineLogstashSource.tls)
&& Objects.equals(this.type, observabilityPipelineLogstashSource.type)
&& Objects.equals(
@@ -186,13 +213,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, tls, type, additionalProperties);
+ return Objects.hash(addressKey, id, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineLogstashSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java
index f85076f201b..8b90a1a8db1 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineNewRelicDestination.java
@@ -25,9 +25,11 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_ACCOUNT_ID_KEY,
ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_ID,
ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_INPUTS,
+ ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_LICENSE_KEY_KEY,
ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_REGION,
ObservabilityPipelineNewRelicDestination.JSON_PROPERTY_TYPE
})
@@ -35,6 +37,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineNewRelicDestination {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ACCOUNT_ID_KEY = "account_id_key";
+ private String accountIdKey;
+
public static final String JSON_PROPERTY_BUFFER = "buffer";
private ObservabilityPipelineBufferOptions buffer;
@@ -44,6 +49,9 @@ public class ObservabilityPipelineNewRelicDestination {
public static final String JSON_PROPERTY_INPUTS = "inputs";
private List Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_AUTH,
ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_BULK_INDEX,
ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_DATA_STREAM,
+ ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_ID,
ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineOpenSearchDestination.JSON_PROPERTY_TYPE
@@ -36,6 +38,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineOpenSearchDestination {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_AUTH = "auth";
+ private ObservabilityPipelineElasticsearchDestinationAuth auth;
+
public static final String JSON_PROPERTY_BUFFER = "buffer";
private ObservabilityPipelineBufferOptions buffer;
@@ -45,6 +50,9 @@ public class ObservabilityPipelineOpenSearchDestination {
public static final String JSON_PROPERTY_DATA_STREAM = "data_stream";
private ObservabilityPipelineOpenSearchDestinationDataStream dataStream;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -69,6 +77,31 @@ public ObservabilityPipelineOpenSearchDestination(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineOpenSearchDestination auth(
+ ObservabilityPipelineElasticsearchDestinationAuth auth) {
+ this.auth = auth;
+ this.unparsed |= auth.unparsed;
+ return this;
+ }
+
+ /**
+ * Authentication settings for the Elasticsearch destination. When Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineRsyslogSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineRsyslogSource.JSON_PROPERTY_ID,
ObservabilityPipelineRsyslogSource.JSON_PROPERTY_MODE,
ObservabilityPipelineRsyslogSource.JSON_PROPERTY_TLS,
@@ -33,6 +34,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineRsyslogSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -62,6 +66,28 @@ public ObservabilityPipelineRsyslogSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineRsyslogSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the syslog
+ * receiver.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineRsyslogSource id(String id) {
this.id = id;
return this;
@@ -210,7 +236,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineRsyslogSource observabilityPipelineRsyslogSource =
(ObservabilityPipelineRsyslogSource) o;
- return Objects.equals(this.id, observabilityPipelineRsyslogSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineRsyslogSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineRsyslogSource.id)
&& Objects.equals(this.mode, observabilityPipelineRsyslogSource.mode)
&& Objects.equals(this.tls, observabilityPipelineRsyslogSource.tls)
&& Objects.equals(this.type, observabilityPipelineRsyslogSource.type)
@@ -220,13 +247,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, mode, tls, type, additionalProperties);
+ return Objects.hash(addressKey, id, mode, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineRsyslogSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" mode: ").append(toIndentedString(mode)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java
index e4d54b1f230..385313b14ff 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSentinelOneDestination.java
@@ -29,6 +29,7 @@
ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_ID,
ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_REGION,
+ ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_TOKEN_KEY,
ObservabilityPipelineSentinelOneDestination.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
@@ -47,6 +48,9 @@ public class ObservabilityPipelineSentinelOneDestination {
public static final String JSON_PROPERTY_REGION = "region";
private ObservabilityPipelineSentinelOneDestinationRegion region;
+ public static final String JSON_PROPERTY_TOKEN_KEY = "token_key";
+ private String tokenKey;
+
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineSentinelOneDestinationType type =
ObservabilityPipelineSentinelOneDestinationType.SENTINEL_ONE;
@@ -162,6 +166,27 @@ public void setRegion(ObservabilityPipelineSentinelOneDestinationRegion region)
this.region = region;
}
+ public ObservabilityPipelineSentinelOneDestination tokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the SentinelOne API token.
+ *
+ * @return tokenKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TOKEN_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTokenKey() {
+ return tokenKey;
+ }
+
+ public void setTokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ }
+
public ObservabilityPipelineSentinelOneDestination type(
ObservabilityPipelineSentinelOneDestinationType type) {
this.type = type;
@@ -249,6 +274,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.id, observabilityPipelineSentinelOneDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineSentinelOneDestination.inputs)
&& Objects.equals(this.region, observabilityPipelineSentinelOneDestination.region)
+ && Objects.equals(this.tokenKey, observabilityPipelineSentinelOneDestination.tokenKey)
&& Objects.equals(this.type, observabilityPipelineSentinelOneDestination.type)
&& Objects.equals(
this.additionalProperties,
@@ -257,7 +283,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(buffer, id, inputs, region, type, additionalProperties);
+ return Objects.hash(buffer, id, inputs, region, tokenKey, type, additionalProperties);
}
@Override
@@ -268,6 +294,7 @@ public String toString() {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
+ sb.append(" tokenKey: ").append(toIndentedString(tokenKey)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java
index 448c0650efa..d1b33ede629 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketDestination.java
@@ -25,6 +25,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineSocketDestination.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineSocketDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineSocketDestination.JSON_PROPERTY_ENCODING,
ObservabilityPipelineSocketDestination.JSON_PROPERTY_FRAMING,
@@ -38,6 +39,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSocketDestination {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_BUFFER = "buffer";
private ObservabilityPipelineBufferOptions buffer;
@@ -89,6 +93,27 @@ public ObservabilityPipelineSocketDestination(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineSocketDestination addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the socket address (host:port).
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineSocketDestination buffer(ObservabilityPipelineBufferOptions buffer) {
this.buffer = buffer;
this.unparsed |= buffer.unparsed;
@@ -332,7 +357,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineSocketDestination observabilityPipelineSocketDestination =
(ObservabilityPipelineSocketDestination) o;
- return Objects.equals(this.buffer, observabilityPipelineSocketDestination.buffer)
+ return Objects.equals(this.addressKey, observabilityPipelineSocketDestination.addressKey)
+ && Objects.equals(this.buffer, observabilityPipelineSocketDestination.buffer)
&& Objects.equals(this.encoding, observabilityPipelineSocketDestination.encoding)
&& Objects.equals(this.framing, observabilityPipelineSocketDestination.framing)
&& Objects.equals(this.id, observabilityPipelineSocketDestination.id)
@@ -347,13 +373,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- buffer, encoding, framing, id, inputs, mode, tls, type, additionalProperties);
+ addressKey, buffer, encoding, framing, id, inputs, mode, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineSocketDestination {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
sb.append(" framing: ").append(toIndentedString(framing)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketSource.java
index 31e2258dd4e..1ba508554c2 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSocketSource.java
@@ -23,6 +23,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineSocketSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineSocketSource.JSON_PROPERTY_FRAMING,
ObservabilityPipelineSocketSource.JSON_PROPERTY_ID,
ObservabilityPipelineSocketSource.JSON_PROPERTY_MODE,
@@ -33,6 +34,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSocketSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_FRAMING = "framing";
private ObservabilityPipelineSocketSourceFraming framing;
@@ -68,6 +72,27 @@ public ObservabilityPipelineSocketSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineSocketSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the socket.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineSocketSource framing(
ObservabilityPipelineSocketSourceFraming framing) {
this.framing = framing;
@@ -238,7 +263,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineSocketSource observabilityPipelineSocketSource =
(ObservabilityPipelineSocketSource) o;
- return Objects.equals(this.framing, observabilityPipelineSocketSource.framing)
+ return Objects.equals(this.addressKey, observabilityPipelineSocketSource.addressKey)
+ && Objects.equals(this.framing, observabilityPipelineSocketSource.framing)
&& Objects.equals(this.id, observabilityPipelineSocketSource.id)
&& Objects.equals(this.mode, observabilityPipelineSocketSource.mode)
&& Objects.equals(this.tls, observabilityPipelineSocketSource.tls)
@@ -249,13 +275,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(framing, id, mode, tls, type, additionalProperties);
+ return Objects.hash(addressKey, framing, id, mode, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineSocketSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" framing: ").append(toIndentedString(framing)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" mode: ").append(toIndentedString(mode)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java
index a5291e3aef9..57a812dc19a 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecDestination.java
@@ -29,10 +29,12 @@
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_AUTO_EXTRACT_TIMESTAMP,
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_ENCODING,
+ ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_ID,
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_INDEX,
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_SOURCETYPE,
+ ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_TOKEN_KEY,
ObservabilityPipelineSplunkHecDestination.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
@@ -48,6 +50,9 @@ public class ObservabilityPipelineSplunkHecDestination {
public static final String JSON_PROPERTY_ENCODING = "encoding";
private ObservabilityPipelineSplunkHecDestinationEncoding encoding;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -60,6 +65,9 @@ public class ObservabilityPipelineSplunkHecDestination {
public static final String JSON_PROPERTY_SOURCETYPE = "sourcetype";
private String sourcetype;
+ public static final String JSON_PROPERTY_TOKEN_KEY = "token_key";
+ private String tokenKey;
+
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineSplunkHecDestinationType type =
ObservabilityPipelineSplunkHecDestinationType.SPLUNK_HEC;
@@ -150,6 +158,27 @@ public void setEncoding(ObservabilityPipelineSplunkHecDestinationEncoding encodi
this.encoding = encoding;
}
+ public ObservabilityPipelineSplunkHecDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Splunk HEC endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineSplunkHecDestination id(String id) {
this.id = id;
return this;
@@ -238,6 +267,27 @@ public void setSourcetype(String sourcetype) {
this.sourcetype = sourcetype;
}
+ public ObservabilityPipelineSplunkHecDestination tokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Splunk HEC token.
+ *
+ * @return tokenKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TOKEN_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTokenKey() {
+ return tokenKey;
+ }
+
+ public void setTokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ }
+
public ObservabilityPipelineSplunkHecDestination type(
ObservabilityPipelineSplunkHecDestinationType type) {
this.type = type;
@@ -325,10 +375,13 @@ public boolean equals(Object o) {
observabilityPipelineSplunkHecDestination.autoExtractTimestamp)
&& Objects.equals(this.buffer, observabilityPipelineSplunkHecDestination.buffer)
&& Objects.equals(this.encoding, observabilityPipelineSplunkHecDestination.encoding)
+ && Objects.equals(
+ this.endpointUrlKey, observabilityPipelineSplunkHecDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineSplunkHecDestination.id)
&& Objects.equals(this.index, observabilityPipelineSplunkHecDestination.index)
&& Objects.equals(this.inputs, observabilityPipelineSplunkHecDestination.inputs)
&& Objects.equals(this.sourcetype, observabilityPipelineSplunkHecDestination.sourcetype)
+ && Objects.equals(this.tokenKey, observabilityPipelineSplunkHecDestination.tokenKey)
&& Objects.equals(this.type, observabilityPipelineSplunkHecDestination.type)
&& Objects.equals(
this.additionalProperties,
@@ -341,10 +394,12 @@ public int hashCode() {
autoExtractTimestamp,
buffer,
encoding,
+ endpointUrlKey,
id,
index,
inputs,
sourcetype,
+ tokenKey,
type,
additionalProperties);
}
@@ -358,10 +413,12 @@ public String toString() {
.append("\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" index: ").append(toIndentedString(index)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" sourcetype: ").append(toIndentedString(sourcetype)).append("\n");
+ sb.append(" tokenKey: ").append(toIndentedString(tokenKey)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java
index 904623079e1..0a6ea0d873b 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkHecSource.java
@@ -23,6 +23,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineSplunkHecSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineSplunkHecSource.JSON_PROPERTY_ID,
ObservabilityPipelineSplunkHecSource.JSON_PROPERTY_TLS,
ObservabilityPipelineSplunkHecSource.JSON_PROPERTY_TYPE
@@ -31,6 +32,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSplunkHecSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -53,6 +57,27 @@ public ObservabilityPipelineSplunkHecSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineSplunkHecSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the HEC API.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineSplunkHecSource id(String id) {
this.id = id;
return this;
@@ -177,7 +202,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineSplunkHecSource observabilityPipelineSplunkHecSource =
(ObservabilityPipelineSplunkHecSource) o;
- return Objects.equals(this.id, observabilityPipelineSplunkHecSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineSplunkHecSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineSplunkHecSource.id)
&& Objects.equals(this.tls, observabilityPipelineSplunkHecSource.tls)
&& Objects.equals(this.type, observabilityPipelineSplunkHecSource.type)
&& Objects.equals(
@@ -186,13 +212,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, tls, type, additionalProperties);
+ return Objects.hash(addressKey, id, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineSplunkHecSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java
index 12a8ad9466a..4d5a97668fc 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSplunkTcpSource.java
@@ -24,6 +24,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineSplunkTcpSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineSplunkTcpSource.JSON_PROPERTY_ID,
ObservabilityPipelineSplunkTcpSource.JSON_PROPERTY_TLS,
ObservabilityPipelineSplunkTcpSource.JSON_PROPERTY_TYPE
@@ -32,6 +33,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSplunkTcpSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -54,6 +58,28 @@ public ObservabilityPipelineSplunkTcpSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineSplunkTcpSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the Splunk TCP
+ * receiver.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineSplunkTcpSource id(String id) {
this.id = id;
return this;
@@ -178,7 +204,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineSplunkTcpSource observabilityPipelineSplunkTcpSource =
(ObservabilityPipelineSplunkTcpSource) o;
- return Objects.equals(this.id, observabilityPipelineSplunkTcpSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineSplunkTcpSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineSplunkTcpSource.id)
&& Objects.equals(this.tls, observabilityPipelineSplunkTcpSource.tls)
&& Objects.equals(this.type, observabilityPipelineSplunkTcpSource.type)
&& Objects.equals(
@@ -187,13 +214,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, tls, type, additionalProperties);
+ return Objects.hash(addressKey, id, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineSplunkTcpSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java
index ac19f6555da..083a34c4c35 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSumoLogicDestination.java
@@ -27,6 +27,7 @@
@JsonPropertyOrder({
ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_BUFFER,
ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_ENCODING,
+ ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_HEADER_CUSTOM_FIELDS,
ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_HEADER_HOST_NAME,
ObservabilityPipelineSumoLogicDestination.JSON_PROPERTY_HEADER_SOURCE_CATEGORY,
@@ -45,6 +46,9 @@ public class ObservabilityPipelineSumoLogicDestination {
public static final String JSON_PROPERTY_ENCODING = "encoding";
private ObservabilityPipelineSumoLogicDestinationEncoding encoding;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_HEADER_CUSTOM_FIELDS = "header_custom_fields";
private List Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineSumoLogicSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineSumoLogicSource.JSON_PROPERTY_ID,
ObservabilityPipelineSumoLogicSource.JSON_PROPERTY_TYPE
})
@@ -30,6 +31,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSumoLogicSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -49,6 +53,28 @@ public ObservabilityPipelineSumoLogicSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineSumoLogicSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the Sumo Logic
+ * receiver.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineSumoLogicSource id(String id) {
this.id = id;
return this;
@@ -151,7 +177,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineSumoLogicSource observabilityPipelineSumoLogicSource =
(ObservabilityPipelineSumoLogicSource) o;
- return Objects.equals(this.id, observabilityPipelineSumoLogicSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineSumoLogicSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineSumoLogicSource.id)
&& Objects.equals(this.type, observabilityPipelineSumoLogicSource.type)
&& Objects.equals(
this.additionalProperties, observabilityPipelineSumoLogicSource.additionalProperties);
@@ -159,13 +186,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, type, additionalProperties);
+ return Objects.hash(addressKey, id, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineSumoLogicSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java
index 8408e05ff91..9d568009af9 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgDestination.java
@@ -27,6 +27,7 @@
*/
@JsonPropertyOrder({
ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_BUFFER,
+ ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_ID,
ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineSyslogNgDestination.JSON_PROPERTY_KEEPALIVE,
@@ -40,6 +41,9 @@ public class ObservabilityPipelineSyslogNgDestination {
public static final String JSON_PROPERTY_BUFFER = "buffer";
private ObservabilityPipelineBufferOptions buffer;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -93,6 +97,27 @@ public void setBuffer(ObservabilityPipelineBufferOptions buffer) {
this.buffer = buffer;
}
+ public ObservabilityPipelineSyslogNgDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the syslog-ng server endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineSyslogNgDestination id(String id) {
this.id = id;
return this;
@@ -264,6 +289,8 @@ public boolean equals(Object o) {
ObservabilityPipelineSyslogNgDestination observabilityPipelineSyslogNgDestination =
(ObservabilityPipelineSyslogNgDestination) o;
return Objects.equals(this.buffer, observabilityPipelineSyslogNgDestination.buffer)
+ && Objects.equals(
+ this.endpointUrlKey, observabilityPipelineSyslogNgDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineSyslogNgDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineSyslogNgDestination.inputs)
&& Objects.equals(this.keepalive, observabilityPipelineSyslogNgDestination.keepalive)
@@ -276,7 +303,8 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(buffer, id, inputs, keepalive, tls, type, additionalProperties);
+ return Objects.hash(
+ buffer, endpointUrlKey, id, inputs, keepalive, tls, type, additionalProperties);
}
@Override
@@ -284,6 +312,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineSyslogNgDestination {\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" keepalive: ").append(toIndentedString(keepalive)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgSource.java
index ef369d949ee..a554be06d41 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineSyslogNgSource.java
@@ -24,6 +24,7 @@
* Supported pipeline types: logs
*/
@JsonPropertyOrder({
+ ObservabilityPipelineSyslogNgSource.JSON_PROPERTY_ADDRESS_KEY,
ObservabilityPipelineSyslogNgSource.JSON_PROPERTY_ID,
ObservabilityPipelineSyslogNgSource.JSON_PROPERTY_MODE,
ObservabilityPipelineSyslogNgSource.JSON_PROPERTY_TLS,
@@ -33,6 +34,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineSyslogNgSource {
@JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key";
+ private String addressKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -62,6 +66,28 @@ public ObservabilityPipelineSyslogNgSource(
this.unparsed |= !type.isValid();
}
+ public ObservabilityPipelineSyslogNgSource addressKey(String addressKey) {
+ this.addressKey = addressKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the listen address for the syslog-ng
+ * receiver.
+ *
+ * @return addressKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ADDRESS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getAddressKey() {
+ return addressKey;
+ }
+
+ public void setAddressKey(String addressKey) {
+ this.addressKey = addressKey;
+ }
+
public ObservabilityPipelineSyslogNgSource id(String id) {
this.id = id;
return this;
@@ -210,7 +236,8 @@ public boolean equals(Object o) {
}
ObservabilityPipelineSyslogNgSource observabilityPipelineSyslogNgSource =
(ObservabilityPipelineSyslogNgSource) o;
- return Objects.equals(this.id, observabilityPipelineSyslogNgSource.id)
+ return Objects.equals(this.addressKey, observabilityPipelineSyslogNgSource.addressKey)
+ && Objects.equals(this.id, observabilityPipelineSyslogNgSource.id)
&& Objects.equals(this.mode, observabilityPipelineSyslogNgSource.mode)
&& Objects.equals(this.tls, observabilityPipelineSyslogNgSource.tls)
&& Objects.equals(this.type, observabilityPipelineSyslogNgSource.type)
@@ -220,13 +247,14 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(id, mode, tls, type, additionalProperties);
+ return Objects.hash(addressKey, id, mode, tls, type, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineSyslogNgSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" mode: ").append(toIndentedString(mode)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineTls.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineTls.java
index 1c68391dd39..29c152c6026 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineTls.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineTls.java
@@ -23,7 +23,8 @@
@JsonPropertyOrder({
ObservabilityPipelineTls.JSON_PROPERTY_CA_FILE,
ObservabilityPipelineTls.JSON_PROPERTY_CRT_FILE,
- ObservabilityPipelineTls.JSON_PROPERTY_KEY_FILE
+ ObservabilityPipelineTls.JSON_PROPERTY_KEY_FILE,
+ ObservabilityPipelineTls.JSON_PROPERTY_KEY_PASS_KEY
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -38,6 +39,9 @@ public class ObservabilityPipelineTls {
public static final String JSON_PROPERTY_KEY_FILE = "key_file";
private String keyFile;
+ public static final String JSON_PROPERTY_KEY_PASS_KEY = "key_pass_key";
+ private String keyPassKey;
+
public ObservabilityPipelineTls() {}
@JsonCreator
@@ -110,6 +114,27 @@ public void setKeyFile(String keyFile) {
this.keyFile = keyFile;
}
+ public ObservabilityPipelineTls keyPassKey(String keyPassKey) {
+ this.keyPassKey = keyPassKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the passphrase for the private key file.
+ *
+ * @return keyPassKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_KEY_PASS_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getKeyPassKey() {
+ return keyPassKey;
+ }
+
+ public void setKeyPassKey(String keyPassKey) {
+ this.keyPassKey = keyPassKey;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -169,12 +194,13 @@ public boolean equals(Object o) {
return Objects.equals(this.caFile, observabilityPipelineTls.caFile)
&& Objects.equals(this.crtFile, observabilityPipelineTls.crtFile)
&& Objects.equals(this.keyFile, observabilityPipelineTls.keyFile)
+ && Objects.equals(this.keyPassKey, observabilityPipelineTls.keyPassKey)
&& Objects.equals(this.additionalProperties, observabilityPipelineTls.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(caFile, crtFile, keyFile, additionalProperties);
+ return Objects.hash(caFile, crtFile, keyFile, keyPassKey, additionalProperties);
}
@Override
@@ -184,6 +210,7 @@ public String toString() {
sb.append(" caFile: ").append(toIndentedString(caFile)).append("\n");
sb.append(" crtFile: ").append(toIndentedString(crtFile)).append("\n");
sb.append(" keyFile: ").append(toIndentedString(keyFile)).append("\n");
+ sb.append(" keyPassKey: ").append(toIndentedString(keyPassKey)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_destination_secret_key_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_destination_secret_key_returns_OK_response.freeze
new file mode 100644
index 00000000000..ef9137f979c
--- /dev/null
+++ b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_destination_secret_key_returns_OK_response.freeze
@@ -0,0 +1 @@
+2026-02-20T14:42:05.988Z
\ No newline at end of file
diff --git a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_destination_secret_key_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_destination_secret_key_returns_OK_response.json
new file mode 100644
index 00000000000..fb85028d578
--- /dev/null
+++ b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_destination_secret_key_returns_OK_response.json
@@ -0,0 +1,32 @@
+[
+ {
+ "httpRequest": {
+ "body": {
+ "type": "JSON",
+ "json": "{\"data\":{\"attributes\":{\"config\":{\"destinations\":[{\"endpoint_url_key\":\"SUMO_LOGIC_ENDPOINT_URL\",\"id\":\"sumo-logic-destination\",\"inputs\":[\"my-processor-group\"],\"type\":\"sumo_logic\"}],\"processor_groups\":[{\"enabled\":true,\"id\":\"my-processor-group\",\"include\":\"service:my-service\",\"inputs\":[\"datadog-agent-source\"],\"processors\":[{\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"id\":\"datadog-agent-source\",\"type\":\"datadog_agent\"}]},\"name\":\"Pipeline with Secret Key\"},\"type\":\"pipelines\"}}"
+ },
+ "headers": {},
+ "method": "POST",
+ "path": "/api/v2/obs-pipelines/pipelines/validate",
+ "keepAlive": false,
+ "secure": true
+ },
+ "httpResponse": {
+ "body": "{\"errors\":[]}\n",
+ "headers": {
+ "Content-Type": [
+ "application/vnd.api+json"
+ ]
+ },
+ "statusCode": 200,
+ "reasonPhrase": "OK"
+ },
+ "times": {
+ "remainingTimes": 1
+ },
+ "timeToLive": {
+ "unlimited": true
+ },
+ "id": "c01ed704-2c1e-ca7e-b270-9abf07f54e60"
+ }
+]
\ No newline at end of file
diff --git a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_source_secret_key_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_source_secret_key_returns_OK_response.freeze
new file mode 100644
index 00000000000..5e68c128ac4
--- /dev/null
+++ b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_source_secret_key_returns_OK_response.freeze
@@ -0,0 +1 @@
+2026-02-20T14:42:32.372Z
\ No newline at end of file
diff --git a/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_source_secret_key_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_source_secret_key_returns_OK_response.json
new file mode 100644
index 00000000000..b491c8ec6cd
--- /dev/null
+++ b/src/test/resources/cassettes/features/v2/Validate_an_observability_pipeline_with_source_secret_key_returns_OK_response.json
@@ -0,0 +1,32 @@
+[
+ {
+ "httpRequest": {
+ "body": {
+ "type": "JSON",
+ "json": "{\"data\":{\"attributes\":{\"config\":{\"destinations\":[{\"id\":\"datadog-logs-destination\",\"inputs\":[\"my-processor-group\"],\"type\":\"datadog_logs\"}],\"processor_groups\":[{\"enabled\":true,\"id\":\"my-processor-group\",\"include\":\"service:my-service\",\"inputs\":[\"http-client-source\"],\"processors\":[{\"enabled\":true,\"id\":\"filter-processor\",\"include\":\"status:error\",\"type\":\"filter\"}]}],\"sources\":[{\"auth_strategy\":\"bearer\",\"decoding\":\"bytes\",\"id\":\"http-client-source\",\"scrape_interval_secs\":15,\"scrape_timeout_secs\":5,\"token_key\":\"HTTP_CLIENT_TOKEN\",\"type\":\"http_client\"}]},\"name\":\"Pipeline with Source Secret\"},\"type\":\"pipelines\"}}"
+ },
+ "headers": {},
+ "method": "POST",
+ "path": "/api/v2/obs-pipelines/pipelines/validate",
+ "keepAlive": false,
+ "secure": true
+ },
+ "httpResponse": {
+ "body": "{\"errors\":[]}\n",
+ "headers": {
+ "Content-Type": [
+ "application/vnd.api+json"
+ ]
+ },
+ "statusCode": 200,
+ "reasonPhrase": "OK"
+ },
+ "times": {
+ "remainingTimes": 1
+ },
+ "timeToLive": {
+ "unlimited": true
+ },
+ "id": "abf3ef3d-218b-ce08-cf81-f3126665181b"
+ }
+]
\ No newline at end of file
diff --git a/src/test/resources/com/datadog/api/client/v2/api/observability_pipelines.feature b/src/test/resources/com/datadog/api/client/v2/api/observability_pipelines.feature
index b5c68576805..bf90c06c139 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/observability_pipelines.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/observability_pipelines.feature
@@ -190,3 +190,19 @@ Feature: Observability Pipelines
When the request is sent
Then the response status is 200 OK
And the response "errors" has length 0
+
+ @team:DataDog/observability-pipelines
+ Scenario: Validate an observability pipeline with destination secret key returns "OK" response
+ Given new "ValidatePipeline" request
+ And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "sumo-logic-destination", "inputs": ["my-processor-group"], "type": "sumo_logic", "endpoint_url_key": "SUMO_LOGIC_ENDPOINT_URL"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Pipeline with Secret Key"}, "type": "pipelines"}}
+ When the request is sent
+ Then the response status is 200 OK
+ And the response "errors" has length 0
+
+ @team:DataDog/observability-pipelines
+ Scenario: Validate an observability pipeline with source secret key returns "OK" response
+ Given new "ValidatePipeline" request
+ And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["http-client-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "http-client-source", "type": "http_client", "decoding": "bytes", "scrape_interval_secs": 15, "scrape_timeout_secs": 5, "auth_strategy": "bearer", "token_key": "HTTP_CLIENT_TOKEN"}]}, "name": "Pipeline with Source Secret"}, "type": "pipelines"}}
+ When the request is sent
+ Then the response status is 200 OK
+ And the response "errors" has length 0
strategy is
+ * basic, use username_key and password_key to reference
+ * credentials stored in environment variables or secrets.
+ *
+ * @return auth
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_AUTH)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ObservabilityPipelineElasticsearchDestinationAuth getAuth() {
+ return auth;
+ }
+
+ public void setAuth(ObservabilityPipelineElasticsearchDestinationAuth auth) {
+ this.auth = auth;
+ }
+
public ObservabilityPipelineElasticsearchDestination buffer(
ObservabilityPipelineBufferOptions buffer) {
this.buffer = buffer;
@@ -166,6 +199,27 @@ public void setDataStream(ObservabilityPipelineElasticsearchDestinationDataStrea
this.dataStream = dataStream;
}
+ public ObservabilityPipelineElasticsearchDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Elasticsearch endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineElasticsearchDestination id(String id) {
this.id = id;
return this;
@@ -295,9 +349,12 @@ public boolean equals(Object o) {
ObservabilityPipelineElasticsearchDestination observabilityPipelineElasticsearchDestination =
(ObservabilityPipelineElasticsearchDestination) o;
return Objects.equals(this.apiVersion, observabilityPipelineElasticsearchDestination.apiVersion)
+ && Objects.equals(this.auth, observabilityPipelineElasticsearchDestination.auth)
&& Objects.equals(this.buffer, observabilityPipelineElasticsearchDestination.buffer)
&& Objects.equals(this.bulkIndex, observabilityPipelineElasticsearchDestination.bulkIndex)
&& Objects.equals(this.dataStream, observabilityPipelineElasticsearchDestination.dataStream)
+ && Objects.equals(
+ this.endpointUrlKey, observabilityPipelineElasticsearchDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineElasticsearchDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineElasticsearchDestination.inputs)
&& Objects.equals(this.type, observabilityPipelineElasticsearchDestination.type)
@@ -309,7 +366,16 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- apiVersion, buffer, bulkIndex, dataStream, id, inputs, type, additionalProperties);
+ apiVersion,
+ auth,
+ buffer,
+ bulkIndex,
+ dataStream,
+ endpointUrlKey,
+ id,
+ inputs,
+ type,
+ additionalProperties);
}
@Override
@@ -317,9 +383,11 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineElasticsearchDestination {\n");
sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n");
+ sb.append(" auth: ").append(toIndentedString(auth)).append("\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" bulkIndex: ").append(toIndentedString(bulkIndex)).append("\n");
sb.append(" dataStream: ").append(toIndentedString(dataStream)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestinationAuth.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestinationAuth.java
new file mode 100644
index 00000000000..ae1fe8a5db8
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineElasticsearchDestinationAuth.java
@@ -0,0 +1,219 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/**
+ * Authentication settings for the Elasticsearch destination. When strategy is
+ * basic, use username_key and password_key to reference
+ * credentials stored in environment variables or secrets.
+ */
+@JsonPropertyOrder({
+ ObservabilityPipelineElasticsearchDestinationAuth.JSON_PROPERTY_PASSWORD_KEY,
+ ObservabilityPipelineElasticsearchDestinationAuth.JSON_PROPERTY_STRATEGY,
+ ObservabilityPipelineElasticsearchDestinationAuth.JSON_PROPERTY_USERNAME_KEY
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class ObservabilityPipelineElasticsearchDestinationAuth {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_PASSWORD_KEY = "password_key";
+ private String passwordKey;
+
+ public static final String JSON_PROPERTY_STRATEGY = "strategy";
+ private ObservabilityPipelineAmazonOpenSearchDestinationAuthStrategy strategy;
+
+ public static final String JSON_PROPERTY_USERNAME_KEY = "username_key";
+ private String usernameKey;
+
+ public ObservabilityPipelineElasticsearchDestinationAuth() {}
+
+ @JsonCreator
+ public ObservabilityPipelineElasticsearchDestinationAuth(
+ @JsonProperty(required = true, value = JSON_PROPERTY_STRATEGY)
+ ObservabilityPipelineAmazonOpenSearchDestinationAuthStrategy strategy) {
+ this.strategy = strategy;
+ this.unparsed |= !strategy.isValid();
+ }
+
+ public ObservabilityPipelineElasticsearchDestinationAuth passwordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Elasticsearch password (used when
+ * strategy is basic).
+ *
+ * @return passwordKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PASSWORD_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPasswordKey() {
+ return passwordKey;
+ }
+
+ public void setPasswordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ }
+
+ public ObservabilityPipelineElasticsearchDestinationAuth strategy(
+ ObservabilityPipelineAmazonOpenSearchDestinationAuthStrategy strategy) {
+ this.strategy = strategy;
+ this.unparsed |= !strategy.isValid();
+ return this;
+ }
+
+ /**
+ * The authentication strategy to use.
+ *
+ * @return strategy
+ */
+ @JsonProperty(JSON_PROPERTY_STRATEGY)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public ObservabilityPipelineAmazonOpenSearchDestinationAuthStrategy getStrategy() {
+ return strategy;
+ }
+
+ public void setStrategy(ObservabilityPipelineAmazonOpenSearchDestinationAuthStrategy strategy) {
+ if (!strategy.isValid()) {
+ this.unparsed = true;
+ }
+ this.strategy = strategy;
+ }
+
+ public ObservabilityPipelineElasticsearchDestinationAuth usernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the Elasticsearch username (used when
+ * strategy is basic).
+ *
+ * @return usernameKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_USERNAME_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getUsernameKey() {
+ return usernameKey;
+ }
+
+ public void setUsernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Mapgoogle_cloud_storage destination stores logs in a Google Cloud Storage (GCS)
- * bucket. It requires a bucket name, GCP authentication, and metadata fields.
+ * bucket. It requires a bucket name, Google Cloud authentication, and metadata fields.
*
*
+ * auth_strategy is basic).
+ *
+ * @return passwordKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PASSWORD_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPasswordKey() {
+ return passwordKey;
+ }
+
+ public void setPasswordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ }
+
public ObservabilityPipelineHttpClientDestination tls(ObservabilityPipelineTls tls) {
this.tls = tls;
this.unparsed |= tls.unparsed;
@@ -218,6 +282,28 @@ public void setTls(ObservabilityPipelineTls tls) {
this.tls = tls;
}
+ public ObservabilityPipelineHttpClientDestination tokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the bearer token (used when
+ * auth_strategy is bearer).
+ *
+ * @return tokenKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TOKEN_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTokenKey() {
+ return tokenKey;
+ }
+
+ public void setTokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ }
+
public ObservabilityPipelineHttpClientDestination type(
ObservabilityPipelineHttpClientDestinationType type) {
this.type = type;
@@ -243,6 +329,49 @@ public void setType(ObservabilityPipelineHttpClientDestinationType type) {
this.type = type;
}
+ public ObservabilityPipelineHttpClientDestination uriKey(String uriKey) {
+ this.uriKey = uriKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the HTTP endpoint URI.
+ *
+ * @return uriKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_URI_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getUriKey() {
+ return uriKey;
+ }
+
+ public void setUriKey(String uriKey) {
+ this.uriKey = uriKey;
+ }
+
+ public ObservabilityPipelineHttpClientDestination usernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the username (used when
+ * auth_strategy is basic).
+ *
+ * @return usernameKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_USERNAME_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getUsernameKey() {
+ return usernameKey;
+ }
+
+ public void setUsernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -304,11 +433,16 @@ public boolean equals(Object o) {
return Objects.equals(
this.authStrategy, observabilityPipelineHttpClientDestination.authStrategy)
&& Objects.equals(this.compression, observabilityPipelineHttpClientDestination.compression)
+ && Objects.equals(this.customKey, observabilityPipelineHttpClientDestination.customKey)
&& Objects.equals(this.encoding, observabilityPipelineHttpClientDestination.encoding)
&& Objects.equals(this.id, observabilityPipelineHttpClientDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineHttpClientDestination.inputs)
+ && Objects.equals(this.passwordKey, observabilityPipelineHttpClientDestination.passwordKey)
&& Objects.equals(this.tls, observabilityPipelineHttpClientDestination.tls)
+ && Objects.equals(this.tokenKey, observabilityPipelineHttpClientDestination.tokenKey)
&& Objects.equals(this.type, observabilityPipelineHttpClientDestination.type)
+ && Objects.equals(this.uriKey, observabilityPipelineHttpClientDestination.uriKey)
+ && Objects.equals(this.usernameKey, observabilityPipelineHttpClientDestination.usernameKey)
&& Objects.equals(
this.additionalProperties,
observabilityPipelineHttpClientDestination.additionalProperties);
@@ -317,7 +451,19 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- authStrategy, compression, encoding, id, inputs, tls, type, additionalProperties);
+ authStrategy,
+ compression,
+ customKey,
+ encoding,
+ id,
+ inputs,
+ passwordKey,
+ tls,
+ tokenKey,
+ type,
+ uriKey,
+ usernameKey,
+ additionalProperties);
}
@Override
@@ -326,11 +472,16 @@ public String toString() {
sb.append("class ObservabilityPipelineHttpClientDestination {\n");
sb.append(" authStrategy: ").append(toIndentedString(authStrategy)).append("\n");
sb.append(" compression: ").append(toIndentedString(compression)).append("\n");
+ sb.append(" customKey: ").append(toIndentedString(customKey)).append("\n");
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
+ sb.append(" passwordKey: ").append(toIndentedString(passwordKey)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
+ sb.append(" tokenKey: ").append(toIndentedString(tokenKey)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" uriKey: ").append(toIndentedString(uriKey)).append("\n");
+ sb.append(" usernameKey: ").append(toIndentedString(usernameKey)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientSource.java
index b1a765eeb9a..65d4710a014 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpClientSource.java
@@ -24,12 +24,17 @@
*/
@JsonPropertyOrder({
ObservabilityPipelineHttpClientSource.JSON_PROPERTY_AUTH_STRATEGY,
+ ObservabilityPipelineHttpClientSource.JSON_PROPERTY_CUSTOM_KEY,
ObservabilityPipelineHttpClientSource.JSON_PROPERTY_DECODING,
+ ObservabilityPipelineHttpClientSource.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineHttpClientSource.JSON_PROPERTY_ID,
+ ObservabilityPipelineHttpClientSource.JSON_PROPERTY_PASSWORD_KEY,
ObservabilityPipelineHttpClientSource.JSON_PROPERTY_SCRAPE_INTERVAL_SECS,
ObservabilityPipelineHttpClientSource.JSON_PROPERTY_SCRAPE_TIMEOUT_SECS,
ObservabilityPipelineHttpClientSource.JSON_PROPERTY_TLS,
- ObservabilityPipelineHttpClientSource.JSON_PROPERTY_TYPE
+ ObservabilityPipelineHttpClientSource.JSON_PROPERTY_TOKEN_KEY,
+ ObservabilityPipelineHttpClientSource.JSON_PROPERTY_TYPE,
+ ObservabilityPipelineHttpClientSource.JSON_PROPERTY_USERNAME_KEY
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -38,12 +43,21 @@ public class ObservabilityPipelineHttpClientSource {
public static final String JSON_PROPERTY_AUTH_STRATEGY = "auth_strategy";
private ObservabilityPipelineHttpClientSourceAuthStrategy authStrategy;
+ public static final String JSON_PROPERTY_CUSTOM_KEY = "custom_key";
+ private String customKey;
+
public static final String JSON_PROPERTY_DECODING = "decoding";
private ObservabilityPipelineDecoding decoding;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
+ public static final String JSON_PROPERTY_PASSWORD_KEY = "password_key";
+ private String passwordKey;
+
public static final String JSON_PROPERTY_SCRAPE_INTERVAL_SECS = "scrape_interval_secs";
private Long scrapeIntervalSecs;
@@ -53,10 +67,16 @@ public class ObservabilityPipelineHttpClientSource {
public static final String JSON_PROPERTY_TLS = "tls";
private ObservabilityPipelineTls tls;
+ public static final String JSON_PROPERTY_TOKEN_KEY = "token_key";
+ private String tokenKey;
+
public static final String JSON_PROPERTY_TYPE = "type";
private ObservabilityPipelineHttpClientSourceType type =
ObservabilityPipelineHttpClientSourceType.HTTP_CLIENT;
+ public static final String JSON_PROPERTY_USERNAME_KEY = "username_key";
+ private String usernameKey;
+
public ObservabilityPipelineHttpClientSource() {}
@JsonCreator
@@ -99,6 +119,28 @@ public void setAuthStrategy(ObservabilityPipelineHttpClientSourceAuthStrategy au
this.authStrategy = authStrategy;
}
+ public ObservabilityPipelineHttpClientSource customKey(String customKey) {
+ this.customKey = customKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds a custom header value (used with custom
+ * auth strategies).
+ *
+ * @return customKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_CUSTOM_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getCustomKey() {
+ return customKey;
+ }
+
+ public void setCustomKey(String customKey) {
+ this.customKey = customKey;
+ }
+
public ObservabilityPipelineHttpClientSource decoding(ObservabilityPipelineDecoding decoding) {
this.decoding = decoding;
this.unparsed |= !decoding.isValid();
@@ -123,6 +165,27 @@ public void setDecoding(ObservabilityPipelineDecoding decoding) {
this.decoding = decoding;
}
+ public ObservabilityPipelineHttpClientSource endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the HTTP endpoint URL to scrape.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineHttpClientSource id(String id) {
this.id = id;
return this;
@@ -144,6 +207,28 @@ public void setId(String id) {
this.id = id;
}
+ public ObservabilityPipelineHttpClientSource passwordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the password (used when
+ * auth_strategy is basic).
+ *
+ * @return passwordKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PASSWORD_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPasswordKey() {
+ return passwordKey;
+ }
+
+ public void setPasswordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ }
+
public ObservabilityPipelineHttpClientSource scrapeIntervalSecs(Long scrapeIntervalSecs) {
this.scrapeIntervalSecs = scrapeIntervalSecs;
return this;
@@ -208,6 +293,28 @@ public void setTls(ObservabilityPipelineTls tls) {
this.tls = tls;
}
+ public ObservabilityPipelineHttpClientSource tokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the bearer token (used when
+ * auth_strategy is bearer).
+ *
+ * @return tokenKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_TOKEN_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getTokenKey() {
+ return tokenKey;
+ }
+
+ public void setTokenKey(String tokenKey) {
+ this.tokenKey = tokenKey;
+ }
+
public ObservabilityPipelineHttpClientSource type(
ObservabilityPipelineHttpClientSourceType type) {
this.type = type;
@@ -233,6 +340,28 @@ public void setType(ObservabilityPipelineHttpClientSourceType type) {
this.type = type;
}
+ public ObservabilityPipelineHttpClientSource usernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the username (used when
+ * auth_strategy is basic).
+ *
+ * @return usernameKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_USERNAME_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getUsernameKey() {
+ return usernameKey;
+ }
+
+ public void setUsernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -291,14 +420,19 @@ public boolean equals(Object o) {
ObservabilityPipelineHttpClientSource observabilityPipelineHttpClientSource =
(ObservabilityPipelineHttpClientSource) o;
return Objects.equals(this.authStrategy, observabilityPipelineHttpClientSource.authStrategy)
+ && Objects.equals(this.customKey, observabilityPipelineHttpClientSource.customKey)
&& Objects.equals(this.decoding, observabilityPipelineHttpClientSource.decoding)
+ && Objects.equals(this.endpointUrlKey, observabilityPipelineHttpClientSource.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineHttpClientSource.id)
+ && Objects.equals(this.passwordKey, observabilityPipelineHttpClientSource.passwordKey)
&& Objects.equals(
this.scrapeIntervalSecs, observabilityPipelineHttpClientSource.scrapeIntervalSecs)
&& Objects.equals(
this.scrapeTimeoutSecs, observabilityPipelineHttpClientSource.scrapeTimeoutSecs)
&& Objects.equals(this.tls, observabilityPipelineHttpClientSource.tls)
+ && Objects.equals(this.tokenKey, observabilityPipelineHttpClientSource.tokenKey)
&& Objects.equals(this.type, observabilityPipelineHttpClientSource.type)
+ && Objects.equals(this.usernameKey, observabilityPipelineHttpClientSource.usernameKey)
&& Objects.equals(
this.additionalProperties, observabilityPipelineHttpClientSource.additionalProperties);
}
@@ -307,12 +441,17 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(
authStrategy,
+ customKey,
decoding,
+ endpointUrlKey,
id,
+ passwordKey,
scrapeIntervalSecs,
scrapeTimeoutSecs,
tls,
+ tokenKey,
type,
+ usernameKey,
additionalProperties);
}
@@ -321,12 +460,17 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineHttpClientSource {\n");
sb.append(" authStrategy: ").append(toIndentedString(authStrategy)).append("\n");
+ sb.append(" customKey: ").append(toIndentedString(customKey)).append("\n");
sb.append(" decoding: ").append(toIndentedString(decoding)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" passwordKey: ").append(toIndentedString(passwordKey)).append("\n");
sb.append(" scrapeIntervalSecs: ").append(toIndentedString(scrapeIntervalSecs)).append("\n");
sb.append(" scrapeTimeoutSecs: ").append(toIndentedString(scrapeTimeoutSecs)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
+ sb.append(" tokenKey: ").append(toIndentedString(tokenKey)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" usernameKey: ").append(toIndentedString(usernameKey)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java
index bcd3e06767e..b5c04e02620 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineHttpServerSource.java
@@ -23,25 +23,38 @@
*
+ * auth_strategy is plain).
+ *
+ * @return passwordKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_PASSWORD_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getPasswordKey() {
+ return passwordKey;
+ }
+
+ public void setPasswordKey(String passwordKey) {
+ this.passwordKey = passwordKey;
+ }
+
public ObservabilityPipelineHttpServerSource tls(ObservabilityPipelineTls tls) {
this.tls = tls;
this.unparsed |= tls.unparsed;
@@ -185,6 +266,28 @@ public void setType(ObservabilityPipelineHttpServerSourceType type) {
this.type = type;
}
+ public ObservabilityPipelineHttpServerSource usernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the username (used when
+ * auth_strategy is plain).
+ *
+ * @return usernameKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_USERNAME_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getUsernameKey() {
+ return usernameKey;
+ }
+
+ public void setUsernameKey(String usernameKey) {
+ this.usernameKey = usernameKey;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -242,29 +345,47 @@ public boolean equals(Object o) {
}
ObservabilityPipelineHttpServerSource observabilityPipelineHttpServerSource =
(ObservabilityPipelineHttpServerSource) o;
- return Objects.equals(this.authStrategy, observabilityPipelineHttpServerSource.authStrategy)
+ return Objects.equals(this.addressKey, observabilityPipelineHttpServerSource.addressKey)
+ && Objects.equals(this.authStrategy, observabilityPipelineHttpServerSource.authStrategy)
+ && Objects.equals(this.customKey, observabilityPipelineHttpServerSource.customKey)
&& Objects.equals(this.decoding, observabilityPipelineHttpServerSource.decoding)
&& Objects.equals(this.id, observabilityPipelineHttpServerSource.id)
+ && Objects.equals(this.passwordKey, observabilityPipelineHttpServerSource.passwordKey)
&& Objects.equals(this.tls, observabilityPipelineHttpServerSource.tls)
&& Objects.equals(this.type, observabilityPipelineHttpServerSource.type)
+ && Objects.equals(this.usernameKey, observabilityPipelineHttpServerSource.usernameKey)
&& Objects.equals(
this.additionalProperties, observabilityPipelineHttpServerSource.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(authStrategy, decoding, id, tls, type, additionalProperties);
+ return Objects.hash(
+ addressKey,
+ authStrategy,
+ customKey,
+ decoding,
+ id,
+ passwordKey,
+ tls,
+ type,
+ usernameKey,
+ additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineHttpServerSource {\n");
+ sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n");
sb.append(" authStrategy: ").append(toIndentedString(authStrategy)).append("\n");
+ sb.append(" customKey: ").append(toIndentedString(customKey)).append("\n");
sb.append(" decoding: ").append(toIndentedString(decoding)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" passwordKey: ").append(toIndentedString(passwordKey)).append("\n");
sb.append(" tls: ").append(toIndentedString(tls)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" usernameKey: ").append(toIndentedString(usernameKey)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaDestination.java
index c79502d5f65..2736a3f0f55 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineKafkaDestination.java
@@ -25,6 +25,7 @@
* strategy is
+ * basic, use username_key and password_key to reference
+ * credentials stored in environment variables or secrets.
+ *
+ * @return auth
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_AUTH)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public ObservabilityPipelineElasticsearchDestinationAuth getAuth() {
+ return auth;
+ }
+
+ public void setAuth(ObservabilityPipelineElasticsearchDestinationAuth auth) {
+ this.auth = auth;
+ }
+
public ObservabilityPipelineOpenSearchDestination buffer(
ObservabilityPipelineBufferOptions buffer) {
this.buffer = buffer;
@@ -136,6 +169,27 @@ public void setDataStream(ObservabilityPipelineOpenSearchDestinationDataStream d
this.dataStream = dataStream;
}
+ public ObservabilityPipelineOpenSearchDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the OpenSearch endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineOpenSearchDestination id(String id) {
this.id = id;
return this;
@@ -264,9 +318,12 @@ public boolean equals(Object o) {
}
ObservabilityPipelineOpenSearchDestination observabilityPipelineOpenSearchDestination =
(ObservabilityPipelineOpenSearchDestination) o;
- return Objects.equals(this.buffer, observabilityPipelineOpenSearchDestination.buffer)
+ return Objects.equals(this.auth, observabilityPipelineOpenSearchDestination.auth)
+ && Objects.equals(this.buffer, observabilityPipelineOpenSearchDestination.buffer)
&& Objects.equals(this.bulkIndex, observabilityPipelineOpenSearchDestination.bulkIndex)
&& Objects.equals(this.dataStream, observabilityPipelineOpenSearchDestination.dataStream)
+ && Objects.equals(
+ this.endpointUrlKey, observabilityPipelineOpenSearchDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineOpenSearchDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineOpenSearchDestination.inputs)
&& Objects.equals(this.type, observabilityPipelineOpenSearchDestination.type)
@@ -277,16 +334,27 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(buffer, bulkIndex, dataStream, id, inputs, type, additionalProperties);
+ return Objects.hash(
+ auth,
+ buffer,
+ bulkIndex,
+ dataStream,
+ endpointUrlKey,
+ id,
+ inputs,
+ type,
+ additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineOpenSearchDestination {\n");
+ sb.append(" auth: ").append(toIndentedString(auth)).append("\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" bulkIndex: ").append(toIndentedString(bulkIndex)).append("\n");
sb.append(" dataStream: ").append(toIndentedString(dataStream)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java
index b0ac0d72203..0b4e66e7570 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogDestination.java
@@ -27,6 +27,7 @@
*/
@JsonPropertyOrder({
ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_BUFFER,
+ ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_ENDPOINT_URL_KEY,
ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_ID,
ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_INPUTS,
ObservabilityPipelineRsyslogDestination.JSON_PROPERTY_KEEPALIVE,
@@ -40,6 +41,9 @@ public class ObservabilityPipelineRsyslogDestination {
public static final String JSON_PROPERTY_BUFFER = "buffer";
private ObservabilityPipelineBufferOptions buffer;
+ public static final String JSON_PROPERTY_ENDPOINT_URL_KEY = "endpoint_url_key";
+ private String endpointUrlKey;
+
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -92,6 +96,27 @@ public void setBuffer(ObservabilityPipelineBufferOptions buffer) {
this.buffer = buffer;
}
+ public ObservabilityPipelineRsyslogDestination endpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ return this;
+ }
+
+ /**
+ * Name of the environment variable or secret that holds the syslog server endpoint URL.
+ *
+ * @return endpointUrlKey
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_ENDPOINT_URL_KEY)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getEndpointUrlKey() {
+ return endpointUrlKey;
+ }
+
+ public void setEndpointUrlKey(String endpointUrlKey) {
+ this.endpointUrlKey = endpointUrlKey;
+ }
+
public ObservabilityPipelineRsyslogDestination id(String id) {
this.id = id;
return this;
@@ -263,6 +288,8 @@ public boolean equals(Object o) {
ObservabilityPipelineRsyslogDestination observabilityPipelineRsyslogDestination =
(ObservabilityPipelineRsyslogDestination) o;
return Objects.equals(this.buffer, observabilityPipelineRsyslogDestination.buffer)
+ && Objects.equals(
+ this.endpointUrlKey, observabilityPipelineRsyslogDestination.endpointUrlKey)
&& Objects.equals(this.id, observabilityPipelineRsyslogDestination.id)
&& Objects.equals(this.inputs, observabilityPipelineRsyslogDestination.inputs)
&& Objects.equals(this.keepalive, observabilityPipelineRsyslogDestination.keepalive)
@@ -275,7 +302,8 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(buffer, id, inputs, keepalive, tls, type, additionalProperties);
+ return Objects.hash(
+ buffer, endpointUrlKey, id, inputs, keepalive, tls, type, additionalProperties);
}
@Override
@@ -283,6 +311,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ObservabilityPipelineRsyslogDestination {\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
+ sb.append(" endpointUrlKey: ").append(toIndentedString(endpointUrlKey)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" keepalive: ").append(toIndentedString(keepalive)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogSource.java
index c2e87571a25..18870ef7f1a 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogSource.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineRsyslogSource.java
@@ -24,6 +24,7 @@
*