files.com 1.0.12 → 1.0.13
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 +2 -0
- data/docs/site.md +15 -5
- data/docs/sso_strategy.md +3 -3
- data/docs/support_request.md +0 -2
- data/lib/files.com/models/api_key.rb +9 -0
- data/lib/files.com/models/site.rb +10 -5
- data/lib/files.com/models/sso_strategy.rb +3 -3
- data/lib/files.com/models/support_request.rb +0 -11
- 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: a4f6a71d3792768afc1ac76eacbaf3c588b99b536099779a16e8a43f65d957dc
|
4
|
+
data.tar.gz: fb1055fc325bf8355683133a9cc9e0d622780a96eae2bcee9170537294900e58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9c688f6f6439c5b0efc5980e4d2a64dd96c9790e9413097f06316cfdcdeecd1c053152ac1292ab549e1dc2dea52893a561903bc625f18877e7e18f76d86e5ef
|
7
|
+
data.tar.gz: 0e7d746286aa2b08a20be8388b75faceeca3d13be806089ffb608074e19ae0688d9a49ee5cdd85caac7018538aec8ab1da0fe38ee44ddfb6b02465376dc04e62
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.13
|
data/docs/api_key.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"created_at": "2000-01-01 01:00:00 UTC",
|
9
9
|
"expires_at": "2000-01-01 01:00:00 UTC",
|
10
10
|
"key": "[key]",
|
11
|
+
"last_use_at": "2000-01-01 01:00:00 UTC",
|
11
12
|
"name": "My Main API Key",
|
12
13
|
"permission_set": "full",
|
13
14
|
"platform": "win32",
|
@@ -19,6 +20,7 @@
|
|
19
20
|
* `created_at` (date-time): Time which API Key was created
|
20
21
|
* `expires_at` (date-time): API Key expiration date
|
21
22
|
* `key` (string): API Key actual key string
|
23
|
+
* `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.
|
22
24
|
* `name` (string): Internal name for the API Key. For your use.
|
23
25
|
* `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.) We hope to offer additional permission sets 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.
|
24
26
|
* `platform` (string): If this API key represents a Desktop app, what platform was it created on?
|
data/docs/site.md
CHANGED
@@ -370,6 +370,11 @@ Files::Site.update(
|
|
370
370
|
ldap_domain: "mysite.com",
|
371
371
|
ldap_user_action: "disabled",
|
372
372
|
ldap_group_action: "disabled",
|
373
|
+
icon16_delete: true,
|
374
|
+
icon32_delete: true,
|
375
|
+
icon48_delete: true,
|
376
|
+
icon128_delete: true,
|
377
|
+
logo_delete: true,
|
373
378
|
days_until_2fa_required: 1,
|
374
379
|
disable_2fa_with_delay: true,
|
375
380
|
remove_icons: true
|
@@ -439,11 +444,6 @@ Files::Site.update(
|
|
439
444
|
* `site_header` (string): Custom site header text
|
440
445
|
* `site_footer` (string): Custom site footer text
|
441
446
|
* `login_help_text` (string): Login help text
|
442
|
-
* `icon16` (object): Branded icon 16x16
|
443
|
-
* `icon32` (object): Branded icon 32x32
|
444
|
-
* `icon48` (object): Branded icon 48x48
|
445
|
-
* `icon128` (object): Branded icon 128x128
|
446
|
-
* `logo` (object): Branded logo
|
447
447
|
* `smtp_address` (string): SMTP server hostname or IP
|
448
448
|
* `smtp_authentication` (string): SMTP server authentication type
|
449
449
|
* `smtp_from` (string): From address to use when mailing through custom SMTP
|
@@ -465,6 +465,16 @@ Files::Site.update(
|
|
465
465
|
* `ldap_group_exclusion` (string): Comma or newline separated list of group names (with optional wildcards) to exclude when syncing.
|
466
466
|
* `ldap_group_inclusion` (string): Comma or newline separated list of group names (with optional wildcards) to include when syncing.
|
467
467
|
* `ldap_base_dn` (string): Base DN for looking up users in LDAP server
|
468
|
+
* `icon16_file` (file):
|
469
|
+
* `icon16_delete` (boolean): If true, will delete the file stored in icon16
|
470
|
+
* `icon32_file` (file):
|
471
|
+
* `icon32_delete` (boolean): If true, will delete the file stored in icon32
|
472
|
+
* `icon48_file` (file):
|
473
|
+
* `icon48_delete` (boolean): If true, will delete the file stored in icon48
|
474
|
+
* `icon128_file` (file):
|
475
|
+
* `icon128_delete` (boolean): If true, will delete the file stored in icon128
|
476
|
+
* `logo_file` (file):
|
477
|
+
* `logo_delete` (boolean): If true, will delete the file stored in logo
|
468
478
|
* `days_until_2fa_required` (int64): When enabling 2FA, set this to a delay period in days.
|
469
479
|
* `disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
|
470
480
|
* `ldap_password_change` (string): New LDAP password.
|
data/docs/sso_strategy.md
CHANGED
@@ -113,7 +113,7 @@ Files::SsoStrategy.create(
|
|
113
113
|
|
114
114
|
### Parameters
|
115
115
|
|
116
|
-
* `provider` (string): Required - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml
|
116
|
+
* `provider` (string): Required - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml, idaptive
|
117
117
|
* `subdomain` (string): Subdomain or domain name for your auth provider. Example: `https://[subdomain].okta.com/`
|
118
118
|
* `client_id` (string): OAuth Client ID for your auth provider.
|
119
119
|
* `client_secret` (string): OAuth Client Secret for your auth provider.
|
@@ -166,7 +166,7 @@ Files::SsoStrategy.update(id,
|
|
166
166
|
### Parameters
|
167
167
|
|
168
168
|
* `id` (int64): Required - Sso Strategy ID.
|
169
|
-
* `provider` (string): Required - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml
|
169
|
+
* `provider` (string): Required - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml, idaptive
|
170
170
|
* `subdomain` (string): Subdomain or domain name for your auth provider. Example: `https://[subdomain].okta.com/`
|
171
171
|
* `client_id` (string): OAuth Client ID for your auth provider.
|
172
172
|
* `client_secret` (string): OAuth Client Secret for your auth provider.
|
@@ -233,7 +233,7 @@ sso_strategy.update(
|
|
233
233
|
### Parameters
|
234
234
|
|
235
235
|
* `id` (int64): Required - Sso Strategy ID.
|
236
|
-
* `provider` (string): Required - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml
|
236
|
+
* `provider` (string): Required - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml, idaptive
|
237
237
|
* `subdomain` (string): Subdomain or domain name for your auth provider. Example: `https://[subdomain].okta.com/`
|
238
238
|
* `client_id` (string): OAuth Client ID for your auth provider.
|
239
239
|
* `client_secret` (string): OAuth Client Secret for your auth provider.
|
data/docs/support_request.md
CHANGED
@@ -20,7 +20,6 @@
|
|
20
20
|
* `customer_success_access` (string): Enable Customer Success access to your user account?
|
21
21
|
* `priority` (string): Priority. Can be `low` (e.g. general or billing/acount questions), `normal` (e.g. the system is impaired), `high` (e.g. a production workflow or business process is impaired), `urgent` (e.g. a production workflow or business process is down), `critical` (e.g. a business-critical workflow or business process is down)
|
22
22
|
* `email` (string): Email address of the user requesting support.
|
23
|
-
* `attachments_files` (array(file)): Files to send to Customer Success along with this support request
|
24
23
|
|
25
24
|
|
26
25
|
---
|
@@ -62,7 +61,6 @@ Files::SupportRequest.create(
|
|
62
61
|
* `subject` (string): Required - Subject of the support request.
|
63
62
|
* `comment` (string): Required - Main body of the support request.
|
64
63
|
* `priority` (string): Priority. Can be `low` (e.g. general or billing/acount questions), `normal` (e.g. the system is impaired), `high` (e.g. a production workflow or business process is impaired), `urgent` (e.g. a production workflow or business process is down), `critical` (e.g. a business-critical workflow or business process is down)
|
65
|
-
* `attachments_files` (array(file)): Files to send to Customer Success along with this support request
|
66
64
|
|
67
65
|
|
68
66
|
---
|
@@ -41,6 +41,15 @@ module Files
|
|
41
41
|
@attributes[:key] = value
|
42
42
|
end
|
43
43
|
|
44
|
+
# 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.
|
45
|
+
def last_use_at
|
46
|
+
@attributes[:last_use_at]
|
47
|
+
end
|
48
|
+
|
49
|
+
def last_use_at=(value)
|
50
|
+
@attributes[:last_use_at] = value
|
51
|
+
end
|
52
|
+
|
44
53
|
# string - Internal name for the API Key. For your use.
|
45
54
|
def name
|
46
55
|
@attributes[:name]
|
@@ -653,11 +653,6 @@ module Files
|
|
653
653
|
# site_header - string - Custom site header text
|
654
654
|
# site_footer - string - Custom site footer text
|
655
655
|
# login_help_text - string - Login help text
|
656
|
-
# icon16 - object - Branded icon 16x16
|
657
|
-
# icon32 - object - Branded icon 32x32
|
658
|
-
# icon48 - object - Branded icon 48x48
|
659
|
-
# icon128 - object - Branded icon 128x128
|
660
|
-
# logo - object - Branded logo
|
661
656
|
# smtp_address - string - SMTP server hostname or IP
|
662
657
|
# smtp_authentication - string - SMTP server authentication type
|
663
658
|
# smtp_from - string - From address to use when mailing through custom SMTP
|
@@ -679,6 +674,16 @@ module Files
|
|
679
674
|
# ldap_group_exclusion - string - Comma or newline separated list of group names (with optional wildcards) to exclude when syncing.
|
680
675
|
# ldap_group_inclusion - string - Comma or newline separated list of group names (with optional wildcards) to include when syncing.
|
681
676
|
# ldap_base_dn - string - Base DN for looking up users in LDAP server
|
677
|
+
# icon16_file - file
|
678
|
+
# icon16_delete - boolean - If true, will delete the file stored in icon16
|
679
|
+
# icon32_file - file
|
680
|
+
# icon32_delete - boolean - If true, will delete the file stored in icon32
|
681
|
+
# icon48_file - file
|
682
|
+
# icon48_delete - boolean - If true, will delete the file stored in icon48
|
683
|
+
# icon128_file - file
|
684
|
+
# icon128_delete - boolean - If true, will delete the file stored in icon128
|
685
|
+
# logo_file - file
|
686
|
+
# logo_delete - boolean - If true, will delete the file stored in logo
|
682
687
|
# days_until_2fa_required - integer - When enabling 2FA, set this to a delay period in days.
|
683
688
|
# disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
|
684
689
|
# ldap_password_change - string - New LDAP password.
|
@@ -235,7 +235,7 @@ module Files
|
|
235
235
|
end
|
236
236
|
|
237
237
|
# Parameters:
|
238
|
-
# provider (required) - string - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml
|
238
|
+
# provider (required) - string - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml, idaptive
|
239
239
|
# subdomain - string - Subdomain or domain name for your auth provider. Example: `https://[subdomain].okta.com/`
|
240
240
|
# client_id - string - OAuth Client ID for your auth provider.
|
241
241
|
# client_secret - string - OAuth Client Secret for your auth provider.
|
@@ -345,7 +345,7 @@ module Files
|
|
345
345
|
end
|
346
346
|
|
347
347
|
# Parameters:
|
348
|
-
# provider (required) - string - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml
|
348
|
+
# provider (required) - string - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml, idaptive
|
349
349
|
# subdomain - string - Subdomain or domain name for your auth provider. Example: `https://[subdomain].okta.com/`
|
350
350
|
# client_id - string - OAuth Client ID for your auth provider.
|
351
351
|
# client_secret - string - OAuth Client Secret for your auth provider.
|
@@ -395,7 +395,7 @@ module Files
|
|
395
395
|
end
|
396
396
|
|
397
397
|
# Parameters:
|
398
|
-
# provider (required) - string - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml
|
398
|
+
# provider (required) - string - One of the following: google, auth0, okta, atlassian, azure, box, dropbox, slack, ubuntu, onelogin, saml, idaptive
|
399
399
|
# subdomain - string - Subdomain or domain name for your auth provider. Example: `https://[subdomain].okta.com/`
|
400
400
|
# client_id - string - OAuth Client ID for your auth provider.
|
401
401
|
# client_secret - string - OAuth Client Secret for your auth provider.
|
@@ -68,15 +68,6 @@ module Files
|
|
68
68
|
@attributes[:email] = value
|
69
69
|
end
|
70
70
|
|
71
|
-
# array(file) - Files to send to Customer Success along with this support request
|
72
|
-
def attachments_files
|
73
|
-
@attributes[:attachments_files]
|
74
|
-
end
|
75
|
-
|
76
|
-
def attachments_files=(value)
|
77
|
-
@attributes[:attachments_files] = value
|
78
|
-
end
|
79
|
-
|
80
71
|
# Parameters:
|
81
72
|
# customer_success_access - string - Enable Customer Success access to your user account?
|
82
73
|
def update(params = {})
|
@@ -122,14 +113,12 @@ module Files
|
|
122
113
|
# subject (required) - string - Subject of the support request.
|
123
114
|
# comment (required) - string - Main body of the support request.
|
124
115
|
# priority - string - Priority. Can be `low` (e.g. general or billing/acount questions), `normal` (e.g. the system is impaired), `high` (e.g. a production workflow or business process is impaired), `urgent` (e.g. a production workflow or business process is down), `critical` (e.g. a business-critical workflow or business process is down)
|
125
|
-
# attachments_files - array - Files to send to Customer Success along with this support request
|
126
116
|
def self.create(params = {}, options = {})
|
127
117
|
raise InvalidParameterError.new("Bad parameter: customer_success_access must be an String") if params.dig(:customer_success_access) and !params.dig(:customer_success_access).is_a?(String)
|
128
118
|
raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
|
129
119
|
raise InvalidParameterError.new("Bad parameter: subject must be an String") if params.dig(:subject) and !params.dig(:subject).is_a?(String)
|
130
120
|
raise InvalidParameterError.new("Bad parameter: comment must be an String") if params.dig(:comment) and !params.dig(:comment).is_a?(String)
|
131
121
|
raise InvalidParameterError.new("Bad parameter: priority must be an String") if params.dig(:priority) and !params.dig(:priority).is_a?(String)
|
132
|
-
raise InvalidParameterError.new("Bad parameter: attachments_files must be an Array") if params.dig(:attachments_files) and !params.dig(:attachments_files).is_a?(Array)
|
133
122
|
raise MissingParameterError.new("Parameter missing: email") unless params.dig(:email)
|
134
123
|
raise MissingParameterError.new("Parameter missing: subject") unless params.dig(:subject)
|
135
124
|
raise MissingParameterError.new("Parameter missing: comment") unless params.dig(:comment)
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|