files.com 1.0.60 → 1.0.61

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c690446029bc7e1ef335fa91a9dd7b3601e3a845d9119e5baf7299567b1c0ff8
4
- data.tar.gz: 04415de4081598065d3c06335f110f6f74d10555e697f93686fbffea17ca9458
3
+ metadata.gz: 0b09e6ed543889e7e479258251d52d0b107268d1f433193f288173901f503941
4
+ data.tar.gz: f4234f67b3d797ba688dacbb3afba2572995157ad298d8f261024ea9c50d3ff3
5
5
  SHA512:
6
- metadata.gz: 987afa0cc9011dc90acf572b5fff8a667cd5345ee6b31da8bb580b1034184705c7ac723a8deb7a027bfdec572c44f5ce8f703a65e48e2ce7a6bd6d086b6a5a27
7
- data.tar.gz: 8e3701ed6eb9d2b7b0d20bd5441bbcb51cac61f8726115af5ec9615e09205b94c75c8953cf8caaf2c5b252db1f3a82204a85b0bf53dd9c7c65a10f0f5057f0c4
6
+ metadata.gz: bfc55bd3614d89dadd955e5952234c82e949ff68664a9d309c0c4edd691ddd11e0e0300f2b95cb3256f3d48266bb535f7cdf907f44532f7512900d70da215cc3
7
+ data.tar.gz: 9caf19959a456c7c83fd0efe1d21bdc5066bbabaaf765fc6cbc13a48b44e602dd17807d873d63066bd8bcca509d096523a06f92f4b0cc4f4e4943bd40f5cbb00
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.60
1
+ 1.0.61
@@ -158,7 +158,8 @@ Files::ApiKey.delete(id)
158
158
  ## Update Api Key
159
159
 
160
160
  ```
161
- api_key = Files::ApiKey.find(1)
161
+ api_key = Files::ApiKey.list_for(path).first
162
+
162
163
  api_key.update(
163
164
  name: "My Key",
164
165
  permission_set: "full",
@@ -179,7 +180,8 @@ api_key.update(
179
180
  ## Delete Api Key
180
181
 
181
182
  ```
182
- api_key = Files::ApiKey.find(1)
183
+ api_key = Files::ApiKey.list_for(path).first
184
+
183
185
  api_key.delete
184
186
  ```
185
187
 
@@ -105,7 +105,8 @@ Files::As2Key.delete(id)
105
105
  ## Update As2 Key
106
106
 
107
107
  ```
108
- as2_key = Files::As2Key.find(1)
108
+ as2_key = Files::As2Key.list_for(path).first
109
+
109
110
  as2_key.update(
110
111
  as2_partnership_name: "Test"
111
112
  )
@@ -122,7 +123,8 @@ as2_key.update(
122
123
  ## Delete As2 Key
123
124
 
124
125
  ```
125
- as2_key = Files::As2Key.find(1)
126
+ as2_key = Files::As2Key.list_for(path).first
127
+
126
128
  as2_key.delete
127
129
  ```
128
130
 
@@ -143,7 +143,8 @@ Files::Automation.delete(id)
143
143
  ## Update Automation
144
144
 
145
145
  ```
146
- automation = Files::Automation.find(1)
146
+ automation = Files::Automation.list_for(path).first
147
+
147
148
  automation.update(
148
149
  automation: "create_folder",
149
150
  source: "source",
@@ -171,7 +172,8 @@ automation.update(
171
172
  ## Delete Automation
172
173
 
173
174
  ```
174
- automation = Files::Automation.find(1)
175
+ automation = Files::Automation.list_for(path).first
176
+
175
177
  automation.delete
176
178
  ```
177
179
 
@@ -151,7 +151,8 @@ Files::Behavior.delete(id)
151
151
  ## Update Behavior
152
152
 
153
153
  ```
154
- behavior = Files::Behavior.find(1)
154
+ behavior = Files::Behavior.list_for(path).first
155
+
155
156
  behavior.update(
156
157
  value: "{\"method\": \"GET\"}"
157
158
  )
@@ -169,7 +170,8 @@ behavior.update(
169
170
  ## Delete Behavior
170
171
 
171
172
  ```
172
- behavior = Files::Behavior.find(1)
173
+ behavior = Files::Behavior.list_for(path).first
174
+
173
175
  behavior.delete
174
176
  ```
175
177
 
@@ -154,7 +154,8 @@ Files::Bundle.delete(id)
154
154
  ## Send email(s) with a link to bundle
155
155
 
156
156
  ```
157
- bundle = Files::Bundle.find(1)
157
+ bundle = Files::Bundle.list_for(path).first
158
+
158
159
  bundle.share(
159
160
  to: ["johndoe@gmail.com"],
160
161
  note: "Just a note."
@@ -173,7 +174,8 @@ bundle.share(
173
174
  ## Update Bundle
174
175
 
175
176
  ```
176
- bundle = Files::Bundle.find(1)
177
+ bundle = Files::Bundle.list_for(path).first
178
+
177
179
  bundle.update(
178
180
  password: "Password",
179
181
  expires_at: "2000-01-01T01:00:00Z",
@@ -198,7 +200,8 @@ bundle.update(
198
200
  ## Delete Bundle
199
201
 
200
202
  ```
201
- bundle = Files::Bundle.find(1)
203
+ bundle = Files::Bundle.list_for(path).first
204
+
202
205
  bundle.delete
203
206
  ```
204
207
 
@@ -150,7 +150,8 @@ Files::File.delete(path,
150
150
  ## Download file
151
151
 
152
152
  ```
153
- file = Files::File.find(1)
153
+ file = Files::File.list_for(path).first
154
+
154
155
  file.download(
155
156
  id: 1,
156
157
  with_previews: true,
@@ -172,7 +173,8 @@ file.download(
172
173
  ## Update file/folder metadata
173
174
 
174
175
  ```
175
- file = Files::File.find(1)
176
+ file = Files::File.list_for(path).first
177
+
176
178
  file.update(
177
179
  provided_mtime: "2000-01-01T01:00:00Z",
178
180
  priority_color: "red"
@@ -191,7 +193,8 @@ file.update(
191
193
  ## Delete file/folder
192
194
 
193
195
  ```
194
- file = Files::File.find(1)
196
+ file = Files::File.list_for(path).first
197
+
195
198
  file.delete(
196
199
  recursive: true
197
200
  )
@@ -63,7 +63,8 @@ Files::FileAction.begin_upload(path,
63
63
  ## Copy file/folder
64
64
 
65
65
  ```
66
- file_action = Files::FileAction.find(1)
66
+ file_action = Files::FileAction.list_for(path).first
67
+
67
68
  file_action.copy(
68
69
  destination: "destination"
69
70
  )
@@ -80,7 +81,8 @@ file_action.copy(
80
81
  ## Move file/folder
81
82
 
82
83
  ```
83
- file_action = Files::FileAction.find(1)
84
+ file_action = Files::FileAction.list_for(path).first
85
+
84
86
  file_action.move(
85
87
  destination: "destination"
86
88
  )
@@ -97,7 +99,8 @@ file_action.move(
97
99
  ## Begin file upload
98
100
 
99
101
  ```
100
- file_action = Files::FileAction.find(1)
102
+ file_action = Files::FileAction.list_for(path).first
103
+
101
104
  file_action.begin_upload(
102
105
  mkdir_parents: true,
103
106
  part: 1,
@@ -88,7 +88,8 @@ Files::FileComment.delete(id)
88
88
  ## Update File Comment
89
89
 
90
90
  ```
91
- file_comment = Files::FileComment.find(1)
91
+ file_comment = Files::FileComment.list_for(path).first
92
+
92
93
  file_comment.update(
93
94
  body: "body"
94
95
  )
@@ -105,7 +106,8 @@ file_comment.update(
105
106
  ## Delete File Comment
106
107
 
107
108
  ```
108
- file_comment = Files::FileComment.find(1)
109
+ file_comment = Files::FileComment.list_for(path).first
110
+
109
111
  file_comment.delete
110
112
  ```
111
113
 
@@ -52,7 +52,8 @@ Files::FileCommentReaction.delete(id)
52
52
  ## Delete File Comment Reaction
53
53
 
54
54
  ```
55
- file_comment_reaction = Files::FileCommentReaction.find(1)
55
+ file_comment_reaction = Files::FileCommentReaction.list_for(path).first
56
+
56
57
  file_comment_reaction.delete
57
58
  ```
58
59
 
@@ -114,7 +114,8 @@ Files::Group.delete(id)
114
114
  ## Update Group
115
115
 
116
116
  ```
117
- group = Files::Group.find(1)
117
+ group = Files::Group.list_for(path).first
118
+
118
119
  group.update(
119
120
  name: "owners"
120
121
  )
@@ -134,7 +135,8 @@ group.update(
134
135
  ## Delete Group
135
136
 
136
137
  ```
137
- group = Files::Group.find(1)
138
+ group = Files::Group.list_for(path).first
139
+
138
140
  group.delete
139
141
  ```
140
142
 
@@ -81,7 +81,8 @@ Files::GroupUser.delete(id)
81
81
  ## Update Group User
82
82
 
83
83
  ```
84
- group_user = Files::GroupUser.find(1)
84
+ group_user = Files::GroupUser.list_for(path).first
85
+
85
86
  group_user.update(
86
87
  group_id: 1,
87
88
  user_id: 1,
@@ -102,7 +103,8 @@ group_user.update(
102
103
  ## Delete Group User
103
104
 
104
105
  ```
105
- group_user = Files::GroupUser.find(1)
106
+ group_user = Files::GroupUser.list_for(path).first
107
+
106
108
  group_user.delete
107
109
  ```
108
110
 
@@ -164,7 +164,8 @@ Files::HistoryExport.delete(id)
164
164
  ## Delete History Export
165
165
 
166
166
  ```
167
- history_export = Files::HistoryExport.find(1)
167
+ history_export = Files::HistoryExport.list_for(path).first
168
+
168
169
  history_export.delete
169
170
  ```
170
171
 
@@ -85,7 +85,8 @@ Files::Lock.delete(path,
85
85
  ## Delete Lock
86
86
 
87
87
  ```
88
- lock = Files::Lock.find(1)
88
+ lock = Files::Lock.list_for(path).first
89
+
89
90
  lock.delete(
90
91
  token: "token"
91
92
  )
@@ -115,7 +115,8 @@ Files::Message.delete(id)
115
115
  ## Update Message
116
116
 
117
117
  ```
118
- message = Files::Message.find(1)
118
+ message = Files::Message.list_for(path).first
119
+
119
120
  message.update(
120
121
  project_id: 1,
121
122
  subject: "subject",
@@ -136,7 +137,8 @@ message.update(
136
137
  ## Delete Message
137
138
 
138
139
  ```
139
- message = Files::Message.find(1)
140
+ message = Files::Message.list_for(path).first
141
+
140
142
  message.delete
141
143
  ```
142
144
 
@@ -104,7 +104,8 @@ Files::MessageComment.delete(id)
104
104
  ## Update Message Comment
105
105
 
106
106
  ```
107
- message_comment = Files::MessageComment.find(1)
107
+ message_comment = Files::MessageComment.list_for(path).first
108
+
108
109
  message_comment.update(
109
110
  body: "body"
110
111
  )
@@ -121,7 +122,8 @@ message_comment.update(
121
122
  ## Delete Message Comment
122
123
 
123
124
  ```
124
- message_comment = Files::MessageComment.find(1)
125
+ message_comment = Files::MessageComment.list_for(path).first
126
+
125
127
  message_comment.delete
126
128
  ```
127
129
 
@@ -84,7 +84,8 @@ Files::MessageCommentReaction.delete(id)
84
84
  ## Delete Message Comment Reaction
85
85
 
86
86
  ```
87
- message_comment_reaction = Files::MessageCommentReaction.find(1)
87
+ message_comment_reaction = Files::MessageCommentReaction.list_for(path).first
88
+
88
89
  message_comment_reaction.delete
89
90
  ```
90
91
 
@@ -84,7 +84,8 @@ Files::MessageReaction.delete(id)
84
84
  ## Delete Message Reaction
85
85
 
86
86
  ```
87
- message_reaction = Files::MessageReaction.find(1)
87
+ message_reaction = Files::MessageReaction.list_for(path).first
88
+
88
89
  message_reaction.delete
89
90
  ```
90
91
 
@@ -133,7 +133,8 @@ Files::Notification.delete(id)
133
133
  ## Update Notification
134
134
 
135
135
  ```
136
- notification = Files::Notification.find(1)
136
+ notification = Files::Notification.list_for(path).first
137
+
137
138
  notification.update(
138
139
  notify_on_copy: true,
139
140
  notify_user_actions: true,
@@ -154,7 +155,8 @@ notification.update(
154
155
  ## Delete Notification
155
156
 
156
157
  ```
157
- notification = Files::Notification.find(1)
158
+ notification = Files::Notification.list_for(path).first
159
+
158
160
  notification.delete
159
161
  ```
160
162
 
@@ -93,7 +93,8 @@ Files::Project.delete(id)
93
93
  ## Update Project
94
94
 
95
95
  ```
96
- project = Files::Project.find(1)
96
+ project = Files::Project.list_for(path).first
97
+
97
98
  project.update(
98
99
  global_access: "global_access"
99
100
  )
@@ -110,7 +111,8 @@ project.update(
110
111
  ## Delete Project
111
112
 
112
113
  ```
113
- project = Files::Project.find(1)
114
+ project = Files::Project.list_for(path).first
115
+
114
116
  project.delete
115
117
  ```
116
118
 
@@ -105,7 +105,8 @@ Files::PublicKey.delete(id)
105
105
  ## Update Public Key
106
106
 
107
107
  ```
108
- public_key = Files::PublicKey.find(1)
108
+ public_key = Files::PublicKey.list_for(path).first
109
+
109
110
  public_key.update(
110
111
  title: "My Main Key"
111
112
  )
@@ -122,7 +123,8 @@ public_key.update(
122
123
  ## Delete Public Key
123
124
 
124
125
  ```
125
- public_key = Files::PublicKey.find(1)
126
+ public_key = Files::PublicKey.list_for(path).first
127
+
126
128
  public_key.delete
127
129
  ```
128
130
 
@@ -218,7 +218,8 @@ Files::RemoteServer.delete(id)
218
218
  ## Update Remote Server
219
219
 
220
220
  ```
221
- remote_server = Files::RemoteServer.find(1)
221
+ remote_server = Files::RemoteServer.list_for(path).first
222
+
222
223
  remote_server.update(
223
224
  hostname: "remote-server.com",
224
225
  name: "My Remote server",
@@ -276,7 +277,8 @@ remote_server.update(
276
277
  ## Delete Remote Server
277
278
 
278
279
  ```
279
- remote_server = Files::RemoteServer.find(1)
280
+ remote_server = Files::RemoteServer.list_for(path).first
281
+
280
282
  remote_server.delete
281
283
  ```
282
284
 
@@ -101,7 +101,8 @@ Files::Request.delete(id)
101
101
  ## List Requests
102
102
 
103
103
  ```
104
- request = Files::Request.find(1)
104
+ request = Files::Request.list_for(path).first
105
+
105
106
  request.folders(
106
107
  page: 1,
107
108
  per_page: 1,
@@ -65,7 +65,8 @@ Files::Style.delete(path)
65
65
  ## Update Style
66
66
 
67
67
  ```
68
- style = Files::Style.find(1)
68
+ style = Files::Style.list_for(path).first
69
+
69
70
  style.update(
70
71
  file: "file"
71
72
  )
@@ -82,7 +83,8 @@ style.update(
82
83
  ## Delete Style
83
84
 
84
85
  ```
85
- style = Files::Style.find(1)
86
+ style = Files::Style.list_for(path).first
87
+
86
88
  style.delete
87
89
  ```
88
90
 
@@ -371,7 +371,8 @@ Files::User.delete(id)
371
371
  ## Unlock user who has been locked out due to failed logins
372
372
 
373
373
  ```
374
- user = Files::User.find(1)
374
+ user = Files::User.list_for(path).first
375
+
375
376
  user.unlock
376
377
  ```
377
378
 
@@ -385,7 +386,8 @@ user.unlock
385
386
  ## Resend user welcome email
386
387
 
387
388
  ```
388
- user = Files::User.find(1)
389
+ user = Files::User.list_for(path).first
390
+
389
391
  user.resend_welcome_email
390
392
  ```
391
393
 
@@ -399,7 +401,8 @@ user.resend_welcome_email
399
401
  ## Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
400
402
 
401
403
  ```
402
- user = Files::User.find(1)
404
+ user = Files::User.list_for(path).first
405
+
403
406
  user.user_2fa_reset
404
407
  ```
405
408
 
@@ -413,7 +416,8 @@ user.user_2fa_reset
413
416
  ## Update User
414
417
 
415
418
  ```
416
- user = Files::User.find(1)
419
+ user = Files::User.list_for(path).first
420
+
417
421
  user.update(
418
422
  avatar_delete: true,
419
423
  email: "john.doe@files.com",
@@ -498,7 +502,8 @@ user.update(
498
502
  ## Delete User
499
503
 
500
504
  ```
501
- user = Files::User.find(1)
505
+ user = Files::User.list_for(path).first
506
+
502
507
  user.delete
503
508
  ```
504
509
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.60
4
+ version: 1.0.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com