Class: Azure::ARM::StreamAnalytics::Models::AvroSerialization
- Inherits:
-
Serialization
- Object
- Serialization
- Azure::ARM::StreamAnalytics::Models::AvroSerialization
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/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.
18 19 20 |
# File 'lib/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 18 def initialize @type = "Avro" end |
Instance Attribute Details
#properties ⇒ Object
type. Required on PUT (CreateOrReplace) requests.
26 27 28 |
# File 'lib/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 26 def properties @properties end |
#type ⇒ Object
Returns the value of attribute type.
22 23 24 |
# File 'lib/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 22 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for AvroSerialization class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 33 def self.mapper() { required: false, serialized_name: 'Avro', type: { name: 'Composite', class_name: 'AvroSerialization', model_properties: { type: { required: true, serialized_name: 'type', type: { name: 'String' } }, properties: { required: false, serialized_name: 'properties', type: { name: 'Object' } } } } } end |