Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Scripts/gen_swift_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ protoc \
"$PROTO_ROOT/common.proto" \
"$PROTO_ROOT/auth.proto" \
"$PROTO_ROOT/data_gateway.proto"

# protoc-gen-grpc-swift can emit trailing spaces on blank quoted doc-comment lines.
perl -pi -e 's/[ \t]+$//' "$OUT_DIR"/*.swift
2 changes: 1 addition & 1 deletion Sources/DGWAuth/CredentialAuthProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ package struct AuthServiceClientTransport<Client: Archebase_Auth_V1_AuthService.
timeout: Duration
) async throws -> Archebase_Auth_V1_ExchangeCredentialResponse {
var request = Archebase_Auth_V1_ExchangeCredentialRequest()
request.credentialBase64 = credentialBase64
request.credential = credentialBase64

var options = CallOptions.defaults
options.timeout = timeout
Expand Down
3 changes: 3 additions & 0 deletions Sources/DGWControlPlane/ControlPlaneTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ package protocol GatewayControlPlaneClientProtocol: Sendable {
rawTags: [String: String],
completedPartCount: Int32,
ossObjectEtag: String,
partSizeBytes: Int64,
authorizationHeader: String
) async throws -> Archebase_DataGateway_V1_CompleteUploadResponse
}
Expand Down Expand Up @@ -408,6 +409,7 @@ package final class GatewayControlPlaneClient<Client: Archebase_DataGateway_V1_D
rawTags: [String: String],
completedPartCount: Int32,
ossObjectEtag: String,
partSizeBytes: Int64,
authorizationHeader: String
) async throws -> Archebase_DataGateway_V1_CompleteUploadResponse {
var request = Archebase_DataGateway_V1_CompleteUploadRequest()
Expand All @@ -416,6 +418,7 @@ package final class GatewayControlPlaneClient<Client: Archebase_DataGateway_V1_D
request.rawTags = rawTags
request.completedPartCount = completedPartCount
request.ossObjectEtag = ossObjectEtag
request.partSizeBytes = partSizeBytes

let options = self.optionsBuilder.make(authorizationHeader: authorizationHeader)
let response: ClientResponse<Archebase_DataGateway_V1_CompleteUploadResponse> = try await self.client.completeUpload(
Expand Down
4 changes: 3 additions & 1 deletion Sources/DGWControlPlane/RetryExecutor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ package final class AuthenticatedGatewayControlPlaneClient<
fileSize: Int64,
rawTags: [String: String],
completedPartCount: Int32,
ossObjectEtag: String
ossObjectEtag: String,
partSizeBytes: Int64
) async throws -> Archebase_DataGateway_V1_CompleteUploadResponse {
try await self.retryExecutor.execute(policy: self.retryPolicy, refreshAuthorization: self.refreshAuthorization) {
let header = try await self.authProvider.authorizationHeader()
Expand All @@ -344,6 +345,7 @@ package final class AuthenticatedGatewayControlPlaneClient<
rawTags: rawTags,
completedPartCount: completedPartCount,
ossObjectEtag: ossObjectEtag,
partSizeBytes: partSizeBytes,
authorizationHeader: header
)
}
Expand Down
402 changes: 318 additions & 84 deletions Sources/DGWProto/Generated/auth.grpc.swift

Large diffs are not rendered by default.

Loading