diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 71b4528bc8d..5c692d07013 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -34514,7 +34514,6 @@ components: - id - type - inputs - - auth - customer_id type: object ObservabilityPipelineGoogleChronicleDestinationEncoding: @@ -34580,9 +34579,7 @@ components: - type - inputs - bucket - - auth - storage_class - - acl type: object ObservabilityPipelineGoogleCloudStorageDestinationAcl: description: Access control list setting for objects written to the bucket. @@ -34713,7 +34710,6 @@ components: required: - id - type - - auth - decoding - project - subscription diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb index 482d8cbe942..73b6a5d47df 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb @@ -22,7 +22,7 @@ class ObservabilityPipelineGoogleChronicleDestination include BaseGenericModel # GCP credentials used to authenticate with Google Cloud Storage. - attr_reader :auth + attr_accessor :auth # The Google Chronicle customer ID. attr_reader :customer_id @@ -125,7 +125,6 @@ def initialize(attributes = {}) # @return true if the model is valid # @!visibility private def valid? - return false if @auth.nil? return false if @customer_id.nil? return false if @id.nil? return false if @inputs.nil? @@ -133,16 +132,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param auth [Object] Object to be assigned - # @!visibility private - def auth=(auth) - if auth.nil? - fail ArgumentError, 'invalid value for "auth", auth cannot be nil.' - end - @auth = auth - end - # Custom attribute writer method with validation # @param customer_id [Object] Object to be assigned # @!visibility private diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb index 6294cdeabba..ae95f0729d9 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb @@ -23,10 +23,10 @@ class ObservabilityPipelineGoogleCloudStorageDestination include BaseGenericModel # Access control list setting for objects written to the bucket. - attr_reader :acl + attr_accessor :acl # GCP credentials used to authenticate with Google Cloud Storage. - attr_reader :auth + attr_accessor :auth # Name of the GCS bucket. attr_reader :bucket @@ -146,8 +146,6 @@ def initialize(attributes = {}) # @return true if the model is valid # @!visibility private def valid? - return false if @acl.nil? - return false if @auth.nil? return false if @bucket.nil? return false if @id.nil? return false if @inputs.nil? @@ -156,26 +154,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param acl [Object] Object to be assigned - # @!visibility private - def acl=(acl) - if acl.nil? - fail ArgumentError, 'invalid value for "acl", acl cannot be nil.' - end - @acl = acl - end - - # Custom attribute writer method with validation - # @param auth [Object] Object to be assigned - # @!visibility private - def auth=(auth) - if auth.nil? - fail ArgumentError, 'invalid value for "auth", auth cannot be nil.' - end - @auth = auth - end - # Custom attribute writer method with validation # @param bucket [Object] Object to be assigned # @!visibility private diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb b/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb index 850f190096d..73fff4e5042 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb @@ -22,7 +22,7 @@ class ObservabilityPipelineGooglePubSubSource include BaseGenericModel # GCP credentials used to authenticate with Google Cloud Storage. - attr_reader :auth + attr_accessor :auth # The decoding format used to interpret incoming logs. attr_reader :decoding @@ -123,7 +123,6 @@ def initialize(attributes = {}) # @return true if the model is valid # @!visibility private def valid? - return false if @auth.nil? return false if @decoding.nil? return false if @id.nil? return false if @project.nil? @@ -132,16 +131,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param auth [Object] Object to be assigned - # @!visibility private - def auth=(auth) - if auth.nil? - fail ArgumentError, 'invalid value for "auth", auth cannot be nil.' - end - @auth = auth - end - # Custom attribute writer method with validation # @param decoding [Object] Object to be assigned # @!visibility private