files.com 1.1.689 → 1.1.690

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: 02404110f3cdedb4da5150380628bc677dfd3a1e12b38db8d5b900ae7ef6e023
4
- data.tar.gz: 3f6637df82c914605a58d9d655237ee2d9627b7c909eea1458aa4fbc4e662c99
3
+ metadata.gz: a0e01c6ba9c9ee895d15b0e034632a4eca7b49cc0f578046926b5f6b26c69ed4
4
+ data.tar.gz: 4643501b12a72718bf07dd66f86f4ed4d80bc92aa04afb35fd0898567b21c870
5
5
  SHA512:
6
- metadata.gz: 480b89ae2ecaf15a3e3e59a36fe751250dcb427487cd5a11e2b01c79b54aef7f9b3b7673e859bcc694a38d7f74851c76ac8500c12899d3b58c45d4afca32a259
7
- data.tar.gz: 16f9dab189c8479bd155e96515434238139052250536defe9483e2fa402f95156297b25830ad197281623cecbc8b6ecd24a7383112b1e1ce720162d72404afbf
6
+ metadata.gz: 568491680c5bdde00400c82baa18e34eb07b1261face265daa02e67165be45194ebe3531e565b37a4e65b4382ba850740833a31867f771e14515df47a7cdfa71
7
+ data.tar.gz: 9141157423e7fd400bdb7b94f9578ff24084b66c0be96a2456cf3367f8b87f7a869624b13daf550cf70515a8d29d83151fc82c2bc3b07974daa4a3a38908dd3f
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.689
1
+ 1.1.690
data/docs/snapshot.md CHANGED
@@ -9,7 +9,8 @@
9
9
  "finalized_at": "2000-01-01T01:00:00Z",
10
10
  "name": "My Snapshot",
11
11
  "user_id": 1,
12
- "bundle_id": 1
12
+ "bundle_id": 1,
13
+ "workspace_id": 1
13
14
  }
14
15
  ```
15
16
 
@@ -19,6 +20,7 @@
19
20
  * `name` (string): A name for the snapshot.
20
21
  * `user_id` (int64): The user that created this snapshot, if applicable.
21
22
  * `bundle_id` (int64): The bundle using this snapshot, if applicable.
23
+ * `workspace_id` (int64): Workspace ID. `0` means the default workspace.
22
24
  * `paths` (array(string)): An array of paths to add to the snapshot.
23
25
 
24
26
 
@@ -56,7 +58,8 @@ Files::Snapshot.find(id)
56
58
  ```
57
59
  Files::Snapshot.create(
58
60
  expires_at: "2000-01-01T01:00:00Z",
59
- name: "My Snapshot"
61
+ name: "My Snapshot",
62
+ workspace_id: 0
60
63
  )
61
64
  ```
62
65
 
@@ -65,6 +68,7 @@ Files::Snapshot.create(
65
68
  * `expires_at` (string): When the snapshot expires.
66
69
  * `name` (string): A name for the snapshot.
67
70
  * `paths` (array(string)): An array of paths to add to the snapshot.
71
+ * `workspace_id` (int64): Workspace ID. `0` means the default workspace.
68
72
 
69
73
 
70
74
  ---
@@ -63,6 +63,15 @@ module Files
63
63
  @attributes[:bundle_id] = value
64
64
  end
65
65
 
66
+ # int64 - Workspace ID. `0` means the default workspace.
67
+ def workspace_id
68
+ @attributes[:workspace_id]
69
+ end
70
+
71
+ def workspace_id=(value)
72
+ @attributes[:workspace_id] = value
73
+ end
74
+
66
75
  # array(string) - An array of paths to add to the snapshot.
67
76
  def paths
68
77
  @attributes[:paths]
@@ -162,10 +171,12 @@ module Files
162
171
  # expires_at - string - When the snapshot expires.
163
172
  # name - string - A name for the snapshot.
164
173
  # paths - array(string) - An array of paths to add to the snapshot.
174
+ # workspace_id - int64 - Workspace ID. `0` means the default workspace.
165
175
  def self.create(params = {}, options = {})
166
176
  raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params[:expires_at] and !params[:expires_at].is_a?(String)
167
177
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
168
178
  raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params[:paths] and !params[:paths].is_a?(Array)
179
+ raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
169
180
 
170
181
  response, options = Api.send_request("/snapshots", :post, params, options)
171
182
  Snapshot.new(response.data, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.689"
4
+ VERSION = "1.1.690"
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.689
4
+ version: 1.1.690
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-07-20 00:00:00.000000000 Z
11
+ date: 2026-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable