sendpost_ruby_sdk 2.0.0 → 2.0.2

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.
@@ -68,6 +68,48 @@ module Sendpost
68
68
  # Configuration for AT&T delivery settings in JSON format
69
69
  attr_accessor :att_settings
70
70
 
71
+ # Configuration for Office365 delivery settings in JSON format
72
+ attr_accessor :office365_settings
73
+
74
+ # Configuration for Google Workspace delivery settings in JSON format
75
+ attr_accessor :googleworkspace_settings
76
+
77
+ # Configuration for Proofpoint delivery settings in JSON format
78
+ attr_accessor :proofpoint_settings
79
+
80
+ # Configuration for Mimecast delivery settings in JSON format
81
+ attr_accessor :mimecast_settings
82
+
83
+ # Configuration for Barracuda delivery settings in JSON format
84
+ attr_accessor :barracuda_settings
85
+
86
+ # Configuration for Cisco IronPort delivery settings in JSON format
87
+ attr_accessor :ciscoironport_settings
88
+
89
+ # Configuration for Rackspace delivery settings in JSON format
90
+ attr_accessor :rackspace_settings
91
+
92
+ # Configuration for Zoho Business delivery settings in JSON format
93
+ attr_accessor :zohobusiness_settings
94
+
95
+ # Configuration for Amazon WorkMail delivery settings in JSON format
96
+ attr_accessor :amazonworkmail_settings
97
+
98
+ # Configuration for Symantec delivery settings in JSON format
99
+ attr_accessor :symantec_settings
100
+
101
+ # Configuration for Fortinet delivery settings in JSON format
102
+ attr_accessor :fortinet_settings
103
+
104
+ # Configuration for Sophos delivery settings in JSON format
105
+ attr_accessor :sophos_settings
106
+
107
+ # Configuration for TrendMicro delivery settings in JSON format
108
+ attr_accessor :trendmicro_settings
109
+
110
+ # Configuration for CheckPoint delivery settings in JSON format
111
+ attr_accessor :checkpoint_settings
112
+
71
113
  # The timestamp (UNIX epoch) when the IP was created
72
114
  attr_accessor :created
73
115
 
@@ -83,6 +125,9 @@ module Sendpost
83
125
  # The auto-warmup plan associated with the IP. Can be null if no warmup plan is assigned.
84
126
  attr_accessor :auto_warmup_plan
85
127
 
128
+ # Labels associated with the IP
129
+ attr_accessor :labels
130
+
86
131
  # Attribute mapping from ruby-style variable name to JSON key.
87
132
  def self.attribute_map
88
133
  {
@@ -104,11 +149,26 @@ module Sendpost
104
149
  :'qq_settings' => :'qqSettings',
105
150
  :'default_settings' => :'defaultSettings',
106
151
  :'att_settings' => :'attSettings',
152
+ :'office365_settings' => :'office365Settings',
153
+ :'googleworkspace_settings' => :'googleworkspaceSettings',
154
+ :'proofpoint_settings' => :'proofpointSettings',
155
+ :'mimecast_settings' => :'mimecastSettings',
156
+ :'barracuda_settings' => :'barracudaSettings',
157
+ :'ciscoironport_settings' => :'ciscoironportSettings',
158
+ :'rackspace_settings' => :'rackspaceSettings',
159
+ :'zohobusiness_settings' => :'zohobusinessSettings',
160
+ :'amazonworkmail_settings' => :'amazonworkmailSettings',
161
+ :'symantec_settings' => :'symantecSettings',
162
+ :'fortinet_settings' => :'fortinetSettings',
163
+ :'sophos_settings' => :'sophosSettings',
164
+ :'trendmicro_settings' => :'trendmicroSettings',
165
+ :'checkpoint_settings' => :'checkpointSettings',
107
166
  :'created' => :'created',
108
167
  :'infra_classification' => :'infraClassification',
109
168
  :'infra_monitor' => :'infraMonitor',
110
169
  :'state' => :'state',
111
- :'auto_warmup_plan' => :'autoWarmupPlan'
170
+ :'auto_warmup_plan' => :'autoWarmupPlan',
171
+ :'labels' => :'labels'
112
172
  }
113
173
  end
114
174
 
@@ -143,11 +203,26 @@ module Sendpost
143
203
  :'qq_settings' => :'String',
144
204
  :'default_settings' => :'String',
145
205
  :'att_settings' => :'String',
206
+ :'office365_settings' => :'String',
207
+ :'googleworkspace_settings' => :'String',
208
+ :'proofpoint_settings' => :'String',
209
+ :'mimecast_settings' => :'String',
210
+ :'barracuda_settings' => :'String',
211
+ :'ciscoironport_settings' => :'String',
212
+ :'rackspace_settings' => :'String',
213
+ :'zohobusiness_settings' => :'String',
214
+ :'amazonworkmail_settings' => :'String',
215
+ :'symantec_settings' => :'String',
216
+ :'fortinet_settings' => :'String',
217
+ :'sophos_settings' => :'String',
218
+ :'trendmicro_settings' => :'String',
219
+ :'checkpoint_settings' => :'String',
146
220
  :'created' => :'Integer',
147
221
  :'infra_classification' => :'String',
148
222
  :'infra_monitor' => :'Boolean',
149
223
  :'state' => :'Integer',
150
- :'auto_warmup_plan' => :'AutoWarmupPlan'
224
+ :'auto_warmup_plan' => :'AutoWarmupPlan',
225
+ :'labels' => :'Array<Label>'
151
226
  }
152
227
  end
153
228
 
@@ -249,6 +324,62 @@ module Sendpost
249
324
  self.att_settings = attributes[:'att_settings']
250
325
  end
251
326
 
327
+ if attributes.key?(:'office365_settings')
328
+ self.office365_settings = attributes[:'office365_settings']
329
+ end
330
+
331
+ if attributes.key?(:'googleworkspace_settings')
332
+ self.googleworkspace_settings = attributes[:'googleworkspace_settings']
333
+ end
334
+
335
+ if attributes.key?(:'proofpoint_settings')
336
+ self.proofpoint_settings = attributes[:'proofpoint_settings']
337
+ end
338
+
339
+ if attributes.key?(:'mimecast_settings')
340
+ self.mimecast_settings = attributes[:'mimecast_settings']
341
+ end
342
+
343
+ if attributes.key?(:'barracuda_settings')
344
+ self.barracuda_settings = attributes[:'barracuda_settings']
345
+ end
346
+
347
+ if attributes.key?(:'ciscoironport_settings')
348
+ self.ciscoironport_settings = attributes[:'ciscoironport_settings']
349
+ end
350
+
351
+ if attributes.key?(:'rackspace_settings')
352
+ self.rackspace_settings = attributes[:'rackspace_settings']
353
+ end
354
+
355
+ if attributes.key?(:'zohobusiness_settings')
356
+ self.zohobusiness_settings = attributes[:'zohobusiness_settings']
357
+ end
358
+
359
+ if attributes.key?(:'amazonworkmail_settings')
360
+ self.amazonworkmail_settings = attributes[:'amazonworkmail_settings']
361
+ end
362
+
363
+ if attributes.key?(:'symantec_settings')
364
+ self.symantec_settings = attributes[:'symantec_settings']
365
+ end
366
+
367
+ if attributes.key?(:'fortinet_settings')
368
+ self.fortinet_settings = attributes[:'fortinet_settings']
369
+ end
370
+
371
+ if attributes.key?(:'sophos_settings')
372
+ self.sophos_settings = attributes[:'sophos_settings']
373
+ end
374
+
375
+ if attributes.key?(:'trendmicro_settings')
376
+ self.trendmicro_settings = attributes[:'trendmicro_settings']
377
+ end
378
+
379
+ if attributes.key?(:'checkpoint_settings')
380
+ self.checkpoint_settings = attributes[:'checkpoint_settings']
381
+ end
382
+
252
383
  if attributes.key?(:'created')
253
384
  self.created = attributes[:'created']
254
385
  else
@@ -270,6 +401,12 @@ module Sendpost
270
401
  if attributes.key?(:'auto_warmup_plan')
271
402
  self.auto_warmup_plan = attributes[:'auto_warmup_plan']
272
403
  end
404
+
405
+ if attributes.key?(:'labels')
406
+ if (value = attributes[:'labels']).is_a?(Array)
407
+ self.labels = value
408
+ end
409
+ end
273
410
  end
274
411
 
275
412
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -355,11 +492,26 @@ module Sendpost
355
492
  qq_settings == o.qq_settings &&
356
493
  default_settings == o.default_settings &&
357
494
  att_settings == o.att_settings &&
495
+ office365_settings == o.office365_settings &&
496
+ googleworkspace_settings == o.googleworkspace_settings &&
497
+ proofpoint_settings == o.proofpoint_settings &&
498
+ mimecast_settings == o.mimecast_settings &&
499
+ barracuda_settings == o.barracuda_settings &&
500
+ ciscoironport_settings == o.ciscoironport_settings &&
501
+ rackspace_settings == o.rackspace_settings &&
502
+ zohobusiness_settings == o.zohobusiness_settings &&
503
+ amazonworkmail_settings == o.amazonworkmail_settings &&
504
+ symantec_settings == o.symantec_settings &&
505
+ fortinet_settings == o.fortinet_settings &&
506
+ sophos_settings == o.sophos_settings &&
507
+ trendmicro_settings == o.trendmicro_settings &&
508
+ checkpoint_settings == o.checkpoint_settings &&
358
509
  created == o.created &&
359
510
  infra_classification == o.infra_classification &&
360
511
  infra_monitor == o.infra_monitor &&
361
512
  state == o.state &&
362
- auto_warmup_plan == o.auto_warmup_plan
513
+ auto_warmup_plan == o.auto_warmup_plan &&
514
+ labels == o.labels
363
515
  end
364
516
 
365
517
  # @see the `==` method
@@ -371,7 +523,7 @@ module Sendpost
371
523
  # Calculates hash code according to all attributes.
372
524
  # @return [Integer] Hash code
373
525
  def hash
374
- [id, public_ip, system_domain, reverse_dns_hostname, type, gmail_settings, yahoo_settings, aol_settings, microsoft_settings, comcast_settings, yandex_settings, gmx_settings, mailru_settings, icloud_settings, zoho_settings, qq_settings, default_settings, att_settings, created, infra_classification, infra_monitor, state, auto_warmup_plan].hash
526
+ [id, public_ip, system_domain, reverse_dns_hostname, type, gmail_settings, yahoo_settings, aol_settings, microsoft_settings, comcast_settings, yandex_settings, gmx_settings, mailru_settings, icloud_settings, zoho_settings, qq_settings, default_settings, att_settings, office365_settings, googleworkspace_settings, proofpoint_settings, mimecast_settings, barracuda_settings, ciscoironport_settings, rackspace_settings, zohobusiness_settings, amazonworkmail_settings, symantec_settings, fortinet_settings, sophos_settings, trendmicro_settings, checkpoint_settings, created, infra_classification, infra_monitor, state, auto_warmup_plan, labels].hash
375
527
  end
376
528
 
377
529
  # Builds the object from hash
@@ -19,12 +19,18 @@ module Sendpost
19
19
 
20
20
  attr_accessor :name
21
21
 
22
+ # Type of IP pool (0 = Shared, 1 = Dedicated)
23
+ attr_accessor :type
24
+
22
25
  attr_accessor :created
23
26
 
24
27
  attr_accessor :ips
25
28
 
26
29
  attr_accessor :third_party_sending_providers
27
30
 
31
+ # Related account IP pools
32
+ attr_accessor :to_account_ip_pools
33
+
28
34
  attr_accessor :routing_strategy
29
35
 
30
36
  attr_accessor :routing_meta_data
