files.com 1.1.591 → 1.1.593

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: d8ca6540e4b3def2c14e408668ce2f7dde2b49edcc0ba9bce630b03e51f6261f
4
- data.tar.gz: d0ebbb323ec754b283fe82449a83ed7555cb5e2919d18512f8388c25c40608e8
3
+ metadata.gz: 3e71b6a70e948d401b44931dc92715fb3dfc529c00fdbced61714ccf25a1bfb7
4
+ data.tar.gz: 5156edaf9e09cff53626c92799fa246a5a0241161ac7268ac0199b6aa8e1d8b4
5
5
  SHA512:
6
- metadata.gz: 2a383c3eb911b443e5217a9c8081568f8631a341ff3abd153bf2ed981ade13ffd72cce6db117a37d64192328c1ae9a8c97000e2389a37939f6087138e5e7ffab
7
- data.tar.gz: ee5bd26df86c3b68bb7aa41efc3bfb908fbfd2100b9d04d6389ff3033f42f2b381938bdced758e550cd16839d090df899524237caa293555d28cf428a82d7003
6
+ metadata.gz: 2cbf7ea0ead542b1db1c49080b4e103f10d1831373986d404a0a20dde07e95dc611e3b7b442887e87d5de4d1e3cc0dc5d2461d5028b4424294d826f8c7b1aeb0
7
+ data.tar.gz: c1754b95991af52f6f781b44f92d2ea7dcf4e33fd643c53851dad22769bf31cf22fce298ce76a01bfc4de7fcd8d3da8b58716b7983a62ed5ccb64757181f7725
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.591
1
+ 1.1.593
@@ -18,7 +18,7 @@
18
18
  * `name` (string): Profile name
19
19
  * `workspace_id` (int64): Workspace ID
20
20
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
21
- * `mount_mappings` (object): Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
21
+ * `mount_mappings` (object): Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
22
22
 
23
23
 
24
24
  ---
