Class: Azure::ARM::StreamAnalytics::Models::AvroSerialization

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAvroSerialization

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

#propertiesObject

type. Required on PUT (CreateOrReplace) requests.

Returns:

  • The properties that are associated with the Avro serialization



26
27
28
# File 'lib/generated/azure_mgmt_stream_analytics/models/avro_serialization.rb', line 26

def properties
  @properties
end

#typeObject

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

.mapperObject

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