mailslurp_client 11.0.0 → 11.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5df6d22ba2d40ac2dd06298d8fe6c6c8bc609820d32b5844726c2554315da10
4
- data.tar.gz: b7c7f99d1a6a5e48966e31a72fc1aed3a920736ab8d561d0e6b4703e9217dec3
3
+ metadata.gz: 48e7fae0e9bcd33c235827e7f0d7b10786b6a7c59c20da934c7be45f0a73885b
4
+ data.tar.gz: 8becaec583be3dce42d0d3fdb42bd406918c64a4a823c751a256dc3b0a19d3ae
5
5
  SHA512:
6
- metadata.gz: 3894ac016bb3628a14958d2cf973be12b3e4b3bf73185c6b17b46f8303207039e75e6097a0c3a1792b894ffb038b4ded6c6d9ec0996b084310dcabc199feca8e
7
- data.tar.gz: 7f38b2f109f313afbaf743da8766adc5c80872928d50efbc3a4a9e5ac6224b3d4157cf07cbc0d771549c9a059589851fd0660093ede2bca5b6a93665915eba18
6
+ metadata.gz: 6f1f519904fd26c0c72f26161ea7ab9993ce232a6ad1fab303ff5039eb84c3a1ebb1e324fa1b4057d0514354d2f822c337a7e7cdf525c250cd124e4faf0fcf60
7
+ data.tar.gz: 6d66a00913826d5a6404da4559cafea4b25ca1fd4d7e59df966c3ed3b135324b438bb8377f81d2917f488983c731ffe9cb8377b5d4ed0a127553f9ad595b556c
@@ -15,14 +15,14 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # DNS lookup result. Includes record type, time to live, raw response, and name value for the name server response.
17
17
  class DNSLookupResult
18
- attr_accessor :data
18
+ attr_accessor :name
19
+
20
+ attr_accessor :record_entries
19
21
 
20
22
  attr_accessor :record_type
21
23
 
22
24
  attr_accessor :ttl
23
25
 
24
- attr_accessor :value
25
-
26
26
  class EnumAttributeValidator
27
27
  attr_reader :datatype
28
28
  attr_reader :allowable_values
@@ -48,20 +48,20 @@ module MailSlurpClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'data' => :'data',
51
+ :'name' => :'name',
52
+ :'record_entries' => :'recordEntries',
52
53
  :'record_type' => :'recordType',
53
- :'ttl' => :'ttl',
54
- :'value' => :'value'
54
+ :'ttl' => :'ttl'
55
55
  }
56
56
  end
57
57
 
58
58
  # Attribute type mapping.
59
59
  def self.openapi_types
60
60
  {
61
- :'data' => :'String',
61
+ :'name' => :'String',
62
+ :'record_entries' => :'Array<String>',
62
63
  :'record_type' => :'String',
63
- :'ttl' => :'Integer',
64
- :'value' => :'String'
64
+ :'ttl' => :'Integer'
65
65
  }
66
66
  end
67
67
 
@@ -86,8 +86,14 @@ module MailSlurpClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'data')
90
- self.data = attributes[:'data']
89
+ if attributes.key?(:'name')
90
+ self.name = attributes[:'name']
91
+ end
92
+
93
+ if attributes.key?(:'record_entries')
94
+ if (value = attributes[:'record_entries']).is_a?(Array)
95
+ self.record_entries = value
96
+ end
91
97
  end
92
98
 
93
99
  if attributes.key?(:'record_type')
@@ -97,18 +103,18 @@ module MailSlurpClient
97
103
  if attributes.key?(:'ttl')
98
104
  self.ttl = attributes[:'ttl']
99
105
  end
100
-
101
- if attributes.key?(:'value')
102
- self.value = attributes[:'value']
103
- end
104
106
  end
105
107
 
106
108
  # Show invalid properties with the reasons. Usually used together with valid?
107
109
  # @return Array for valid properties with the reasons
108
110
  def list_invalid_properties
109
111
  invalid_properties = Array.new
110
- if @data.nil?
111
- invalid_properties.push('invalid value for "data", data cannot be nil.')
112
+ if @name.nil?
113
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
114
+ end
115
+
116
+ if @record_entries.nil?
117
+ invalid_properties.push('invalid value for "record_entries", record_entries cannot be nil.')
112
118
  end
113
119
 
114
120
  if @record_type.nil?
@@ -119,22 +125,18 @@ module MailSlurpClient
119
125
  invalid_properties.push('invalid value for "ttl", ttl cannot be nil.')
120
126
  end
121
127
 
122
- if @value.nil?
123
- invalid_properties.push('invalid value for "value", value cannot be nil.')
124
- end
125
-
126
128
  invalid_properties
127
129
  end
128
130
 
129
131
  # Check to see if the all the properties in the model are valid
130
132
  # @return true if the model is valid
131
133
  def valid?
132
- return false if @data.nil?
134
+ return false if @name.nil?
135
+ return false if @record_entries.nil?
133
136
  return false if @record_type.nil?
134
137
  record_type_validator = EnumAttributeValidator.new('String', ["A", "NS", "MD", "MF", "CNAME", "SOA", "MB", "MG", "MR", "NULL", "WKS", "PTR", "HINFO", "MINFO", "MX", "TXT", "RP", "AFSDB", "X25", "ISDN", "RT", "NSAP", "NSAP_PTR", "SIG", "KEY", "PX", "GPOS", "AAAA", "LOC", "NXT", "EID", "NIMLOC", "SRV", "ATMA", "NAPTR", "KX", "CERT", "A6", "DNAME", "SINK", "OPT", "APL", "DS", "SSHFP", "IPSECKEY", "RRSIG", "NSEC", "DNSKEY", "DHCID", "NSEC3", "NSEC3PARAM", "TLSA", "SMIMEA", "HIP", "NINFO", "RKEY", "TALINK", "CDS", "CDNSKEY", "OPENPGPKEY", "CSYNC", "ZONEMD", "SVCB", "HTTPS", "SPF", "UINFO", "UID", "GID", "UNSPEC", "NID", "L32", "L64", "LP", "EUI48", "EUI64", "TKEY", "TSIG", "IXFR", "AXFR", "MAILB", "MAILA", "ANY", "URI", "CAA", "AVC", "DOA", "AMTRELAY", "TA", "DLV"])
135
138
  return false unless record_type_validator.valid?(@record_type)
136
139
  return false if @ttl.nil?
137
- return false if @value.nil?
138
140
  true
139
141
  end
140
142
 
@@ -153,10 +155,10 @@ module MailSlurpClient
153
155
  def ==(o)
154
156
  return true if self.equal?(o)
155
157
  self.class == o.class &&
156
- data == o.data &&
158
+ name == o.name &&
159
+ record_entries == o.record_entries &&
157
160
  record_type == o.record_type &&
158
- ttl == o.ttl &&
159
- value == o.value
161
+ ttl == o.ttl
160
162
  end
161
163
 
162
164
  # @see the `==` method
@@ -168,7 +170,7 @@ module MailSlurpClient
168
170
  # Calculates hash code according to all attributes.
169
171
  # @return [Integer] Hash code
170
172
  def hash
171
- [data, record_type, ttl, value].hash
173
+ [name, record_entries, record_type, ttl].hash
172
174
  end
173
175
 
174
176
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '11.0.0'
14
+ VERSION = '11.0.1'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.0
4
+ version: 11.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-10 00:00:00.000000000 Z
11
+ date: 2021-01-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.