files.com 1.0.248 → 1.0.251
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/_VERSION +1 -1
- data/docs/as2_outgoing_message.md +1 -1
- data/docs/as2_partner.md +11 -3
- data/docs/as2_station.md +7 -1
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/as2_outgoing_message.rb +1 -1
- data/lib/files.com/models/as2_partner.rb +15 -0
- data/lib/files.com/models/as2_station.rb +24 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1fef3648dfb331c50f3c4f6a9c0968cb6ae283483f6d75eeb627d173cb35d237
|
|
4
|
+
data.tar.gz: 7931b8a5f2770b7eb9638fdac98d85c30f6cc07326b7bd94afb946096ef40a6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff5d8d9923d38d020d9f8bf3a0502e3219f2f18168385b5275a8611903278e8eef6df82cede7a53a55db0a8fc940b99f8e86e7a21ffd35c4f00ec7acb883fc00
|
|
7
|
+
data.tar.gz: 333ba4ad84cc8995dcd4a1cade1b706ebc7e2ab2c1854441df81b619f6b02ecc48146799d13fa52fecc3fdd2d5bcfd2859b9185b4e935650124d8f5addb2f21f
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.251
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* `uuid` (string): UUID assigned to this message.
|
|
24
24
|
* `http_headers` (object): HTTP Headers sent with this message.
|
|
25
25
|
* `activity_log` (string): JSON Structure of the activity log.
|
|
26
|
-
* `processing_result` (string): Result of processing. Valid values: `send_failed`, `send_success`
|
|
26
|
+
* `processing_result` (string): Result of processing. Valid values: `send_failed`, `send_success`, `send_no_mdn`
|
|
27
27
|
* `mic` (string): AS2 Message Integrity Check
|
|
28
28
|
* `message_id` (string): AS2 Message Id
|
|
29
29
|
* `body_size` (string): Encrypted Payload Body Size
|
data/docs/as2_partner.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"as2_station_id": 1,
|
|
9
9
|
"name": "AS2 Partner Name",
|
|
10
10
|
"uri": "",
|
|
11
|
+
"server_certificate": "require_match",
|
|
11
12
|
"public_certificate_md5": "",
|
|
12
13
|
"public_certificate_subject": "",
|
|
13
14
|
"public_certificate_issuer": "",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
* `as2_station_id` (int64): Id of the AS2 Station associated with this partner.
|
|
22
23
|
* `name` (string): The partner's formal AS2 name.
|
|
23
24
|
* `uri` (string): Public URI for sending AS2 message to.
|
|
25
|
+
* `server_certificate` (string): Remote server certificate security setting
|
|
24
26
|
* `public_certificate_md5` (string): MD5 hash of public certificate used for message security.
|
|
25
27
|
* `public_certificate_subject` (string): Subject of public certificate used for message security.
|
|
26
28
|
* `public_certificate_issuer` (string): Issuer of public certificate used for message security.
|
|
@@ -68,7 +70,8 @@ Files::As2Partner.create(
|
|
|
68
70
|
name: "name",
|
|
69
71
|
uri: "uri",
|
|
70
72
|
public_certificate: "public_certificate",
|
|
71
|
-
as2_station_id: 1
|
|
73
|
+
as2_station_id: 1,
|
|
74
|
+
server_certificate: "require_match"
|
|
72
75
|
)
|
|
73
76
|
```
|
|
74
77
|
|
|
@@ -78,6 +81,7 @@ Files::As2Partner.create(
|
|
|
78
81
|
* `uri` (string): Required - URL base for AS2 responses
|
|
79
82
|
* `public_certificate` (string): Required -
|
|
80
83
|
* `as2_station_id` (int64): Required - Id of As2Station for this partner
|
|
84
|
+
* `server_certificate` (string): Remote server certificate security setting
|
|
81
85
|
|
|
82
86
|
|
|
83
87
|
---
|
|
@@ -86,7 +90,8 @@ Files::As2Partner.create(
|
|
|
86
90
|
|
|
87
91
|
```
|
|
88
92
|
Files::As2Partner.update(id,
|
|
89
|
-
name: "AS2 Partner Name"
|
|
93
|
+
name: "AS2 Partner Name",
|
|
94
|
+
server_certificate: "require_match"
|
|
90
95
|
)
|
|
91
96
|
```
|
|
92
97
|
|
|
@@ -95,6 +100,7 @@ Files::As2Partner.update(id,
|
|
|
95
100
|
* `id` (int64): Required - As2 Partner ID.
|
|
96
101
|
* `name` (string): AS2 Name
|
|
97
102
|
* `uri` (string): URL base for AS2 responses
|
|
103
|
+
* `server_certificate` (string): Remote server certificate security setting
|
|
98
104
|
* `public_certificate` (string):
|
|
99
105
|
|
|
100
106
|
|
|
@@ -119,7 +125,8 @@ Files::As2Partner.delete(id)
|
|
|
119
125
|
as2_partner = Files::As2Partner.list.first
|
|
120
126
|
|
|
121
127
|
as2_partner.update(
|
|
122
|
-
name: "AS2 Partner Name"
|
|
128
|
+
name: "AS2 Partner Name",
|
|
129
|
+
server_certificate: "require_match"
|
|
123
130
|
)
|
|
124
131
|
```
|
|
125
132
|
|
|
@@ -128,6 +135,7 @@ as2_partner.update(
|
|
|
128
135
|
* `id` (int64): Required - As2 Partner ID.
|
|
129
136
|
* `name` (string): AS2 Name
|
|
130
137
|
* `uri` (string): URL base for AS2 responses
|
|
138
|
+
* `server_certificate` (string): Remote server certificate security setting
|
|
131
139
|
* `public_certificate` (string):
|
|
132
140
|
|
|
133
141
|
|
data/docs/as2_station.md
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"public_certificate_issuer": "",
|
|
15
15
|
"public_certificate_serial": "",
|
|
16
16
|
"public_certificate_not_before": "",
|
|
17
|
-
"public_certificate_not_after": ""
|
|
17
|
+
"public_certificate_not_after": "",
|
|
18
|
+
"private_key_password_md5": ""
|
|
18
19
|
}
|
|
19
20
|
```
|
|
20
21
|
|
|
@@ -29,8 +30,10 @@
|
|
|
29
30
|
* `public_certificate_serial` (string): Serial of public certificate used for message security.
|
|
30
31
|
* `public_certificate_not_before` (string): Not before value of public certificate used for message security.
|
|
31
32
|
* `public_certificate_not_after` (string): Not after value of public certificate used for message security.
|
|
33
|
+
* `private_key_password_md5` (string): MD5 hash of private key password used for message security.
|
|
32
34
|
* `public_certificate` (string):
|
|
33
35
|
* `private_key` (string):
|
|
36
|
+
* `private_key_password` (string):
|
|
34
37
|
|
|
35
38
|
|
|
36
39
|
---
|
|
@@ -79,6 +82,7 @@ Files::As2Station.create(
|
|
|
79
82
|
* `name` (string): Required - AS2 Name
|
|
80
83
|
* `public_certificate` (string): Required -
|
|
81
84
|
* `private_key` (string): Required -
|
|
85
|
+
* `private_key_password` (string):
|
|
82
86
|
|
|
83
87
|
|
|
84
88
|
---
|
|
@@ -97,6 +101,7 @@ Files::As2Station.update(id,
|
|
|
97
101
|
* `name` (string): AS2 Name
|
|
98
102
|
* `public_certificate` (string):
|
|
99
103
|
* `private_key` (string):
|
|
104
|
+
* `private_key_password` (string):
|
|
100
105
|
|
|
101
106
|
|
|
102
107
|
---
|
|
@@ -130,6 +135,7 @@ as2_station.update(
|
|
|
130
135
|
* `name` (string): AS2 Name
|
|
131
136
|
* `public_certificate` (string):
|
|
132
137
|
* `private_key` (string):
|
|
138
|
+
* `private_key_password` (string):
|
|
133
139
|
|
|
134
140
|
|
|
135
141
|
---
|
data/lib/files.com/errors.rb
CHANGED
|
@@ -182,6 +182,7 @@ module Files
|
|
|
182
182
|
class ModelSaveErrorError < ProcessingFailureError; end
|
|
183
183
|
class MultipartUploadsRequiredForRemotesError < ProcessingFailureError; end
|
|
184
184
|
class MultipleProcessingErrorsError < ProcessingFailureError; end
|
|
185
|
+
class PathTooLongError < ProcessingFailureError; end
|
|
185
186
|
class RecipientAlreadySharedError < ProcessingFailureError; end
|
|
186
187
|
class RemoteServerErrorError < ProcessingFailureError; end
|
|
187
188
|
class ResourceLockedError < ProcessingFailureError; end
|
|
@@ -34,7 +34,7 @@ module Files
|
|
|
34
34
|
@attributes[:activity_log]
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
# string - Result of processing. Valid values: `send_failed`, `send_success`
|
|
37
|
+
# string - Result of processing. Valid values: `send_failed`, `send_success`, `send_no_mdn`
|
|
38
38
|
def processing_result
|
|
39
39
|
@attributes[:processing_result]
|
|
40
40
|
end
|
|
@@ -45,6 +45,15 @@ module Files
|
|
|
45
45
|
@attributes[:uri] = value
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
# string - Remote server certificate security setting
|
|
49
|
+
def server_certificate
|
|
50
|
+
@attributes[:server_certificate]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def server_certificate=(value)
|
|
54
|
+
@attributes[:server_certificate] = value
|
|
55
|
+
end
|
|
56
|
+
|
|
48
57
|
# string - MD5 hash of public certificate used for message security.
|
|
49
58
|
def public_certificate_md5
|
|
50
59
|
@attributes[:public_certificate_md5]
|
|
@@ -111,6 +120,7 @@ module Files
|
|
|
111
120
|
# Parameters:
|
|
112
121
|
# name - string - AS2 Name
|
|
113
122
|
# uri - string - URL base for AS2 responses
|
|
123
|
+
# server_certificate - string - Remote server certificate security setting
|
|
114
124
|
# public_certificate - string
|
|
115
125
|
def update(params = {})
|
|
116
126
|
params ||= {}
|
|
@@ -119,6 +129,7 @@ module Files
|
|
|
119
129
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
|
120
130
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
121
131
|
raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
|
|
132
|
+
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params.dig(:server_certificate) and !params.dig(:server_certificate).is_a?(String)
|
|
122
133
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
|
|
123
134
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
124
135
|
|
|
@@ -185,11 +196,13 @@ module Files
|
|
|
185
196
|
# uri (required) - string - URL base for AS2 responses
|
|
186
197
|
# public_certificate (required) - string
|
|
187
198
|
# as2_station_id (required) - int64 - Id of As2Station for this partner
|
|
199
|
+
# server_certificate - string - Remote server certificate security setting
|
|
188
200
|
def self.create(params = {}, options = {})
|
|
189
201
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
190
202
|
raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
|
|
191
203
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
|
|
192
204
|
raise InvalidParameterError.new("Bad parameter: as2_station_id must be an Integer") if params.dig(:as2_station_id) and !params.dig(:as2_station_id).is_a?(Integer)
|
|
205
|
+
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params.dig(:server_certificate) and !params.dig(:server_certificate).is_a?(String)
|
|
193
206
|
raise MissingParameterError.new("Parameter missing: name") unless params.dig(:name)
|
|
194
207
|
raise MissingParameterError.new("Parameter missing: uri") unless params.dig(:uri)
|
|
195
208
|
raise MissingParameterError.new("Parameter missing: public_certificate") unless params.dig(:public_certificate)
|
|
@@ -202,6 +215,7 @@ module Files
|
|
|
202
215
|
# Parameters:
|
|
203
216
|
# name - string - AS2 Name
|
|
204
217
|
# uri - string - URL base for AS2 responses
|
|
218
|
+
# server_certificate - string - Remote server certificate security setting
|
|
205
219
|
# public_certificate - string
|
|
206
220
|
def self.update(id, params = {}, options = {})
|
|
207
221
|
params ||= {}
|
|
@@ -209,6 +223,7 @@ module Files
|
|
|
209
223
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
|
210
224
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
211
225
|
raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
|
|
226
|
+
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params.dig(:server_certificate) and !params.dig(:server_certificate).is_a?(String)
|
|
212
227
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
|
|
213
228
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
214
229
|
|
|
@@ -108,6 +108,15 @@ module Files
|
|
|
108
108
|
@attributes[:public_certificate_not_after] = value
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
+
# string - MD5 hash of private key password used for message security.
|
|
112
|
+
def private_key_password_md5
|
|
113
|
+
@attributes[:private_key_password_md5]
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def private_key_password_md5=(value)
|
|
117
|
+
@attributes[:private_key_password_md5] = value
|
|
118
|
+
end
|
|
119
|
+
|
|
111
120
|
# string
|
|
112
121
|
def public_certificate
|
|
113
122
|
@attributes[:public_certificate]
|
|
@@ -126,10 +135,20 @@ module Files
|
|
|
126
135
|
@attributes[:private_key] = value
|
|
127
136
|
end
|
|
128
137
|
|
|
138
|
+
# string
|
|
139
|
+
def private_key_password
|
|
140
|
+
@attributes[:private_key_password]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
def private_key_password=(value)
|
|
144
|
+
@attributes[:private_key_password] = value
|
|
145
|
+
end
|
|
146
|
+
|
|
129
147
|
# Parameters:
|
|
130
148
|
# name - string - AS2 Name
|
|
131
149
|
# public_certificate - string
|
|
132
150
|
# private_key - string
|
|
151
|
+
# private_key_password - string
|
|
133
152
|
def update(params = {})
|
|
134
153
|
params ||= {}
|
|
135
154
|
params[:id] = @attributes[:id]
|
|
@@ -138,6 +157,7 @@ module Files
|
|
|
138
157
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
139
158
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
|
|
140
159
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
|
|
160
|
+
raise InvalidParameterError.new("Bad parameter: private_key_password must be an String") if params.dig(:private_key_password) and !params.dig(:private_key_password).is_a?(String)
|
|
141
161
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
142
162
|
|
|
143
163
|
Api.send_request("/as2_stations/#{@attributes[:id]}", :patch, params, @options)
|
|
@@ -202,10 +222,12 @@ module Files
|
|
|
202
222
|
# name (required) - string - AS2 Name
|
|
203
223
|
# public_certificate (required) - string
|
|
204
224
|
# private_key (required) - string
|
|
225
|
+
# private_key_password - string
|
|
205
226
|
def self.create(params = {}, options = {})
|
|
206
227
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
207
228
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
|
|
208
229
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
|
|
230
|
+
raise InvalidParameterError.new("Bad parameter: private_key_password must be an String") if params.dig(:private_key_password) and !params.dig(:private_key_password).is_a?(String)
|
|
209
231
|
raise MissingParameterError.new("Parameter missing: name") unless params.dig(:name)
|
|
210
232
|
raise MissingParameterError.new("Parameter missing: public_certificate") unless params.dig(:public_certificate)
|
|
211
233
|
raise MissingParameterError.new("Parameter missing: private_key") unless params.dig(:private_key)
|
|
@@ -218,6 +240,7 @@ module Files
|
|
|
218
240
|
# name - string - AS2 Name
|
|
219
241
|
# public_certificate - string
|
|
220
242
|
# private_key - string
|
|
243
|
+
# private_key_password - string
|
|
221
244
|
def self.update(id, params = {}, options = {})
|
|
222
245
|
params ||= {}
|
|
223
246
|
params[:id] = id
|
|
@@ -225,6 +248,7 @@ module Files
|
|
|
225
248
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
|
|
226
249
|
raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
|
|
227
250
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
|
|
251
|
+
raise InvalidParameterError.new("Bad parameter: private_key_password must be an String") if params.dig(:private_key_password) and !params.dig(:private_key_password).is_a?(String)
|
|
228
252
|
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
|
229
253
|
|
|
230
254
|
response, options = Api.send_request("/as2_stations/#{params[:id]}", :patch, params, options)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.251
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-03-
|
|
11
|
+
date: 2022-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|