Skip to content

Commit 32b54d0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update observability pipelines databricks_zerobus destination endpoint fields to be secret (#3851)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 7983bca commit 32b54d0

2 files changed

Lines changed: 52 additions & 53 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49436,9 +49436,9 @@ components:
4943649436
description: The unique identifier for this component.
4943749437
example: databricks-zerobus-destination
4943849438
type: string
49439-
ingestion_endpoint:
49440-
description: Your Databricks Zerobus ingestion endpoint. This is the endpoint used to stream data directly into your Databricks Lakehouse.
49441-
example: https://my-workspace-id.zerobus.us-east-1.cloud.databricks.com
49439+
ingestion_endpoint_key:
49440+
description: Name of the environment variable or the secret identifier that references the Databricks Zerobus ingestion endpoint, which is used to stream data directly into your Databricks Lakehouse.
49441+
example: DD_OP_DESTINATION_DATABRICKS_ZEROBUS_INGESTION_ENDPOINT
4944249442
type: string
4944349443
inputs:
4944449444
description: A list of component IDs whose output is used as the `input` for this component.
@@ -49453,17 +49453,15 @@ components:
4945349453
type: string
4945449454
type:
4945549455
$ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestinationType"
49456-
unity_catalog_endpoint:
49457-
description: Your Databricks workspace URL. This is used to communicate with the Unity Catalog API.
49458-
example: https://my-workspace.cloud.databricks.com
49456+
unity_catalog_endpoint_key:
49457+
description: Name of the environment variable or the secret identifier that references your Databricks workspace URL, which is used to communicate with the Unity Catalog API.
49458+
example: DD_OP_DESTINATION_DATABRICKS_ZEROBUS_UNITY_CATALOG_ENDPOINT
4945949459
type: string
4946049460
required:
4946149461
- id
4946249462
- type
4946349463
- inputs
49464-
- ingestion_endpoint
4946549464
- table_name
49466-
- unity_catalog_endpoint
4946749465
- auth
4946849466
type: object
4946949467
x-pipeline-types: [logs, rehydration]

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

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_AUTH,
3030
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_BUFFER,
3131
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_ID,
32-
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_INGESTION_ENDPOINT,
32+
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_INGESTION_ENDPOINT_KEY,
3333
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_INPUTS,
3434
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_TABLE_NAME,
3535
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_TYPE,
36-
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_UNITY_CATALOG_ENDPOINT
36+
ObservabilityPipelineDatabricksZerobusDestination.JSON_PROPERTY_UNITY_CATALOG_ENDPOINT_KEY
3737
})
3838
@jakarta.annotation.Generated(
3939
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -48,8 +48,8 @@ public class ObservabilityPipelineDatabricksZerobusDestination {
4848
public static final String JSON_PROPERTY_ID = "id";
4949
private String id;
5050

51-
public static final String JSON_PROPERTY_INGESTION_ENDPOINT = "ingestion_endpoint";
52-
private String ingestionEndpoint;
51+
public static final String JSON_PROPERTY_INGESTION_ENDPOINT_KEY = "ingestion_endpoint_key";
52+
private String ingestionEndpointKey;
5353

5454
public static final String JSON_PROPERTY_INPUTS = "inputs";
5555
private List<String> inputs = new ArrayList<>();
@@ -61,8 +61,9 @@ public class ObservabilityPipelineDatabricksZerobusDestination {
6161
private ObservabilityPipelineDatabricksZerobusDestinationType type =
6262
ObservabilityPipelineDatabricksZerobusDestinationType.DATABRICKS_ZEROBUS;
6363

64-
public static final String JSON_PROPERTY_UNITY_CATALOG_ENDPOINT = "unity_catalog_endpoint";
65-
private String unityCatalogEndpoint;
64+
public static final String JSON_PROPERTY_UNITY_CATALOG_ENDPOINT_KEY =
65+
"unity_catalog_endpoint_key";
66+
private String unityCatalogEndpointKey;
6667

6768
public ObservabilityPipelineDatabricksZerobusDestination() {}
6869

@@ -71,23 +72,17 @@ public ObservabilityPipelineDatabricksZerobusDestination(
7172
@JsonProperty(required = true, value = JSON_PROPERTY_AUTH)
7273
ObservabilityPipelineDatabricksZerobusDestinationAuth auth,
7374
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
74-
@JsonProperty(required = true, value = JSON_PROPERTY_INGESTION_ENDPOINT)
75-
String ingestionEndpoint,
7675
@JsonProperty(required = true, value = JSON_PROPERTY_INPUTS) List<String> inputs,
7776
@JsonProperty(required = true, value = JSON_PROPERTY_TABLE_NAME) String tableName,
7877
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
79-
ObservabilityPipelineDatabricksZerobusDestinationType type,
80-
@JsonProperty(required = true, value = JSON_PROPERTY_UNITY_CATALOG_ENDPOINT)
81-
String unityCatalogEndpoint) {
78+
ObservabilityPipelineDatabricksZerobusDestinationType type) {
8279
this.auth = auth;
8380
this.unparsed |= auth.unparsed;
8481
this.id = id;
85-
this.ingestionEndpoint = ingestionEndpoint;
8682
this.inputs = inputs;
8783
this.tableName = tableName;
8884
this.type = type;
8985
this.unparsed |= !type.isValid();
90-
this.unityCatalogEndpoint = unityCatalogEndpoint;
9186
}
9287

9388
public ObservabilityPipelineDatabricksZerobusDestination auth(
@@ -155,26 +150,28 @@ public void setId(String id) {
155150
this.id = id;
156151
}
157152

158-
public ObservabilityPipelineDatabricksZerobusDestination ingestionEndpoint(
159-
String ingestionEndpoint) {
160-
this.ingestionEndpoint = ingestionEndpoint;
153+
public ObservabilityPipelineDatabricksZerobusDestination ingestionEndpointKey(
154+
String ingestionEndpointKey) {
155+
this.ingestionEndpointKey = ingestionEndpointKey;
161156
return this;
162157
}
163158

164159
/**
165-
* Your Databricks Zerobus ingestion endpoint. This is the endpoint used to stream data directly
166-
* into your Databricks Lakehouse.
160+
* Name of the environment variable or the secret identifier that references the Databricks
161+
* Zerobus ingestion endpoint, which is used to stream data directly into your Databricks
162+
* Lakehouse.
167163
*
168-
* @return ingestionEndpoint
164+
* @return ingestionEndpointKey
169165
*/
170-
@JsonProperty(JSON_PROPERTY_INGESTION_ENDPOINT)
171-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
172-
public String getIngestionEndpoint() {
173-
return ingestionEndpoint;
166+
@jakarta.annotation.Nullable
167+
@JsonProperty(JSON_PROPERTY_INGESTION_ENDPOINT_KEY)
168+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
169+
public String getIngestionEndpointKey() {
170+
return ingestionEndpointKey;
174171
}
175172

176-
public void setIngestionEndpoint(String ingestionEndpoint) {
177-
this.ingestionEndpoint = ingestionEndpoint;
173+
public void setIngestionEndpointKey(String ingestionEndpointKey) {
174+
this.ingestionEndpointKey = ingestionEndpointKey;
178175
}
179176

180177
public ObservabilityPipelineDatabricksZerobusDestination inputs(List<String> inputs) {
@@ -248,25 +245,27 @@ public void setType(ObservabilityPipelineDatabricksZerobusDestinationType type)
248245
this.type = type;
249246
}
250247

251-
public ObservabilityPipelineDatabricksZerobusDestination unityCatalogEndpoint(
252-
String unityCatalogEndpoint) {
253-
this.unityCatalogEndpoint = unityCatalogEndpoint;
248+
public ObservabilityPipelineDatabricksZerobusDestination unityCatalogEndpointKey(
249+
String unityCatalogEndpointKey) {
250+
this.unityCatalogEndpointKey = unityCatalogEndpointKey;
254251
return this;
255252
}
256253

257254
/**
258-
* Your Databricks workspace URL. This is used to communicate with the Unity Catalog API.
255+
* Name of the environment variable or the secret identifier that references your Databricks
256+
* workspace URL, which is used to communicate with the Unity Catalog API.
259257
*
260-
* @return unityCatalogEndpoint
258+
* @return unityCatalogEndpointKey
261259
*/
262-
@JsonProperty(JSON_PROPERTY_UNITY_CATALOG_ENDPOINT)
263-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
264-
public String getUnityCatalogEndpoint() {
265-
return unityCatalogEndpoint;
260+
@jakarta.annotation.Nullable
261+
@JsonProperty(JSON_PROPERTY_UNITY_CATALOG_ENDPOINT_KEY)
262+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
263+
public String getUnityCatalogEndpointKey() {
264+
return unityCatalogEndpointKey;
266265
}
267266

268-
public void setUnityCatalogEndpoint(String unityCatalogEndpoint) {
269-
this.unityCatalogEndpoint = unityCatalogEndpoint;
267+
public void setUnityCatalogEndpointKey(String unityCatalogEndpointKey) {
268+
this.unityCatalogEndpointKey = unityCatalogEndpointKey;
270269
}
271270

272271
/**
@@ -332,15 +331,15 @@ public boolean equals(Object o) {
332331
&& Objects.equals(this.buffer, observabilityPipelineDatabricksZerobusDestination.buffer)
333332
&& Objects.equals(this.id, observabilityPipelineDatabricksZerobusDestination.id)
334333
&& Objects.equals(
335-
this.ingestionEndpoint,
336-
observabilityPipelineDatabricksZerobusDestination.ingestionEndpoint)
334+
this.ingestionEndpointKey,
335+
observabilityPipelineDatabricksZerobusDestination.ingestionEndpointKey)
337336
&& Objects.equals(this.inputs, observabilityPipelineDatabricksZerobusDestination.inputs)
338337
&& Objects.equals(
339338
this.tableName, observabilityPipelineDatabricksZerobusDestination.tableName)
340339
&& Objects.equals(this.type, observabilityPipelineDatabricksZerobusDestination.type)
341340
&& Objects.equals(
342-
this.unityCatalogEndpoint,
343-
observabilityPipelineDatabricksZerobusDestination.unityCatalogEndpoint)
341+
this.unityCatalogEndpointKey,
342+
observabilityPipelineDatabricksZerobusDestination.unityCatalogEndpointKey)
344343
&& Objects.equals(
345344
this.additionalProperties,
346345
observabilityPipelineDatabricksZerobusDestination.additionalProperties);
@@ -352,11 +351,11 @@ public int hashCode() {
352351
auth,
353352
buffer,
354353
id,
355-
ingestionEndpoint,
354+
ingestionEndpointKey,
356355
inputs,
357356
tableName,
358357
type,
359-
unityCatalogEndpoint,
358+
unityCatalogEndpointKey,
360359
additionalProperties);
361360
}
362361

@@ -367,12 +366,14 @@ public String toString() {
367366
sb.append(" auth: ").append(toIndentedString(auth)).append("\n");
368367
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
369368
sb.append(" id: ").append(toIndentedString(id)).append("\n");
370-
sb.append(" ingestionEndpoint: ").append(toIndentedString(ingestionEndpoint)).append("\n");
369+
sb.append(" ingestionEndpointKey: ")
370+
.append(toIndentedString(ingestionEndpointKey))
371+
.append("\n");
371372
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
372373
sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n");
373374
sb.append(" type: ").append(toIndentedString(type)).append("\n");
374-
sb.append(" unityCatalogEndpoint: ")
375-
.append(toIndentedString(unityCatalogEndpoint))
375+
sb.append(" unityCatalogEndpointKey: ")
376+
.append(toIndentedString(unityCatalogEndpointKey))
376377
.append("\n");
377378
sb.append(" additionalProperties: ")
378379
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)