Class: Google::Apis::DatastreamV1::JsonFileFormat

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

JSON file format configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JsonFileFormat

Returns a new instance of JsonFileFormat.



1165
1166
1167
# File 'lib/google/apis/datastream_v1/classes.rb', line 1165

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

Instance Attribute Details

#compressionString

Compression of the loaded JSON file. Corresponds to the JSON property compression

Returns:

  • (String)


1158
1159
1160
# File 'lib/google/apis/datastream_v1/classes.rb', line 1158

def compression
  @compression
end

#schema_file_formatString

The schema file format along JSON data files. Corresponds to the JSON property schemaFileFormat

Returns:

  • (String)


1163
1164
1165
# File 'lib/google/apis/datastream_v1/classes.rb', line 1163

def schema_file_format
  @schema_file_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1170
1171
1172
1173
# File 'lib/google/apis/datastream_v1/classes.rb', line 1170

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