Class: Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AvroSerialization
- Inherits:
-
Serialization
- Object
- Serialization
- Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AvroSerialization
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb
Overview
Describes how data from an input is serialized or how data is serialized when written to an output in Avro format.
Instance Attribute Summary collapse
-
#properties ⇒ Object
type.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AvroSerialization class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AvroSerialization
constructor
A new instance of AvroSerialization.
Constructor Details
#initialize ⇒ AvroSerialization
Returns a new instance of AvroSerialization.
17 18 19 |
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 17 def initialize @type = "Avro" end |
Instance Attribute Details
#properties ⇒ Object
type. Required on PUT (CreateOrReplace) requests.
25 26 27 |
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 25 def properties @properties end |
#type ⇒ Object
Returns the value of attribute type.
21 22 23 |
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 21 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for AvroSerialization class as Ruby Hash. This will be used for serialization/deserialization.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Avro', type: { name: 'Composite', class_name: 'AvroSerialization', model_properties: { type: { client_side_validation: true, required: true, serialized_name: 'type', type: { name: 'String' } }, properties: { client_side_validation: true, required: false, serialized_name: 'properties', type: { name: 'Object' } } } } } end |