@@ -49,9 +55,11 @@ module Sendpost
49
55
  {
50
56
  :'id' => :'id',
51
57
  :'name' => :'name',
58
+ :'type' => :'type',
52
59
  :'created' => :'created',
53
60
  :'ips' => :'ips',
54
61
  :'third_party_sending_providers' => :'thirdPartySendingProviders',
62
+ :'to_account_ip_pools' => :'toAccountIPPools',
55
63
  :'routing_strategy' => :'routingStrategy',
56
64
  :'routing_meta_data' => :'routingMetaData',
57
65
  :'auto_warmup_enabled' => :'autoWarmupEnabled',
@@ -78,9 +86,11 @@ module Sendpost
78
86
  {
79
87
  :'id' => :'Integer',
80
88
  :'name' => :'String',
89
+ :'type' => :'Integer',
81
90
  :'created' => :'Integer',
82
91
  :'ips' => :'Array<IP>',
83
92
  :'third_party_sending_providers' => :'Array<ThirdPartySendingProvider>',
93
+ :'to_account_ip_pools' => :'Array<IPPool>',
84
94
  :'routing_strategy' => :'Integer',
85
95
  :'routing_meta_data' => :'String',
86
96
  :'auto_warmup_enabled' => :'Boolean',
@@ -122,6 +132,10 @@ module Sendpost
122
132
  self.name = attributes[:'name']
123
133
  end
124
134
 
135
+ if attributes.key?(:'type')
136
+ self.type = attributes[:'type']
137
+ end
138
+
125
139
  if attributes.key?(:'created')
126
140
  self.created = attributes[:'created']
127
141
  end
@@ -138,6 +152,12 @@ module Sendpost
138
152
  end
139
153
  end
140
154
 
155
+ if attributes.key?(:'to_account_ip_pools')
156
+ if (value = attributes[:'to_account_ip_pools']).is_a?(Array)
157
+ self.to_account_ip_pools = value
158
+ end
159
+ end
160
+
141
161
  if attributes.key?(:'routing_strategy')
142
162
  self.routing_strategy = attributes[:'routing_strategy']
143
163
  end
@@ -193,9 +213,11 @@ module Sendpost
193
213
  self.class == o.class &&
194
214
  id == o.id &&
195
215
  name == o.name &&
216
+ type == o.type &&
196
217
  created == o.created &&
197
218
  ips == o.ips &&
198
219
  third_party_sending_providers == o.third_party_sending_providers &&
220
+ to_account_ip_pools == o.to_account_ip_pools &&
199
221
  routing_strategy == o.routing_strategy &&
200
222
  routing_meta_data == o.routing_meta_data &&
201
223
  auto_warmup_enabled == o.auto_warmup_enabled &&
@@ -215,7 +237,7 @@ module Sendpost
215
237
  # Calculates hash code according to all attributes.
216
238
  # @return [Integer] Hash code
217
239
  def hash
218
- [id, name, created, ips, third_party_sending_providers, routing_strategy, routing_meta_data, auto_warmup_enabled, infra_monitor, ip_domain_warmup_status, should_overflow, overflow_pool_name, warmup_interval].hash
240
+ [id, name, type, created, ips, third_party_sending_providers, to_account_ip_pools, routing_strategy, routing_meta_data, auto_warmup_enabled, infra_monitor, ip_domain_warmup_status, should_overflow, overflow_pool_name, warmup_interval].hash
219
241
  end
220
242
 
221
243
  # Builds the object from hash
@@ -27,6 +27,15 @@ module Sendpost
27
27
 
28
28
  attr_accessor :overflow_pool
29
29
 
30
+ # Warmup interval in hours. Must be greater than 0.
31
+ attr_accessor :warmup_interval
32
+
33
+ # Overflow strategy (0 = None, 1 = Use overflow pool)
34
+ attr_accessor :overflow_strategy
35
+
36
+ # Name of the overflow pool (required if overflowStrategy is 1)
37
+ attr_accessor :overflow_pool_name
38
+
30
39
  # Attribute mapping from ruby-style variable name to JSON key.
31
40
  def self.attribute_map
32
41
  {
@@ -35,7 +44,10 @@ module Sendpost
35
44
  :'tpsps' => :'tpsps',
36
45
  :'routing_strategy' => :'routingStrategy',
37
46
  :'routing_meta_data' => :'routingMetaData',
38
- :'overflow_pool' => :'overflowPool'
47
+ :'overflow_pool' => :'overflowPool',
48
+ :'warmup_interval' => :'warmupInterval',
49
+ :'overflow_strategy' => :'overflowStrategy',
50
+ :'overflow_pool_name' => :'overflowPoolName'
39
51
  }
40
52
  end
41
53
 
@@ -57,7 +69,10 @@ module Sendpost
57
69
  :'tpsps' => :'Array<Integer>',
58
70
  :'routing_strategy' => :'Integer',
59
71
  :'routing_meta_data' => :'String',
60
- :'overflow_pool' => :'Boolean'
72
+ :'overflow_pool' => :'Boolean',
73
+ :'warmup_interval' => :'Integer',
74
+ :'overflow_strategy' => :'Integer',
75
+ :'overflow_pool_name' => :'String'
61
76
  }
62
77
  end
63
78
 
@@ -110,6 +125,18 @@ module Sendpost
110
125
  if attributes.key?(:'overflow_pool')
111
126
  self.overflow_pool = attributes[:'overflow_pool']
112
127
  end
128
+
129
+ if attributes.key?(:'warmup_interval')
130
+ self.warmup_interval = attributes[:'warmup_interval']
131
+ end
132
+
133
+ if attributes.key?(:'overflow_strategy')
134
+ self.overflow_strategy = attributes[:'overflow_strategy']
135
+ end
136
+
137
+ if attributes.key?(:'overflow_pool_name')
138
+ self.overflow_pool_name = attributes[:'overflow_pool_name']
139
+ end
113
140
  end
114
141
 
115
142
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -137,7 +164,10 @@ module Sendpost
137
164
  tpsps == o.tpsps &&
138
165
  routing_strategy == o.routing_strategy &&
139
166
  routing_meta_data == o.routing_meta_data &&
140
- overflow_pool == o.overflow_pool
167
+ overflow_pool == o.overflow_pool &&
168
+ warmup_interval == o.warmup_interval &&
169
+ overflow_strategy == o.overflow_strategy &&
170
+ overflow_pool_name == o.overflow_pool_name
141
171
  end
142
172
 
143
173
  # @see the `==` method
@@ -149,7 +179,7 @@ module Sendpost
149
179
  # Calculates hash code according to all attributes.
150
180
  # @return [Integer] Hash code
151
181
  def hash
152
- [name, ips, tpsps, routing_strategy, routing_meta_data, overflow_pool].hash
182
+ [name, ips, tpsps, routing_strategy, routing_meta_data, overflow_pool, warmup_interval, overflow_strategy, overflow_pool_name].hash
153
183
  end
154
184
 
155
185
  # Builds the object from hash
@@ -18,13 +18,13 @@ module Sendpost
18
18
  # Date for which stats are retrieved (UTC).
19
19
  attr_accessor :date
20
20
 
21
- attr_accessor :stats
21
+ attr_accessor :stat
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
26
  :'date' => :'date',
27
- :'stats' => :'stats'
27
+ :'stat' => :'stat'
28
28
  }
29
29
  end
30
30
 
@@ -42,7 +42,7 @@ module Sendpost
42
42
  def self.openapi_types
43
43
  {
44
44
  :'date' => :'Date',
45
- :'stats' => :'StatStats'
45
+ :'stat' => :'StatStat'
46
46
  }
47
47
  end
48
48
 
@@ -72,8 +72,8 @@ module Sendpost
72
72
  self.date = attributes[:'date']
73
73
  end
74
74
 
75
- if attributes.key?(:'stats')
76
- self.stats = attributes[:'stats']
75
+ if attributes.key?(:'stat')
76
+ self.stat = attributes[:'stat']
77
77
  end
78
78
  end
79
79
 
@@ -98,7 +98,7 @@ module Sendpost
98
98
  return true if self.equal?(o)
99
99
  self.class == o.class &&
100
100
  date == o.date &&
101
- stats == o.stats
101
+ stat == o.stat
102
102
  end
103
103
 
104
104
  # @see the `==` method
@@ -110,7 +110,7 @@ module Sendpost
110
110
  # Calculates hash code according to all attributes.
111
111
  # @return [Integer] Hash code
112
112
  def hash
113
- [date, stats].hash
113
+ [date, stat].hash
114
114
  end
115
115
 
116
116
  # Builds the object from hash