Class: Azure::ARM::StreamAnalytics::Models::CsvSerialization

Inherits:
Serialization
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_stream_analytics/models/csv_serialization.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCsvSerialization

Returns a new instance of CsvSerialization.



18
19
20
# File 'lib/generated/azure_mgmt_stream_analytics/models/csv_serialization.rb', line 18

def initialize
  @type = "Csv"
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



37
38
39
# File 'lib/generated/azure_mgmt_stream_analytics/models/csv_serialization.rb', line 37

def encoding
  @encoding
end

#field_delimiterString

comma-separated value (CSV) records. See docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests.

Returns:

  • (String)

    Specifies the delimiter that will be used to separate



31
32
33
# File 'lib/generated/azure_mgmt_stream_analytics/models/csv_serialization.rb', line 31

def field_delimiter
  @field_delimiter
end

#typeObject

Returns the value of attribute type.



22
23
24
# File 'lib/generated/azure_mgmt_stream_analytics/models/csv_serialization.rb', line 22

def type
  @type
end

Class Method Details

.mapperObject

Mapper for CsvSerialization 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
# File 'lib/generated/azure_mgmt_stream_analytics/models/csv_serialization.rb', line 44

def self.mapper()
  {
    required: false,
    serialized_name: 'Csv',
    type: {
      name: 'Composite',
      class_name: 'CsvSerialization',
      model_properties: {
        type: {
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        field_delimiter: {
          required: false,
          serialized_name: 'properties.fieldDelimiter',
          type: {
            name: 'String'
          }
        },
        encoding: {
          required: false,
          serialized_name: 'properties.encoding',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end