Skip to content

Commit

Permalink
Uses globally shared TCClient by default (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple authored Oct 6, 2023
1 parent ad74e1d commit 3502d0d
Show file tree
Hide file tree
Showing 275 changed files with 282 additions and 282 deletions.
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/swift-server/async-http-client.git",
"state": {
"branch": null,
"revision": "864c8d9e0ead5de7ba70b61c8982f89126710863",
"version": "1.15.0"
"revision": "16f7e62c08c6969899ce6cc277041e868364e5cf",
"version": "1.19.0"
}
},
{
Expand Down Expand Up @@ -69,8 +69,8 @@
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "9b2848d76f5caad08b97e71a04345aa5bdb23a06",
"version": "2.49.0"
"revision": "3db5c4aeee8100d2db6f1eaf3864afdad5dc68fd",
"version": "2.59.0"
}
},
{
Expand Down Expand Up @@ -105,17 +105,17 @@
"repositoryURL": "https://github.com/apple/swift-nio-transport-services.git",
"state": {
"branch": null,
"revision": "c0d9a144cfaec8d3d596aadde3039286a266c15c",
"version": "1.15.0"
"revision": "e7403c35ca6bb539a7ca353b91cc2d8ec0362d58",
"version": "1.19.0"
}
},
{
"package": "teco-core",
"repositoryURL": "https://github.com/teco-project/teco-core.git",
"state": {
"branch": null,
"revision": "5005cb05f352dfe898e3c45fadbce1ba15233132",
"version": "0.5.5"
"revision": "18df839cc76c24ea228d686770bd38ad57cad00d",
"version": "0.5.6"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ let package = Package(
.library(name: "TecoZjV20190121", targets: ["TecoZjV20190121"]),
],
dependencies: [
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.5"))
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.6"))
],
targets: [
.target(name: "TecoAaV20200224", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Aa/V20200224"),
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Aa/V20200224/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Aa: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Aa``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Aai/V20180522/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Aai: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Aai``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Acp/V20220105/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Acp: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Acp``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Advisor/V20200721/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Advisor: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Advisor``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Af/V20200226/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Af: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Af``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Afc/V20200226/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Afc: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Afc``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Aiart/V20221229/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Aiart: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Aiart``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Ame/V20190916/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Ame: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Ame``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Ams/V20200608/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Ams: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Ams``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Ams/V20201229/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Ams: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Ams``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Anicloud/V20220923/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Anicloud: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Anicloud``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Antiddos/V20200309/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public struct Antiddos: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Antiddos``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Apcas/V20201127/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Apcas: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Apcas``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Ape/V20200513/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Ape: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Ape``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Api/V20201106/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Api: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Api``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Apigateway/V20180808/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Apigateway: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Apigateway``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Apm/V20210622/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public struct Apm: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Apm``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Asr/V20190614/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Asr: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Asr``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Asw/V20200722/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Asw: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Asw``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Autoscaling/V20180419/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct As: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``As``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Ba/V20200720/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Ba: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Ba``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Batch/V20170312/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Batch: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Batch``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bda/V20200324/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Bda: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bda``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bi/V20220105/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Bi: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bi``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Billing/V20180709/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Billing: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Billing``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bizlive/V20190313/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Bizlive: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bizlive``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bm/V20180423/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Bm: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bm``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bma/V20210624/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Bma: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bma``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bma/V20221115/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Bma: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bma``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bmeip/V20180625/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Bmeip: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bmeip``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bmlb/V20180625/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Bmlb: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bmlb``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bmvpc/V20180625/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Bmvpc: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bmvpc``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bpaas/V20181217/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public struct Bpaas: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bpaas``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bri/V20190328/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Bri: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bri``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Bsca/V20210811/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Bsca: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Bsca``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Btoe/V20210303/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public struct Btoe: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Btoe``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Btoe/V20210514/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public struct Btoe: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Btoe``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Teco/Cam/V20190116/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Cam: TCService {
/// - timeout: Timeout value for HTTP requests.
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Cam``.
public init(
client: TCClient,
client: TCClient = .shared,
region: TCRegion? = nil,
language: TCServiceConfig.Language? = nil,
endpoint: TCServiceConfig.Endpoint = .global,
Expand Down
Loading

0 comments on commit 3502d0d

Please sign in to comment.