files.com 1.1.736 → 1.1.737

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: 8a709b7d33fe89f882ec42751a491115659886901882c56531294cbf770e8547
4
- data.tar.gz: 20980b303aa506332adcc5990a58de188199c7eaba6ceec90bfec0118492a405
3
+ metadata.gz: b2a3fb76a20d379b83e7151a07b4e5d6ca409c8ece689a9a29d227a726bf19fe
4
+ data.tar.gz: f4974b99eb2432f9537d1482a9a22842548dae5c1e0fee494a0fed32d727b4ce
5
5
  SHA512:
6
- metadata.gz: 5a52a46a7b92dcdb8383addb71aeb1221d6ce03c269f1c95f5119cf3232fff3c5636a09e42848aa35e40ef80929766844c2ac63b1b8dbec734e8616c218d6d23
7
- data.tar.gz: d9808d06982ee5c86ee0bb9665f800f083f8ae676b03de15ed184089aefc7c820b2cb7faa79a06b30d99c012d04bbde6e6321da244b48cf5c53d112711ade578
6
+ metadata.gz: 1e99ed43ddd384c5a6cafcdebbed1540e9b940139fbcb0a18deb95479714ed8eeb5754977ca295d055facf2910de66483c04741ed8b3a55390c7bfab92431f5b
7
+ data.tar.gz: c611152987f1f551e62681e707e4e282fe4e0750cb261cfda7e0d1e6bab8b3761931bf7e7eb859ec7ad372731eb648770b59407108b8d105fa024c9834be1788
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.736
1
+ 1.1.737
data/docs/partner.md CHANGED
@@ -48,7 +48,7 @@
48
48
  * `notes` (string): Notes about this Partner.
49
49
  * `partner_admin_ids` (array(int64)): Array of User IDs that are Partner Admins for this Partner.
50
50
  * `partner_channel_template_id` (int64): ID of the Partner Channel Template assigned to this Partner.
51
- * `partnership_role` (string): This site's role in Partner Site relationships for this Partner. Can be `host`, `guest`, `host_and_guest`, or null.
51
+ * `partnership_role` (string): This site's role for this Partner in Connected Sites relationships. `host` is a Partner this site configured. `guest` is a Partner created by approving another site's connection request; it has no root folder and cannot hold users, permissions, or Partner Channels, or host a connection. `host_and_guest` is a configured Partner that is also the guest side of a connection. Promote a `guest` Partner by setting this to `host_and_guest` together with a `root_folder`.
52
52
  * `responsible_group_id` (int64): ID of the Group responsible for this Partner.
53
53
  * `responsible_user_id` (int64): ID of the User responsible for this Partner.
54
54
  * `root_folder` (string): The root folder path for this Partner.
@@ -151,6 +151,7 @@ Files::Partner.update(id,
151
151
  show_partner_channel_home_page: false,
152
152
  tags: "example",
153
153
  name: "Acme Corp",
154
+ partnership_role: "host",
154
155
  root_folder: "/AcmeCorp"
155
156
  )
156
157
  ```
@@ -172,6 +173,7 @@ Files::Partner.update(id,
172
173
  * `show_partner_channel_home_page` (boolean): Show Partner users a simplified home page built from this Partner's Channels.
173
174
  * `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.
174
175
  * `name` (string): The name of the Partner.
176
+ * `partnership_role` (string): This site's role for this Partner in Connected Sites relationships. `host` is a Partner this site configured. `guest` is a Partner created by approving another site's connection request; it has no root folder and cannot hold users, permissions, or Partner Channels, or host a connection. `host_and_guest` is a configured Partner that is also the guest side of a connection. Promote a `guest` Partner by setting this to `host_and_guest` together with a `root_folder`.
175
177
  * `root_folder` (string): The root folder path for this Partner.
176
178
 
177
179
 
@@ -210,6 +212,7 @@ partner.update(
210
212
  show_partner_channel_home_page: false,
211
213
  tags: "example",
212
214
  name: "Acme Corp",
215
+ partnership_role: "host",
213
216
  root_folder: "/AcmeCorp"
214
217
  )
215
218
  ```
@@ -231,6 +234,7 @@ partner.update(
231
234
  * `show_partner_channel_home_page` (boolean): Show Partner users a simplified home page built from this Partner's Channels.
232
235
  * `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.
233
236
  * `name` (string): The name of the Partner.
237
+ * `partnership_role` (string): This site's role for this Partner in Connected Sites relationships. `host` is a Partner this site configured. `guest` is a Partner created by approving another site's connection request; it has no root folder and cannot hold users, permissions, or Partner Channels, or host a connection. `host_and_guest` is a configured Partner that is also the guest side of a connection. Promote a `guest` Partner by setting this to `host_and_guest` together with a `root_folder`.
234
238
  * `root_folder` (string): The root folder path for this Partner.
235
239
 
236
240
 
@@ -94,13 +94,15 @@ Files::PartnerSiteRequest.reject(
94
94
 
95
95
  ```
96
96
  Files::PartnerSiteRequest.approve(
97
- pairing_key: "pairing_key"
97
+ pairing_key: "pairing_key",
98
+ partner_id: 1
98
99
  )
99
100
  ```
100
101
 
101
102
  ### Parameters
102
103
 
103
104
  * `pairing_key` (string): Required - Pairing key for the partner site request
105
+ * `partner_id` (int64): ID of an existing Partner on this site, with the host role, that represents the requesting organization. The connection binds to that Partner and makes it host_and_guest. When omitted, a guest Partner named after the host site is created.
104
106
 
105
107
 
106
108
  ---
@@ -126,7 +126,7 @@ module Files
126
126
  @attributes[:partner_channel_template_id] = value
127
127
  end
128
128
 
129
- # string - This site's role in Partner Site relationships for this Partner. Can be `host`, `guest`, `host_and_guest`, or null.
129
+ # string - This site's role for this Partner in Connected Sites relationships. `host` is a Partner this site configured. `guest` is a Partner created by approving another site's connection request; it has no root folder and cannot hold users, permissions, or Partner Channels, or host a connection. `host_and_guest` is a configured Partner that is also the guest side of a connection. Promote a `guest` Partner by setting this to `host_and_guest` together with a `root_folder`.
130
130
  def partnership_role
131
131
  @attributes[:partnership_role]
132
132
  end
@@ -204,6 +204,7 @@ module Files
204
204
  # show_partner_channel_home_page - boolean - Show Partner users a simplified home page built from this Partner's Channels.
205
205
  # 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.
206
206
  # name - string - The name of the Partner.
207
+ # partnership_role - string - This site's role for this Partner in Connected Sites relationships. `host` is a Partner this site configured. `guest` is a Partner created by approving another site's connection request; it has no root folder and cannot hold users, permissions, or Partner Channels, or host a connection. `host_and_guest` is a configured Partner that is also the guest side of a connection. Promote a `guest` Partner by setting this to `host_and_guest` together with a `root_folder`.
207
208
  # root_folder - string - The root folder path for this Partner.
208
209
  def update(params = {})
209
210
  params ||= {}
@@ -218,6 +219,7 @@ module Files
218
219
  raise InvalidParameterError.new("Bad parameter: responsible_user_id must be an Integer") if params[:responsible_user_id] and !params[:responsible_user_id].is_a?(Integer)
219
220
  raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
220
221
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
222
+ raise InvalidParameterError.new("Bad parameter: partnership_role must be an String") if params[:partnership_role] and !params[:partnership_role].is_a?(String)
221
223
  raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
222
224
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
223
225
 
@@ -336,6 +338,7 @@ module Files
336
338
  # show_partner_channel_home_page - boolean - Show Partner users a simplified home page built from this Partner's Channels.
337
339
  # 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.
338
340
  # name - string - The name of the Partner.
341
+ # partnership_role - string - This site's role for this Partner in Connected Sites relationships. `host` is a Partner this site configured. `guest` is a Partner created by approving another site's connection request; it has no root folder and cannot hold users, permissions, or Partner Channels, or host a connection. `host_and_guest` is a configured Partner that is also the guest side of a connection. Promote a `guest` Partner by setting this to `host_and_guest` together with a `root_folder`.
339
342
  # root_folder - string - The root folder path for this Partner.
340
343
  def self.update(id, params = {}, options = {})
341
344
  params ||= {}
@@ -349,6 +352,7 @@ module Files
349
352
  raise InvalidParameterError.new("Bad parameter: responsible_user_id must be an Integer") if params[:responsible_user_id] and !params[:responsible_user_id].is_a?(Integer)
350
353
  raise InvalidParameterError.new("Bad parameter: tags must be an String") if params[:tags] and !params[:tags].is_a?(String)
351
354
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
355
+ raise InvalidParameterError.new("Bad parameter: partnership_role must be an String") if params[:partnership_role] and !params[:partnership_role].is_a?(String)
352
356
  raise InvalidParameterError.new("Bad parameter: root_folder must be an String") if params[:root_folder] and !params[:root_folder].is_a?(String)
353
357
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
354
358
 
@@ -154,8 +154,10 @@ module Files
154
154
 
155
155
  # Parameters:
156
156
  # pairing_key (required) - string - Pairing key for the partner site request
157
+ # partner_id - int64 - ID of an existing Partner on this site, with the host role, that represents the requesting organization. The connection binds to that Partner and makes it host_and_guest. When omitted, a guest Partner named after the host site is created.
157
158
  def self.approve(params = {}, options = {})
158
159
  raise InvalidParameterError.new("Bad parameter: pairing_key must be an String") if params[:pairing_key] and !params[:pairing_key].is_a?(String)
160
+ raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
159
161
  raise MissingParameterError.new("Parameter missing: pairing_key") unless params[:pairing_key]
160
162
 
161
163
  Api.send_request("/partner_site_requests/approve", :post, params, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.736"
4
+ VERSION = "1.1.737"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.736
4
+ version: 1.1.737
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com