files.com 1.1.118 → 1.1.120

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: 1e5d80b1fcc9838b60ff6994ce6975fae169e9ed63960688ef8d13044aaf19d6
4
- data.tar.gz: 5d20da6fa8a17e7fdcd985ee086dde8f41f1f330b42324619d2d4181297bfdce
3
+ metadata.gz: a20f9454c2cdcfc2156da75028e988146c654287cea5b8d53be445055f35ace6
4
+ data.tar.gz: ded0458144cb0d334e1fff32ab8fd564cdf2c7047fa7d9b6701ac17aad4e87b6
5
5
  SHA512:
6
- metadata.gz: 2d16e462279409246e944f37458a87aca2ad10d2f869db2ba02a0a3bb058b322ba56d44229f0baf7b67a7a06e4ed90b6aeea2f9353be407bfb7559af96119c63
7
- data.tar.gz: 514883c25abaa39e2d63ea79000e70c43268d5b8e5ca8b12884016fe5faa4685e60587362eeeb2be991c1dc7206339fc4e5bb6004476a3e2542ad1a844d93945
6
+ metadata.gz: a18470035f28c13545634e5c4132f4e10de89f5a08cb192d1aaccff12e36525f1020fffa7d9a52f987bb5b19400bd0103f771546cc4f24a65af927c0d65778f6
7
+ data.tar.gz: e79a3acd13c16680a58479beb3937e5c1d063a70ea0700c30db27d368dac693330fcdfd58ed739c054e652bba083dd4f17d86953ce9c606df6c2bd7cfd6bd09b
data/README.md CHANGED
@@ -182,42 +182,6 @@ Maximum number of retries. The default value is 3.
182
182
  Files.max_network_retries = 5
183
183
  ```
184
184
 
185
- ### Logging
186
-
187
- The Files.com SDK is compatible with the standard log4j logging scheme.
188
-
189
- Add `com.files` logger to your `Loggers` root in the `log4j2.xml` file.
190
-
191
- ```xml title="log4j2.xml"
192
- <Loggers>
193
- <!-- set preferred level -->
194
- <Logger name="com.files" level="TRACE" />
195
- <!-- to enable network request -->
196
- <Logger name="okhttp3.logging.wire" level="INFO"/>
197
- </Loggers>
198
- ```
199
-
200
- Create a `resources/log4j2.xml` file.
201
-
202
- ```xml title="resources/log4j2.xml"
203
- <?xml version="1.0" encoding="UTF-8"?>
204
- <Configuration>
205
- <Appenders>
206
- <Console name="Console" target="SYSTEM_OUT">
207
- <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
208
- </Console>
209
- </Appenders>
210
- <Loggers>
211
- <!-- set preferred level -->
212
- <Logger name="com.files" level="TRACE"/>
213
- <!-- to enable network request -->
214
- <Logger name="okhttp3.logging.wire" level="INFO"/>
215
- </Loggers>
216
- </Configuration>
217
- ```
218
-
219
- You can read more about [log4j2 configuration](https://logging.apache.org/log4j/2.x/manual/configuration.html).
220
-
221
185
  ## Errors
222
186
 
223
187
  The Files.com Ruby SDK will return errors by raising exceptions. There are many exception classes defined in the Files SDK that correspond
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.118
1
+ 1.1.120
data/docs/api_key.md CHANGED
@@ -31,7 +31,7 @@
31
31
  * `platform` (string): If this API key represents a Desktop app, what platform was it created on?
32
32
  * `url` (string): URL for API host.
33
33
  * `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
34
- * `path` (string): Folder path restriction for this API key.
34
+ * `path` (string): Folder path restriction for `office_integration` permission set API keys.
35
35
 
36
36
 
37
37
  ---
@@ -101,7 +101,7 @@ Files::ApiKey.create(
101
101
  * `expires_at` (string): API Key expiration date
102
102
  * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
103
103
  * `name` (string): Required - Internal name for the API Key. For your use.
104
- * `path` (string): Folder path restriction for this API key.
104
+ * `path` (string): Folder path restriction for `office_integration` permission set API keys.
105
105
 
106
106
 
107
107
  ---
@@ -113,7 +113,7 @@ module Files
113
113
  @attributes[:user_id] = value
114
114
  end
115
115
 
116
- # string - Folder path restriction for this API key.
116
+ # string - Folder path restriction for `office_integration` permission set API keys.
117
117
  def path
118
118
  @attributes[:path]
119
119
  end
@@ -224,7 +224,7 @@ module Files
224
224
  # expires_at - string - API Key expiration date
225
225
  # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
226
226
  # name (required) - string - Internal name for the API Key. For your use.
227
- # path - string - Folder path restriction for this API key.
227
+ # path - string - Folder path restriction for `office_integration` permission set API keys.
228
228
  def self.create(params = {}, options = {})
229
229
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
230
230
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.118"
4
+ VERSION = "1.1.120"
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.118
4
+ version: 1.1.120
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-21 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable