files.com 1.1.348 → 1.1.350
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/bundle.md +1 -1
- data/docs/child_site_management_policy.md +6 -6
- data/lib/files.com/models/bundle.rb +1 -1
- 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: 63b4a766669e5a60e1d1acf67f033380160ae4be74fc247244e5dd8ab69fde84
|
|
4
|
+
data.tar.gz: f56c8044377c4f07ea0f64bce8461c3375f1355dd3fe7066976915aad5ea7583
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f027bddcf46034f246e1799e7866acc4fe086ac1b031d01ac3d50a4304713ac6d1fa4c11b23aaab1a305f41584eb56b0d692d0b9504e50f269ec324215643c8
|
|
7
|
+
data.tar.gz: 63c93cddbc4c804b007cc3824c9d3a6bb9297106205abfe408d30a154274ab7b3a48086fdcf1aca7af7ae697023c82594ea2a756309e5eadfb49291ccf438048
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.350
|
data/docs/bundle.md
CHANGED
|
@@ -152,7 +152,7 @@ Files::Bundle.list(
|
|
|
152
152
|
* `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.
|
|
153
153
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
154
154
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
155
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
155
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, created_at ]` and `[ user_id, expires_at ]`.
|
|
156
156
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
157
157
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
158
158
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -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.
|
|
@@ -519,7 +519,7 @@ module Files
|
|
|
519
519
|
# 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.
|
|
520
520
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
521
521
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
522
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
522
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, created_at ]` and `[ user_id, expires_at ]`.
|
|
523
523
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
524
524
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
525
525
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -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.350
|
|
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-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|