Skip to content

Commit 1bb64ea

Browse files
[Bot] push changes from Files.com
1 parent a327784 commit 1bb64ea

7 files changed

Lines changed: 29 additions & 4 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.614
1+
1.2.615

docs/models/RemoteServer.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"s3_compatible_bucket": "my-bucket",
5353
"s3_compatible_endpoint": "mys3platform.com",
5454
"s3_compatible_region": "us-east-1",
55+
"s3_compatible_virtual_hosted_style": true,
5556
"s3_compatible_access_key": "example",
5657
"enable_dedicated_ips": true,
5758
"files_agent_permission_set": "read_write",
@@ -123,6 +124,7 @@
123124
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
124125
* `s3_compatible_endpoint` (string): S3-compatible: endpoint
125126
* `s3_compatible_region` (string): S3-compatible: region
127+
* `s3_compatible_virtual_hosted_style` (boolean): S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
126128
* `s3_compatible_access_key` (string): S3-compatible: Access Key
127129
* `enable_dedicated_ips` (boolean): `true` if remote server only accepts connections from dedicated IPs
128130
* `files_agent_permission_set` (string): Local permissions for files agent. read_only, write_only, or read_write
@@ -258,6 +260,7 @@ await RemoteServer.create({
258260
's3_compatible_bucket': "my-bucket",
259261
's3_compatible_endpoint': "mys3platform.com",
260262
's3_compatible_region': "us-east-1",
263+
's3_compatible_virtual_hosted_style': true,
261264
's3_region': "us-east-1",
262265
'server_certificate': "require_match",
263266
'server_host_key': "[public key]",
@@ -338,6 +341,7 @@ await RemoteServer.create({
338341
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
339342
* `s3_compatible_endpoint` (string): S3-compatible: endpoint
340343
* `s3_compatible_region` (string): S3-compatible: region
344+
* `s3_compatible_virtual_hosted_style` (boolean): S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
341345
* `s3_region` (string): S3 region
342346
* `server_certificate` (string): Remote server certificate
343347
* `server_host_key` (string): Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
@@ -499,6 +503,7 @@ await remote_server.update({
499503
's3_compatible_bucket': "my-bucket",
500504
's3_compatible_endpoint': "mys3platform.com",
501505
's3_compatible_region': "us-east-1",
506+
's3_compatible_virtual_hosted_style': true,
502507
's3_region': "us-east-1",
503508
'server_certificate': "require_match",
504509
'server_host_key': "[public key]",
@@ -578,6 +583,7 @@ await remote_server.update({
578583
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
579584
* `s3_compatible_endpoint` (string): S3-compatible: endpoint
580585
* `s3_compatible_region` (string): S3-compatible: region
586+
* `s3_compatible_virtual_hosted_style` (boolean): S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
581587
* `s3_region` (string): S3 region
582588
* `server_certificate` (string): Remote server certificate
583589
* `server_host_key` (string): Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
@@ -640,6 +646,7 @@ await remote_server.update({
640646
"s3_compatible_bucket": "my-bucket",
641647
"s3_compatible_endpoint": "mys3platform.com",
642648
"s3_compatible_region": "us-east-1",
649+
"s3_compatible_virtual_hosted_style": true,
643650
"s3_compatible_access_key": "example",
644651
"enable_dedicated_ips": true,
645652
"files_agent_permission_set": "read_write",

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.614';
15+
var version = '1.2.615';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/RemoteServer.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
368368
(0, _defineProperty2.default)(this, "setS3CompatibleRegion", function (value) {
369369
_this.attributes.s3_compatible_region = value;
370370
});
371+
// boolean # S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
372+
(0, _defineProperty2.default)(this, "getS3CompatibleVirtualHostedStyle", function () {
373+
return _this.attributes.s3_compatible_virtual_hosted_style;
374+
});
375+
(0, _defineProperty2.default)(this, "setS3CompatibleVirtualHostedStyle", function (value) {
376+
_this.attributes.s3_compatible_virtual_hosted_style = value;
377+
});
371378
// string # S3-compatible: Access Key
372379
(0, _defineProperty2.default)(this, "getS3CompatibleAccessKey", function () {
373380
return _this.attributes.s3_compatible_access_key;
@@ -895,6 +902,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
895902
// s3_compatible_bucket - string - S3-compatible: Bucket name
896903
// s3_compatible_endpoint - string - S3-compatible: endpoint
897904
// s3_compatible_region - string - S3-compatible: region
905+
// s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
898906
// s3_region - string - S3 region
899907
// server_certificate - string - Remote server certificate
900908
// server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
@@ -1665,6 +1673,7 @@ _RemoteServer = RemoteServer;
16651673
// s3_compatible_bucket - string - S3-compatible: Bucket name
16661674
// s3_compatible_endpoint - string - S3-compatible: endpoint
16671675
// s3_compatible_region - string - S3-compatible: region
1676+
// s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
16681677
// s3_region - string - S3 region
16691678
// server_certificate - string - Remote server certificate
16701679
// server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.614",
3+
"version": "1.2.615",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.614'
9+
const version = '1.2.615'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/RemoteServer.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,13 @@ class RemoteServer {
364364
this.attributes.s3_compatible_region = value
365365
}
366366

367+
// boolean # S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
368+
getS3CompatibleVirtualHostedStyle = () => this.attributes.s3_compatible_virtual_hosted_style
369+
370+
setS3CompatibleVirtualHostedStyle = value => {
371+
this.attributes.s3_compatible_virtual_hosted_style = value
372+
}
373+
367374
// string # S3-compatible: Access Key
368375
getS3CompatibleAccessKey = () => this.attributes.s3_compatible_access_key
369376

@@ -817,6 +824,7 @@ class RemoteServer {
817824
// s3_compatible_bucket - string - S3-compatible: Bucket name
818825
// s3_compatible_endpoint - string - S3-compatible: endpoint
819826
// s3_compatible_region - string - S3-compatible: region
827+
// s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
820828
// s3_region - string - S3 region
821829
// server_certificate - string - Remote server certificate
822830
// server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts
@@ -1297,6 +1305,7 @@ class RemoteServer {
12971305
// s3_compatible_bucket - string - S3-compatible: Bucket name
12981306
// s3_compatible_endpoint - string - S3-compatible: endpoint
12991307
// s3_compatible_region - string - S3-compatible: region
1308+
// s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
13001309
// s3_region - string - S3 region
13011310
// server_certificate - string - Remote server certificate
13021311
// server_host_key - string - Remote server SSH Host Key. If provided, we will require that the server host key matches the provided key. Uses OpenSSH format similar to what would go into ~/.ssh/known_hosts

0 commit comments

Comments
 (0)