Class: Sendpost::AutoWarmupPlan
- Inherits:
-
Object
- Object
- Sendpost::AutoWarmupPlan
- Defined in:
- lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb
Instance Attribute Summary collapse
-
#amazonworkmail_warmup_plan ⇒ Object
Amazon WorkMail warmup plan configuration in JSON format.
-
#aol_warmup_plan ⇒ Object
AOL warmup plan configuration in JSON format.
-
#att_warmup_plan ⇒ Object
AT&T warmup plan configuration in JSON format.
-
#barracuda_warmup_plan ⇒ Object
Barracuda warmup plan configuration in JSON format.
-
#checkpoint_warmup_plan ⇒ Object
Checkpoint warmup plan configuration in JSON format.
-
#ciscoironport_warmup_plan ⇒ Object
Cisco IronPort warmup plan configuration in JSON format.
-
#comcast_warmup_plan ⇒ Object
Comcast warmup plan configuration in JSON format.
-
#created ⇒ Object
UNIX epoch nano timestamp when the warmup plan was created.
-
#default_warmup_plan ⇒ Object
Default warmup plan configuration in JSON format.
-
#fortinet_warmup_plan ⇒ Object
Fortinet warmup plan configuration in JSON format.
-
#gmail_warmup_plan ⇒ Object
Gmail warmup plan configuration in JSON format.
-
#gmx_warmup_plan ⇒ Object
GMX warmup plan configuration in JSON format.
-
#googleworkspace_warmup_plan ⇒ Object
Google Workspace warmup plan configuration in JSON format.
-
#icloud_warmup_plan ⇒ Object
iCloud warmup plan configuration in JSON format.
-
#id ⇒ Object
Unique ID for the auto-warmup plan.
-
#mailru_warmup_plan ⇒ Object
Mail.ru warmup plan configuration in JSON format.
-
#microsoft_warmup_plan ⇒ Object
Microsoft warmup plan configuration in JSON format.
-
#mimecast_warmup_plan ⇒ Object
Mimecast warmup plan configuration in JSON format.
-
#name ⇒ Object
Name of the auto-warmup plan.
-
#office365_warmup_plan ⇒ Object
Office365 warmup plan configuration in JSON format.
-
#proofpoint_warmup_plan ⇒ Object
Proofpoint warmup plan configuration in JSON format.
-
#qq_warmup_plan ⇒ Object
QQ warmup plan configuration in JSON format.
-
#rackspace_warmup_plan ⇒ Object
Rackspace warmup plan configuration in JSON format.
-
#sophos_warmup_plan ⇒ Object
Sophos warmup plan configuration in JSON format.
-
#symantec_warmup_plan ⇒ Object
Symantec warmup plan configuration in JSON format.
-
#trendmicro_warmup_plan ⇒ Object
Trend Micro warmup plan configuration in JSON format.
-
#updated ⇒ Object
UNIX epoch nano timestamp when the warmup plan was last updated.
-
#warmup_interval ⇒ Object
Warmup interval in hours.
-
#yahoo_warmup_plan ⇒ Object
Yahoo warmup plan configuration in JSON format.
-
#yandex_warmup_plan ⇒ Object
Yandex warmup plan configuration in JSON format.
-
#zoho_warmup_plan ⇒ Object
Zoho warmup plan configuration in JSON format.
-
#zohobusiness_warmup_plan ⇒ Object
Zoho Business warmup plan configuration in JSON format.
Class Method Summary collapse
-
._deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ AutoWarmupPlan
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ AutoWarmupPlan
Initializes the object
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 208 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Sendpost::AutoWarmupPlan` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| if (!acceptable_attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Sendpost::AutoWarmupPlan`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'gmail_warmup_plan') self.gmail_warmup_plan = attributes[:'gmail_warmup_plan'] end if attributes.key?(:'yahoo_warmup_plan') self.yahoo_warmup_plan = attributes[:'yahoo_warmup_plan'] end if attributes.key?(:'aol_warmup_plan') self.aol_warmup_plan = attributes[:'aol_warmup_plan'] end if attributes.key?(:'microsoft_warmup_plan') self.microsoft_warmup_plan = attributes[:'microsoft_warmup_plan'] end if attributes.key?(:'comcast_warmup_plan') self.comcast_warmup_plan = attributes[:'comcast_warmup_plan'] end if attributes.key?(:'yandex_warmup_plan') self.yandex_warmup_plan = attributes[:'yandex_warmup_plan'] end if attributes.key?(:'gmx_warmup_plan') self.gmx_warmup_plan = attributes[:'gmx_warmup_plan'] end if attributes.key?(:'mailru_warmup_plan') self.mailru_warmup_plan = attributes[:'mailru_warmup_plan'] end if attributes.key?(:'icloud_warmup_plan') self.icloud_warmup_plan = attributes[:'icloud_warmup_plan'] end if attributes.key?(:'zoho_warmup_plan') self.zoho_warmup_plan = attributes[:'zoho_warmup_plan'] end if attributes.key?(:'qq_warmup_plan') self.qq_warmup_plan = attributes[:'qq_warmup_plan'] end if attributes.key?(:'default_warmup_plan') self.default_warmup_plan = attributes[:'default_warmup_plan'] end if attributes.key?(:'att_warmup_plan') self.att_warmup_plan = attributes[:'att_warmup_plan'] end if attributes.key?(:'office365_warmup_plan') self.office365_warmup_plan = attributes[:'office365_warmup_plan'] end if attributes.key?(:'googleworkspace_warmup_plan') self.googleworkspace_warmup_plan = attributes[:'googleworkspace_warmup_plan'] end if attributes.key?(:'proofpoint_warmup_plan') self.proofpoint_warmup_plan = attributes[:'proofpoint_warmup_plan'] end if attributes.key?(:'mimecast_warmup_plan') self.mimecast_warmup_plan = attributes[:'mimecast_warmup_plan'] end if attributes.key?(:'barracuda_warmup_plan') self. = attributes[:'barracuda_warmup_plan'] end if attributes.key?(:'ciscoironport_warmup_plan') self.ciscoironport_warmup_plan = attributes[:'ciscoironport_warmup_plan'] end if attributes.key?(:'rackspace_warmup_plan') self.rackspace_warmup_plan = attributes[:'rackspace_warmup_plan'] end if attributes.key?(:'zohobusiness_warmup_plan') self.zohobusiness_warmup_plan = attributes[:'zohobusiness_warmup_plan'] end if attributes.key?(:'amazonworkmail_warmup_plan') self.amazonworkmail_warmup_plan = attributes[:'amazonworkmail_warmup_plan'] end if attributes.key?(:'symantec_warmup_plan') self.symantec_warmup_plan = attributes[:'symantec_warmup_plan'] end if attributes.key?(:'fortinet_warmup_plan') self.fortinet_warmup_plan = attributes[:'fortinet_warmup_plan'] end if attributes.key?(:'sophos_warmup_plan') self.sophos_warmup_plan = attributes[:'sophos_warmup_plan'] end if attributes.key?(:'trendmicro_warmup_plan') self.trendmicro_warmup_plan = attributes[:'trendmicro_warmup_plan'] end if attributes.key?(:'checkpoint_warmup_plan') self.checkpoint_warmup_plan = attributes[:'checkpoint_warmup_plan'] end if attributes.key?(:'created') self.created = attributes[:'created'] end if attributes.key?(:'updated') self.updated = attributes[:'updated'] end if attributes.key?(:'warmup_interval') self.warmup_interval = attributes[:'warmup_interval'] end end |
Instance Attribute Details
#amazonworkmail_warmup_plan ⇒ Object
Amazon WorkMail warmup plan configuration in JSON format
88 89 90 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 88 def amazonworkmail_warmup_plan @amazonworkmail_warmup_plan end |
#aol_warmup_plan ⇒ Object
AOL warmup plan configuration in JSON format
31 32 33 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 31 def aol_warmup_plan @aol_warmup_plan end |
#att_warmup_plan ⇒ Object
AT&T warmup plan configuration in JSON format
61 62 63 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 61 def att_warmup_plan @att_warmup_plan end |
#barracuda_warmup_plan ⇒ Object
Barracuda warmup plan configuration in JSON format
76 77 78 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 76 def end |
#checkpoint_warmup_plan ⇒ Object
Checkpoint warmup plan configuration in JSON format
103 104 105 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 103 def checkpoint_warmup_plan @checkpoint_warmup_plan end |
#ciscoironport_warmup_plan ⇒ Object
Cisco IronPort warmup plan configuration in JSON format
79 80 81 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 79 def ciscoironport_warmup_plan @ciscoironport_warmup_plan end |
#comcast_warmup_plan ⇒ Object
Comcast warmup plan configuration in JSON format
37 38 39 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 37 def comcast_warmup_plan @comcast_warmup_plan end |
#created ⇒ Object
UNIX epoch nano timestamp when the warmup plan was created
106 107 108 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 106 def created @created end |
#default_warmup_plan ⇒ Object
Default warmup plan configuration in JSON format
58 59 60 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 58 def default_warmup_plan @default_warmup_plan end |
#fortinet_warmup_plan ⇒ Object
Fortinet warmup plan configuration in JSON format
94 95 96 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 94 def fortinet_warmup_plan @fortinet_warmup_plan end |
#gmail_warmup_plan ⇒ Object
Gmail warmup plan configuration in JSON format
25 26 27 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 25 def gmail_warmup_plan @gmail_warmup_plan end |
#gmx_warmup_plan ⇒ Object
GMX warmup plan configuration in JSON format
43 44 45 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 43 def gmx_warmup_plan @gmx_warmup_plan end |
#googleworkspace_warmup_plan ⇒ Object
Google Workspace warmup plan configuration in JSON format
67 68 69 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 67 def googleworkspace_warmup_plan @googleworkspace_warmup_plan end |
#icloud_warmup_plan ⇒ Object
iCloud warmup plan configuration in JSON format
49 50 51 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 49 def icloud_warmup_plan @icloud_warmup_plan end |
#id ⇒ Object
Unique ID for the auto-warmup plan
19 20 21 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 19 def id @id end |
#mailru_warmup_plan ⇒ Object
Mail.ru warmup plan configuration in JSON format
46 47 48 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 46 def mailru_warmup_plan @mailru_warmup_plan end |
#microsoft_warmup_plan ⇒ Object
Microsoft warmup plan configuration in JSON format
34 35 36 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 34 def microsoft_warmup_plan @microsoft_warmup_plan end |
#mimecast_warmup_plan ⇒ Object
Mimecast warmup plan configuration in JSON format
73 74 75 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 73 def mimecast_warmup_plan @mimecast_warmup_plan end |
#name ⇒ Object
Name of the auto-warmup plan
22 23 24 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 22 def name @name end |
#office365_warmup_plan ⇒ Object
Office365 warmup plan configuration in JSON format
64 65 66 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 64 def office365_warmup_plan @office365_warmup_plan end |
#proofpoint_warmup_plan ⇒ Object
Proofpoint warmup plan configuration in JSON format
70 71 72 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 70 def proofpoint_warmup_plan @proofpoint_warmup_plan end |
#qq_warmup_plan ⇒ Object
QQ warmup plan configuration in JSON format
55 56 57 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 55 def qq_warmup_plan @qq_warmup_plan end |
#rackspace_warmup_plan ⇒ Object
Rackspace warmup plan configuration in JSON format
82 83 84 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 82 def rackspace_warmup_plan @rackspace_warmup_plan end |
#sophos_warmup_plan ⇒ Object
Sophos warmup plan configuration in JSON format
97 98 99 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 97 def sophos_warmup_plan @sophos_warmup_plan end |
#symantec_warmup_plan ⇒ Object
Symantec warmup plan configuration in JSON format
91 92 93 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 91 def symantec_warmup_plan @symantec_warmup_plan end |
#trendmicro_warmup_plan ⇒ Object
Trend Micro warmup plan configuration in JSON format
100 101 102 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 100 def trendmicro_warmup_plan @trendmicro_warmup_plan end |
#updated ⇒ Object
UNIX epoch nano timestamp when the warmup plan was last updated
109 110 111 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 109 def updated @updated end |
#warmup_interval ⇒ Object
Warmup interval in hours
112 113 114 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 112 def warmup_interval @warmup_interval end |
#yahoo_warmup_plan ⇒ Object
Yahoo warmup plan configuration in JSON format
28 29 30 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 28 def yahoo_warmup_plan @yahoo_warmup_plan end |
#yandex_warmup_plan ⇒ Object
Yandex warmup plan configuration in JSON format
40 41 42 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 40 def yandex_warmup_plan @yandex_warmup_plan end |
#zoho_warmup_plan ⇒ Object
Zoho warmup plan configuration in JSON format
52 53 54 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 52 def zoho_warmup_plan @zoho_warmup_plan end |
#zohobusiness_warmup_plan ⇒ Object
Zoho Business warmup plan configuration in JSON format
85 86 87 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 85 def zohobusiness_warmup_plan @zohobusiness_warmup_plan end |
Class Method Details
._deserialize(type, value) ⇒ Object
Deserializes the data based on type
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 444 def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = Sendpost.const_get(type) klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about
153 154 155 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 153 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
158 159 160 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 158 def self.acceptable_attributes acceptable_attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 115 def self.attribute_map { :'id' => :'id', :'name' => :'name', :'gmail_warmup_plan' => :'gmailWarmupPlan', :'yahoo_warmup_plan' => :'yahooWarmupPlan', :'aol_warmup_plan' => :'aolWarmupPlan', :'microsoft_warmup_plan' => :'microsoftWarmupPlan', :'comcast_warmup_plan' => :'comcastWarmupPlan', :'yandex_warmup_plan' => :'yandexWarmupPlan', :'gmx_warmup_plan' => :'gmxWarmupPlan', :'mailru_warmup_plan' => :'mailruWarmupPlan', :'icloud_warmup_plan' => :'icloudWarmupPlan', :'zoho_warmup_plan' => :'zohoWarmupPlan', :'qq_warmup_plan' => :'qqWarmupPlan', :'default_warmup_plan' => :'defaultWarmupPlan', :'att_warmup_plan' => :'attWarmupPlan', :'office365_warmup_plan' => :'office365WarmupPlan', :'googleworkspace_warmup_plan' => :'googleworkspaceWarmupPlan', :'proofpoint_warmup_plan' => :'proofpointWarmupPlan', :'mimecast_warmup_plan' => :'mimecastWarmupPlan', :'barracuda_warmup_plan' => :'barracudaWarmupPlan', :'ciscoironport_warmup_plan' => :'ciscoironportWarmupPlan', :'rackspace_warmup_plan' => :'rackspaceWarmupPlan', :'zohobusiness_warmup_plan' => :'zohobusinessWarmupPlan', :'amazonworkmail_warmup_plan' => :'amazonworkmailWarmupPlan', :'symantec_warmup_plan' => :'symantecWarmupPlan', :'fortinet_warmup_plan' => :'fortinetWarmupPlan', :'sophos_warmup_plan' => :'sophosWarmupPlan', :'trendmicro_warmup_plan' => :'trendmicroWarmupPlan', :'checkpoint_warmup_plan' => :'checkpointWarmupPlan', :'created' => :'created', :'updated' => :'updated', :'warmup_interval' => :'warmupInterval' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 420 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
201 202 203 204 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 201 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 163 def self.openapi_types { :'id' => :'Integer', :'name' => :'String', :'gmail_warmup_plan' => :'String', :'yahoo_warmup_plan' => :'String', :'aol_warmup_plan' => :'String', :'microsoft_warmup_plan' => :'String', :'comcast_warmup_plan' => :'String', :'yandex_warmup_plan' => :'String', :'gmx_warmup_plan' => :'String', :'mailru_warmup_plan' => :'String', :'icloud_warmup_plan' => :'String', :'zoho_warmup_plan' => :'String', :'qq_warmup_plan' => :'String', :'default_warmup_plan' => :'String', :'att_warmup_plan' => :'String', :'office365_warmup_plan' => :'String', :'googleworkspace_warmup_plan' => :'String', :'proofpoint_warmup_plan' => :'String', :'mimecast_warmup_plan' => :'String', :'barracuda_warmup_plan' => :'String', :'ciscoironport_warmup_plan' => :'String', :'rackspace_warmup_plan' => :'String', :'zohobusiness_warmup_plan' => :'String', :'amazonworkmail_warmup_plan' => :'String', :'symantec_warmup_plan' => :'String', :'fortinet_warmup_plan' => :'String', :'sophos_warmup_plan' => :'String', :'trendmicro_warmup_plan' => :'String', :'checkpoint_warmup_plan' => :'String', :'created' => :'Integer', :'updated' => :'Integer', :'warmup_interval' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 368 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && gmail_warmup_plan == o.gmail_warmup_plan && yahoo_warmup_plan == o.yahoo_warmup_plan && aol_warmup_plan == o.aol_warmup_plan && microsoft_warmup_plan == o.microsoft_warmup_plan && comcast_warmup_plan == o.comcast_warmup_plan && yandex_warmup_plan == o.yandex_warmup_plan && gmx_warmup_plan == o.gmx_warmup_plan && mailru_warmup_plan == o.mailru_warmup_plan && icloud_warmup_plan == o.icloud_warmup_plan && zoho_warmup_plan == o.zoho_warmup_plan && qq_warmup_plan == o.qq_warmup_plan && default_warmup_plan == o.default_warmup_plan && att_warmup_plan == o.att_warmup_plan && office365_warmup_plan == o.office365_warmup_plan && googleworkspace_warmup_plan == o.googleworkspace_warmup_plan && proofpoint_warmup_plan == o.proofpoint_warmup_plan && mimecast_warmup_plan == o.mimecast_warmup_plan && == o. && ciscoironport_warmup_plan == o.ciscoironport_warmup_plan && rackspace_warmup_plan == o.rackspace_warmup_plan && zohobusiness_warmup_plan == o.zohobusiness_warmup_plan && amazonworkmail_warmup_plan == o.amazonworkmail_warmup_plan && symantec_warmup_plan == o.symantec_warmup_plan && fortinet_warmup_plan == o.fortinet_warmup_plan && sophos_warmup_plan == o.sophos_warmup_plan && trendmicro_warmup_plan == o.trendmicro_warmup_plan && checkpoint_warmup_plan == o.checkpoint_warmup_plan && created == o.created && updated == o.updated && warmup_interval == o.warmup_interval end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
515 516 517 518 519 520 521 522 523 524 525 526 527 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 515 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#eql?(o) ⇒ Boolean
407 408 409 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 407 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
413 414 415 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 413 def hash [id, name, gmail_warmup_plan, yahoo_warmup_plan, aol_warmup_plan, microsoft_warmup_plan, comcast_warmup_plan, yandex_warmup_plan, gmx_warmup_plan, mailru_warmup_plan, icloud_warmup_plan, zoho_warmup_plan, qq_warmup_plan, default_warmup_plan, att_warmup_plan, office365_warmup_plan, googleworkspace_warmup_plan, proofpoint_warmup_plan, mimecast_warmup_plan, , ciscoironport_warmup_plan, rackspace_warmup_plan, zohobusiness_warmup_plan, amazonworkmail_warmup_plan, symantec_warmup_plan, fortinet_warmup_plan, sophos_warmup_plan, trendmicro_warmup_plan, checkpoint_warmup_plan, created, updated, warmup_interval].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
353 354 355 356 357 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 353 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
491 492 493 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 491 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
497 498 499 500 501 502 503 504 505 506 507 508 509 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 497 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
485 486 487 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 485 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
361 362 363 364 |
# File 'lib/sendpost_ruby_sdk/models/auto_warmup_plan.rb', line 361 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' true end |