files.com 1.1.82 → 1.1.83

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d4e66c22b0d20c44a7a53a0466ccae5c927825524f8e70da5f23c5df93d537a
4
- data.tar.gz: 667d274d4b29e015316f7f2541d55cc2ac415ead6a61104e288d738b1210782a
3
+ metadata.gz: 51503029ddfe69661085fcd7239a9f7419e7d5eb955b7a3f553ac6d1198e31fe
4
+ data.tar.gz: b17a27b186459bb6e06a84d611696937299cb390853e67d4495aa3f8737d294e
5
5
  SHA512:
6
- metadata.gz: 54d0b03228a45ce0e591ea5e5f43410ecf4f455462d4e46678e95b292bcbe335494cda075481e9e4b3ecc068c218c8769a18e8314a5fe02c1bb739b4fb1be0f2
7
- data.tar.gz: 3cb4ad86e39f8044a66061caf4709db0bf6fb540d442276cfa7c692be9e306c0d306797ebcdc4ec80345b9936bf4228c424e05f4deba195bcc77f81cd78330b1
6
+ metadata.gz: 4a167b12d4cc558aa9c9a826282b6168ca778a923aa6cfdbe8cf641914d01354c6abb8ac5155c7c8ed78591ee73ef9a1f17e926fa64ba25242a0ee2a23396477
7
+ data.tar.gz: 55a7b496f5de9a5f60aac06d8befb5036045cac4839590791585c55a49aef08e18db808039720f0f9c7a81de46779773e1842e9dadf3bf10fa827290eb05082a
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.82
1
+ 1.1.83
data/docs/api_key.md CHANGED
@@ -170,7 +170,7 @@ Files::ApiKey.delete(id)
170
170
  ## Update Api Key
171
171
 
172
172
  ```
173
- api_key = Files::ApiKey.list.first
173
+ api_key = Files::ApiKey.find(id)
174
174
 
175
175
  api_key.update(
176
176
  description: "example",
@@ -194,7 +194,7 @@ api_key.update(
194
194
  ## Delete Api Key
195
195
 
196
196
  ```
197
- api_key = Files::ApiKey.list.first
197
+ api_key = Files::ApiKey.find(id)
198
198
 
199
199
  api_key.delete
200
200
  ```
data/docs/as2_partner.md CHANGED
@@ -137,7 +137,7 @@ Files::As2Partner.delete(id)
137
137
  ## Update As2 Partner
138
138
 
139
139
  ```
140
- as2_partner = Files::As2Partner.list.first
140
+ as2_partner = Files::As2Partner.find(id)
141
141
 
142
142
  as2_partner.update(
143
143
  name: "AS2 Partner Name",
@@ -164,7 +164,7 @@ as2_partner.update(
164
164
  ## Delete As2 Partner
165
165
 
166
166
  ```
167
- as2_partner = Files::As2Partner.list.first
167
+ as2_partner = Files::As2Partner.find(id)
168
168
 
169
169
  as2_partner.delete
170
170
  ```
data/docs/as2_station.md CHANGED
@@ -124,7 +124,7 @@ Files::As2Station.delete(id)
124
124
  ## Update As2 Station
125
125
 
126
126
  ```
127
- as2_station = Files::As2Station.list.first
127
+ as2_station = Files::As2Station.find(id)
128
128
 
129
129
  as2_station.update(
130
130
  name: "AS2 Station Name"
@@ -145,7 +145,7 @@ as2_station.update(
145
145
  ## Delete As2 Station
146
146
 
147
147
  ```
148
- as2_station = Files::As2Station.list.first
148
+ as2_station = Files::As2Station.find(id)
149
149
 
150
150
  as2_station.delete
151
151
  ```
data/docs/automation.md CHANGED
@@ -293,7 +293,7 @@ Files::Automation.delete(id)
293
293
  ## Manually run automation
294
294
 
295
295
  ```
296
- automation = Files::Automation.list.first
296
+ automation = Files::Automation.find(id)
297
297
 
298
298
  automation.manual_run
299
299
  ```
@@ -308,7 +308,7 @@ automation.manual_run
308
308
  ## Update Automation
309
309
 
310
310
  ```
311
- automation = Files::Automation.list.first
311
+ automation = Files::Automation.find(id)
312
312
 
313
313
  automation.update(
314
314
  source: "source",
@@ -375,7 +375,7 @@ automation.update(
375
375
  ## Delete Automation
376
376
 
377
377
  ```
378
- automation = Files::Automation.list.first
378
+ automation = Files::Automation.find(id)
379
379
 
380
380
  automation.delete
381
381
  ```
data/docs/behavior.md CHANGED
@@ -188,7 +188,7 @@ Files::Behavior.delete(id)
188
188
  ## Update Behavior
189
189
 
190
190
  ```
191
- behavior = Files::Behavior.list.first
191
+ behavior = Files::Behavior.find(id)
192
192
 
193
193
  behavior.update(
194
194
  value: "{\"method\": \"GET\"}",
@@ -221,7 +221,7 @@ behavior.update(
221
221
  ## Delete Behavior
222
222
 
223
223
  ```
224
- behavior = Files::Behavior.list.first
224
+ behavior = Files::Behavior.find(id)
225
225
 
226
226
  behavior.delete
227
227
  ```
data/docs/bundle.md CHANGED
@@ -339,7 +339,7 @@ Files::Bundle.delete(id)
339
339
  ## Send email(s) with a link to bundle
340
340
 
341
341
  ```
342
- bundle = Files::Bundle.list.first
342
+ bundle = Files::Bundle.find(id)
343
343
 
344
344
  bundle.share(
345
345
  to: ["johndoe@gmail.com"],
@@ -361,7 +361,7 @@ bundle.share(
361
361
  ## Update Bundle
362
362
 
363
363
  ```
364
- bundle = Files::Bundle.list.first
364
+ bundle = Files::Bundle.find(id)
365
365
 
366
366
  bundle.update(
367
367
  paths: ["file.txt"],
@@ -428,7 +428,7 @@ bundle.update(
428
428
  ## Delete Bundle
429
429
 
430
430
  ```
431
- bundle = Files::Bundle.list.first
431
+ bundle = Files::Bundle.find(id)
432
432
 
433
433
  bundle.delete
434
434
  ```
@@ -107,7 +107,7 @@ Files::BundleNotification.delete(id)
107
107
  ## Update Bundle Notification
108
108
 
109
109
  ```
110
- bundle_notification = Files::BundleNotification.list.first
110
+ bundle_notification = Files::BundleNotification.find(id)
111
111
 
112
112
  bundle_notification.update(
113
113
  notify_on_registration: true,
@@ -127,7 +127,7 @@ bundle_notification.update(
127
127
  ## Delete Bundle Notification
128
128
 
129
129
  ```
130
- bundle_notification = Files::BundleNotification.list.first
130
+ bundle_notification = Files::BundleNotification.find(id)
131
131
 
132
132
  bundle_notification.delete
133
133
  ```
data/docs/clickwrap.md CHANGED
@@ -115,7 +115,7 @@ Files::Clickwrap.delete(id)
115
115
  ## Update Clickwrap
116
116
 
117
117
  ```
118
- clickwrap = Files::Clickwrap.list.first
118
+ clickwrap = Files::Clickwrap.find(id)
119
119
 
120
120
  clickwrap.update(
121
121
  name: "Example Site NDA for Files.com Use",
@@ -141,7 +141,7 @@ clickwrap.update(
141
141
  ## Delete Clickwrap
142
142
 
143
143
  ```
144
- clickwrap = Files::Clickwrap.list.first
144
+ clickwrap = Files::Clickwrap.find(id)
145
145
 
146
146
  clickwrap.delete
147
147
  ```
data/docs/file.md CHANGED
@@ -276,7 +276,7 @@ Files::File.begin_upload(path,
276
276
  ## Download file
277
277
 
278
278
  ```
279
- file = Files::File.new
279
+ file = Files::File.find(path)
280
280
 
281
281
  file.download(
282
282
  with_previews: true,
@@ -298,7 +298,7 @@ file.download(
298
298
  ## Update file/folder metadata
299
299
 
300
300
  ```
301
- file = Files::File.new
301
+ file = Files::File.find(path)
302
302
 
303
303
  file.update(
304
304
  custom_metadata: {"key":"value"},
@@ -320,7 +320,7 @@ file.update(
320
320
  ## Delete file/folder
321
321
 
322
322
  ```
323
- file = Files::File.new
323
+ file = Files::File.find(path)
324
324
 
325
325
  file.delete(
326
326
  recursive: true
@@ -338,7 +338,7 @@ file.delete(
338
338
  ## Copy file/folder
339
339
 
340
340
  ```
341
- file = Files::File.new
341
+ file = Files::File.find(path)
342
342
 
343
343
  file.copy(
344
344
  destination: "destination",
@@ -360,7 +360,7 @@ file.copy(
360
360
  ## Move file/folder
361
361
 
362
362
  ```
363
- file = Files::File.new
363
+ file = Files::File.find(path)
364
364
 
365
365
  file.move(
366
366
  destination: "destination",
@@ -380,7 +380,7 @@ file.move(
380
380
  ## Begin file upload
381
381
 
382
382
  ```
383
- file = Files::File.new
383
+ file = Files::File.find(path)
384
384
 
385
385
  file.begin_upload(
386
386
  mkdir_parents: true,
@@ -142,7 +142,7 @@ Files::FormFieldSet.delete(id)
142
142
  ## Update Form Field Set
143
143
 
144
144
  ```
145
- form_field_set = Files::FormFieldSet.list.first
145
+ form_field_set = Files::FormFieldSet.find(id)
146
146
 
147
147
  form_field_set.update(
148
148
  title: "Sample Form Title",
@@ -168,7 +168,7 @@ form_field_set.update(
168
168
  ## Delete Form Field Set
169
169
 
170
170
  ```
171
- form_field_set = Files::FormFieldSet.list.first
171
+ form_field_set = Files::FormFieldSet.find(id)
172
172
 
173
173
  form_field_set.delete
174
174
  ```
data/docs/gpg_key.md CHANGED
@@ -118,7 +118,7 @@ Files::GpgKey.delete(id)
118
118
  ## Update Gpg Key
119
119
 
120
120
  ```
121
- gpg_key = Files::GpgKey.list.first
121
+ gpg_key = Files::GpgKey.find(id)
122
122
 
123
123
  gpg_key.update(
124
124
  public_key: "7f8bc1210b09b9ddf469e6b6b8920e76",
@@ -142,7 +142,7 @@ gpg_key.update(
142
142
  ## Delete Gpg Key
143
143
 
144
144
  ```
145
- gpg_key = Files::GpgKey.list.first
145
+ gpg_key = Files::GpgKey.find(id)
146
146
 
147
147
  gpg_key.delete
148
148
  ```
data/docs/group.md CHANGED
@@ -145,7 +145,7 @@ Files::Group.delete(id)
145
145
  ## Update Group
146
146
 
147
147
  ```
148
- group = Files::Group.list.first
148
+ group = Files::Group.find(id)
149
149
 
150
150
  group.update(
151
151
  notes: "example",
@@ -179,7 +179,7 @@ group.update(
179
179
  ## Delete Group
180
180
 
181
181
  ```
182
- group = Files::Group.list.first
182
+ group = Files::Group.find(id)
183
183
 
184
184
  group.delete
185
185
  ```
data/docs/message.md CHANGED
@@ -122,7 +122,7 @@ Files::Message.delete(id)
122
122
  ## Update Message
123
123
 
124
124
  ```
125
- message = Files::Message.list.first
125
+ message = Files::Message.find(id)
126
126
 
127
127
  message.update(
128
128
  project_id: 1,
@@ -144,7 +144,7 @@ message.update(
144
144
  ## Delete Message
145
145
 
146
146
  ```
147
- message = Files::Message.list.first
147
+ message = Files::Message.find(id)
148
148
 
149
149
  message.delete
150
150
  ```
@@ -105,7 +105,7 @@ Files::MessageComment.delete(id)
105
105
  ## Update Message Comment
106
106
 
107
107
  ```
108
- message_comment = Files::MessageComment.list.first
108
+ message_comment = Files::MessageComment.find(id)
109
109
 
110
110
  message_comment.update(
111
111
  body: "body"
@@ -123,7 +123,7 @@ message_comment.update(
123
123
  ## Delete Message Comment
124
124
 
125
125
  ```
126
- message_comment = Files::MessageComment.list.first
126
+ message_comment = Files::MessageComment.find(id)
127
127
 
128
128
  message_comment.delete
129
129
  ```
@@ -82,7 +82,7 @@ Files::MessageCommentReaction.delete(id)
82
82
  ## Delete Message Comment Reaction
83
83
 
84
84
  ```
85
- message_comment_reaction = Files::MessageCommentReaction.list.first
85
+ message_comment_reaction = Files::MessageCommentReaction.find(id)
86
86
 
87
87
  message_comment_reaction.delete
88
88
  ```
@@ -82,7 +82,7 @@ Files::MessageReaction.delete(id)
82
82
  ## Delete Message Reaction
83
83
 
84
84
  ```
85
- message_reaction = Files::MessageReaction.list.first
85
+ message_reaction = Files::MessageReaction.find(id)
86
86
 
87
87
  message_reaction.delete
88
88
  ```
data/docs/notification.md CHANGED
@@ -203,7 +203,7 @@ Files::Notification.delete(id)
203
203
  ## Update Notification
204
204
 
205
205
  ```
206
- notification = Files::Notification.list.first
206
+ notification = Files::Notification.find(id)
207
207
 
208
208
  notification.update(
209
209
  notify_on_copy: true,
@@ -245,7 +245,7 @@ notification.update(
245
245
  ## Delete Notification
246
246
 
247
247
  ```
248
- notification = Files::Notification.list.first
248
+ notification = Files::Notification.find(id)
249
249
 
250
250
  notification.delete
251
251
  ```
data/docs/project.md CHANGED
@@ -91,7 +91,7 @@ Files::Project.delete(id)
91
91
  ## Update Project
92
92
 
93
93
  ```
94
- project = Files::Project.list.first
94
+ project = Files::Project.find(id)
95
95
 
96
96
  project.update(
97
97
  global_access: "global_access"
@@ -109,7 +109,7 @@ project.update(
109
109
  ## Delete Project
110
110
 
111
111
  ```
112
- project = Files::Project.list.first
112
+ project = Files::Project.find(id)
113
113
 
114
114
  project.delete
115
115
  ```
data/docs/public_key.md CHANGED
@@ -108,7 +108,7 @@ Files::PublicKey.delete(id)
108
108
  ## Update Public Key
109
109
 
110
110
  ```
111
- public_key = Files::PublicKey.list.first
111
+ public_key = Files::PublicKey.find(id)
112
112
 
113
113
  public_key.update(
114
114
  title: "My Main Key"
@@ -126,7 +126,7 @@ public_key.update(
126
126
  ## Delete Public Key
127
127
 
128
128
  ```
129
- public_key = Files::PublicKey.list.first
129
+ public_key = Files::PublicKey.find(id)
130
130
 
131
131
  public_key.delete
132
132
  ```
@@ -482,7 +482,7 @@ Files::RemoteServer.delete(id)
482
482
  ## Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
483
483
 
484
484
  ```
485
- remote_server = Files::RemoteServer.list.first
485
+ remote_server = Files::RemoteServer.find(id)
486
486
 
487
487
  remote_server.configuration_file(
488
488
  api_token: "example",
@@ -520,7 +520,7 @@ remote_server.configuration_file(
520
520
  ## Update Remote Server
521
521
 
522
522
  ```
523
- remote_server = Files::RemoteServer.list.first
523
+ remote_server = Files::RemoteServer.find(id)
524
524
 
525
525
  remote_server.update(
526
526
  aws_access_key: "example",
@@ -647,7 +647,7 @@ remote_server.update(
647
647
  ## Delete Remote Server
648
648
 
649
649
  ```
650
- remote_server = Files::RemoteServer.list.first
650
+ remote_server = Files::RemoteServer.find(id)
651
651
 
652
652
  remote_server.delete
653
653
  ```
@@ -98,7 +98,7 @@ Files::SftpHostKey.delete(id)
98
98
  ## Update Sftp Host Key
99
99
 
100
100
  ```
101
- sftp_host_key = Files::SftpHostKey.list.first
101
+ sftp_host_key = Files::SftpHostKey.find(id)
102
102
 
103
103
  sftp_host_key.update(
104
104
  name: "example"
@@ -117,7 +117,7 @@ sftp_host_key.update(
117
117
  ## Delete Sftp Host Key
118
118
 
119
119
  ```
120
- sftp_host_key = Files::SftpHostKey.list.first
120
+ sftp_host_key = Files::SftpHostKey.find(id)
121
121
 
122
122
  sftp_host_key.delete
123
123
  ```
data/docs/share_group.md CHANGED
@@ -115,7 +115,7 @@ Files::ShareGroup.delete(id)
115
115
  ## Update Share Group
116
116
 
117
117
  ```
118
- share_group = Files::ShareGroup.list.first
118
+ share_group = Files::ShareGroup.find(id)
119
119
 
120
120
  share_group.update(
121
121
  notes: "This group is defined for testing purposes",
@@ -137,7 +137,7 @@ share_group.update(
137
137
  ## Delete Share Group
138
138
 
139
139
  ```
140
- share_group = Files::ShareGroup.list.first
140
+ share_group = Files::ShareGroup.find(id)
141
141
 
142
142
  share_group.delete
143
143
  ```
data/docs/snapshot.md CHANGED
@@ -119,7 +119,7 @@ Files::Snapshot.delete(id)
119
119
  ## Finalize Snapshot
120
120
 
121
121
  ```
122
- snapshot = Files::Snapshot.list.first
122
+ snapshot = Files::Snapshot.find(id)
123
123
 
124
124
  snapshot.finalize
125
125
  ```
@@ -134,7 +134,7 @@ snapshot.finalize
134
134
  ## Update Snapshot
135
135
 
136
136
  ```
137
- snapshot = Files::Snapshot.list.first
137
+ snapshot = Files::Snapshot.find(id)
138
138
 
139
139
  snapshot.update(
140
140
  expires_at: "2000-01-01T01:00:00Z",
@@ -155,7 +155,7 @@ snapshot.update(
155
155
  ## Delete Snapshot
156
156
 
157
157
  ```
158
- snapshot = Files::Snapshot.list.first
158
+ snapshot = Files::Snapshot.find(id)
159
159
 
160
160
  snapshot.delete
161
161
  ```
data/docs/sso_strategy.md CHANGED
@@ -148,7 +148,7 @@ Files::SsoStrategy.sync(id)
148
148
  ## Synchronize provisioning data with the SSO remote server
149
149
 
150
150
  ```
151
- sso_strategy = Files::SsoStrategy.list.first
151
+ sso_strategy = Files::SsoStrategy.find(id)
152
152
 
153
153
  sso_strategy.sync
154
154
  ```
data/docs/style.md CHANGED
@@ -65,7 +65,7 @@ Files::Style.delete(path)
65
65
  ## Update Style
66
66
 
67
67
  ```
68
- style = Files::Style.new
68
+ style = Files::Style.find(path)
69
69
 
70
70
  style.update(
71
71
  file: "file"
@@ -83,7 +83,7 @@ style.update(
83
83
  ## Delete Style
84
84
 
85
85
  ```
86
- style = Files::Style.new
86
+ style = Files::Style.find(path)
87
87
 
88
88
  style.delete
89
89
  ```
data/docs/user.md CHANGED
@@ -433,7 +433,7 @@ Files::User.delete(id)
433
433
  ## Unlock user who has been locked out due to failed logins
434
434
 
435
435
  ```
436
- user = Files::User.list.first
436
+ user = Files::User.find(id)
437
437
 
438
438
  user.unlock
439
439
  ```
@@ -448,7 +448,7 @@ user.unlock
448
448
  ## Resend user welcome email
449
449
 
450
450
  ```
451
- user = Files::User.list.first
451
+ user = Files::User.find(id)
452
452
 
453
453
  user.resend_welcome_email
454
454
  ```
@@ -463,7 +463,7 @@ user.resend_welcome_email
463
463
  ## Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
464
464
 
465
465
  ```
466
- user = Files::User.list.first
466
+ user = Files::User.find(id)
467
467
 
468
468
  user.user_2fa_reset
469
469
  ```
@@ -478,7 +478,7 @@ user.user_2fa_reset
478
478
  ## Update User
479
479
 
480
480
  ```
481
- user = Files::User.list.first
481
+ user = Files::User.find(id)
482
482
 
483
483
  user.update(
484
484
  avatar_delete: true,
@@ -577,7 +577,7 @@ user.update(
577
577
  ## Delete User
578
578
 
579
579
  ```
580
- user = Files::User.list.first
580
+ user = Files::User.find(id)
581
581
 
582
582
  user.delete
583
583
  ```
data/docs/user_request.md CHANGED
@@ -87,7 +87,7 @@ Files::UserRequest.delete(id)
87
87
  ## Delete User Request
88
88
 
89
89
  ```
90
- user_request = Files::UserRequest.list.first
90
+ user_request = Files::UserRequest.find(id)
91
91
 
92
92
  user_request.delete
93
93
  ```
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.82"
4
+ VERSION = "1.1.83"
5
5
  end
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.1.82
4
+ version: 1.1.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-22 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable