files.com 1.1.304 → 1.1.306
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/gpg_key.md +10 -6
- data/docs/user.md +2 -2
- data/lib/files.com/models/gpg_key.rb +24 -6
- data/lib/files.com/models/user.rb +2 -2
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11f2d62863e647e74f2c09e30510e1dad3197b96d7e92f8f08555a5c9ef50d3c
|
4
|
+
data.tar.gz: 700f1ecd15dc46c605f2e8ef099814b584ab747217f891b641b16bbc0b6676f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1a52c3e6512e3275037c9a99c8d5ed4e4765b51237efe6a1b5c1d462a4fc82bc38e87d2013945f2a0ed36df69cb04f918c905eb7e4839734026c99e0d522359
|
7
|
+
data.tar.gz: deafe45353b55f63fbfa43d4249dca3fb17bcb2c03abf832ce79fde444f3694a859e084c70aa88ebb86ad4ae0d4510cce06b109faeba256277dcb1a3f0cdcd77
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.306
|
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):
|
83
|
-
* `private_key` (string):
|
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):
|
109
|
-
* `private_key` (string):
|
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):
|
146
|
-
* `private_key` (string):
|
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
|
|
data/docs/user.md
CHANGED
@@ -167,8 +167,8 @@ Files::User.list(
|
|
167
167
|
|
168
168
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
169
169
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
170
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username` or `
|
171
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `
|
170
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username`, `site_admin` or `disabled`.
|
171
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until`, `not_site_admin` or `disabled`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
|
172
172
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
173
173
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
174
174
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `username`, `name`, `email` or `company`. Valid field combinations are `[ company, name ]`.
|
@@ -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 -
|
113
|
-
# private_key - string -
|
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 -
|
195
|
-
# private_key - string -
|
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 -
|
219
|
-
# private_key - string -
|
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 = {})
|
@@ -839,8 +839,8 @@ module Files
|
|
839
839
|
# Parameters:
|
840
840
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
841
841
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
842
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username` or `
|
843
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `
|
842
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username`, `site_admin` or `disabled`.
|
843
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until`, `not_site_admin` or `disabled`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
|
844
844
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
845
845
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
|
846
846
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `username`, `name`, `email` or `company`. Valid field combinations are `[ company, name ]`.
|
data/lib/files.com/version.rb
CHANGED