Skip to content

Commit 7444d97

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

2 files changed

Lines changed: 21 additions & 45 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]

lib/datadog_api_client/v2/models/observability_pipeline_databricks_zerobus_destination.rb

Lines changed: 15 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class ObservabilityPipelineDatabricksZerobusDestination
3232
# The unique identifier for this component.
3333
attr_reader :id
3434

35-
# Your Databricks Zerobus ingestion endpoint. This is the endpoint used to stream data directly into your Databricks Lakehouse.
36-
attr_reader :ingestion_endpoint
35+
# 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.
36+
attr_accessor :ingestion_endpoint_key
3737

3838
# A list of component IDs whose output is used as the `input` for this component.
3939
attr_reader :inputs
@@ -44,8 +44,8 @@ class ObservabilityPipelineDatabricksZerobusDestination
4444
# The destination type. The value must be `databricks_zerobus`.
4545
attr_reader :type
4646

47-
# Your Databricks workspace URL. This is used to communicate with the Unity Catalog API.
48-
attr_reader :unity_catalog_endpoint
47+
# 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.
48+
attr_accessor :unity_catalog_endpoint_key
4949

5050
attr_accessor :additional_properties
5151

@@ -56,11 +56,11 @@ def self.attribute_map
5656
:'auth' => :'auth',
5757
:'buffer' => :'buffer',
5858
:'id' => :'id',
59-
:'ingestion_endpoint' => :'ingestion_endpoint',
59+
:'ingestion_endpoint_key' => :'ingestion_endpoint_key',
6060
:'inputs' => :'inputs',
6161
:'table_name' => :'table_name',
6262
:'type' => :'type',
63-
:'unity_catalog_endpoint' => :'unity_catalog_endpoint'
63+
:'unity_catalog_endpoint_key' => :'unity_catalog_endpoint_key'
6464
}
6565
end
6666

@@ -71,11 +71,11 @@ def self.openapi_types
7171
:'auth' => :'ObservabilityPipelineDatabricksZerobusDestinationAuth',
7272
:'buffer' => :'ObservabilityPipelineBufferOptions',
7373
:'id' => :'String',
74-
:'ingestion_endpoint' => :'String',
74+
:'ingestion_endpoint_key' => :'String',
7575
:'inputs' => :'Array<String>',
7676
:'table_name' => :'String',
7777
:'type' => :'ObservabilityPipelineDatabricksZerobusDestinationType',
78-
:'unity_catalog_endpoint' => :'String'
78+
:'unity_catalog_endpoint_key' => :'String'
7979
}
8080
end
8181

@@ -109,8 +109,8 @@ def initialize(attributes = {})
109109
self.id = attributes[:'id']
110110
end
111111

112-
if attributes.key?(:'ingestion_endpoint')
113-
self.ingestion_endpoint = attributes[:'ingestion_endpoint']
112+
if attributes.key?(:'ingestion_endpoint_key')
113+
self.ingestion_endpoint_key = attributes[:'ingestion_endpoint_key']
114114
end
115115

116116
if attributes.key?(:'inputs')
@@ -127,8 +127,8 @@ def initialize(attributes = {})
127127
self.type = attributes[:'type']
128128
end
129129

130-
if attributes.key?(:'unity_catalog_endpoint')
131-
self.unity_catalog_endpoint = attributes[:'unity_catalog_endpoint']
130+
if attributes.key?(:'unity_catalog_endpoint_key')
131+
self.unity_catalog_endpoint_key = attributes[:'unity_catalog_endpoint_key']
132132
end
133133
end
134134

@@ -138,11 +138,9 @@ def initialize(attributes = {})
138138
def valid?
139139
return false if @auth.nil?
140140
return false if @id.nil?
141-
return false if @ingestion_endpoint.nil?
142141
return false if @inputs.nil?
143142
return false if @table_name.nil?
144143
return false if @type.nil?
145-
return false if @unity_catalog_endpoint.nil?
146144
true
147145
end
148146

@@ -166,16 +164,6 @@ def id=(id)
166164
@id = id
167165
end
168166

169-
# Custom attribute writer method with validation
170-
# @param ingestion_endpoint [Object] Object to be assigned
171-
# @!visibility private
172-
def ingestion_endpoint=(ingestion_endpoint)
173-
if ingestion_endpoint.nil?
174-
fail ArgumentError, 'invalid value for "ingestion_endpoint", ingestion_endpoint cannot be nil.'
175-
end
176-
@ingestion_endpoint = ingestion_endpoint
177-
end
178-
179167
# Custom attribute writer method with validation
180168
# @param inputs [Object] Object to be assigned
181169
# @!visibility private
@@ -206,16 +194,6 @@ def type=(type)
206194
@type = type
207195
end
208196

209-
# Custom attribute writer method with validation
210-
# @param unity_catalog_endpoint [Object] Object to be assigned
211-
# @!visibility private
212-
def unity_catalog_endpoint=(unity_catalog_endpoint)
213-
if unity_catalog_endpoint.nil?
214-
fail ArgumentError, 'invalid value for "unity_catalog_endpoint", unity_catalog_endpoint cannot be nil.'
215-
end
216-
@unity_catalog_endpoint = unity_catalog_endpoint
217-
end
218-
219197
# Returns the object in the form of hash, with additionalProperties support.
220198
# @return [Hash] Returns the object in the form of hash
221199
# @!visibility private
@@ -245,19 +223,19 @@ def ==(o)
245223
auth == o.auth &&
246224
buffer == o.buffer &&
247225
id == o.id &&
248-
ingestion_endpoint == o.ingestion_endpoint &&
226+
ingestion_endpoint_key == o.ingestion_endpoint_key &&
249227
inputs == o.inputs &&
250228
table_name == o.table_name &&
251229
type == o.type &&
252-
unity_catalog_endpoint == o.unity_catalog_endpoint &&
230+
unity_catalog_endpoint_key == o.unity_catalog_endpoint_key &&
253231
additional_properties == o.additional_properties
254232
end
255233

256234
# Calculates hash code according to all attributes.
257235
# @return [Integer] Hash code
258236
# @!visibility private
259237
def hash
260-
[auth, buffer, id, ingestion_endpoint, inputs, table_name, type, unity_catalog_endpoint, additional_properties].hash
238+
[auth, buffer, id, ingestion_endpoint_key, inputs, table_name, type, unity_catalog_endpoint_key, additional_properties].hash
261239
end
262240
end
263241
end

0 commit comments

Comments
 (0)