late-sdk 0.0.704 → 0.0.705

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: d8033cfdff68231d32ec8c9db798374531537ff46cb81c51f6d7900bdea54886
4
- data.tar.gz: 2086366f640ad979689c034e0528d53af8e2a71736606bb97261b074efa225a8
3
+ metadata.gz: 7153cb1164607836b86fd1dbc18996db6245896bc0fe7309b7594bcd782368ff
4
+ data.tar.gz: 26865b20ff4a03a1657fe716dd906db9d0804fd349fd1872da9eff2f695f80c8
5
5
  SHA512:
6
- metadata.gz: eced51237fc8d49711360db02e0101e5250d80674cb493bc34744f41b9df594672b1d86e4ee423bb663c268af77172b61a5225704085b8a739ef4b00732e7c79
7
- data.tar.gz: 52159290fd41539d661f485ef69bfc48cb4feb8ce93b58e160d04138fe4765a28189ec76af14f92ff0284e642ffa00124ed63b4744df3de7bae278da61b5732a
6
+ metadata.gz: 11db15896f63af5f214d89f986aff25715529dcba274391ebaecaadceaf7bb6e2f507c3d9893af7f9cd5753f1e6e13b10a3862b21b2baf7d5e141fcca829f816
7
+ data.tar.gz: 732da95ad6b846017cf2f086687afc6d514c46a699e1a66119df51294453921d4ac9946158a684b3e54190adefcba605829d7da4d8ccffd2f5f99d42de16d7d7
@@ -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. 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] |
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] |
10
10
  | **expires_in** | **Integer** | Seconds until the presigned uploadUrl expires (always 3600) | [optional] |
11
11
 
12
12
  ## Example
@@ -7,7 +7,6 @@
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] |
11
10
 
12
11
  ## Example
13
12
 
@@ -17,8 +16,7 @@ require 'zernio-sdk'
17
16
  instance = Zernio::GetMediaPresignedUrlRequest.new(
18
17
  filename: my-video.mp4,
19
18
  content_type: video/mp4,
20
- size: 15234567,
21
- permanent: true
19
+ size: 15234567
22
20
  )
23
21
  ```
24
22
 
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. 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.
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.
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. 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.
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.
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. 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.
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.
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. Served from the temp/ prefix by default (expires 7 days after upload) or from media/ when permanent is true.
21
+ # Public URL where the file will be accessible after upload
22
22
  attr_accessor :public_url
23
23
 
24
- # Storage key/path of the file. Prefixed temp/ by default, media/ when permanent is true.
24
+ # Storage key/path of the file
25
25
  attr_accessor :key
26
26
 
27
27
  # Seconds until the presigned uploadUrl expires (always 3600)
@@ -24,9 +24,6 @@ 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
-
30
27
  class EnumAttributeValidator
31
28
  attr_reader :datatype
32
29
  attr_reader :allowable_values
@@ -54,8 +51,7 @@ module Zernio
54
51
  {
55
52
  :'filename' => :'filename',
56
53
  :'content_type' => :'contentType',
57
- :'size' => :'size',
58
- :'permanent' => :'permanent'
54
+ :'size' => :'size'
59
55
  }
60
56
  end
61
57
 
@@ -74,8 +70,7 @@ module Zernio
74
70
  {
75
71
  :'filename' => :'String',
76
72
  :'content_type' => :'String',
77
- :'size' => :'Integer',
78
- :'permanent' => :'Boolean'
73
+ :'size' => :'Integer'
79
74
  }
80
75
  end
81
76
 
@@ -116,12 +111,6 @@ module Zernio
116
111
  if attributes.key?(:'size')
117
112
  self.size = attributes[:'size']
118
113
  end
119
-
120
- if attributes.key?(:'permanent')
121
- self.permanent = attributes[:'permanent']
122
- else
123
- self.permanent = false
124
- end
125
114
  end
126
115
 
127
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -178,8 +167,7 @@ module Zernio
178
167
  self.class == o.class &&
179
168
  filename == o.filename &&
180
169
  content_type == o.content_type &&
181
- size == o.size &&
182
- permanent == o.permanent
170
+ size == o.size
183
171
  end
184
172
 
185
173
  # @see the `==` method
@@ -191,7 +179,7 @@ module Zernio
191
179
  # Calculates hash code according to all attributes.
192
180
  # @return [Integer] Hash code
193
181
  def hash
194
- [filename, content_type, size, permanent].hash
182
+ [filename, content_type, size].hash
195
183
  end
196
184
 
197
185
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.704'
14
+ VERSION = '0.0.705'
15
15
  end
data/openapi.yaml CHANGED
@@ -12317,15 +12317,7 @@ paths:
12317
12317
  operationId: getMediaPresignedUrl
12318
12318
  tags: [Media]
12319
12319
  summary: Get upload URL
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.
12320
+ description: 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.
12329
12321
  requestBody:
12330
12322
  required: true
12331
12323
  content:
@@ -12367,11 +12359,6 @@ paths:
12367
12359
  type: integer
12368
12360
  description: Optional file size in bytes for pre-validation (max 5GB)
12369
12361
  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
12375
12362
  responses:
12376
12363
  '200':
12377
12364
  description: Presigned URL generated successfully
@@ -12387,10 +12374,10 @@ paths:
12387
12374
  publicUrl:
12388
12375
  type: string
12389
12376
  format: uri
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.'
12377
+ description: Public URL where the file will be accessible after upload
12391
12378
  key:
12392
12379
  type: string
12393
- description: 'Storage key/path of the file. Prefixed temp/ by default, media/ when permanent is true.'
12380
+ description: Storage key/path of the file
12394
12381
  expiresIn:
12395
12382
  type: integer
12396
12383
  description: Seconds until the presigned uploadUrl expires (always 3600)
@@ -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. 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 &#x60;permanent: true&#x60; 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.
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.
38
38
  # @param get_media_presigned_url_request
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [GetMediaPresignedUrl200Response]
@@ -49,10 +49,4 @@ describe Zernio::GetMediaPresignedUrlRequest do
49
49
  end
50
50
  end
51
51
 
52
- describe 'test attribute "permanent"' do
53
- it 'should work' do
54
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
- end
56
- end
57
-
58
52
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.704
4
+ version: 0.0.705
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -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.704.gem
5057
+ - zernio-sdk-0.0.705.gem
5058
5058
  - zernio-sdk.gemspec
5059
5059
  homepage: https://openapi-generator.tech
5060
5060
  licenses:
Binary file