Skip to content

Commit 3502d0d

Browse files
authored
Uses globally shared TCClient by default (#36)
1 parent ad74e1d commit 3502d0d

275 files changed

Lines changed: 282 additions & 282 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Package.resolved

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ let package = Package(
293293
.library(name: "TecoZjV20190121", targets: ["TecoZjV20190121"]),
294294
],
295295
dependencies: [
296-
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.5"))
296+
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.6"))
297297
],
298298
targets: [
299299
.target(name: "TecoAaV20200224", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Aa/V20200224"),

Sources/Teco/Aa/V20200224/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public struct Aa: TCService {
3535
/// - timeout: Timeout value for HTTP requests.
3636
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Aa``.
3737
public init(
38-
client: TCClient,
38+
client: TCClient = .shared,
3939
region: TCRegion? = nil,
4040
language: TCServiceConfig.Language? = nil,
4141
endpoint: TCServiceConfig.Endpoint = .global,

Sources/Teco/Aai/V20180522/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public struct Aai: TCService {
3535
/// - timeout: Timeout value for HTTP requests.
3636
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Aai``.
3737
public init(
38-
client: TCClient,
38+
client: TCClient = .shared,
3939
region: TCRegion? = nil,
4040
language: TCServiceConfig.Language? = nil,
4141
endpoint: TCServiceConfig.Endpoint = .global,

Sources/Teco/Acp/V20220105/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct Acp: TCService {
3737
/// - timeout: Timeout value for HTTP requests.
3838
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Acp``.
3939
public init(
40-
client: TCClient,
40+
client: TCClient = .shared,
4141
region: TCRegion? = nil,
4242
language: TCServiceConfig.Language? = nil,
4343
endpoint: TCServiceConfig.Endpoint = .global,

Sources/Teco/Advisor/V20200721/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public struct Advisor: TCService {
3535
/// - timeout: Timeout value for HTTP requests.
3636
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Advisor``.
3737
public init(
38-
client: TCClient,
38+
client: TCClient = .shared,
3939
region: TCRegion? = nil,
4040
language: TCServiceConfig.Language? = nil,
4141
endpoint: TCServiceConfig.Endpoint = .global,

Sources/Teco/Af/V20200226/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct Af: TCService {
3737
/// - timeout: Timeout value for HTTP requests.
3838
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Af``.
3939
public init(
40-
client: TCClient,
40+
client: TCClient = .shared,
4141
region: TCRegion? = nil,
4242
language: TCServiceConfig.Language? = nil,
4343
endpoint: TCServiceConfig.Endpoint = .global,

Sources/Teco/Afc/V20200226/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct Afc: TCService {
3737
/// - timeout: Timeout value for HTTP requests.
3838
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Afc``.
3939
public init(
40-
client: TCClient,
40+
client: TCClient = .shared,
4141
region: TCRegion? = nil,
4242
language: TCServiceConfig.Language? = nil,
4343
endpoint: TCServiceConfig.Endpoint = .global,

Sources/Teco/Aiart/V20221229/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct Aiart: TCService {
3737
/// - timeout: Timeout value for HTTP requests.
3838
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Aiart``.
3939
public init(
40-
client: TCClient,
40+
client: TCClient = .shared,
4141
region: TCRegion? = nil,
4242
language: TCServiceConfig.Language? = nil,
4343
endpoint: TCServiceConfig.Endpoint = .global,

Sources/Teco/Ame/V20190916/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct Ame: TCService {
3737
/// - timeout: Timeout value for HTTP requests.
3838
/// - byteBufferAllocator: Byte buffer allocator used throughout ``Ame``.
3939
public init(
40-
client: TCClient,
40+
client: TCClient = .shared,
4141
region: TCRegion? = nil,
4242
language: TCServiceConfig.Language? = nil,
4343
endpoint: TCServiceConfig.Endpoint = .global,

0 commit comments

Comments
 (0)