files.com 1.1.687 → 1.1.689
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/holiday_calendar.md +124 -0
- data/docs/remote_server.md +36 -0
- data/docs/remote_server_credential.md +26 -0
- data/docs/user_additional_email_recipient.md +131 -0
- data/lib/files.com/models/holiday_calendar.rb +160 -0
- data/lib/files.com/models/remote_server.rb +93 -0
- data/lib/files.com/models/remote_server_credential.rb +69 -0
- data/lib/files.com/models/user_additional_email_recipient.rb +172 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02404110f3cdedb4da5150380628bc677dfd3a1e12b38db8d5b900ae7ef6e023
|
|
4
|
+
data.tar.gz: 3f6637df82c914605a58d9d655237ee2d9627b7c909eea1458aa4fbc4e662c99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 480b89ae2ecaf15a3e3e59a36fe751250dcb427487cd5a11e2b01c79b54aef7f9b3b7673e859bcc694a38d7f74851c76ac8500c12899d3b58c45d4afca32a259
|
|
7
|
+
data.tar.gz: 16f9dab189c8479bd155e96515434238139052250536defe9483e2fa402f95156297b25830ad197281623cecbc8b6ecd24a7383112b1e1ce720162d72404afbf
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.689
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# HolidayCalendar
|
|
2
|
+
|
|
3
|
+
## Example HolidayCalendar Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"name": "Company Holidays",
|
|
9
|
+
"definition": "example",
|
|
10
|
+
"created_at": "2000-01-01T01:00:00Z",
|
|
11
|
+
"updated_at": "2000-01-01T01:00:00Z"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
* `id` (int64): Holiday Calendar ID. Use `custom_<id>` as a scheduled resource's `holiday_region`.
|
|
16
|
+
* `name` (string): Holiday Calendar name.
|
|
17
|
+
* `definition` (object): Holiday rules for the calendar. For more information, refer to the Holiday Calendars section of the Files.com documentation.
|
|
18
|
+
* `created_at` (date-time): Creation time.
|
|
19
|
+
* `updated_at` (date-time): Last update time.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## List Holiday Calendars
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Files::HolidayCalendar.list
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Parameters
|
|
31
|
+
|
|
32
|
+
* `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.
|
|
33
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
34
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Show Holiday Calendar
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
Files::HolidayCalendar.find(id)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
* `id` (int64): Required - Holiday Calendar ID.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Create Holiday Calendar
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
Files::HolidayCalendar.create(
|
|
56
|
+
name: "Company Holidays"
|
|
57
|
+
)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
* `name` (string): Required - Holiday Calendar name.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Update Holiday Calendar
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
Files::HolidayCalendar.update(id,
|
|
71
|
+
name: "Company Holidays"
|
|
72
|
+
)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Parameters
|
|
76
|
+
|
|
77
|
+
* `id` (int64): Required - Holiday Calendar ID.
|
|
78
|
+
* `name` (string): Holiday Calendar name.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Delete Holiday Calendar
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Files::HolidayCalendar.delete(id)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
* `id` (int64): Required - Holiday Calendar ID.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Update Holiday Calendar
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
holiday_calendar = Files::HolidayCalendar.find(id)
|
|
100
|
+
|
|
101
|
+
holiday_calendar.update(
|
|
102
|
+
name: "Company Holidays"
|
|
103
|
+
)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Parameters
|
|
107
|
+
|
|
108
|
+
* `id` (int64): Required - Holiday Calendar ID.
|
|
109
|
+
* `name` (string): Holiday Calendar name.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Delete Holiday Calendar
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
holiday_calendar = Files::HolidayCalendar.find(id)
|
|
118
|
+
|
|
119
|
+
holiday_calendar.delete
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Parameters
|
|
123
|
+
|
|
124
|
+
* `id` (int64): Required - Holiday Calendar ID.
|
data/docs/remote_server.md
CHANGED
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
"auth_status": "in_setup",
|
|
45
45
|
"auth_account_name": "me@example.com",
|
|
46
46
|
"one_drive_account_type": "personal",
|
|
47
|
+
"sharepoint_tenant_id": "00000000-0000-0000-0000-000000000000",
|
|
48
|
+
"sharepoint_client_id": "00000000-0000-0000-0000-000000000000",
|
|
49
|
+
"sharepoint_app_authentication": true,
|
|
50
|
+
"sharepoint_app_credential_type": "secret",
|
|
51
|
+
"sharepoint_site_url": "https://example.sharepoint.com/sites/accounting",
|
|
47
52
|
"azure_blob_storage_account": "storage-account-name",
|
|
48
53
|
"azure_blob_storage_container": "container-name",
|
|
49
54
|
"azure_blob_storage_hierarchical_namespace": true,
|
|
@@ -119,6 +124,11 @@
|
|
|
119
124
|
* `auth_status` (string): Either `in_setup` or `complete`
|
|
120
125
|
* `auth_account_name` (string): Describes the authorized account
|
|
121
126
|
* `one_drive_account_type` (string): OneDrive: Either personal or business_other account types
|
|
127
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
128
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
129
|
+
* `sharepoint_app_authentication` (boolean): SharePoint: If true, this remote server uses Microsoft Entra app-only authentication.
|
|
130
|
+
* `sharepoint_app_credential_type` (string): SharePoint: App-only credential type. Either secret or certificate.
|
|
131
|
+
* `sharepoint_site_url` (string): SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
122
132
|
* `azure_blob_storage_account` (string): Azure Blob Storage: Account name
|
|
123
133
|
* `azure_blob_storage_container` (string): Azure Blob Storage: Container name
|
|
124
134
|
* `azure_blob_storage_hierarchical_namespace` (boolean): Azure Blob Storage: Does the storage account has hierarchical namespace feature enabled?
|
|
@@ -156,6 +166,8 @@
|
|
|
156
166
|
* `private_key` (string): Private key, if needed.
|
|
157
167
|
* `private_key_passphrase` (string): Passphrase for private key if needed.
|
|
158
168
|
* `reset_authentication` (boolean): Reset authenticated account?
|
|
169
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
170
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
159
171
|
* `ssl_certificate` (string): SSL client certificate.
|
|
160
172
|
* `aws_secret_key` (string): AWS: secret key.
|
|
161
173
|
* `azure_blob_storage_access_key` (string): Azure Blob Storage: Access Key
|
|
@@ -280,6 +292,9 @@ Files::RemoteServer.create(
|
|
|
280
292
|
server_certificate: "require_match",
|
|
281
293
|
server_host_key: "[public key]",
|
|
282
294
|
server_type: "s3",
|
|
295
|
+
sharepoint_client_id: "00000000-0000-0000-0000-000000000000",
|
|
296
|
+
sharepoint_site_url: "https://example.sharepoint.com/sites/accounting",
|
|
297
|
+
sharepoint_tenant_id: "00000000-0000-0000-0000-000000000000",
|
|
283
298
|
ssl: "if_available",
|
|
284
299
|
username: "user",
|
|
285
300
|
wasabi_access_key: "example",
|
|
@@ -296,6 +311,8 @@ Files::RemoteServer.create(
|
|
|
296
311
|
* `private_key` (string): Private key, if needed.
|
|
297
312
|
* `private_key_passphrase` (string): Passphrase for private key if needed.
|
|
298
313
|
* `reset_authentication` (boolean): Reset authenticated account?
|
|
314
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
315
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
299
316
|
* `ssl_certificate` (string): SSL client certificate.
|
|
300
317
|
* `aws_secret_key` (string): AWS: secret key.
|
|
301
318
|
* `azure_blob_storage_access_key` (string): Azure Blob Storage: Access Key
|
|
@@ -364,6 +381,9 @@ Files::RemoteServer.create(
|
|
|
364
381
|
* `server_certificate` (string): Remote server certificate
|
|
365
382
|
* `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
|
|
366
383
|
* `server_type` (string): Remote server type.
|
|
384
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
385
|
+
* `sharepoint_site_url` (string): SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
386
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
367
387
|
* `ssl` (string): Should we require SSL?
|
|
368
388
|
* `username` (string): Remote server username.
|
|
369
389
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
@@ -480,6 +500,9 @@ Files::RemoteServer.update(id,
|
|
|
480
500
|
server_certificate: "require_match",
|
|
481
501
|
server_host_key: "[public key]",
|
|
482
502
|
server_type: "s3",
|
|
503
|
+
sharepoint_client_id: "00000000-0000-0000-0000-000000000000",
|
|
504
|
+
sharepoint_site_url: "https://example.sharepoint.com/sites/accounting",
|
|
505
|
+
sharepoint_tenant_id: "00000000-0000-0000-0000-000000000000",
|
|
483
506
|
ssl: "if_available",
|
|
484
507
|
username: "user",
|
|
485
508
|
wasabi_access_key: "example",
|
|
@@ -495,6 +518,8 @@ Files::RemoteServer.update(id,
|
|
|
495
518
|
* `private_key` (string): Private key, if needed.
|
|
496
519
|
* `private_key_passphrase` (string): Passphrase for private key if needed.
|
|
497
520
|
* `reset_authentication` (boolean): Reset authenticated account?
|
|
521
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
522
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
498
523
|
* `ssl_certificate` (string): SSL client certificate.
|
|
499
524
|
* `aws_secret_key` (string): AWS: secret key.
|
|
500
525
|
* `azure_blob_storage_access_key` (string): Azure Blob Storage: Access Key
|
|
@@ -563,6 +588,9 @@ Files::RemoteServer.update(id,
|
|
|
563
588
|
* `server_certificate` (string): Remote server certificate
|
|
564
589
|
* `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
|
|
565
590
|
* `server_type` (string): Remote server type.
|
|
591
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
592
|
+
* `sharepoint_site_url` (string): SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
593
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
566
594
|
* `ssl` (string): Should we require SSL?
|
|
567
595
|
* `username` (string): Remote server username.
|
|
568
596
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
@@ -697,6 +725,9 @@ remote_server.update(
|
|
|
697
725
|
server_certificate: "require_match",
|
|
698
726
|
server_host_key: "[public key]",
|
|
699
727
|
server_type: "s3",
|
|
728
|
+
sharepoint_client_id: "00000000-0000-0000-0000-000000000000",
|
|
729
|
+
sharepoint_site_url: "https://example.sharepoint.com/sites/accounting",
|
|
730
|
+
sharepoint_tenant_id: "00000000-0000-0000-0000-000000000000",
|
|
700
731
|
ssl: "if_available",
|
|
701
732
|
username: "user",
|
|
702
733
|
wasabi_access_key: "example",
|
|
@@ -712,6 +743,8 @@ remote_server.update(
|
|
|
712
743
|
* `private_key` (string): Private key, if needed.
|
|
713
744
|
* `private_key_passphrase` (string): Passphrase for private key if needed.
|
|
714
745
|
* `reset_authentication` (boolean): Reset authenticated account?
|
|
746
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
747
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
715
748
|
* `ssl_certificate` (string): SSL client certificate.
|
|
716
749
|
* `aws_secret_key` (string): AWS: secret key.
|
|
717
750
|
* `azure_blob_storage_access_key` (string): Azure Blob Storage: Access Key
|
|
@@ -780,6 +813,9 @@ remote_server.update(
|
|
|
780
813
|
* `server_certificate` (string): Remote server certificate
|
|
781
814
|
* `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
|
|
782
815
|
* `server_type` (string): Remote server type.
|
|
816
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
817
|
+
* `sharepoint_site_url` (string): SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
818
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
783
819
|
* `ssl` (string): Should we require SSL?
|
|
784
820
|
* `username` (string): Remote server username.
|
|
785
821
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"filebase_access_key": "example",
|
|
20
20
|
"cloudflare_access_key": "example",
|
|
21
21
|
"linode_access_key": "example",
|
|
22
|
+
"sharepoint_tenant_id": "00000000-0000-0000-0000-000000000000",
|
|
23
|
+
"sharepoint_client_id": "00000000-0000-0000-0000-000000000000",
|
|
24
|
+
"sharepoint_app_credential_type": "secret",
|
|
22
25
|
"username": "user"
|
|
23
26
|
}
|
|
24
27
|
```
|
|
@@ -38,6 +41,9 @@
|
|
|
38
41
|
* `filebase_access_key` (string): Filebase: Access Key.
|
|
39
42
|
* `cloudflare_access_key` (string): Cloudflare: Access Key.
|
|
40
43
|
* `linode_access_key` (string): Linode: Access Key
|
|
44
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
45
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
46
|
+
* `sharepoint_app_credential_type` (string): SharePoint: App-only credential type. Either secret or certificate.
|
|
41
47
|
* `username` (string): Remote server username.
|
|
42
48
|
* `password` (string): Password, if needed.
|
|
43
49
|
* `private_key` (string): Private key, if needed.
|
|
@@ -55,6 +61,8 @@
|
|
|
55
61
|
* `google_cloud_storage_s3_compatible_secret_key` (string): Google Cloud Storage: S3-compatible secret key
|
|
56
62
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
57
63
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
64
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
65
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
58
66
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
59
67
|
* `copy_values_from_credential_id` (int64): ID of Remote Server Credential to copy omitted values from.
|
|
60
68
|
|
|
@@ -106,6 +114,8 @@ Files::RemoteServerCredential.create(
|
|
|
106
114
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
107
115
|
linode_access_key: "example",
|
|
108
116
|
s3_compatible_access_key: "example",
|
|
117
|
+
sharepoint_client_id: "00000000-0000-0000-0000-000000000000",
|
|
118
|
+
sharepoint_tenant_id: "00000000-0000-0000-0000-000000000000",
|
|
109
119
|
username: "user",
|
|
110
120
|
wasabi_access_key: "example",
|
|
111
121
|
workspace_id: 0,
|
|
@@ -126,6 +136,8 @@ Files::RemoteServerCredential.create(
|
|
|
126
136
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
127
137
|
* `linode_access_key` (string): Linode: Access Key
|
|
128
138
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
139
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
140
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
129
141
|
* `username` (string): Remote server username.
|
|
130
142
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
131
143
|
* `password` (string): Password, if needed.
|
|
@@ -144,6 +156,8 @@ Files::RemoteServerCredential.create(
|
|
|
144
156
|
* `google_cloud_storage_s3_compatible_secret_key` (string): Google Cloud Storage: S3-compatible secret key
|
|
145
157
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
146
158
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
159
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
160
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
147
161
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
148
162
|
* `workspace_id` (int64): Workspace ID (0 for default workspace)
|
|
149
163
|
* `copy_values_from_credential_id` (int64): ID of Remote Server Credential to copy omitted values from.
|
|
@@ -166,6 +180,8 @@ Files::RemoteServerCredential.update(id,
|
|
|
166
180
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
167
181
|
linode_access_key: "example",
|
|
168
182
|
s3_compatible_access_key: "example",
|
|
183
|
+
sharepoint_client_id: "00000000-0000-0000-0000-000000000000",
|
|
184
|
+
sharepoint_tenant_id: "00000000-0000-0000-0000-000000000000",
|
|
169
185
|
username: "user",
|
|
170
186
|
wasabi_access_key: "example"
|
|
171
187
|
)
|
|
@@ -185,6 +201,8 @@ Files::RemoteServerCredential.update(id,
|
|
|
185
201
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
186
202
|
* `linode_access_key` (string): Linode: Access Key
|
|
187
203
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
204
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
205
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
188
206
|
* `username` (string): Remote server username.
|
|
189
207
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
190
208
|
* `password` (string): Password, if needed.
|
|
@@ -203,6 +221,8 @@ Files::RemoteServerCredential.update(id,
|
|
|
203
221
|
* `google_cloud_storage_s3_compatible_secret_key` (string): Google Cloud Storage: S3-compatible secret key
|
|
204
222
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
205
223
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
224
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
225
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
206
226
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
207
227
|
|
|
208
228
|
|
|
@@ -238,6 +258,8 @@ remote_server_credential.update(
|
|
|
238
258
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
239
259
|
linode_access_key: "example",
|
|
240
260
|
s3_compatible_access_key: "example",
|
|
261
|
+
sharepoint_client_id: "00000000-0000-0000-0000-000000000000",
|
|
262
|
+
sharepoint_tenant_id: "00000000-0000-0000-0000-000000000000",
|
|
241
263
|
username: "user",
|
|
242
264
|
wasabi_access_key: "example"
|
|
243
265
|
)
|
|
@@ -257,6 +279,8 @@ remote_server_credential.update(
|
|
|
257
279
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
258
280
|
* `linode_access_key` (string): Linode: Access Key
|
|
259
281
|
* `s3_compatible_access_key` (string): S3-compatible: Access Key
|
|
282
|
+
* `sharepoint_client_id` (string): SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
283
|
+
* `sharepoint_tenant_id` (string): SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
260
284
|
* `username` (string): Remote server username.
|
|
261
285
|
* `wasabi_access_key` (string): Wasabi: Access Key.
|
|
262
286
|
* `password` (string): Password, if needed.
|
|
@@ -275,6 +299,8 @@ remote_server_credential.update(
|
|
|
275
299
|
* `google_cloud_storage_s3_compatible_secret_key` (string): Google Cloud Storage: S3-compatible secret key
|
|
276
300
|
* `linode_secret_key` (string): Linode: Secret Key
|
|
277
301
|
* `s3_compatible_secret_key` (string): S3-compatible: Secret Key
|
|
302
|
+
* `sharepoint_client_certificate` (string): SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
303
|
+
* `sharepoint_client_secret` (string): SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
278
304
|
* `wasabi_secret_key` (string): Wasabi: Secret Key
|
|
279
305
|
|
|
280
306
|
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# UserAdditionalEmailRecipient
|
|
2
|
+
|
|
3
|
+
## Example UserAdditionalEmailRecipient Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"id": 1,
|
|
8
|
+
"user_id": 1,
|
|
9
|
+
"workspace_id": 1,
|
|
10
|
+
"email": "user-copy@example.com",
|
|
11
|
+
"created_at": "2000-01-01T01:00:00Z"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
* `id` (int64): User additional email recipient ID
|
|
16
|
+
* `user_id` (int64): User ID
|
|
17
|
+
* `workspace_id` (int64): Workspace ID (0 for default workspace).
|
|
18
|
+
* `email` (string): Additional email recipient address
|
|
19
|
+
* `created_at` (date-time): Created at date/time
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## List User Additional Email Recipients
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Files::UserAdditionalEmailRecipient.list(
|
|
28
|
+
user_id: 1
|
|
29
|
+
)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
35
|
+
* `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.
|
|
36
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
37
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `email`, `user_id` or `workspace_id`.
|
|
38
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `email` and `workspace_id`. Valid field combinations are `[ workspace_id, email ]`.
|
|
39
|
+
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `email`.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Show User Additional Email Recipient
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Files::UserAdditionalEmailRecipient.find(id)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Parameters
|
|
51
|
+
|
|
52
|
+
* `id` (int64): Required - User Additional Email Recipient ID.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Create User Additional Email Recipient
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
Files::UserAdditionalEmailRecipient.create(
|
|
61
|
+
user_id: 1,
|
|
62
|
+
email: "user-copy@example.com"
|
|
63
|
+
)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
69
|
+
* `email` (string): Required - Additional email recipient address
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Update User Additional Email Recipient
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
Files::UserAdditionalEmailRecipient.update(id,
|
|
78
|
+
email: "user-copy@example.com"
|
|
79
|
+
)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Parameters
|
|
83
|
+
|
|
84
|
+
* `id` (int64): Required - User Additional Email Recipient ID.
|
|
85
|
+
* `email` (string): Additional email recipient address
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Delete User Additional Email Recipient
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
Files::UserAdditionalEmailRecipient.delete(id)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
* `id` (int64): Required - User Additional Email Recipient ID.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Update User Additional Email Recipient
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
user_additional_email_recipient = Files::UserAdditionalEmailRecipient.find(id)
|
|
107
|
+
|
|
108
|
+
user_additional_email_recipient.update(
|
|
109
|
+
email: "user-copy@example.com"
|
|
110
|
+
)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Parameters
|
|
114
|
+
|
|
115
|
+
* `id` (int64): Required - User Additional Email Recipient ID.
|
|
116
|
+
* `email` (string): Additional email recipient address
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Delete User Additional Email Recipient
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
user_additional_email_recipient = Files::UserAdditionalEmailRecipient.find(id)
|
|
125
|
+
|
|
126
|
+
user_additional_email_recipient.delete
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Parameters
|
|
130
|
+
|
|
131
|
+
* `id` (int64): Required - User Additional Email Recipient ID.
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class HolidayCalendar
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Holiday Calendar ID. Use `custom_<id>` as a scheduled resource's `holiday_region`.
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def id=(value)
|
|
18
|
+
@attributes[:id] = value
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# string - Holiday Calendar name.
|
|
22
|
+
def name
|
|
23
|
+
@attributes[:name]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def name=(value)
|
|
27
|
+
@attributes[:name] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# object - Holiday rules for the calendar. For more information, refer to the Holiday Calendars section of the Files.com documentation.
|
|
31
|
+
def definition
|
|
32
|
+
@attributes[:definition]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def definition=(value)
|
|
36
|
+
@attributes[:definition] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# date-time - Creation time.
|
|
40
|
+
def created_at
|
|
41
|
+
@attributes[:created_at]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# date-time - Last update time.
|
|
45
|
+
def updated_at
|
|
46
|
+
@attributes[:updated_at]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Parameters:
|
|
50
|
+
# name - string - Holiday Calendar name.
|
|
51
|
+
def update(params = {})
|
|
52
|
+
params ||= {}
|
|
53
|
+
params[:id] = @attributes[:id]
|
|
54
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
55
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
56
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
57
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
58
|
+
|
|
59
|
+
Api.send_request("/holiday_calendars/#{@attributes[:id]}", :patch, params, @options)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def delete(params = {})
|
|
63
|
+
params ||= {}
|
|
64
|
+
params[:id] = @attributes[:id]
|
|
65
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
66
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
67
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
68
|
+
|
|
69
|
+
Api.send_request("/holiday_calendars/#{@attributes[:id]}", :delete, params, @options)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def destroy(params = {})
|
|
73
|
+
delete(params)
|
|
74
|
+
nil
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def save
|
|
78
|
+
if @attributes[:id]
|
|
79
|
+
new_obj = update(@attributes)
|
|
80
|
+
else
|
|
81
|
+
new_obj = HolidayCalendar.create(@attributes, @options)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
@attributes = new_obj.attributes
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Parameters:
|
|
89
|
+
# 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.
|
|
90
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
91
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
92
|
+
def self.list(params = {}, options = {})
|
|
93
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
94
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
95
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
96
|
+
|
|
97
|
+
List.new(HolidayCalendar, params) do
|
|
98
|
+
Api.send_request("/holiday_calendars", :get, params, options)
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def self.all(params = {}, options = {})
|
|
103
|
+
list(params, options)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Parameters:
|
|
107
|
+
# id (required) - int64 - Holiday Calendar ID.
|
|
108
|
+
def self.find(id, params = {}, options = {})
|
|
109
|
+
params ||= {}
|
|
110
|
+
params[:id] = id
|
|
111
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
112
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
113
|
+
|
|
114
|
+
response, options = Api.send_request("/holiday_calendars/#{params[:id]}", :get, params, options)
|
|
115
|
+
HolidayCalendar.new(response.data, options)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def self.get(id, params = {}, options = {})
|
|
119
|
+
find(id, params, options)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Parameters:
|
|
123
|
+
# name (required) - string - Holiday Calendar name.
|
|
124
|
+
def self.create(params = {}, options = {})
|
|
125
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
126
|
+
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
127
|
+
|
|
128
|
+
response, options = Api.send_request("/holiday_calendars", :post, params, options)
|
|
129
|
+
HolidayCalendar.new(response.data, options)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Parameters:
|
|
133
|
+
# name - string - Holiday Calendar name.
|
|
134
|
+
def self.update(id, params = {}, options = {})
|
|
135
|
+
params ||= {}
|
|
136
|
+
params[:id] = id
|
|
137
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
138
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
139
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
140
|
+
|
|
141
|
+
response, options = Api.send_request("/holiday_calendars/#{params[:id]}", :patch, params, options)
|
|
142
|
+
HolidayCalendar.new(response.data, options)
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
def self.delete(id, params = {}, options = {})
|
|
146
|
+
params ||= {}
|
|
147
|
+
params[:id] = id
|
|
148
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
149
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
150
|
+
|
|
151
|
+
Api.send_request("/holiday_calendars/#{params[:id]}", :delete, params, options)
|
|
152
|
+
nil
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
def self.destroy(id, params = {}, options = {})
|
|
156
|
+
delete(id, params, options)
|
|
157
|
+
nil
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
@@ -369,6 +369,51 @@ module Files
|
|
|
369
369
|
@attributes[:one_drive_account_type] = value
|
|
370
370
|
end
|
|
371
371
|
|
|
372
|
+
# string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
373
|
+
def sharepoint_tenant_id
|
|
374
|
+
@attributes[:sharepoint_tenant_id]
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
def sharepoint_tenant_id=(value)
|
|
378
|
+
@attributes[:sharepoint_tenant_id] = value
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
382
|
+
def sharepoint_client_id
|
|
383
|
+
@attributes[:sharepoint_client_id]
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
def sharepoint_client_id=(value)
|
|
387
|
+
@attributes[:sharepoint_client_id] = value
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# boolean - SharePoint: If true, this remote server uses Microsoft Entra app-only authentication.
|
|
391
|
+
def sharepoint_app_authentication
|
|
392
|
+
@attributes[:sharepoint_app_authentication]
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
def sharepoint_app_authentication=(value)
|
|
396
|
+
@attributes[:sharepoint_app_authentication] = value
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# string - SharePoint: App-only credential type. Either secret or certificate.
|
|
400
|
+
def sharepoint_app_credential_type
|
|
401
|
+
@attributes[:sharepoint_app_credential_type]
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
def sharepoint_app_credential_type=(value)
|
|
405
|
+
@attributes[:sharepoint_app_credential_type] = value
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# string - SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
409
|
+
def sharepoint_site_url
|
|
410
|
+
@attributes[:sharepoint_site_url]
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
def sharepoint_site_url=(value)
|
|
414
|
+
@attributes[:sharepoint_site_url] = value
|
|
415
|
+
end
|
|
416
|
+
|
|
372
417
|
# string - Azure Blob Storage: Account name
|
|
373
418
|
def azure_blob_storage_account
|
|
374
419
|
@attributes[:azure_blob_storage_account]
|
|
@@ -702,6 +747,24 @@ module Files
|
|
|
702
747
|
@attributes[:reset_authentication] = value
|
|
703
748
|
end
|
|
704
749
|
|
|
750
|
+
# string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
751
|
+
def sharepoint_client_certificate
|
|
752
|
+
@attributes[:sharepoint_client_certificate]
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
def sharepoint_client_certificate=(value)
|
|
756
|
+
@attributes[:sharepoint_client_certificate] = value
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
# string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
760
|
+
def sharepoint_client_secret
|
|
761
|
+
@attributes[:sharepoint_client_secret]
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
def sharepoint_client_secret=(value)
|
|
765
|
+
@attributes[:sharepoint_client_secret] = value
|
|
766
|
+
end
|
|
767
|
+
|
|
705
768
|
# string - SSL client certificate.
|
|
706
769
|
def ssl_certificate
|
|
707
770
|
@attributes[:ssl_certificate]
|
|
@@ -897,6 +960,8 @@ module Files
|
|
|
897
960
|
# private_key - string - Private key, if needed.
|
|
898
961
|
# private_key_passphrase - string - Passphrase for private key if needed.
|
|
899
962
|
# reset_authentication - boolean - Reset authenticated account?
|
|
963
|
+
# sharepoint_client_certificate - string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
964
|
+
# sharepoint_client_secret - string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
900
965
|
# ssl_certificate - string - SSL client certificate.
|
|
901
966
|
# aws_secret_key - string - AWS: secret key.
|
|
902
967
|
# azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
|
|
@@ -965,6 +1030,9 @@ module Files
|
|
|
965
1030
|
# server_certificate - string - Remote server certificate
|
|
966
1031
|
# 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
|
|
967
1032
|
# server_type - string - Remote server type.
|
|
1033
|
+
# sharepoint_client_id - string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
1034
|
+
# sharepoint_site_url - string - SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
1035
|
+
# sharepoint_tenant_id - string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
968
1036
|
# ssl - string - Should we require SSL?
|
|
969
1037
|
# username - string - Remote server username.
|
|
970
1038
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
@@ -978,6 +1046,8 @@ module Files
|
|
|
978
1046
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
979
1047
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
980
1048
|
raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String)
|
|
1049
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_certificate must be an String") if params[:sharepoint_client_certificate] and !params[:sharepoint_client_certificate].is_a?(String)
|
|
1050
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_secret must be an String") if params[:sharepoint_client_secret] and !params[:sharepoint_client_secret].is_a?(String)
|
|
981
1051
|
raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String)
|
|
982
1052
|
raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String)
|
|
983
1053
|
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String)
|
|
@@ -1040,6 +1110,9 @@ module Files
|
|
|
1040
1110
|
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String)
|
|
1041
1111
|
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
|
1042
1112
|
raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String)
|
|
1113
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_id must be an String") if params[:sharepoint_client_id] and !params[:sharepoint_client_id].is_a?(String)
|
|
1114
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_site_url must be an String") if params[:sharepoint_site_url] and !params[:sharepoint_site_url].is_a?(String)
|
|
1115
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_tenant_id must be an String") if params[:sharepoint_tenant_id] and !params[:sharepoint_tenant_id].is_a?(String)
|
|
1043
1116
|
raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String)
|
|
1044
1117
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
|
1045
1118
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String)
|
|
@@ -1134,6 +1207,8 @@ module Files
|
|
|
1134
1207
|
# private_key - string - Private key, if needed.
|
|
1135
1208
|
# private_key_passphrase - string - Passphrase for private key if needed.
|
|
1136
1209
|
# reset_authentication - boolean - Reset authenticated account?
|
|
1210
|
+
# sharepoint_client_certificate - string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
1211
|
+
# sharepoint_client_secret - string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
1137
1212
|
# ssl_certificate - string - SSL client certificate.
|
|
1138
1213
|
# aws_secret_key - string - AWS: secret key.
|
|
1139
1214
|
# azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
|
|
@@ -1202,6 +1277,9 @@ module Files
|
|
|
1202
1277
|
# server_certificate - string - Remote server certificate
|
|
1203
1278
|
# 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
|
|
1204
1279
|
# server_type - string - Remote server type.
|
|
1280
|
+
# sharepoint_client_id - string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
1281
|
+
# sharepoint_site_url - string - SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
1282
|
+
# sharepoint_tenant_id - string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
1205
1283
|
# ssl - string - Should we require SSL?
|
|
1206
1284
|
# username - string - Remote server username.
|
|
1207
1285
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
@@ -1213,6 +1291,8 @@ module Files
|
|
|
1213
1291
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
1214
1292
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
1215
1293
|
raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String)
|
|
1294
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_certificate must be an String") if params[:sharepoint_client_certificate] and !params[:sharepoint_client_certificate].is_a?(String)
|
|
1295
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_secret must be an String") if params[:sharepoint_client_secret] and !params[:sharepoint_client_secret].is_a?(String)
|
|
1216
1296
|
raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String)
|
|
1217
1297
|
raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String)
|
|
1218
1298
|
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String)
|
|
@@ -1275,6 +1355,9 @@ module Files
|
|
|
1275
1355
|
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String)
|
|
1276
1356
|
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
|
1277
1357
|
raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String)
|
|
1358
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_id must be an String") if params[:sharepoint_client_id] and !params[:sharepoint_client_id].is_a?(String)
|
|
1359
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_site_url must be an String") if params[:sharepoint_site_url] and !params[:sharepoint_site_url].is_a?(String)
|
|
1360
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_tenant_id must be an String") if params[:sharepoint_tenant_id] and !params[:sharepoint_tenant_id].is_a?(String)
|
|
1278
1361
|
raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String)
|
|
1279
1362
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
|
1280
1363
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String)
|
|
@@ -1337,6 +1420,8 @@ module Files
|
|
|
1337
1420
|
# private_key - string - Private key, if needed.
|
|
1338
1421
|
# private_key_passphrase - string - Passphrase for private key if needed.
|
|
1339
1422
|
# reset_authentication - boolean - Reset authenticated account?
|
|
1423
|
+
# sharepoint_client_certificate - string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
1424
|
+
# sharepoint_client_secret - string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
1340
1425
|
# ssl_certificate - string - SSL client certificate.
|
|
1341
1426
|
# aws_secret_key - string - AWS: secret key.
|
|
1342
1427
|
# azure_blob_storage_access_key - string - Azure Blob Storage: Access Key
|
|
@@ -1405,6 +1490,9 @@ module Files
|
|
|
1405
1490
|
# server_certificate - string - Remote server certificate
|
|
1406
1491
|
# 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
|
|
1407
1492
|
# server_type - string - Remote server type.
|
|
1493
|
+
# sharepoint_client_id - string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
1494
|
+
# sharepoint_site_url - string - SharePoint: Site URL to scope app-only authentication to a single site. Leave blank to browse all sites.
|
|
1495
|
+
# sharepoint_tenant_id - string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
1408
1496
|
# ssl - string - Should we require SSL?
|
|
1409
1497
|
# username - string - Remote server username.
|
|
1410
1498
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
@@ -1417,6 +1505,8 @@ module Files
|
|
|
1417
1505
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
1418
1506
|
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
1419
1507
|
raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String)
|
|
1508
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_certificate must be an String") if params[:sharepoint_client_certificate] and !params[:sharepoint_client_certificate].is_a?(String)
|
|
1509
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_secret must be an String") if params[:sharepoint_client_secret] and !params[:sharepoint_client_secret].is_a?(String)
|
|
1420
1510
|
raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String)
|
|
1421
1511
|
raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String)
|
|
1422
1512
|
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String)
|
|
@@ -1479,6 +1569,9 @@ module Files
|
|
|
1479
1569
|
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String)
|
|
1480
1570
|
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
|
1481
1571
|
raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String)
|
|
1572
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_id must be an String") if params[:sharepoint_client_id] and !params[:sharepoint_client_id].is_a?(String)
|
|
1573
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_site_url must be an String") if params[:sharepoint_site_url] and !params[:sharepoint_site_url].is_a?(String)
|
|
1574
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_tenant_id must be an String") if params[:sharepoint_tenant_id] and !params[:sharepoint_tenant_id].is_a?(String)
|
|
1482
1575
|
raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String)
|
|
1483
1576
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
|
1484
1577
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String)
|
|
@@ -144,6 +144,33 @@ module Files
|
|
|
144
144
|
@attributes[:linode_access_key] = value
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
+
# string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
148
|
+
def sharepoint_tenant_id
|
|
149
|
+
@attributes[:sharepoint_tenant_id]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def sharepoint_tenant_id=(value)
|
|
153
|
+
@attributes[:sharepoint_tenant_id] = value
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
157
|
+
def sharepoint_client_id
|
|
158
|
+
@attributes[:sharepoint_client_id]
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def sharepoint_client_id=(value)
|
|
162
|
+
@attributes[:sharepoint_client_id] = value
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# string - SharePoint: App-only credential type. Either secret or certificate.
|
|
166
|
+
def sharepoint_app_credential_type
|
|
167
|
+
@attributes[:sharepoint_app_credential_type]
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def sharepoint_app_credential_type=(value)
|
|
171
|
+
@attributes[:sharepoint_app_credential_type] = value
|
|
172
|
+
end
|
|
173
|
+
|
|
147
174
|
# string - Remote server username.
|
|
148
175
|
def username
|
|
149
176
|
@attributes[:username]
|
|
@@ -297,6 +324,24 @@ module Files
|
|
|
297
324
|
@attributes[:s3_compatible_secret_key] = value
|
|
298
325
|
end
|
|
299
326
|
|
|
327
|
+
# string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
328
|
+
def sharepoint_client_certificate
|
|
329
|
+
@attributes[:sharepoint_client_certificate]
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
def sharepoint_client_certificate=(value)
|
|
333
|
+
@attributes[:sharepoint_client_certificate] = value
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
337
|
+
def sharepoint_client_secret
|
|
338
|
+
@attributes[:sharepoint_client_secret]
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
def sharepoint_client_secret=(value)
|
|
342
|
+
@attributes[:sharepoint_client_secret] = value
|
|
343
|
+
end
|
|
344
|
+
|
|
300
345
|
# string - Wasabi: Secret Key
|
|
301
346
|
def wasabi_secret_key
|
|
302
347
|
@attributes[:wasabi_secret_key]
|
|
@@ -327,6 +372,8 @@ module Files
|
|
|
327
372
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
328
373
|
# linode_access_key - string - Linode: Access Key
|
|
329
374
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
375
|
+
# sharepoint_client_id - string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
376
|
+
# sharepoint_tenant_id - string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
330
377
|
# username - string - Remote server username.
|
|
331
378
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
332
379
|
# password - string - Password, if needed.
|
|
@@ -345,6 +392,8 @@ module Files
|
|
|
345
392
|
# google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
346
393
|
# linode_secret_key - string - Linode: Secret Key
|
|
347
394
|
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
395
|
+
# sharepoint_client_certificate - string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
396
|
+
# sharepoint_client_secret - string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
348
397
|
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
349
398
|
def update(params = {})
|
|
350
399
|
params ||= {}
|
|
@@ -362,6 +411,8 @@ module Files
|
|
|
362
411
|
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)
|
|
363
412
|
raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String)
|
|
364
413
|
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)
|
|
414
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_id must be an String") if params[:sharepoint_client_id] and !params[:sharepoint_client_id].is_a?(String)
|
|
415
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_tenant_id must be an String") if params[:sharepoint_tenant_id] and !params[:sharepoint_tenant_id].is_a?(String)
|
|
365
416
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
|
366
417
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String)
|
|
367
418
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
@@ -380,6 +431,8 @@ module Files
|
|
|
380
431
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String)
|
|
381
432
|
raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String)
|
|
382
433
|
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)
|
|
434
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_certificate must be an String") if params[:sharepoint_client_certificate] and !params[:sharepoint_client_certificate].is_a?(String)
|
|
435
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_secret must be an String") if params[:sharepoint_client_secret] and !params[:sharepoint_client_secret].is_a?(String)
|
|
383
436
|
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)
|
|
384
437
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
385
438
|
|
|
@@ -462,6 +515,8 @@ module Files
|
|
|
462
515
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
463
516
|
# linode_access_key - string - Linode: Access Key
|
|
464
517
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
518
|
+
# sharepoint_client_id - string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
519
|
+
# sharepoint_tenant_id - string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
465
520
|
# username - string - Remote server username.
|
|
466
521
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
467
522
|
# password - string - Password, if needed.
|
|
@@ -480,6 +535,8 @@ module Files
|
|
|
480
535
|
# google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
481
536
|
# linode_secret_key - string - Linode: Secret Key
|
|
482
537
|
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
538
|
+
# sharepoint_client_certificate - string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
539
|
+
# sharepoint_client_secret - string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
483
540
|
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
484
541
|
# workspace_id - int64 - Workspace ID (0 for default workspace)
|
|
485
542
|
# copy_values_from_credential_id - int64 - ID of Remote Server Credential to copy omitted values from.
|
|
@@ -495,6 +552,8 @@ module Files
|
|
|
495
552
|
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)
|
|
496
553
|
raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String)
|
|
497
554
|
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)
|
|
555
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_id must be an String") if params[:sharepoint_client_id] and !params[:sharepoint_client_id].is_a?(String)
|
|
556
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_tenant_id must be an String") if params[:sharepoint_tenant_id] and !params[:sharepoint_tenant_id].is_a?(String)
|
|
498
557
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
|
499
558
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String)
|
|
500
559
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
@@ -513,6 +572,8 @@ module Files
|
|
|
513
572
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String)
|
|
514
573
|
raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String)
|
|
515
574
|
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)
|
|
575
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_certificate must be an String") if params[:sharepoint_client_certificate] and !params[:sharepoint_client_certificate].is_a?(String)
|
|
576
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_secret must be an String") if params[:sharepoint_client_secret] and !params[:sharepoint_client_secret].is_a?(String)
|
|
516
577
|
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)
|
|
517
578
|
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
518
579
|
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)
|
|
@@ -533,6 +594,8 @@ module Files
|
|
|
533
594
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
534
595
|
# linode_access_key - string - Linode: Access Key
|
|
535
596
|
# s3_compatible_access_key - string - S3-compatible: Access Key
|
|
597
|
+
# sharepoint_client_id - string - SharePoint: Microsoft Entra application client ID for app-only authentication.
|
|
598
|
+
# sharepoint_tenant_id - string - SharePoint: Microsoft Entra tenant ID for app-only authentication.
|
|
536
599
|
# username - string - Remote server username.
|
|
537
600
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
538
601
|
# password - string - Password, if needed.
|
|
@@ -551,6 +614,8 @@ module Files
|
|
|
551
614
|
# google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
552
615
|
# linode_secret_key - string - Linode: Secret Key
|
|
553
616
|
# s3_compatible_secret_key - string - S3-compatible: Secret Key
|
|
617
|
+
# sharepoint_client_certificate - string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
|
|
618
|
+
# sharepoint_client_secret - string - SharePoint: Microsoft Entra application client secret for app-only authentication.
|
|
554
619
|
# wasabi_secret_key - string - Wasabi: Secret Key
|
|
555
620
|
def self.update(id, params = {}, options = {})
|
|
556
621
|
params ||= {}
|
|
@@ -567,6 +632,8 @@ module Files
|
|
|
567
632
|
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)
|
|
568
633
|
raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String)
|
|
569
634
|
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)
|
|
635
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_id must be an String") if params[:sharepoint_client_id] and !params[:sharepoint_client_id].is_a?(String)
|
|
636
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_tenant_id must be an String") if params[:sharepoint_tenant_id] and !params[:sharepoint_tenant_id].is_a?(String)
|
|
570
637
|
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
|
571
638
|
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String)
|
|
572
639
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
@@ -585,6 +652,8 @@ module Files
|
|
|
585
652
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String)
|
|
586
653
|
raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String)
|
|
587
654
|
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)
|
|
655
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_certificate must be an String") if params[:sharepoint_client_certificate] and !params[:sharepoint_client_certificate].is_a?(String)
|
|
656
|
+
raise InvalidParameterError.new("Bad parameter: sharepoint_client_secret must be an String") if params[:sharepoint_client_secret] and !params[:sharepoint_client_secret].is_a?(String)
|
|
588
657
|
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)
|
|
589
658
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
590
659
|
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class UserAdditionalEmailRecipient
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - User additional email recipient ID
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def id=(value)
|
|
18
|
+
@attributes[:id] = value
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# int64 - User ID
|
|
22
|
+
def user_id
|
|
23
|
+
@attributes[:user_id]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def user_id=(value)
|
|
27
|
+
@attributes[:user_id] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# int64 - Workspace ID (0 for default workspace).
|
|
31
|
+
def workspace_id
|
|
32
|
+
@attributes[:workspace_id]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def workspace_id=(value)
|
|
36
|
+
@attributes[:workspace_id] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# string - Additional email recipient address
|
|
40
|
+
def email
|
|
41
|
+
@attributes[:email]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def email=(value)
|
|
45
|
+
@attributes[:email] = value
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# date-time - Created at date/time
|
|
49
|
+
def created_at
|
|
50
|
+
@attributes[:created_at]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Parameters:
|
|
54
|
+
# email - string - Additional email recipient address
|
|
55
|
+
def update(params = {})
|
|
56
|
+
params ||= {}
|
|
57
|
+
params[:id] = @attributes[:id]
|
|
58
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
59
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
60
|
+
raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
|
|
61
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
62
|
+
|
|
63
|
+
Api.send_request("/user_additional_email_recipients/#{@attributes[:id]}", :patch, params, @options)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def delete(params = {})
|
|
67
|
+
params ||= {}
|
|
68
|
+
params[:id] = @attributes[:id]
|
|
69
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[: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
|
+
Api.send_request("/user_additional_email_recipients/#{@attributes[:id]}", :delete, params, @options)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def destroy(params = {})
|
|
77
|
+
delete(params)
|
|
78
|
+
nil
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def save
|
|
82
|
+
if @attributes[:id]
|
|
83
|
+
new_obj = update(@attributes)
|
|
84
|
+
else
|
|
85
|
+
new_obj = UserAdditionalEmailRecipient.create(@attributes, @options)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
@attributes = new_obj.attributes
|
|
89
|
+
true
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Parameters:
|
|
93
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
94
|
+
# 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.
|
|
95
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
96
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `email`, `user_id` or `workspace_id`.
|
|
97
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `email` and `workspace_id`. Valid field combinations are `[ workspace_id, email ]`.
|
|
98
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `email`.
|
|
99
|
+
def self.list(params = {}, options = {})
|
|
100
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
101
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
102
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
103
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
104
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
105
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
|
106
|
+
|
|
107
|
+
List.new(UserAdditionalEmailRecipient, params) do
|
|
108
|
+
Api.send_request("/user_additional_email_recipients", :get, params, options)
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
def self.all(params = {}, options = {})
|
|
113
|
+
list(params, options)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Parameters:
|
|
117
|
+
# id (required) - int64 - User Additional Email Recipient ID.
|
|
118
|
+
def self.find(id, params = {}, options = {})
|
|
119
|
+
params ||= {}
|
|
120
|
+
params[:id] = id
|
|
121
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
122
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
123
|
+
|
|
124
|
+
response, options = Api.send_request("/user_additional_email_recipients/#{params[:id]}", :get, params, options)
|
|
125
|
+
UserAdditionalEmailRecipient.new(response.data, options)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
def self.get(id, params = {}, options = {})
|
|
129
|
+
find(id, params, options)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Parameters:
|
|
133
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
134
|
+
# email (required) - string - Additional email recipient address
|
|
135
|
+
def self.create(params = {}, options = {})
|
|
136
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
137
|
+
raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
|
|
138
|
+
raise MissingParameterError.new("Parameter missing: email") unless params[:email]
|
|
139
|
+
|
|
140
|
+
response, options = Api.send_request("/user_additional_email_recipients", :post, params, options)
|
|
141
|
+
UserAdditionalEmailRecipient.new(response.data, options)
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Parameters:
|
|
145
|
+
# email - string - Additional email recipient address
|
|
146
|
+
def self.update(id, params = {}, options = {})
|
|
147
|
+
params ||= {}
|
|
148
|
+
params[:id] = id
|
|
149
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
150
|
+
raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
|
|
151
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
152
|
+
|
|
153
|
+
response, options = Api.send_request("/user_additional_email_recipients/#{params[:id]}", :patch, params, options)
|
|
154
|
+
UserAdditionalEmailRecipient.new(response.data, options)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
def self.delete(id, params = {}, options = {})
|
|
158
|
+
params ||= {}
|
|
159
|
+
params[:id] = id
|
|
160
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
161
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
162
|
+
|
|
163
|
+
Api.send_request("/user_additional_email_recipients/#{params[:id]}", :delete, params, options)
|
|
164
|
+
nil
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
def self.destroy(id, params = {}, options = {})
|
|
168
|
+
delete(id, params, options)
|
|
169
|
+
nil
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -100,6 +100,7 @@ require "files.com/models/group_user"
|
|
|
100
100
|
require "files.com/models/history"
|
|
101
101
|
require "files.com/models/history_export"
|
|
102
102
|
require "files.com/models/history_export_result"
|
|
103
|
+
require "files.com/models/holiday_calendar"
|
|
103
104
|
require "files.com/models/holiday_region"
|
|
104
105
|
require "files.com/models/image"
|
|
105
106
|
require "files.com/models/inbound_s3_log"
|
|
@@ -166,6 +167,7 @@ require "files.com/models/usage_by_top_level_dir"
|
|
|
166
167
|
require "files.com/models/usage_daily_snapshot"
|
|
167
168
|
require "files.com/models/usage_snapshot"
|
|
168
169
|
require "files.com/models/user"
|
|
170
|
+
require "files.com/models/user_additional_email_recipient"
|
|
169
171
|
require "files.com/models/user_cipher_use"
|
|
170
172
|
require "files.com/models/user_lifecycle_rule"
|
|
171
173
|
require "files.com/models/user_request"
|
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.689
|
|
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-07-
|
|
11
|
+
date: 2026-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -239,6 +239,7 @@ files:
|
|
|
239
239
|
- docs/history.md
|
|
240
240
|
- docs/history_export.md
|
|
241
241
|
- docs/history_export_result.md
|
|
242
|
+
- docs/holiday_calendar.md
|
|
242
243
|
- docs/holiday_region.md
|
|
243
244
|
- docs/image.md
|
|
244
245
|
- docs/inbound_s3_log.md
|
|
@@ -305,6 +306,7 @@ files:
|
|
|
305
306
|
- docs/usage_daily_snapshot.md
|
|
306
307
|
- docs/usage_snapshot.md
|
|
307
308
|
- docs/user.md
|
|
309
|
+
- docs/user_additional_email_recipient.md
|
|
308
310
|
- docs/user_cipher_use.md
|
|
309
311
|
- docs/user_lifecycle_rule.md
|
|
310
312
|
- docs/user_request.md
|
|
@@ -390,6 +392,7 @@ files:
|
|
|
390
392
|
- lib/files.com/models/history.rb
|
|
391
393
|
- lib/files.com/models/history_export.rb
|
|
392
394
|
- lib/files.com/models/history_export_result.rb
|
|
395
|
+
- lib/files.com/models/holiday_calendar.rb
|
|
393
396
|
- lib/files.com/models/holiday_region.rb
|
|
394
397
|
- lib/files.com/models/image.rb
|
|
395
398
|
- lib/files.com/models/inbound_s3_log.rb
|
|
@@ -456,6 +459,7 @@ files:
|
|
|
456
459
|
- lib/files.com/models/usage_daily_snapshot.rb
|
|
457
460
|
- lib/files.com/models/usage_snapshot.rb
|
|
458
461
|
- lib/files.com/models/user.rb
|
|
462
|
+
- lib/files.com/models/user_additional_email_recipient.rb
|
|
459
463
|
- lib/files.com/models/user_cipher_use.rb
|
|
460
464
|
- lib/files.com/models/user_lifecycle_rule.rb
|
|
461
465
|
- lib/files.com/models/user_request.rb
|