files.com 1.1.304 → 1.1.305

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: 153496038068ea420584558acfd94d1e009da55b5f1fce648b124013e5bf34c6
4
- data.tar.gz: b48616e026a5e3d7b07e4939817042b03e22081178012a018d1c59426662f4f1
3
+ metadata.gz: 579b93a802b0cc99c706d688acc0ec39ec7f286c61a5f5d745971631c414ed20
4
+ data.tar.gz: 3771606162fd216b934a7d5f0a416919f0ca7fb7d318db0f3b2d2b7c1f26a021
5
5
  SHA512:
6
- metadata.gz: d6037d527897e51064f33880e58c70ea2ae5d50753d4ef097bca37ca057cbebedf1726c4cf024d5a4cb1416e45dd6983d9d71d20e5283c5ba50069f41618f85c
7
- data.tar.gz: af2c2dd0cdf99d0cf1458b9f7689d085b8e547b640ac97d074a87223d356b7acc409b66fe743a4d11c81006c988c7a44680ab297c64aed4873872086d6e327a5
6
+ metadata.gz: cd4aa144604b9cd9bbc00ffa24afba9daf5fd191f221dd6744ec4c156dcaeec18c129ea3b6bb3871fa3c73e61a51f272b0cbcd76dec26bf2900169df0e3eac16
7
+ data.tar.gz: d78f941b9dd7b134c6091c4dafd57a1b5ef3b9054a02ff27089612ba11fd54a655c1e5b05594467852e6f184aa7df6d39b910284cbea4cc612388fc50cb65f1f
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.304
1
+ 1.1.305
data/docs/gpg_key.md CHANGED
@@ -8,6 +8,8 @@
8
8
  "expires_at": "2000-01-01T01:00:00Z",
9
9
  "name": "key name",
10
10
  "user_id": 1,
11
+ "public_key_md5": "7f8bc1210b09b9ddf469e6b6b8920e76",
12
+ "private_key_md5": "ab236cfe4a195f0226bc2e674afdd6b0",
11
13
  "public_key": "7f8bc1210b09b9ddf469e6b6b8920e76",
12
14
  "private_key": "ab236cfe4a195f0226bc2e674afdd6b0",
13
15
  "private_key_password": "[your GPG private key password]"
@@ -18,6 +20,8 @@
18
20
  * `expires_at` (date-time): Your GPG key expiration date.
19
21
  * `name` (string): Your GPG key name.
20
22
  * `user_id` (int64): GPG owner's user id
23
+ * `public_key_md5` (string): MD5 hash of your GPG public key
24
+ * `private_key_md5` (string): MD5 hash of your GPG private key.
21
25
  * `public_key` (string): Your GPG public key
22
26
  * `private_key` (string): Your GPG private key.
23
27
  * `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
@@ -79,8 +83,8 @@ Files::GpgKey.create(
79
83
  ### Parameters
80
84
 
81
85
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
82
- * `public_key` (string): Your GPG public key
83
- * `private_key` (string): Your GPG private key.
86
+ * `public_key` (string): MD5 hash of your GPG public key
87
+ * `private_key` (string): MD5 hash of your GPG private key.
84
88
  * `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
85
89
  * `name` (string): Required - Your GPG key name.
86
90
  * `generate_expires_at` (string): Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
@@ -105,8 +109,8 @@ Files::GpgKey.update(id,
105
109
  ### Parameters
106
110
 
107
111
  * `id` (int64): Required - Gpg Key ID.
108
- * `public_key` (string): Your GPG public key
109
- * `private_key` (string): Your GPG private key.
112
+ * `public_key` (string): MD5 hash of your GPG public key
113
+ * `private_key` (string): MD5 hash of your GPG private key.
110
114
  * `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
111
115
  * `name` (string): Your GPG key name.
112
116
 
@@ -142,8 +146,8 @@ gpg_key.update(
142
146
  ### Parameters
143
147
 
144
148
  * `id` (int64): Required - Gpg Key ID.
145
- * `public_key` (string): Your GPG public key
146
- * `private_key` (string): Your GPG private key.
149
+ * `public_key` (string): MD5 hash of your GPG public key
150
+ * `private_key` (string): MD5 hash of your GPG private key.
147
151
  * `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
148
152
  * `name` (string): Your GPG key name.
149
153
 
@@ -45,6 +45,24 @@ module Files
45
45
  @attributes[:user_id] = value
46
46
  end
47
47
 
48
+ # string - MD5 hash of your GPG public key
49
+ def public_key_md5
50
+ @attributes[:public_key_md5]
51
+ end
52
+
53
+ def public_key_md5=(value)
54
+ @attributes[:public_key_md5] = value
55
+ end
56
+
57
+ # string - MD5 hash of your GPG private key.
58
+ def private_key_md5
59
+ @attributes[:private_key_md5]
60
+ end
61
+
62
+ def private_key_md5=(value)
63
+ @attributes[:private_key_md5] = value
64
+ end
65
+
48
66
  # string - Your GPG public key
49
67
  def public_key
50
68
  @attributes[:public_key]
@@ -109,8 +127,8 @@ module Files
109
127
  end
110
128
 
111
129
  # Parameters:
112
- # public_key - string - Your GPG public key
113
- # private_key - string - Your GPG private key.
130
+ # public_key - string - MD5 hash of your GPG public key
131
+ # private_key - string - MD5 hash of your GPG private key.
114
132
  # private_key_password - string - Your GPG private key password. Only required for password protected keys.
115
133
  # name - string - Your GPG key name.
116
134
  def update(params = {})
@@ -191,8 +209,8 @@ module Files
191
209
 
192
210
  # Parameters:
193
211
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
194
- # public_key - string - Your GPG public key
195
- # private_key - string - Your GPG private key.
212
+ # public_key - string - MD5 hash of your GPG public key
213
+ # private_key - string - MD5 hash of your GPG private key.
196
214
  # private_key_password - string - Your GPG private key password. Only required for password protected keys.
197
215
  # name (required) - string - Your GPG key name.
198
216
  # generate_expires_at - string - Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
@@ -215,8 +233,8 @@ module Files
215
233
  end
216
234
 
217
235
  # Parameters:
218
- # public_key - string - Your GPG public key
219
- # private_key - string - Your GPG private key.
236
+ # public_key - string - MD5 hash of your GPG public key
237
+ # private_key - string - MD5 hash of your GPG private key.
220
238
  # private_key_password - string - Your GPG private key password. Only required for password protected keys.
221
239
  # name - string - Your GPG key name.
222
240
  def self.update(id, params = {}, options = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.304"
4
+ VERSION = "1.1.305"
5
5
  end
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.1.304
4
+ version: 1.1.305
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com