mailslurp_client 15.0.8 → 15.1.3

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: b48c90c8c7ef4dc70280caf2bdcdc5391377922b5eb6fbbd77d26f6a7f0888b9
4
- data.tar.gz: 4888d579ac0cf3130cb99cc5b648c10a1187f7cfa8cb6e99c5d9b46a8fd0d650
3
+ metadata.gz: 714c15cec5a04555b1ac49a46603d5cf36de945900e070c10756e11f8b3de2d5
4
+ data.tar.gz: 432e784c1ef7fec0f6ff3f7520f96f96f26627c746784b66bc178ddf204f8f70
5
5
  SHA512:
6
- metadata.gz: 26a5ee29aa3225d65e54f9e86041aec98fa2fc9cefddbfa45f0a9f05ef801325690d473944f5a03a9665432b19ae212bf8c4b79318b59a7d6bd85761e20b0fde
7
- data.tar.gz: 799ffb3e26b414fd2115b72ba181a174e9158fd484c1d46b20fb5bae38d4f0e8331ecc09f9bdca3e09c4d76eff6780a6290d43788f5bfa0999fdd923d170f345
6
+ metadata.gz: 99a25738b1f40c22c14c0f830a37ab2bae91fef44a7be6746bc15b3fd850c2330a123c2a69c36ee6a916f6989a25b06baa22a0bfacea71bb51dc9c3796935cfd
7
+ data.tar.gz: 1565ff8d77930d534b01addd57ec988535a2c60040b285e9dbe2220ebe775965f3574315e386b742bff8ecc08dedd5339fa7a93c29db6adeadc5eaa2b927c9e3
@@ -139,29 +139,29 @@ module MailSlurpClient
139
139
 
140
140
  # Get an expired inbox record
141
141
  # Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
142
- # @param id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id [String]
142
+ # @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId
143
143
  # @param [Hash] opts the optional parameters
144
144
  # @return [ExpiredInboxDto]
145
- def get_expired_inbox_record(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id, opts = {})
146
- data, _status_code, _headers = get_expired_inbox_record_with_http_info(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id, opts)
145
+ def get_expired_inbox_record(expired_id, opts = {})
146
+ data, _status_code, _headers = get_expired_inbox_record_with_http_info(expired_id, opts)
147
147
  data
148
148
  end
149
149
 
150
150
  # Get an expired inbox record
151
151
  # Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
152
- # @param id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id [String]
152
+ # @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId
153
153
  # @param [Hash] opts the optional parameters
154
154
  # @return [Array<(ExpiredInboxDto, Integer, Hash)>] ExpiredInboxDto data, response status code and response headers
155
- def get_expired_inbox_record_with_http_info(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id, opts = {})
155
+ def get_expired_inbox_record_with_http_info(expired_id, opts = {})
156
156
  if @api_client.config.debugging
157
157
  @api_client.config.logger.debug 'Calling API: ExpiredControllerApi.get_expired_inbox_record ...'
158
158
  end
159
- # verify the required parameter 'id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id' is set
160
- if @api_client.config.client_side_validation && id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id.nil?
161
- fail ArgumentError, "Missing the required parameter 'id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id' when calling ExpiredControllerApi.get_expired_inbox_record"
159
+ # verify the required parameter 'expired_id' is set
160
+ if @api_client.config.client_side_validation && expired_id.nil?
161
+ fail ArgumentError, "Missing the required parameter 'expired_id' when calling ExpiredControllerApi.get_expired_inbox_record"
162
162
  end
163
163
  # resource path
164
- local_var_path = '/expired/{expiredId}'.sub('{' + 'ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId)' + '}', CGI.escape(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id.to_s))
164
+ local_var_path = '/expired/{expiredId}'.sub('{' + 'expiredId' + '}', CGI.escape(expired_id.to_s))
165
165
 
166
166
  # query parameters
167
167
  query_params = opts[:query_params] || {}
@@ -624,9 +624,9 @@ module MailSlurpClient
624
624
  # List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
625
625
  # @param inbox_id [String] Id of inbox that emails belongs to
626
626
  # @param [Hash] opts the optional parameters
627
- # @option opts [Integer] :alias_for_limit__assessed_first_before_assessing_any_passed_limit_
627
+ # @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
628
628
  # @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
629
- # @option opts [String] :sort_the_results_by_received_date_and_direction_asc_or_desc
629
+ # @option opts [String] :sort Sort the results by received date and direction ASC or DESC
630
630
  # @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
631
631
  # @option opts [Integer] :delay_timeout
632
632
  # @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
@@ -643,9 +643,9 @@ module MailSlurpClient
643
643
  # List emails that an inbox has received. Only emails that are sent to the inbox&#39;s email address will appear in the inbox. It may take several seconds for any email you send to an inbox&#39;s email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the &#x60;minCount&#x60; parameter. The server will retry the inbox database until the &#x60;minCount&#x60; is satisfied or the &#x60;retryTimeout&#x60; is reached
644
644
  # @param inbox_id [String] Id of inbox that emails belongs to
645
645
  # @param [Hash] opts the optional parameters
646
- # @option opts [Integer] :alias_for_limit__assessed_first_before_assessing_any_passed_limit_
646
+ # @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
647
647
  # @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
648
- # @option opts [String] :sort_the_results_by_received_date_and_direction_asc_or_desc
648
+ # @option opts [String] :sort Sort the results by received date and direction ASC or DESC
649
649
  # @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
650
650
  # @option opts [Integer] :delay_timeout
651
651
  # @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
@@ -661,8 +661,8 @@ module MailSlurpClient
661
661
  if @api_client.config.client_side_validation && inbox_id.nil?
662
662
  fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.get_emails"
663
663
  end
664
- if @api_client.config.client_side_validation && !opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'].nil? && opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'] > 100
665
- fail ArgumentError, 'invalid value for "opts[:"alias_for_limit__assessed_first_before_assessing_any_passed_limit_"]" when calling InboxControllerApi.get_emails, must be smaller than or equal to 100.'
664
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
665
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling InboxControllerApi.get_emails, must be smaller than or equal to 100.'
666
666
  end
667
667
 
668
668
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
@@ -670,17 +670,17 @@ module MailSlurpClient
670
670
  end
671
671
 
672
672
  allowable_values = ["ASC", "DESC"]
673
- if @api_client.config.client_side_validation && opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'] && !allowable_values.include?(opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'])
674
- fail ArgumentError, "invalid value for \"sort_the_results_by_received_date_and_direction_asc_or_desc\", must be one of #{allowable_values}"
673
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
674
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
675
675
  end
676
676
  # resource path
677
677
  local_var_path = '/inboxes/{inboxId}/emails'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
678
678
 
679
679
  # query parameters
680
680
  query_params = opts[:query_params] || {}
681
- query_params[:'Alias for limit. Assessed first before assessing any passed limit.'] = opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'] if !opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'].nil?
681
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
682
682
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
683
- query_params[:'Sort the results by received date and direction ASC or DESC'] = opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'] if !opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'].nil?
683
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
684
684
  query_params[:'retryTimeout'] = opts[:'retry_timeout'] if !opts[:'retry_timeout'].nil?
685
685
  query_params[:'delayTimeout'] = opts[:'delay_timeout'] if !opts[:'delay_timeout'].nil?
686
686
  query_params[:'minCount'] = opts[:'min_count'] if !opts[:'min_count'].nil?
@@ -27,10 +27,10 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :created_at
29
29
 
30
- attr_accessor :updated_at
31
-
32
30
  attr_accessor :use_threads
33
31
 
32
+ attr_accessor :updated_at
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
@@ -40,8 +40,8 @@ module MailSlurpClient
40
40
  :'email_address' => :'emailAddress',
41
41
  :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
- :'updated_at' => :'updatedAt',
44
- :'use_threads' => :'useThreads'
43
+ :'use_threads' => :'useThreads',
44
+ :'updated_at' => :'updatedAt'
45
45
  }
46
46
  end
47
47
 
@@ -54,8 +54,8 @@ module MailSlurpClient
54
54
  :'email_address' => :'String',
55
55
  :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
- :'updated_at' => :'DateTime',
58
- :'use_threads' => :'Boolean'
57
+ :'use_threads' => :'Boolean',
58
+ :'updated_at' => :'DateTime'
59
59
  }
60
60
  end
61
61
 
@@ -104,13 +104,13 @@ module MailSlurpClient
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
106
106
 
107
- if attributes.key?(:'updated_at')
108
- self.updated_at = attributes[:'updated_at']
109
- end
110
-
111
107
  if attributes.key?(:'use_threads')
112
108
  self.use_threads = attributes[:'use_threads']
113
109
  end
110
+
111
+ if attributes.key?(:'updated_at')
112
+ self.updated_at = attributes[:'updated_at']
113
+ end
114
114
  end
115
115
 
116
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -167,8 +167,8 @@ module MailSlurpClient
167
167
  email_address == o.email_address &&
168
168
  inbox_id == o.inbox_id &&
169
169
  created_at == o.created_at &&
170
- updated_at == o.updated_at &&
171
- use_threads == o.use_threads
170
+ use_threads == o.use_threads &&
171
+ updated_at == o.updated_at
172
172
  end
173
173
 
174
174
  # @see the `==` method
@@ -180,7 +180,7 @@ module MailSlurpClient
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
183
+ [name, id, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :from
20
20
 
21
- attr_accessor :subject
22
-
23
21
  attr_accessor :user_id
24
22
 
23
+ attr_accessor :subject
24
+
25
25
  attr_accessor :created_at
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,8 +29,8 @@ module MailSlurpClient
29
29
  {
30
30
  :'id' => :'id',
31
31
  :'from' => :'from',
32
- :'subject' => :'subject',
33
32
  :'user_id' => :'userId',
33
+ :'subject' => :'subject',
34
34
  :'created_at' => :'createdAt'
35
35
  }
36
36
  end
@@ -40,8 +40,8 @@ module MailSlurpClient
40
40
  {
41
41
  :'id' => :'String',
42
42
  :'from' => :'String',
43
- :'subject' => :'String',
44
43
  :'user_id' => :'String',
44
+ :'subject' => :'String',
45
45
  :'created_at' => :'DateTime'
46
46
  }
47
47
  end
@@ -75,14 +75,14 @@ module MailSlurpClient
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
- if attributes.key?(:'subject')
79
- self.subject = attributes[:'subject']
80
- end
81
-
82
78
  if attributes.key?(:'user_id')
83
79
  self.user_id = attributes[:'user_id']
84
80
  end
85
81
 
82
+ if attributes.key?(:'subject')
83
+ self.subject = attributes[:'subject']
84
+ end
85
+
86
86
  if attributes.key?(:'created_at')
87
87
  self.created_at = attributes[:'created_at']
88
88
  end
@@ -118,8 +118,8 @@ module MailSlurpClient
118
118
  self.class == o.class &&
119
119
  id == o.id &&
120
120
  from == o.from &&
121
- subject == o.subject &&
122
121
  user_id == o.user_id &&
122
+ subject == o.subject &&
123
123
  created_at == o.created_at
124
124
  end
125
125
 
@@ -132,7 +132,7 @@ module MailSlurpClient
132
132
  # Calculates hash code according to all attributes.
133
133
  # @return [Integer] Hash code
134
134
  def hash
135
- [id, from, subject, user_id, created_at].hash
135
+ [id, from, user_id, subject, created_at].hash
136
136
  end
137
137
 
138
138
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :subject
23
-
24
22
  attr_accessor :user_id
25
23
 
24
+ attr_accessor :subject
25
+
26
26
  attr_accessor :inbox_id
27
27
 
28
28
  attr_accessor :to
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'name' => :'name',
44
44
  :'id' => :'id',
45
- :'subject' => :'subject',
46
45
  :'user_id' => :'userId',
46
+ :'subject' => :'subject',
47
47
  :'inbox_id' => :'inboxId',
48
48
  :'to' => :'to',
49
49
  :'bcc' => :'bcc',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'name' => :'String',
61
61
  :'id' => :'String',
62
- :'subject' => :'String',
63
62
  :'user_id' => :'String',
63
+ :'subject' => :'String',
64
64
  :'inbox_id' => :'String',
65
65
  :'to' => :'Array<String>',
66
66
  :'bcc' => :'Array<String>',
@@ -100,14 +100,14 @@ module MailSlurpClient
100
100
  self.id = attributes[:'id']
101
101
  end
102
102
 
103
- if attributes.key?(:'subject')
104
- self.subject = attributes[:'subject']
105
- end
106
-
107
103
  if attributes.key?(:'user_id')
108
104
  self.user_id = attributes[:'user_id']
109
105
  end
110
106
 
107
+ if attributes.key?(:'subject')
108
+ self.subject = attributes[:'subject']
109
+ end
110
+
111
111
  if attributes.key?(:'inbox_id')
112
112
  self.inbox_id = attributes[:'inbox_id']
113
113
  end
@@ -198,8 +198,8 @@ module MailSlurpClient
198
198
  self.class == o.class &&
199
199
  name == o.name &&
200
200
  id == o.id &&
201
- subject == o.subject &&
202
201
  user_id == o.user_id &&
202
+ subject == o.subject &&
203
203
  inbox_id == o.inbox_id &&
204
204
  to == o.to &&
205
205
  bcc == o.bcc &&
@@ -218,7 +218,7 @@ module MailSlurpClient
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [name, id, subject, user_id, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
221
+ [name, id, user_id, subject, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
222
222
  end
223
223
 
224
224
  # 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 = '15.0.8'
14
+ VERSION = '15.1.3'
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: 15.0.8
4
+ version: 15.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-01-08 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.