files.com 1.0.330 → 1.0.331

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50f2f62972d81d98a1f8c879bb98c00935b1c4d567204bd8c41d60d756fc2528
4
- data.tar.gz: 3cfd3870990ab9187f16e3d2de978731f861a19323a7f29d8984dd761b72db29
3
+ metadata.gz: 14222b37137fc5a7dbd47f3ae067b97f9dc26eadf43362675c919af12f9e3046
4
+ data.tar.gz: fed625035ea60ba05ebeecb5da4b75abef6b0b6a7e01ccdb5b78e6e03b38e652
5
5
  SHA512:
6
- metadata.gz: 2c1a15034f1d723dce4e7d0a608af08ca0d91d72b0616f3cee6f17c2f30c75227be926fee94cc18100634f9c17c55da2d6784a2bd760d96e0811d7da7e37ec9d
7
- data.tar.gz: d3a2b11e223d15e5709efd015e7a4c5f5386be6fe5e309d61c3d9837a4c3269ec433aeef7104c2e08b8999f98e68546b85e3c2afb14df8a2d51d93b455b592f7
6
+ metadata.gz: b2df3ef6c1d9307110d0004e2d538d92b683e1d51b27a69e1f77c1708410caec422e3526212b223a3aacc40c19a1b61d5d7f5033efb64e36b26119eb594ffbf4
7
+ data.tar.gz: 3a3c3f852739c6d0a23c9426a9eb256665eac8cfa9331ec5e3bbbea5302415b853b1cc9334bb79a3c2ab047fb5b1e9f88933822e9bb8d0123b54a4bf428993e7
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.330
1
+ 1.0.331
@@ -17,6 +17,7 @@
17
17
  "http_method": "PUT",
18
18
  "next_partsize": 1,
19
19
  "parallel_parts": true,
20
+ "retry_parts": true,
20
21
  "parameters": {
21
22
  "key": "example value"
22
23
  },
@@ -37,6 +38,7 @@
37
38
  * `http_method` (string): HTTP Method to use for uploading the part, usually `PUT`
38
39
  * `next_partsize` (int64): Size in bytes for this part
39
40
  * `parallel_parts` (boolean): If `true`, multiple parts may be uploaded in parallel. If `false`, be sure to only upload one part at a time, in order.
41
+ * `retry_parts` (boolean): If `true`, parts may be retried. If `false`, a part cannot be retried and the upload should be restarted.
40
42
  * `parameters` (object): Additional HTTP parameters to send with the upload
41
43
  * `part_number` (int64): Number of this upload part
42
44
  * `partsize` (int64): Size in bytes for the next upload part
@@ -17,7 +17,6 @@
17
17
  * `note` (string): A note sent to the recipient with the inbox.
18
18
  * `recipient` (string): The recipient's email address.
19
19
  * `sent_at` (date-time): When the Inbox was shared with this recipient.
20
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
21
20
  * `inbox_id` (int64): Inbox to share.
22
21
  * `share_after_create` (boolean): Set to true to share the link with the recipient upon creation.
23
22
 
@@ -28,7 +27,6 @@
28
27
 
29
28
  ```
30
29
  Files::InboxRecipient.list(
31
- user_id: 1,
32
30
  per_page: 1,
33
31
  inbox_id: 1
34
32
  )
@@ -36,7 +34,6 @@ Files::InboxRecipient.list(
36
34
 
37
35
  ### Parameters
38
36
 
39
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
40
37
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
41
38
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
42
39
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
@@ -50,7 +47,6 @@ Files::InboxRecipient.list(
50
47
 
51
48
  ```
52
49
  Files::InboxRecipient.create(
53
- user_id: 1,
54
50
  inbox_id: 1,
55
51
  recipient: "johndoe@gmail.com",
56
52
  name: "John Smith",
@@ -62,7 +58,6 @@ Files::InboxRecipient.create(
62
58
 
63
59
  ### Parameters
64
60
 
65
- * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
66
61
  * `inbox_id` (int64): Required - Inbox to share.
67
62
  * `recipient` (string): Required - Email address to share this inbox with.
68
63
  * `name` (string): Name of recipient.
@@ -54,6 +54,11 @@ module Files
54
54
  @attributes[:parallel_parts]
55
55
  end
56
56
 
57
+ # boolean - If `true`, parts may be retried. If `false`, a part cannot be retried and the upload should be restarted.
58
+ def retry_parts
59
+ @attributes[:retry_parts]
60
+ end
61
+
57
62
  # object - Additional HTTP parameters to send with the upload
58
63
  def parameters
59
64
  @attributes[:parameters]
@@ -54,15 +54,6 @@ module Files
54
54
  @attributes[:sent_at] = value
55
55
  end
56
56
 
57
- # int64 - User ID. Provide a value of `0` to operate the current session's user.
58
- def user_id
59
- @attributes[:user_id]
60
- end
61
-
62
- def user_id=(value)
63
- @attributes[:user_id] = value
64
- end
65
-
66
57
  # int64 - Inbox to share.
67
58
  def inbox_id
68
59
  @attributes[:inbox_id]
@@ -91,14 +82,12 @@ module Files
91
82
  end
92
83
 
93
84
  # Parameters:
94
- # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
95
85
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
96
86
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
97
87
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
98
88
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
99
89
  # inbox_id (required) - int64 - List recipients for the inbox with this ID.
100
90
  def self.list(params = {}, options = {})
101
- raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
102
91
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
103
92
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
104
93
  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
@@ -116,7 +105,6 @@ module Files
116
105
  end
117
106
 
118
107
  # Parameters:
119
- # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
120
108
  # inbox_id (required) - int64 - Inbox to share.
121
109
  # recipient (required) - string - Email address to share this inbox with.
122
110
  # name - string - Name of recipient.
@@ -124,7 +112,6 @@ module Files
124
112
  # note - string - Note to include in email.
125
113
  # share_after_create - boolean - Set to true to share the link with the recipient upon creation.
126
114
  def self.create(params = {}, options = {})
127
- raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
128
115
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
129
116
  raise InvalidParameterError.new("Bad parameter: recipient must be an String") if params[:recipient] and !params[:recipient].is_a?(String)
130
117
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
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.0.330
4
+ version: 1.0.331
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable