File tree Expand file tree Collapse file tree 7 files changed +15
-13
lines changed Expand file tree Collapse file tree 7 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 15
15
import class Foundation. JSONDecoder
16
16
import class Foundation. JSONEncoder
17
17
18
- // https://cloud.tencent.com/document/product/583/12513
18
+ // https://intl. cloud.tencent.com/document/product/583/12513
19
19
20
20
public enum APIGateway {
21
21
/// `APIGateway.Request` contains data coming from the API Gateway.
@@ -50,12 +50,7 @@ public enum APIGateway {
50
50
}
51
51
52
52
/// `APIGateway.Response` stores response ready for sending to the API Gateway.
53
- public struct Response : Encodable {
54
- public let statusCode : HTTPResponseStatus
55
- public let headers : HTTPHeaders
56
- public let body : String
57
- public let isBase64Encoded : Bool
58
- }
53
+ public typealias Response = APIResponse
59
54
}
60
55
61
56
internal extension APIGateway {
Original file line number Diff line number Diff line change 12
12
//
13
13
//===------------------------------------------------------------------------------------===//
14
14
15
- // https://cloud.tencent.com/document/product/583/12513
15
+ // https://intl. cloud.tencent.com/document/product/583/12513
16
16
17
17
extension APIGateway . Request : Decodable {
18
18
enum CodingKeys : String , CodingKey {
Original file line number Diff line number Diff line change @@ -16,7 +16,14 @@ import struct Foundation.Data
16
16
17
17
// https://cloud.tencent.com/document/product/583/12513
18
18
19
- extension APIGateway . Response {
19
+ public struct APIResponse : Encodable {
20
+ public let statusCode : HTTPResponseStatus
21
+ public let headers : HTTPHeaders
22
+ public let body : String
23
+ public let isBase64Encoded : Bool
24
+ }
25
+
26
+ extension APIResponse {
20
27
public init (
21
28
statusCode: HTTPResponseStatus ,
22
29
headers: HTTPHeaders = [ : ] ,
Original file line number Diff line number Diff line change 12
12
//
13
13
//===------------------------------------------------------------------------------------===//
14
14
15
- // https://cloud.tencent.com/document/product/583/17530
15
+ // https://intl. cloud.tencent.com/document/product/583/17530
16
16
17
17
public enum CKafka {
18
18
public struct Event : Decodable , Equatable {
Original file line number Diff line number Diff line change 14
14
15
15
import struct Foundation. Date
16
16
17
- // https://cloud.tencent.com/document/product/583/11517
17
+ // https://intl. cloud.tencent.com/document/product/583/11517
18
18
19
19
public enum CMQ {
20
20
public enum Topic {
Original file line number Diff line number Diff line change 15
15
import struct Foundation. Date
16
16
import struct Foundation. URL
17
17
18
- // https://cloud.tencent.com/document/product/583/9707
18
+ // https://intl. cloud.tencent.com/document/product/583/9707
19
19
20
20
public enum COS {
21
21
public struct Event : Decodable , Equatable {
Original file line number Diff line number Diff line change 14
14
15
15
import struct Foundation. Date
16
16
17
- // https://cloud.tencent.com/document/product/583/9708
17
+ // https://intl. cloud.tencent.com/document/product/583/9708
18
18
19
19
public enum CTimer {
20
20
public struct Event : Decodable , Equatable {
You can’t perform that action at this time.
0 commit comments