files.com 1.0.184 → 1.0.188

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: d93d686016bd4a533ab76dd1ae95415e6e3c0afcec4b65d651b698a01d4f0c9b
4
- data.tar.gz: 97ce617042e8a47f4b75bff5e4209462b3c85af5ee0f44e970c1379c1a63ccc9
3
+ metadata.gz: db47b741cfc50e2aea2d205d26cc5f21afb704f6bf29afe07493c42f3fbea45e
4
+ data.tar.gz: 776ac82b9f071ff5ac4b488765296fa983fa7adf9fa17fed46c71a39b1473757
5
5
  SHA512:
6
- metadata.gz: 4090101741ab308d32900b57ced9e50f30a8e9af68ff36c1de63ee5663f3166da8bbea51a48156853152908172cee76fcd8279be57e61ecd92376826ee3aefc4
7
- data.tar.gz: 89623ab716d856ba2e2bc5655716a454fc3b9ee39cd465662825e7f6575702ff8c49aaf6bc22c8e3c771727f99353c2412978a671ce129462aa8e486442ebaf7
6
+ metadata.gz: 12ed314df7386470fe521f1c32cd336ca22a14e0def1ca386d620caedec96e57510560b1a483bf05a32e061ecba09c954a65b83a1962a37701bb23f6097747ca
7
+ data.tar.gz: e2964abda930ebde1c594b1e0286309f682147ef410f59524bf12915c67ab72f3e5e32e6fc3c10c4710f8eebb5ff1a47e951e517b3530d6122bd37621ad420bb
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.184
1
+ 1.0.188
data/docs/lock.md CHANGED
@@ -7,22 +7,28 @@
7
7
  "path": "locked_file",
8
8
  "timeout": 43200,
9
9
  "depth": "infinity",
10
+ "recursive": true,
10
11
  "owner": "user",
11
12
  "scope": "shared",
13
+ "exclusive": true,
12
14
  "token": "17c54824e9931a4688ca032d03f6663c",
13
15
  "type": "write",
16
+ "allow_access_by_any_user": true,
14
17
  "user_id": 1,
15
18
  "username": ""
16
19
  }
17
20
  ```
18
21
 
19
22
  * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
- * `timeout` (int64): Lock timeout
21
- * `depth` (string): Lock depth (0 or infinity)
22
- * `owner` (string): Owner of lock. This can be any arbitrary string.
23
- * `scope` (string): Lock scope(shared or exclusive)
23
+ * `timeout` (int64): Lock timeout in seconds
24
+ * `depth` (string): DEPRECATED: Lock depth
25
+ * `recursive` (boolean): Does lock apply to subfolders?
26
+ * `owner` (string): Owner of the lock. This can be any arbitrary string.
27
+ * `scope` (string): DEPRECATED: Lock scope
28
+ * `exclusive` (boolean): Is lock exclusive?
24
29
  * `token` (string): Lock token. Use to release lock.
25
- * `type` (string): Lock type
30
+ * `type` (string): DEPRECATED: Lock type
31
+ * `allow_access_by_any_user` (boolean): Can lock be modified by users other than its creator?
26
32
  * `user_id` (int64): Lock creator user ID
27
33
  * `username` (string): Lock creator username
28
34
 
@@ -52,6 +58,9 @@ Files::Lock.list_for(path,
52
58
 
53
59
  ```
54
60
  Files::Lock.create(path,
61
+ allow_access_by_any_user: true,
62
+ exclusive: true,
63
+ recursive: true,
55
64
  timeout: 1
56
65
  )
57
66
  ```
@@ -59,6 +68,9 @@ Files::Lock.create(path,
59
68
  ### Parameters
60
69
 
61
70
  * `path` (string): Required - Path
71
+ * `allow_access_by_any_user` (boolean): Allow lock to be updated by any user?
72
+ * `exclusive` (boolean): Is lock exclusive?
73
+ * `recursive` (string): Does lock apply to subfolders?
62
74
  * `timeout` (int64): Lock timeout length
63
75
 
64
76
 
@@ -35,7 +35,8 @@
35
35
  "azure_blob_storage_container": "container-name",
36
36
  "s3_compatible_bucket": "my-bucket",
37
37
  "s3_compatible_region": "us-east-1",
38
- "s3_compatible_endpoint": "mys3platform.com"
38
+ "s3_compatible_endpoint": "mys3platform.com",
39
+ "enable_dedicated_ips": true
39
40
  }
40
41
  ```
