Skip to content

Commit 1924990

Browse files
committed
Remove beta tags from Sanitize (PAN-16484)
1 parent eb426b9 commit 1924990

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

pangea-sdk/v3/service/sanitize/api.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
"github.com/pangeacyber/pangea-go/pangea-sdk/v3/pangea"
1111
)
1212

13-
// @summary Sanitize (Beta)
13+
// @summary Sanitize
1414
//
1515
// @description Apply file sanitization actions according to specified rules.
1616
//
17-
// @operationId sanitize_post_v1beta_sanitize
17+
// @operationId sanitize_post_v1_sanitize
1818
//
1919
// @example
2020
//
@@ -49,15 +49,15 @@ func (e *sanitize) Sanitize(ctx context.Context, input *SanitizeRequest, file io
4949
Name: name,
5050
}
5151

52-
return request.DoPostWithFile(ctx, e.Client, "v1beta/sanitize", input, &SanitizeResult{}, fd)
52+
return request.DoPostWithFile(ctx, e.Client, "v1/sanitize", input, &SanitizeResult{}, fd)
5353
}
5454

55-
// @summary Sanitize via presigned URL (Beta)
55+
// @summary Sanitize via presigned URL
5656
//
5757
// @description Apply file sanitization actions according to specified rules via
5858
// a presigned URL.
5959
//
60-
// @operationId sanitize_post_v1beta_sanitize 2
60+
// @operationId sanitize_post_v1_sanitize 2
6161
//
6262
// @example
6363
//
@@ -81,7 +81,7 @@ func (e *sanitize) RequestUploadURL(ctx context.Context, input *SanitizeRequest)
8181
return nil, errors.New("Need to set SHA256, CRC32C and Size in order to use TMpostURL")
8282
}
8383

84-
return request.GetUploadURL(ctx, e.Client, "v1beta/sanitize", input, &SanitizeResult{})
84+
return request.GetUploadURL(ctx, e.Client, "v1/sanitize", input, &SanitizeResult{})
8585
}
8686

8787
// SanitizeFile represents the SanitizeFile API request model.

pangea-sdk/v3/service/sanitize/integration_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ func Test_Integration_SanitizeAndShare(t *testing.T) {
2424
ctx, cancelFn := context.WithTimeout(context.Background(), 600*time.Second)
2525
defer cancelFn()
2626

27-
cfg := pangeatesting.IntegrationConfig(t, testingEnvironment)
27+
// The Sanitize config in the regular org was obsoleted by a breaking
28+
// change, so the custom schema org is used instead.
29+
cfg := pangeatesting.IntegrationCustomSchemaConfig(t, testingEnvironment)
2830
cfg.PollResultTimeout = 5 * time.Minute
2931
client := sanitize.New(cfg)
3032

0 commit comments

Comments
 (0)