files.com 1.1.565 → 1.1.566
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/automation_run.md +1 -1
- data/docs/remote_server.md +18 -0
- data/docs/remote_server_credential.md +18 -0
- data/lib/files.com/models/automation_run.rb +1 -1
- data/lib/files.com/models/remote_server.rb +39 -0
- data/lib/files.com/models/remote_server_credential.rb +39 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07642feaa45864f995b50b11c08de84d8b9785a105fdc91e220f5db833a52cc0
|
|
4
|
+
data.tar.gz: 0ea99de0334c448da1c8b5d46ed437b24453fd35fdb6ffef7cdd3408f7926e66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4712dc562d5a390bdf5d1a2efd2afc098ff0bb6ba20bd2cc54d67acc4e28c06bb1faefc83f833b8ca238fe10ff31cbe826b74580bd144649764b41d89c491194
|
|
7
|
+
data.tar.gz: 65c126c00e0deeedf30474d999b02b7d65c354699c6147f407d015d7591c472a6f36504c5f4b5b3ed8f204094b9a1053bc2b05778996b98687fc083a077d6433
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.566
|
data/docs/automation_run.md
CHANGED
|
@@ -54,7 +54,7 @@ Files::AutomationRun.list(
|
|
|
54
54
|
* `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.
|
|
55
55
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
56
56
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
|
|
57
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
57
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
58
58
|
* `automation_id` (int64): Required - ID of the associated Automation.
|
|
59
59
|
|
|
60
60
|
|
data/docs/remote_server.md
CHANGED
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
"s3_bucket": "my-bucket",
|
|
23
23
|
"s3_region": "us-east-1",
|
|
24
24
|
"aws_access_key": "example",
|
|
25
|
+
"s3_assume_role_arn": "example",
|
|
26
|
+
"s3_assume_role_duration_seconds": 1,
|
|
27
|
+
"s3_assume_role_external_id": "example",
|
|
25
28
|
"server_certificate": "require_match",
|
|
26
29
|
"server_host_key": "[public key]",
|
|
27
30
|
"server_type": "s3",
|
|
@@ -90,6 +93,9 @@
|
|
|
90
93
|
* `s3_bucket` (string): S3 bucket name
|
|
91
94
|
* `s3_region` (string): S3 region
|
|
92
95
|
* `aws_access_key` (string): AWS Access Key.
|
|
96
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
97
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
98
|
+
* `s3_assume_role_external_id` (string): External ID for AssumeRole authentication.
|
|
93
99
|
* `server_certificate` (string): Remote server certificate
|
|
94
100
|
* `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
|
|
95
101
|
* `server_type` (string): Remote server type.
|
|
@@ -246,6 +252,8 @@ Files::RemoteServer.create(
|
|
|
246
252
|
port: 1,
|
|
247
253
|
upload_staging_path: "/tmp/uploads",
|
|
248
254
|
remote_server_credential_id: 1,
|
|
255
|
+
s3_assume_role_arn: "example",
|
|
256
|
+
s3_assume_role_duration_seconds: 1,
|
|
249
257
|
s3_bucket: "my-bucket",
|
|
250
258
|
s3_compatible_access_key: "example",
|
|
251
259
|
s3_compatible_bucket: "my-bucket",
|
|
@@ -323,6 +331,8 @@ Files::RemoteServer.create(
|
|
|
323
331
|
* `port` (int64): Port for remote server.
|
|
324
332
|
* `upload_staging_path` (string): Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
|
|
325
333
|
* `remote_server_credential_id` (int64): ID of Remote Server Credential, if applicable.
|
|
334
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
335
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
326
336
|
* `s3_bucket` (string): S3 bucket name
|
|
327
337
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
328
338
|
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
|
|
@@ -434,6 +444,8 @@ Files::RemoteServer.update(id,
|
|
|
434
444
|
port: 1,
|
|
435
445
|
upload_staging_path: "/tmp/uploads",
|
|
436
446
|
remote_server_credential_id: 1,
|
|
447
|
+
s3_assume_role_arn: "example",
|
|
448
|
+
s3_assume_role_duration_seconds: 1,
|
|
437
449
|
s3_bucket: "my-bucket",
|
|
438
450
|
s3_compatible_access_key: "example",
|
|
439
451
|
s3_compatible_bucket: "my-bucket",
|
|
@@ -511,6 +523,8 @@ Files::RemoteServer.update(id,
|
|
|
511
523
|
* `port` (int64): Port for remote server.
|
|
512
524
|
* `upload_staging_path` (string): Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
|
|
513
525
|
* `remote_server_credential_id` (int64): ID of Remote Server Credential, if applicable.
|
|
526
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
527
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
514
528
|
* `s3_bucket` (string): S3 bucket name
|
|
515
529
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
516
530
|
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
|
|
@@ -640,6 +654,8 @@ remote_server.update(
|
|
|
640
654
|
port: 1,
|
|
641
655
|
upload_staging_path: "/tmp/uploads",
|
|
642
656
|
remote_server_credential_id: 1,
|
|
657
|
+
s3_assume_role_arn: "example",
|
|
658
|
+
s3_assume_role_duration_seconds: 1,
|
|
643
659
|
s3_bucket: "my-bucket",
|
|
644
660
|
s3_compatible_access_key: "example",
|
|
645
661
|
s3_compatible_bucket: "my-bucket",
|
|
@@ -717,6 +733,8 @@ remote_server.update(
|
|
|
717
733
|
* `port` (int64): Port for remote server.
|
|
718
734
|
* `upload_staging_path` (string): Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
|
|
719
735
|
* `remote_server_credential_id` (int64): ID of Remote Server Credential, if applicable.
|
|
736
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
737
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
720
738
|
* `s3_bucket` (string): S3 bucket name
|
|
721
739
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
722
740
|
* `s3_compatible_bucket` (string): S3-compatible: Bucket name
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"description": "More information or notes about this credential.",
|
|
11
11
|
"server_type": "s3",
|
|
12
12
|
"aws_access_key": "example",
|
|
13
|
+
"s3_assume_role_arn": "example",
|
|
14
|
+
"s3_assume_role_duration_seconds": 1,
|
|
15
|
+
"s3_assume_role_external_id": "example",
|
|
13
16
|
"google_cloud_storage_s3_compatible_access_key": "example",
|
|
14
17
|
"wasabi_access_key": "example",
|
|
15
18
|
"s3_compatible_access_key": "example",
|
|
@@ -26,6 +29,9 @@
|
|
|
26
29
|
* `description` (string): Internal description for your reference
|
|
27
30
|
* `server_type` (string): Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
|
|
28
31
|
* `aws_access_key` (string): AWS Access Key.
|
|
32
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
33
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
34
|
+
* `s3_assume_role_external_id` (string): External ID for AssumeRole authentication.
|
|
29
35
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
30
36
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
31
37
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
@@ -92,6 +98,8 @@ Files::RemoteServerCredential.create(
|
|
|
92
98
|
description: "More information or notes about this credential.",
|
|
93
99
|
server_type: "s3",
|
|
94
100
|
aws_access_key: "example",
|
|
101
|
+
s3_assume_role_arn: "example",
|
|
102
|
+
s3_assume_role_duration_seconds: 1,
|
|
95
103
|
cloudflare_access_key: "example",
|
|
96
104
|
filebase_access_key: "example",
|
|
97
105
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
@@ -109,6 +117,8 @@ Files::RemoteServerCredential.create(
|
|
|
109
117
|
* `description` (string): Internal description for your reference
|
|
110
118
|
* `server_type` (string): Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
|
|
111
119
|
* `aws_access_key` (string): AWS Access Key.
|
|
120
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
121
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
112
122
|
* `cloudflare_access_key` (string): Cloudflare: Access Key.
|
|
113
123
|
* `filebase_access_key` (string): Filebase: Access Key.
|
|
114
124
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -146,6 +156,8 @@ Files::RemoteServerCredential.update(id,
|
|
|
146
156
|
description: "More information or notes about this credential.",
|
|
147
157
|
server_type: "s3",
|
|
148
158
|
aws_access_key: "example",
|
|
159
|
+
s3_assume_role_arn: "example",
|
|
160
|
+
s3_assume_role_duration_seconds: 1,
|
|
149
161
|
cloudflare_access_key: "example",
|
|
150
162
|
filebase_access_key: "example",
|
|
151
163
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
@@ -163,6 +175,8 @@ Files::RemoteServerCredential.update(id,
|
|
|
163
175
|
* `description` (string): Internal description for your reference
|
|
164
176
|
* `server_type` (string): Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
|
|
165
177
|
* `aws_access_key` (string): AWS Access Key.
|
|
178
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
179
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
166
180
|
* `cloudflare_access_key` (string): Cloudflare: Access Key.
|
|
167
181
|
* `filebase_access_key` (string): Filebase: Access Key.
|
|
168
182
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -214,6 +228,8 @@ remote_server_credential.update(
|
|
|
214
228
|
description: "More information or notes about this credential.",
|
|
215
229
|
server_type: "s3",
|
|
216
230
|
aws_access_key: "example",
|
|
231
|
+
s3_assume_role_arn: "example",
|
|
232
|
+
s3_assume_role_duration_seconds: 1,
|
|
217
233
|
cloudflare_access_key: "example",
|
|
218
234
|
filebase_access_key: "example",
|
|
219
235
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
@@ -231,6 +247,8 @@ remote_server_credential.update(
|
|
|
231
247
|
* `description` (string): Internal description for your reference
|
|
232
248
|
* `server_type` (string): Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
|
|
233
249
|
* `aws_access_key` (string): AWS Access Key.
|
|
250
|
+
* `s3_assume_role_arn` (string): AWS IAM Role ARN for AssumeRole authentication.
|
|
251
|
+
* `s3_assume_role_duration_seconds` (int64): Session duration in seconds for AssumeRole authentication (900-43200).
|
|
234
252
|
* `cloudflare_access_key` (string): Cloudflare: Access Key.
|
|
235
253
|
* `filebase_access_key` (string): Filebase: Access Key.
|
|
236
254
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -84,7 +84,7 @@ module Files
|
|
|
84
84
|
# 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.
|
|
85
85
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
86
86
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
|
|
87
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
87
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
|
|
88
88
|
# automation_id (required) - int64 - ID of the associated Automation.
|
|
89
89
|
def self.list(params = {}, options = {})
|
|
90
90
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
@@ -171,6 +171,33 @@ module Files
|
|
|
171
171
|
@attributes[:aws_access_key] = value
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
+
# string - AWS IAM Role ARN for AssumeRole authentication.
|
|
175
|
+
def s3_assume_role_arn
|
|
176
|
+
@attributes[:s3_assume_role_arn]
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
def s3_assume_role_arn=(value)
|
|
180
|
+
@attributes[:s3_assume_role_arn] = value
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
184
|
+
def s3_assume_role_duration_seconds
|
|
185
|
+
@attributes[:s3_assume_role_duration_seconds]
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
def s3_assume_role_duration_seconds=(value)
|
|
189
|
+
@attributes[:s3_assume_role_duration_seconds] = value
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# string - External ID for AssumeRole authentication.
|
|
193
|
+
def s3_assume_role_external_id
|
|
194
|
+
@attributes[:s3_assume_role_external_id]
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
def s3_assume_role_external_id=(value)
|
|
198
|
+
@attributes[:s3_assume_role_external_id] = value
|
|
199
|
+
end
|
|
200
|
+
|
|
174
201
|
# string - Remote server certificate
|
|
175
202
|
def server_certificate
|
|
176
203
|
@attributes[:server_certificate]
|
|
@@ -869,6 +896,8 @@ module Files
|
|
|
869
896
|
# port - int64 - Port for remote server.
|
|
870
897
|
# upload_staging_path - string - Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
|
|
871
898
|
# remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
|
|
899
|
+
# s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
|
|
900
|
+
# s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
872
901
|
# s3_bucket - string - S3 bucket name
|
|
873
902
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
874
903
|
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -939,6 +968,8 @@ module Files
|
|
|
939
968
|
raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer)
|
|
940
969
|
raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String)
|
|
941
970
|
raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer)
|
|
971
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String)
|
|
972
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer)
|
|
942
973
|
raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String)
|
|
943
974
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String)
|
|
944
975
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String)
|
|
@@ -1092,6 +1123,8 @@ module Files
|
|
|
1092
1123
|
# port - int64 - Port for remote server.
|
|
1093
1124
|
# upload_staging_path - string - Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
|
|
1094
1125
|
# remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
|
|
1126
|
+
# s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
|
|
1127
|
+
# s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
1095
1128
|
# s3_bucket - string - S3 bucket name
|
|
1096
1129
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
1097
1130
|
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -1159,6 +1192,8 @@ module Files
|
|
|
1159
1192
|
raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer)
|
|
1160
1193
|
raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String)
|
|
1161
1194
|
raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer)
|
|
1195
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String)
|
|
1196
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer)
|
|
1162
1197
|
raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String)
|
|
1163
1198
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String)
|
|
1164
1199
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String)
|
|
@@ -1283,6 +1318,8 @@ module Files
|
|
|
1283
1318
|
# port - int64 - Port for remote server.
|
|
1284
1319
|
# upload_staging_path - string - Upload staging path. Applies to SFTP only. If a path is provided here, files will first be uploaded to this path on the remote folder and the moved into the final correct path via an SFTP move command. This is required by some remote MFT systems to emulate atomic uploads, which are otherwise not supoprted by SFTP.
|
|
1285
1320
|
# remote_server_credential_id - int64 - ID of Remote Server Credential, if applicable.
|
|
1321
|
+
# s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
|
|
1322
|
+
# s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
1286
1323
|
# s3_bucket - string - S3 bucket name
|
|
1287
1324
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
1288
1325
|
# s3_compatible_bucket - string - S3-compatible: Bucket name
|
|
@@ -1352,6 +1389,8 @@ module Files
|
|
|
1352
1389
|
raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer)
|
|
1353
1390
|
raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String)
|
|
1354
1391
|
raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer)
|
|
1392
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String)
|
|
1393
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer)
|
|
1355
1394
|
raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String)
|
|
1356
1395
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String)
|
|
1357
1396
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String)
|
|
@@ -63,6 +63,33 @@ module Files
|
|
|
63
63
|
@attributes[:aws_access_key] = value
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
# string - AWS IAM Role ARN for AssumeRole authentication.
|
|
67
|
+
def s3_assume_role_arn
|
|
68
|
+
@attributes[:s3_assume_role_arn]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def s3_assume_role_arn=(value)
|
|
72
|
+
@attributes[:s3_assume_role_arn] = value
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
76
|
+
def s3_assume_role_duration_seconds
|
|
77
|
+
@attributes[:s3_assume_role_duration_seconds]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def s3_assume_role_duration_seconds=(value)
|
|
81
|
+
@attributes[:s3_assume_role_duration_seconds] = value
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# string - External ID for AssumeRole authentication.
|
|
85
|
+
def s3_assume_role_external_id
|
|
86
|
+
@attributes[:s3_assume_role_external_id]
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def s3_assume_role_external_id=(value)
|
|
90
|
+
@attributes[:s3_assume_role_external_id] = value
|
|
91
|
+
end
|
|
92
|
+
|
|
66
93
|
# string - Google Cloud Storage: S3-compatible Access Key.
|
|
67
94
|
def google_cloud_storage_s3_compatible_access_key
|
|
68
95
|
@attributes[:google_cloud_storage_s3_compatible_access_key]
|
|
@@ -284,6 +311,8 @@ module Files
|
|
|
284
311
|
# description - string - Internal description for your reference
|
|
285
312
|
# server_type - string - Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
|
|
286
313
|
# aws_access_key - string - AWS Access Key.
|
|
314
|
+
# s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
|
|
315
|
+
# s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
287
316
|
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
288
317
|
# filebase_access_key - string - Filebase: Access Key.
|
|
289
318
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -317,6 +346,8 @@ module Files
|
|
|
317
346
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
318
347
|
raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String)
|
|
319
348
|
raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String)
|
|
349
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String)
|
|
350
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer)
|
|
320
351
|
raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String)
|
|
321
352
|
raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String)
|
|
322
353
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String)
|
|
@@ -415,6 +446,8 @@ module Files
|
|
|
415
446
|
# description - string - Internal description for your reference
|
|
416
447
|
# server_type - string - Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
|
|
417
448
|
# aws_access_key - string - AWS Access Key.
|
|
449
|
+
# s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
|
|
450
|
+
# s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
418
451
|
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
419
452
|
# filebase_access_key - string - Filebase: Access Key.
|
|
420
453
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -445,6 +478,8 @@ module Files
|
|
|
445
478
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
446
479
|
raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String)
|
|
447
480
|
raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String)
|
|
481
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String)
|
|
482
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer)
|
|
448
483
|
raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String)
|
|
449
484
|
raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String)
|
|
450
485
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String)
|
|
@@ -480,6 +515,8 @@ module Files
|
|
|
480
515
|
# description - string - Internal description for your reference
|
|
481
516
|
# server_type - string - Remote server type. Remote Server Credentials are only valid for a single type of Remote Server.
|
|
482
517
|
# aws_access_key - string - AWS Access Key.
|
|
518
|
+
# s3_assume_role_arn - string - AWS IAM Role ARN for AssumeRole authentication.
|
|
519
|
+
# s3_assume_role_duration_seconds - int64 - Session duration in seconds for AssumeRole authentication (900-43200).
|
|
483
520
|
# cloudflare_access_key - string - Cloudflare: Access Key.
|
|
484
521
|
# filebase_access_key - string - Filebase: Access Key.
|
|
485
522
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
@@ -512,6 +549,8 @@ module Files
|
|
|
512
549
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
513
550
|
raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String)
|
|
514
551
|
raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String)
|
|
552
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String)
|
|
553
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer)
|
|
515
554
|
raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String)
|
|
516
555
|
raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String)
|
|
517
556
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED