mailslurp_client 8.2.17 → 8.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Create anonymous email alias options. Email aliases can be used to mask real email addresses behind an ID
17
- class CreateAnonymousAliasOptions
18
- # Email address to be hidden behind alias
19
- attr_accessor :email_address
16
+ # Update an email alias
17
+ class UpdateAliasOptions
18
+ # Optional name for alias
19
+ attr_accessor :name
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
- :'email_address' => :'emailAddress'
24
+ :'name' => :'name'
25
25
  }
26
26
  end
27
27
 
28
28
  # Attribute type mapping.
29
29
  def self.openapi_types
30
30
  {
31
- :'email_address' => :'String'
31
+ :'name' => :'String'
32
32
  }
33
33
  end
34
34
 
@@ -42,19 +42,19 @@ module MailSlurpClient
42
42
  # @param [Hash] attributes Model attributes in the form of hash
43
43
  def initialize(attributes = {})
44
44
  if (!attributes.is_a?(Hash))
45
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::CreateAnonymousAliasOptions` initialize method"
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::UpdateAliasOptions` initialize method"
46
46
  end
47
47
 
48
48
  # check to see if the attribute exists and convert string to symbol for hash key
49
49
  attributes = attributes.each_with_object({}) { |(k, v), h|
50
50
  if (!self.class.attribute_map.key?(k.to_sym))
51
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::CreateAnonymousAliasOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::UpdateAliasOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
52
  end
53
53
  h[k.to_sym] = v
54
54
  }
55
55
 
56
- if attributes.key?(:'email_address')
57
- self.email_address = attributes[:'email_address']
56
+ if attributes.key?(:'name')
57
+ self.name = attributes[:'name']
58
58
  end
59
59
  end
60
60
 
@@ -76,7 +76,7 @@ module MailSlurpClient
76
76
  def ==(o)
77
77
  return true if self.equal?(o)
78
78
  self.class == o.class &&
79
- email_address == o.email_address
79
+ name == o.name
80
80
  end
81
81
 
82
82
  # @see the `==` method
@@ -88,7 +88,7 @@ module MailSlurpClient
88
88
  # Calculates hash code according to all attributes.
89
89
  # @return [Integer] Hash code
90
90
  def hash
91
- [email_address].hash
91
+ [name].hash
92
92
  end
93
93
 
94
94
  # 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 = '8.2.17'
14
+ VERSION = '8.4.2'
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: 8.2.17
4
+ version: 8.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2020-12-12 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.
@@ -41,17 +41,19 @@ files:
41
41
  - lib/mailslurp_client/api_client.rb
42
42
  - lib/mailslurp_client/api_error.rb
43
43
  - lib/mailslurp_client/configuration.rb
44
+ - lib/mailslurp_client/models/alias_dto.rb
45
+ - lib/mailslurp_client/models/alias_projection.rb
44
46
  - lib/mailslurp_client/models/attachment_meta_data.rb
45
47
  - lib/mailslurp_client/models/basic_auth_options.rb
46
48
  - lib/mailslurp_client/models/bulk_send_email_options.rb
47
49
  - lib/mailslurp_client/models/contact_dto.rb
48
50
  - lib/mailslurp_client/models/contact_projection.rb
49
51
  - lib/mailslurp_client/models/content_match_options.rb
50
- - lib/mailslurp_client/models/create_anonymous_alias_options.rb
52
+ - lib/mailslurp_client/models/create_alias_options.rb
51
53
  - lib/mailslurp_client/models/create_contact_options.rb
52
54
  - lib/mailslurp_client/models/create_domain_options.rb
53
55
  - lib/mailslurp_client/models/create_group_options.rb
54
- - lib/mailslurp_client/models/create_owned_alias_options.rb
56
+ - lib/mailslurp_client/models/create_inbox_dto.rb
55
57
  - lib/mailslurp_client/models/create_template_options.rb
56
58
  - lib/mailslurp_client/models/create_webhook_options.rb
57
59
  - lib/mailslurp_client/models/describe_domain_options.rb
@@ -91,6 +93,7 @@ files:
91
93
  - lib/mailslurp_client/models/page_webhook_projection.rb
92
94
  - lib/mailslurp_client/models/pageable.rb
93
95
  - lib/mailslurp_client/models/raw_email_json.rb
96
+ - lib/mailslurp_client/models/reply_to_email_options.rb
94
97
  - lib/mailslurp_client/models/send_email_options.rb
95
98
  - lib/mailslurp_client/models/sent_email_dto.rb
96
99
  - lib/mailslurp_client/models/sent_email_projection.rb
@@ -101,6 +104,7 @@ files:
101
104
  - lib/mailslurp_client/models/template_projection.rb
102
105
  - lib/mailslurp_client/models/template_variable.rb
103
106
  - lib/mailslurp_client/models/unread_count.rb
107
+ - lib/mailslurp_client/models/update_alias_options.rb
104
108
  - lib/mailslurp_client/models/update_group_contacts.rb
105
109
  - lib/mailslurp_client/models/update_inbox_options.rb
106
110
  - lib/mailslurp_client/models/upload_attachment_options.rb