files.com 1.1.307 → 1.1.309
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/child_site_management_policy.md +138 -0
- data/docs/remote_server_configuration_file.md +1 -1
- data/docs/siem_http_destination.md +16 -16
- data/docs/site.md +5 -1
- data/lib/files.com/models/child_site_management_policy.rb +183 -0
- data/lib/files.com/models/remote_server_configuration_file.rb +1 -1
- data/lib/files.com/models/siem_http_destination.rb +16 -16
- data/lib/files.com/models/site.rb +5 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ba4caf21009c3188cf188a280d1f76adec2660ef522e47fb906d54d205ad8c
|
4
|
+
data.tar.gz: c4d36691238441dc50f125d296ca955217a3ef6824def876465f1b259c78f847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d8e630bcdbb2ff30f14f06d86176aa41863305c20d2011d151b86663fb98ffea8ceb07e935fd39a7d7abc0ec2b912fafc767337597cec18bc8ef0b97493063f
|
7
|
+
data.tar.gz: 5c22b138cac4106b3da4078ecb7d4eef19a933d2cbe61eb345ce49c7168687eb75ffbf9f89c2e9528f5114665051198e5929730663a347900a236d2ed14c7dd3
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.309
|
@@ -0,0 +1,138 @@
|
|
1
|
+
# ChildSiteManagementPolicy
|
2
|
+
|
3
|
+
## Example ChildSiteManagementPolicy Object
|
4
|
+
|
5
|
+
```
|
6
|
+
{
|
7
|
+
"id": 1,
|
8
|
+
"site_id": 1,
|
9
|
+
"site_setting_name": "color2_left",
|
10
|
+
"managed_value": "#FF0000",
|
11
|
+
"skip_child_site_ids": [
|
12
|
+
1,
|
13
|
+
5
|
14
|
+
]
|
15
|
+
}
|
16
|
+
```
|
17
|
+
|
18
|
+
* `id` (int64): ChildSiteManagementPolicy ID
|
19
|
+
* `site_id` (int64): ID of the Site managing the policy
|
20
|
+
* `site_setting_name` (string): The name of the setting that is managed by the policy
|
21
|
+
* `managed_value` (string): The value for the setting that will be enforced for all child sites that are not exempt
|
22
|
+
* `skip_child_site_ids` (array(int64)): The list of child site IDs that are exempt from this policy
|
23
|
+
|
24
|
+
|
25
|
+
---
|
26
|
+
|
27
|
+
## List Child Site Management Policies
|
28
|
+
|
29
|
+
```
|
30
|
+
Files::ChildSiteManagementPolicy.list
|
31
|
+
```
|
32
|
+
|
33
|
+
### Parameters
|
34
|
+
|
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: 10,000, 1,000 or less is recommended).
|
37
|
+
|
38
|
+
|
39
|
+
---
|
40
|
+
|
41
|
+
## Show Child Site Management Policy
|
42
|
+
|
43
|
+
```
|
44
|
+
Files::ChildSiteManagementPolicy.find(id)
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
* `id` (int64): Required - Child Site Management Policy ID.
|
50
|
+
|
51
|
+
|
52
|
+
---
|
53
|
+
|
54
|
+
## Create Child Site Management Policy
|
55
|
+
|
56
|
+
```
|
57
|
+
Files::ChildSiteManagementPolicy.create(
|
58
|
+
site_setting_name: "color2_left",
|
59
|
+
managed_value: "#FF0000",
|
60
|
+
skip_child_site_ids: [1,5]
|
61
|
+
)
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
* `site_setting_name` (string): Required - The name of the setting that is managed by the policy
|
67
|
+
* `managed_value` (string): Required - The value for the setting that will be enforced for all child sites that are not exempt
|
68
|
+
* `skip_child_site_ids` (array(int64)): The list of child site IDs that are exempt from this policy
|
69
|
+
|
70
|
+
|
71
|
+
---
|
72
|
+
|
73
|
+
## Update Child Site Management Policy
|
74
|
+
|
75
|
+
```
|
76
|
+
Files::ChildSiteManagementPolicy.update(id,
|
77
|
+
site_setting_name: "color2_left",
|
78
|
+
managed_value: "#FF0000",
|
79
|
+
skip_child_site_ids: [1,5]
|
80
|
+
)
|
81
|
+
```
|
82
|
+
|
83
|
+
### Parameters
|
84
|
+
|
85
|
+
* `id` (int64): Required - Child Site Management Policy ID.
|
86
|
+
* `site_setting_name` (string): Required - The name of the setting that is managed by the policy
|
87
|
+
* `managed_value` (string): Required - The value for the setting that will be enforced for all child sites that are not exempt
|
88
|
+
* `skip_child_site_ids` (array(int64)): The list of child site IDs that are exempt from this policy
|
89
|
+
|
90
|
+
|
91
|
+
---
|
92
|
+
|
93
|
+
## Delete Child Site Management Policy
|
94
|
+
|
95
|
+
```
|
96
|
+
Files::ChildSiteManagementPolicy.delete(id)
|
97
|
+
```
|
98
|
+
|
99
|
+
### Parameters
|
100
|
+
|
101
|
+
* `id` (int64): Required - Child Site Management Policy ID.
|
102
|
+
|
103
|
+
|
104
|
+
---
|
105
|
+
|
106
|
+
## Update Child Site Management Policy
|
107
|
+
|
108
|
+
```
|
109
|
+
child_site_management_policy = Files::ChildSiteManagementPolicy.find(id)
|
110
|
+
|
111
|
+
child_site_management_policy.update(
|
112
|
+
site_setting_name: "color2_left",
|
113
|
+
managed_value: "#FF0000",
|
114
|
+
skip_child_site_ids: [1,5]
|
115
|
+
)
|
116
|
+
```
|
117
|
+
|
118
|
+
### Parameters
|
119
|
+
|
120
|
+
* `id` (int64): Required - Child Site Management Policy ID.
|
121
|
+
* `site_setting_name` (string): Required - The name of the setting that is managed by the policy
|
122
|
+
* `managed_value` (string): Required - The value for the setting that will be enforced for all child sites that are not exempt
|
123
|
+
* `skip_child_site_ids` (array(int64)): The list of child site IDs that are exempt from this policy
|
124
|
+
|
125
|
+
|
126
|
+
---
|
127
|
+
|
128
|
+
## Delete Child Site Management Policy
|
129
|
+
|
130
|
+
```
|
131
|
+
child_site_management_policy = Files::ChildSiteManagementPolicy.find(id)
|
132
|
+
|
133
|
+
child_site_management_policy.delete
|
134
|
+
```
|
135
|
+
|
136
|
+
### Parameters
|
137
|
+
|
138
|
+
* `id` (int64): Required - Child Site Management Policy ID.
|
@@ -59,7 +59,7 @@ Examples:
|
|
59
59
|
* 10 requests/minute: '10-M'
|
60
60
|
* 1000 requests/hour: '1000-H'
|
61
61
|
* 2000 requests/day: '2000-D'
|
62
|
-
* `auto_update_policy` (string): Auto update policy ['manual_trigger', 'critical_only', 'always'] (default critical_only)
|
62
|
+
* `auto_update_policy` (string): Auto update policy ['manual_trigger', 'critical_only', 'always', 'never'] (default critical_only)
|
63
63
|
* `api_token` (string): Files Agent API Token
|
64
64
|
* `port` (int64): Incoming port for files agent connections
|
65
65
|
* `hostname` (string):
|
@@ -66,11 +66,11 @@
|
|
66
66
|
* `sending_active` (boolean): Whether this SIEM HTTP Destination is currently being sent to or not
|
67
67
|
* `generic_payload_type` (string): Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
68
68
|
* `splunk_token_masked` (string): Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
69
|
-
* `azure_dcr_immutable_id` (string): Applicable only for destination
|
69
|
+
* `azure_dcr_immutable_id` (string): Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
70
70
|
* `azure_stream_name` (string): Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
71
|
-
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination
|
72
|
-
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination
|
73
|
-
* `azure_oauth_client_credentials_client_secret_masked` (string): Applicable only for destination
|
71
|
+
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
72
|
+
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
73
|
+
* `azure_oauth_client_credentials_client_secret_masked` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client Secret.
|
74
74
|
* `qradar_username` (string): Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
75
75
|
* `qradar_password_masked` (string): Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
76
76
|
* `solar_winds_token_masked` (string): Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
|
@@ -180,10 +180,10 @@ Files::SiemHttpDestination.create(
|
|
180
180
|
* `sending_active` (boolean): Whether this SIEM HTTP Destination is currently being sent to or not
|
181
181
|
* `generic_payload_type` (string): Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
182
182
|
* `splunk_token` (string): Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
183
|
-
* `azure_dcr_immutable_id` (string): Applicable only for destination
|
183
|
+
* `azure_dcr_immutable_id` (string): Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
184
184
|
* `azure_stream_name` (string): Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
185
|
-
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination
|
186
|
-
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination
|
185
|
+
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
186
|
+
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
187
187
|
* `azure_oauth_client_credentials_client_secret` (string): Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
188
188
|
* `qradar_username` (string): Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
189
189
|
* `qradar_password` (string): Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
@@ -247,10 +247,10 @@ Files::SiemHttpDestination.send_test_entry(
|
|
247
247
|
* `sending_active` (boolean): Whether this SIEM HTTP Destination is currently being sent to or not
|
248
248
|
* `generic_payload_type` (string): Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
249
249
|
* `splunk_token` (string): Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
250
|
-
* `azure_dcr_immutable_id` (string): Applicable only for destination
|
250
|
+
* `azure_dcr_immutable_id` (string): Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
251
251
|
* `azure_stream_name` (string): Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
252
|
-
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination
|
253
|
-
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination
|
252
|
+
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
253
|
+
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
254
254
|
* `azure_oauth_client_credentials_client_secret` (string): Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
255
255
|
* `qradar_username` (string): Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
256
256
|
* `qradar_password` (string): Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
@@ -309,10 +309,10 @@ Files::SiemHttpDestination.update(id,
|
|
309
309
|
* `sending_active` (boolean): Whether this SIEM HTTP Destination is currently being sent to or not
|
310
310
|
* `generic_payload_type` (string): Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
311
311
|
* `splunk_token` (string): Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
312
|
-
* `azure_dcr_immutable_id` (string): Applicable only for destination
|
312
|
+
* `azure_dcr_immutable_id` (string): Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
313
313
|
* `azure_stream_name` (string): Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
314
|
-
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination
|
315
|
-
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination
|
314
|
+
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
315
|
+
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
316
316
|
* `azure_oauth_client_credentials_client_secret` (string): Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
317
317
|
* `qradar_username` (string): Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
318
318
|
* `qradar_password` (string): Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
@@ -388,10 +388,10 @@ siem_http_destination.update(
|
|
388
388
|
* `sending_active` (boolean): Whether this SIEM HTTP Destination is currently being sent to or not
|
389
389
|
* `generic_payload_type` (string): Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
390
390
|
* `splunk_token` (string): Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
391
|
-
* `azure_dcr_immutable_id` (string): Applicable only for destination
|
391
|
+
* `azure_dcr_immutable_id` (string): Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
392
392
|
* `azure_stream_name` (string): Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
393
|
-
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination
|
394
|
-
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination
|
393
|
+
* `azure_oauth_client_credentials_tenant_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
394
|
+
* `azure_oauth_client_credentials_client_id` (string): Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
395
395
|
* `azure_oauth_client_credentials_client_secret` (string): Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
396
396
|
* `qradar_username` (string): Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
397
397
|
* `qradar_password` (string): Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
data/docs/site.md
CHANGED
@@ -300,7 +300,10 @@
|
|
300
300
|
"welcome_email_enabled": true,
|
301
301
|
"welcome_screen": "user_controlled",
|
302
302
|
"windows_mode_ftp": true,
|
303
|
-
"group_admins_can_set_user_password": true
|
303
|
+
"group_admins_can_set_user_password": true,
|
304
|
+
"managed_site_settings": [
|
305
|
+
"example"
|
306
|
+
]
|
304
307
|
}
|
305
308
|
```
|
306
309
|
|
@@ -475,6 +478,7 @@
|
|
475
478
|
* `welcome_screen` (string): Does the welcome screen appear?
|
476
479
|
* `windows_mode_ftp` (boolean): Does FTP user Windows emulation mode?
|
477
480
|
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
481
|
+
* `managed_site_settings` (array(string)): List of site settings managed by the parent site
|
478
482
|
|
479
483
|
|
480
484
|
---
|
@@ -0,0 +1,183 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Files
|
4
|
+
class ChildSiteManagementPolicy
|
5
|
+
attr_reader :options, :attributes
|
6
|
+
|
7
|
+
def initialize(attributes = {}, options = {})
|
8
|
+
@attributes = attributes || {}
|
9
|
+
@options = options || {}
|
10
|
+
end
|
11
|
+
|
12
|
+
# int64 - ChildSiteManagementPolicy ID
|
13
|
+
def id
|
14
|
+
@attributes[:id]
|
15
|
+
end
|
16
|
+
|
17
|
+
def id=(value)
|
18
|
+
@attributes[:id] = value
|
19
|
+
end
|
20
|
+
|
21
|
+
# int64 - ID of the Site managing the policy
|
22
|
+
def site_id
|
23
|
+
@attributes[:site_id]
|
24
|
+
end
|
25
|
+
|
26
|
+
def site_id=(value)
|
27
|
+
@attributes[:site_id] = value
|
28
|
+
end
|
29
|
+
|
30
|
+
# string - The name of the setting that is managed by the policy
|
31
|
+
def site_setting_name
|
32
|
+
@attributes[:site_setting_name]
|
33
|
+
end
|
34
|
+
|
35
|
+
def site_setting_name=(value)
|
36
|
+
@attributes[:site_setting_name] = value
|
37
|
+
end
|
38
|
+
|
39
|
+
# string - The value for the setting that will be enforced for all child sites that are not exempt
|
40
|
+
def managed_value
|
41
|
+
@attributes[:managed_value]
|
42
|
+
end
|
43
|
+
|
44
|
+
def managed_value=(value)
|
45
|
+
@attributes[:managed_value] = value
|
46
|
+
end
|
47
|
+
|
48
|
+
# array(int64) - The list of child site IDs that are exempt from this policy
|
49
|
+
def skip_child_site_ids
|
50
|
+
@attributes[:skip_child_site_ids]
|
51
|
+
end
|
52
|
+
|
53
|
+
def skip_child_site_ids=(value)
|
54
|
+
@attributes[:skip_child_site_ids] = value
|
55
|
+
end
|
56
|
+
|
57
|
+
# Parameters:
|
58
|
+
# site_setting_name (required) - string - The name of the setting that is managed by the policy
|
59
|
+
# managed_value (required) - string - The value for the setting that will be enforced for all child sites that are not exempt
|
60
|
+
# skip_child_site_ids - array(int64) - The list of child site IDs that are exempt from this policy
|
61
|
+
def update(params = {})
|
62
|
+
params ||= {}
|
63
|
+
params[:id] = @attributes[:id]
|
64
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
65
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
66
|
+
raise InvalidParameterError.new("Bad parameter: site_setting_name must be an String") if params[:site_setting_name] and !params[:site_setting_name].is_a?(String)
|
67
|
+
raise InvalidParameterError.new("Bad parameter: managed_value must be an String") if params[:managed_value] and !params[:managed_value].is_a?(String)
|
68
|
+
raise InvalidParameterError.new("Bad parameter: skip_child_site_ids must be an Array") if params[:skip_child_site_ids] and !params[:skip_child_site_ids].is_a?(Array)
|
69
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
70
|
+
raise MissingParameterError.new("Parameter missing: site_setting_name") unless params[:site_setting_name]
|
71
|
+
raise MissingParameterError.new("Parameter missing: managed_value") unless params[:managed_value]
|
72
|
+
|
73
|
+
Api.send_request("/child_site_management_policies/#{@attributes[:id]}", :patch, params, @options)
|
74
|
+
end
|
75
|
+
|
76
|
+
def delete(params = {})
|
77
|
+
params ||= {}
|
78
|
+
params[:id] = @attributes[:id]
|
79
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
80
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
81
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
82
|
+
|
83
|
+
Api.send_request("/child_site_management_policies/#{@attributes[:id]}", :delete, params, @options)
|
84
|
+
end
|
85
|
+
|
86
|
+
def destroy(params = {})
|
87
|
+
delete(params)
|
88
|
+
nil
|
89
|
+
end
|
90
|
+
|
91
|
+
def save
|
92
|
+
if @attributes[:id]
|
93
|
+
new_obj = update(@attributes)
|
94
|
+
else
|
95
|
+
new_obj = ChildSiteManagementPolicy.create(@attributes, @options)
|
96
|
+
end
|
97
|
+
|
98
|
+
@attributes = new_obj.attributes
|
99
|
+
true
|
100
|
+
end
|
101
|
+
|
102
|
+
# Parameters:
|
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.
|
104
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
105
|
+
def self.list(params = {}, options = {})
|
106
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
107
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
108
|
+
|
109
|
+
List.new(ChildSiteManagementPolicy, params) do
|
110
|
+
Api.send_request("/child_site_management_policies", :get, params, options)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
def self.all(params = {}, options = {})
|
115
|
+
list(params, options)
|
116
|
+
end
|
117
|
+
|
118
|
+
# Parameters:
|
119
|
+
# id (required) - int64 - Child Site Management Policy ID.
|
120
|
+
def self.find(id, params = {}, options = {})
|
121
|
+
params ||= {}
|
122
|
+
params[:id] = id
|
123
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
124
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
125
|
+
|
126
|
+
response, options = Api.send_request("/child_site_management_policies/#{params[:id]}", :get, params, options)
|
127
|
+
ChildSiteManagementPolicy.new(response.data, options)
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.get(id, params = {}, options = {})
|
131
|
+
find(id, params, options)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Parameters:
|
135
|
+
# site_setting_name (required) - string - The name of the setting that is managed by the policy
|
136
|
+
# managed_value (required) - string - The value for the setting that will be enforced for all child sites that are not exempt
|
137
|
+
# skip_child_site_ids - array(int64) - The list of child site IDs that are exempt from this policy
|
138
|
+
def self.create(params = {}, options = {})
|
139
|
+
raise InvalidParameterError.new("Bad parameter: site_setting_name must be an String") if params[:site_setting_name] and !params[:site_setting_name].is_a?(String)
|
140
|
+
raise InvalidParameterError.new("Bad parameter: managed_value must be an String") if params[:managed_value] and !params[:managed_value].is_a?(String)
|
141
|
+
raise InvalidParameterError.new("Bad parameter: skip_child_site_ids must be an Array") if params[:skip_child_site_ids] and !params[:skip_child_site_ids].is_a?(Array)
|
142
|
+
raise MissingParameterError.new("Parameter missing: site_setting_name") unless params[:site_setting_name]
|
143
|
+
raise MissingParameterError.new("Parameter missing: managed_value") unless params[:managed_value]
|
144
|
+
|
145
|
+
response, options = Api.send_request("/child_site_management_policies", :post, params, options)
|
146
|
+
ChildSiteManagementPolicy.new(response.data, options)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Parameters:
|
150
|
+
# site_setting_name (required) - string - The name of the setting that is managed by the policy
|
151
|
+
# managed_value (required) - string - The value for the setting that will be enforced for all child sites that are not exempt
|
152
|
+
# skip_child_site_ids - array(int64) - The list of child site IDs that are exempt from this policy
|
153
|
+
def self.update(id, params = {}, options = {})
|
154
|
+
params ||= {}
|
155
|
+
params[:id] = id
|
156
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
157
|
+
raise InvalidParameterError.new("Bad parameter: site_setting_name must be an String") if params[:site_setting_name] and !params[:site_setting_name].is_a?(String)
|
158
|
+
raise InvalidParameterError.new("Bad parameter: managed_value must be an String") if params[:managed_value] and !params[:managed_value].is_a?(String)
|
159
|
+
raise InvalidParameterError.new("Bad parameter: skip_child_site_ids must be an Array") if params[:skip_child_site_ids] and !params[:skip_child_site_ids].is_a?(Array)
|
160
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
161
|
+
raise MissingParameterError.new("Parameter missing: site_setting_name") unless params[:site_setting_name]
|
162
|
+
raise MissingParameterError.new("Parameter missing: managed_value") unless params[:managed_value]
|
163
|
+
|
164
|
+
response, options = Api.send_request("/child_site_management_policies/#{params[:id]}", :patch, params, options)
|
165
|
+
ChildSiteManagementPolicy.new(response.data, options)
|
166
|
+
end
|
167
|
+
|
168
|
+
def self.delete(id, params = {}, options = {})
|
169
|
+
params ||= {}
|
170
|
+
params[:id] = id
|
171
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
172
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
173
|
+
|
174
|
+
Api.send_request("/child_site_management_policies/#{params[:id]}", :delete, params, options)
|
175
|
+
nil
|
176
|
+
end
|
177
|
+
|
178
|
+
def self.destroy(id, params = {}, options = {})
|
179
|
+
delete(id, params, options)
|
180
|
+
nil
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
@@ -104,7 +104,7 @@ module Files
|
|
104
104
|
@attributes[:transfer_rate_limit]
|
105
105
|
end
|
106
106
|
|
107
|
-
# string - Auto update policy ['manual_trigger', 'critical_only', 'always'] (default critical_only)
|
107
|
+
# string - Auto update policy ['manual_trigger', 'critical_only', 'always', 'never'] (default critical_only)
|
108
108
|
def auto_update_policy
|
109
109
|
@attributes[:auto_update_policy]
|
110
110
|
end
|
@@ -81,7 +81,7 @@ module Files
|
|
81
81
|
@attributes[:splunk_token_masked] = value
|
82
82
|
end
|
83
83
|
|
84
|
-
# string - Applicable only for destination
|
84
|
+
# string - Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
85
85
|
def azure_dcr_immutable_id
|
86
86
|
@attributes[:azure_dcr_immutable_id]
|
87
87
|
end
|
@@ -99,7 +99,7 @@ module Files
|
|
99
99
|
@attributes[:azure_stream_name] = value
|
100
100
|
end
|
101
101
|
|
102
|
-
# string - Applicable only for destination
|
102
|
+
# string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
103
103
|
def azure_oauth_client_credentials_tenant_id
|
104
104
|
@attributes[:azure_oauth_client_credentials_tenant_id]
|
105
105
|
end
|
@@ -108,7 +108,7 @@ module Files
|
|
108
108
|
@attributes[:azure_oauth_client_credentials_tenant_id] = value
|
109
109
|
end
|
110
110
|
|
111
|
-
# string - Applicable only for destination
|
111
|
+
# string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
112
112
|
def azure_oauth_client_credentials_client_id
|
113
113
|
@attributes[:azure_oauth_client_credentials_client_id]
|
114
114
|
end
|
@@ -117,7 +117,7 @@ module Files
|
|
117
117
|
@attributes[:azure_oauth_client_credentials_client_id] = value
|
118
118
|
end
|
119
119
|
|
120
|
-
# string - Applicable only for destination
|
120
|
+
# string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client Secret.
|
121
121
|
def azure_oauth_client_credentials_client_secret_masked
|
122
122
|
@attributes[:azure_oauth_client_credentials_client_secret_masked]
|
123
123
|
end
|
@@ -510,10 +510,10 @@ module Files
|
|
510
510
|
# sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
|
511
511
|
# generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
512
512
|
# splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
513
|
-
# azure_dcr_immutable_id - string - Applicable only for destination
|
513
|
+
# azure_dcr_immutable_id - string - Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
514
514
|
# azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
515
|
-
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination
|
516
|
-
# azure_oauth_client_credentials_client_id - string - Applicable only for destination
|
515
|
+
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
516
|
+
# azure_oauth_client_credentials_client_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
517
517
|
# azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
518
518
|
# qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
519
519
|
# qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
@@ -622,10 +622,10 @@ module Files
|
|
622
622
|
# sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
|
623
623
|
# generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
624
624
|
# splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
625
|
-
# azure_dcr_immutable_id - string - Applicable only for destination
|
625
|
+
# azure_dcr_immutable_id - string - Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
626
626
|
# azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
627
|
-
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination
|
628
|
-
# azure_oauth_client_credentials_client_id - string - Applicable only for destination
|
627
|
+
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
628
|
+
# azure_oauth_client_credentials_client_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
629
629
|
# azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
630
630
|
# qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
631
631
|
# qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
@@ -678,10 +678,10 @@ module Files
|
|
678
678
|
# sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
|
679
679
|
# generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
680
680
|
# splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
681
|
-
# azure_dcr_immutable_id - string - Applicable only for destination
|
681
|
+
# azure_dcr_immutable_id - string - Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
682
682
|
# azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
683
|
-
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination
|
684
|
-
# azure_oauth_client_credentials_client_id - string - Applicable only for destination
|
683
|
+
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
684
|
+
# azure_oauth_client_credentials_client_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
685
685
|
# azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
686
686
|
# qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
687
687
|
# qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
@@ -728,10 +728,10 @@ module Files
|
|
728
728
|
# sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
|
729
729
|
# generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
|
730
730
|
# splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
|
731
|
-
# azure_dcr_immutable_id - string - Applicable only for destination
|
731
|
+
# azure_dcr_immutable_id - string - Applicable only for destination types: azure, azure_legacy. Immutable ID of the Data Collection Rule.
|
732
732
|
# azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
|
733
|
-
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination
|
734
|
-
# azure_oauth_client_credentials_client_id - string - Applicable only for destination
|
733
|
+
# azure_oauth_client_credentials_tenant_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Tenant ID.
|
734
|
+
# azure_oauth_client_credentials_client_id - string - Applicable only for destination types: azure, azure_legacy. Client Credentials OAuth Client ID.
|
735
735
|
# azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
|
736
736
|
# qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
|
737
737
|
# qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
|
@@ -864,6 +864,11 @@ module Files
|
|
864
864
|
@attributes[:group_admins_can_set_user_password]
|
865
865
|
end
|
866
866
|
|
867
|
+
# array(string) - List of site settings managed by the parent site
|
868
|
+
def managed_site_settings
|
869
|
+
@attributes[:managed_site_settings]
|
870
|
+
end
|
871
|
+
|
867
872
|
def self.get(params = {}, options = {})
|
868
873
|
response, options = Api.send_request("/site", :get, params, options)
|
869
874
|
Site.new(response.data, options)
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
@@ -56,6 +56,7 @@ require "files.com/models/bundle_notification"
|
|
56
56
|
require "files.com/models/bundle_path"
|
57
57
|
require "files.com/models/bundle_recipient"
|
58
58
|
require "files.com/models/bundle_registration"
|
59
|
+
require "files.com/models/child_site_management_policy"
|
59
60
|
require "files.com/models/clickwrap"
|
60
61
|
require "files.com/models/dns_record"
|
61
62
|
require "files.com/models/email_incoming_message"
|
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.309
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -138,6 +138,7 @@ files:
|
|
138
138
|
- docs/bundle_path.md
|
139
139
|
- docs/bundle_recipient.md
|
140
140
|
- docs/bundle_registration.md
|
141
|
+
- docs/child_site_management_policy.md
|
141
142
|
- docs/clickwrap.md
|
142
143
|
- docs/dns_record.md
|
143
144
|
- docs/email_incoming_message.md
|
@@ -248,6 +249,7 @@ files:
|
|
248
249
|
- lib/files.com/models/bundle_path.rb
|
249
250
|
- lib/files.com/models/bundle_recipient.rb
|
250
251
|
- lib/files.com/models/bundle_registration.rb
|
252
|
+
- lib/files.com/models/child_site_management_policy.rb
|
251
253
|
- lib/files.com/models/clickwrap.rb
|
252
254
|
- lib/files.com/models/dir.rb
|
253
255
|
- lib/files.com/models/dns_record.rb
|