-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e64cc80
commit b4dd533
Showing
7 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5678c55d78ebee898e89b47215b59cb855d1997cdda9202292548ec786d8e9f5 | ||
6f6d12eb33f0d5084520aa50a9dc9b3da87129501775807a5ed06bbf66485298 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// TooManyRequests.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
#if canImport(AnyCodable) | ||
import AnyCodable | ||
#endif | ||
|
||
public struct TooManyRequests: Codable, Hashable { | ||
|
||
/** A link to the error documentation. */ | ||
public var type: String? | ||
/** A description of the error that occurred. */ | ||
public var title: String? | ||
/** The HTTP status code. */ | ||
public var status: Int? | ||
|
||
public init(type: String? = nil, title: String? = nil, status: Int? = nil) { | ||
self.type = type | ||
self.title = title | ||
self.status = status | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case type | ||
case title | ||
case status | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(type, forKey: .type) | ||
try container.encodeIfPresent(title, forKey: .title) | ||
try container.encodeIfPresent(status, forKey: .status) | ||
} | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
Tests/TestResources/payloads/videos/upload/responses/429.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type" : "https://docs.api.video/reference/too-many-requests", | ||
"title" : "Too many requests.", | ||
"status" : 429 | ||
} |
5 changes: 5 additions & 0 deletions
5
Tests/TestResources/payloads/videos/uploadWithUploadToken/responses/429.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type" : "https://docs.api.video/reference/too-many-requests", | ||
"title" : "Too many requests.", | ||
"status" : 429 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# TooManyRequests | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**type** | **String** | A link to the error documentation. | [optional] | ||
**title** | **String** | A description of the error that occurred. | [optional] | ||
**status** | **Int** | The HTTP status code. | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|