files.com 1.1.735 → 1.1.736
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/README.md +1 -0
- data/_VERSION +1 -1
- data/docs/api_key.md +5 -5
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/api_key.rb +5 -5
- 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: 8a709b7d33fe89f882ec42751a491115659886901882c56531294cbf770e8547
|
|
4
|
+
data.tar.gz: 20980b303aa506332adcc5990a58de188199c7eaba6ceec90bfec0118492a405
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a52a46a7b92dcdb8383addb71aeb1221d6ce03c269f1c95f5119cf3232fff3c5636a09e42848aa35e40ef80929766844c2ac63b1b8dbec734e8616c218d6d23
|
|
7
|
+
data.tar.gz: d9808d06982ee5c86ee0bb9665f800f083f8ae676b03de15ed184089aefc7c820b2cb7faa79a06b30d99c012d04bbde6e6321da244b48cf5c53d112711ade578
|
data/README.md
CHANGED
|
@@ -559,6 +559,7 @@ Files::FolderAdminPermissionRequiredError -> Files::NotAuthorizedError -> Files:
|
|
|
559
559
|
|`ApiKeyIsDisabledError`| `NotAuthorizedError` |
|
|
560
560
|
|`ApiKeyIsPathRestrictedError`| `NotAuthorizedError` |
|
|
561
561
|
|`ApiKeyOnlyForDesktopAppError`| `NotAuthorizedError` |
|
|
562
|
+
|`ApiKeyOnlyForFileOperationsError`| `NotAuthorizedError` |
|
|
562
563
|
|`ApiKeyOnlyForMobileAppError`| `NotAuthorizedError` |
|
|
563
564
|
|`ApiKeyOnlyForOfficeIntegrationError`| `NotAuthorizedError` |
|
|
564
565
|
|`BillingInformationHiddenError`| `NotAuthorizedError` |
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.736
|
data/docs/api_key.md
CHANGED
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
* `aws_secret_key` (string): AWS Secret Key to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
|
|
37
37
|
* `last_use_at` (date-time): API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
|
|
38
38
|
* `name` (string): Internal name for the API Key. For your use.
|
|
39
|
-
* `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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope,
|
|
39
|
+
* `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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can use only the files, folders, and file_actions endpoints, where they perform file operations as a full-access file user in the key's workspace scope, along with `GET /file_migrations/{id}` and `GET /api_key`. They cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user, and every other endpoint denies them with `not-authorized/api-key-only-for-file-operations`.
|
|
40
40
|
* `platform` (string): If this API key represents a Desktop app, what platform was it created on?
|
|
41
41
|
* `site_id` (int64): Site ID
|
|
42
42
|
* `site_name` (string): Site Name
|
|
43
43
|
* `url` (string): URL for API host.
|
|
44
44
|
* `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
|
|
45
45
|
* `workspace_id` (int64): Workspace ID for this API Key. `0` means the default workspace.
|
|
46
|
-
* `path` (string): Restricts this
|
|
46
|
+
* `path` (string): Restricts the file and folder operations made with this key, meaning the files, folders, and file_actions endpoints, to the specified folder and its descendants, including copy and move destinations. Other endpoints do not apply the path restriction; use the `files_only` permission set to confine a key to the endpoints that do. Does not grant access beyond the owning user's permissions. Optional except for `office_integration` keys, which require a path the owning user can read.
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
---
|
|
@@ -115,8 +115,8 @@ Files::ApiKey.create(
|
|
|
115
115
|
* `expires_at` (string): API Key expiration date
|
|
116
116
|
* `name` (string): Required - Internal name for the API Key. For your use.
|
|
117
117
|
* `aws_style_credentials` (boolean): If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
|
|
118
|
-
* `path` (string): Restricts this
|
|
119
|
-
* `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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope,
|
|
118
|
+
* `path` (string): Restricts the file and folder operations made with this key, meaning the files, folders, and file_actions endpoints, to the specified folder and its descendants, including copy and move destinations. Other endpoints do not apply the path restriction; use the `files_only` permission set to confine a key to the endpoints that do. Does not grant access beyond the owning user's permissions. Optional except for `office_integration` keys, which require a path the owning user can read.
|
|
119
|
+
* `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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can use only the files, folders, and file_actions endpoints, where they perform file operations as a full-access file user in the key's workspace scope, along with `GET /file_migrations/{id}` and `GET /api_key`. They cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user, and every other endpoint denies them with `not-authorized/api-key-only-for-file-operations`.
|
|
120
120
|
* `workspace_id` (int64): Workspace ID for this API Key. `0` means the default workspace.
|
|
121
121
|
|
|
122
122
|
|
|
@@ -136,7 +136,7 @@ Files::ApiKey.update_current(
|
|
|
136
136
|
|
|
137
137
|
* `expires_at` (string): API Key expiration date
|
|
138
138
|
* `name` (string): Internal name for the API Key. For your use.
|
|
139
|
-
* `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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope,
|
|
139
|
+
* `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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can use only the files, folders, and file_actions endpoints, where they perform file operations as a full-access file user in the key's workspace scope, along with `GET /file_migrations/{id}` and `GET /api_key`. They cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user, and every other endpoint denies them with `not-authorized/api-key-only-for-file-operations`.
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
---
|
data/lib/files.com/errors.rb
CHANGED
|
@@ -119,6 +119,7 @@ module Files
|
|
|
119
119
|
class ApiKeyIsDisabledError < NotAuthorizedError; end
|
|
120
120
|
class ApiKeyIsPathRestrictedError < NotAuthorizedError; end
|
|
121
121
|
class ApiKeyOnlyForDesktopAppError < NotAuthorizedError; end
|
|
122
|
+
class ApiKeyOnlyForFileOperationsError < NotAuthorizedError; end
|
|
122
123
|
class ApiKeyOnlyForMobileAppError < NotAuthorizedError; end
|
|
123
124
|
class ApiKeyOnlyForOfficeIntegrationError < NotAuthorizedError; end
|
|
124
125
|
class BillingInformationHiddenError < NotAuthorizedError; end
|
|
@@ -104,7 +104,7 @@ module Files
|
|
|
104
104
|
@attributes[:name] = value
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
# 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope,
|
|
107
|
+
# 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can use only the files, folders, and file_actions endpoints, where they perform file operations as a full-access file user in the key's workspace scope, along with `GET /file_migrations/{id}` and `GET /api_key`. They cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user, and every other endpoint denies them with `not-authorized/api-key-only-for-file-operations`.
|
|
108
108
|
def permission_set
|
|
109
109
|
@attributes[:permission_set]
|
|
110
110
|
end
|
|
@@ -167,7 +167,7 @@ module Files
|
|
|
167
167
|
@attributes[:workspace_id] = value
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
-
# string - Restricts this
|
|
170
|
+
# string - Restricts the file and folder operations made with this key, meaning the files, folders, and file_actions endpoints, to the specified folder and its descendants, including copy and move destinations. Other endpoints do not apply the path restriction; use the `files_only` permission set to confine a key to the endpoints that do. Does not grant access beyond the owning user's permissions. Optional except for `office_integration` keys, which require a path the owning user can read.
|
|
171
171
|
def path
|
|
172
172
|
@attributes[:path]
|
|
173
173
|
end
|
|
@@ -276,8 +276,8 @@ module Files
|
|
|
276
276
|
# expires_at - string - API Key expiration date
|
|
277
277
|
# name (required) - string - Internal name for the API Key. For your use.
|
|
278
278
|
# aws_style_credentials - boolean - If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
|
|
279
|
-
# path - string - Restricts this
|
|
280
|
-
# 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope,
|
|
279
|
+
# path - string - Restricts the file and folder operations made with this key, meaning the files, folders, and file_actions endpoints, to the specified folder and its descendants, including copy and move destinations. Other endpoints do not apply the path restriction; use the `files_only` permission set to confine a key to the endpoints that do. Does not grant access beyond the owning user's permissions. Optional except for `office_integration` keys, which require a path the owning user can read.
|
|
280
|
+
# 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can use only the files, folders, and file_actions endpoints, where they perform file operations as a full-access file user in the key's workspace scope, along with `GET /file_migrations/{id}` and `GET /api_key`. They cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user, and every other endpoint denies them with `not-authorized/api-key-only-for-file-operations`.
|
|
281
281
|
# workspace_id - int64 - Workspace ID for this API Key. `0` means the default workspace.
|
|
282
282
|
def self.create(params = {}, options = {})
|
|
283
283
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
@@ -296,7 +296,7 @@ module Files
|
|
|
296
296
|
# Parameters:
|
|
297
297
|
# expires_at - string - API Key expiration date
|
|
298
298
|
# name - string - Internal name for the API Key. For your use.
|
|
299
|
-
# 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can perform file operations as a full-access file user in the key's workspace scope,
|
|
299
|
+
# 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Keys with the `files_only` permission set can use only the files, folders, and file_actions endpoints, where they perform file operations as a full-access file user in the key's workspace scope, along with `GET /file_migrations/{id}` and `GET /api_key`. They cannot use site admin, workspace admin, folder admin, group admin, partner admin, or billing privileges from the owning user, and every other endpoint denies them with `not-authorized/api-key-only-for-file-operations`.
|
|
300
300
|
def self.update_current(params = {}, options = {})
|
|
301
301
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
|
|
302
302
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED