files.com 1.1.348 → 1.1.349
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 +6 -6
- data/lib/files.com/models/child_site_management_policy.rb +7 -8
- 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: b18137afba053ef93fb6c022419304206066d1b4d96ca4fb41d089006f1e79d7
|
|
4
|
+
data.tar.gz: b78a2d26a30ab170050587a45501004c86092389cc5e99b6cc5884f1c3475e07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ad881c8d46c1a9275e646c7185e5a7cb59ab6d53a5e95d41c84f4733f44610a00fa7a5339e3b444ce8d8feda56c9aedf3557bfa2679faec116a3987223a9a12
|
|
7
|
+
data.tar.gz: ec4085a8b49efd24a489da3a535a84702b8b128b04bbce3c7e47a85e2845b4497a79c8bbfcee11aab07c8819050a37fc51aaf66250f5227d878bcb680e466648
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.349
|
|
@@ -66,7 +66,7 @@ Files::ChildSiteManagementPolicy.find(id)
|
|
|
66
66
|
|
|
67
67
|
```
|
|
68
68
|
Files::ChildSiteManagementPolicy.create(
|
|
69
|
-
value:
|
|
69
|
+
value: {"color2_left":"#000000"},
|
|
70
70
|
skip_child_site_ids: [1,2],
|
|
71
71
|
policy_type: "settings",
|
|
72
72
|
name: "example",
|
|
@@ -76,7 +76,7 @@ Files::ChildSiteManagementPolicy.create(
|
|
|
76
76
|
|
|
77
77
|
### Parameters
|
|
78
78
|
|
|
79
|
-
* `value` (
|
|
79
|
+
* `value` (object): Policy configuration data. Attributes differ by policy type. For more information, refer to the Value Hash section of the developer documentation.
|
|
80
80
|
* `skip_child_site_ids` (array(int64)): IDs of child sites that this policy has been exempted from. If `skip_child_site_ids` is empty, the policy will be applied to all child sites. To apply a policy to a child site that has been exempted, remove it from `skip_child_site_ids` or set it to an empty array (`[]`).
|
|
81
81
|
* `policy_type` (string): Required - Type of policy. Valid values: `settings`.
|
|
82
82
|
* `name` (string): Name for this policy.
|
|
@@ -89,7 +89,7 @@ Files::ChildSiteManagementPolicy.create(
|
|
|
89
89
|
|
|
90
90
|
```
|
|
91
91
|
Files::ChildSiteManagementPolicy.update(id,
|
|
92
|
-
value:
|
|
92
|
+
value: {"color2_left":"#000000"},
|
|
93
93
|
skip_child_site_ids: [1,2],
|
|
94
94
|
policy_type: "settings",
|
|
95
95
|
name: "example",
|
|
@@ -100,7 +100,7 @@ Files::ChildSiteManagementPolicy.update(id,
|
|
|
100
100
|
### Parameters
|
|
101
101
|
|
|
102
102
|
* `id` (int64): Required - Child Site Management Policy ID.
|
|
103
|
-
* `value` (
|
|
103
|
+
* `value` (object): Policy configuration data. Attributes differ by policy type. For more information, refer to the Value Hash section of the developer documentation.
|
|
104
104
|
* `skip_child_site_ids` (array(int64)): IDs of child sites that this policy has been exempted from. If `skip_child_site_ids` is empty, the policy will be applied to all child sites. To apply a policy to a child site that has been exempted, remove it from `skip_child_site_ids` or set it to an empty array (`[]`).
|
|
105
105
|
* `policy_type` (string): Type of policy. Valid values: `settings`.
|
|
106
106
|
* `name` (string): Name for this policy.
|
|
@@ -128,7 +128,7 @@ Files::ChildSiteManagementPolicy.delete(id)
|
|
|
128
128
|
child_site_management_policy = Files::ChildSiteManagementPolicy.find(id)
|
|
129
129
|
|
|
130
130
|
child_site_management_policy.update(
|
|
131
|
-
value:
|
|
131
|
+
value: {"color2_left":"#000000"},
|
|
132
132
|
skip_child_site_ids: [1,2],
|
|
133
133
|
policy_type: "settings",
|
|
134
134
|
name: "example",
|
|
@@ -139,7 +139,7 @@ child_site_management_policy.update(
|
|
|
139
139
|
### Parameters
|
|
140
140
|
|
|
141
141
|
* `id` (int64): Required - Child Site Management Policy ID.
|
|
142
|
-
* `value` (
|
|
142
|
+
* `value` (object): Policy configuration data. Attributes differ by policy type. For more information, refer to the Value Hash section of the developer documentation.
|
|
143
143
|
* `skip_child_site_ids` (array(int64)): IDs of child sites that this policy has been exempted from. If `skip_child_site_ids` is empty, the policy will be applied to all child sites. To apply a policy to a child site that has been exempted, remove it from `skip_child_site_ids` or set it to an empty array (`[]`).
|
|
144
144
|
* `policy_type` (string): Type of policy. Valid values: `settings`.
|
|
145
145
|
* `name` (string): Name for this policy.
|
|
@@ -83,7 +83,7 @@ module Files
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
# Parameters:
|
|
86
|
-
# value -
|
|
86
|
+
# value - object - Policy configuration data. Attributes differ by policy type. For more information, refer to the Value Hash section of the developer documentation.
|
|
87
87
|
# skip_child_site_ids - array(int64) - IDs of child sites that this policy has been exempted from. If `skip_child_site_ids` is empty, the policy will be applied to all child sites. To apply a policy to a child site that has been exempted, remove it from `skip_child_site_ids` or set it to an empty array (`[]`).
|
|
88
88
|
# policy_type - string - Type of policy. Valid values: `settings`.
|
|
89
89
|
# name - string - Name for this policy.
|
|
@@ -93,7 +93,6 @@ module Files
|
|
|
93
93
|
params[:id] = @attributes[:id]
|
|
94
94
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
95
95
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
96
|
-
raise InvalidParameterError.new("Bad parameter: value must be an String") if params[:value] and !params[:value].is_a?(String)
|
|
97
96
|
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)
|
|
98
97
|
raise InvalidParameterError.new("Bad parameter: policy_type must be an String") if params[:policy_type] and !params[:policy_type].is_a?(String)
|
|
99
98
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -162,13 +161,13 @@ module Files
|
|
|
162
161
|
end
|
|
163
162
|
|
|
164
163
|
# Parameters:
|
|
165
|
-
# value -
|
|
164
|
+
# value - object - Policy configuration data. Attributes differ by policy type. For more information, refer to the Value Hash section of the developer documentation.
|
|
166
165
|
# skip_child_site_ids - array(int64) - IDs of child sites that this policy has been exempted from. If `skip_child_site_ids` is empty, the policy will be applied to all child sites. To apply a policy to a child site that has been exempted, remove it from `skip_child_site_ids` or set it to an empty array (`[]`).
|
|
167
166
|
# policy_type (required) - string - Type of policy. Valid values: `settings`.
|
|
168
167
|
# name - string - Name for this policy.
|
|
169
168
|
# description - string - Description for this policy.
|
|
170
169
|
def self.create(params = {}, options = {})
|
|
171
|
-
raise InvalidParameterError.new("Bad parameter: value must be an
|
|
170
|
+
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
|
|
172
171
|
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)
|
|
173
172
|
raise InvalidParameterError.new("Bad parameter: policy_type must be an String") if params[:policy_type] and !params[:policy_type].is_a?(String)
|
|
174
173
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -180,7 +179,7 @@ module Files
|
|
|
180
179
|
end
|
|
181
180
|
|
|
182
181
|
# Parameters:
|
|
183
|
-
# value -
|
|
182
|
+
# value - object - Policy configuration data. Attributes differ by policy type. For more information, refer to the Value Hash section of the developer documentation.
|
|
184
183
|
# skip_child_site_ids - array(int64) - IDs of child sites that this policy has been exempted from. If `skip_child_site_ids` is empty, the policy will be applied to all child sites. To apply a policy to a child site that has been exempted, remove it from `skip_child_site_ids` or set it to an empty array (`[]`).
|
|
185
184
|
# policy_type - string - Type of policy. Valid values: `settings`.
|
|
186
185
|
# name - string - Name for this policy.
|
|
@@ -188,12 +187,12 @@ module Files
|
|
|
188
187
|
def self.update(id, params = {}, options = {})
|
|
189
188
|
params ||= {}
|
|
190
189
|
params[:id] = id
|
|
191
|
-
raise InvalidParameterError.new("Bad parameter: id must be
|
|
192
|
-
raise InvalidParameterError.new("Bad parameter: value must be an
|
|
190
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
191
|
+
raise InvalidParameterError.new("Bad parameter: value must be an Hash") if params[:value] and !params[:value].is_a?(Hash)
|
|
193
192
|
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)
|
|
194
193
|
raise InvalidParameterError.new("Bad parameter: policy_type must be an String") if params[:policy_type] and !params[:policy_type].is_a?(String)
|
|
195
194
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
196
|
-
raise InvalidParameterError.new("Bad parameter: description must be
|
|
195
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
197
196
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
198
197
|
|
|
199
198
|
response, options = Api.send_request("/child_site_management_policies/#{params[:id]}", :patch, params, options)
|
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.349
|
|
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-11-
|
|
11
|
+
date: 2025-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|