files.com 1.1.312 → 1.1.314
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 +4 -4
- data/README.md +1 -1
- data/_VERSION +1 -1
- data/docs/gpg_key.md +8 -5
- data/docs/public_key.md +5 -5
- data/lib/files.com/errors.rb +1 -1
- data/lib/files.com/models/gpg_key.rb +28 -1
- data/lib/files.com/models/public_key.rb +17 -8
- data/lib/files.com/version.rb +1 -1
- 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: e9b1fadf6f359ef24c5832bc2eb49e413b92602448f62340aa309d12e31e23ad
|
4
|
+
data.tar.gz: 5884748a22b657be145ef12f9cbdfd2f0b609fd841f6f2795d8fe9d4f3afc7af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51e8f45c86f000ee206154ab63e10cf43a78ba3f50beb603580a606b4cda19d73c2e4f0f61f9673c3bf0a26dcb311ce9906a51766d663ffd5bbb6fbb84737c1d
|
7
|
+
data.tar.gz: 07ad46faa5b397ae36075a5fd7a5e6e9195c0d733ea5dd074e26c9a545dc32268ac05aa28f89319aaaa507ee68626664473edda95fc84f630f386b2ad44f2588
|
data/README.md
CHANGED
@@ -579,6 +579,7 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
|
|
579
579
|
|`PlanNotFoundError`| `NotFoundError` |
|
580
580
|
|`SiteNotFoundError`| `NotFoundError` |
|
581
581
|
|`UserNotFoundError`| `NotFoundError` |
|
582
|
+
|`AgentUnavailableError`| `ProcessingFailureError` |
|
582
583
|
|`AlreadyCompletedError`| `ProcessingFailureError` |
|
583
584
|
|`AutomationCannotBeRunManuallyError`| `ProcessingFailureError` |
|
584
585
|
|`BehaviorNotAllowedOnRemoteServerError`| `ProcessingFailureError` |
|
@@ -634,7 +635,6 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
|
|
634
635
|
|`TooManyLoginAttemptsError`| `RateLimitedError` |
|
635
636
|
|`TooManyRequestsError`| `RateLimitedError` |
|
636
637
|
|`TooManySharesError`| `RateLimitedError` |
|
637
|
-
|`AgentUnavailableError`| `ServiceUnavailableError` |
|
638
638
|
|`AutomationsUnavailableError`| `ServiceUnavailableError` |
|
639
639
|
|`MigrationInProgressError`| `ServiceUnavailableError` |
|
640
640
|
|`SiteDisabledError`| `ServiceUnavailableError` |
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.314
|
data/docs/gpg_key.md
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
"user_id": 1,
|
11
11
|
"public_key_md5": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
12
12
|
"private_key_md5": "ab236cfe4a195f0226bc2e674afdd6b0",
|
13
|
-
"
|
14
|
-
"
|
15
|
-
"
|
13
|
+
"generated_public_key": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
14
|
+
"generated_private_key": "ab236cfe4a195f0226bc2e674afdd6b0",
|
15
|
+
"private_key_password_md5": "[your GPG private key password]"
|
16
16
|
}
|
17
17
|
```
|
18
18
|
|
@@ -22,8 +22,11 @@
|
|
22
22
|
* `user_id` (int64): GPG owner's user id
|
23
23
|
* `public_key_md5` (string): MD5 hash of your GPG public key
|
24
24
|
* `private_key_md5` (string): MD5 hash of your GPG private key.
|
25
|
-
* `
|
26
|
-
* `
|
25
|
+
* `generated_public_key` (string): Your GPG public key
|
26
|
+
* `generated_private_key` (string): Your GPG private key.
|
27
|
+
* `private_key_password_md5` (string): Your GPG private key password. Only required for password protected keys.
|
28
|
+
* `public_key` (string): MD5 hash of your GPG public key
|
29
|
+
* `private_key` (string): MD5 hash of your GPG private key.
|
27
30
|
* `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
|
28
31
|
* `generate_expires_at` (string): Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
29
32
|
* `generate_keypair` (boolean): If true, generate a new GPG key pair. Can not be used with `public_key`/`private_key`
|
data/docs/public_key.md
CHANGED
@@ -11,8 +11,8 @@
|
|
11
11
|
"fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
|
12
12
|
"status": "complete",
|
13
13
|
"last_login_at": "2000-01-01T01:00:00Z",
|
14
|
-
"
|
15
|
-
"
|
14
|
+
"generated_private_key": "example",
|
15
|
+
"generated_public_key": "example",
|
16
16
|
"username": "User",
|
17
17
|
"user_id": 1
|
18
18
|
}
|
@@ -25,10 +25,11 @@
|
|
25
25
|
* `fingerprint_sha256` (string): Public key fingerprint (SHA256)
|
26
26
|
* `status` (string): Only returned when generating keys. Can be invalid, not_generated, generating, complete
|
27
27
|
* `last_login_at` (date-time): Key's most recent login time via SFTP
|
28
|
-
* `
|
29
|
-
* `
|
28
|
+
* `generated_private_key` (string): Only returned when generating keys. Private key generated for the user.
|
29
|
+
* `generated_public_key` (string): Only returned when generating keys. Public key generated for the user.
|
30
30
|
* `username` (string): Username of the user this public key is associated with
|
31
31
|
* `user_id` (int64): User ID this public key is associated with
|
32
|
+
* `public_key` (string): Actual contents of SSH key.
|
32
33
|
* `generate_keypair` (boolean): If true, generate a new SSH key pair. Can not be used with `public_key`
|
33
34
|
* `generate_private_key_password` (string): Password for the private key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
34
35
|
* `generate_algorithm` (string): Type of key to generate. One of rsa, dsa, ecdsa, ed25519. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
@@ -78,7 +79,6 @@ Files::PublicKey.find(id)
|
|
78
79
|
Files::PublicKey.create(
|
79
80
|
user_id: 1,
|
80
81
|
title: "My Main Key",
|
81
|
-
public_key: "example",
|
82
82
|
generate_keypair: false,
|
83
83
|
generate_private_key_password: "[your private key password]",
|
84
84
|
generate_algorithm: "rsa",
|
data/lib/files.com/errors.rb
CHANGED
@@ -169,6 +169,7 @@ module Files
|
|
169
169
|
class UserNotFoundError < NotFoundError; end
|
170
170
|
|
171
171
|
class ProcessingFailureError < APIError; end
|
172
|
+
class AgentUnavailableError < ProcessingFailureError; end
|
172
173
|
class AlreadyCompletedError < ProcessingFailureError; end
|
173
174
|
class AutomationCannotBeRunManuallyError < ProcessingFailureError; end
|
174
175
|
class BehaviorNotAllowedOnRemoteServerError < ProcessingFailureError; end
|
@@ -228,7 +229,6 @@ module Files
|
|
228
229
|
class TooManySharesError < RateLimitedError; end
|
229
230
|
|
230
231
|
class ServiceUnavailableError < APIError; end
|
231
|
-
class AgentUnavailableError < ServiceUnavailableError; end
|
232
232
|
class AutomationsUnavailableError < ServiceUnavailableError; end
|
233
233
|
class MigrationInProgressError < ServiceUnavailableError; end
|
234
234
|
class SiteDisabledError < ServiceUnavailableError; end
|
@@ -64,6 +64,33 @@ module Files
|
|
64
64
|
end
|
65
65
|
|
66
66
|
# string - Your GPG public key
|
67
|
+
def generated_public_key
|
68
|
+
@attributes[:generated_public_key]
|
69
|
+
end
|
70
|
+
|
71
|
+
def generated_public_key=(value)
|
72
|
+
@attributes[:generated_public_key] = value
|
73
|
+
end
|
74
|
+
|
75
|
+
# string - Your GPG private key.
|
76
|
+
def generated_private_key
|
77
|
+
@attributes[:generated_private_key]
|
78
|
+
end
|
79
|
+
|
80
|
+
def generated_private_key=(value)
|
81
|
+
@attributes[:generated_private_key] = value
|
82
|
+
end
|
83
|
+
|
84
|
+
# string - Your GPG private key password. Only required for password protected keys.
|
85
|
+
def private_key_password_md5
|
86
|
+
@attributes[:private_key_password_md5]
|
87
|
+
end
|
88
|
+
|
89
|
+
def private_key_password_md5=(value)
|
90
|
+
@attributes[:private_key_password_md5] = value
|
91
|
+
end
|
92
|
+
|
93
|
+
# string - MD5 hash of your GPG public key
|
67
94
|
def public_key
|
68
95
|
@attributes[:public_key]
|
69
96
|
end
|
@@ -72,7 +99,7 @@ module Files
|
|
72
99
|
@attributes[:public_key] = value
|
73
100
|
end
|
74
101
|
|
75
|
-
# string -
|
102
|
+
# string - MD5 hash of your GPG private key.
|
76
103
|
def private_key
|
77
104
|
@attributes[:private_key]
|
78
105
|
end
|
@@ -69,21 +69,21 @@ module Files
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# string - Only returned when generating keys. Private key generated for the user.
|
72
|
-
def
|
73
|
-
@attributes[:
|
72
|
+
def generated_private_key
|
73
|
+
@attributes[:generated_private_key]
|
74
74
|
end
|
75
75
|
|
76
|
-
def
|
77
|
-
@attributes[:
|
76
|
+
def generated_private_key=(value)
|
77
|
+
@attributes[:generated_private_key] = value
|
78
78
|
end
|
79
79
|
|
80
80
|
# string - Only returned when generating keys. Public key generated for the user.
|
81
|
-
def
|
82
|
-
@attributes[:
|
81
|
+
def generated_public_key
|
82
|
+
@attributes[:generated_public_key]
|
83
83
|
end
|
84
84
|
|
85
|
-
def
|
86
|
-
@attributes[:
|
85
|
+
def generated_public_key=(value)
|
86
|
+
@attributes[:generated_public_key] = value
|
87
87
|
end
|
88
88
|
|
89
89
|
# string - Username of the user this public key is associated with
|
@@ -104,6 +104,15 @@ module Files
|
|
104
104
|
@attributes[:user_id] = value
|
105
105
|
end
|
106
106
|
|
107
|
+
# string - Actual contents of SSH key.
|
108
|
+
def public_key
|
109
|
+
@attributes[:public_key]
|
110
|
+
end
|
111
|
+
|
112
|
+
def public_key=(value)
|
113
|
+
@attributes[:public_key] = value
|
114
|
+
end
|
115
|
+
|
107
116
|
# boolean - If true, generate a new SSH key pair. Can not be used with `public_key`
|
108
117
|
def generate_keypair
|
109
118
|
@attributes[:generate_keypair]
|
data/lib/files.com/version.rb
CHANGED
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.
|
4
|
+
version: 1.1.314
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|