files.com 1.0.249 → 1.0.250
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/as2_outgoing_message.md +1 -1
- data/docs/as2_station.md +7 -1
- data/lib/files.com/models/as2_outgoing_message.rb +1 -1
- 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: 21d5a42762cd7774449905d76549c0e682a2d6633c05dade6721c9de93230448
|
4
|
+
data.tar.gz: 5cc307793dd61b6337868ab712ee29dd3b5f6254890fb0c640ee6325c8acec56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b22e4c9144c0ae5a7fc730c93843f6ef5d0c64c25f2e89279b0ea3bb39de22e892bf959e0a0bae316c80ea1a307a1d2b5d59b2a5a13b4453a252be7e440fbe2
|
7
|
+
data.tar.gz: 5785cfc520f58a32f477a447ad588b2b01809dea903ba9afe768fa9cb5eb2c2e9f39a28fc175e52ea817729c056dc31d33199b938e81747f0103013ce6538dc9
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.250
|
@@ -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_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
|
---
|
@@ -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
|
@@ -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.250
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|