files.com 1.1.613 → 1.1.615

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: 209565b162c92e731e627e005d61064dd03b488198ee468ba9b1b64ea11c15a5
4
- data.tar.gz: f5843c5fe698e0a7a52ae6195d803b55bfc4e4874b94b0e84d6aa3d6077e5787
3
+ metadata.gz: '08a389272f6bcfa76465e87a6b5ad10f725f5fc15cb6a808efdf6430a4a25bfd'
4
+ data.tar.gz: 86773e32fb71727835ceebd0a90d5f5c8509147cf9dcb076d1eea09766f336de
5
5
  SHA512:
6
- metadata.gz: ba26c2b71bb52e33d8e72d8551bb352ba38b2cdfa332e5205606055d6403a331f2f6c72eece56c66d8da362f564fbd673ca82b2581997f7e334bf9cdd9d5bd8c
7
- data.tar.gz: 63d1013e6eb742c59e5ba071e971794fe7b5cc60a0900ff5fc5ea122c2869e1ae1e2624820c90932642175f830d54ffff4c3c781a66cb352b2af1e4c89089b44
6
+ metadata.gz: 2399198c4851849d440e4e69ddbc491041bd9143c7d9897c955c82725884acd38f94b0331a112418c0029fe7f66a921629653e9dfd6d60ad929a647c057c9749
7
+ data.tar.gz: 2309caab315de1ce3c18cb81a7d6dc2d53ff3cf48d5e7d21b9c369153b33492aff6caeb4d170ca85d8cb247d872644e4b82f842dbf098bc3dd00b8d0f4dab1c9
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.613
1
+ 1.1.615
@@ -8,6 +8,7 @@
8
8
  "name": "North America Desktop Profile",
9
9
  "workspace_id": 1,
10
10
  "use_for_all_users": true,
11
+ "disable_drive_mounting": true,
11
12
  "mount_mappings": {
12
13
  "key": "example value"
13
14
  }
@@ -18,6 +19,7 @@
18
19
  * `name` (string): Profile name
19
20
  * `workspace_id` (int64): Workspace ID
20
21
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
22
+ * `disable_drive_mounting` (boolean): Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
21
23
  * `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
24
 
23
25
 
@@ -59,7 +61,8 @@ Files::DesktopConfigurationProfile.create(
59
61
  name: "North America Desktop Profile",
60
62
  mount_mappings: {"key":"example value"},
61
63
  workspace_id: 1,
62
- use_for_all_users: false
64
+ use_for_all_users: false,
65
+ disable_drive_mounting: false
63
66
  )
64
67
  ```
65
68
 
@@ -69,6 +72,7 @@ Files::DesktopConfigurationProfile.create(
69
72
  * `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
73
  * `workspace_id` (int64): Workspace ID
71
74
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
75
+ * `disable_drive_mounting` (boolean): Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
72
76
 
73
77
 
74
78
  ---
@@ -80,7 +84,8 @@ Files::DesktopConfigurationProfile.update(id,
80
84
  name: "North America Desktop Profile",
81
85
  workspace_id: 1,
82
86
  mount_mappings: {"key":"example value"},
83
- use_for_all_users: false
87
+ use_for_all_users: false,
88
+ disable_drive_mounting: false
84
89
  )
85
90
  ```
86
91
 
@@ -91,6 +96,7 @@ Files::DesktopConfigurationProfile.update(id,
91
96
  * `workspace_id` (int64): Workspace ID
92
97
  * `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
98
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
99
+ * `disable_drive_mounting` (boolean): Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
94
100
 
95
101
 
96
102
  ---
@@ -117,7 +123,8 @@ desktop_configuration_profile.update(
117
123
  name: "North America Desktop Profile",
118
124
  workspace_id: 1,
119
125
  mount_mappings: {"key":"example value"},
120
- use_for_all_users: false
126
+ use_for_all_users: false,
127
+ disable_drive_mounting: false
121
128
  )
122
129
  ```
123
130
 
@@ -128,6 +135,7 @@ desktop_configuration_profile.update(
128
135
  * `workspace_id` (int64): Workspace ID
129
136
  * `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
137
  * `use_for_all_users` (boolean): Whether this profile applies to all users in the Workspace by default
138
+ * `disable_drive_mounting` (boolean): Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
131
139
 
132
140
 
133
141
  ---
@@ -7,6 +7,7 @@
7
7
  "id": 1,
8
8
  "key_type": "gpg",
9
9
  "inactivity_days": 12,
10
+ "expiration_days": 365,
10
11
  "apply_to_all_workspaces": true,
11
12
  "name": "inactive gpg keys",
12
13
  "workspace_id": 12
@@ -16,6 +17,7 @@
16
17
  * `id` (int64): Key Lifecycle Rule ID
17
18
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
18
19
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
20
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
19
21
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
20
22
  * `name` (string): Key Lifecycle Rule name
21
23
  * `workspace_id` (int64): Workspace ID. `0` means the default workspace.
@@ -57,6 +59,7 @@ Files::KeyLifecycleRule.find(id)
57
59
  ```
58
60
  Files::KeyLifecycleRule.create(
59
61
  apply_to_all_workspaces: true,
62
+ expiration_days: 365,
60
63
  key_type: "gpg",
61
64
  inactivity_days: 12,
62
65
  name: "inactive gpg keys",
@@ -67,6 +70,7 @@ Files::KeyLifecycleRule.create(
67
70
  ### Parameters
68
71
 
69
72
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
73
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
70
74
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
71
75
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
72
76
  * `name` (string): Key Lifecycle Rule name
@@ -80,6 +84,7 @@ Files::KeyLifecycleRule.create(
80
84
  ```
81
85
  Files::KeyLifecycleRule.update(id,
82
86
  apply_to_all_workspaces: true,
87
+ expiration_days: 365,
83
88
  key_type: "gpg",
84
89
  inactivity_days: 12,
85
90
  name: "inactive gpg keys",
@@ -91,6 +96,7 @@ Files::KeyLifecycleRule.update(id,
91
96
 
92
97
  * `id` (int64): Required - Key Lifecycle Rule ID.
93
98
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
99
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
94
100
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
95
101
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
96
102
  * `name` (string): Key Lifecycle Rule name
@@ -119,6 +125,7 @@ key_lifecycle_rule = Files::KeyLifecycleRule.find(id)
119
125
 
120
126
  key_lifecycle_rule.update(
121
127
  apply_to_all_workspaces: true,
128
+ expiration_days: 365,
122
129
  key_type: "gpg",
123
130
  inactivity_days: 12,
124
131
  name: "inactive gpg keys",
@@ -130,6 +137,7 @@ key_lifecycle_rule.update(
130
137
 
131
138
  * `id` (int64): Required - Key Lifecycle Rule ID.
132
139
  * `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to keys in all workspaces.
140
+ * `expiration_days` (int64): Number of days after creation before an SSH key expires. Applies only to SSH keys.
133
141
  * `key_type` (string): Key type for which the rule will apply (gpg or ssh).
134
142
  * `inactivity_days` (int64): Number of days of inactivity before the rule applies.
135
143
  * `name` (string): Key Lifecycle Rule name
data/docs/public_key.md CHANGED
@@ -8,6 +8,8 @@
8
8
  "workspace_id": 1,
9
9
  "title": "My public key",
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
+ "expires_at": "2000-01-01T01:00:00Z",
12
+ "expired": true,
11
13
  "fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
12
14
  "fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
13
15
  "status": "complete",
@@ -23,6 +25,8 @@
23
25
  * `workspace_id` (int64): Workspace ID (0 for default workspace).
24
26
  * `title` (string): Public key title
25
27
  * `created_at` (date-time): Public key created at date/time
28
+ * `expires_at` (date-time): Public key expiration date/time
29
+ * `expired` (boolean): Is this public key expired?
26
30
  * `fingerprint` (string): Public key fingerprint (MD5)
27
31
  * `fingerprint_sha256` (string): Public key fingerprint (SHA256)
28
32
  * `status` (string): Only returned when generating keys. Can be invalid, not_generated, generating, complete
@@ -45,6 +45,15 @@ module Files
45
45
  @attributes[:use_for_all_users] = value
46
46
  end
47
47
 
48
+ # boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
49
+ def disable_drive_mounting
50
+ @attributes[:disable_drive_mounting]
51
+ end
52
+
53
+ def disable_drive_mounting=(value)
54
+ @attributes[:disable_drive_mounting] = value
55
+ end
56
+
48
57
  # 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
58
  def mount_mappings
50
59
  @attributes[:mount_mappings]
@@ -59,6 +68,7 @@ module Files
59
68
  # workspace_id - int64 - Workspace ID
60
69
  # 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
70
  # use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
71
+ # disable_drive_mounting - boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
62
72
  def update(params = {})
63
73
  params ||= {}
64
74
  params[:id] = @attributes[:id]
@@ -138,6 +148,7 @@ module Files
138
148
  # 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
149
  # workspace_id - int64 - Workspace ID
140
150
  # use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
151
+ # disable_drive_mounting - boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
141
152
  def self.create(params = {}, options = {})
142
153
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
143
154
  raise InvalidParameterError.new("Bad parameter: mount_mappings must be an Hash") if params[:mount_mappings] and !params[:mount_mappings].is_a?(Hash)
@@ -154,6 +165,7 @@ module Files
154
165
  # workspace_id - int64 - Workspace ID
155
166
  # 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
167
  # use_for_all_users - boolean - Whether this profile applies to all users in the Workspace by default
168
+ # disable_drive_mounting - boolean - Whether the desktop app should hide drive mounting, prevent new drive mounts, and unmount active drive mounts for users with this profile
157
169
  def self.update(id, params = {}, options = {})
158
170
  params ||= {}
159
171
  params[:id] = id
@@ -36,6 +36,15 @@ module Files
36
36
  @attributes[:inactivity_days] = value
37
37
  end
38
38
 
39
+ # int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
40
+ def expiration_days
41
+ @attributes[:expiration_days]
42
+ end
43
+
44
+ def expiration_days=(value)
45
+ @attributes[:expiration_days] = value
46
+ end
47
+
39
48
  # boolean - If true, a default-workspace rule also applies to keys in all workspaces.
40
49
  def apply_to_all_workspaces
41
50
  @attributes[:apply_to_all_workspaces]
@@ -65,6 +74,7 @@ module Files
65
74
 
66
75
  # Parameters:
67
76
  # apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
77
+ # expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
68
78
  # key_type - string - Key type for which the rule will apply (gpg or ssh).
69
79
  # inactivity_days - int64 - Number of days of inactivity before the rule applies.
70
80
  # name - string - Key Lifecycle Rule name
@@ -74,6 +84,7 @@ module Files
74
84
  params[:id] = @attributes[:id]
75
85
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
76
86
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
87
+ raise InvalidParameterError.new("Bad parameter: expiration_days must be an Integer") if params[:expiration_days] and !params[:expiration_days].is_a?(Integer)
77
88
  raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params[:key_type] and !params[:key_type].is_a?(String)
78
89
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
79
90
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -147,11 +158,13 @@ module Files
147
158
 
148
159
  # Parameters:
149
160
  # apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
161
+ # expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
150
162
  # key_type - string - Key type for which the rule will apply (gpg or ssh).
151
163
  # inactivity_days - int64 - Number of days of inactivity before the rule applies.
152
164
  # name - string - Key Lifecycle Rule name
153
165
  # workspace_id - int64 - Workspace ID. `0` means the default workspace.
154
166
  def self.create(params = {}, options = {})
167
+ raise InvalidParameterError.new("Bad parameter: expiration_days must be an Integer") if params[:expiration_days] and !params[:expiration_days].is_a?(Integer)
155
168
  raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params[:key_type] and !params[:key_type].is_a?(String)
156
169
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
157
170
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -163,6 +176,7 @@ module Files
163
176
 
164
177
  # Parameters:
165
178
  # apply_to_all_workspaces - boolean - If true, a default-workspace rule also applies to keys in all workspaces.
179
+ # expiration_days - int64 - Number of days after creation before an SSH key expires. Applies only to SSH keys.
166
180
  # key_type - string - Key type for which the rule will apply (gpg or ssh).
167
181
  # inactivity_days - int64 - Number of days of inactivity before the rule applies.
168
182
  # name - string - Key Lifecycle Rule name
@@ -171,6 +185,7 @@ module Files
171
185
  params ||= {}
172
186
  params[:id] = id
173
187
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
188
+ raise InvalidParameterError.new("Bad parameter: expiration_days must be an Integer") if params[:expiration_days] and !params[:expiration_days].is_a?(Integer)
174
189
  raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params[:key_type] and !params[:key_type].is_a?(String)
175
190
  raise InvalidParameterError.new("Bad parameter: inactivity_days must be an Integer") if params[:inactivity_days] and !params[:inactivity_days].is_a?(Integer)
176
191
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
@@ -41,6 +41,24 @@ module Files
41
41
  @attributes[:created_at]
42
42
  end
43
43
 
44
+ # date-time - Public key expiration date/time
45
+ def expires_at
46
+ @attributes[:expires_at]
47
+ end
48
+
49
+ def expires_at=(value)
50
+ @attributes[:expires_at] = value
51
+ end
52
+
53
+ # boolean - Is this public key expired?
54
+ def expired
55
+ @attributes[:expired]
56
+ end
57
+
58
+ def expired=(value)
59
+ @attributes[:expired] = value
60
+ end
61
+
44
62
  # string - Public key fingerprint (MD5)
45
63
  def fingerprint
46
64
  @attributes[:fingerprint]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.613"
4
+ VERSION = "1.1.615"
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.613
4
+ version: 1.1.615
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-29 00:00:00.000000000 Z
11
+ date: 2026-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable