files.com 1.0.160 → 1.0.161

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.160
1
+ 1.0.161
@@ -101,6 +101,12 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
101
101
  (0, _defineProperty2.default)(this, "setS3Region", function (value) {
102
102
  _this.attributes.s3_region = value;
103
103
  });
104
+ (0, _defineProperty2.default)(this, "getAwsAccessKey", function () {
105
+ return _this.attributes.aws_access_key;
106
+ });
107
+ (0, _defineProperty2.default)(this, "setAwsAccessKey", function (value) {
108
+ _this.attributes.aws_access_key = value;
109
+ });
104
110
  (0, _defineProperty2.default)(this, "getServerCertificate", function () {
105
111
  return _this.attributes.server_certificate;
106
112
  });
@@ -167,6 +173,12 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
167
173
  (0, _defineProperty2.default)(this, "setWasabiRegion", function (value) {
168
174
  _this.attributes.wasabi_region = value;
169
175
  });
176
+ (0, _defineProperty2.default)(this, "getWasabiAccessKey", function () {
177
+ return _this.attributes.wasabi_access_key;
178
+ });
179
+ (0, _defineProperty2.default)(this, "setWasabiAccessKey", function (value) {
180
+ _this.attributes.wasabi_access_key = value;
181
+ });
170
182
  (0, _defineProperty2.default)(this, "getRackspaceUsername", function () {
171
183
  return _this.attributes.rackspace_username;
172
184
  });
@@ -233,18 +245,18 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
233
245
  (0, _defineProperty2.default)(this, "setS3CompatibleEndpoint", function (value) {
234
246
  _this.attributes.s3_compatible_endpoint = value;
235
247
  });
248
+ (0, _defineProperty2.default)(this, "getS3CompatibleAccessKey", function () {
249
+ return _this.attributes.s3_compatible_access_key;
250
+ });
251
+ (0, _defineProperty2.default)(this, "setS3CompatibleAccessKey", function (value) {
252
+ _this.attributes.s3_compatible_access_key = value;
253
+ });
236
254
  (0, _defineProperty2.default)(this, "getEnableDedicatedIps", function () {
237
255
  return _this.attributes.enable_dedicated_ips;
238
256
  });
239
257
  (0, _defineProperty2.default)(this, "setEnableDedicatedIps", function (value) {
240
258
  _this.attributes.enable_dedicated_ips = value;
241
259
  });
242
- (0, _defineProperty2.default)(this, "getAwsAccessKey", function () {
243
- return _this.attributes.aws_access_key;
244
- });
245
- (0, _defineProperty2.default)(this, "setAwsAccessKey", function (value) {
246
- _this.attributes.aws_access_key = value;
247
- });
248
260
  (0, _defineProperty2.default)(this, "getAwsSecretKey", function () {
249
261
  return _this.attributes.aws_secret_key;
250
262
  });
@@ -275,12 +287,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
275
287
  (0, _defineProperty2.default)(this, "setGoogleCloudStorageCredentialsJson", function (value) {
276
288
  _this.attributes.google_cloud_storage_credentials_json = value;
277
289
  });
278
- (0, _defineProperty2.default)(this, "getWasabiAccessKey", function () {
279
- return _this.attributes.wasabi_access_key;
280
- });
281
- (0, _defineProperty2.default)(this, "setWasabiAccessKey", function (value) {
282
- _this.attributes.wasabi_access_key = value;
283
- });
284
290
  (0, _defineProperty2.default)(this, "getWasabiSecretKey", function () {
285
291
  return _this.attributes.wasabi_secret_key;
286
292
  });
@@ -317,12 +323,6 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
317
323
  (0, _defineProperty2.default)(this, "setAzureBlobStorageAccessKey", function (value) {
318
324
  _this.attributes.azure_blob_storage_access_key = value;
319
325
  });
320
- (0, _defineProperty2.default)(this, "getS3CompatibleAccessKey", function () {
321
- return _this.attributes.s3_compatible_access_key;
322
- });
323
- (0, _defineProperty2.default)(this, "setS3CompatibleAccessKey", function (value) {
324
- _this.attributes.s3_compatible_access_key = value;
325
- });
326
326
  (0, _defineProperty2.default)(this, "getS3CompatibleSecretKey", function () {
327
327
  return _this.attributes.s3_compatible_secret_key;
328
328
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.160",
3
+ "version": "1.0.161",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -92,6 +92,13 @@ class RemoteServer {
92
92
  this.attributes.s3_region = value
93
93
  }
94
94
 
95
+ // string # AWS Access Key.
96
+ getAwsAccessKey = () => this.attributes.aws_access_key
97
+
98
+ setAwsAccessKey = value => {
99
+ this.attributes.aws_access_key = value
100
+ }
101
+
95
102
  // string # Remote server certificate
96
103
  getServerCertificate = () => this.attributes.server_certificate
97
104
 
@@ -169,6 +176,13 @@ class RemoteServer {
169
176
  this.attributes.wasabi_region = value
170
177
  }
171
178
 
179
+ // string # Wasabi access key.
180
+ getWasabiAccessKey = () => this.attributes.wasabi_access_key
181
+
182
+ setWasabiAccessKey = value => {
183
+ this.attributes.wasabi_access_key = value
184
+ }
185
+
172
186
  // string # Rackspace username used to login to the Rackspace Cloud Control Panel.
173
187
  getRackspaceUsername = () => this.attributes.rackspace_username
174
188
 
@@ -246,6 +260,13 @@ class RemoteServer {
246
260
  this.attributes.s3_compatible_endpoint = value
247
261
  }
248
262
 
263
+ // string # S3-compatible Access Key.
264
+ getS3CompatibleAccessKey = () => this.attributes.s3_compatible_access_key
265
+
266
+ setS3CompatibleAccessKey = value => {
267
+ this.attributes.s3_compatible_access_key = value
268
+ }
269
+
249
270
  // boolean # `true` if remote server only accepts connections from dedicated IPs
250
271
  getEnableDedicatedIps = () => this.attributes.enable_dedicated_ips
251
272
 
@@ -253,13 +274,6 @@ class RemoteServer {
253
274
  this.attributes.enable_dedicated_ips = value
254
275
  }
255
276
 
256
- // string # AWS Access Key.
257
- getAwsAccessKey = () => this.attributes.aws_access_key
258
-
259
- setAwsAccessKey = value => {
260
- this.attributes.aws_access_key = value
261
- }
262
-
263
277
  // string # AWS secret key.
264
278
  getAwsSecretKey = () => this.attributes.aws_secret_key
265
279
 
@@ -295,13 +309,6 @@ class RemoteServer {
295
309
  this.attributes.google_cloud_storage_credentials_json = value
296
310
  }
297
311
 
298
- // string # Wasabi access key.
299
- getWasabiAccessKey = () => this.attributes.wasabi_access_key
300
-
301
- setWasabiAccessKey = value => {
302
- this.attributes.wasabi_access_key = value
303
- }
304
-
305
312
  // string # Wasabi secret key.
306
313
  getWasabiSecretKey = () => this.attributes.wasabi_secret_key
307
314
 
@@ -344,13 +351,6 @@ class RemoteServer {
344
351
  this.attributes.azure_blob_storage_access_key = value
345
352
  }
346
353
 
347
- // string # S3-compatible access key
348
- getS3CompatibleAccessKey = () => this.attributes.s3_compatible_access_key
349
-
350
- setS3CompatibleAccessKey = value => {
351
- this.attributes.s3_compatible_access_key = value
352
- }
353
-
354
354
  // string # S3-compatible secret key
355
355
  getS3CompatibleSecretKey = () => this.attributes.s3_compatible_secret_key
356
356
 
@@ -399,7 +399,7 @@ class RemoteServer {
399
399
  // s3_compatible_bucket - string - S3-compatible Bucket name
400
400
  // s3_compatible_endpoint - string - S3-compatible endpoint
401
401
  // enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
402
- // s3_compatible_access_key - string - S3-compatible access key
402
+ // s3_compatible_access_key - string - S3-compatible Access Key.
403
403
  // s3_compatible_secret_key - string - S3-compatible secret key
404
404
  update = async (params = {}) => {
405
405
  if (!this.attributes.id) {
@@ -666,7 +666,7 @@ class RemoteServer {
666
666
  // s3_compatible_bucket - string - S3-compatible Bucket name
667
667
  // s3_compatible_endpoint - string - S3-compatible endpoint
668
668
  // enable_dedicated_ips - boolean - `true` if remote server only accepts connections from dedicated IPs
669
- // s3_compatible_access_key - string - S3-compatible access key
669
+ // s3_compatible_access_key - string - S3-compatible Access Key.
670
670
  // s3_compatible_secret_key - string - S3-compatible secret key
671
671
  static create = async (params = {}, options = {}) => {
672
672
  if (params['aws_access_key'] && !isString(params['aws_access_key'])) {