Class: Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AvroSerialization

Inherits:
Serialization
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAvroSerialization

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

#propertiesObject

type. Required on PUT (CreateOrReplace) requests.

Returns:

  • The properties that are associated with the Avro serialization



25
26
27
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 25

def properties
  @properties
end

#typeObject

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

.mapperObject

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