41
42
 
@@ -71,6 +72,7 @@
71
72
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
72
73
  * `s3_compatible_region` (string): S3-compatible Bucket name
73
74
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
75
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
74
76
  * `aws_access_key` (string): AWS Access Key.
75
77
  * `aws_secret_key` (string): AWS secret key.
76
78
  * `password` (string): Password if needed.
@@ -149,7 +151,8 @@ Files::RemoteServer.create(
149
151
  azure_blob_storage_container: "container-name",
150
152
  s3_compatible_bucket: "my-bucket",
151
153
  s3_compatible_region: "us-east-1",
152
- s3_compatible_endpoint: "mys3platform.com"
154
+ s3_compatible_endpoint: "mys3platform.com",
155
+ enable_dedicated_ips: true
153
156
  )
154
157
  ```
155
158
 
@@ -194,6 +197,7 @@ Files::RemoteServer.create(
194
197
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
195
198
  * `s3_compatible_region` (string): S3-compatible Bucket name
196
199
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
200
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
197
201
  * `s3_compatible_access_key` (string): S3-compatible access key
198
202
  * `s3_compatible_secret_key` (string): S3-compatible secret key
199
203
 
@@ -230,7 +234,8 @@ Files::RemoteServer.update(id,
230
234
  azure_blob_storage_container: "container-name",
231
235
  s3_compatible_bucket: "my-bucket",
232
236
  s3_compatible_region: "us-east-1",
233
- s3_compatible_endpoint: "mys3platform.com"
237
+ s3_compatible_endpoint: "mys3platform.com",
238
+ enable_dedicated_ips: true
234
239
  )
235
240
  ```
236
241
 
@@ -276,6 +281,7 @@ Files::RemoteServer.update(id,
276
281
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
277
282
  * `s3_compatible_region` (string): S3-compatible Bucket name
278
283
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
284
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
279
285
  * `s3_compatible_access_key` (string): S3-compatible access key
280
286
  * `s3_compatible_secret_key` (string): S3-compatible secret key
281
287
 
@@ -327,7 +333,8 @@ remote_server.update(
327
333
  azure_blob_storage_container: "container-name",
328
334
  s3_compatible_bucket: "my-bucket",
329
335
  s3_compatible_region: "us-east-1",
330
- s3_compatible_endpoint: "mys3platform.com"
336
+ s3_compatible_endpoint: "mys3platform.com",
337
+ enable_dedicated_ips: true
331
338
  )
332
339
  ```
333
340
 
@@ -373,6 +380,7 @@ remote_server.update(
373
380
  * `s3_compatible_bucket` (string): S3-compatible Bucket name
374
381
  * `s3_compatible_region` (string): S3-compatible Bucket name
375
382
  * `s3_compatible_endpoint` (string): S3-compatible endpoint
383
+ * `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
376
384
  * `s3_compatible_access_key` (string): S3-compatible access key
377
385
  * `s3_compatible_secret_key` (string): S3-compatible secret key
378
386
 
@@ -18,7 +18,7 @@ module Files
18
18
  @attributes[:path] = value
19
19
  end
20
20
 
21
- # int64 - Lock timeout
21
+ # int64 - Lock timeout in seconds
22
22
  def timeout
23
23
  @attributes[:timeout]
24
24
  end
@@ -27,7 +27,7 @@ module Files
27
27
  @attributes[:timeout] = value
28
28
  end
29
29
 
30
- # string - Lock depth (0 or infinity)
30
+ # string - DEPRECATED: Lock depth
31
31
  def depth
32
32
  @attributes[:depth]
33
33
  end
@@ -36,7 +36,16 @@ module Files
36
36
  @attributes[:depth] = value
37
37
  end
38
38
 
39
- # string - Owner of lock. This can be any arbitrary string.
39
+ # boolean - Does lock apply to subfolders?
40
+ def recursive
41
+ @attributes[:recursive]
42
+ end
43
+
44
+ def recursive=(value)
45
+ @attributes[:recursive] = value
46
+ end
47
+
48
+ # string - Owner of the lock. This can be any arbitrary string.
40
49
  def owner
41
50
  @attributes[:owner]
42
51
  end
@@ -45,7 +54,7 @@ module Files
45
54
  @attributes[:owner] = value
46
55
  end
47
56
 
48
- # string - Lock scope(shared or exclusive)
57
+ # string - DEPRECATED: Lock scope
49
58
  def scope
50
59
  @attributes[:scope]
51
60
  end
@@ -54,6 +63,15 @@ module Files
54
63
  @attributes[:scope] = value
55
64
  end
56
65
 
66
+ # boolean - Is lock exclusive?
67
+ def exclusive
68
+ @attributes[:exclusive]
69
+ end
70
+
71
+ def exclusive=(value)
72
+ @attributes[:exclusive] = value
73
+ end
74
+
57
75
  # string - Lock token. Use to release lock.
58
76
  def token
59
77
  @attributes[:token]
@@ -63,7 +81,7 @@ module Files
63
81
  @attributes[:token] = value
64
82
  end
65
83
 
66
- # string - Lock type
84
+ # string - DEPRECATED: Lock type
67
85
  def type
68
86
  @attributes[:type]
69
87
  end
@@ -72,6 +90,15 @@ module Files
72
90
  @attributes[:type] = value
73
91
  end
74
92
 
93
+ # boolean - Can lock be modified by users other than its creator?
94
+ def allow_access_by_any_user
95
+ @attributes[:allow_access_by_any_user]
96
+ end
97
+
98
+ def allow_access_by_any_user=(value)
99
+ @attributes[:allow_access_by_any_user] = value
100
+ end
101
+
75
102
  # int64 - Lock creator user ID
76
103
  def user_id
77
104
  @attributes[:user_id]
@@ -133,11 +160,15 @@ module Files
133
160
 
134
161
  # Parameters:
135
162
  # path (required) - string - Path
163
+ # allow_access_by_any_user - boolean - Allow lock to be updated by any user?
164
+ # exclusive - boolean - Is lock exclusive?
165
+ # recursive - string - Does lock apply to subfolders?
136
166
  # timeout - int64 - Lock timeout length
137
167
  def self.create(path, params = {}, options = {})
138
168
  params ||= {}
139
169
  params[:path] = path
140
170
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
171
+ raise InvalidParameterError.new("Bad parameter: recursive must be an String") if params.dig(:recursive) and !params.dig(:recursive).is_a?(String)
141
172
  raise InvalidParameterError.new("Bad parameter: timeout must be an Integer") if params.dig(:timeout) and !params.dig(:timeout).is_a?(Integer)
142
173
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
143
174
 
@@ -297,6 +297,15 @@ module Files
297
297
  @attributes[:s3_compatible_endpoint] = value
298
298
  end
299
299
 
300
+ # boolean - `true` if remote server only accepts connections from dedicated IPs
301
+ def enable_dedicated_ips
302
+ @attributes[:enable_dedicated_ips]
303
+ end
304
+
305
+ def enable_dedicated_ips=(value)
306
+ @attributes[:enable_dedicated_ips] = value
307
+ end
308
+
300
309
  # string - AWS Access Key.
301
310
  def aws_access_key
302
311
  @attributes[:aws_access_key]
@@ -472,6 +481,7 @@ module Files
472
481
  # s3_compatible_bucket - string - S3-compatible Bucket name
473
482
  # s3_compatible_region - string - S3-compatible Bucket name
474
483
  # s3_compatible_endpoint - string - S3-compatible endpoint
484
+ # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
475
485
  # s3_compatible_access_key - string - S3-compatible access key
476
486
  # s3_compatible_secret_key - string - S3-compatible secret key
477
487
  def update(params = {})
@@ -619,6 +629,7 @@ module Files
619
629
  # s3_compatible_bucket - string - S3-compatible Bucket name
620
630
  # s3_compatible_region - string - S3-compatible Bucket name
621
631
  # s3_compatible_endpoint - string - S3-compatible endpoint
632
+ # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
622
633
  # s3_compatible_access_key - string - S3-compatible access key
623
634
  # s3_compatible_secret_key - string - S3-compatible secret key
624
635
  def self.create(params = {}, options = {})
@@ -707,6 +718,7 @@ module Files
707
718
  # s3_compatible_bucket - string - S3-compatible Bucket name
708
719
  # s3_compatible_region - string - S3-compatible Bucket name
709
720
  # s3_compatible_endpoint - string - S3-compatible endpoint
721
+ # enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
710
722
  # s3_compatible_access_key - string - S3-compatible access key
711
723
  # s3_compatible_secret_key - string - S3-compatible secret key
712
724
  def self.update(id, 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.184
4
+ version: 1.0.188
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-07-20 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable