mailosaur 3.0.1 → 5.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +14 -13
- data/README.md +42 -8
- data/lib/Mailosaur/analysis.rb +184 -0
- data/lib/Mailosaur/files.rb +291 -0
- data/lib/Mailosaur/mailosaur_base_client.rb +120 -0
- data/lib/Mailosaur/mailosaur_error.rb +23 -0
- data/lib/Mailosaur/messages.rb +673 -0
- data/lib/Mailosaur/models/attachment.rb +99 -0
- data/lib/Mailosaur/models/forwarding_rule.rb +78 -0
- data/lib/Mailosaur/models/image.rb +55 -0
- data/lib/Mailosaur/models/link.rb +55 -0
- data/lib/Mailosaur/models/message.rb +219 -0
- data/lib/Mailosaur/models/message_address.rb +66 -0
- data/lib/Mailosaur/models/message_content.rb +84 -0
- data/lib/Mailosaur/models/message_header.rb +55 -0
- data/lib/Mailosaur/models/message_list_result.rb +54 -0
- data/lib/Mailosaur/models/message_summary.rb +199 -0
- data/lib/Mailosaur/models/metadata.rb +52 -0
- data/lib/Mailosaur/models/search_criteria.rb +69 -0
- data/lib/Mailosaur/models/server.rb +118 -0
- data/lib/Mailosaur/models/server_create_options.rb +44 -0
- data/lib/Mailosaur/models/server_list_result.rb +54 -0
- data/lib/Mailosaur/models/spam_analysis_result.rb +56 -0
- data/lib/Mailosaur/models/spam_assassin_rule.rb +66 -0
- data/lib/Mailosaur/models/spam_filter_results.rb +53 -0
- data/lib/Mailosaur/module_definition.rb +6 -0
- data/lib/Mailosaur/servers.rb +542 -0
- data/lib/Mailosaur/version.rb +8 -0
- data/lib/mailosaur.rb +52 -108
- metadata +78 -46
- data/lib/helper.rb +0 -6
- data/lib/mailosaur/attachment.rb +0 -10
- data/lib/mailosaur/email.rb +0 -23
- data/lib/mailosaur/email_address.rb +0 -9
- data/lib/mailosaur/email_data.rb +0 -13
- data/lib/mailosaur/image.rb +0 -8
- data/lib/mailosaur/link.rb +0 -8
- data/lib/mailosaur/message_generator.rb +0 -31
@@ -0,0 +1,99 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class Attachment
|
13
|
+
# @return
|
14
|
+
attr_accessor :id
|
15
|
+
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :content_type
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :file_name
|
21
|
+
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :content_id
|
24
|
+
|
25
|
+
# @return [Integer]
|
26
|
+
attr_accessor :length
|
27
|
+
|
28
|
+
# @return [String]
|
29
|
+
attr_accessor :url
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for Attachment class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'Attachment',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'Attachment',
|
44
|
+
model_properties: {
|
45
|
+
id: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: true,
|
48
|
+
serialized_name: 'id',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
content_type: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'contentType',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
file_name: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'fileName',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
content_id: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'contentId',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
length: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'length',
|
81
|
+
type: {
|
82
|
+
name: 'Number'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
url: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'url',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ForwardingRule
|
13
|
+
# @return [Enum] Possible values include: 'from', 'to', 'subject'
|
14
|
+
attr_accessor :field
|
15
|
+
|
16
|
+
# @return [Enum] Possible values include: 'endsWith', 'startsWith',
|
17
|
+
# 'contains'
|
18
|
+
attr_accessor :operator
|
19
|
+
|
20
|
+
# @return [String]
|
21
|
+
attr_accessor :value
|
22
|
+
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :forward_to
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for ForwardingRule class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ForwardingRule',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ForwardingRule',
|
39
|
+
model_properties: {
|
40
|
+
field: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'field',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
operator: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'operator',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
value: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'value',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
forward_to: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'forwardTo',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class Image
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :src
|
15
|
+
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :alt
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for Image class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'Image',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'Image',
|
32
|
+
model_properties: {
|
33
|
+
src: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'src',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
alt: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'alt',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class Link
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :href
|
15
|
+
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :text
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for Link class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'Link',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'Link',
|
32
|
+
model_properties: {
|
33
|
+
href: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'href',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
text: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'text',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,219 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class Message
|
13
|
+
# @return Unique identifier for the message.
|
14
|
+
attr_accessor :id
|
15
|
+
|
16
|
+
# @return [Array<MessageAddress>] The sender of the message.
|
17
|
+
attr_accessor :from
|
18
|
+
|
19
|
+
# @return [Array<MessageAddress>] The message’s recipient.
|
20
|
+
attr_accessor :to
|
21
|
+
|
22
|
+
# @return [Array<MessageAddress>] Carbon-copied recipients for email
|
23
|
+
# messages.
|
24
|
+
attr_accessor :cc
|
25
|
+
|
26
|
+
# @return [Array<MessageAddress>] Blind carbon-copied recipients for
|
27
|
+
# email messages.
|
28
|
+
attr_accessor :bcc
|
29
|
+
|
30
|
+
# @return [DateTime] The datetime that this message was received by
|
31
|
+
# Mailosaur.
|
32
|
+
attr_accessor :received
|
33
|
+
|
34
|
+
# @return [String] The message’s subject.
|
35
|
+
attr_accessor :subject
|
36
|
+
|
37
|
+
# @return [MessageContent] Message content that was sent in HTML format.
|
38
|
+
attr_accessor :html
|
39
|
+
|
40
|
+
# @return [MessageContent] Message content that was sent in plain text
|
41
|
+
# format.
|
42
|
+
attr_accessor :text
|
43
|
+
|
44
|
+
# @return [Array<Attachment>] An array of attachment metadata for any
|
45
|
+
# attached files.
|
46
|
+
attr_accessor :attachments
|
47
|
+
|
48
|
+
# @return [Metadata]
|
49
|
+
attr_accessor :metadata
|
50
|
+
|
51
|
+
# @return [String] Identifier for the server in which the message is
|
52
|
+
# located.
|
53
|
+
attr_accessor :server
|
54
|
+
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for Message class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'Message',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'Message',
|
68
|
+
model_properties: {
|
69
|
+
id: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'id',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
from: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'from',
|
81
|
+
type: {
|
82
|
+
name: 'Sequence',
|
83
|
+
element: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'MessageAddressElementType',
|
87
|
+
type: {
|
88
|
+
name: 'Composite',
|
89
|
+
class_name: 'MessageAddress'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
},
|
94
|
+
to: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'to',
|
98
|
+
type: {
|
99
|
+
name: 'Sequence',
|
100
|
+
element: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'MessageAddressElementType',
|
104
|
+
type: {
|
105
|
+
name: 'Composite',
|
106
|
+
class_name: 'MessageAddress'
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
},
|
111
|
+
cc: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
serialized_name: 'cc',
|
115
|
+
type: {
|
116
|
+
name: 'Sequence',
|
117
|
+
element: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
serialized_name: 'MessageAddressElementType',
|
121
|
+
type: {
|
122
|
+
name: 'Composite',
|
123
|
+
class_name: 'MessageAddress'
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
},
|
128
|
+
bcc: {
|
129
|
+
client_side_validation: true,
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'bcc',
|
132
|
+
type: {
|
133
|
+
name: 'Sequence',
|
134
|
+
element: {
|
135
|
+
client_side_validation: true,
|
136
|
+
required: false,
|
137
|
+
serialized_name: 'MessageAddressElementType',
|
138
|
+
type: {
|
139
|
+
name: 'Composite',
|
140
|
+
class_name: 'MessageAddress'
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
},
|
145
|
+
received: {
|
146
|
+
client_side_validation: true,
|
147
|
+
required: false,
|
148
|
+
serialized_name: 'received',
|
149
|
+
type: {
|
150
|
+
name: 'DateTime'
|
151
|
+
}
|
152
|
+
},
|
153
|
+
subject: {
|
154
|
+
client_side_validation: true,
|
155
|
+
required: false,
|
156
|
+
serialized_name: 'subject',
|
157
|
+
type: {
|
158
|
+
name: 'String'
|
159
|
+
}
|
160
|
+
},
|
161
|
+
html: {
|
162
|
+
client_side_validation: true,
|
163
|
+
required: false,
|
164
|
+
serialized_name: 'html',
|
165
|
+
type: {
|
166
|
+
name: 'Composite',
|
167
|
+
class_name: 'MessageContent'
|
168
|
+
}
|
169
|
+
},
|
170
|
+
text: {
|
171
|
+
client_side_validation: true,
|
172
|
+
required: false,
|
173
|
+
serialized_name: 'text',
|
174
|
+
type: {
|
175
|
+
name: 'Composite',
|
176
|
+
class_name: 'MessageContent'
|
177
|
+
}
|
178
|
+
},
|
179
|
+
attachments: {
|
180
|
+
client_side_validation: true,
|
181
|
+
required: false,
|
182
|
+
serialized_name: 'attachments',
|
183
|
+
type: {
|
184
|
+
name: 'Sequence',
|
185
|
+
element: {
|
186
|
+
client_side_validation: true,
|
187
|
+
required: false,
|
188
|
+
serialized_name: 'AttachmentElementType',
|
189
|
+
type: {
|
190
|
+
name: 'Composite',
|
191
|
+
class_name: 'Attachment'
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
},
|
196
|
+
metadata: {
|
197
|
+
client_side_validation: true,
|
198
|
+
required: false,
|
199
|
+
serialized_name: 'metadata',
|
200
|
+
type: {
|
201
|
+
name: 'Composite',
|
202
|
+
class_name: 'Metadata'
|
203
|
+
}
|
204
|
+
},
|
205
|
+
server: {
|
206
|
+
client_side_validation: true,
|
207
|
+
required: false,
|
208
|
+
serialized_name: 'server',
|
209
|
+
type: {
|
210
|
+
name: 'String'
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class MessageAddress
|
13
|
+
# @return [String] Display name, if one is specified.
|
14
|
+
attr_accessor :name
|
15
|
+
|
16
|
+
# @return [String] Email address (applicable to email messages).
|
17
|
+
attr_accessor :email
|
18
|
+
|
19
|
+
# @return [String] Phone number (applicable to SMS messages).
|
20
|
+
attr_accessor :phone
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for MessageAddress class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'MessageAddress',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'MessageAddress',
|
35
|
+
model_properties: {
|
36
|
+
name: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'name',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
email: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'email',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
phone: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'phone',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class MessageContent
|
13
|
+
# @return [Array<Link>]
|
14
|
+
attr_accessor :links
|
15
|
+
|
16
|
+
# @return [Array<Image>]
|
17
|
+
attr_accessor :images
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :body
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for MessageContent class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'MessageContent',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'MessageContent',
|
35
|
+
model_properties: {
|
36
|
+
links: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'links',
|
40
|
+
type: {
|
41
|
+
name: 'Sequence',
|
42
|
+
element: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'LinkElementType',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'Link'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
images: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'images',
|
57
|
+
type: {
|
58
|
+
name: 'Sequence',
|
59
|
+
element: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ImageElementType',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'Image'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
body: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'body',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Mailosaur
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class MessageHeader
|
13
|
+
# @return [String] Header key.
|
14
|
+
attr_accessor :field
|
15
|
+
|
16
|
+
# @return [String] Header value.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for MessageHeader class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'MessageHeader',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'MessageHeader',
|
32
|
+
model_properties: {
|
33
|
+
field: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'field',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
value: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'value',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|