Class: Google::Apis::DatastreamV1::DestinationConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb

Overview

The configuration of the stream destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationConfig

Returns a new instance of DestinationConfig.



228
229
230
# File 'lib/google/apis/datastream_v1/classes.rb', line 228

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#destination_connection_profileString

Required. Destination connection profile resource. Format: projects/project/ locations/location/connectionProfiles/name` Corresponds to the JSON propertydestinationConnectionProfile`

Returns:

  • (String)


221
222
223
# File 'lib/google/apis/datastream_v1/classes.rb', line 221

def destination_connection_profile
  @destination_connection_profile
end

#gcs_destination_configGoogle::Apis::DatastreamV1::GcsDestinationConfig

Google Cloud Storage destination configuration Corresponds to the JSON property gcsDestinationConfig



226
227
228
# File 'lib/google/apis/datastream_v1/classes.rb', line 226

def gcs_destination_config
  @gcs_destination_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



233
234
235
236
# File 'lib/google/apis/datastream_v1/classes.rb', line 233

def update!(**args)
  @destination_connection_profile = args[:destination_connection_profile] if args.key?(:destination_connection_profile)
  @gcs_destination_config = args[:gcs_destination_config] if args.key?(:gcs_destination_config)
end