mailslurp_client 8.4.0 → 8.4.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: 9005d0f3b6653725d8c99997bde969c67c85d182407200ab1df23b8105635c8a
4
- data.tar.gz: c81db7a3da9ee55e22377a5c10a52f20c550bdc2ad20c70e6ce6183cca1c12f8
3
+ metadata.gz: 4cb78fa34deefcfbacb0fc0869299b8cbbaed2841bd53cd23b249dc073ef2414
4
+ data.tar.gz: b340f56704df070bcf97748a33ddcebb452684e11c745b4b2c289f4e77889d97
5
5
  SHA512:
6
- metadata.gz: 3910aefd959a7b28869636571e51b3a15d98073f8ff243919c3118a70a37ffbb810fd9f688ccedf47f62d5ace6be9ccc9af70d6dbeeb57ea882364676f6e8ed2
7
- data.tar.gz: ef868c5a8e1f3fd0c6c6b87d381b13d1fff3bcfe731330cc7e7e046f44cdeb520d54cf9a1db98270da6855a6b8f5ded0304e69b702157d7fc8c0167a8f3ed36b
6
+ metadata.gz: d4dd7529896f34076a28e421329676eceafe74e95841c66f2765483a4dad82762345e9c534886398a1a0e69232f62688f44a3028ae85fd69386084957252eeff
7
+ data.tar.gz: eb80474a178e52920d3419bc761dce06c585247e36f2a5ad9e8860cd40680015f995b3805c917417cf970f7a0c17e9f18293468eec5ce644772d6946e986c4d3
@@ -19,7 +19,6 @@ require 'mailslurp_client/configuration'
19
19
  # Models
20
20
  require 'mailslurp_client/models/alias_dto'
21
21
  require 'mailslurp_client/models/alias_projection'
22
- require 'mailslurp_client/models/alias_verification_result'
23
22
  require 'mailslurp_client/models/attachment_meta_data'
24
23
  require 'mailslurp_client/models/basic_auth_options'
25
24
  require 'mailslurp_client/models/bulk_send_email_options'
@@ -203,82 +203,6 @@ module MailSlurpClient
203
203
  return data, status_code, headers
204
204
  end
205
205
 
206
- # Get validation result from alias verification
207
- # Verify an email alias email address with the verification token that was emailed to the address
208
- # @param alias_id [String] aliasId
209
- # @param email_address [String] emailAddress
210
- # @param verification_token [String] verificationToken
211
- # @param [Hash] opts the optional parameters
212
- # @return [AliasVerificationResult]
213
- def get_alias_verification(alias_id, email_address, verification_token, opts = {})
214
- data, _status_code, _headers = get_alias_verification_with_http_info(alias_id, email_address, verification_token, opts)
215
- data
216
- end
217
-
218
- # Get validation result from alias verification
219
- # Verify an email alias email address with the verification token that was emailed to the address
220
- # @param alias_id [String] aliasId
221
- # @param email_address [String] emailAddress
222
- # @param verification_token [String] verificationToken
223
- # @param [Hash] opts the optional parameters
224
- # @return [Array<(AliasVerificationResult, Integer, Hash)>] AliasVerificationResult data, response status code and response headers
225
- def get_alias_verification_with_http_info(alias_id, email_address, verification_token, opts = {})
226
- if @api_client.config.debugging
227
- @api_client.config.logger.debug 'Calling API: AliasControllerApi.get_alias_verification ...'
228
- end
229
- # verify the required parameter 'alias_id' is set
230
- if @api_client.config.client_side_validation && alias_id.nil?
231
- fail ArgumentError, "Missing the required parameter 'alias_id' when calling AliasControllerApi.get_alias_verification"
232
- end
233
- # verify the required parameter 'email_address' is set
234
- if @api_client.config.client_side_validation && email_address.nil?
235
- fail ArgumentError, "Missing the required parameter 'email_address' when calling AliasControllerApi.get_alias_verification"
236
- end
237
- # verify the required parameter 'verification_token' is set
238
- if @api_client.config.client_side_validation && verification_token.nil?
239
- fail ArgumentError, "Missing the required parameter 'verification_token' when calling AliasControllerApi.get_alias_verification"
240
- end
241
- # resource path
242
- local_var_path = '/aliases/{aliasId}/verification'.sub('{' + 'aliasId' + '}', CGI.escape(alias_id.to_s))
243
-
244
- # query parameters
245
- query_params = opts[:query_params] || {}
246
- query_params[:'emailAddress'] = email_address
247
- query_params[:'verificationToken'] = verification_token
248
-
249
- # header parameters
250
- header_params = opts[:header_params] || {}
251
- # HTTP header 'Accept' (if needed)
252
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
253
-
254
- # form parameters
255
- form_params = opts[:form_params] || {}
256
-
257
- # http body (model)
258
- post_body = opts[:body]
259
-
260
- # return_type
261
- return_type = opts[:return_type] || 'AliasVerificationResult'
262
-
263
- # auth_names
264
- auth_names = opts[:auth_names] || ['API_KEY']
265
-
266
- new_options = opts.merge(
267
- :header_params => header_params,
268
- :query_params => query_params,
269
- :form_params => form_params,
270
- :body => post_body,
271
- :auth_names => auth_names,
272
- :return_type => return_type
273
- )
274
-
275
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
276
- if @api_client.config.debugging
277
- @api_client.config.logger.debug "API called: AliasControllerApi#get_alias_verification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
- end
279
- return data, status_code, headers
280
- end
281
-
282
206
  # Get all email aliases you have created
283
207
  # Get all email aliases in paginated form
284
208
  # @param [Hash] opts the optional parameters
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '8.4.0'
14
+ VERSION = '8.4.1'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.4.0
4
+ version: 8.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
@@ -43,7 +43,6 @@ files:
43
43
  - lib/mailslurp_client/configuration.rb
44
44
  - lib/mailslurp_client/models/alias_dto.rb
45
45
  - lib/mailslurp_client/models/alias_projection.rb
46
- - lib/mailslurp_client/models/alias_verification_result.rb
47
46
  - lib/mailslurp_client/models/attachment_meta_data.rb
48
47
  - lib/mailslurp_client/models/basic_auth_options.rb
49
48
  - lib/mailslurp_client/models/bulk_send_email_options.rb
@@ -1,234 +0,0 @@
1
- =begin
2
- #MailSlurp API
3
-
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
-
6
- The version of the OpenAPI document: 6.5.2
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module MailSlurpClient
16
- class AliasVerificationResult
17
- attr_accessor :alias_id
18
-
19
- attr_accessor :is_verified
20
-
21
- attr_accessor :message
22
-
23
- # Attribute mapping from ruby-style variable name to JSON key.
24
- def self.attribute_map
25
- {
26
- :'alias_id' => :'aliasId',
27
- :'is_verified' => :'isVerified',
28
- :'message' => :'message'
29
- }
30
- end
31
-
32
- # Attribute type mapping.
33
- def self.openapi_types
34
- {
35
- :'alias_id' => :'String',
36
- :'is_verified' => :'Boolean',
37
- :'message' => :'String'
38
- }
39
- end
40
-
41
- # List of attributes with nullable: true
42
- def self.openapi_nullable
43
- Set.new([
44
- ])
45
- end
46
-
47
- # Initializes the object
48
- # @param [Hash] attributes Model attributes in the form of hash
49
- def initialize(attributes = {})
50
- if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::AliasVerificationResult` initialize method"
52
- end
53
-
54
- # check to see if the attribute exists and convert string to symbol for hash key
55
- attributes = attributes.each_with_object({}) { |(k, v), h|
56
- if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::AliasVerificationResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
- end
59
- h[k.to_sym] = v
60
- }
61
-
62
- if attributes.key?(:'alias_id')
63
- self.alias_id = attributes[:'alias_id']
64
- end
65
-
66
- if attributes.key?(:'is_verified')
67
- self.is_verified = attributes[:'is_verified']
68
- end
69
-
70
- if attributes.key?(:'message')
71
- self.message = attributes[:'message']
72
- end
73
- end
74
-
75
- # Show invalid properties with the reasons. Usually used together with valid?
76
- # @return Array for valid properties with the reasons
77
- def list_invalid_properties
78
- invalid_properties = Array.new
79
- if @alias_id.nil?
80
- invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
81
- end
82
-
83
- if @is_verified.nil?
84
- invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
85
- end
86
-
87
- invalid_properties
88
- end
89
-
90
- # Check to see if the all the properties in the model are valid
91
- # @return true if the model is valid
92
- def valid?
93
- return false if @alias_id.nil?
94
- return false if @is_verified.nil?
95
- true
96
- end
97
-
98
- # Checks equality by comparing each attribute.
99
- # @param [Object] Object to be compared
100
- def ==(o)
101
- return true if self.equal?(o)
102
- self.class == o.class &&
103
- alias_id == o.alias_id &&
104
- is_verified == o.is_verified &&
105
- message == o.message
106
- end
107
-
108
- # @see the `==` method
109
- # @param [Object] Object to be compared
110
- def eql?(o)
111
- self == o
112
- end
113
-
114
- # Calculates hash code according to all attributes.
115
- # @return [Integer] Hash code
116
- def hash
117
- [alias_id, is_verified, message].hash
118
- end
119
-
120
- # Builds the object from hash
121
- # @param [Hash] attributes Model attributes in the form of hash
122
- # @return [Object] Returns the model itself
123
- def self.build_from_hash(attributes)
124
- new.build_from_hash(attributes)
125
- end
126
-
127
- # Builds the object from hash
128
- # @param [Hash] attributes Model attributes in the form of hash
129
- # @return [Object] Returns the model itself
130
- def build_from_hash(attributes)
131
- return nil unless attributes.is_a?(Hash)
132
- self.class.openapi_types.each_pair do |key, type|
133
- if type =~ /\AArray<(.*)>/i
134
- # check to ensure the input is an array given that the attribute
135
- # is documented as an array but the input is not
136
- if attributes[self.class.attribute_map[key]].is_a?(Array)
137
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
138
- end
139
- elsif !attributes[self.class.attribute_map[key]].nil?
140
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
141
- end # or else data not found in attributes(hash), not an issue as the data can be optional
142
- end
143
-
144
- self
145
- end
146
-
147
- # Deserializes the data based on type
148
- # @param string type Data type
149
- # @param string value Value to be deserialized
150
- # @return [Object] Deserialized data
151
- def _deserialize(type, value)
152
- case type.to_sym
153
- when :DateTime
154
- DateTime.parse(value)
155
- when :Date
156
- Date.parse(value)
157
- when :String
158
- value.to_s
159
- when :Integer
160
- value.to_i
161
- when :Float
162
- value.to_f
163
- when :Boolean
164
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
- true
166
- else
167
- false
168
- end
169
- when :Object
170
- # generic object (usually a Hash), return directly
171
- value
172
- when /\AArray<(?<inner_type>.+)>\z/
173
- inner_type = Regexp.last_match[:inner_type]
174
- value.map { |v| _deserialize(inner_type, v) }
175
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
- k_type = Regexp.last_match[:k_type]
177
- v_type = Regexp.last_match[:v_type]
178
- {}.tap do |hash|
179
- value.each do |k, v|
180
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
- end
182
- end
183
- else # model
184
- MailSlurpClient.const_get(type).build_from_hash(value)
185
- end
186
- end
187
-
188
- # Returns the string representation of the object
189
- # @return [String] String presentation of the object
190
- def to_s
191
- to_hash.to_s
192
- end
193
-
194
- # to_body is an alias to to_hash (backward compatibility)
195
- # @return [Hash] Returns the object in the form of hash
196
- def to_body
197
- to_hash
198
- end
199
-
200
- # Returns the object in the form of hash
201
- # @return [Hash] Returns the object in the form of hash
202
- def to_hash
203
- hash = {}
204
- self.class.attribute_map.each_pair do |attr, param|
205
- value = self.send(attr)
206
- if value.nil?
207
- is_nullable = self.class.openapi_nullable.include?(attr)
208
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
- end
210
-
211
- hash[param] = _to_hash(value)
212
- end
213
- hash
214
- end
215
-
216
- # Outputs non-array value in the form of hash
217
- # For object, use to_hash. Otherwise, just return the value
218
- # @param [Object] value Any valid value
219
- # @return [Hash] Returns the value in the form of hash
220
- def _to_hash(value)
221
- if value.is_a?(Array)
222
- value.compact.map { |v| _to_hash(v) }
223
- elsif value.is_a?(Hash)
224
- {}.tap do |hash|
225
- value.each { |k, v| hash[k] = _to_hash(v) }
226
- end
227
- elsif value.respond_to? :to_hash
228
- value.to_hash
229
- else
230
- value
231
- end
232
- end
233
- end
234
- end