files.com 1.0.231 → 1.0.232

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,188 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class As2Partner
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Id of the AS2 Partner.
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ def id=(value)
18
+ @attributes[:id] = value
19
+ end
20
+
21
+ # int64 - Id of the AS2 Station associated with this partner.
22
+ def as2_station_id
23
+ @attributes[:as2_station_id]
24
+ end
25
+
26
+ def as2_station_id=(value)
27
+ @attributes[:as2_station_id] = value
28
+ end
29
+
30
+ # string - The partner's formal AS2 name.
31
+ def name
32
+ @attributes[:name]
33
+ end
34
+
35
+ def name=(value)
36
+ @attributes[:name] = value
37
+ end
38
+
39
+ # string - Public URI for sending AS2 message to.
40
+ def uri
41
+ @attributes[:uri]
42
+ end
43
+
44
+ def uri=(value)
45
+ @attributes[:uri] = value
46
+ end
47
+
48
+ # string - MD5 hash of public certificate used for message security.
49
+ def public_certificate_md5
50
+ @attributes[:public_certificate_md5]
51
+ end
52
+
53
+ def public_certificate_md5=(value)
54
+ @attributes[:public_certificate_md5] = value
55
+ end
56
+
57
+ # string
58
+ def public_certificate
59
+ @attributes[:public_certificate]
60
+ end
61
+
62
+ def public_certificate=(value)
63
+ @attributes[:public_certificate] = value
64
+ end
65
+
66
+ # Parameters:
67
+ # name - string - AS2 Name
68
+ # uri - string - URL base for AS2 responses
69
+ # public_certificate - string
70
+ def update(params = {})
71
+ params ||= {}
72
+ params[:id] = @attributes[:id]
73
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
74
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
75
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
76
+ raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
77
+ raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
78
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
79
+
80
+ Api.send_request("/as2_partners/#{@attributes[:id]}", :patch, params, @options)
81
+ end
82
+
83
+ def delete(params = {})
84
+ params ||= {}
85
+ params[:id] = @attributes[:id]
86
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
87
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
88
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
89
+
90
+ Api.send_request("/as2_partners/#{@attributes[:id]}", :delete, params, @options)
91
+ end
92
+
93
+ def destroy(params = {})
94
+ delete(params)
95
+ end
96
+
97
+ def save
98
+ if @attributes[:id]
99
+ update(@attributes)
100
+ else
101
+ new_obj = As2Partner.create(@attributes, @options)
102
+ @attributes = new_obj.attributes
103
+ end
104
+ end
105
+
106
+ # Parameters:
107
+ # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
108
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
109
+ def self.list(params = {}, options = {})
110
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
111
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
112
+
113
+ List.new(As2Partner, params) do
114
+ Api.send_request("/as2_partners", :get, params, options)
115
+ end
116
+ end
117
+
118
+ def self.all(params = {}, options = {})
119
+ list(params, options)
120
+ end
121
+
122
+ # Parameters:
123
+ # id (required) - int64 - As2 Partner ID.
124
+ def self.find(id, params = {}, options = {})
125
+ params ||= {}
126
+ params[:id] = id
127
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
128
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
129
+
130
+ response, options = Api.send_request("/as2_partners/#{params[:id]}", :get, params, options)
131
+ As2Partner.new(response.data, options)
132
+ end
133
+
134
+ def self.get(id, params = {}, options = {})
135
+ find(id, params, options)
136
+ end
137
+
138
+ # Parameters:
139
+ # name (required) - string - AS2 Name
140
+ # uri (required) - string - URL base for AS2 responses
141
+ # public_certificate (required) - string
142
+ # as2_station_id (required) - int64 - Id of As2Station for this partner
143
+ def self.create(params = {}, options = {})
144
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
145
+ raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
146
+ raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
147
+ 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)
148
+ raise MissingParameterError.new("Parameter missing: name") unless params.dig(:name)
149
+ raise MissingParameterError.new("Parameter missing: uri") unless params.dig(:uri)
150
+ raise MissingParameterError.new("Parameter missing: public_certificate") unless params.dig(:public_certificate)
151
+ raise MissingParameterError.new("Parameter missing: as2_station_id") unless params.dig(:as2_station_id)
152
+
153
+ response, options = Api.send_request("/as2_partners", :post, params, options)
154
+ As2Partner.new(response.data, options)
155
+ end
156
+
157
+ # Parameters:
158
+ # name - string - AS2 Name
159
+ # uri - string - URL base for AS2 responses
160
+ # public_certificate - string
161
+ def self.update(id, params = {}, options = {})
162
+ params ||= {}
163
+ params[:id] = id
164
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
165
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
166
+ raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
167
+ raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
168
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
169
+
170
+ response, options = Api.send_request("/as2_partners/#{params[:id]}", :patch, params, options)
171
+ As2Partner.new(response.data, options)
172
+ end
173
+
174
+ def self.delete(id, params = {}, options = {})
175
+ params ||= {}
176
+ params[:id] = id
177
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
178
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
179
+
180
+ response, _options = Api.send_request("/as2_partners/#{params[:id]}", :delete, params, options)
181
+ response.data
182
+ end
183
+
184
+ def self.destroy(id, params = {}, options = {})
185
+ delete(id, params, options)
186
+ end
187
+ end
188
+ end
@@ -0,0 +1,217 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class As2Station
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Id of the AS2 Station.
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ def id=(value)
18
+ @attributes[:id] = value
19
+ end
20
+
21
+ # string - The station's formal AS2 name.
22
+ def name
23
+ @attributes[:name]
24
+ end
25
+
26
+ def name=(value)
27
+ @attributes[:name] = value
28
+ end
29
+
30
+ # string - Public URI for sending AS2 message to.
31
+ def uri
32
+ @attributes[:uri]
33
+ end
34
+
35
+ def uri=(value)
36
+ @attributes[:uri] = value
37
+ end
38
+
39
+ # string - The station's AS2 domain name.
40
+ def domain
41
+ @attributes[:domain]
42
+ end
43
+
44
+ def domain=(value)
45
+ @attributes[:domain] = value
46
+ end
47
+
48
+ # string - Public certificate used for message security.
49
+ def public_certificate
50
+ @attributes[:public_certificate]
51
+ end
52
+
53
+ def public_certificate=(value)
54
+ @attributes[:public_certificate] = value
55
+ end
56
+
57
+ # string - MD5 hash of public certificate used for message security.
58
+ def public_certificate_md5
59
+ @attributes[:public_certificate_md5]
60
+ end
61
+
62
+ def public_certificate_md5=(value)
63
+ @attributes[:public_certificate_md5] = value
64
+ end
65
+
66
+ # string - MD5 hash of private key used for message security.
67
+ def private_key_md5
68
+ @attributes[:private_key_md5]
69
+ end
70
+
71
+ def private_key_md5=(value)
72
+ @attributes[:private_key_md5] = value
73
+ end
74
+
75
+ # string
76
+ def private_key
77
+ @attributes[:private_key]
78
+ end
79
+
80
+ def private_key=(value)
81
+ @attributes[:private_key] = value
82
+ end
83
+
84
+ # Parameters:
85
+ # name - string - AS2 Name
86
+ # domain - string - AS2 Domain
87
+ # uri - string - URL base for AS2 responses
88
+ # public_certificate - string
89
+ # private_key - string
90
+ def update(params = {})
91
+ params ||= {}
92
+ params[:id] = @attributes[:id]
93
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
94
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
95
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
96
+ raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
97
+ raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
98
+ raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
99
+ raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
100
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
101
+
102
+ Api.send_request("/as2_stations/#{@attributes[:id]}", :patch, params, @options)
103
+ end
104
+
105
+ def delete(params = {})
106
+ params ||= {}
107
+ params[:id] = @attributes[:id]
108
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
109
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
110
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
111
+
112
+ Api.send_request("/as2_stations/#{@attributes[:id]}", :delete, params, @options)
113
+ end
114
+
115
+ def destroy(params = {})
116
+ delete(params)
117
+ end
118
+
119
+ def save
120
+ if @attributes[:id]
121
+ update(@attributes)
122
+ else
123
+ new_obj = As2Station.create(@attributes, @options)
124
+ @attributes = new_obj.attributes
125
+ end
126
+ end
127
+
128
+ # Parameters:
129
+ # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
130
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
131
+ def self.list(params = {}, options = {})
132
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
133
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
134
+
135
+ List.new(As2Station, params) do
136
+ Api.send_request("/as2_stations", :get, params, options)
137
+ end
138
+ end
139
+
140
+ def self.all(params = {}, options = {})
141
+ list(params, options)
142
+ end
143
+
144
+ # Parameters:
145
+ # id (required) - int64 - As2 Station ID.
146
+ def self.find(id, params = {}, options = {})
147
+ params ||= {}
148
+ params[:id] = id
149
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
150
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
151
+
152
+ response, options = Api.send_request("/as2_stations/#{params[:id]}", :get, params, options)
153
+ As2Station.new(response.data, options)
154
+ end
155
+
156
+ def self.get(id, params = {}, options = {})
157
+ find(id, params, options)
158
+ end
159
+
160
+ # Parameters:
161
+ # name (required) - string - AS2 Name
162
+ # domain (required) - string - AS2 Domain
163
+ # uri (required) - string - URL base for AS2 responses
164
+ # public_certificate (required) - string
165
+ # private_key (required) - string
166
+ def self.create(params = {}, options = {})
167
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
168
+ raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
169
+ raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
170
+ raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
171
+ raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
172
+ raise MissingParameterError.new("Parameter missing: name") unless params.dig(:name)
173
+ raise MissingParameterError.new("Parameter missing: domain") unless params.dig(:domain)
174
+ raise MissingParameterError.new("Parameter missing: uri") unless params.dig(:uri)
175
+ raise MissingParameterError.new("Parameter missing: public_certificate") unless params.dig(:public_certificate)
176
+ raise MissingParameterError.new("Parameter missing: private_key") unless params.dig(:private_key)
177
+
178
+ response, options = Api.send_request("/as2_stations", :post, params, options)
179
+ As2Station.new(response.data, options)
180
+ end
181
+
182
+ # Parameters:
183
+ # name - string - AS2 Name
184
+ # domain - string - AS2 Domain
185
+ # uri - string - URL base for AS2 responses
186
+ # public_certificate - string
187
+ # private_key - string
188
+ def self.update(id, params = {}, options = {})
189
+ params ||= {}
190
+ params[:id] = id
191
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
192
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
193
+ raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
194
+ raise InvalidParameterError.new("Bad parameter: uri must be an String") if params.dig(:uri) and !params.dig(:uri).is_a?(String)
195
+ raise InvalidParameterError.new("Bad parameter: public_certificate must be an String") if params.dig(:public_certificate) and !params.dig(:public_certificate).is_a?(String)
196
+ raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
197
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
198
+
199
+ response, options = Api.send_request("/as2_stations/#{params[:id]}", :patch, params, options)
200
+ As2Station.new(response.data, options)
201
+ end
202
+
203
+ def self.delete(id, params = {}, options = {})
204
+ params ||= {}
205
+ params[:id] = id
206
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
207
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
208
+
209
+ response, _options = Api.send_request("/as2_stations/#{params[:id]}", :delete, params, options)
210
+ response.data
211
+ end
212
+
213
+ def self.destroy(id, params = {}, options = {})
214
+ delete(id, params, options)
215
+ end
216
+ end
217
+ end
@@ -63,7 +63,7 @@ module Files
63
63
  @attributes[:query_action] = value
64
64
  end
65
65
 
66
- # string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
66
+ # string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`
67
67
  def query_interface
68
68
  @attributes[:query_interface]
69
69
  end
@@ -273,7 +273,7 @@ module Files
273
273
  # start_at - string - Start date/time of export range.
274
274
  # end_at - string - End date/time of export range.
275
275
  # query_action - string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
276
- # query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
276
+ # query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`
277
277
  # query_user_id - string - Return results that are actions performed by the user indiciated by this User ID
278
278
  # query_file_id - string - Return results that are file actions related to the file indicated by this File ID
279
279
  # query_parent_id - string - Return results that are file actions inside the parent folder specified by this folder ID
@@ -74,7 +74,7 @@ module Files
74
74
  @attributes[:failure_type]
75
75
  end
76
76
 
77
- # string - Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`
77
+ # string - Inteface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`
78
78
  def interface
79
79
  @attributes[:interface]
80
80
  end
data/lib/files.com.rb CHANGED
@@ -34,7 +34,10 @@ require "files.com/models/action_notification_export_result"
34
34
  require "files.com/models/action_webhook_failure"
35
35
  require "files.com/models/api_key"
36
36
  require "files.com/models/app"
37
- require "files.com/models/as2_key"
37
+ require "files.com/models/as2_incoming_message"
38
+ require "files.com/models/as2_outgoing_message"
39
+ require "files.com/models/as2_partner"
40
+ require "files.com/models/as2_station"
38
41
  require "files.com/models/auto"
39
42
  require "files.com/models/automation"
40
43
  require "files.com/models/automation_run"
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.231
4
+ version: 1.0.232
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-23 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -93,7 +93,10 @@ files:
93
93
  - docs/action_webhook_failure.md
94
94
  - docs/api_key.md
95
95
  - docs/app.md
96
- - docs/as2_key.md
96
+ - docs/as2_incoming_message.md
97
+ - docs/as2_outgoing_message.md
98
+ - docs/as2_partner.md
99
+ - docs/as2_station.md
97
100
  - docs/auto.md
98
101
  - docs/automation.md
99
102
  - docs/automation_run.md
@@ -171,7 +174,10 @@ files:
171
174
  - lib/files.com/models/action_webhook_failure.rb
172
175
  - lib/files.com/models/api_key.rb
173
176
  - lib/files.com/models/app.rb
174
- - lib/files.com/models/as2_key.rb
177
+ - lib/files.com/models/as2_incoming_message.rb
178
+ - lib/files.com/models/as2_outgoing_message.rb
179
+ - lib/files.com/models/as2_partner.rb
180
+ - lib/files.com/models/as2_station.rb
175
181
  - lib/files.com/models/auto.rb
176
182
  - lib/files.com/models/automation.rb
177
183
  - lib/files.com/models/automation_run.rb
@@ -269,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
275
  - !ruby/object:Gem::Version
270
276
  version: '0'
271
277
  requirements: []
272
- rubygems_version: 3.2.17
278
+ rubygems_version: 3.1.4
273
279
  signing_key:
274
280
  specification_version: 4
275
281
  summary: Files.com Ruby client.
data/docs/as2_key.md DELETED
@@ -1,131 +0,0 @@
1
- # As2Key
2
-
3
- ## Example As2Key Object
4
-
5
- ```
6
- {
7
- "id": 1,
8
- "as2_partnership_name": "Test",
9
- "created_at": "2000-01-01T01:00:00Z",
10
- "fingerprint": "cf:cb:d3:26:52:6c:55:88:83:17:13:cf:e7:70:eb:1b:32:37:38:c0"
11
- }
12
- ```
13
-
14
- * `id` (int64): AS2 Key ID
15
- * `as2_partnership_name` (string): AS2 Partnership Name
16
- * `created_at` (date-time): AS2 Key created at date/time
17
- * `fingerprint` (string): Public key fingerprint
18
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
19
- * `public_key` (string): Actual contents of Public key.
20
-
21
-
22
- ---
23
-
24
- ## List As2 Keys
25
-
26
- ```
27
- Files::As2Key.list(
28
- user_id: 1,
29
- per_page: 1
30
- )
31
- ```
32
-
33
- ### Parameters
34
-
35
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
36
- * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
37
- * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
38
-
39
-
40
- ---
41
-
42
- ## Show As2 Key
43
-
44
- ```
45
- Files::As2Key.find(id)
46
- ```
47
-
48
- ### Parameters
49
-
50
- * `id` (int64): Required - As2 Key ID.
51
-
52
-
53
- ---
54
-
55
- ## Create As2 Key
56
-
57
- ```
58
- Files::As2Key.create(
59
- user_id: 1,
60
- as2_partnership_name: "Test",
61
- public_key: "public_key"
62
- )
63
- ```
64
-
65
- ### Parameters
66
-
67
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
68
- * `as2_partnership_name` (string): Required - AS2 Partnership Name
69
- * `public_key` (string): Required - Actual contents of Public key.
70
-
71
-
72
- ---
73
-
74
- ## Update As2 Key
75
-
76
- ```
77
- Files::As2Key.update(id,
78
- as2_partnership_name: "Test"
79
- )
80
- ```
81
-
82
- ### Parameters
83
-
84
- * `id` (int64): Required - As2 Key ID.
85
- * `as2_partnership_name` (string): Required - AS2 Partnership Name
86
-
87
-
88
- ---
89
-
90
- ## Delete As2 Key
91
-
92
- ```
93
- Files::As2Key.delete(id)
94
- ```
95
-
96
- ### Parameters
97
-
98
- * `id` (int64): Required - As2 Key ID.
99
-
100
-
101
- ---
102
-
103
- ## Update As2 Key
104
-
105
- ```
106
- as2_key = Files::As2Key.list.first
107
-
108
- as2_key.update(
109
- as2_partnership_name: "Test"
110
- )
111
- ```
112
-
113
- ### Parameters
114
-
115
- * `id` (int64): Required - As2 Key ID.
116
- * `as2_partnership_name` (string): Required - AS2 Partnership Name
117
-
118
-
119
- ---
120
-
121
- ## Delete As2 Key
122
-
123
- ```
124
- as2_key = Files::As2Key.list.first
125
-
126
- as2_key.delete
127
- ```
128
-
129
- ### Parameters
130
-
131
- * `id` (int64): Required - As2 Key ID.