files.com 1.0.294 → 1.0.295
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/api_key.md +5 -0
- data/lib/files.com/models/api_key.rb +15 -0
- 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: 82443d7ca9d90f9c75a2ffbec984dc28f875d9b2017d1ef4678da0bb53b31dfc
|
4
|
+
data.tar.gz: fcff7ee54c6248b30113e496d7a3d0216b39172d7d6b54bfcc1f5ce54d388e3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 914a9e15f726f4459e6ed2c353cdad5ce893aa4ad689d6d4fa303bf0e9cd7c00e43222f13d11540de3542a848193e208e85c2d4810c8f3eb81fc3f367b7d147b
|
7
|
+
data.tar.gz: 345a767395649169913f54f6cab4ada5e0118c085da8986181dba594c28e12f18f0fc97f3a4dd14f4ccb89190d5241399b3a633746919ede7ae283e8fbdfa973
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.295
|
data/docs/api_key.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
{
|
7
7
|
"id": 1,
|
8
8
|
"descriptive_label": "Site-wide API key for https://site.files.com/ (key ID #1)",
|
9
|
+
"description": "",
|
9
10
|
"created_at": "2000-01-01T01:00:00Z",
|
10
11
|
"expires_at": "2000-01-01T01:00:00Z",
|
11
12
|
"key": "[key]",
|
@@ -20,6 +21,7 @@
|
|
20
21
|
|
21
22
|
* `id` (int64): API Key ID
|
22
23
|
* `descriptive_label` (string): Unique label that describes this API key. Useful for external systems where you may have API keys from multiple accounts and want a human-readable label for each key.
|
24
|
+
* `description` (string): User-supplied description of API key.
|
23
25
|
* `created_at` (date-time): Time which API Key was created
|
24
26
|
* `expires_at` (date-time): API Key expiration date
|
25
27
|
* `key` (string): API Key actual key string
|
@@ -96,6 +98,7 @@ Files::ApiKey.create(
|
|
96
98
|
|
97
99
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
98
100
|
* `name` (string): Internal name for the API Key. For your use.
|
101
|
+
* `description` (string): User-supplied description of API key.
|
99
102
|
* `expires_at` (string): API Key expiration date
|
100
103
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
101
104
|
* `path` (string): Folder path restriction for this api key.
|
@@ -136,6 +139,7 @@ Files::ApiKey.update(id,
|
|
136
139
|
|
137
140
|
* `id` (int64): Required - Api Key ID.
|
138
141
|
* `name` (string): Internal name for the API Key. For your use.
|
142
|
+
* `description` (string): User-supplied description of API key.
|
139
143
|
* `expires_at` (string): API Key expiration date
|
140
144
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
141
145
|
|
@@ -180,6 +184,7 @@ api_key.update(
|
|
180
184
|
|
181
185
|
* `id` (int64): Required - Api Key ID.
|
182
186
|
* `name` (string): Internal name for the API Key. For your use.
|
187
|
+
* `description` (string): User-supplied description of API key.
|
183
188
|
* `expires_at` (string): API Key expiration date
|
184
189
|
* `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
185
190
|
|
@@ -27,6 +27,15 @@ module Files
|
|
27
27
|
@attributes[:descriptive_label] = value
|
28
28
|
end
|
29
29
|
|
30
|
+
# string - User-supplied description of API key.
|
31
|
+
def description
|
32
|
+
@attributes[:description]
|
33
|
+
end
|
34
|
+
|
35
|
+
def description=(value)
|
36
|
+
@attributes[:description] = value
|
37
|
+
end
|
38
|
+
|
30
39
|
# date-time - Time which API Key was created
|
31
40
|
def created_at
|
32
41
|
@attributes[:created_at]
|
@@ -106,6 +115,7 @@ module Files
|
|
106
115
|
|
107
116
|
# Parameters:
|
108
117
|
# name - string - Internal name for the API Key. For your use.
|
118
|
+
# description - string - User-supplied description of API key.
|
109
119
|
# expires_at - string - API Key expiration date
|
110
120
|
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
111
121
|
def update(params = {})
|
@@ -114,6 +124,7 @@ module Files
|
|
114
124
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
115
125
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
116
126
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
127
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
117
128
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
118
129
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
119
130
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
@@ -200,12 +211,14 @@ module Files
|
|
200
211
|
# Parameters:
|
201
212
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
202
213
|
# name - string - Internal name for the API Key. For your use.
|
214
|
+
# description - string - User-supplied description of API key.
|
203
215
|
# expires_at - string - API Key expiration date
|
204
216
|
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
205
217
|
# path - string - Folder path restriction for this api key.
|
206
218
|
def self.create(params = {}, options = {})
|
207
219
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
208
220
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
221
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
209
222
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
210
223
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
211
224
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
@@ -229,6 +242,7 @@ module Files
|
|
229
242
|
|
230
243
|
# Parameters:
|
231
244
|
# name - string - Internal name for the API Key. For your use.
|
245
|
+
# description - string - User-supplied description of API key.
|
232
246
|
# expires_at - string - API Key expiration date
|
233
247
|
# permission_set - string - Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
|
234
248
|
def self.update(id, params = {}, options = {})
|
@@ -236,6 +250,7 @@ module Files
|
|
236
250
|
params[:id] = id
|
237
251
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
238
252
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
253
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
239
254
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
240
255
|
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
241
256
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
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.0.
|
4
|
+
version: 1.0.295
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|