lockally 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/docs/AgentSendResult.md +6 -2
- data/docs/MailboxGrant.md +7 -3
- data/docs/MailboxGrantList.md +2 -2
- data/docs/MarkReadResult.md +2 -0
- data/docs/SimulatedInbound.md +6 -0
- data/docs/ThreadClassification.md +2 -0
- data/docs/ThreadMessageBody.md +10 -26
- data/docs/{ThreadMessageBodyAllOfBody.md → ThreadMessageBodyBody.md} +2 -2
- data/docs/Whoami.md +7 -7
- data/docs/WhoamiKey.md +20 -0
- data/docs/WhoamiTenant.md +22 -0
- data/lib/lockally/models/agent_send_result.rb +72 -1
- data/lib/lockally/models/mailbox_grant.rb +28 -10
- data/lib/lockally/models/mailbox_grant_list.rb +17 -17
- data/lib/lockally/models/mark_read_result.rb +10 -1
- data/lib/lockally/models/simulated_inbound.rb +29 -1
- data/lib/lockally/models/thread_classification.rb +11 -1
- data/lib/lockally/models/thread_message_body.rb +58 -233
- data/lib/lockally/models/{thread_message_body_all_of_body.rb → thread_message_body_body.rb} +4 -3
- data/lib/lockally/models/whoami.rb +98 -24
- data/lib/lockally/models/whoami_key.rb +157 -0
- data/lib/lockally/models/whoami_tenant.rb +166 -0
- data/lib/lockally/version.rb +1 -1
- data/lib/lockally.rb +3 -1
- data/spec/models/agent_send_result_spec.rb +12 -0
- data/spec/models/mailbox_grant_list_spec.rb +1 -1
- data/spec/models/mailbox_grant_spec.rb +13 -1
- data/spec/models/mark_read_result_spec.rb +6 -0
- data/spec/models/simulated_inbound_spec.rb +18 -0
- data/spec/models/thread_classification_spec.rb +6 -0
- data/spec/models/{thread_message_body_all_of_body_spec.rb → thread_message_body_body_spec.rb} +6 -6
- data/spec/models/thread_message_body_spec.rb +5 -57
- data/spec/models/whoami_key_spec.rb +42 -0
- data/spec/models/whoami_spec.rb +8 -4
- data/spec/models/whoami_tenant_spec.rb +48 -0
- metadata +13 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03e2dc8e0b82c4ec5ae2245c6ed4acd23553a7ace4a9dd1a6cbcdeb2f0a2e431
|
|
4
|
+
data.tar.gz: a7193d69f28b1e713248c5253239ea42227aabfc7c827f81cd2453decfbd3406
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec1d1363e1911e4617574cb726fa85d4bac203e6d42d8bbe4f790d93b76928a5a3600605ec16779ff28d180179eed48b7a4225f3af55c2a55eea0a2f5ce133c1
|
|
7
|
+
data.tar.gz: bcd35cee397f0473bd804bef1dd397383ace594e8bdb93085d31960f5c8d4af20c7e762647cf5d9148e58121f34b7ee718350c2afbaf148256c7f5c074abd2e7
|
data/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Insufficient scope returns `403` with the required scope name in `detail`.
|
|
|
35
35
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
36
36
|
|
|
37
37
|
- API version: 0.1.0
|
|
38
|
-
- Package version: 0.3.
|
|
38
|
+
- Package version: 0.3.2
|
|
39
39
|
- Generator version: 7.23.0
|
|
40
40
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
41
41
|
|
|
@@ -52,16 +52,16 @@ gem build lockally.gemspec
|
|
|
52
52
|
Then either install the gem locally:
|
|
53
53
|
|
|
54
54
|
```shell
|
|
55
|
-
gem install ./lockally-0.3.
|
|
55
|
+
gem install ./lockally-0.3.2.gem
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
(for development, run `gem install --dev ./lockally-0.3.
|
|
58
|
+
(for development, run `gem install --dev ./lockally-0.3.2.gem` to install the development dependencies)
|
|
59
59
|
|
|
60
60
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
61
61
|
|
|
62
62
|
Finally add this to the Gemfile:
|
|
63
63
|
|
|
64
|
-
gem 'lockally', '~> 0.3.
|
|
64
|
+
gem 'lockally', '~> 0.3.2'
|
|
65
65
|
|
|
66
66
|
### Install from Git
|
|
67
67
|
|
|
@@ -488,7 +488,7 @@ Class | Method | HTTP request | Description
|
|
|
488
488
|
- [Lockally::ThreadList](docs/ThreadList.md)
|
|
489
489
|
- [Lockally::ThreadMessage](docs/ThreadMessage.md)
|
|
490
490
|
- [Lockally::ThreadMessageBody](docs/ThreadMessageBody.md)
|
|
491
|
-
- [Lockally::
|
|
491
|
+
- [Lockally::ThreadMessageBodyBody](docs/ThreadMessageBodyBody.md)
|
|
492
492
|
- [Lockally::ThreadSummary](docs/ThreadSummary.md)
|
|
493
493
|
- [Lockally::UnitBundle](docs/UnitBundle.md)
|
|
494
494
|
- [Lockally::UpdateAdminRequest](docs/UpdateAdminRequest.md)
|
|
@@ -513,6 +513,8 @@ Class | Method | HTTP request | Description
|
|
|
513
513
|
- [Lockally::VacationResponder](docs/VacationResponder.md)
|
|
514
514
|
- [Lockally::Webhook](docs/Webhook.md)
|
|
515
515
|
- [Lockally::Whoami](docs/Whoami.md)
|
|
516
|
+
- [Lockally::WhoamiKey](docs/WhoamiKey.md)
|
|
517
|
+
- [Lockally::WhoamiTenant](docs/WhoamiTenant.md)
|
|
516
518
|
|
|
517
519
|
|
|
518
520
|
## Documentation for Authorization
|
data/docs/AgentSendResult.md
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The Lockally message id. |
|
|
8
|
-
| **
|
|
7
|
+
| **id** | **String** | The Lockally message id. | |
|
|
8
|
+
| **message_id** | **String** | The Internet Message-ID. | |
|
|
9
|
+
| **status** | **String** | | |
|
|
10
|
+
| **warning** | **String** | Set when the send is accepted but worth noting | [optional] |
|
|
9
11
|
| **thread_id** | **String** | The conversation the message joined. | |
|
|
10
12
|
|
|
11
13
|
## Example
|
|
@@ -15,7 +17,9 @@ require 'lockally'
|
|
|
15
17
|
|
|
16
18
|
instance = Lockally::AgentSendResult.new(
|
|
17
19
|
id: null,
|
|
20
|
+
message_id: null,
|
|
18
21
|
status: null,
|
|
22
|
+
warning: null,
|
|
19
23
|
thread_id: null
|
|
20
24
|
)
|
|
21
25
|
```
|
data/docs/MailboxGrant.md
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
7
|
+
| **api_key_id** | **String** | | [optional] |
|
|
8
|
+
| **mailbox_id** | **String** | | [optional] |
|
|
8
9
|
| **mailbox** | **String** | | [optional] |
|
|
10
|
+
| **created_at** | **Time** | | [optional] |
|
|
9
11
|
|
|
10
12
|
## Example
|
|
11
13
|
|
|
@@ -13,8 +15,10 @@
|
|
|
13
15
|
require 'lockally'
|
|
14
16
|
|
|
15
17
|
instance = Lockally::MailboxGrant.new(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
api_key_id: null,
|
|
19
|
+
mailbox_id: null,
|
|
20
|
+
mailbox: null,
|
|
21
|
+
created_at: null
|
|
18
22
|
)
|
|
19
23
|
```
|
|
20
24
|
|
data/docs/MailboxGrantList.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
7
|
+
| **grants** | [**Array<MailboxGrant>**](MailboxGrant.md) | | |
|
|
8
8
|
|
|
9
9
|
## Example
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
require 'lockally'
|
|
13
13
|
|
|
14
14
|
instance = Lockally::MailboxGrantList.new(
|
|
15
|
-
|
|
15
|
+
grants: null
|
|
16
16
|
)
|
|
17
17
|
```
|
|
18
18
|
|
data/docs/MarkReadResult.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **message_id** | **String** | | [optional] |
|
|
7
8
|
| **read** | **Boolean** | | [optional] |
|
|
8
9
|
|
|
9
10
|
## Example
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
require 'lockally'
|
|
13
14
|
|
|
14
15
|
instance = Lockally::MarkReadResult.new(
|
|
16
|
+
message_id: null,
|
|
15
17
|
read: null
|
|
16
18
|
)
|
|
17
19
|
```
|
data/docs/SimulatedInbound.md
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **simulated** | **Boolean** | | [optional] |
|
|
8
|
+
| **indexed** | **Boolean** | True when the message was adopted into a thread. | [optional] |
|
|
7
9
|
| **thread_id** | **String** | | [optional] |
|
|
8
10
|
| **message_id** | **String** | | [optional] |
|
|
11
|
+
| **rfc_message_id** | **String** | | [optional] |
|
|
9
12
|
| **annotations** | [**Annotations**](Annotations.md) | | [optional] |
|
|
10
13
|
|
|
11
14
|
## Example
|
|
@@ -14,8 +17,11 @@
|
|
|
14
17
|
require 'lockally'
|
|
15
18
|
|
|
16
19
|
instance = Lockally::SimulatedInbound.new(
|
|
20
|
+
simulated: null,
|
|
21
|
+
indexed: null,
|
|
17
22
|
thread_id: null,
|
|
18
23
|
message_id: null,
|
|
24
|
+
rfc_message_id: null,
|
|
19
25
|
annotations: null
|
|
20
26
|
)
|
|
21
27
|
```
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **thread_id** | **String** | | |
|
|
8
8
|
| **cached** | **Boolean** | True when a previous classification was reused. | [optional] |
|
|
9
|
+
| **billed** | **Boolean** | True when this call consumed an AI unit. | [optional] |
|
|
9
10
|
| **classification** | [**Classification**](Classification.md) | | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
@@ -16,6 +17,7 @@ require 'lockally'
|
|
|
16
17
|
instance = Lockally::ThreadClassification.new(
|
|
17
18
|
thread_id: null,
|
|
18
19
|
cached: null,
|
|
20
|
+
billed: null,
|
|
19
21
|
classification: null
|
|
20
22
|
)
|
|
21
23
|
```
|
data/docs/ThreadMessageBody.md
CHANGED
|
@@ -4,19 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
10
|
-
| **
|
|
11
|
-
| **
|
|
12
|
-
| **from** | **String** | | |
|
|
13
|
-
| **to** | **Array<String>** | | |
|
|
14
|
-
| **snippet** | **String** | | [optional] |
|
|
15
|
-
| **has_attachments** | **Boolean** | | |
|
|
16
|
-
| **attachments** | [**Array<Attachment>**](Attachment.md) | | [optional] |
|
|
17
|
-
| **annotations** | [**Annotations**](Annotations.md) | | [optional] |
|
|
18
|
-
| **received_at** | **Time** | | |
|
|
19
|
-
| **body** | [**ThreadMessageBodyAllOfBody**](ThreadMessageBodyAllOfBody.md) | | [optional] |
|
|
7
|
+
| **thread_id** | **String** | | |
|
|
8
|
+
| **mailbox** | **String** | | |
|
|
9
|
+
| **message** | [**ThreadMessage**](ThreadMessage.md) | | |
|
|
10
|
+
| **body** | [**ThreadMessageBodyBody**](ThreadMessageBodyBody.md) | | [optional] |
|
|
11
|
+
| **body_unavailable** | **String** | Present instead of body when the message could not be located in the mailbox. | [optional] |
|
|
20
12
|
|
|
21
13
|
## Example
|
|
22
14
|
|
|
@@ -24,19 +16,11 @@
|
|
|
24
16
|
require 'lockally'
|
|
25
17
|
|
|
26
18
|
instance = Lockally::ThreadMessageBody.new(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
from: null,
|
|
33
|
-
to: null,
|
|
34
|
-
snippet: null,
|
|
35
|
-
has_attachments: null,
|
|
36
|
-
attachments: null,
|
|
37
|
-
annotations: null,
|
|
38
|
-
received_at: null,
|
|
39
|
-
body: null
|
|
19
|
+
thread_id: null,
|
|
20
|
+
mailbox: null,
|
|
21
|
+
message: null,
|
|
22
|
+
body: null,
|
|
23
|
+
body_unavailable: null
|
|
40
24
|
)
|
|
41
25
|
```
|
|
42
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Lockally::
|
|
1
|
+
# Lockally::ThreadMessageBodyBody
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
```ruby
|
|
14
14
|
require 'lockally'
|
|
15
15
|
|
|
16
|
-
instance = Lockally::
|
|
16
|
+
instance = Lockally::ThreadMessageBodyBody.new(
|
|
17
17
|
text: null,
|
|
18
18
|
html: null,
|
|
19
19
|
truncated: null
|
data/docs/Whoami.md
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
10
|
-
| **
|
|
7
|
+
| **tenant** | [**WhoamiTenant**](WhoamiTenant.md) | | |
|
|
8
|
+
| **scopes** | **Array<String>** | | |
|
|
9
|
+
| **auth** | **String** | | |
|
|
10
|
+
| **key** | [**WhoamiKey**](WhoamiKey.md) | | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
require 'lockally'
|
|
16
16
|
|
|
17
17
|
instance = Lockally::Whoami.new(
|
|
18
|
-
tenant_id: null,
|
|
19
18
|
tenant: null,
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
scopes: null,
|
|
20
|
+
auth: null,
|
|
21
|
+
key: null
|
|
22
22
|
)
|
|
23
23
|
```
|
|
24
24
|
|
data/docs/WhoamiKey.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Lockally::WhoamiKey
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **label** | **String** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'lockally'
|
|
14
|
+
|
|
15
|
+
instance = Lockally::WhoamiKey.new(
|
|
16
|
+
id: null,
|
|
17
|
+
label: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Lockally::WhoamiTenant
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **slug** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | What the account calls itself. | [optional] |
|
|
9
|
+
| **plan** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'lockally'
|
|
15
|
+
|
|
16
|
+
instance = Lockally::WhoamiTenant.new(
|
|
17
|
+
slug: null,
|
|
18
|
+
name: null,
|
|
19
|
+
plan: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -18,8 +18,14 @@ module Lockally
|
|
|
18
18
|
# The Lockally message id.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
# The Internet Message-ID.
|
|
22
|
+
attr_accessor :message_id
|
|
23
|
+
|
|
21
24
|
attr_accessor :status
|
|
22
25
|
|
|
26
|
+
# Set when the send is accepted but worth noting
|
|
27
|
+
attr_accessor :warning
|
|
28
|
+
|
|
23
29
|
# The conversation the message joined.
|
|
24
30
|
attr_accessor :thread_id
|
|
25
31
|
|
|
@@ -27,7 +33,9 @@ module Lockally
|
|
|
27
33
|
def self.attribute_map
|
|
28
34
|
{
|
|
29
35
|
:'id' => :'id',
|
|
36
|
+
:'message_id' => :'message_id',
|
|
30
37
|
:'status' => :'status',
|
|
38
|
+
:'warning' => :'warning',
|
|
31
39
|
:'thread_id' => :'thread_id'
|
|
32
40
|
}
|
|
33
41
|
end
|
|
@@ -46,7 +54,9 @@ module Lockally
|
|
|
46
54
|
def self.openapi_types
|
|
47
55
|
{
|
|
48
56
|
:'id' => :'String',
|
|
57
|
+
:'message_id' => :'String',
|
|
49
58
|
:'status' => :'String',
|
|
59
|
+
:'warning' => :'String',
|
|
50
60
|
:'thread_id' => :'String'
|
|
51
61
|
}
|
|
52
62
|
end
|
|
@@ -75,10 +85,24 @@ module Lockally
|
|
|
75
85
|
|
|
76
86
|
if attributes.key?(:'id')
|
|
77
87
|
self.id = attributes[:'id']
|
|
88
|
+
else
|
|
89
|
+
self.id = nil
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'message_id')
|
|
93
|
+
self.message_id = attributes[:'message_id']
|
|
94
|
+
else
|
|
95
|
+
self.message_id = nil
|
|
78
96
|
end
|
|
79
97
|
|
|
80
98
|
if attributes.key?(:'status')
|
|
81
99
|
self.status = attributes[:'status']
|
|
100
|
+
else
|
|
101
|
+
self.status = nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'warning')
|
|
105
|
+
self.warning = attributes[:'warning']
|
|
82
106
|
end
|
|
83
107
|
|
|
84
108
|
if attributes.key?(:'thread_id')
|
|
@@ -93,6 +117,18 @@ module Lockally
|
|
|
93
117
|
def list_invalid_properties
|
|
94
118
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
95
119
|
invalid_properties = Array.new
|
|
120
|
+
if @id.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @message_id.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @status.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
96
132
|
if @thread_id.nil?
|
|
97
133
|
invalid_properties.push('invalid value for "thread_id", thread_id cannot be nil.')
|
|
98
134
|
end
|
|
@@ -104,10 +140,43 @@ module Lockally
|
|
|
104
140
|
# @return true if the model is valid
|
|
105
141
|
def valid?
|
|
106
142
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
143
|
+
return false if @id.nil?
|
|
144
|
+
return false if @message_id.nil?
|
|
145
|
+
return false if @status.nil?
|
|
107
146
|
return false if @thread_id.nil?
|
|
108
147
|
true
|
|
109
148
|
end
|
|
110
149
|
|
|
150
|
+
# Custom attribute writer method with validation
|
|
151
|
+
# @param [Object] id Value to be assigned
|
|
152
|
+
def id=(id)
|
|
153
|
+
if id.nil?
|
|
154
|
+
fail ArgumentError, 'id cannot be nil'
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
@id = id
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Custom attribute writer method with validation
|
|
161
|
+
# @param [Object] message_id Value to be assigned
|
|
162
|
+
def message_id=(message_id)
|
|
163
|
+
if message_id.nil?
|
|
164
|
+
fail ArgumentError, 'message_id cannot be nil'
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
@message_id = message_id
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Custom attribute writer method with validation
|
|
171
|
+
# @param [Object] status Value to be assigned
|
|
172
|
+
def status=(status)
|
|
173
|
+
if status.nil?
|
|
174
|
+
fail ArgumentError, 'status cannot be nil'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
@status = status
|
|
178
|
+
end
|
|
179
|
+
|
|
111
180
|
# Custom attribute writer method with validation
|
|
112
181
|
# @param [Object] thread_id Value to be assigned
|
|
113
182
|
def thread_id=(thread_id)
|
|
@@ -124,7 +193,9 @@ module Lockally
|
|
|
124
193
|
return true if self.equal?(o)
|
|
125
194
|
self.class == o.class &&
|
|
126
195
|
id == o.id &&
|
|
196
|
+
message_id == o.message_id &&
|
|
127
197
|
status == o.status &&
|
|
198
|
+
warning == o.warning &&
|
|
128
199
|
thread_id == o.thread_id
|
|
129
200
|
end
|
|
130
201
|
|
|
@@ -137,7 +208,7 @@ module Lockally
|
|
|
137
208
|
# Calculates hash code according to all attributes.
|
|
138
209
|
# @return [Integer] Hash code
|
|
139
210
|
def hash
|
|
140
|
-
[id, status, thread_id].hash
|
|
211
|
+
[id, message_id, status, warning, thread_id].hash
|
|
141
212
|
end
|
|
142
213
|
|
|
143
214
|
# Builds the object from hash
|
|
@@ -15,15 +15,21 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Lockally
|
|
17
17
|
class MailboxGrant < ApiModelBase
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :api_key_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :mailbox_id
|
|
19
21
|
|
|
20
22
|
attr_accessor :mailbox
|
|
21
23
|
|
|
24
|
+
attr_accessor :created_at
|
|
25
|
+
|
|
22
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
27
|
def self.attribute_map
|
|
24
28
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'
|
|
29
|
+
:'api_key_id' => :'api_key_id',
|
|
30
|
+
:'mailbox_id' => :'mailbox_id',
|
|
31
|
+
:'mailbox' => :'mailbox',
|
|
32
|
+
:'created_at' => :'created_at'
|
|
27
33
|
}
|
|
28
34
|
end
|
|
29
35
|
|
|
@@ -40,8 +46,10 @@ module Lockally
|
|
|
40
46
|
# Attribute type mapping.
|
|
41
47
|
def self.openapi_types
|
|
42
48
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
49
|
+
:'api_key_id' => :'String',
|
|
50
|
+
:'mailbox_id' => :'String',
|
|
51
|
+
:'mailbox' => :'String',
|
|
52
|
+
:'created_at' => :'Time'
|
|
45
53
|
}
|
|
46
54
|
end
|
|
47
55
|
|
|
@@ -67,13 +75,21 @@ module Lockally
|
|
|
67
75
|
h[k.to_sym] = v
|
|
68
76
|
}
|
|
69
77
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
self.
|
|
78
|
+
if attributes.key?(:'api_key_id')
|
|
79
|
+
self.api_key_id = attributes[:'api_key_id']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'mailbox_id')
|
|
83
|
+
self.mailbox_id = attributes[:'mailbox_id']
|
|
72
84
|
end
|
|
73
85
|
|
|
74
86
|
if attributes.key?(:'mailbox')
|
|
75
87
|
self.mailbox = attributes[:'mailbox']
|
|
76
88
|
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'created_at')
|
|
91
|
+
self.created_at = attributes[:'created_at']
|
|
92
|
+
end
|
|
77
93
|
end
|
|
78
94
|
|
|
79
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -96,8 +112,10 @@ module Lockally
|
|
|
96
112
|
def ==(o)
|
|
97
113
|
return true if self.equal?(o)
|
|
98
114
|
self.class == o.class &&
|
|
99
|
-
|
|
100
|
-
|
|
115
|
+
api_key_id == o.api_key_id &&
|
|
116
|
+
mailbox_id == o.mailbox_id &&
|
|
117
|
+
mailbox == o.mailbox &&
|
|
118
|
+
created_at == o.created_at
|
|
101
119
|
end
|
|
102
120
|
|
|
103
121
|
# @see the `==` method
|
|
@@ -109,7 +127,7 @@ module Lockally
|
|
|
109
127
|
# Calculates hash code according to all attributes.
|
|
110
128
|
# @return [Integer] Hash code
|
|
111
129
|
def hash
|
|
112
|
-
[
|
|
130
|
+
[api_key_id, mailbox_id, mailbox, created_at].hash
|
|
113
131
|
end
|
|
114
132
|
|
|
115
133
|
# Builds the object from hash
|
|
@@ -15,12 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Lockally
|
|
17
17
|
class MailboxGrantList < ApiModelBase
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :grants
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
21
|
def self.attribute_map
|
|
22
22
|
{
|
|
23
|
-
:'
|
|
23
|
+
:'grants' => :'grants'
|
|
24
24
|
}
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -37,7 +37,7 @@ module Lockally
|
|
|
37
37
|
# Attribute type mapping.
|
|
38
38
|
def self.openapi_types
|
|
39
39
|
{
|
|
40
|
-
:'
|
|
40
|
+
:'grants' => :'Array<MailboxGrant>'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -63,12 +63,12 @@ module Lockally
|
|
|
63
63
|
h[k.to_sym] = v
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
if (value = attributes[:'
|
|
68
|
-
self.
|
|
66
|
+
if attributes.key?(:'grants')
|
|
67
|
+
if (value = attributes[:'grants']).is_a?(Array)
|
|
68
|
+
self.grants = value
|
|
69
69
|
end
|
|
70
70
|
else
|
|
71
|
-
self.
|
|
71
|
+
self.grants = nil
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -77,8 +77,8 @@ module Lockally
|
|
|
77
77
|
def list_invalid_properties
|
|
78
78
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
79
|
invalid_properties = Array.new
|
|
80
|
-
if @
|
|
81
|
-
invalid_properties.push('invalid value for "
|
|
80
|
+
if @grants.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "grants", grants cannot be nil.')
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
invalid_properties
|
|
@@ -88,18 +88,18 @@ module Lockally
|
|
|
88
88
|
# @return true if the model is valid
|
|
89
89
|
def valid?
|
|
90
90
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
-
return false if @
|
|
91
|
+
return false if @grants.nil?
|
|
92
92
|
true
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
# Custom attribute writer method with validation
|
|
96
|
-
# @param [Object]
|
|
97
|
-
def
|
|
98
|
-
if
|
|
99
|
-
fail ArgumentError, '
|
|
96
|
+
# @param [Object] grants Value to be assigned
|
|
97
|
+
def grants=(grants)
|
|
98
|
+
if grants.nil?
|
|
99
|
+
fail ArgumentError, 'grants cannot be nil'
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
@
|
|
102
|
+
@grants = grants
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
# Checks equality by comparing each attribute.
|
|
@@ -107,7 +107,7 @@ module Lockally
|
|
|
107
107
|
def ==(o)
|
|
108
108
|
return true if self.equal?(o)
|
|
109
109
|
self.class == o.class &&
|
|
110
|
-
|
|
110
|
+
grants == o.grants
|
|
111
111
|
end
|
|
112
112
|
|
|
113
113
|
# @see the `==` method
|
|
@@ -119,7 +119,7 @@ module Lockally
|
|
|
119
119
|
# Calculates hash code according to all attributes.
|
|
120
120
|
# @return [Integer] Hash code
|
|
121
121
|
def hash
|
|
122
|
-
[
|
|
122
|
+
[grants].hash
|
|
123
123
|
end
|
|
124
124
|
|
|
125
125
|
# Builds the object from hash
|
|
@@ -15,11 +15,14 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Lockally
|
|
17
17
|
class MarkReadResult < ApiModelBase
|
|
18
|
+
attr_accessor :message_id
|
|
19
|
+
|
|
18
20
|
attr_accessor :read
|
|
19
21
|
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
23
|
def self.attribute_map
|
|
22
24
|
{
|
|
25
|
+
:'message_id' => :'message_id',
|
|
23
26
|
:'read' => :'read'
|
|
24
27
|
}
|
|
25
28
|
end
|
|
@@ -37,6 +40,7 @@ module Lockally
|
|
|
37
40
|
# Attribute type mapping.
|
|
38
41
|
def self.openapi_types
|
|
39
42
|
{
|
|
43
|
+
:'message_id' => :'String',
|
|
40
44
|
:'read' => :'Boolean'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
@@ -63,6 +67,10 @@ module Lockally
|
|
|
63
67
|
h[k.to_sym] = v
|
|
64
68
|
}
|
|
65
69
|
|
|
70
|
+
if attributes.key?(:'message_id')
|
|
71
|
+
self.message_id = attributes[:'message_id']
|
|
72
|
+
end
|
|
73
|
+
|
|
66
74
|
if attributes.key?(:'read')
|
|
67
75
|
self.read = attributes[:'read']
|
|
68
76
|
end
|
|
@@ -88,6 +96,7 @@ module Lockally
|
|
|
88
96
|
def ==(o)
|
|
89
97
|
return true if self.equal?(o)
|
|
90
98
|
self.class == o.class &&
|
|
99
|
+
message_id == o.message_id &&
|
|
91
100
|
read == o.read
|
|
92
101
|
end
|
|
93
102
|
|
|
@@ -100,7 +109,7 @@ module Lockally
|
|
|
100
109
|
# Calculates hash code according to all attributes.
|
|
101
110
|
# @return [Integer] Hash code
|
|
102
111
|
def hash
|
|
103
|
-
[read].hash
|
|
112
|
+
[message_id, read].hash
|
|
104
113
|
end
|
|
105
114
|
|
|
106
115
|
# Builds the object from hash
|