files.com 1.1.617 → 1.1.619
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/_VERSION +1 -1
- data/docs/remote_server_credential.md +4 -1
- data/docs/site.md +3 -1
- data/docs/site_subdomain_redirect.md +73 -0
- data/lib/files.com/models/remote_server_credential.rb +11 -0
- data/lib/files.com/models/site.rb +1 -0
- data/lib/files.com/models/site_subdomain_redirect.rb +96 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0416448573ab1fd9cb7d6a16958b530b313602c5d0e4257e175f9cf9a9f045c1'
|
|
4
|
+
data.tar.gz: 7a0e46ccede338aea36a0551b7dcbad591bd4686338966bfc4f2d27ba3be573f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5444cb5707df1f4b681fe605b8f4cc1c098ffda08d2a10f0e289423af2dc9d3f1c9f640560447e10692a11fadd0c85ea277f7453389afe1b18b2966431c5c9ca
|
|
7
|
+
data.tar.gz: ebabd6fc2c0d8fe48a75f4351832aa871a2649ac53c53c9988f18bb13c177d3cebedb7b26d8aeb1f9ac6a7ee44d998123f572166a779cf4f2a1d1be827899ee2
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.619
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
57
57
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
58
58
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
59
|
+
* `copy_values_from_credential_id` (int64): ID of Remote Server Credential to copy omitted values from.
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
---
|
|
@@ -107,7 +108,8 @@ Files::RemoteServerCredential.create(
|
|
|
107
108
|
s3_compatible_access_key: "example",
|
|
108
109
|
username: "user",
|
|
109
110
|
wasabi_access_key: "example",
|
|
110
|
-
workspace_id: 0
|
|
111
|
+
workspace_id: 0,
|
|
112
|
+
copy_values_from_credential_id: 1
|
|
111
113
|
)
|
|
112
114
|
```
|
|
113
115
|
|
|
@@ -144,6 +146,7 @@ Files::RemoteServerCredential.create(
|
|
|
144
146
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
145
147
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
146
148
|
* `workspace_id` (int64): Workspace ID (0 for default workspace)
|
|
149
|
+
* `copy_values_from_credential_id` (int64): ID of Remote Server Credential to copy omitted values from.
|
|
147
150
|
|
|
148
151
|
|
|
149
152
|
---
|
data/docs/site.md
CHANGED
|
@@ -700,7 +700,8 @@ Files::Site.update(
|
|
|
700
700
|
logo_delete: false,
|
|
701
701
|
bundle_watermark_attachment_delete: false,
|
|
702
702
|
login_page_background_image_delete: false,
|
|
703
|
-
disable_2fa_with_delay: false
|
|
703
|
+
disable_2fa_with_delay: false,
|
|
704
|
+
redirect_old_subdomain: false
|
|
704
705
|
)
|
|
705
706
|
```
|
|
706
707
|
|
|
@@ -881,4 +882,5 @@ Files::Site.update(
|
|
|
881
882
|
* `disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
|
|
882
883
|
* `ldap_password_change` (string): New LDAP password.
|
|
883
884
|
* `ldap_password_change_confirmation` (string): Confirm new LDAP password.
|
|
885
|
+
* `redirect_old_subdomain` (boolean): If true, and if changing the site subdomain, then create a redirect from the previous Files.com subdomain to the new Files.com subdomain.
|
|
884
886
|
* `smtp_password` (string): Password for SMTP server.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# SiteSubdomainRedirect
|
|
2
|
+
|
|
3
|
+
## Example SiteSubdomainRedirect Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"subdomain": "old-company",
|
|
9
|
+
"created_at": "2000-01-01T01:00:00Z",
|
|
10
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
|
11
|
+
}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
* `id` (int64): Site subdomain redirect ID.
|
|
15
|
+
* `subdomain` (string): Files.com subdomain that continues to route to the current site subdomain.
|
|
16
|
+
* `created_at` (date-time): When this redirect was created.
|
|
17
|
+
* `updated_at` (date-time): When this redirect was last updated.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## List Site Subdomain Redirects
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
Files::SiteSubdomainRedirect.list
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
|
|
30
|
+
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
31
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
32
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Show Site Subdomain Redirect
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Files::SiteSubdomainRedirect.find(id)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
* `id` (int64): Required - Site Subdomain Redirect ID.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Delete Site Subdomain Redirect
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
Files::SiteSubdomainRedirect.delete(id)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
* `id` (int64): Required - Site Subdomain Redirect ID.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Delete Site Subdomain Redirect
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
site_subdomain_redirect = Files::SiteSubdomainRedirect.find(id)
|
|
67
|
+
|
|
68
|
+
site_subdomain_redirect.delete
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
* `id` (int64): Required - Site Subdomain Redirect ID.
|
|
@@ -306,6 +306,15 @@ module Files
|
|
|
306
306
|
@attributes[:wasabi_secret_key] = value
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
# int64 - ID of Remote Server Credential to copy omitted values from.
|
|
310
|
+
def copy_values_from_credential_id
|
|
311
|
+
@attributes[:copy_values_from_credential_id]
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
def copy_values_from_credential_id=(value)
|
|
315
|
+
@attributes[:copy_values_from_credential_id] = value
|
|
316
|
+
end
|
|
317
|
+
|
|
309
318
|
# Parameters:
|
|
310
319
|
# name - string - Internal name for your reference
|
|
311
320
|
# description - string - Internal description for your reference
|
|
@@ -473,6 +482,7 @@ module Files
|
|
|
473
482
|
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
474
483
|
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
475
484
|
# workspace_id - int64 - Workspace ID (0 for default workspace)
|
|
485
|
+
# copy_values_from_credential_id - int64 - ID of Remote Server Credential to copy omitted values from.
|
|
476
486
|
def self.create(params = {}, options = {})
|
|
477
487
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
478
488
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
@@ -505,6 +515,7 @@ module Files
|
|
|
505
515
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params[:s3_compatible_secret_key] and !params[:s3_compatible_secret_key].is_a?(String)
|
|
506
516
|
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params[:wasabi_secret_key] and !params[:wasabi_secret_key].is_a?(String)
|
|
507
517
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
518
|
+
raise InvalidParameterError.new("Bad parameter: copy_values_from_credential_id must be an Integer") if params[:copy_values_from_credential_id] and !params[:copy_values_from_credential_id].is_a?(Integer)
|
|
508
519
|
|
|
509
520
|
response, options = Api.send_request("/remote_server_credentials", :post, params, options)
|
|
510
521
|
RemoteServerCredential.new(response.data, options)
|
|
@@ -1115,6 +1115,7 @@ module Files
|
|
|
1115
1115
|
# disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
|
|
1116
1116
|
# ldap_password_change - string - New LDAP password.
|
|
1117
1117
|
# ldap_password_change_confirmation - string - Confirm new LDAP password.
|
|
1118
|
+
# redirect_old_subdomain - boolean - If true, and if changing the site subdomain, then create a redirect from the previous Files.com subdomain to the new Files.com subdomain.
|
|
1118
1119
|
# smtp_password - string - Password for SMTP server.
|
|
1119
1120
|
def self.update(params = {}, options = {})
|
|
1120
1121
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class SiteSubdomainRedirect
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Site subdomain redirect ID.
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - Files.com subdomain that continues to route to the current site subdomain.
|
|
18
|
+
def subdomain
|
|
19
|
+
@attributes[:subdomain]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# date-time - When this redirect was created.
|
|
23
|
+
def created_at
|
|
24
|
+
@attributes[:created_at]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# date-time - When this redirect was last updated.
|
|
28
|
+
def updated_at
|
|
29
|
+
@attributes[:updated_at]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def delete(params = {})
|
|
33
|
+
params ||= {}
|
|
34
|
+
params[:id] = @attributes[:id]
|
|
35
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
36
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
37
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
38
|
+
|
|
39
|
+
Api.send_request("/site_subdomain_redirects/#{@attributes[:id]}", :delete, params, @options)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def destroy(params = {})
|
|
43
|
+
delete(params)
|
|
44
|
+
nil
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Parameters:
|
|
48
|
+
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
49
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
50
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
|
|
51
|
+
def self.list(params = {}, options = {})
|
|
52
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
53
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
54
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
55
|
+
|
|
56
|
+
List.new(SiteSubdomainRedirect, params) do
|
|
57
|
+
Api.send_request("/site_subdomain_redirects", :get, params, options)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def self.all(params = {}, options = {})
|
|
62
|
+
list(params, options)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Parameters:
|
|
66
|
+
# id (required) - int64 - Site Subdomain Redirect ID.
|
|
67
|
+
def self.find(id, params = {}, options = {})
|
|
68
|
+
params ||= {}
|
|
69
|
+
params[:id] = id
|
|
70
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
71
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
72
|
+
|
|
73
|
+
response, options = Api.send_request("/site_subdomain_redirects/#{params[:id]}", :get, params, options)
|
|
74
|
+
SiteSubdomainRedirect.new(response.data, options)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def self.get(id, params = {}, options = {})
|
|
78
|
+
find(id, params, options)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def self.delete(id, params = {}, options = {})
|
|
82
|
+
params ||= {}
|
|
83
|
+
params[:id] = id
|
|
84
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
85
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
86
|
+
|
|
87
|
+
Api.send_request("/site_subdomain_redirects/#{params[:id]}", :delete, params, options)
|
|
88
|
+
nil
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def self.destroy(id, params = {}, options = {})
|
|
92
|
+
delete(id, params, options)
|
|
93
|
+
nil
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -132,6 +132,7 @@ require "files.com/models/share_group"
|
|
|
132
132
|
require "files.com/models/share_group_member"
|
|
133
133
|
require "files.com/models/siem_http_destination"
|
|
134
134
|
require "files.com/models/site"
|
|
135
|
+
require "files.com/models/site_subdomain_redirect"
|
|
135
136
|
require "files.com/models/snapshot"
|
|
136
137
|
require "files.com/models/sso_strategy"
|
|
137
138
|
require "files.com/models/status"
|
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.
|
|
4
|
+
version: 1.1.619
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04
|
|
11
|
+
date: 2026-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -271,6 +271,7 @@ files:
|
|
|
271
271
|
- docs/share_group_member.md
|
|
272
272
|
- docs/siem_http_destination.md
|
|
273
273
|
- docs/site.md
|
|
274
|
+
- docs/site_subdomain_redirect.md
|
|
274
275
|
- docs/snapshot.md
|
|
275
276
|
- docs/sso_strategy.md
|
|
276
277
|
- docs/status.md
|
|
@@ -399,6 +400,7 @@ files:
|
|
|
399
400
|
- lib/files.com/models/share_group_member.rb
|
|
400
401
|
- lib/files.com/models/siem_http_destination.rb
|
|
401
402
|
- lib/files.com/models/site.rb
|
|
403
|
+
- lib/files.com/models/site_subdomain_redirect.rb
|
|
402
404
|
- lib/files.com/models/snapshot.rb
|
|
403
405
|
- lib/files.com/models/sso_strategy.rb
|
|
404
406
|
- lib/files.com/models/status.rb
|