files.com 1.0.112 → 1.0.113

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd4923d22b6374dc1cc8a95e73996ea20b73b757a4dea9e082862ee131fe6913
4
- data.tar.gz: eba5623bcb8dd00d3dbb3db800a6b6b28ef4ddff5301a69e8083bbc004ae2d80
3
+ metadata.gz: 11957d896fa3327dff4bbbf1d320201f178222b07d4d31484659782ebdb02418
4
+ data.tar.gz: ae89da61c3185188a1dd734e37d176e76c079d3a7f99768edb38910a7393073c
5
5
  SHA512:
6
- metadata.gz: 1e324b0b73af796761e30838b8866f30fc08f0461c250b7e6ab4523e82c041e88643c467ab22349d4bd986797198b6e47b4298f979c8270f209f4645f3cb762d
7
- data.tar.gz: af7687afbb21b1aa8bf27dc6f45f9455a2717d22dec11412d065068c65e652dc7a91c1478fc42a3c30019af7aedf52a2bead169e1c59704c864bf1b23b894a52
6
+ metadata.gz: cda8900eea0af0de840da2a04af1b1000c5a6886a69493dfd999db2fb1390171c0347295f7033bca9882383275081fe8e361430c75daaf5eeb7a51c20e6c5c14
7
+ data.tar.gz: 329b5a750be00bd65a9c4ab6766ff505a54f0787d5fa19fbab2e02bd9e664abfa94060c8a04e7d0aa669cd1c2796889a5b4a999b8e0d3a735e8394a682e002d3
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.112
1
+ 1.0.113
@@ -156,7 +156,7 @@ Files::ApiKey.update(id,
156
156
  ## Delete current API key. (Requires current API connection to be using an API key.)
157
157
 
158
158
  ```
159
- Files::ApiKey.delete_current(
159
+ Files::ApiKey.current(
160
160
  format: "",
161
161
  api_key: ""
162
162
  )
@@ -32,6 +32,7 @@
32
32
  "disable_password_reset": true,
33
33
  "domain": "my-custom-domain.com",
34
34
  "email": "john.doe@files.com",
35
+ "reply_to_email": "jane.doe@files.com",
35
36
  "non_sso_groups_allowed": true,
36
37
  "non_sso_users_allowed": true,
37
38
  "folder_permissions_groups_only": true,
@@ -145,6 +146,7 @@
145
146
  * `disable_password_reset` (boolean): Is password reset disabled?
146
147
  * `domain` (string): Custom domain
147
148
  * `email` (email): Main email for this site
149
+ * `reply_to_email` (email): Reply-to email for this site
148
150
  * `non_sso_groups_allowed` (boolean): If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
149
151
  * `non_sso_users_allowed` (boolean): If true, users can be manually created / modified / deleted by Site Admins. Otherwise, users can only be managed via your SSO provider.
150
152
  * `folder_permissions_groups_only` (boolean): If true, permissions for this site must be bound to a group (not a user). Otherwise, permissions must be bound to a user.
@@ -273,6 +275,7 @@ Files::Site.update(
273
275
  subdomain: "mysite",
274
276
  domain: "my-custom-domain.com",
275
277
  email: "john.doe@files.com",
278
+ reply_to_email: "jane.doe@files.com",
276
279
  allow_bundle_names: true,
277
280
  bundle_expiration: 1,
278
281
  overage_notify: true,
@@ -364,6 +367,7 @@ Files::Site.update(
364
367
  * `subdomain` (string): Site subdomain
365
368
  * `domain` (string): Custom domain
366
369
  * `email` (string): Main email for this site
370
+ * `reply_to_email` (string): Reply-to email for this site
367
371
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
368
372
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
369
373
  * `overage_notify` (boolean): Notify site email of overages?
@@ -34,6 +34,7 @@
34
34
  "provision_ftp_permission": true,
35
35
  "provision_sftp_permission": true,
36
36
  "provision_time_zone": "Eastern Time (US & Canada)",
37
+ "provision_company": "ACME Corp.",
37
38
  "ldap_base_dn": "",
38
39
  "ldap_domain": "mysite.com",
39
40
  "enabled": true,
@@ -75,6 +76,7 @@
75
76
  * `provision_ftp_permission` (boolean): Auto-provisioned users get FTP permission?
76
77
  * `provision_sftp_permission` (boolean): Auto-provisioned users get SFTP permission?
77
78
  * `provision_time_zone` (string): Default time zone for auto provisioned users.
79
+ * `provision_company` (string): Default company for auto provisioned users.
78
80
  * `ldap_base_dn` (string): Base DN for looking up users in LDAP server
79
81
  * `ldap_domain` (string): Domain name that will be appended to LDAP usernames
80
82
  * `enabled` (boolean): Is strategy enabled?
@@ -39,6 +39,7 @@
39
39
  "public_keys_count": 1,
40
40
  "receive_admin_alerts": true,
41
41
  "require_2fa": true,
42
+ "active_2fa": true,
42
43
  "require_password_change": true,
43
44
  "restapi_permission": true,
44
45
  "self_managed": true,
@@ -88,6 +89,7 @@
88
89
  * `public_keys_count` (int64): Number of public keys associated with this user
89
90
  * `receive_admin_alerts` (boolean): Should the user receive admin alerts such a certificate expiration notifications and overages?
90
91
  * `require_2fa` (boolean): Is 2fa required to sign in?
92
+ * `active_2fa` (boolean): Is 2fa required to sign in?
91
93
  * `require_password_change` (boolean): Is a password change required upon next user login?
92
94
  * `restapi_permission` (boolean): Can this user access the REST API?
93
95
  * `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
@@ -257,7 +257,7 @@ module Files
257
257
  # Parameters:
258
258
  # format - string
259
259
  # api_key - object
260
- def self.delete_current(params = {}, options = {})
260
+ def self.current(params = {}, options = {})
261
261
  raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
262
262
  raise InvalidParameterError.new("Bad parameter: api_key must be an Hash") if params.dig(:api_key) and !params.dig(:api_key).is_a?(Hash)
263
263
 
@@ -149,6 +149,11 @@ module Files
149
149
  @attributes[:email]
150
150
  end
151
151
 
152
+ # email - Reply-to email for this site
153
+ def reply_to_email
154
+ @attributes[:reply_to_email]
155
+ end
156
+
152
157
  # boolean - If true, groups can be manually created / modified / deleted by Site Admins. Otherwise, groups can only be managed via your SSO provider.
153
158
  def non_sso_groups_allowed
154
159
  @attributes[:non_sso_groups_allowed]
@@ -586,6 +591,7 @@ module Files
586
591
  # subdomain - string - Site subdomain
587
592
  # domain - string - Custom domain
588
593
  # email - string - Main email for this site
594
+ # reply_to_email - string - Reply-to email for this site
589
595
  # allow_bundle_names - boolean - Are manual Bundle names allowed?
590
596
  # bundle_expiration - int64 - Site-wide Bundle expiration in days
591
597
  # overage_notify - boolean - Notify site email of overages?
@@ -689,6 +695,7 @@ module Files
689
695
  raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params.dig(:subdomain) and !params.dig(:subdomain).is_a?(String)
690
696
  raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
691
697
  raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
698
+ raise InvalidParameterError.new("Bad parameter: reply_to_email must be an String") if params.dig(:reply_to_email) and !params.dig(:reply_to_email).is_a?(String)
692
699
  raise InvalidParameterError.new("Bad parameter: bundle_expiration must be an Integer") if params.dig(:bundle_expiration) and !params.dig(:bundle_expiration).is_a?(Integer)
693
700
  raise InvalidParameterError.new("Bad parameter: welcome_email_cc must be an String") if params.dig(:welcome_email_cc) and !params.dig(:welcome_email_cc).is_a?(String)
694
701
  raise InvalidParameterError.new("Bad parameter: welcome_custom_text must be an String") if params.dig(:welcome_custom_text) and !params.dig(:welcome_custom_text).is_a?(String)
@@ -149,6 +149,11 @@ module Files
149
149
  @attributes[:provision_time_zone]
150
150
  end
151
151
 
152
+ # string - Default company for auto provisioned users.
153
+ def provision_company
154
+ @attributes[:provision_company]
155
+ end
156
+
152
157
  # string - Base DN for looking up users in LDAP server
153
158
  def ldap_base_dn
154
159
  @attributes[:ldap_base_dn]
@@ -302,6 +302,15 @@ module Files
302
302
  @attributes[:require_2fa] = value
303
303
  end
304
304
 
305
+ # boolean - Is 2fa required to sign in?
306
+ def active_2fa
307
+ @attributes[:active_2fa]
308
+ end
309
+
310
+ def active_2fa=(value)
311
+ @attributes[:active_2fa] = value
312
+ end
313
+
305
314
  # boolean - Is a password change required upon next user login?
306
315
  def require_password_change
307
316
  @attributes[:require_password_change]
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.112
4
+ version: 1.0.113
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-09-12 00:00:00.000000000 Z
11
+ date: 2020-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable