files.com 1.1.313 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 109561e43c644adaa536edfa0d3076e36e1cd8f0c78b8814adaef66487300a65
4
- data.tar.gz: 2eeb1820eb364f8aa688ca2ba80b80aa2c719add21c669c0713d07ec2cc65772
3
+ metadata.gz: e9b1fadf6f359ef24c5832bc2eb49e413b92602448f62340aa309d12e31e23ad
4
+ data.tar.gz: 5884748a22b657be145ef12f9cbdfd2f0b609fd841f6f2795d8fe9d4f3afc7af
5
5
  SHA512:
6
- metadata.gz: 54b2bd5da37678db6d13d961bf45086a842c5ed5bfe86cde17f50e39a8df5969176e67f4aeeee001735157f9f7d5dead345c95e22dc1c7378c33ea841996f124
7
- data.tar.gz: 57af69fc1c816d6ed8e9fa0a1d5c4c64b95baa92e312efb34896d24ec3446766db4b736042d6358ee0547547d8e7151290f3999c92f93efa626711ff5687c798
6
+ metadata.gz: 51e8f45c86f000ee206154ab63e10cf43a78ba3f50beb603580a606b4cda19d73c2e4f0f61f9673c3bf0a26dcb311ce9906a51766d663ffd5bbb6fbb84737c1d
7
+ data.tar.gz: 07ad46faa5b397ae36075a5fd7a5e6e9195c0d733ea5dd074e26c9a545dc32268ac05aa28f89319aaaa507ee68626664473edda95fc84f630f386b2ad44f2588
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.313
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
- "public_key": "7f8bc1210b09b9ddf469e6b6b8920e76",
14
- "private_key": "ab236cfe4a195f0226bc2e674afdd6b0",
15
- "private_key_password": "[your GPG private key password]"
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
- * `public_key` (string): Your GPG public key
26
- * `private_key` (string): Your GPG private key.
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
- "private_key": "example",
15
- "public_key": "example",
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
- * `private_key` (string): Only returned when generating keys. Private key generated for the user.
29
- * `public_key` (string): Only returned when generating keys. Public key generated for the user.
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",
@@ -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 - Your GPG private key.
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 private_key
73
- @attributes[:private_key]
72
+ def generated_private_key
73
+ @attributes[:generated_private_key]
74
74
  end
75
75
 
76
- def private_key=(value)
77
- @attributes[:private_key] = value
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 public_key
82
- @attributes[:public_key]
81
+ def generated_public_key
82
+ @attributes[:generated_public_key]
83
83
  end
84
84
 
85
- def public_key=(value)
86
- @attributes[:public_key] = value
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.313"
4
+ VERSION = "1.1.314"
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.313
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-04 00:00:00.000000000 Z
11
+ date: 2025-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable