pingram 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pingram/api/broadcasts_api.rb +2 -2
- data/lib/pingram/api/domains_api.rb +109 -35
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/get_senders_response_inner.rb +135 -159
- data/lib/pingram/models/{domain_dns_check_records_inner.rb → get_senders_response_inner_dns_records_inner.rb} +98 -90
- data/lib/pingram/models/get_users_response_users_inner_email_suppression_status.rb +52 -27
- data/lib/pingram/models/{check_domain_dns_request.rb → patch_domain_request.rb} +35 -5
- data/lib/pingram/models/{post_senders_request_body.rb → post_domain_request.rb} +60 -19
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +3 -6
- metadata +5 -8
- data/lib/pingram/models/domain_dns_check.rb +0 -244
- data/lib/pingram/models/get_senders_response_inner_verification_records.rb +0 -193
- data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +0 -287
|
@@ -14,22 +14,30 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
|
|
17
|
+
# One DNS record to publish for a domain.
|
|
18
|
+
class GetSendersResponseInnerDnsRecordsInner < ApiModelBase
|
|
18
19
|
attr_accessor :id
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
# TXT, MX, or CNAME.
|
|
22
|
+
attr_accessor :type
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
attr_accessor :found
|
|
24
|
+
# Name to enter at the DNS host. `@` is the bare domain.
|
|
25
|
+
attr_accessor :name
|
|
25
26
|
|
|
27
|
+
# Full hostname, such as pingram._domainkey.mail.example.com.
|
|
26
28
|
attr_accessor :host
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
# Exact value to publish.
|
|
31
|
+
attr_accessor :value
|
|
32
|
+
|
|
33
|
+
# MX priority. Present for the bounce and inbound records.
|
|
34
|
+
attr_accessor :priority
|
|
29
35
|
|
|
36
|
+
# Whether the current settings expect this record. Inbound is expected when receiving is on. Tracking is expected when open or click tracking is on. The record is still listed when this is false.
|
|
30
37
|
attr_accessor :expected
|
|
31
38
|
|
|
32
|
-
|
|
39
|
+
# Whether this record is ready to use. `PENDING` means it has been seen and confirmation is not finished. `TEMPORARY_FAILURE` means a confirmed record has started to disappear.
|
|
40
|
+
attr_accessor :status
|
|
33
41
|
|
|
34
42
|
class EnumAttributeValidator
|
|
35
43
|
attr_reader :datatype
|
|
@@ -57,13 +65,13 @@ module Pingram
|
|
|
57
65
|
def self.attribute_map
|
|
58
66
|
{
|
|
59
67
|
:'id' => :'id',
|
|
60
|
-
:'
|
|
61
|
-
:'
|
|
62
|
-
:'found' => :'found',
|
|
68
|
+
:'type' => :'type',
|
|
69
|
+
:'name' => :'name',
|
|
63
70
|
:'host' => :'host',
|
|
64
|
-
:'
|
|
71
|
+
:'value' => :'value',
|
|
72
|
+
:'priority' => :'priority',
|
|
65
73
|
:'expected' => :'expected',
|
|
66
|
-
:'
|
|
74
|
+
:'status' => :'status'
|
|
67
75
|
}
|
|
68
76
|
end
|
|
69
77
|
|
|
@@ -81,13 +89,13 @@ module Pingram
|
|
|
81
89
|
def self.openapi_types
|
|
82
90
|
{
|
|
83
91
|
:'id' => :'String',
|
|
84
|
-
:'
|
|
85
|
-
:'
|
|
86
|
-
:'found' => :'Boolean',
|
|
92
|
+
:'type' => :'String',
|
|
93
|
+
:'name' => :'String',
|
|
87
94
|
:'host' => :'String',
|
|
88
|
-
:'
|
|
89
|
-
:'
|
|
90
|
-
:'
|
|
95
|
+
:'value' => :'String',
|
|
96
|
+
:'priority' => :'Float',
|
|
97
|
+
:'expected' => :'Boolean',
|
|
98
|
+
:'status' => :'String'
|
|
91
99
|
}
|
|
92
100
|
end
|
|
93
101
|
|
|
@@ -101,14 +109,14 @@ module Pingram
|
|
|
101
109
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
102
110
|
def initialize(attributes = {})
|
|
103
111
|
if (!attributes.is_a?(Hash))
|
|
104
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
112
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetSendersResponseInnerDnsRecordsInner` initialize method"
|
|
105
113
|
end
|
|
106
114
|
|
|
107
115
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
108
116
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
109
117
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
110
118
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
111
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
119
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetSendersResponseInnerDnsRecordsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
112
120
|
end
|
|
113
121
|
h[k.to_sym] = v
|
|
114
122
|
}
|
|
@@ -119,22 +127,16 @@ module Pingram
|
|
|
119
127
|
self.id = nil
|
|
120
128
|
end
|
|
121
129
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
124
|
-
else
|
|
125
|
-
self.label = nil
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if attributes.key?(:'required')
|
|
129
|
-
self.required = attributes[:'required']
|
|
130
|
+
if attributes.key?(:'type')
|
|
131
|
+
self.type = attributes[:'type']
|
|
130
132
|
else
|
|
131
|
-
self.
|
|
133
|
+
self.type = nil
|
|
132
134
|
end
|
|
133
135
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
136
|
+
if attributes.key?(:'name')
|
|
137
|
+
self.name = attributes[:'name']
|
|
136
138
|
else
|
|
137
|
-
self.
|
|
139
|
+
self.name = nil
|
|
138
140
|
end
|
|
139
141
|
|
|
140
142
|
if attributes.key?(:'host')
|
|
@@ -143,10 +145,14 @@ module Pingram
|
|
|
143
145
|
self.host = nil
|
|
144
146
|
end
|
|
145
147
|
|
|
146
|
-
if attributes.key?(:'
|
|
147
|
-
self.
|
|
148
|
+
if attributes.key?(:'value')
|
|
149
|
+
self.value = attributes[:'value']
|
|
148
150
|
else
|
|
149
|
-
self.
|
|
151
|
+
self.value = nil
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'priority')
|
|
155
|
+
self.priority = attributes[:'priority']
|
|
150
156
|
end
|
|
151
157
|
|
|
152
158
|
if attributes.key?(:'expected')
|
|
@@ -155,10 +161,10 @@ module Pingram
|
|
|
155
161
|
self.expected = nil
|
|
156
162
|
end
|
|
157
163
|
|
|
158
|
-
if attributes.key?(:'
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
if attributes.key?(:'status')
|
|
165
|
+
self.status = attributes[:'status']
|
|
166
|
+
else
|
|
167
|
+
self.status = nil
|
|
162
168
|
end
|
|
163
169
|
end
|
|
164
170
|
|
|
@@ -171,30 +177,30 @@ module Pingram
|
|
|
171
177
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
172
178
|
end
|
|
173
179
|
|
|
174
|
-
if @
|
|
175
|
-
invalid_properties.push('invalid value for "
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
if @required.nil?
|
|
179
|
-
invalid_properties.push('invalid value for "required", required cannot be nil.')
|
|
180
|
+
if @type.nil?
|
|
181
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
180
182
|
end
|
|
181
183
|
|
|
182
|
-
if @
|
|
183
|
-
invalid_properties.push('invalid value for "
|
|
184
|
+
if @name.nil?
|
|
185
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
184
186
|
end
|
|
185
187
|
|
|
186
188
|
if @host.nil?
|
|
187
189
|
invalid_properties.push('invalid value for "host", host cannot be nil.')
|
|
188
190
|
end
|
|
189
191
|
|
|
190
|
-
if @
|
|
191
|
-
invalid_properties.push('invalid value for "
|
|
192
|
+
if @value.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
|
192
194
|
end
|
|
193
195
|
|
|
194
196
|
if @expected.nil?
|
|
195
197
|
invalid_properties.push('invalid value for "expected", expected cannot be nil.')
|
|
196
198
|
end
|
|
197
199
|
|
|
200
|
+
if @status.nil?
|
|
201
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
202
|
+
end
|
|
203
|
+
|
|
198
204
|
invalid_properties
|
|
199
205
|
end
|
|
200
206
|
|
|
@@ -205,14 +211,16 @@ module Pingram
|
|
|
205
211
|
return false if @id.nil?
|
|
206
212
|
id_validator = EnumAttributeValidator.new('String', ["dkim", "mail_from_spf", "mail_from_mx", "dmarc", "inbound_mx", "trackingCname"])
|
|
207
213
|
return false unless id_validator.valid?(@id)
|
|
208
|
-
return false if @
|
|
209
|
-
|
|
210
|
-
return false
|
|
214
|
+
return false if @type.nil?
|
|
215
|
+
type_validator = EnumAttributeValidator.new('String', ["TXT", "MX", "CNAME"])
|
|
216
|
+
return false unless type_validator.valid?(@type)
|
|
217
|
+
return false if @name.nil?
|
|
211
218
|
return false if @host.nil?
|
|
212
|
-
return false if @
|
|
213
|
-
record_type_validator = EnumAttributeValidator.new('String', ["TXT", "MX", "CNAME"])
|
|
214
|
-
return false unless record_type_validator.valid?(@record_type)
|
|
219
|
+
return false if @value.nil?
|
|
215
220
|
return false if @expected.nil?
|
|
221
|
+
return false if @status.nil?
|
|
222
|
+
status_validator = EnumAttributeValidator.new('String', ["NOT_STARTED", "PENDING", "SUCCESS", "TEMPORARY_FAILURE", "FAILED"])
|
|
223
|
+
return false unless status_validator.valid?(@status)
|
|
216
224
|
true
|
|
217
225
|
end
|
|
218
226
|
|
|
@@ -226,34 +234,24 @@ module Pingram
|
|
|
226
234
|
@id = id
|
|
227
235
|
end
|
|
228
236
|
|
|
229
|
-
# Custom attribute writer method
|
|
230
|
-
# @param [Object]
|
|
231
|
-
def
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
@label = label
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
# Custom attribute writer method with validation
|
|
240
|
-
# @param [Object] required Value to be assigned
|
|
241
|
-
def required=(required)
|
|
242
|
-
if required.nil?
|
|
243
|
-
fail ArgumentError, 'required cannot be nil'
|
|
237
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
238
|
+
# @param [Object] type Object to be assigned
|
|
239
|
+
def type=(type)
|
|
240
|
+
validator = EnumAttributeValidator.new('String', ["TXT", "MX", "CNAME"])
|
|
241
|
+
unless validator.valid?(type)
|
|
242
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
244
243
|
end
|
|
245
|
-
|
|
246
|
-
@required = required
|
|
244
|
+
@type = type
|
|
247
245
|
end
|
|
248
246
|
|
|
249
247
|
# Custom attribute writer method with validation
|
|
250
|
-
# @param [Object]
|
|
251
|
-
def
|
|
252
|
-
if
|
|
253
|
-
fail ArgumentError, '
|
|
248
|
+
# @param [Object] name Value to be assigned
|
|
249
|
+
def name=(name)
|
|
250
|
+
if name.nil?
|
|
251
|
+
fail ArgumentError, 'name cannot be nil'
|
|
254
252
|
end
|
|
255
253
|
|
|
256
|
-
@
|
|
254
|
+
@name = name
|
|
257
255
|
end
|
|
258
256
|
|
|
259
257
|
# Custom attribute writer method with validation
|
|
@@ -266,14 +264,14 @@ module Pingram
|
|
|
266
264
|
@host = host
|
|
267
265
|
end
|
|
268
266
|
|
|
269
|
-
# Custom attribute writer method
|
|
270
|
-
# @param [Object]
|
|
271
|
-
def
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
fail ArgumentError, "invalid value for \"record_type\", must be one of #{validator.allowable_values}."
|
|
267
|
+
# Custom attribute writer method with validation
|
|
268
|
+
# @param [Object] value Value to be assigned
|
|
269
|
+
def value=(value)
|
|
270
|
+
if value.nil?
|
|
271
|
+
fail ArgumentError, 'value cannot be nil'
|
|
275
272
|
end
|
|
276
|
-
|
|
273
|
+
|
|
274
|
+
@value = value
|
|
277
275
|
end
|
|
278
276
|
|
|
279
277
|
# Custom attribute writer method with validation
|
|
@@ -286,19 +284,29 @@ module Pingram
|
|
|
286
284
|
@expected = expected
|
|
287
285
|
end
|
|
288
286
|
|
|
287
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
288
|
+
# @param [Object] status Object to be assigned
|
|
289
|
+
def status=(status)
|
|
290
|
+
validator = EnumAttributeValidator.new('String', ["NOT_STARTED", "PENDING", "SUCCESS", "TEMPORARY_FAILURE", "FAILED"])
|
|
291
|
+
unless validator.valid?(status)
|
|
292
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
293
|
+
end
|
|
294
|
+
@status = status
|
|
295
|
+
end
|
|
296
|
+
|
|
289
297
|
# Checks equality by comparing each attribute.
|
|
290
298
|
# @param [Object] Object to be compared
|
|
291
299
|
def ==(o)
|
|
292
300
|
return true if self.equal?(o)
|
|
293
301
|
self.class == o.class &&
|
|
294
302
|
id == o.id &&
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
found == o.found &&
|
|
303
|
+
type == o.type &&
|
|
304
|
+
name == o.name &&
|
|
298
305
|
host == o.host &&
|
|
299
|
-
|
|
306
|
+
value == o.value &&
|
|
307
|
+
priority == o.priority &&
|
|
300
308
|
expected == o.expected &&
|
|
301
|
-
|
|
309
|
+
status == o.status
|
|
302
310
|
end
|
|
303
311
|
|
|
304
312
|
# @see the `==` method
|
|
@@ -310,7 +318,7 @@ module Pingram
|
|
|
310
318
|
# Calculates hash code according to all attributes.
|
|
311
319
|
# @return [Integer] Hash code
|
|
312
320
|
def hash
|
|
313
|
-
[id,
|
|
321
|
+
[id, type, name, host, value, priority, expected, status].hash
|
|
314
322
|
end
|
|
315
323
|
|
|
316
324
|
# Builds the object from hash
|
|
@@ -14,11 +14,25 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Bounce or complaint
|
|
17
|
+
# Bounce or complaint that is keeping mail from this address. Read-only. `unknown` means the address is suppressed and the original cause was not kept.
|
|
18
18
|
class GetUsersResponseUsersInnerEmailSuppressionStatus < ApiModelBase
|
|
19
|
+
# Why mail to this address is suppressed.
|
|
19
20
|
attr_accessor :reason
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
# When the bounce or complaint happened.
|
|
23
|
+
attr_accessor :at
|
|
24
|
+
|
|
25
|
+
# Tracking id of the message that caused this suppression.
|
|
26
|
+
attr_accessor :tracking_id
|
|
27
|
+
|
|
28
|
+
# Status the recipient's mail server reported, such as 5.1.1.
|
|
29
|
+
attr_accessor :smtp_status
|
|
30
|
+
|
|
31
|
+
# What the recipient's mail server sent back.
|
|
32
|
+
attr_accessor :server_message
|
|
33
|
+
|
|
34
|
+
# More specific cause reported for this address.
|
|
35
|
+
attr_accessor :category
|
|
22
36
|
|
|
23
37
|
class EnumAttributeValidator
|
|
24
38
|
attr_reader :datatype
|
|
@@ -46,7 +60,11 @@ module Pingram
|
|
|
46
60
|
def self.attribute_map
|
|
47
61
|
{
|
|
48
62
|
:'reason' => :'reason',
|
|
49
|
-
:'
|
|
63
|
+
:'at' => :'at',
|
|
64
|
+
:'tracking_id' => :'trackingId',
|
|
65
|
+
:'smtp_status' => :'smtpStatus',
|
|
66
|
+
:'server_message' => :'serverMessage',
|
|
67
|
+
:'category' => :'category'
|
|
50
68
|
}
|
|
51
69
|
end
|
|
52
70
|
|
|
@@ -64,7 +82,11 @@ module Pingram
|
|
|
64
82
|
def self.openapi_types
|
|
65
83
|
{
|
|
66
84
|
:'reason' => :'String',
|
|
67
|
-
:'
|
|
85
|
+
:'at' => :'String',
|
|
86
|
+
:'tracking_id' => :'String',
|
|
87
|
+
:'smtp_status' => :'String',
|
|
88
|
+
:'server_message' => :'String',
|
|
89
|
+
:'category' => :'String'
|
|
68
90
|
}
|
|
69
91
|
end
|
|
70
92
|
|
|
@@ -96,10 +118,24 @@ module Pingram
|
|
|
96
118
|
self.reason = nil
|
|
97
119
|
end
|
|
98
120
|
|
|
99
|
-
if attributes.key?(:'
|
|
100
|
-
self.
|
|
101
|
-
|
|
102
|
-
|
|
121
|
+
if attributes.key?(:'at')
|
|
122
|
+
self.at = attributes[:'at']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'tracking_id')
|
|
126
|
+
self.tracking_id = attributes[:'tracking_id']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'smtp_status')
|
|
130
|
+
self.smtp_status = attributes[:'smtp_status']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'server_message')
|
|
134
|
+
self.server_message = attributes[:'server_message']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'category')
|
|
138
|
+
self.category = attributes[:'category']
|
|
103
139
|
end
|
|
104
140
|
end
|
|
105
141
|
|
|
@@ -112,10 +148,6 @@ module Pingram
|
|
|
112
148
|
invalid_properties.push('invalid value for "reason", reason cannot be nil.')
|
|
113
149
|
end
|
|
114
150
|
|
|
115
|
-
if @details.nil?
|
|
116
|
-
invalid_properties.push('invalid value for "details", details cannot be nil.')
|
|
117
|
-
end
|
|
118
|
-
|
|
119
151
|
invalid_properties
|
|
120
152
|
end
|
|
121
153
|
|
|
@@ -124,39 +156,32 @@ module Pingram
|
|
|
124
156
|
def valid?
|
|
125
157
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
158
|
return false if @reason.nil?
|
|
127
|
-
reason_validator = EnumAttributeValidator.new('String', ["
|
|
159
|
+
reason_validator = EnumAttributeValidator.new('String', ["hard_bounce", "complaint", "unknown"])
|
|
128
160
|
return false unless reason_validator.valid?(@reason)
|
|
129
|
-
return false if @details.nil?
|
|
130
161
|
true
|
|
131
162
|
end
|
|
132
163
|
|
|
133
164
|
# Custom attribute writer method checking allowed values (enum).
|
|
134
165
|
# @param [Object] reason Object to be assigned
|
|
135
166
|
def reason=(reason)
|
|
136
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
167
|
+
validator = EnumAttributeValidator.new('String', ["hard_bounce", "complaint", "unknown"])
|
|
137
168
|
unless validator.valid?(reason)
|
|
138
169
|
fail ArgumentError, "invalid value for \"reason\", must be one of #{validator.allowable_values}."
|
|
139
170
|
end
|
|
140
171
|
@reason = reason
|
|
141
172
|
end
|
|
142
173
|
|
|
143
|
-
# Custom attribute writer method with validation
|
|
144
|
-
# @param [Object] details Value to be assigned
|
|
145
|
-
def details=(details)
|
|
146
|
-
if details.nil?
|
|
147
|
-
fail ArgumentError, 'details cannot be nil'
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
@details = details
|
|
151
|
-
end
|
|
152
|
-
|
|
153
174
|
# Checks equality by comparing each attribute.
|
|
154
175
|
# @param [Object] Object to be compared
|
|
155
176
|
def ==(o)
|
|
156
177
|
return true if self.equal?(o)
|
|
157
178
|
self.class == o.class &&
|
|
158
179
|
reason == o.reason &&
|
|
159
|
-
|
|
180
|
+
at == o.at &&
|
|
181
|
+
tracking_id == o.tracking_id &&
|
|
182
|
+
smtp_status == o.smtp_status &&
|
|
183
|
+
server_message == o.server_message &&
|
|
184
|
+
category == o.category
|
|
160
185
|
end
|
|
161
186
|
|
|
162
187
|
# @see the `==` method
|
|
@@ -168,7 +193,7 @@ module Pingram
|
|
|
168
193
|
# Calculates hash code according to all attributes.
|
|
169
194
|
# @return [Integer] Hash code
|
|
170
195
|
def hash
|
|
171
|
-
[reason,
|
|
196
|
+
[reason, at, tracking_id, smtp_status, server_message, category].hash
|
|
172
197
|
end
|
|
173
198
|
|
|
174
199
|
# Builds the object from hash
|
|
@@ -14,13 +14,25 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
class
|
|
18
|
-
#
|
|
17
|
+
class PatchDomainRequest < ApiModelBase
|
|
18
|
+
# Receive mail for this domain. Leave this out to keep the current choice.
|
|
19
|
+
attr_accessor :inbound
|
|
20
|
+
|
|
21
|
+
# Record when someone opens mail from this domain. Leave this out to keep the current choice. You can record opens without recording clicks.
|
|
22
|
+
attr_accessor :open_tracking
|
|
23
|
+
|
|
24
|
+
# Record when someone clicks a link in mail from this domain. Leave this out to keep the current choice. You can record clicks without recording opens.
|
|
25
|
+
attr_accessor :click_tracking
|
|
26
|
+
|
|
27
|
+
# Host label for this domain, such as links or go. The domain name is added after it. Leave this out to keep the current host.
|
|
19
28
|
attr_accessor :tracking_subdomain
|
|
20
29
|
|
|
21
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
31
|
def self.attribute_map
|
|
23
32
|
{
|
|
33
|
+
:'inbound' => :'inbound',
|
|
34
|
+
:'open_tracking' => :'openTracking',
|
|
35
|
+
:'click_tracking' => :'clickTracking',
|
|
24
36
|
:'tracking_subdomain' => :'trackingSubdomain'
|
|
25
37
|
}
|
|
26
38
|
end
|
|
@@ -38,6 +50,9 @@ module Pingram
|
|
|
38
50
|
# Attribute type mapping.
|
|
39
51
|
def self.openapi_types
|
|
40
52
|
{
|
|
53
|
+
:'inbound' => :'Boolean',
|
|
54
|
+
:'open_tracking' => :'Boolean',
|
|
55
|
+
:'click_tracking' => :'Boolean',
|
|
41
56
|
:'tracking_subdomain' => :'String'
|
|
42
57
|
}
|
|
43
58
|
end
|
|
@@ -52,18 +67,30 @@ module Pingram
|
|
|
52
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
68
|
def initialize(attributes = {})
|
|
54
69
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::PatchDomainRequest` initialize method"
|
|
56
71
|
end
|
|
57
72
|
|
|
58
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
74
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
76
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::PatchDomainRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
78
|
end
|
|
64
79
|
h[k.to_sym] = v
|
|
65
80
|
}
|
|
66
81
|
|
|
82
|
+
if attributes.key?(:'inbound')
|
|
83
|
+
self.inbound = attributes[:'inbound']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'open_tracking')
|
|
87
|
+
self.open_tracking = attributes[:'open_tracking']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'click_tracking')
|
|
91
|
+
self.click_tracking = attributes[:'click_tracking']
|
|
92
|
+
end
|
|
93
|
+
|
|
67
94
|
if attributes.key?(:'tracking_subdomain')
|
|
68
95
|
self.tracking_subdomain = attributes[:'tracking_subdomain']
|
|
69
96
|
end
|
|
@@ -89,6 +116,9 @@ module Pingram
|
|
|
89
116
|
def ==(o)
|
|
90
117
|
return true if self.equal?(o)
|
|
91
118
|
self.class == o.class &&
|
|
119
|
+
inbound == o.inbound &&
|
|
120
|
+
open_tracking == o.open_tracking &&
|
|
121
|
+
click_tracking == o.click_tracking &&
|
|
92
122
|
tracking_subdomain == o.tracking_subdomain
|
|
93
123
|
end
|
|
94
124
|
|
|
@@ -101,7 +131,7 @@ module Pingram
|
|
|
101
131
|
# Calculates hash code according to all attributes.
|
|
102
132
|
# @return [Integer] Hash code
|
|
103
133
|
def hash
|
|
104
|
-
[tracking_subdomain].hash
|
|
134
|
+
[inbound, open_tracking, click_tracking, tracking_subdomain].hash
|
|
105
135
|
end
|
|
106
136
|
|
|
107
137
|
# Builds the object from hash
|