files.com 1.1.644 → 1.1.646
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/event_channel.md +10 -2
- data/docs/partner_site.md +11 -33
- data/docs/partner_site_request.md +14 -39
- data/docs/remote_server.md +16 -0
- data/lib/files.com/models/event_channel.rb +17 -2
- data/lib/files.com/models/partner_site.rb +20 -58
- data/lib/files.com/models/partner_site_request.rb +24 -53
- data/lib/files.com/models/remote_server.rb +30 -0
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d4797569423f295ab39fa2f020bc86c49c0a1b9cb3bf0f0ef43b6f2ee1c337b
|
|
4
|
+
data.tar.gz: 02ca2e8807decd908d7c067f1fbc3838dc6f801a9e1c73e1e22c777cd2a12e07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53e23b88cbb64c52f2cf0805f35989a64da56c3162de9bb2d59fcc1726f2ae3833312c904fece71a5d9c6cc86ff978c5c4789013d596932dc181bbfc85ea64d5
|
|
7
|
+
data.tar.gz: 603af94805b446075517e6d8d00e9d52bc60917df5005d54c568963266b6c4e927f15e852ae06ff71db173cc4168a1a03ec1642c244e58803aa9538c4d3f8757
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.646
|
data/docs/event_channel.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
8
|
"name": "example",
|
|
9
|
+
"workspace_id": 1,
|
|
9
10
|
"description": "example",
|
|
10
11
|
"enabled": true,
|
|
11
12
|
"default_channel": true,
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
|
|
17
18
|
* `id` (int64): Event Channel ID
|
|
18
19
|
* `name` (string): Event Channel name.
|
|
20
|
+
* `workspace_id` (int64): Workspace ID. 0 means the default workspace.
|
|
19
21
|
* `description` (string): Event Channel description.
|
|
20
22
|
* `enabled` (boolean): Whether this Event Channel can dispatch events.
|
|
21
23
|
* `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
|
|
@@ -35,8 +37,8 @@ Files::EventChannel.list
|
|
|
35
37
|
|
|
36
38
|
* `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.
|
|
37
39
|
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
38
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled` or `
|
|
39
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled` and `default_channel`.
|
|
40
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`, `default_channel` or `workspace_id`.
|
|
41
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `default_channel` or `workspace_id`. Valid field combinations are `[ workspace_id, enabled ]` and `[ workspace_id, default_channel ]`.
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
---
|
|
@@ -59,6 +61,7 @@ Files::EventChannel.find(id)
|
|
|
59
61
|
```
|
|
60
62
|
Files::EventChannel.create(
|
|
61
63
|
name: "example",
|
|
64
|
+
workspace_id: 1,
|
|
62
65
|
description: "example",
|
|
63
66
|
enabled: true,
|
|
64
67
|
default_channel: true
|
|
@@ -68,6 +71,7 @@ Files::EventChannel.create(
|
|
|
68
71
|
### Parameters
|
|
69
72
|
|
|
70
73
|
* `name` (string): Required - Event Channel name.
|
|
74
|
+
* `workspace_id` (int64): Workspace ID. 0 means the default workspace.
|
|
71
75
|
* `description` (string): Event Channel description.
|
|
72
76
|
* `enabled` (boolean): Whether this Event Channel can dispatch events.
|
|
73
77
|
* `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
|
|
@@ -80,6 +84,7 @@ Files::EventChannel.create(
|
|
|
80
84
|
```
|
|
81
85
|
Files::EventChannel.update(id,
|
|
82
86
|
name: "example",
|
|
87
|
+
workspace_id: 1,
|
|
83
88
|
description: "example",
|
|
84
89
|
enabled: true,
|
|
85
90
|
default_channel: true
|
|
@@ -90,6 +95,7 @@ Files::EventChannel.update(id,
|
|
|
90
95
|
|
|
91
96
|
* `id` (int64): Required - Event Channel ID.
|
|
92
97
|
* `name` (string): Event Channel name.
|
|
98
|
+
* `workspace_id` (int64): Workspace ID. 0 means the default workspace.
|
|
93
99
|
* `description` (string): Event Channel description.
|
|
94
100
|
* `enabled` (boolean): Whether this Event Channel can dispatch events.
|
|
95
101
|
* `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
|
|
@@ -117,6 +123,7 @@ event_channel = Files::EventChannel.find(id)
|
|
|
117
123
|
|
|
118
124
|
event_channel.update(
|
|
119
125
|
name: "example",
|
|
126
|
+
workspace_id: 1,
|
|
120
127
|
description: "example",
|
|
121
128
|
enabled: true,
|
|
122
129
|
default_channel: true
|
|
@@ -127,6 +134,7 @@ event_channel.update(
|
|
|
127
134
|
|
|
128
135
|
* `id` (int64): Required - Event Channel ID.
|
|
129
136
|
* `name` (string): Event Channel name.
|
|
137
|
+
* `workspace_id` (int64): Workspace ID. 0 means the default workspace.
|
|
130
138
|
* `description` (string): Event Channel description.
|
|
131
139
|
* `enabled` (boolean): Whether this Event Channel can dispatch events.
|
|
132
140
|
* `default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
|
data/docs/partner_site.md
CHANGED
|
@@ -1,50 +1,28 @@
|
|
|
1
|
-
# PartnerSite
|
|
2
|
-
|
|
3
|
-
## Example PartnerSite Object
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
{
|
|
7
|
-
"host_partner_id": 1,
|
|
8
|
-
"host_partner_name": "Acme Corp",
|
|
9
|
-
"guest_partner_id": 2,
|
|
10
|
-
"guest_partner_name": "Example Corp",
|
|
11
|
-
"host_site_id": 1,
|
|
12
|
-
"host_site_name": "Acme Site",
|
|
13
|
-
"guest_site_id": 2,
|
|
14
|
-
"guest_site_name": "Example Site",
|
|
15
|
-
"workspace_id": 1
|
|
16
|
-
}
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
* `host_partner_id` (int64): Host Partner ID
|
|
20
|
-
* `host_partner_name` (string): Host Partner Name
|
|
21
|
-
* `guest_partner_id` (int64): Guest Partner ID
|
|
22
|
-
* `guest_partner_name` (string): Guest Partner Name
|
|
23
|
-
* `host_site_id` (int64): Host Site ID
|
|
24
|
-
* `host_site_name` (string): Host Site Name
|
|
25
|
-
* `guest_site_id` (int64): Guest Site ID
|
|
26
|
-
* `guest_site_name` (string): Guest Site Name
|
|
27
|
-
* `workspace_id` (int64): Workspace ID for the Host Partner
|
|
28
1
|
|
|
29
2
|
|
|
30
3
|
---
|
|
31
4
|
|
|
32
|
-
##
|
|
5
|
+
## Delete Partner Site
|
|
33
6
|
|
|
34
7
|
```
|
|
35
|
-
Files::PartnerSite.
|
|
8
|
+
Files::PartnerSite.delete(id)
|
|
36
9
|
```
|
|
37
10
|
|
|
11
|
+
### Parameters
|
|
12
|
+
|
|
13
|
+
* `id` (int64): Required - Partner Site ID.
|
|
14
|
+
|
|
38
15
|
|
|
39
16
|
---
|
|
40
17
|
|
|
41
|
-
##
|
|
18
|
+
## Delete Partner Site
|
|
42
19
|
|
|
43
20
|
```
|
|
44
|
-
Files::PartnerSite.
|
|
21
|
+
partner_site = Files::PartnerSite.new
|
|
22
|
+
|
|
23
|
+
partner_site.delete
|
|
45
24
|
```
|
|
46
25
|
|
|
47
26
|
### Parameters
|
|
48
27
|
|
|
49
|
-
* `
|
|
50
|
-
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
28
|
+
* `id` (int64): Required - Partner Site ID.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
8
|
"host_partner_id": 1,
|
|
9
|
-
"
|
|
9
|
+
"guest_site_url": "https://example.files.com",
|
|
10
10
|
"status": "pending",
|
|
11
11
|
"host_site_name": "Acme Site",
|
|
12
12
|
"pairing_key": "abc123xyz",
|
|
@@ -17,13 +17,12 @@
|
|
|
17
17
|
|
|
18
18
|
* `id` (int64): Partner Site Request ID
|
|
19
19
|
* `host_partner_id` (int64): Host Partner ID
|
|
20
|
-
* `
|
|
20
|
+
* `guest_site_url` (string): Guest Site URL
|
|
21
21
|
* `status` (string): Request status (pending, approved, rejected)
|
|
22
22
|
* `host_site_name` (string): Host Site Name
|
|
23
23
|
* `pairing_key` (string): Pairing key used to approve this request on the Guest Site
|
|
24
24
|
* `created_at` (date-time): Request creation date/time
|
|
25
25
|
* `updated_at` (date-time): Request last updated date/time
|
|
26
|
-
* `site_url` (string): Site URL to link to
|
|
27
26
|
|
|
28
27
|
|
|
29
28
|
---
|
|
@@ -38,6 +37,8 @@ Files::PartnerSiteRequest.list
|
|
|
38
37
|
|
|
39
38
|
* `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.
|
|
40
39
|
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
40
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `host_partner_id`.
|
|
41
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `host_partner_id`.
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
---
|
|
@@ -62,14 +63,14 @@ Files::PartnerSiteRequest.find_by_pairing_key(
|
|
|
62
63
|
```
|
|
63
64
|
Files::PartnerSiteRequest.create(
|
|
64
65
|
host_partner_id: 1,
|
|
65
|
-
|
|
66
|
+
guest_site_url: "guest_site_url"
|
|
66
67
|
)
|
|
67
68
|
```
|
|
68
69
|
|
|
69
70
|
### Parameters
|
|
70
71
|
|
|
71
72
|
* `host_partner_id` (int64): Required - Host Partner ID to link with
|
|
72
|
-
* `
|
|
73
|
+
* `guest_site_url` (string): Required - Guest Site URL to link to
|
|
73
74
|
|
|
74
75
|
|
|
75
76
|
---
|
|
@@ -77,12 +78,14 @@ Files::PartnerSiteRequest.create(
|
|
|
77
78
|
## Reject partner site request
|
|
78
79
|
|
|
79
80
|
```
|
|
80
|
-
Files::PartnerSiteRequest.reject(
|
|
81
|
+
Files::PartnerSiteRequest.reject(
|
|
82
|
+
pairing_key: "pairing_key"
|
|
83
|
+
)
|
|
81
84
|
```
|
|
82
85
|
|
|
83
86
|
### Parameters
|
|
84
87
|
|
|
85
|
-
* `
|
|
88
|
+
* `pairing_key` (string): Required - Pairing key for the partner site request
|
|
86
89
|
|
|
87
90
|
|
|
88
91
|
---
|
|
@@ -90,12 +93,14 @@ Files::PartnerSiteRequest.reject(id)
|
|
|
90
93
|
## Approve partner site request
|
|
91
94
|
|
|
92
95
|
```
|
|
93
|
-
Files::PartnerSiteRequest.approve(
|
|
96
|
+
Files::PartnerSiteRequest.approve(
|
|
97
|
+
pairing_key: "pairing_key"
|
|
98
|
+
)
|
|
94
99
|
```
|
|
95
100
|
|
|
96
101
|
### Parameters
|
|
97
102
|
|
|
98
|
-
* `
|
|
103
|
+
* `pairing_key` (string): Required - Pairing key for the partner site request
|
|
99
104
|
|
|
100
105
|
|
|
101
106
|
---
|
|
@@ -111,36 +116,6 @@ Files::PartnerSiteRequest.delete(id)
|
|
|
111
116
|
* `id` (int64): Required - Partner Site Request ID.
|
|
112
117
|
|
|
113
118
|
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## Reject partner site request
|
|
117
|
-
|
|
118
|
-
```
|
|
119
|
-
partner_site_request = Files::PartnerSiteRequest.list.first
|
|
120
|
-
|
|
121
|
-
partner_site_request.reject
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
### Parameters
|
|
125
|
-
|
|
126
|
-
* `id` (int64): Required - Partner Site Request ID.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## Approve partner site request
|
|
132
|
-
|
|
133
|
-
```
|
|
134
|
-
partner_site_request = Files::PartnerSiteRequest.list.first
|
|
135
|
-
|
|
136
|
-
partner_site_request.approve
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Parameters
|
|
140
|
-
|
|
141
|
-
* `id` (int64): Required - Partner Site Request ID.
|
|
142
|
-
|
|
143
|
-
|
|
144
119
|
---
|
|
145
120
|
|
|
146
121
|
## Delete Partner Site Request
|
data/docs/remote_server.md
CHANGED
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"ssl": "if_available",
|
|
33
33
|
"username": "user",
|
|
34
34
|
"google_cloud_storage_bucket": "my-bucket",
|
|
35
|
+
"google_cloud_storage_authentication_method": "json",
|
|
36
|
+
"google_cloud_storage_oauth_scope": "https://www.googleapis.com/auth/devstorage.read_only",
|
|
35
37
|
"google_cloud_storage_project_id": "my-project",
|
|
36
38
|
"google_cloud_storage_s3_compatible_access_key": "example",
|
|
37
39
|
"backblaze_b2_s3_endpoint": "s3.us-west-001.backblazeb2.com",
|
|
@@ -104,6 +106,8 @@
|
|
|
104
106
|
* `ssl` (string): Should we require SSL?
|
|
105
107
|
* `username` (string): Remote server username.
|
|
106
108
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
109
|
+
* `google_cloud_storage_authentication_method` (string): Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
110
|
+
* `google_cloud_storage_oauth_scope` (string): Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
107
111
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
108
112
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
109
113
|
* `backblaze_b2_s3_endpoint` (string): Backblaze B2 Cloud Storage: S3 Endpoint
|
|
@@ -240,7 +244,9 @@ Files::RemoteServer.create(
|
|
|
240
244
|
files_agent_root: "example",
|
|
241
245
|
files_agent_version: "example",
|
|
242
246
|
outbound_agent_id: 1,
|
|
247
|
+
google_cloud_storage_authentication_method: "json",
|
|
243
248
|
google_cloud_storage_bucket: "my-bucket",
|
|
249
|
+
google_cloud_storage_oauth_scope: "https://www.googleapis.com/auth/devstorage.read_only",
|
|
244
250
|
google_cloud_storage_project_id: "my-project",
|
|
245
251
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
246
252
|
hostname: "remote-server.com",
|
|
@@ -320,7 +326,9 @@ Files::RemoteServer.create(
|
|
|
320
326
|
* `files_agent_root` (string): Agent local root path
|
|
321
327
|
* `files_agent_version` (string): Files Agent version
|
|
322
328
|
* `outbound_agent_id` (int64): Route traffic to outbound on a files-agent
|
|
329
|
+
* `google_cloud_storage_authentication_method` (string): Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
323
330
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
331
|
+
* `google_cloud_storage_oauth_scope` (string): Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
324
332
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
325
333
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
326
334
|
* `hostname` (string): Hostname or IP address
|
|
@@ -434,7 +442,9 @@ Files::RemoteServer.update(id,
|
|
|
434
442
|
files_agent_root: "example",
|
|
435
443
|
files_agent_version: "example",
|
|
436
444
|
outbound_agent_id: 1,
|
|
445
|
+
google_cloud_storage_authentication_method: "json",
|
|
437
446
|
google_cloud_storage_bucket: "my-bucket",
|
|
447
|
+
google_cloud_storage_oauth_scope: "https://www.googleapis.com/auth/devstorage.read_only",
|
|
438
448
|
google_cloud_storage_project_id: "my-project",
|
|
439
449
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
440
450
|
hostname: "remote-server.com",
|
|
@@ -514,7 +524,9 @@ Files::RemoteServer.update(id,
|
|
|
514
524
|
* `files_agent_root` (string): Agent local root path
|
|
515
525
|
* `files_agent_version` (string): Files Agent version
|
|
516
526
|
* `outbound_agent_id` (int64): Route traffic to outbound on a files-agent
|
|
527
|
+
* `google_cloud_storage_authentication_method` (string): Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
517
528
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
529
|
+
* `google_cloud_storage_oauth_scope` (string): Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
518
530
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
519
531
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
520
532
|
* `hostname` (string): Hostname or IP address
|
|
@@ -646,7 +658,9 @@ remote_server.update(
|
|
|
646
658
|
files_agent_root: "example",
|
|
647
659
|
files_agent_version: "example",
|
|
648
660
|
outbound_agent_id: 1,
|
|
661
|
+
google_cloud_storage_authentication_method: "json",
|
|
649
662
|
google_cloud_storage_bucket: "my-bucket",
|
|
663
|
+
google_cloud_storage_oauth_scope: "https://www.googleapis.com/auth/devstorage.read_only",
|
|
650
664
|
google_cloud_storage_project_id: "my-project",
|
|
651
665
|
google_cloud_storage_s3_compatible_access_key: "example",
|
|
652
666
|
hostname: "remote-server.com",
|
|
@@ -726,7 +740,9 @@ remote_server.update(
|
|
|
726
740
|
* `files_agent_root` (string): Agent local root path
|
|
727
741
|
* `files_agent_version` (string): Files Agent version
|
|
728
742
|
* `outbound_agent_id` (int64): Route traffic to outbound on a files-agent
|
|
743
|
+
* `google_cloud_storage_authentication_method` (string): Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
729
744
|
* `google_cloud_storage_bucket` (string): Google Cloud Storage: Bucket Name
|
|
745
|
+
* `google_cloud_storage_oauth_scope` (string): Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
730
746
|
* `google_cloud_storage_project_id` (string): Google Cloud Storage: Project ID
|
|
731
747
|
* `google_cloud_storage_s3_compatible_access_key` (string): Google Cloud Storage: S3-compatible Access Key.
|
|
732
748
|
* `hostname` (string): Hostname or IP address
|
|
@@ -27,6 +27,15 @@ module Files
|
|
|
27
27
|
@attributes[:name] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
# int64 - Workspace ID. 0 means the 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
|
+
|
|
30
39
|
# string - Event Channel description.
|
|
31
40
|
def description
|
|
32
41
|
@attributes[:description]
|
|
@@ -66,6 +75,7 @@ module Files
|
|
|
66
75
|
|
|
67
76
|
# Parameters:
|
|
68
77
|
# name - string - Event Channel name.
|
|
78
|
+
# workspace_id - int64 - Workspace ID. 0 means the default workspace.
|
|
69
79
|
# description - string - Event Channel description.
|
|
70
80
|
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
71
81
|
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
@@ -75,6 +85,7 @@ module Files
|
|
|
75
85
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
76
86
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
77
87
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
88
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
78
89
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
79
90
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
80
91
|
|
|
@@ -110,8 +121,8 @@ module Files
|
|
|
110
121
|
# Parameters:
|
|
111
122
|
# 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.
|
|
112
123
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
113
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled` or `
|
|
114
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled` and `default_channel`.
|
|
124
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`, `default_channel` or `workspace_id`.
|
|
125
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `default_channel` or `workspace_id`. Valid field combinations are `[ workspace_id, enabled ]` and `[ workspace_id, default_channel ]`.
|
|
115
126
|
def self.list(params = {}, options = {})
|
|
116
127
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
117
128
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
@@ -145,11 +156,13 @@ module Files
|
|
|
145
156
|
|
|
146
157
|
# Parameters:
|
|
147
158
|
# name (required) - string - Event Channel name.
|
|
159
|
+
# workspace_id - int64 - Workspace ID. 0 means the default workspace.
|
|
148
160
|
# description - string - Event Channel description.
|
|
149
161
|
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
150
162
|
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
151
163
|
def self.create(params = {}, options = {})
|
|
152
164
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
165
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
153
166
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
154
167
|
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
155
168
|
|
|
@@ -159,6 +172,7 @@ module Files
|
|
|
159
172
|
|
|
160
173
|
# Parameters:
|
|
161
174
|
# name - string - Event Channel name.
|
|
175
|
+
# workspace_id - int64 - Workspace ID. 0 means the default workspace.
|
|
162
176
|
# description - string - Event Channel description.
|
|
163
177
|
# enabled - boolean - Whether this Event Channel can dispatch events.
|
|
164
178
|
# default_channel - boolean - Whether this Event Channel is the default destination for newly published events.
|
|
@@ -167,6 +181,7 @@ module Files
|
|
|
167
181
|
params[:id] = id
|
|
168
182
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
169
183
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
184
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
170
185
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
171
186
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
172
187
|
|
|
@@ -9,72 +9,34 @@ module Files
|
|
|
9
9
|
@options = options || {}
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@attributes[:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def host_partner_name
|
|
19
|
-
@attributes[:host_partner_name]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# int64 - Guest Partner ID
|
|
23
|
-
def guest_partner_id
|
|
24
|
-
@attributes[:guest_partner_id]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# string - Guest Partner Name
|
|
28
|
-
def guest_partner_name
|
|
29
|
-
@attributes[:guest_partner_name]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# int64 - Host Site ID
|
|
33
|
-
def host_site_id
|
|
34
|
-
@attributes[:host_site_id]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# string - Host Site Name
|
|
38
|
-
def host_site_name
|
|
39
|
-
@attributes[:host_site_name]
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# int64 - Guest Site ID
|
|
43
|
-
def guest_site_id
|
|
44
|
-
@attributes[:guest_site_id]
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# string - Guest Site Name
|
|
48
|
-
def guest_site_name
|
|
49
|
-
@attributes[:guest_site_name]
|
|
50
|
-
end
|
|
12
|
+
def delete(params = {})
|
|
13
|
+
params ||= {}
|
|
14
|
+
params[:id] = @attributes[:id]
|
|
15
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
16
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
17
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
51
18
|
|
|
52
|
-
|
|
53
|
-
def workspace_id
|
|
54
|
-
@attributes[:workspace_id]
|
|
19
|
+
Api.send_request("/partner_sites/#{@attributes[:id]}", :delete, params, @options)
|
|
55
20
|
end
|
|
56
21
|
|
|
57
|
-
def
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
PartnerSite.new(entity_data, options)
|
|
61
|
-
end
|
|
22
|
+
def destroy(params = {})
|
|
23
|
+
delete(params)
|
|
24
|
+
nil
|
|
62
25
|
end
|
|
63
26
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
raise
|
|
69
|
-
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
27
|
+
def self.delete(id, params = {}, options = {})
|
|
28
|
+
params ||= {}
|
|
29
|
+
params[:id] = id
|
|
30
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
31
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
70
32
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
end
|
|
33
|
+
Api.send_request("/partner_sites/#{params[:id]}", :delete, params, options)
|
|
34
|
+
nil
|
|
74
35
|
end
|
|
75
36
|
|
|
76
|
-
def self.
|
|
77
|
-
|
|
37
|
+
def self.destroy(id, params = {}, options = {})
|
|
38
|
+
delete(id, params, options)
|
|
39
|
+
nil
|
|
78
40
|
end
|
|
79
41
|
end
|
|
80
42
|
end
|
|
@@ -27,13 +27,13 @@ module Files
|
|
|
27
27
|
@attributes[:host_partner_id] = value
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
def
|
|
32
|
-
@attributes[:
|
|
30
|
+
# string - Guest Site URL
|
|
31
|
+
def guest_site_url
|
|
32
|
+
@attributes[:guest_site_url]
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
def
|
|
36
|
-
@attributes[:
|
|
35
|
+
def guest_site_url=(value)
|
|
36
|
+
@attributes[:guest_site_url] = value
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
# string - Request status (pending, approved, rejected)
|
|
@@ -73,37 +73,6 @@ module Files
|
|
|
73
73
|
@attributes[:updated_at]
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
# string - Site URL to link to
|
|
77
|
-
def site_url
|
|
78
|
-
@attributes[:site_url]
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
def site_url=(value)
|
|
82
|
-
@attributes[:site_url] = value
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# Reject partner site request
|
|
86
|
-
def reject(params = {})
|
|
87
|
-
params ||= {}
|
|
88
|
-
params[:id] = @attributes[:id]
|
|
89
|
-
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
90
|
-
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
91
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
92
|
-
|
|
93
|
-
Api.send_request("/partner_site_requests/#{@attributes[:id]}/reject", :post, params, @options)
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Approve partner site request
|
|
97
|
-
def approve(params = {})
|
|
98
|
-
params ||= {}
|
|
99
|
-
params[:id] = @attributes[:id]
|
|
100
|
-
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
101
|
-
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
102
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
103
|
-
|
|
104
|
-
Api.send_request("/partner_site_requests/#{@attributes[:id]}/approve", :post, params, @options)
|
|
105
|
-
end
|
|
106
|
-
|
|
107
76
|
def delete(params = {})
|
|
108
77
|
params ||= {}
|
|
109
78
|
params[:id] = @attributes[:id]
|
|
@@ -133,9 +102,13 @@ module Files
|
|
|
133
102
|
# Parameters:
|
|
134
103
|
# 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.
|
|
135
104
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
105
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `host_partner_id`.
|
|
106
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `host_partner_id`.
|
|
136
107
|
def self.list(params = {}, options = {})
|
|
137
108
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
138
109
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
110
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
111
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
139
112
|
|
|
140
113
|
List.new(PartnerSiteRequest, params) do
|
|
141
114
|
Api.send_request("/partner_site_requests", :get, params, options)
|
|
@@ -158,36 +131,34 @@ module Files
|
|
|
158
131
|
|
|
159
132
|
# Parameters:
|
|
160
133
|
# host_partner_id (required) - int64 - Host Partner ID to link with
|
|
161
|
-
#
|
|
134
|
+
# guest_site_url (required) - string - Guest Site URL to link to
|
|
162
135
|
def self.create(params = {}, options = {})
|
|
163
136
|
raise InvalidParameterError.new("Bad parameter: host_partner_id must be an Integer") if params[:host_partner_id] and !params[:host_partner_id].is_a?(Integer)
|
|
164
|
-
raise InvalidParameterError.new("Bad parameter:
|
|
137
|
+
raise InvalidParameterError.new("Bad parameter: guest_site_url must be an String") if params[:guest_site_url] and !params[:guest_site_url].is_a?(String)
|
|
165
138
|
raise MissingParameterError.new("Parameter missing: host_partner_id") unless params[:host_partner_id]
|
|
166
|
-
raise MissingParameterError.new("Parameter missing:
|
|
139
|
+
raise MissingParameterError.new("Parameter missing: guest_site_url") unless params[:guest_site_url]
|
|
167
140
|
|
|
168
141
|
response, options = Api.send_request("/partner_site_requests", :post, params, options)
|
|
169
142
|
PartnerSiteRequest.new(response.data, options)
|
|
170
143
|
end
|
|
171
144
|
|
|
172
|
-
#
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
params[:
|
|
176
|
-
raise
|
|
177
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
145
|
+
# Parameters:
|
|
146
|
+
# pairing_key (required) - string - Pairing key for the partner site request
|
|
147
|
+
def self.reject(params = {}, options = {})
|
|
148
|
+
raise InvalidParameterError.new("Bad parameter: pairing_key must be an String") if params[:pairing_key] and !params[:pairing_key].is_a?(String)
|
|
149
|
+
raise MissingParameterError.new("Parameter missing: pairing_key") unless params[:pairing_key]
|
|
178
150
|
|
|
179
|
-
Api.send_request("/partner_site_requests
|
|
151
|
+
Api.send_request("/partner_site_requests/reject", :post, params, options)
|
|
180
152
|
nil
|
|
181
153
|
end
|
|
182
154
|
|
|
183
|
-
#
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
params[:
|
|
187
|
-
raise
|
|
188
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
155
|
+
# Parameters:
|
|
156
|
+
# pairing_key (required) - string - Pairing key for the partner site request
|
|
157
|
+
def self.approve(params = {}, options = {})
|
|
158
|
+
raise InvalidParameterError.new("Bad parameter: pairing_key must be an String") if params[:pairing_key] and !params[:pairing_key].is_a?(String)
|
|
159
|
+
raise MissingParameterError.new("Parameter missing: pairing_key") unless params[:pairing_key]
|
|
189
160
|
|
|
190
|
-
Api.send_request("/partner_site_requests
|
|
161
|
+
Api.send_request("/partner_site_requests/approve", :post, params, options)
|
|
191
162
|
nil
|
|
192
163
|
end
|
|
193
164
|
|
|
@@ -261,6 +261,24 @@ module Files
|
|
|
261
261
|
@attributes[:google_cloud_storage_bucket] = value
|
|
262
262
|
end
|
|
263
263
|
|
|
264
|
+
# string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
265
|
+
def google_cloud_storage_authentication_method
|
|
266
|
+
@attributes[:google_cloud_storage_authentication_method]
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
def google_cloud_storage_authentication_method=(value)
|
|
270
|
+
@attributes[:google_cloud_storage_authentication_method] = value
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
274
|
+
def google_cloud_storage_oauth_scope
|
|
275
|
+
@attributes[:google_cloud_storage_oauth_scope]
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
def google_cloud_storage_oauth_scope=(value)
|
|
279
|
+
@attributes[:google_cloud_storage_oauth_scope] = value
|
|
280
|
+
end
|
|
281
|
+
|
|
264
282
|
# string - Google Cloud Storage: Project ID
|
|
265
283
|
def google_cloud_storage_project_id
|
|
266
284
|
@attributes[:google_cloud_storage_project_id]
|
|
@@ -891,7 +909,9 @@ module Files
|
|
|
891
909
|
# files_agent_root - string - Agent local root path
|
|
892
910
|
# files_agent_version - string - Files Agent version
|
|
893
911
|
# outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
912
|
+
# google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
894
913
|
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
914
|
+
# google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
895
915
|
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
896
916
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
897
917
|
# hostname - string - Hostname or IP address
|
|
@@ -965,7 +985,9 @@ module Files
|
|
|
965
985
|
raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String)
|
|
966
986
|
raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String)
|
|
967
987
|
raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer)
|
|
988
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String)
|
|
968
989
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String)
|
|
990
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String)
|
|
969
991
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String)
|
|
970
992
|
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)
|
|
971
993
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String)
|
|
@@ -1119,7 +1141,9 @@ module Files
|
|
|
1119
1141
|
# files_agent_root - string - Agent local root path
|
|
1120
1142
|
# files_agent_version - string - Files Agent version
|
|
1121
1143
|
# outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
1144
|
+
# google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
1122
1145
|
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1146
|
+
# google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
1123
1147
|
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1124
1148
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
1125
1149
|
# hostname - string - Hostname or IP address
|
|
@@ -1190,7 +1214,9 @@ module Files
|
|
|
1190
1214
|
raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String)
|
|
1191
1215
|
raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String)
|
|
1192
1216
|
raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer)
|
|
1217
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String)
|
|
1193
1218
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String)
|
|
1219
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String)
|
|
1194
1220
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String)
|
|
1195
1221
|
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)
|
|
1196
1222
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String)
|
|
@@ -1315,7 +1341,9 @@ module Files
|
|
|
1315
1341
|
# files_agent_root - string - Agent local root path
|
|
1316
1342
|
# files_agent_version - string - Files Agent version
|
|
1317
1343
|
# outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
1344
|
+
# google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
1318
1345
|
# google_cloud_storage_bucket - string - Google Cloud Storage: Bucket Name
|
|
1346
|
+
# google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
1319
1347
|
# google_cloud_storage_project_id - string - Google Cloud Storage: Project ID
|
|
1320
1348
|
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible Access Key.
|
|
1321
1349
|
# hostname - string - Hostname or IP address
|
|
@@ -1388,7 +1416,9 @@ module Files
|
|
|
1388
1416
|
raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String)
|
|
1389
1417
|
raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String)
|
|
1390
1418
|
raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer)
|
|
1419
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String)
|
|
1391
1420
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String)
|
|
1421
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String)
|
|
1392
1422
|
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String)
|
|
1393
1423
|
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)
|
|
1394
1424
|
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED
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.646
|
|
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-06-
|
|
11
|
+
date: 2026-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|