Class: Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonSerialization

Inherits:
Serialization
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/json_serialization.rb

Overview

Describes how data from an input is serialized or how data is serialized when written to an output in JSON format.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJsonSerialization

Returns a new instance of JsonSerialization.



17
18
19
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/json_serialization.rb', line 17

def initialize
  @type = "Json"
end

Instance Attribute Details

#encodingEncoding

case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests. Possible values include: ‘UTF8’

Returns:

  • (Encoding)

    Specifies the encoding of the incoming data in the



27
28
29
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/json_serialization.rb', line 27

def encoding
  @encoding
end

#formatJsonOutputSerializationFormat

JSON serialization of outputs only. It is not applicable to inputs. This property specifies the format of the JSON the output will be written in. The currently supported values are ‘lineSeparated’ indicating the output will be formatted by having each JSON object separated by a new line and ‘array’ indicating the output will be formatted as an array of JSON objects. Default value is ‘lineSeparated’ if left null. Possible values include: ‘LineSeparated’, ‘Array’

Returns:



37
38
39
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/json_serialization.rb', line 37

def format
  @format
end

#typeObject

Returns the value of attribute type.



21
22
23
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/json_serialization.rb', line 21

def type
  @type
end

Class Method Details

.mapperObject

Mapper for JsonSerialization class as Ruby Hash. This will be used for serialization/deserialization.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/json_serialization.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Json',
    type: {
      name: 'Composite',
      class_name: 'JsonSerialization',
      model_properties: {
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        encoding: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encoding',
          type: {
            name: 'String'
          }
        },
        format: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.format',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end