Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34514,7 +34514,6 @@ components:
- id
- type
- inputs
- auth
- customer_id
type: object
ObservabilityPipelineGoogleChronicleDestinationEncoding:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -34713,7 +34710,6 @@ components:
required:
- id
- type
- auth
- decoding
- project
- subscription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -125,24 +125,13 @@ 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?
return false if @type.nil?
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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?
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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?
Expand All @@ -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
Expand Down
Loading