Class: Google::Apis::DatastreamV1alpha1::GcsDestinationConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1alpha1::GcsDestinationConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1alpha1/classes.rb,
lib/google/apis/datastream_v1alpha1/representations.rb,
lib/google/apis/datastream_v1alpha1/representations.rb
Overview
Google Cloud Storage destination configuration
Instance Attribute Summary collapse
-
#avro_file_format ⇒ Google::Apis::DatastreamV1alpha1::AvroFileFormat
AVRO file format configuration.
-
#file_rotation_interval ⇒ String
The maximum duration for which new events are added before a file is closed and a new file is created.
-
#file_rotation_mb ⇒ Fixnum
The maximum file size to be saved in the bucket.
-
#gcs_file_format ⇒ String
File format that data should be written in.
-
#json_file_format ⇒ Google::Apis::DatastreamV1alpha1::JsonFileFormat
JSON file format configuration.
-
#path ⇒ String
Path inside the Cloud Storage bucket to write data to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GcsDestinationConfig
constructor
A new instance of GcsDestinationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GcsDestinationConfig
Returns a new instance of GcsDestinationConfig.
529 530 531 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 529 def initialize(**args) update!(**args) end |
Instance Attribute Details
#avro_file_format ⇒ Google::Apis::DatastreamV1alpha1::AvroFileFormat
AVRO file format configuration.
Corresponds to the JSON property avroFileFormat
500 501 502 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 500 def avro_file_format @avro_file_format end |
#file_rotation_interval ⇒ String
The maximum duration for which new events are added before a file is closed
and a new file is created.
Corresponds to the JSON property fileRotationInterval
506 507 508 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 506 def file_rotation_interval @file_rotation_interval end |
#file_rotation_mb ⇒ Fixnum
The maximum file size to be saved in the bucket.
Corresponds to the JSON property fileRotationMb
511 512 513 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 511 def file_rotation_mb @file_rotation_mb end |
#gcs_file_format ⇒ String
File format that data should be written in. Deprecated field (b/169501737) -
use file_format instead.
Corresponds to the JSON property gcsFileFormat
517 518 519 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 517 def gcs_file_format @gcs_file_format end |
#json_file_format ⇒ Google::Apis::DatastreamV1alpha1::JsonFileFormat
JSON file format configuration.
Corresponds to the JSON property jsonFileFormat
522 523 524 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 522 def json_file_format @json_file_format end |
#path ⇒ String
Path inside the Cloud Storage bucket to write data to.
Corresponds to the JSON property path
527 528 529 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 527 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
534 535 536 537 538 539 540 541 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 534 def update!(**args) @avro_file_format = args[:avro_file_format] if args.key?(:avro_file_format) @file_rotation_interval = args[:file_rotation_interval] if args.key?(:file_rotation_interval) @file_rotation_mb = args[:file_rotation_mb] if args.key?(:file_rotation_mb) @gcs_file_format = args[:gcs_file_format] if args.key?(:gcs_file_format) @json_file_format = args[:json_file_format] if args.key?(:json_file_format) @path = args[:path] if args.key?(:path) end |