late-sdk 0.0.703 → 0.0.704
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 +4 -4
- data/docs/GetMediaPresignedUrl200Response.md +2 -2
- data/docs/GetMediaPresignedUrlRequest.md +3 -1
- data/docs/MediaApi.md +1 -1
- data/lib/zernio-sdk/api/media_api.rb +2 -2
- data/lib/zernio-sdk/models/get_media_presigned_url200_response.rb +2 -2
- data/lib/zernio-sdk/models/get_media_presigned_url_request.rb +16 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +16 -3
- data/spec/api/media_api_spec.rb +1 -1
- data/spec/models/get_media_presigned_url_request_spec.rb +6 -0
- data/zernio-sdk-0.0.704.gem +0 -0
- metadata +3 -3
- data/zernio-sdk-0.0.703.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8033cfdff68231d32ec8c9db798374531537ff46cb81c51f6d7900bdea54886
|
|
4
|
+
data.tar.gz: 2086366f640ad979689c034e0528d53af8e2a71736606bb97261b074efa225a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eced51237fc8d49711360db02e0101e5250d80674cb493bc34744f41b9df594672b1d86e4ee423bb663c268af77172b61a5225704085b8a739ef4b00732e7c79
|
|
7
|
+
data.tar.gz: 52159290fd41539d661f485ef69bfc48cb4feb8ce93b58e160d04138fe4765a28189ec76af14f92ff0284e642ffa00124ed63b4744df3de7bae278da61b5732a
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **upload_url** | **String** | Presigned URL to PUT your file to (expires in 1 hour) | [optional] |
|
|
8
|
-
| **public_url** | **String** | Public URL where the file will be accessible after upload | [optional] |
|
|
9
|
-
| **key** | **String** | Storage key/path of the file | [optional] |
|
|
8
|
+
| **public_url** | **String** | Public URL where the file will be accessible after upload. Served from the temp/ prefix by default (expires 7 days after upload) or from media/ when permanent is true. | [optional] |
|
|
9
|
+
| **key** | **String** | Storage key/path of the file. Prefixed temp/ by default, media/ when permanent is true. | [optional] |
|
|
10
10
|
| **expires_in** | **Integer** | Seconds until the presigned uploadUrl expires (always 3600) | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **filename** | **String** | Name of the file to upload | |
|
|
8
8
|
| **content_type** | **String** | MIME type of the file | |
|
|
9
9
|
| **size** | **Integer** | Optional file size in bytes for pre-validation (max 5GB) | [optional] |
|
|
10
|
+
| **permanent** | **Boolean** | Write the file to permanent storage instead of temporary storage. Temporary files auto-delete 7 days after upload; permanent files never expire. | [optional][default to false] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,7 +17,8 @@ require 'zernio-sdk'
|
|
|
16
17
|
instance = Zernio::GetMediaPresignedUrlRequest.new(
|
|
17
18
|
filename: my-video.mp4,
|
|
18
19
|
content_type: video/mp4,
|
|
19
|
-
size: 15234567
|
|
20
|
+
size: 15234567,
|
|
21
|
+
permanent: true
|
|
20
22
|
)
|
|
21
23
|
```
|
|
22
24
|
|
data/docs/MediaApi.md
CHANGED
|
@@ -13,7 +13,7 @@ All URIs are relative to *https://zernio.com/api*
|
|
|
13
13
|
|
|
14
14
|
Get upload URL
|
|
15
15
|
|
|
16
|
-
Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
16
|
+
Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts. By default the file is written to temporary storage and auto-deletes 7 days after upload, so the publicUrl stops resolving once that window passes. Send `permanent: true` to write straight to permanent storage, which has no expiry: use it for anything that must stay reachable for longer, in particular cover and thumbnail images on posts scheduled more than a week out.
|
|
17
17
|
|
|
18
18
|
### Examples
|
|
19
19
|
|
|
@@ -20,7 +20,7 @@ module Zernio
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Get upload URL
|
|
23
|
-
# Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
23
|
+
# Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts. By default the file is written to temporary storage and auto-deletes 7 days after upload, so the publicUrl stops resolving once that window passes. Send `permanent: true` to write straight to permanent storage, which has no expiry: use it for anything that must stay reachable for longer, in particular cover and thumbnail images on posts scheduled more than a week out.
|
|
24
24
|
# @param get_media_presigned_url_request [GetMediaPresignedUrlRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [GetMediaPresignedUrl200Response]
|
|
@@ -30,7 +30,7 @@ module Zernio
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Get upload URL
|
|
33
|
-
# Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
33
|
+
# Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts. By default the file is written to temporary storage and auto-deletes 7 days after upload, so the publicUrl stops resolving once that window passes. Send `permanent: true` to write straight to permanent storage, which has no expiry: use it for anything that must stay reachable for longer, in particular cover and thumbnail images on posts scheduled more than a week out.
|
|
34
34
|
# @param get_media_presigned_url_request [GetMediaPresignedUrlRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(GetMediaPresignedUrl200Response, Integer, Hash)>] GetMediaPresignedUrl200Response data, response status code and response headers
|
|
@@ -18,10 +18,10 @@ module Zernio
|
|
|
18
18
|
# Presigned URL to PUT your file to (expires in 1 hour)
|
|
19
19
|
attr_accessor :upload_url
|
|
20
20
|
|
|
21
|
-
# Public URL where the file will be accessible after upload
|
|
21
|
+
# Public URL where the file will be accessible after upload. Served from the temp/ prefix by default (expires 7 days after upload) or from media/ when permanent is true.
|
|
22
22
|
attr_accessor :public_url
|
|
23
23
|
|
|
24
|
-
# Storage key/path of the file
|
|
24
|
+
# Storage key/path of the file. Prefixed temp/ by default, media/ when permanent is true.
|
|
25
25
|
attr_accessor :key
|
|
26
26
|
|
|
27
27
|
# Seconds until the presigned uploadUrl expires (always 3600)
|
|
@@ -24,6 +24,9 @@ module Zernio
|
|
|
24
24
|
# Optional file size in bytes for pre-validation (max 5GB)
|
|
25
25
|
attr_accessor :size
|
|
26
26
|
|
|
27
|
+
# Write the file to permanent storage instead of temporary storage. Temporary files auto-delete 7 days after upload; permanent files never expire.
|
|
28
|
+
attr_accessor :permanent
|
|
29
|
+
|
|
27
30
|
class EnumAttributeValidator
|
|
28
31
|
attr_reader :datatype
|
|
29
32
|
attr_reader :allowable_values
|
|
@@ -51,7 +54,8 @@ module Zernio
|
|
|
51
54
|
{
|
|
52
55
|
:'filename' => :'filename',
|
|
53
56
|
:'content_type' => :'contentType',
|
|
54
|
-
:'size' => :'size'
|
|
57
|
+
:'size' => :'size',
|
|
58
|
+
:'permanent' => :'permanent'
|
|
55
59
|
}
|
|
56
60
|
end
|
|
57
61
|
|
|
@@ -70,7 +74,8 @@ module Zernio
|
|
|
70
74
|
{
|
|
71
75
|
:'filename' => :'String',
|
|
72
76
|
:'content_type' => :'String',
|
|
73
|
-
:'size' => :'Integer'
|
|
77
|
+
:'size' => :'Integer',
|
|
78
|
+
:'permanent' => :'Boolean'
|
|
74
79
|
}
|
|
75
80
|
end
|
|
76
81
|
|
|
@@ -111,6 +116,12 @@ module Zernio
|
|
|
111
116
|
if attributes.key?(:'size')
|
|
112
117
|
self.size = attributes[:'size']
|
|
113
118
|
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'permanent')
|
|
121
|
+
self.permanent = attributes[:'permanent']
|
|
122
|
+
else
|
|
123
|
+
self.permanent = false
|
|
124
|
+
end
|
|
114
125
|
end
|
|
115
126
|
|
|
116
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -167,7 +178,8 @@ module Zernio
|
|
|
167
178
|
self.class == o.class &&
|
|
168
179
|
filename == o.filename &&
|
|
169
180
|
content_type == o.content_type &&
|
|
170
|
-
size == o.size
|
|
181
|
+
size == o.size &&
|
|
182
|
+
permanent == o.permanent
|
|
171
183
|
end
|
|
172
184
|
|
|
173
185
|
# @see the `==` method
|
|
@@ -179,7 +191,7 @@ module Zernio
|
|
|
179
191
|
# Calculates hash code according to all attributes.
|
|
180
192
|
# @return [Integer] Hash code
|
|
181
193
|
def hash
|
|
182
|
-
[filename, content_type, size].hash
|
|
194
|
+
[filename, content_type, size, permanent].hash
|
|
183
195
|
end
|
|
184
196
|
|
|
185
197
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -12317,7 +12317,15 @@ paths:
|
|
|
12317
12317
|
operationId: getMediaPresignedUrl
|
|
12318
12318
|
tags: [Media]
|
|
12319
12319
|
summary: Get upload URL
|
|
12320
|
-
description:
|
|
12320
|
+
description: |
|
|
12321
|
+
Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an
|
|
12322
|
+
uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
12323
|
+
|
|
12324
|
+
By default the file is written to temporary storage and auto-deletes 7 days after upload,
|
|
12325
|
+
so the publicUrl stops resolving once that window passes. Send `permanent: true` to write
|
|
12326
|
+
straight to permanent storage, which has no expiry: use it for anything that must stay
|
|
12327
|
+
reachable for longer, in particular cover and thumbnail images on posts scheduled more
|
|
12328
|
+
than a week out.
|
|
12321
12329
|
requestBody:
|
|
12322
12330
|
required: true
|
|
12323
12331
|
content:
|
|
@@ -12359,6 +12367,11 @@ paths:
|
|
|
12359
12367
|
type: integer
|
|
12360
12368
|
description: Optional file size in bytes for pre-validation (max 5GB)
|
|
12361
12369
|
example: 15234567
|
|
12370
|
+
permanent:
|
|
12371
|
+
type: boolean
|
|
12372
|
+
default: false
|
|
12373
|
+
description: 'Write the file to permanent storage instead of temporary storage. Temporary files auto-delete 7 days after upload; permanent files never expire.'
|
|
12374
|
+
example: true
|
|
12362
12375
|
responses:
|
|
12363
12376
|
'200':
|
|
12364
12377
|
description: Presigned URL generated successfully
|
|
@@ -12374,10 +12387,10 @@ paths:
|
|
|
12374
12387
|
publicUrl:
|
|
12375
12388
|
type: string
|
|
12376
12389
|
format: uri
|
|
12377
|
-
description: Public URL where the file will be accessible after upload
|
|
12390
|
+
description: 'Public URL where the file will be accessible after upload. Served from the temp/ prefix by default (expires 7 days after upload) or from media/ when permanent is true.'
|
|
12378
12391
|
key:
|
|
12379
12392
|
type: string
|
|
12380
|
-
description: Storage key/path of the file
|
|
12393
|
+
description: 'Storage key/path of the file. Prefixed temp/ by default, media/ when permanent is true.'
|
|
12381
12394
|
expiresIn:
|
|
12382
12395
|
type: integer
|
|
12383
12396
|
description: Seconds until the presigned uploadUrl expires (always 3600)
|
data/spec/api/media_api_spec.rb
CHANGED
|
@@ -34,7 +34,7 @@ describe 'MediaApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for get_media_presigned_url
|
|
36
36
|
# Get upload URL
|
|
37
|
-
# Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
37
|
+
# Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts. By default the file is written to temporary storage and auto-deletes 7 days after upload, so the publicUrl stops resolving once that window passes. Send `permanent: true` to write straight to permanent storage, which has no expiry: use it for anything that must stay reachable for longer, in particular cover and thumbnail images on posts scheduled more than a week out.
|
|
38
38
|
# @param get_media_presigned_url_request
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [GetMediaPresignedUrl200Response]
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.704
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -5054,7 +5054,7 @@ files:
|
|
|
5054
5054
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5055
5055
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5056
5056
|
- spec/spec_helper.rb
|
|
5057
|
-
- zernio-sdk-0.0.
|
|
5057
|
+
- zernio-sdk-0.0.704.gem
|
|
5058
5058
|
- zernio-sdk.gemspec
|
|
5059
5059
|
homepage: https://openapi-generator.tech
|
|
5060
5060
|
licenses:
|
data/zernio-sdk-0.0.703.gem
DELETED
|
Binary file
|