files.com 1.1.346 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94e069e6ebe8b5176ec1d1d582cadae4f52dc1351cd2c4d9d9aef44483f071fc
4
- data.tar.gz: f4fcb1e1c836b79dd445e2daebbcd43d221b28d796d5a1f22597294fa20de05c
3
+ metadata.gz: 58b6c7ae91b3f26eb14463311d992d2f4f194cca83fcab39532fb2df58ae6407
4
+ data.tar.gz: 97f1f4d2ab6cef110a5dc2d8dcbfb460df0fafef5280d864d74d5fc87edcbf95
5
5
  SHA512:
6
- metadata.gz: 31f557168c041fe81c0fdbe13423ef493402cee24cdd0d0cc3d9414ddd38155cf9f0725f7f0cf079d6bf992cc4fee3e8bf7d4e80aa6dd42665e0f0171915cf75
7
- data.tar.gz: 8eb46e73c73f68ea485547e31e6a8c44c587527c88756a3c7880f5f207fcd04214aa3ae97d5db0d97f475ea75c062c29d6d0c8ed037cf8ddd117d75526d69252
6
+ metadata.gz: 927c746983001106fc50f06bea9f84289b90e5a79ff592492d29589d68750f487778c1170f854ec6954c0b5d7751fc9476dd42b18f739ee2852bcd08b461d687
7
+ data.tar.gz: 35941838b417dd31117493e1f60add7e88c666b2c28496585d0400079cf3e827124ae66227299a5219a22ad68acad1000224fb91dbb0924f1d6d64dc101f4a93
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.346
1
+ 1.1.347
data/docs/partner.md CHANGED
@@ -73,20 +73,19 @@ Files::Partner.find(id)
73
73
 
74
74
  ```
75
75
  Files::Partner.create(
76
- name: "Acme Corp",
77
76
  allow_bypassing_2fa_policies: false,
78
77
  allow_credential_changes: false,
79
78
  allow_providing_gpg_keys: false,
80
79
  allow_user_creation: false,
81
80
  notes: "This is a note about the partner.",
82
81
  root_folder: "/AcmeCorp",
83
- tags: "example"
82
+ tags: "example",
83
+ name: "Acme Corp"
84
84
  )
85
85
  ```
86
86
 
87
87
  ### Parameters
88
88
 
89
- * `name` (string): The name of the Partner.
90
89
  * `allow_bypassing_2fa_policies` (boolean): Allow users created under this Partner to bypass Two-Factor Authentication policies.
91
90
  * `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
92
91
  * `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
@@ -94,6 +93,7 @@ Files::Partner.create(
94
93
  * `notes` (string): Notes about this Partner.
95
94
  * `root_folder` (string): The root folder path for this Partner.
96
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.
97
97
 
98
98
 
99
99
  ---
@@ -102,21 +102,20 @@ Files::Partner.create(
102
102
 
103
103
  ```
104
104
  Files::Partner.update(id,
105
- name: "Acme Corp",
106
105
  allow_bypassing_2fa_policies: false,
107
106
  allow_credential_changes: false,
108
107
  allow_providing_gpg_keys: false,
109
108
  allow_user_creation: false,
110
109
  notes: "This is a note about the partner.",
111
110
  root_folder: "/AcmeCorp",
112
- tags: "example"
111
+ tags: "example",
112
+ name: "Acme Corp"
113
113
  )
114
114
  ```
115
115
 
116
116
  ### Parameters
117
117
 
118
118
  * `id` (int64): Required - Partner ID.
119
- * `name` (string): The name of the Partner.
120
119
  * `allow_bypassing_2fa_policies` (boolean): Allow users created under this Partner to bypass Two-Factor Authentication policies.
121
120
  * `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
122
121
  * `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
@@ -124,6 +123,7 @@ Files::Partner.update(id,
124
123
  * `notes` (string): Notes about this Partner.
125
124
  * `root_folder` (string): The root folder path for this Partner.
126
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.
127
127
 
128
128
 
129
129
  ---
@@ -147,21 +147,20 @@ Files::Partner.delete(id)
147
147
  partner = Files::Partner.find(id)
148
148
 
149
149
  partner.update(
150
- name: "Acme Corp",
151
150
  allow_bypassing_2fa_policies: false,
152
151
  allow_credential_changes: false,
153
152
  allow_providing_gpg_keys: false,
154
153
  allow_user_creation: false,
155
154
  notes: "This is a note about the partner.",
156
155
  root_folder: "/AcmeCorp",
157
- tags: "example"
156
+ tags: "example",
157
+ name: "Acme Corp"
158
158
  )
159
159
  ```
160
160
 
161
161
  ### Parameters
162
162
 
163
163
  * `id` (int64): Required - Partner ID.
164
- * `name` (string): The name of the Partner.
165
164
  * `allow_bypassing_2fa_policies` (boolean): Allow users created under this Partner to bypass Two-Factor Authentication policies.
166
165
  * `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
167
166
  * `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
@@ -169,6 +168,7 @@ partner.update(
169
168
  * `notes` (string): Notes about this Partner.
170
169
  * `root_folder` (string): The root folder path for this Partner.
171
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.
172
172
 
173
173
 
174
174
  ---
@@ -109,7 +109,6 @@ module Files
109
109
  end
110
110
 
111
111
  # Parameters:
112
- # name - string - The name of the Partner.
113
112
  # allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
114
113
  # allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
115
114
  # allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
@@ -117,15 +116,16 @@ module Files
117
116
  # notes - string - Notes about this Partner.
118
117
  # root_folder - string - The root folder path for this Partner.
119
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.
120
120
  def update(params = {})
121
121
  params ||= {}
122
122
  params[:id] = @attributes[:id]
123
123
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
124
124
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
125
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
126
125
  raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
127
126
  raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
128
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)
129
129
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
130
130
 
131
131
  Api.send_request("/partners/#{@attributes[:id]}", :patch, params, @options)
@@ -192,7 +192,6 @@ module Files
192
192
  end
193
193
 
194
194
  # Parameters:
195
- # name - string - The name of the Partner.
196
195
  # allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
197
196
  # allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
198
197
  # allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
@@ -200,18 +199,19 @@ module Files
200
199
  # notes - string - Notes about this Partner.
201
200
  # root_folder - string - The root folder path for this Partner.
202
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.
203
203
  def self.create(params = {}, options = {})
204
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
205
204
  raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
206
205
  raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
207
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]
208
209
 
209
210
  response, options = Api.send_request("/partners", :post, params, options)
210
211
  Partner.new(response.data, options)
211
212
  end
212
213
 
213
214
  # Parameters:
214
- # name - string - The name of the Partner.
215
215
  # allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
216
216
  # allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
217
217
  # allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
@@ -219,14 +219,15 @@ module Files
219
219
  # notes - string - Notes about this Partner.
220
220
  # root_folder - string - The root folder path for this Partner.
221
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.
222
223
  def self.update(id, params = {}, options = {})
223
224
  params ||= {}
224
225
  params[:id] = id
225
226
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
226
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
227
227
  raise InvalidParameterError.new("Bad parameter: notes must be an String") if params[:notes] and !params[:notes].is_a?(String)
228
228
  raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
229
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)
230
231
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
231
232
 
232
233
  response, options = Api.send_request("/partners/#{params[:id]}", :patch, params, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.346"
4
+ VERSION = "1.1.347"
5
5
  end
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.346
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-04 00:00:00.000000000 Z
11
+ date: 2025-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable