files.com 1.1.345 → 1.1.347
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/partner.md +15 -9
- data/lib/files.com/models/partner.rb +16 -6
- 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: 58b6c7ae91b3f26eb14463311d992d2f4f194cca83fcab39532fb2df58ae6407
|
|
4
|
+
data.tar.gz: 97f1f4d2ab6cef110a5dc2d8dcbfb460df0fafef5280d864d74d5fc87edcbf95
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 927c746983001106fc50f06bea9f84289b90e5a79ff592492d29589d68750f487778c1170f854ec6954c0b5d7751fc9476dd42b18f739ee2852bcd08b461d687
|
|
7
|
+
data.tar.gz: 35941838b417dd31117493e1f60add7e88c666b2c28496585d0400079cf3e827124ae66227299a5219a22ad68acad1000224fb91dbb0924f1d6d64dc101f4a93
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.347
|
data/docs/partner.md
CHANGED
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
"id": 1,
|
|
12
12
|
"name": "Acme Corp",
|
|
13
13
|
"notes": "This is a note about the partner.",
|
|
14
|
+
"partner_admin_ids": [
|
|
15
|
+
1,
|
|
16
|
+
2,
|
|
17
|
+
3
|
|
18
|
+
],
|
|
14
19
|
"root_folder": "/AcmeCorp",
|
|
15
20
|
"tags": "example",
|
|
16
21
|
"user_ids": [
|
|
@@ -28,6 +33,7 @@
|
|
|
28
33
|
* `id` (int64): The unique ID of the Partner.
|
|
29
34
|
* `name` (string): The name of the Partner.
|
|
30
35
|
* `notes` (string): Notes about this Partner.
|
|
36
|
+
* `partner_admin_ids` (array(int64)): Array of User IDs that are Partner Admins for this Partner.
|
|
31
37
|
* `root_folder` (string): The root folder path for this Partner.
|
|
32
38
|
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
33
39
|
* `user_ids` (array(int64)): Array of User IDs that belong to this Partner.
|
|
@@ -67,20 +73,19 @@ Files::Partner.find(id)
|
|
|
67
73
|
|
|
68
74
|
```
|
|
69
75
|
Files::Partner.create(
|
|
70
|
-
name: "Acme Corp",
|
|
71
76
|
allow_bypassing_2fa_policies: false,
|
|
72
77
|
allow_credential_changes: false,
|
|
73
78
|
allow_providing_gpg_keys: false,
|
|
74
79
|
allow_user_creation: false,
|
|
75
80
|
notes: "This is a note about the partner.",
|
|
76
81
|
root_folder: "/AcmeCorp",
|
|
77
|
-
tags: "example"
|
|
82
|
+
tags: "example",
|
|
83
|
+
name: "Acme Corp"
|
|
78
84
|
)
|
|
79
85
|
```
|
|
80
86
|
|
|
81
87
|
### Parameters
|
|
82
88
|
|
|
83
|
-
* `name` (string): The name of the Partner.
|
|
84
89
|
* `allow_bypassing_2fa_policies` (boolean): Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
|
85
90
|
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
86
91
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
|
@@ -88,6 +93,7 @@ Files::Partner.create(
|
|
|
88
93
|
* `notes` (string): Notes about this Partner.
|
|
89
94
|
* `root_folder` (string): The root folder path for this Partner.
|
|
90
95
|
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
96
|
+
* `name` (string): Required - The name of the Partner.
|
|
91
97
|
|
|
92
98
|
|
|
93
99
|
---
|
|
@@ -96,21 +102,20 @@ Files::Partner.create(
|
|
|
96
102
|
|
|
97
103
|
```
|
|
98
104
|
Files::Partner.update(id,
|
|
99
|
-
name: "Acme Corp",
|
|
100
105
|
allow_bypassing_2fa_policies: false,
|
|
101
106
|
allow_credential_changes: false,
|
|
102
107
|
allow_providing_gpg_keys: false,
|
|
103
108
|
allow_user_creation: false,
|
|
104
109
|
notes: "This is a note about the partner.",
|
|
105
110
|
root_folder: "/AcmeCorp",
|
|
106
|
-
tags: "example"
|
|
111
|
+
tags: "example",
|
|
112
|
+
name: "Acme Corp"
|
|
107
113
|
)
|
|
108
114
|
```
|
|
109
115
|
|
|
110
116
|
### Parameters
|
|
111
117
|
|
|
112
118
|
* `id` (int64): Required - Partner ID.
|
|
113
|
-
* `name` (string): The name of the Partner.
|
|
114
119
|
* `allow_bypassing_2fa_policies` (boolean): Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
|
115
120
|
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
116
121
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
|
@@ -118,6 +123,7 @@ Files::Partner.update(id,
|
|
|
118
123
|
* `notes` (string): Notes about this Partner.
|
|
119
124
|
* `root_folder` (string): The root folder path for this Partner.
|
|
120
125
|
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
126
|
+
* `name` (string): The name of the Partner.
|
|
121
127
|
|
|
122
128
|
|
|
123
129
|
---
|
|
@@ -141,21 +147,20 @@ Files::Partner.delete(id)
|
|
|
141
147
|
partner = Files::Partner.find(id)
|
|
142
148
|
|
|
143
149
|
partner.update(
|
|
144
|
-
name: "Acme Corp",
|
|
145
150
|
allow_bypassing_2fa_policies: false,
|
|
146
151
|
allow_credential_changes: false,
|
|
147
152
|
allow_providing_gpg_keys: false,
|
|
148
153
|
allow_user_creation: false,
|
|
149
154
|
notes: "This is a note about the partner.",
|
|
150
155
|
root_folder: "/AcmeCorp",
|
|
151
|
-
tags: "example"
|
|
156
|
+
tags: "example",
|
|
157
|
+
name: "Acme Corp"
|
|
152
158
|
)
|
|
153
159
|
```
|
|
154
160
|
|
|
155
161
|
### Parameters
|
|
156
162
|
|
|
157
163
|
* `id` (int64): Required - Partner ID.
|
|
158
|
-
* `name` (string): The name of the Partner.
|
|
159
164
|
* `allow_bypassing_2fa_policies` (boolean): Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
|
160
165
|
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
161
166
|
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
|
|
@@ -163,6 +168,7 @@ partner.update(
|
|
|
163
168
|
* `notes` (string): Notes about this Partner.
|
|
164
169
|
* `root_folder` (string): The root folder path for this Partner.
|
|
165
170
|
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
171
|
+
* `name` (string): The name of the Partner.
|
|
166
172
|
|
|
167
173
|
|
|
168
174
|
---
|
|
@@ -72,6 +72,15 @@ module Files
|
|
|
72
72
|
@attributes[:notes] = value
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
# array(int64) - Array of User IDs that are Partner Admins for this Partner.
|
|
76
|
+
def partner_admin_ids
|
|
77
|
+
@attributes[:partner_admin_ids]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def partner_admin_ids=(value)
|
|
81
|
+
@attributes[:partner_admin_ids] = value
|
|
82
|
+
end
|
|
83
|
+
|
|
75
84
|
# string - The root folder path for this Partner.
|
|
76
85
|
def root_folder
|
|
77
86
|
@attributes[:root_folder]
|
|
@@ -100,7 +109,6 @@ module Files
|
|
|
100
109
|
end
|
|
101
110
|
|
|
102
111
|
# Parameters:
|
|
103
|
-
# name - string - The name of the Partner.
|
|
104
112
|
# allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
|
105
113
|
# allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
106
114
|
# allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
|
|
@@ -108,15 +116,16 @@ module Files
|
|
|
108
116
|
# notes - string - Notes about this Partner.
|
|
109
117
|
# root_folder - string - The root folder path for this Partner.
|
|
110
118
|
# tags - string - Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
119
|
+
# name - string - The name of the Partner.
|
|
111
120
|
def update(params = {})
|
|
112
121
|
params ||= {}
|
|
113
122
|
params[:id] = @attributes[:id]
|
|
114
123
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
115
124
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
116
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
117
125
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
118
126
|
raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
|
|
119
127
|
raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
|
|
128
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
120
129
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
121
130
|
|
|
122
131
|
Api.send_request("/partners/#{@attributes[:id]}", :patch, params, @options)
|
|
@@ -183,7 +192,6 @@ module Files
|
|
|
183
192
|
end
|
|
184
193
|
|
|
185
194
|
# Parameters:
|
|
186
|
-
# name - string - The name of the Partner.
|
|
187
195
|
# allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
|
188
196
|
# allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
189
197
|
# allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
|
|
@@ -191,18 +199,19 @@ module Files
|
|
|
191
199
|
# notes - string - Notes about this Partner.
|
|
192
200
|
# root_folder - string - The root folder path for this Partner.
|
|
193
201
|
# tags - string - Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
202
|
+
# name (required) - string - The name of the Partner.
|
|
194
203
|
def self.create(params = {}, options = {})
|
|
195
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
196
204
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
197
205
|
raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
|
|
198
206
|
raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
|
|
207
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
208
|
+
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
199
209
|
|
|
200
210
|
response, options = Api.send_request("/partners", :post, params, options)
|
|
201
211
|
Partner.new(response.data, options)
|
|
202
212
|
end
|
|
203
213
|
|
|
204
214
|
# Parameters:
|
|
205
|
-
# name - string - The name of the Partner.
|
|
206
215
|
# allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
|
207
216
|
# allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
|
|
208
217
|
# allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
|
|
@@ -210,14 +219,15 @@ module Files
|
|
|
210
219
|
# notes - string - Notes about this Partner.
|
|
211
220
|
# root_folder - string - The root folder path for this Partner.
|
|
212
221
|
# tags - string - Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
222
|
+
# name - string - The name of the Partner.
|
|
213
223
|
def self.update(id, params = {}, options = {})
|
|
214
224
|
params ||= {}
|
|
215
225
|
params[:id] = id
|
|
216
226
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
217
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
218
227
|
raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
|
|
219
228
|
raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
|
|
220
229
|
raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
|
|
230
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
221
231
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
222
232
|
|
|
223
233
|
response, options = Api.send_request("/partners/#{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.347
|
|
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-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|