files.com 1.1.313 → 1.1.315
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/_VERSION +1 -1
- data/docs/account_line_item.md +5 -1
- data/docs/gpg_key.md +8 -5
- data/docs/invoice.md +5 -1
- data/docs/invoice_line_item.md +9 -1
- data/docs/payment.md +5 -1
- data/docs/public_key.md +5 -5
- data/lib/files.com/models/gpg_key.rb +28 -1
- data/lib/files.com/models/invoice_line_item.rb +20 -0
- 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: cd7b50b61f191cd103f6100e7875959ff2b22e835e191003d362afcbc2dfb712
|
4
|
+
data.tar.gz: 308f5eedda7be633ed30f9a8069e3b7f5fe48cc530c58d8af5ca9f7eab95a5f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36fc55f24c4e99ca21ad242b206ad6f4cdcdca92c28b2b334ed585220f35f265e0d1b4039231c636cacba8d946734a1b0307d809043672fb0d969f324cbaca78
|
7
|
+
data.tar.gz: 898f1ca2cc965ecce7f61b2067738e2779138a6133981707f10feaa102b3c64d42b5c8ce7866995b292f019b17d74c0dfddc77ceba0ba44bc86571ac9624dcb4
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.315
|
data/docs/account_line_item.md
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
"service_end_at": "2000-01-01T01:00:00Z",
|
21
21
|
"service_start_at": "2000-01-01T01:00:00Z",
|
22
22
|
"plan": "Premier",
|
23
|
-
"site": "My site"
|
23
|
+
"site": "My site",
|
24
|
+
"prepaid_bytes": 1,
|
25
|
+
"prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
|
26
|
+
"prepaid_bytes_used": 1,
|
27
|
+
"prepaid_bytes_avaliable": 1
|
24
28
|
}
|
25
29
|
],
|
26
30
|
"method": "paypal",
|
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/invoice.md
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
"service_end_at": "2000-01-01T01:00:00Z",
|
21
21
|
"service_start_at": "2000-01-01T01:00:00Z",
|
22
22
|
"plan": "Premier",
|
23
|
-
"site": "My site"
|
23
|
+
"site": "My site",
|
24
|
+
"prepaid_bytes": 1,
|
25
|
+
"prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
|
26
|
+
"prepaid_bytes_used": 1,
|
27
|
+
"prepaid_bytes_avaliable": 1
|
24
28
|
}
|
25
29
|
],
|
26
30
|
"method": "paypal",
|
data/docs/invoice_line_item.md
CHANGED
@@ -12,7 +12,11 @@
|
|
12
12
|
"service_end_at": "2000-01-01T01:00:00Z",
|
13
13
|
"service_start_at": "2000-01-01T01:00:00Z",
|
14
14
|
"plan": "Premier",
|
15
|
-
"site": "My site"
|
15
|
+
"site": "My site",
|
16
|
+
"prepaid_bytes": 1,
|
17
|
+
"prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
|
18
|
+
"prepaid_bytes_used": 1,
|
19
|
+
"prepaid_bytes_avaliable": 1
|
16
20
|
}
|
17
21
|
```
|
18
22
|
|
@@ -25,3 +29,7 @@
|
|
25
29
|
* `service_start_at` (date-time): Invoice line item service start date/time
|
26
30
|
* `plan` (string): Plan name
|
27
31
|
* `site` (string): Site name
|
32
|
+
* `prepaid_bytes` (int64): Prepaid bytes purchased for this invoice line item
|
33
|
+
* `prepaid_bytes_expire_at` (date-time): When the prepaid bytes expire
|
34
|
+
* `prepaid_bytes_used` (int64): Total prepaid bytes used for this invoice line item
|
35
|
+
* `prepaid_bytes_avaliable` (int64): Available prepaid bytes for this invoice line item
|
data/docs/payment.md
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
"service_end_at": "2000-01-01T01:00:00Z",
|
21
21
|
"service_start_at": "2000-01-01T01:00:00Z",
|
22
22
|
"plan": "Premier",
|
23
|
-
"site": "My site"
|
23
|
+
"site": "My site",
|
24
|
+
"prepaid_bytes": 1,
|
25
|
+
"prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
|
26
|
+
"prepaid_bytes_used": 1,
|
27
|
+
"prepaid_bytes_avaliable": 1
|
24
28
|
}
|
25
29
|
],
|
26
30
|
"method": "paypal",
|
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",
|
@@ -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
|
@@ -53,5 +53,25 @@ module Files
|
|
53
53
|
def site
|
54
54
|
@attributes[:site]
|
55
55
|
end
|
56
|
+
|
57
|
+
# int64 - Prepaid bytes purchased for this invoice line item
|
58
|
+
def prepaid_bytes
|
59
|
+
@attributes[:prepaid_bytes]
|
60
|
+
end
|
61
|
+
|
62
|
+
# date-time - When the prepaid bytes expire
|
63
|
+
def prepaid_bytes_expire_at
|
64
|
+
@attributes[:prepaid_bytes_expire_at]
|
65
|
+
end
|
66
|
+
|
67
|
+
# int64 - Total prepaid bytes used for this invoice line item
|
68
|
+
def prepaid_bytes_used
|
69
|
+
@attributes[:prepaid_bytes_used]
|
70
|
+
end
|
71
|
+
|
72
|
+
# int64 - Available prepaid bytes for this invoice line item
|
73
|
+
def prepaid_bytes_avaliable
|
74
|
+
@attributes[:prepaid_bytes_avaliable]
|
75
|
+
end
|
56
76
|
end
|
57
77
|
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.315
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|