@@ -66,7 +66,7 @@ Files::DesktopConfigurationProfile.create(
66
66
  ### Parameters
67
67
 
68
68
  * `name` (string): Required - Profile name
69
- * `mount_mappings` (object): Required - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
69
+ * `mount_mappings` (object): Required - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
70
70
  * `workspace_id` (int64): Workspace ID
71
71
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
72
72
 
@@ -89,7 +89,7 @@ Files::DesktopConfigurationProfile.update(id,
89
89
  * `id` (int64): Required - Desktop Configuration Profile ID.
90
90
  * `name` (string): Profile name
91
91
  * `workspace_id` (int64): Workspace ID
92
- * `mount_mappings` (object): Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
92
+ * `mount_mappings` (object): Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
93
93
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
94
94
 
95
95
 
@@ -126,7 +126,7 @@ desktop_configuration_profile.update(
126
126
  * `id` (int64): Required - Desktop Configuration Profile ID.
127
127
  * `name` (string): Profile name
128
128
  * `workspace_id` (int64): Workspace ID
129
- * `mount_mappings` (object): Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
129
+ * `mount_mappings` (object): Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
130
130
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
131
131
 
132
132
 
data/docs/style.md CHANGED
@@ -7,6 +7,7 @@
7
7
  "id": 1,
8
8
  "path": "example",
9
9
  "logo": "https://mysite.files.com/...",
10
+ "logo_click_href": "https://www.example.com",
10
11
  "thumbnail": {
11
12
  "name": "My logo",
12
13
  "uri": "https://mysite.files.com/.../my_image.png"
@@ -17,8 +18,9 @@
17
18
  * `id` (int64): Style ID
18
19
  * `path` (string): Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
19
20
  * `logo` (Image): Logo
21
+ * `logo_click_href` (string): URL to open when a public visitor clicks the logo
20
22
  * `thumbnail` (Image): Logo thumbnail
21
- * `file` (file): Logo for custom branding.
23
+ * `file` (file): Logo for custom branding. Required when creating a new style.
22
24
 
23
25
 
24
26
  ---
@@ -40,14 +42,15 @@ Files::Style.find(path)
40
42
 
41
43
  ```
42
44
  Files::Style.update(path,
43
- file: "file"
45
+ logo_click_href: "https://www.example.com"
44
46
  )
45
47
  ```
46
48
 
47
49
  ### Parameters
48
50
 
49
51
  * `path` (string): Required - Style path.
50
- * `file` (file): Required - Logo for custom branding.
52
+ * `file` (file): Logo for custom branding. Required when creating a new style.
53
+ * `logo_click_href` (string): URL to open when a public visitor clicks the logo.
51
54
 
52
55
 
53
56
  ---
@@ -71,14 +74,15 @@ Files::Style.delete(path)
71
74
  style = Files::Style.find(path)
72
75
 
73
76
  style.update(
74
- file: "file"
77
+ logo_click_href: "https://www.example.com"
75
78
  )
76
79
  ```
77
80
 
78
81
  ### Parameters
79
82
 
80
83
  * `path` (string): Required - Style path.
81
- * `file` (file): Required - Logo for custom branding.
84
+ * `file` (file): Logo for custom branding. Required when creating a new style.
85
+ * `logo_click_href` (string): URL to open when a public visitor clicks the logo.
82
86
 
83
87
 
84
88
  ---
@@ -45,7 +45,7 @@ module Files
45
45
  @attributes[:use_for_all_users] = value
46
46
  end
47
47
 
48
- # object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
48
+ # object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
49
49
  def mount_mappings
50
50
  @attributes[:mount_mappings]
51
51
  end
@@ -57,7 +57,7 @@ module Files
57
57
  # Parameters:
58
58
  # name - string - Profile name
59
59
  # workspace_id - int64 - Workspace ID
60
- # mount_mappings - object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
60
+ # mount_mappings - object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
61
61
  # use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
62
62
  def update(params = {})
63
63
  params ||= {}
@@ -135,7 +135,7 @@ module Files
135
135
 
136
136
  # Parameters:
137
137
  # name (required) - string - Profile name
138
- # mount_mappings (required) - object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
138
+ # mount_mappings (required) - object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
139
139
  # workspace_id - int64 - Workspace ID
140
140
  # use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
141
141
  def self.create(params = {}, options = {})
@@ -152,7 +152,7 @@ module Files
152
152
  # Parameters:
153
153
  # name - string - Profile name
154
154
  # workspace_id - int64 - Workspace ID
155
- # mount_mappings - object - Mount point mappings for the desktop app. Keys are mount points (e.g. drive letters) and values are paths in Files.com that the mount points map to.
155
+ # mount_mappings - object - Mount point mappings for the desktop app. Keys must be a single uppercase Windows drive letter other than A, B, or C, and values are Files.com paths to mount there.
156
156
  # use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
157
157
  def self.update(id, params = {}, options = {})
158
158
  params ||= {}
@@ -36,6 +36,15 @@ module Files
36
36
  @attributes[:logo] = value
37
37
  end
38
38
 
39
+ # string - URL to open when a public visitor clicks the logo
40
+ def logo_click_href
41
+ @attributes[:logo_click_href]
42
+ end
43
+
44
+ def logo_click_href=(value)
45
+ @attributes[:logo_click_href] = value
46
+ end
47
+
39
48
  # Image - Logo thumbnail
40
49
  def thumbnail
41
50
  @attributes[:thumbnail]
@@ -45,7 +54,7 @@ module Files
45
54
  @attributes[:thumbnail] = value
46
55
  end
47
56
 
48
- # file - Logo for custom branding.
57
+ # file - Logo for custom branding. Required when creating a new style.
49
58
  def file
50
59
  @attributes[:file]
51
60
  end
@@ -55,14 +64,15 @@ module Files
55
64
  end
56
65
 
57
66
  # Parameters:
58
- # file (required) - file - Logo for custom branding.
67
+ # file - file - Logo for custom branding. Required when creating a new style.
68
+ # logo_click_href - string - URL to open when a public visitor clicks the logo.
59
69
  def update(params = {})
60
70
  params ||= {}
61
71
  params[:path] = @attributes[:path]
62
72
  raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
63
73
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
74
+ raise InvalidParameterError.new("Bad parameter: logo_click_href must be an String") if params[:logo_click_href] and !params[:logo_click_href].is_a?(String)
64
75
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
65
- raise MissingParameterError.new("Parameter missing: file") unless params[:file]
66
76
 
67
77
  Api.send_request("/styles/#{@attributes[:path]}", :patch, params, @options)
68
78
  end
@@ -105,13 +115,14 @@ module Files
105
115
  end
106
116
 
107
117
  # Parameters:
108
- # file (required) - file - Logo for custom branding.
118
+ # file - file - Logo for custom branding. Required when creating a new style.
119
+ # logo_click_href - string - URL to open when a public visitor clicks the logo.
109
120
  def self.update(path, params = {}, options = {})
110
121
  params ||= {}
111
122
  params[:path] = path
112
123
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
124
+ raise InvalidParameterError.new("Bad parameter: logo_click_href must be an String") if params[:logo_click_href] and !params[:logo_click_href].is_a?(String)
113
125
  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
114
- raise MissingParameterError.new("Parameter missing: file") unless params[:file]
115
126
 
116
127
  response, options = Api.send_request("/styles/#{params[:path]}", :patch, params, options)
117
128
  Style.new(response.data, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.591"
4
+ VERSION = "1.1.593"
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.591
4
+ version: 1.1.593
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-01 00:00:00.000000000 Z
11
+ date: 2026-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable