Skip to content

Commit 08f3345

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Make google auth optional for Observability Pipelines (#2787)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b840964 commit 08f3345

File tree

4 files changed

+4
-52
lines changed

4 files changed

+4
-52
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34514,7 +34514,6 @@ components:
3451434514
- id
3451534515
- type
3451634516
- inputs
34517-
- auth
3451834517
- customer_id
3451934518
type: object
3452034519
ObservabilityPipelineGoogleChronicleDestinationEncoding:
@@ -34580,9 +34579,7 @@ components:
3458034579
- type
3458134580
- inputs
3458234581
- bucket
34583-
- auth
3458434582
- storage_class
34585-
- acl
3458634583
type: object
3458734584
ObservabilityPipelineGoogleCloudStorageDestinationAcl:
3458834585
description: Access control list setting for objects written to the bucket.
@@ -34713,7 +34710,6 @@ components:
3471334710
required:
3471434711
- id
3471534712
- type
34716-
- auth
3471734713
- decoding
3471834714
- project
3471934715
- subscription

lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ObservabilityPipelineGoogleChronicleDestination
2222
include BaseGenericModel
2323

2424
# GCP credentials used to authenticate with Google Cloud Storage.
25-
attr_reader :auth
25+
attr_accessor :auth
2626

2727
# The Google Chronicle customer ID.
2828
attr_reader :customer_id
@@ -125,24 +125,13 @@ def initialize(attributes = {})
125125
# @return true if the model is valid
126126
# @!visibility private
127127
def valid?
128-
return false if @auth.nil?
129128
return false if @customer_id.nil?
130129
return false if @id.nil?
131130
return false if @inputs.nil?
132131
return false if @type.nil?
133132
true
134133
end
135134

136-
# Custom attribute writer method with validation
137-
# @param auth [Object] Object to be assigned
138-
# @!visibility private
139-
def auth=(auth)
140-
if auth.nil?
141-
fail ArgumentError, 'invalid value for "auth", auth cannot be nil.'
142-
end
143-
@auth = auth
144-
end
145-
146135
# Custom attribute writer method with validation
147136
# @param customer_id [Object] Object to be assigned
148137
# @!visibility private

lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ class ObservabilityPipelineGoogleCloudStorageDestination
2323
include BaseGenericModel
2424

2525
# Access control list setting for objects written to the bucket.
26-
attr_reader :acl
26+
attr_accessor :acl
2727

2828
# GCP credentials used to authenticate with Google Cloud Storage.
29-
attr_reader :auth
29+
attr_accessor :auth
3030

3131
# Name of the GCS bucket.
3232
attr_reader :bucket
@@ -146,8 +146,6 @@ def initialize(attributes = {})
146146
# @return true if the model is valid
147147
# @!visibility private
148148
def valid?
149-
return false if @acl.nil?
150-
return false if @auth.nil?
151149
return false if @bucket.nil?
152150
return false if @id.nil?
153151
return false if @inputs.nil?
@@ -156,26 +154,6 @@ def valid?
156154
true
157155
end
158156

159-
# Custom attribute writer method with validation
160-
# @param acl [Object] Object to be assigned
161-
# @!visibility private
162-
def acl=(acl)
163-
if acl.nil?
164-
fail ArgumentError, 'invalid value for "acl", acl cannot be nil.'
165-
end
166-
@acl = acl
167-
end
168-
169-
# Custom attribute writer method with validation
170-
# @param auth [Object] Object to be assigned
171-
# @!visibility private
172-
def auth=(auth)
173-
if auth.nil?
174-
fail ArgumentError, 'invalid value for "auth", auth cannot be nil.'
175-
end
176-
@auth = auth
177-
end
178-
179157
# Custom attribute writer method with validation
180158
# @param bucket [Object] Object to be assigned
181159
# @!visibility private

lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ObservabilityPipelineGooglePubSubSource
2222
include BaseGenericModel
2323

2424
# GCP credentials used to authenticate with Google Cloud Storage.
25-
attr_reader :auth
25+
attr_accessor :auth
2626

2727
# The decoding format used to interpret incoming logs.
2828
attr_reader :decoding
@@ -123,7 +123,6 @@ def initialize(attributes = {})
123123
# @return true if the model is valid
124124
# @!visibility private
125125
def valid?
126-
return false if @auth.nil?
127126
return false if @decoding.nil?
128127
return false if @id.nil?
129128
return false if @project.nil?
@@ -132,16 +131,6 @@ def valid?
132131
true
133132
end
134133

135-
# Custom attribute writer method with validation
136-
# @param auth [Object] Object to be assigned
137-
# @!visibility private
138-
def auth=(auth)
139-
if auth.nil?
140-
fail ArgumentError, 'invalid value for "auth", auth cannot be nil.'
141-
end
142-
@auth = auth
143-
end
144-
145134
# Custom attribute writer method with validation
146135
# @param decoding [Object] Object to be assigned
147136
# @!visibility private

0 commit comments

Comments
 (0)