mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Merge branch 'main' into criemen/pytest-ruby
This commit is contained in:
@@ -14,7 +14,7 @@ local_path_override(
|
||||
# see https://registry.bazel.build/ for a list of available packages
|
||||
|
||||
bazel_dep(name = "platforms", version = "0.0.10")
|
||||
bazel_dep(name = "rules_go", version = "0.48.0")
|
||||
bazel_dep(name = "rules_go", version = "0.49.0")
|
||||
bazel_dep(name = "rules_pkg", version = "0.10.1")
|
||||
bazel_dep(name = "rules_nodejs", version = "6.2.0-codeql.1")
|
||||
bazel_dep(name = "rules_python", version = "0.32.2")
|
||||
@@ -23,10 +23,10 @@ bazel_dep(name = "abseil-cpp", version = "20240116.0", repo_name = "absl")
|
||||
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
|
||||
bazel_dep(name = "fmt", version = "10.0.0")
|
||||
bazel_dep(name = "rules_kotlin", version = "1.9.4-codeql.1")
|
||||
bazel_dep(name = "gazelle", version = "0.37.0")
|
||||
bazel_dep(name = "gazelle", version = "0.38.0")
|
||||
bazel_dep(name = "rules_dotnet", version = "0.15.1")
|
||||
bazel_dep(name = "googletest", version = "1.14.0.bcr.1")
|
||||
bazel_dep(name = "rules_rust", version = "0.46.0")
|
||||
bazel_dep(name = "rules_rust", version = "0.49.1")
|
||||
|
||||
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
|
||||
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
|
||||
load("@gazelle//:def.bzl", "gazelle")
|
||||
load("@rules_pkg//pkg:mappings.bzl", "pkg_files")
|
||||
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files")
|
||||
|
||||
native_binary(
|
||||
gazelle(
|
||||
name = "gazelle",
|
||||
src = "@gazelle//cmd/gazelle",
|
||||
out = "gazelle.exe",
|
||||
args = ["go/extractor"],
|
||||
)
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ go_library(
|
||||
"//go/extractor/toolchain",
|
||||
"//go/extractor/trap",
|
||||
"//go/extractor/util",
|
||||
"@org_golang_x_mod//modfile:go_default_library",
|
||||
"@org_golang_x_tools//go/packages:go_default_library",
|
||||
"@org_golang_x_mod//modfile",
|
||||
"@org_golang_x_tools//go/packages",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
2
go/extractor/dbscheme/BUILD.bazel
generated
2
go/extractor/dbscheme/BUILD.bazel
generated
@@ -12,6 +12,6 @@ go_library(
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//go/extractor/trap",
|
||||
"@org_golang_x_tools//go/packages:go_default_library",
|
||||
"@org_golang_x_tools//go/packages",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@ go 1.22.0
|
||||
// when adding or removing dependencies, run
|
||||
// bazel mod tidy
|
||||
require (
|
||||
golang.org/x/mod v0.19.0
|
||||
golang.org/x/mod v0.20.0
|
||||
golang.org/x/tools v0.23.0
|
||||
)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
golang.org/x/mod v0.19.0 h1:fEdghXQSo20giMthA7cd28ZC+jts4amQ3YMXiP5oMQ8=
|
||||
golang.org/x/mod v0.19.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||
golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=
|
||||
golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
|
||||
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg=
|
||||
|
||||
4
go/extractor/project/BUILD.bazel
generated
4
go/extractor/project/BUILD.bazel
generated
@@ -11,7 +11,7 @@ go_library(
|
||||
"//go/extractor/diagnostics",
|
||||
"//go/extractor/toolchain",
|
||||
"//go/extractor/util",
|
||||
"@org_golang_x_mod//modfile:go_default_library",
|
||||
"@org_golang_x_mod//modfile",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -21,6 +21,6 @@ go_test(
|
||||
embed = [":project"],
|
||||
deps = [
|
||||
"//go/extractor/util",
|
||||
"@org_golang_x_mod//modfile:go_default_library",
|
||||
"@org_golang_x_mod//modfile",
|
||||
],
|
||||
)
|
||||
|
||||
2
go/extractor/trap/BUILD.bazel
generated
2
go/extractor/trap/BUILD.bazel
generated
@@ -14,7 +14,7 @@ go_library(
|
||||
deps = [
|
||||
"//go/extractor/srcarchive",
|
||||
"//go/extractor/util",
|
||||
"@org_golang_x_tools//go/packages:go_default_library",
|
||||
"@org_golang_x_tools//go/packages",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
4
go/extractor/util/BUILD.bazel
generated
4
go/extractor/util/BUILD.bazel
generated
@@ -10,7 +10,7 @@ go_library(
|
||||
],
|
||||
importpath = "github.com/github/codeql-go/extractor/util",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@org_golang_x_mod//semver:go_default_library"],
|
||||
deps = ["@org_golang_x_mod//semver"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
@@ -20,5 +20,5 @@ go_test(
|
||||
"util_test.go",
|
||||
],
|
||||
embed = [":util"],
|
||||
deps = ["@org_golang_x_mod//semver:go_default_library"],
|
||||
deps = ["@org_golang_x_mod//semver"],
|
||||
)
|
||||
|
||||
@@ -24,7 +24,7 @@ def options():
|
||||
opts = options()
|
||||
|
||||
try:
|
||||
workspace_dir = pathlib.Path(os.environ.pop('BUILD_WORKSPACE_DIRECTORY'))
|
||||
workspace_dir = pathlib.Path(os.environ['BUILD_WORKSPACE_DIRECTORY'])
|
||||
except KeyError:
|
||||
print("this should be run with bazel run", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
models
|
||||
| 1 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
| 1 | Summary: archive/tar; ; false; NewReader; ; ; Argument[0]; ReturnValue; taint; manual |
|
||||
| 2 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 3 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 4 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 1 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 2 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 3 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 4 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
edges
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:1 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:2 MaD:3 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:4 |
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:4 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:1 MaD:2 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:3 |
|
||||
| test.go:32:11:32:36 | call to Get | test.go:34:7:34:30 | ...+... | provenance | |
|
||||
nodes
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | semmle.label | call to ExecuteQuery |
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
models
|
||||
| 1 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
| 1 | Summary: archive/tar; ; false; NewReader; ; ; Argument[0]; ReturnValue; taint; manual |
|
||||
| 2 | Source: github.com/nonexistent/sources; ; false; ReadEnvironment; ; ; ReturnValue; environment; manual |
|
||||
| 2 | Summary: archive/tar; Header; true; FileInfo; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 3 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
| 3 | Summary: archive/tar; Writer; true; WriteHeader; ; ; Argument[0]; Argument[receiver]; taint; manual |
|
||||
| 4 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 5 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 6 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 1 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 2 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 3 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 4 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
| 5 | Source: github.com/nonexistent/sources; ; false; ReadEnvironment; ; ; ReturnValue; environment; manual |
|
||||
| 6 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
edges
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | test.go:11:7:11:29 | ...+... | provenance | Src:MaD:2 |
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:3 |
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:1 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:4 MaD:5 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:6 |
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | test.go:11:7:11:29 | ...+... | provenance | Src:MaD:5 |
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:6 |
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:4 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:1 MaD:2 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:3 |
|
||||
| test.go:32:11:32:36 | call to Get | test.go:34:7:34:30 | ...+... | provenance | |
|
||||
nodes
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | semmle.label | call to ReadEnvironment |
|
||||
|
||||
@@ -1,22 +1,18 @@
|
||||
models
|
||||
| 1 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
| 1 | Summary: archive/tar; ; false; NewReader; ; ; Argument[0]; ReturnValue; taint; manual |
|
||||
| 2 | Source: github.com/nonexistent/sources; ; false; ReadEnvironment; ; ; ReturnValue; environment; manual |
|
||||
| 2 | Summary: archive/tar; Header; true; FileInfo; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 3 | Source: github.com/nonexistent/sources; ; false; GetCustom; ; ; ReturnValue; custom; manual |
|
||||
| 3 | Summary: archive/tar; Reader; true; Next; ; ; Argument[receiver]; ReturnValue[0]; taint; manual |
|
||||
| 4 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
| 4 | Summary: archive/tar; Writer; true; WriteHeader; ; ; Argument[0]; Argument[receiver]; taint; manual |
|
||||
| 5 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 6 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 7 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 1 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 2 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 3 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 4 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
| 5 | Source: github.com/nonexistent/sources; ; false; ReadEnvironment; ; ; ReturnValue; environment; manual |
|
||||
| 6 | Source: github.com/nonexistent/sources; ; false; GetCustom; ; ; ReturnValue; custom; manual |
|
||||
| 7 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
edges
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | test.go:11:7:11:29 | ...+... | provenance | Src:MaD:2 |
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:4 |
|
||||
| test.go:21:11:21:36 | call to GetCustom | test.go:23:7:23:30 | ...+... | provenance | Src:MaD:3 |
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:1 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:5 MaD:6 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:7 |
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | test.go:11:7:11:29 | ...+... | provenance | Src:MaD:5 |
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:7 |
|
||||
| test.go:21:11:21:36 | call to GetCustom | test.go:23:7:23:30 | ...+... | provenance | Src:MaD:6 |
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:4 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:1 MaD:2 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:3 |
|
||||
| test.go:32:11:32:36 | call to Get | test.go:34:7:34:30 | ...+... | provenance | |
|
||||
nodes
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | semmle.label | call to ReadEnvironment |
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
models
|
||||
| 1 | Source: github.com/nonexistent/sources; ; false; ReadEnvironment; ; ; ReturnValue; environment; manual |
|
||||
| 1 | Summary: archive/tar; Reader; true; Next; ; ; Argument[receiver]; ReturnValue[0]; taint; manual |
|
||||
| 2 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
| 2 | Summary: archive/zip; ; false; FileInfoHeader; ; ; Argument[0]; ReturnValue[0]; taint; manual |
|
||||
| 3 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 4 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 5 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 1 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 2 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 3 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 4 | Source: github.com/nonexistent/sources; ; false; ReadEnvironment; ; ; ReturnValue; environment; manual |
|
||||
| 5 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
edges
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | test.go:11:7:11:29 | ...+... | provenance | Src:MaD:1 |
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:2 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:3 MaD:4 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:5 |
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | test.go:11:7:11:29 | ...+... | provenance | Src:MaD:4 |
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:5 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:1 MaD:2 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:3 |
|
||||
| test.go:32:11:32:36 | call to Get | test.go:34:7:34:30 | ...+... | provenance | |
|
||||
nodes
|
||||
| test.go:9:10:9:40 | call to ReadEnvironment | semmle.label | call to ReadEnvironment |
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
models
|
||||
| 1 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
| 1 | Summary: archive/tar; Header; true; FileInfo; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 2 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
| 2 | Summary: archive/zip; ; false; FileInfoHeader; ; ; Argument[0]; ReturnValue[0]; taint; manual |
|
||||
| 3 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 4 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 5 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 1 | Source: net/http; Request; true; URL; ; ; ; remote; manual |
|
||||
| 2 | Summary: net/url; URL; true; Query; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 3 | Summary: net/url; Values; true; Get; ; ; Argument[receiver]; ReturnValue; taint; manual |
|
||||
| 4 | Source: github.com/nonexistent/sources; ; false; ExecuteQuery; ; ; ReturnValue; database; manual |
|
||||
| 5 | Source: github.com/nonexistent/sources; ; false; GetCliArg; ; ; ReturnValue; commandargs; manual |
|
||||
edges
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:2 |
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:1 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:3 MaD:4 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:5 |
|
||||
| test.go:15:9:15:32 | call to GetCliArg | test.go:17:7:17:28 | ...+... | provenance | Src:MaD:5 |
|
||||
| test.go:27:11:27:63 | call to ExecuteQuery | test.go:28:7:28:11 | query | provenance | Src:MaD:4 |
|
||||
| test.go:32:11:32:15 | selection of URL | test.go:32:11:32:23 | call to Query | provenance | Src:MaD:1 MaD:2 |
|
||||
| test.go:32:11:32:23 | call to Query | test.go:32:11:32:36 | call to Get | provenance | MaD:3 |
|
||||
| test.go:32:11:32:36 | call to Get | test.go:34:7:34:30 | ...+... | provenance | |
|
||||
nodes
|
||||
| test.go:15:9:15:32 | call to GetCliArg | semmle.label | call to GetCliArg |
|
||||
|
||||
8
java/ql/lib/ext/experimental/java.nio.model.yml
Normal file
8
java/ql/lib/ext/experimental/java.nio.model.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["java.nio.file","FileSystems",true,"getFileSystem","(URI)","","Argument[0]","path-injection","manual"]
|
||||
- ["java.nio.channels","AsynchronousFileChannel",true,"open","(Path,OpenOption[])","","Argument[0]","path-injection","manual"]
|
||||
- ["java.nio.channels","AsynchronousFileChannel",true,"open","(Path,Set,ExecutorService,FileAttribute[])","","Argument[0]","path-injection","manual"]
|
||||
6
java/ql/lib/ext/experimental/java.util.zip.model.yml
Normal file
6
java/ql/lib/ext/experimental/java.util.zip.model.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["java.util.zip","ZipFile",true,"ZipFile","(String)","","Argument[0]","path-injection","manual"]
|
||||
13
java/ql/lib/ext/experimental/s3-transfer-manager.model.yml
Normal file
13
java/ql/lib/ext/experimental/s3-transfer-manager.model.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileUpload",true,"serializeToFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","DownloadFileRequest$Builder",true,"destination","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","UploadFileRequest$Builder",true,"source","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","DownloadDirectoryRequest$Builder",true,"destination","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileDownload",true,"fromFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileDownload",true,"serializeToFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileUpload",true,"fromFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","UploadDirectoryRequest$Builder",true,"source","(Path)","","Argument[0]","path-injection","manual"]
|
||||
26
java/ql/lib/ext/experimental/spring-core.model.yml
Normal file
26
java/ql/lib/ext/experimental/spring-core.model.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["org.springframework.core.io","FileSystemResource",true,"FileSystemResource","(FileSystem,String)","","Argument[1]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","FileSystemResource",true,"FileSystemResource","(File)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","FileSystemResource",true,"FileSystemResource","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","FileSystemResource",true,"FileSystemResource","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","FileUrlResource",true,"FileUrlResource","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","FileUrlResource",true,"FileUrlResource","(URL)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","PathResource",true,"PathResource","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","PathResource",true,"PathResource","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","PathResource",true,"PathResource","(URI)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","UrlResource",true,"UrlResource","(String,String,String)","","Argument[1]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","UrlResource",true,"UrlResource","(String,String)","","Argument[1]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","UrlResource",true,"UrlResource","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","UrlResource",true,"UrlResource","(URI)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.core.io","UrlResource",true,"UrlResource","(URL)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileSystemUtils",true,"copyRecursively","(Path,Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileSystemUtils",true,"copyRecursively","(Path,Path)","","Argument[1]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileSystemUtils",true,"deleteRecursively","(File)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileSystemUtils",true,"deleteRecursively","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","ResourceUtils",true,"getFile","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileCopyUtils",true,"copyToByteArray","(File)","","Argument[0]","path-injection","manual"]
|
||||
- ["org.springframework.util","FileSystemUtils",true,"copyRecursively","(File,File)","","Argument[0]","path-injection","manual"]
|
||||
7
java/ql/lib/ext/experimental/zip4j.model.yml
Normal file
7
java/ql/lib/ext/experimental/zip4j.model.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["net.lingala.zip4j","ZipFile",true,"extractAll","(String)","","Argument[0]","path-injection","manual"]
|
||||
- ["net.lingala.zip4j","ZipFile",true,"ZipFile","(String)","","Argument[0]","path-injection","manual"]
|
||||
@@ -0,0 +1,131 @@
|
||||
import software.amazon.awssdk.transfer.s3.S3TransferManager;
|
||||
import software.amazon.awssdk.transfer.s3.model.UploadFileRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.FileUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.FileDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.DirectoryUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedDirectoryUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.DirectoryDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedDirectoryDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.DownloadDirectoryRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.DownloadFileRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.ResumableFileUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.UploadDirectoryRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.ResumableFileDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedFileUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedFileDownload;
|
||||
import software.amazon.awssdk.transfer.s3.progress.LoggingTransferListener;
|
||||
|
||||
import java.net.URI;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
public class AmazonS3 {
|
||||
S3TransferManager transferManager = S3TransferManager.create();
|
||||
String bucketName = "bucketTest";
|
||||
String key = "keyTest";
|
||||
|
||||
public String uploadFile(URI filePathURI) {
|
||||
UploadFileRequest uploadFileRequest =
|
||||
UploadFileRequest.builder()
|
||||
.putObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.source(Paths.get(filePathURI)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
FileUpload fileUpload = this.transferManager.uploadFile(uploadFileRequest);
|
||||
|
||||
CompletedFileUpload uploadResult = fileUpload.completionFuture().join();
|
||||
return uploadResult.response().eTag();
|
||||
}
|
||||
|
||||
public String uploadFileResumable(URI filePathURI) {
|
||||
UploadFileRequest uploadFileRequest =
|
||||
UploadFileRequest.builder()
|
||||
.putObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.source(Paths.get(filePathURI)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
// Initiate the transfer
|
||||
FileUpload upload = this.transferManager.uploadFile(uploadFileRequest);
|
||||
// Pause the upload
|
||||
ResumableFileUpload resumableFileUpload = upload.pause();
|
||||
// Optionally, persist the resumableFileUpload
|
||||
resumableFileUpload.serializeToFile(Paths.get(filePathURI)); // $ hasTaintFlow="get(...)"
|
||||
// Retrieve the resumableFileUpload from the file
|
||||
ResumableFileUpload persistedResumableFileUpload =
|
||||
ResumableFileUpload.fromFile(Paths.get(filePathURI)); // $ hasTaintFlow="get(...)"
|
||||
// Resume the upload
|
||||
FileUpload resumedUpload = this.transferManager.resumeUploadFile(persistedResumableFileUpload);
|
||||
// Wait for the transfer to complete
|
||||
resumedUpload.completionFuture().join();
|
||||
FileUpload fileUpload = this.transferManager.uploadFile(uploadFileRequest);
|
||||
CompletedFileUpload uploadResult = fileUpload.completionFuture().join();
|
||||
return uploadResult.response().eTag();
|
||||
}
|
||||
|
||||
public String downloadFileResumable(URI downloadedFileWithPath) {
|
||||
DownloadFileRequest downloadFileRequest =
|
||||
DownloadFileRequest.builder()
|
||||
.getObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.destination(Paths.get(downloadedFileWithPath)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
// Initiate the transfer
|
||||
FileDownload download = this.transferManager.downloadFile(downloadFileRequest);
|
||||
// Pause the download
|
||||
ResumableFileDownload resumableFileDownload = download.pause();
|
||||
// Optionally, persist the resumableFileDownload
|
||||
resumableFileDownload.serializeToFile(Paths.get(downloadedFileWithPath)); // $ hasTaintFlow="get(...)"
|
||||
// Retrieve the resumableFileDownload from the file
|
||||
ResumableFileDownload persistedResumableFileDownload =
|
||||
ResumableFileDownload.fromFile(Paths.get(downloadedFileWithPath)); // $ hasTaintFlow="get(...)"
|
||||
// Resume the download
|
||||
FileDownload resumedDownload =
|
||||
this.transferManager.resumeDownloadFile(persistedResumableFileDownload);
|
||||
// Wait for the transfer to complete
|
||||
resumedDownload.completionFuture().join();
|
||||
FileDownload filedownload = this.transferManager.downloadFile(downloadFileRequest);
|
||||
CompletedFileDownload downloadResult = filedownload.completionFuture().join();
|
||||
return downloadResult.response().eTag();
|
||||
}
|
||||
|
||||
public Integer uploadDirectory(URI sourceDirectory) {
|
||||
DirectoryUpload directoryUpload =
|
||||
this.transferManager.uploadDirectory(
|
||||
UploadDirectoryRequest.builder()
|
||||
.source(Paths.get(sourceDirectory)) // $ hasTaintFlow="get(...)"
|
||||
.bucket(this.bucketName)
|
||||
.build());
|
||||
|
||||
CompletedDirectoryUpload completedDirectoryUpload = directoryUpload.completionFuture().join();
|
||||
return completedDirectoryUpload.failedTransfers().size();
|
||||
}
|
||||
|
||||
public Long downloadFile(String downloadedFileWithPath) {
|
||||
DownloadFileRequest downloadFileRequest =
|
||||
DownloadFileRequest.builder()
|
||||
.getObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.destination(Paths.get(downloadedFileWithPath)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
FileDownload downloadFile = this.transferManager.downloadFile(downloadFileRequest);
|
||||
|
||||
CompletedFileDownload downloadResult = downloadFile.completionFuture().join();
|
||||
return downloadResult.response().contentLength();
|
||||
}
|
||||
|
||||
public Integer downloadObjectsToDirectory(URI destinationPathURI) {
|
||||
DirectoryDownload directoryDownload =
|
||||
this.transferManager.downloadDirectory(
|
||||
DownloadDirectoryRequest.builder()
|
||||
.destination(Paths.get(destinationPathURI)) // $ hasTaintFlow="get(...)"
|
||||
.bucket(this.bucketName)
|
||||
.build());
|
||||
CompletedDirectoryDownload completedDirectoryDownload =
|
||||
directoryDownload.completionFuture().join();
|
||||
|
||||
return completedDirectoryDownload.failedTransfers().size();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import java.io.IOException;
|
||||
import java.io.File;
|
||||
import java.nio.channels.AsynchronousFileChannel;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.LinkOption;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.attribute.FileAttribute;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
public class JavaNio {
|
||||
static class FileAttr implements FileAttribute<String> {
|
||||
public String name() {
|
||||
return "file";
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return "value";
|
||||
}
|
||||
}
|
||||
|
||||
public void PathInjection(Path src, File srcF) throws IOException {
|
||||
AsynchronousFileChannel.open(src); // $ hasTaintFlow="src"
|
||||
AsynchronousFileChannel.open(src, LinkOption.NOFOLLOW_LINKS); // $ hasTaintFlow="src"
|
||||
AsynchronousFileChannel.open(
|
||||
src, LinkOption.NOFOLLOW_LINKS, LinkOption.NOFOLLOW_LINKS); // $ hasTaintFlow="src"
|
||||
ExecutorService executor = Executors.newFixedThreadPool(10);
|
||||
AsynchronousFileChannel.open(
|
||||
src, Set.of(LinkOption.NOFOLLOW_LINKS), executor); // $ hasTaintFlow="src"
|
||||
AsynchronousFileChannel.open(
|
||||
src, // $ hasTaintFlow="src"
|
||||
Set.of(LinkOption.NOFOLLOW_LINKS),
|
||||
executor,
|
||||
new FileAttr());
|
||||
|
||||
FileSystems.getFileSystem(srcF.toURI()); // $ hasTaintFlow="toURI(...)"
|
||||
}
|
||||
}
|
||||
35
java/ql/test/experimental/query-tests/security/CWE-022/Main.java
Executable file
35
java/ql/test/experimental/query-tests/security/CWE-022/Main.java
Executable file
@@ -0,0 +1,35 @@
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Path;
|
||||
import java.net.Socket;
|
||||
|
||||
public class Main {
|
||||
public void sendUserFileGood(Socket sock) throws IOException {
|
||||
BufferedReader filenameReader =
|
||||
new BufferedReader(new InputStreamReader(sock.getInputStream(), StandardCharsets.UTF_8));
|
||||
String path = filenameReader.readLine();
|
||||
Path src = Path.of(path);
|
||||
File srcF = new File(path);
|
||||
|
||||
new JavaNio().PathInjection(src, srcF);
|
||||
|
||||
new SpringIo().PathInjection(path);
|
||||
|
||||
AmazonS3 s3PathInjection = new AmazonS3();
|
||||
s3PathInjection.downloadFileResumable(src.toUri());
|
||||
s3PathInjection.downloadFile(path);
|
||||
s3PathInjection.downloadObjectsToDirectory(src.toUri());
|
||||
s3PathInjection.uploadFileResumable(src.toUri());
|
||||
s3PathInjection.uploadDirectory(src.toUri());
|
||||
s3PathInjection.uploadFile(src.toUri());
|
||||
|
||||
Zip4j zip4jfile = new Zip4j();
|
||||
zip4jfile.PathInjection(path);
|
||||
|
||||
ZipFile zipfile = new ZipFile();
|
||||
zipfile.PathInjection(path);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module version="4">
|
||||
<component name="AdditionalModuleElements">
|
||||
<content url="file://$MODULE_DIR$" dumb="true">
|
||||
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
|
||||
</content>
|
||||
</component>
|
||||
</module>
|
||||
46
java/ql/test/experimental/query-tests/security/CWE-022/SpringIo.java
Executable file
46
java/ql/test/experimental/query-tests/security/CWE-022/SpringIo.java
Executable file
@@ -0,0 +1,46 @@
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import org.springframework.core.io.FileUrlResource;
|
||||
import org.springframework.core.io.FileSystemResource;
|
||||
import org.springframework.core.io.PathResource;
|
||||
import org.springframework.core.io.UrlResource;
|
||||
import org.springframework.util.FileCopyUtils;
|
||||
import org.springframework.util.FileSystemUtils;
|
||||
|
||||
public class SpringIo {
|
||||
public void PathInjection(String path) throws IOException {
|
||||
Path fileStorageLocation = Paths.get(path).toAbsolutePath().normalize();
|
||||
Path filePath = fileStorageLocation.resolve(path).normalize();
|
||||
File pathFile = new File(path);
|
||||
|
||||
new UrlResource(filePath.toUri()); // $ hasTaintFlow="toUri(...)"
|
||||
new UrlResource(filePath.toUri().toURL()); // $ hasTaintFlow="toURL(...)"
|
||||
new UrlResource("file", path); // $ hasTaintFlow="path"
|
||||
new UrlResource("file", path, "#"); // $ hasTaintFlow="path"
|
||||
new UrlResource(path); // $ hasTaintFlow="path"
|
||||
|
||||
new PathResource(path); // $ hasTaintFlow="path"
|
||||
new PathResource(filePath); // $ hasTaintFlow="filePath"
|
||||
new PathResource(filePath.toUri()); // $ hasTaintFlow="toUri(...)"
|
||||
|
||||
new FileUrlResource(filePath.toUri().toURL()); // $ hasTaintFlow="toURL(...)"
|
||||
new FileUrlResource(path); // $ hasTaintFlow="path"
|
||||
|
||||
new FileSystemResource(pathFile); // $ hasTaintFlow="pathFile"
|
||||
new FileSystemResource(path); // $ hasTaintFlow="path"
|
||||
new FileSystemResource(filePath); // $ hasTaintFlow="filePath"
|
||||
new FileSystemResource(
|
||||
FileSystems.getFileSystem(URI.create("file:///")), path); // $ hasTaintFlow="path"
|
||||
|
||||
FileSystemUtils.copyRecursively(filePath, filePath.resolve("/newPath")); // $ hasTaintFlow="filePath" hasTaintFlow="resolve(...)"
|
||||
FileSystemUtils.copyRecursively(pathFile, pathFile); // $ hasTaintFlow="pathFile"
|
||||
FileSystemUtils.deleteRecursively(pathFile); // $ hasTaintFlow="pathFile"
|
||||
FileSystemUtils.deleteRecursively(filePath); // $ hasTaintFlow="filePath"
|
||||
FileCopyUtils.copy(pathFile, pathFile); // $ hasTaintFlow="pathFile"
|
||||
FileCopyUtils.copyToByteArray(pathFile); // $ hasTaintFlow="pathFile"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import java
|
||||
import TestUtilities.InlineFlowTest
|
||||
import semmle.code.java.security.TaintedPathQuery
|
||||
import TaintFlowTestArgString<TaintedPathConfig, getArgString/2>
|
||||
|
||||
string getArgString(DataFlow::Node src, DataFlow::Node sink) {
|
||||
exists(src) and
|
||||
result = "\"" + sink.toString() + "\""
|
||||
}
|
||||
9
java/ql/test/experimental/query-tests/security/CWE-022/Zip4j.java
Executable file
9
java/ql/test/experimental/query-tests/security/CWE-022/Zip4j.java
Executable file
@@ -0,0 +1,9 @@
|
||||
import java.io.IOException;
|
||||
import net.lingala.zip4j.ZipFile;
|
||||
|
||||
public class Zip4j {
|
||||
public void PathInjection(String path) throws IOException {
|
||||
ZipFile zipfile = new ZipFile(path); // $ hasTaintFlow="path"
|
||||
zipfile.extractAll(path); // $ hasTaintFlow="path"
|
||||
}
|
||||
}
|
||||
7
java/ql/test/experimental/query-tests/security/CWE-022/ZipFile.java
Executable file
7
java/ql/test/experimental/query-tests/security/CWE-022/ZipFile.java
Executable file
@@ -0,0 +1,7 @@
|
||||
import java.io.IOException;
|
||||
|
||||
public class ZipFile {
|
||||
public void PathInjection(String path) throws IOException {
|
||||
new java.util.zip.ZipFile(path); // $ hasTaintFlow="path"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/lingala-zip4j-2.11.5:${testdir}/../../../stubs/software-amazon-awssdk-crt-0.20.3:${testdir}/../../../../stubs/springframework-5.3.8:${testdir}/../../../stubs/reactivestreams-1.0.4:${testdir}/../../../../stubs/slf4j-2.0.0
|
||||
78
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/ZipFile.java
generated
Normal file
78
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/ZipFile.java
generated
Normal file
@@ -0,0 +1,78 @@
|
||||
// Generated automatically from net.lingala.zip4j.ZipFile for testing purposes
|
||||
|
||||
package net.lingala.zip4j;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import net.lingala.zip4j.io.inputstream.ZipInputStream;
|
||||
import net.lingala.zip4j.model.FileHeader;
|
||||
import net.lingala.zip4j.model.UnzipParameters;
|
||||
import net.lingala.zip4j.model.ZipParameters;
|
||||
import net.lingala.zip4j.progress.ProgressMonitor;
|
||||
|
||||
public class ZipFile implements Closeable
|
||||
{
|
||||
protected ZipFile() {}
|
||||
public Charset getCharset(){ return null; }
|
||||
public ExecutorService getExecutorService(){ return null; }
|
||||
public File getFile(){ return null; }
|
||||
public FileHeader getFileHeader(String p0){ return null; }
|
||||
public List<File> getSplitZipFiles(){ return null; }
|
||||
public List<FileHeader> getFileHeaders(){ return null; }
|
||||
public ProgressMonitor getProgressMonitor(){ return null; }
|
||||
public String getComment(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public ZipFile(File p0){}
|
||||
public ZipFile(File p0, char[] p1){}
|
||||
public ZipFile(String p0){}
|
||||
public ZipFile(String p0, char[] p1){}
|
||||
public ZipInputStream getInputStream(FileHeader p0){ return null; }
|
||||
public boolean isEncrypted(){ return false; }
|
||||
public boolean isRunInThread(){ return false; }
|
||||
public boolean isSplitArchive(){ return false; }
|
||||
public boolean isUseUtf8CharsetForPasswords(){ return false; }
|
||||
public boolean isValidZipFile(){ return false; }
|
||||
public int getBufferSize(){ return 0; }
|
||||
public void addFile(File p0){}
|
||||
public void addFile(File p0, ZipParameters p1){}
|
||||
public void addFile(String p0){}
|
||||
public void addFile(String p0, ZipParameters p1){}
|
||||
public void addFiles(List<File> p0){}
|
||||
public void addFiles(List<File> p0, ZipParameters p1){}
|
||||
public void addFolder(File p0){}
|
||||
public void addFolder(File p0, ZipParameters p1){}
|
||||
public void addStream(InputStream p0, ZipParameters p1){}
|
||||
public void close(){}
|
||||
public void createSplitZipFile(List<File> p0, ZipParameters p1, boolean p2, long p3){}
|
||||
public void createSplitZipFileFromFolder(File p0, ZipParameters p1, boolean p2, long p3){}
|
||||
public void extractAll(String p0){}
|
||||
public void extractAll(String p0, UnzipParameters p1){}
|
||||
public void extractFile(FileHeader p0, String p1){}
|
||||
public void extractFile(FileHeader p0, String p1, String p2){}
|
||||
public void extractFile(FileHeader p0, String p1, String p2, UnzipParameters p3){}
|
||||
public void extractFile(FileHeader p0, String p1, UnzipParameters p2){}
|
||||
public void extractFile(String p0, String p1){}
|
||||
public void extractFile(String p0, String p1, String p2){}
|
||||
public void extractFile(String p0, String p1, String p2, UnzipParameters p3){}
|
||||
public void extractFile(String p0, String p1, UnzipParameters p2){}
|
||||
public void mergeSplitFiles(File p0){}
|
||||
public void removeFile(FileHeader p0){}
|
||||
public void removeFile(String p0){}
|
||||
public void removeFiles(List<String> p0){}
|
||||
public void renameFile(FileHeader p0, String p1){}
|
||||
public void renameFile(String p0, String p1){}
|
||||
public void renameFiles(Map<String, String> p0){}
|
||||
public void setBufferSize(int p0){}
|
||||
public void setCharset(Charset p0){}
|
||||
public void setComment(String p0){}
|
||||
public void setPassword(char[] p0){}
|
||||
public void setRunInThread(boolean p0){}
|
||||
public void setThreadFactory(ThreadFactory p0){}
|
||||
public void setUseUtf8CharsetForPasswords(boolean p0){}
|
||||
}
|
||||
10
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ExcludeFileFilter.java
generated
Normal file
10
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ExcludeFileFilter.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.ExcludeFileFilter for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public interface ExcludeFileFilter
|
||||
{
|
||||
boolean isExcluded(File p0);
|
||||
}
|
||||
11
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/UnzipParameters.java
generated
Normal file
11
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/UnzipParameters.java
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.UnzipParameters for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
|
||||
public class UnzipParameters
|
||||
{
|
||||
public UnzipParameters(){}
|
||||
public boolean isExtractSymbolicLinks(){ return false; }
|
||||
public void setExtractSymbolicLinks(boolean p0){}
|
||||
}
|
||||
63
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ZipParameters.java
generated
Normal file
63
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ZipParameters.java
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.ZipParameters for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.model.ExcludeFileFilter;
|
||||
import net.lingala.zip4j.model.enums.AesKeyStrength;
|
||||
import net.lingala.zip4j.model.enums.AesVersion;
|
||||
import net.lingala.zip4j.model.enums.CompressionLevel;
|
||||
import net.lingala.zip4j.model.enums.CompressionMethod;
|
||||
import net.lingala.zip4j.model.enums.EncryptionMethod;
|
||||
|
||||
public class ZipParameters
|
||||
{
|
||||
public AesKeyStrength getAesKeyStrength(){ return null; }
|
||||
public AesVersion getAesVersion(){ return null; }
|
||||
public CompressionLevel getCompressionLevel(){ return null; }
|
||||
public CompressionMethod getCompressionMethod(){ return null; }
|
||||
public EncryptionMethod getEncryptionMethod(){ return null; }
|
||||
public ExcludeFileFilter getExcludeFileFilter(){ return null; }
|
||||
public String getDefaultFolderPath(){ return null; }
|
||||
public String getFileComment(){ return null; }
|
||||
public String getFileNameInZip(){ return null; }
|
||||
public String getRootFolderNameInZip(){ return null; }
|
||||
public ZipParameters(){}
|
||||
public ZipParameters(ZipParameters p0){}
|
||||
public ZipParameters.SymbolicLinkAction getSymbolicLinkAction(){ return null; }
|
||||
public boolean isEncryptFiles(){ return false; }
|
||||
public boolean isIncludeRootFolder(){ return false; }
|
||||
public boolean isOverrideExistingFilesInZip(){ return false; }
|
||||
public boolean isReadHiddenFiles(){ return false; }
|
||||
public boolean isReadHiddenFolders(){ return false; }
|
||||
public boolean isUnixMode(){ return false; }
|
||||
public boolean isWriteExtendedLocalFileHeader(){ return false; }
|
||||
public long getEntryCRC(){ return 0; }
|
||||
public long getEntrySize(){ return 0; }
|
||||
public long getLastModifiedFileTime(){ return 0; }
|
||||
public void setAesKeyStrength(AesKeyStrength p0){}
|
||||
public void setAesVersion(AesVersion p0){}
|
||||
public void setCompressionLevel(CompressionLevel p0){}
|
||||
public void setCompressionMethod(CompressionMethod p0){}
|
||||
public void setDefaultFolderPath(String p0){}
|
||||
public void setEncryptFiles(boolean p0){}
|
||||
public void setEncryptionMethod(EncryptionMethod p0){}
|
||||
public void setEntryCRC(long p0){}
|
||||
public void setEntrySize(long p0){}
|
||||
public void setExcludeFileFilter(ExcludeFileFilter p0){}
|
||||
public void setFileComment(String p0){}
|
||||
public void setFileNameInZip(String p0){}
|
||||
public void setIncludeRootFolder(boolean p0){}
|
||||
public void setLastModifiedFileTime(long p0){}
|
||||
public void setOverrideExistingFilesInZip(boolean p0){}
|
||||
public void setReadHiddenFiles(boolean p0){}
|
||||
public void setReadHiddenFolders(boolean p0){}
|
||||
public void setRootFolderNameInZip(String p0){}
|
||||
public void setSymbolicLinkAction(ZipParameters.SymbolicLinkAction p0){}
|
||||
public void setUnixMode(boolean p0){}
|
||||
public void setWriteExtendedLocalFileHeader(boolean p0){}
|
||||
static public enum SymbolicLinkAction
|
||||
{
|
||||
INCLUDE_LINKED_FILE_ONLY, INCLUDE_LINK_AND_LINKED_FILE, INCLUDE_LINK_ONLY;
|
||||
private SymbolicLinkAction() {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.enums.CompressionLevel for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model.enums;
|
||||
|
||||
|
||||
public enum CompressionLevel
|
||||
{
|
||||
FAST, FASTER, FASTEST, HIGHER, MAXIMUM, MEDIUM_FAST, NORMAL, NO_COMPRESSION, PRE_ULTRA, ULTRA;
|
||||
private CompressionLevel() {}
|
||||
public int getLevel(){ return 0; }
|
||||
}
|
||||
47
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/progress/ProgressMonitor.java
generated
Normal file
47
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/progress/ProgressMonitor.java
generated
Normal file
@@ -0,0 +1,47 @@
|
||||
// Generated automatically from net.lingala.zip4j.progress.ProgressMonitor for testing purposes
|
||||
|
||||
package net.lingala.zip4j.progress;
|
||||
|
||||
|
||||
public class ProgressMonitor
|
||||
{
|
||||
public Exception getException(){ return null; }
|
||||
public ProgressMonitor(){}
|
||||
public ProgressMonitor.Result getResult(){ return null; }
|
||||
public ProgressMonitor.State getState(){ return null; }
|
||||
public ProgressMonitor.Task getCurrentTask(){ return null; }
|
||||
public String getFileName(){ return null; }
|
||||
public boolean isCancelAllTasks(){ return false; }
|
||||
public boolean isPause(){ return false; }
|
||||
public int getPercentDone(){ return 0; }
|
||||
public long getTotalWork(){ return 0; }
|
||||
public long getWorkCompleted(){ return 0; }
|
||||
public void endProgressMonitor(){}
|
||||
public void endProgressMonitor(Exception p0){}
|
||||
public void fullReset(){}
|
||||
public void setCancelAllTasks(boolean p0){}
|
||||
public void setCurrentTask(ProgressMonitor.Task p0){}
|
||||
public void setException(Exception p0){}
|
||||
public void setFileName(String p0){}
|
||||
public void setPause(boolean p0){}
|
||||
public void setPercentDone(int p0){}
|
||||
public void setResult(ProgressMonitor.Result p0){}
|
||||
public void setState(ProgressMonitor.State p0){}
|
||||
public void setTotalWork(long p0){}
|
||||
public void updateWorkCompleted(long p0){}
|
||||
static public enum Result
|
||||
{
|
||||
CANCELLED, ERROR, SUCCESS, WORK_IN_PROGRESS;
|
||||
private Result() {}
|
||||
}
|
||||
static public enum State
|
||||
{
|
||||
BUSY, READY;
|
||||
private State() {}
|
||||
}
|
||||
static public enum Task
|
||||
{
|
||||
ADD_ENTRY, CALCULATE_CRC, EXTRACT_ENTRY, MERGE_ZIP_FILES, NONE, REMOVE_ENTRY, RENAME_FILE, SET_COMMENT;
|
||||
private Task() {}
|
||||
}
|
||||
}
|
||||
10
java/ql/test/experimental/stubs/reactivestreams-1.0.4/org/reactivestreams/Publisher.java
generated
Normal file
10
java/ql/test/experimental/stubs/reactivestreams-1.0.4/org/reactivestreams/Publisher.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from org.reactivestreams.Publisher for testing purposes
|
||||
|
||||
package org.reactivestreams;
|
||||
|
||||
import org.reactivestreams.Subscriber;
|
||||
|
||||
public interface Publisher<T>
|
||||
{
|
||||
void subscribe(org.reactivestreams.Subscriber<? super T> p0);
|
||||
}
|
||||
13
java/ql/test/experimental/stubs/reactivestreams-1.0.4/org/reactivestreams/Subscriber.java
generated
Normal file
13
java/ql/test/experimental/stubs/reactivestreams-1.0.4/org/reactivestreams/Subscriber.java
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from org.reactivestreams.Subscriber for testing purposes
|
||||
|
||||
package org.reactivestreams;
|
||||
|
||||
import org.reactivestreams.Subscription;
|
||||
|
||||
public interface Subscriber<T>
|
||||
{
|
||||
void onComplete();
|
||||
void onError(Throwable p0);
|
||||
void onNext(T p0);
|
||||
void onSubscribe(Subscription p0);
|
||||
}
|
||||
10
java/ql/test/experimental/stubs/reactivestreams-1.0.4/org/reactivestreams/Subscription.java
generated
Normal file
10
java/ql/test/experimental/stubs/reactivestreams-1.0.4/org/reactivestreams/Subscription.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from org.reactivestreams.Subscription for testing purposes
|
||||
|
||||
package org.reactivestreams;
|
||||
|
||||
|
||||
public interface Subscription
|
||||
{
|
||||
void cancel();
|
||||
void request(long p0);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from software.amazon.awssdk.auth.credentials.AwsCredentials for testing purposes
|
||||
|
||||
package software.amazon.awssdk.auth.credentials;
|
||||
|
||||
|
||||
public interface AwsCredentials
|
||||
{
|
||||
String accessKeyId();
|
||||
String secretAccessKey();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from software.amazon.awssdk.auth.credentials.AwsCredentialsProvider for testing purposes
|
||||
|
||||
package software.amazon.awssdk.auth.credentials;
|
||||
|
||||
import software.amazon.awssdk.auth.credentials.AwsCredentials;
|
||||
|
||||
public interface AwsCredentialsProvider
|
||||
{
|
||||
AwsCredentials resolveCredentials();
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsRequest for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
|
||||
import software.amazon.awssdk.core.SdkRequest;
|
||||
|
||||
abstract public class AwsRequest extends SdkRequest
|
||||
{
|
||||
protected AwsRequest() {}
|
||||
protected AwsRequest(AwsRequest.Builder p0){}
|
||||
public abstract AwsRequest.Builder toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final Optional<AwsRequestOverrideConfiguration> overrideConfiguration(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder extends SdkRequest.Builder
|
||||
{
|
||||
AwsRequest build();
|
||||
AwsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration p0);
|
||||
AwsRequest.Builder overrideConfiguration(java.util.function.Consumer<AwsRequestOverrideConfiguration.Builder> p0);
|
||||
AwsRequestOverrideConfiguration overrideConfiguration();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
|
||||
import software.amazon.awssdk.core.RequestOverrideConfiguration;
|
||||
import software.amazon.awssdk.utils.builder.SdkBuilder;
|
||||
|
||||
public class AwsRequestOverrideConfiguration extends RequestOverrideConfiguration
|
||||
{
|
||||
protected AwsRequestOverrideConfiguration() {}
|
||||
public AwsRequestOverrideConfiguration.Builder toBuilder(){ return null; }
|
||||
public Optional<AwsCredentialsProvider> credentialsProvider(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static AwsRequestOverrideConfiguration from(RequestOverrideConfiguration p0){ return null; }
|
||||
public static AwsRequestOverrideConfiguration.Builder builder(){ return null; }
|
||||
static public interface Builder extends RequestOverrideConfiguration.Builder<AwsRequestOverrideConfiguration.Builder>, SdkBuilder<AwsRequestOverrideConfiguration.Builder, AwsRequestOverrideConfiguration>
|
||||
{
|
||||
AwsCredentialsProvider credentialsProvider();
|
||||
AwsRequestOverrideConfiguration build();
|
||||
AwsRequestOverrideConfiguration.Builder credentialsProvider(AwsCredentialsProvider p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsResponse for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import software.amazon.awssdk.awscore.AwsResponseMetadata;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
|
||||
abstract public class AwsResponse extends SdkResponse
|
||||
{
|
||||
protected AwsResponse() {}
|
||||
protected AwsResponse(AwsResponse.Builder p0){}
|
||||
public AwsResponseMetadata responseMetadata(){ return null; }
|
||||
public abstract AwsResponse.Builder toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder extends SdkResponse.Builder
|
||||
{
|
||||
AwsResponse build();
|
||||
AwsResponse.Builder responseMetadata(AwsResponseMetadata p0);
|
||||
AwsResponseMetadata responseMetadata();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsResponseMetadata for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
abstract public class AwsResponseMetadata
|
||||
{
|
||||
protected AwsResponseMetadata() {}
|
||||
protected AwsResponseMetadata(AwsResponseMetadata p0){}
|
||||
protected AwsResponseMetadata(Map<String, String> p0){}
|
||||
protected final String getValue(String p0){ return null; }
|
||||
public String requestId(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final String toString(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.client.builder;
|
||||
|
||||
import software.amazon.awssdk.core.client.builder.SdkAsyncClientBuilder;
|
||||
|
||||
public interface AwsAsyncClientBuilder<B extends AwsAsyncClientBuilder<B, C>, C> extends SdkAsyncClientBuilder<B, C>
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.client.builder.AwsClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.client.builder;
|
||||
|
||||
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
|
||||
import software.amazon.awssdk.awscore.defaultsmode.DefaultsMode;
|
||||
import software.amazon.awssdk.core.client.builder.SdkClientBuilder;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
|
||||
public interface AwsClientBuilder<BuilderT extends AwsClientBuilder<BuilderT, ClientT>, ClientT> extends SdkClientBuilder<BuilderT, ClientT>
|
||||
{
|
||||
BuilderT credentialsProvider(AwsCredentialsProvider p0);
|
||||
BuilderT dualstackEnabled(Boolean p0);
|
||||
BuilderT fipsEnabled(Boolean p0);
|
||||
BuilderT region(Region p0);
|
||||
default BuilderT defaultsMode(DefaultsMode p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.defaultsmode.DefaultsMode for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.defaultsmode;
|
||||
|
||||
|
||||
public enum DefaultsMode
|
||||
{
|
||||
AUTO, CROSS_REGION, IN_REGION, LEGACY, MOBILE, STANDARD;
|
||||
private DefaultsMode() {}
|
||||
public String toString(){ return null; }
|
||||
public static DefaultsMode fromValue(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandler for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.eventstream;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public interface EventStreamResponseHandler<ResponseT, EventT>
|
||||
{
|
||||
static public interface Builder<ResponseT, EventT, SubBuilderT>
|
||||
{
|
||||
SubBuilderT onComplete(Runnable p0);
|
||||
SubBuilderT onError(Consumer<Throwable> p0);
|
||||
SubBuilderT onEventStream(Consumer<software.amazon.awssdk.core.async.SdkPublisher<EventT>> p0);
|
||||
SubBuilderT onResponse(Consumer<ResponseT> p0);
|
||||
SubBuilderT publisherTransformer(Function<software.amazon.awssdk.core.async.SdkPublisher<EventT>, software.amazon.awssdk.core.async.SdkPublisher<EventT>> p0);
|
||||
SubBuilderT subscriber(Consumer<EventT> p0);
|
||||
SubBuilderT subscriber(Supplier<Subscriber<EventT>> p0);
|
||||
}
|
||||
void complete();
|
||||
void exceptionOccurred(Throwable p0);
|
||||
void onEventStream(software.amazon.awssdk.core.async.SdkPublisher<EventT> p0);
|
||||
void responseReceived(ResponseT p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ApiName for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
|
||||
public class ApiName
|
||||
{
|
||||
protected ApiName() {}
|
||||
public String name(){ return null; }
|
||||
public String version(){ return null; }
|
||||
public static ApiName.Builder builder(){ return null; }
|
||||
static public interface Builder
|
||||
{
|
||||
ApiName build();
|
||||
ApiName.Builder name(String p0);
|
||||
ApiName.Builder version(String p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.BytesWrapper for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import software.amazon.awssdk.http.ContentStreamProvider;
|
||||
|
||||
abstract public class BytesWrapper
|
||||
{
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final ByteBuffer asByteBuffer(){ return null; }
|
||||
public final ContentStreamProvider asContentStreamProvider(){ return null; }
|
||||
public final InputStream asInputStream(){ return null; }
|
||||
public final String asString(Charset p0){ return null; }
|
||||
public final String asUtf8String(){ return null; }
|
||||
public final byte[] asByteArray(){ return null; }
|
||||
public final byte[] asByteArrayUnsafe(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.CredentialType for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
|
||||
public class CredentialType
|
||||
{
|
||||
protected CredentialType() {}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static CredentialType TOKEN = null;
|
||||
public static CredentialType of(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.FileTransformerConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class FileTransformerConfiguration implements ToCopyableBuilder<FileTransformerConfiguration.Builder, FileTransformerConfiguration>
|
||||
{
|
||||
protected FileTransformerConfiguration() {}
|
||||
public FileTransformerConfiguration.Builder toBuilder(){ return null; }
|
||||
public FileTransformerConfiguration.FailureBehavior failureBehavior(){ return null; }
|
||||
public FileTransformerConfiguration.FileWriteOption fileWriteOption(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static FileTransformerConfiguration defaultCreateNew(){ return null; }
|
||||
public static FileTransformerConfiguration defaultCreateOrAppend(){ return null; }
|
||||
public static FileTransformerConfiguration defaultCreateOrReplaceExisting(){ return null; }
|
||||
public static FileTransformerConfiguration.Builder builder(){ return null; }
|
||||
static public enum FailureBehavior
|
||||
{
|
||||
DELETE, LEAVE;
|
||||
private FailureBehavior() {}
|
||||
}
|
||||
static public enum FileWriteOption
|
||||
{
|
||||
CREATE_NEW, CREATE_OR_APPEND_TO_EXISTING, CREATE_OR_REPLACE_EXISTING;
|
||||
private FileWriteOption() {}
|
||||
}
|
||||
static public interface Builder extends CopyableBuilder<FileTransformerConfiguration.Builder, FileTransformerConfiguration>
|
||||
{
|
||||
FileTransformerConfiguration.Builder failureBehavior(FileTransformerConfiguration.FailureBehavior p0);
|
||||
FileTransformerConfiguration.Builder fileWriteOption(FileTransformerConfiguration.FileWriteOption p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.RequestOverrideConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.ApiName;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
||||
import software.amazon.awssdk.core.signer.Signer;
|
||||
import software.amazon.awssdk.metrics.MetricPublisher;
|
||||
|
||||
abstract public class RequestOverrideConfiguration
|
||||
{
|
||||
protected RequestOverrideConfiguration() {}
|
||||
protected RequestOverrideConfiguration(RequestOverrideConfiguration.Builder<? extends Object> p0){}
|
||||
public ExecutionAttributes executionAttributes(){ return null; }
|
||||
public List<ApiName> apiNames(){ return null; }
|
||||
public List<MetricPublisher> metricPublishers(){ return null; }
|
||||
public Map<String, List<String>> headers(){ return null; }
|
||||
public Map<String, List<String>> rawQueryParameters(){ return null; }
|
||||
public Optional<Duration> apiCallAttemptTimeout(){ return null; }
|
||||
public Optional<Duration> apiCallTimeout(){ return null; }
|
||||
public Optional<Signer> signer(){ return null; }
|
||||
public abstract RequestOverrideConfiguration.Builder<? extends RequestOverrideConfiguration.Builder> toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder<B extends RequestOverrideConfiguration.Builder>
|
||||
{
|
||||
<T> B putExecutionAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<T> p0, T p1);
|
||||
B addApiName(ApiName p0);
|
||||
B addApiName(java.util.function.Consumer<ApiName.Builder> p0);
|
||||
B addMetricPublisher(MetricPublisher p0);
|
||||
B apiCallAttemptTimeout(Duration p0);
|
||||
B apiCallTimeout(Duration p0);
|
||||
B executionAttributes(ExecutionAttributes p0);
|
||||
B headers(Map<String, List<String>> p0);
|
||||
B metricPublishers(List<MetricPublisher> p0);
|
||||
B putHeader(String p0, List<String> p1);
|
||||
B putRawQueryParameter(String p0, List<String> p1);
|
||||
B rawQueryParameters(Map<String, List<String>> p0);
|
||||
B signer(Signer p0);
|
||||
Duration apiCallAttemptTimeout();
|
||||
Duration apiCallTimeout();
|
||||
ExecutionAttributes executionAttributes();
|
||||
List<ApiName> apiNames();
|
||||
List<MetricPublisher> metricPublishers();
|
||||
Map<String, List<String>> headers();
|
||||
Map<String, List<String>> rawQueryParameters();
|
||||
RequestOverrideConfiguration build();
|
||||
Signer signer();
|
||||
default B putHeader(String p0, String p1){ return null; }
|
||||
default B putRawQueryParameter(String p0, String p1){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ResponseBytes for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import software.amazon.awssdk.core.BytesWrapper;
|
||||
|
||||
public class ResponseBytes<ResponseT> extends BytesWrapper
|
||||
{
|
||||
protected ResponseBytes() {}
|
||||
public ResponseT response(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static <ResponseT> software.amazon.awssdk.core.ResponseBytes<ResponseT> fromByteArray(ResponseT p0, byte[] p1){ return null; }
|
||||
public static <ResponseT> software.amazon.awssdk.core.ResponseBytes<ResponseT> fromByteArrayUnsafe(ResponseT p0, byte[] p1){ return null; }
|
||||
public static <ResponseT> software.amazon.awssdk.core.ResponseBytes<ResponseT> fromInputStream(ResponseT p0, InputStream p1){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ResponseInputStream for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import software.amazon.awssdk.core.io.SdkFilterInputStream;
|
||||
import software.amazon.awssdk.http.Abortable;
|
||||
import software.amazon.awssdk.http.AbortableInputStream;
|
||||
|
||||
public class ResponseInputStream<ResponseT> extends SdkFilterInputStream implements Abortable
|
||||
{
|
||||
protected ResponseInputStream() {}
|
||||
public ResponseInputStream(ResponseT p0, AbortableInputStream p1){}
|
||||
public ResponseInputStream(ResponseT p0, InputStream p1){}
|
||||
public ResponseT response(){ return null; }
|
||||
public void abort(){}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkBytes for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Serializable;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import software.amazon.awssdk.core.BytesWrapper;
|
||||
|
||||
public class SdkBytes extends BytesWrapper implements Serializable
|
||||
{
|
||||
protected SdkBytes() {}
|
||||
public String toString(){ return null; }
|
||||
public static SdkBytes fromByteArray(byte[] p0){ return null; }
|
||||
public static SdkBytes fromByteArrayUnsafe(byte[] p0){ return null; }
|
||||
public static SdkBytes fromByteBuffer(ByteBuffer p0){ return null; }
|
||||
public static SdkBytes fromInputStream(InputStream p0){ return null; }
|
||||
public static SdkBytes fromString(String p0, Charset p1){ return null; }
|
||||
public static SdkBytes fromUtf8String(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkClient for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import software.amazon.awssdk.utils.SdkAutoCloseable;
|
||||
|
||||
public interface SdkClient extends SdkAutoCloseable
|
||||
{
|
||||
String serviceName();
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkField for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
import software.amazon.awssdk.core.SdkPojo;
|
||||
import software.amazon.awssdk.core.protocol.MarshallLocation;
|
||||
import software.amazon.awssdk.core.protocol.MarshallingType;
|
||||
import software.amazon.awssdk.core.traits.Trait;
|
||||
|
||||
public class SdkField<TypeT>
|
||||
{
|
||||
protected SdkField() {}
|
||||
public <T extends Trait> T getRequiredTrait(java.lang.Class<T> p0){ return null; }
|
||||
public <T extends Trait> T getTrait(java.lang.Class<T> p0){ return null; }
|
||||
public <T extends Trait> java.util.Optional<T> getOptionalTrait(java.lang.Class<T> p0){ return null; }
|
||||
public MarshallLocation location(){ return null; }
|
||||
public String locationName(){ return null; }
|
||||
public String memberName(){ return null; }
|
||||
public String unmarshallLocationName(){ return null; }
|
||||
public Supplier<SdkPojo> constructor(){ return null; }
|
||||
public TypeT getValueOrDefault(Object p0){ return null; }
|
||||
public boolean containsTrait(Class<? extends Trait> p0){ return false; }
|
||||
public software.amazon.awssdk.core.protocol.MarshallingType<? super TypeT> marshallingType(){ return null; }
|
||||
public static <TypeT> SdkField.Builder<TypeT> builder(software.amazon.awssdk.core.protocol.MarshallingType<? super TypeT> p0){ return null; }
|
||||
public void set(Object p0, Object p1){}
|
||||
static public class Builder<TypeT>
|
||||
{
|
||||
protected Builder() {}
|
||||
public SdkField.Builder<TypeT> constructor(Supplier<SdkPojo> p0){ return null; }
|
||||
public SdkField.Builder<TypeT> getter(Function<Object, TypeT> p0){ return null; }
|
||||
public SdkField.Builder<TypeT> memberName(String p0){ return null; }
|
||||
public SdkField.Builder<TypeT> setter(BiConsumer<Object, TypeT> p0){ return null; }
|
||||
public SdkField.Builder<TypeT> traits(Trait... p0){ return null; }
|
||||
public SdkField<TypeT> build(){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkNumber for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
||||
public class SdkNumber extends Number implements Serializable
|
||||
{
|
||||
protected SdkNumber() {}
|
||||
public BigDecimal bigDecimalValue(){ return null; }
|
||||
public String stringValue(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public double doubleValue(){ return 0; }
|
||||
public float floatValue(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int intValue(){ return 0; }
|
||||
public long longValue(){ return 0; }
|
||||
public static SdkNumber fromBigDecimal(BigDecimal p0){ return null; }
|
||||
public static SdkNumber fromBigInteger(BigInteger p0){ return null; }
|
||||
public static SdkNumber fromDouble(double p0){ return null; }
|
||||
public static SdkNumber fromFloat(float p0){ return null; }
|
||||
public static SdkNumber fromInteger(int p0){ return null; }
|
||||
public static SdkNumber fromLong(long p0){ return null; }
|
||||
public static SdkNumber fromShort(short p0){ return null; }
|
||||
public static SdkNumber fromString(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkPojo for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.List;
|
||||
import software.amazon.awssdk.core.SdkField;
|
||||
|
||||
public interface SdkPojo
|
||||
{
|
||||
List<SdkField<? extends Object>> sdkFields();
|
||||
default boolean equalsBySdkFields(Object p0){ return false; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkRequest for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.core.RequestOverrideConfiguration;
|
||||
import software.amazon.awssdk.core.SdkPojo;
|
||||
|
||||
abstract public class SdkRequest implements SdkPojo
|
||||
{
|
||||
public <T> java.util.Optional<T> getValueForField(String p0, java.lang.Class<T> p1){ return null; }
|
||||
public SdkRequest(){}
|
||||
public abstract Optional<? extends RequestOverrideConfiguration> overrideConfiguration();
|
||||
public abstract SdkRequest.Builder toBuilder();
|
||||
static public interface Builder
|
||||
{
|
||||
RequestOverrideConfiguration overrideConfiguration();
|
||||
SdkRequest build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkResponse for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.core.SdkPojo;
|
||||
import software.amazon.awssdk.http.SdkHttpResponse;
|
||||
|
||||
abstract public class SdkResponse implements SdkPojo
|
||||
{
|
||||
protected SdkResponse() {}
|
||||
protected SdkResponse(SdkResponse.Builder p0){}
|
||||
public <T> java.util.Optional<T> getValueForField(String p0, java.lang.Class<T> p1){ return null; }
|
||||
public SdkHttpResponse sdkHttpResponse(){ return null; }
|
||||
public abstract SdkResponse.Builder toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder
|
||||
{
|
||||
SdkHttpResponse sdkHttpResponse();
|
||||
SdkResponse build();
|
||||
SdkResponse.Builder sdkHttpResponse(SdkHttpResponse p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ServiceConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
|
||||
public interface ServiceConfiguration
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.AsyncRequestBody for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import org.reactivestreams.Publisher;
|
||||
import software.amazon.awssdk.core.async.BlockingInputStreamAsyncRequestBody;
|
||||
import software.amazon.awssdk.core.async.BlockingOutputStreamAsyncRequestBody;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public interface AsyncRequestBody extends SdkPublisher<ByteBuffer>
|
||||
{
|
||||
Optional<Long> contentLength();
|
||||
default String contentType(){ return null; }
|
||||
static AsyncRequestBody empty(){ return null; }
|
||||
static AsyncRequestBody fromByteBuffer(ByteBuffer p0){ return null; }
|
||||
static AsyncRequestBody fromBytes(byte[] p0){ return null; }
|
||||
static AsyncRequestBody fromFile(File p0){ return null; }
|
||||
static AsyncRequestBody fromFile(Path p0){ return null; }
|
||||
static AsyncRequestBody fromInputStream(InputStream p0, Long p1, ExecutorService p2){ return null; }
|
||||
static AsyncRequestBody fromPublisher(Publisher<ByteBuffer> p0){ return null; }
|
||||
static AsyncRequestBody fromString(String p0){ return null; }
|
||||
static AsyncRequestBody fromString(String p0, Charset p1){ return null; }
|
||||
static BlockingInputStreamAsyncRequestBody forBlockingInputStream(Long p0){ return null; }
|
||||
static BlockingOutputStreamAsyncRequestBody forBlockingOutputStream(Long p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.AsyncResponseTransformer for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.file.Path;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.FileTransformerConfiguration;
|
||||
import software.amazon.awssdk.core.ResponseBytes;
|
||||
import software.amazon.awssdk.core.ResponseInputStream;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
import software.amazon.awssdk.core.async.ResponsePublisher;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public interface AsyncResponseTransformer<ResponseT, ResultT>
|
||||
{
|
||||
CompletableFuture<ResultT> prepare();
|
||||
static <ResponseT extends SdkResponse> AsyncResponseTransformer<ResponseT, ResponseInputStream<ResponseT>> toBlockingInputStream(){ return null; }
|
||||
static <ResponseT extends SdkResponse> AsyncResponseTransformer<ResponseT, ResponsePublisher<ResponseT>> toPublisher(){ return null; }
|
||||
static <ResponseT> AsyncResponseTransformer<ResponseT, software.amazon.awssdk.core.ResponseBytes<ResponseT>> toBytes(){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(File p0){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(File p0, FileTransformerConfiguration p1){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(File p0, java.util.function.Consumer<FileTransformerConfiguration.Builder> p1){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(Path p0){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(Path p0, FileTransformerConfiguration p1){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(Path p0, java.util.function.Consumer<FileTransformerConfiguration.Builder> p1){ return null; }
|
||||
void exceptionOccurred(Throwable p0);
|
||||
void onResponse(ResponseT p0);
|
||||
void onStream(SdkPublisher<ByteBuffer> p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.BlockingInputStreamAsyncRequestBody for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.async.AsyncRequestBody;
|
||||
|
||||
public class BlockingInputStreamAsyncRequestBody implements AsyncRequestBody
|
||||
{
|
||||
protected BlockingInputStreamAsyncRequestBody() {}
|
||||
public Optional<Long> contentLength(){ return null; }
|
||||
public long writeInputStream(InputStream p0){ return 0; }
|
||||
public void cancel(){}
|
||||
public void subscribe(Subscriber<? super ByteBuffer> p0){}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.BlockingOutputStreamAsyncRequestBody for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.async.AsyncRequestBody;
|
||||
import software.amazon.awssdk.utils.CancellableOutputStream;
|
||||
|
||||
public class BlockingOutputStreamAsyncRequestBody implements AsyncRequestBody
|
||||
{
|
||||
protected BlockingOutputStreamAsyncRequestBody() {}
|
||||
public CancellableOutputStream outputStream(){ return null; }
|
||||
public Optional<Long> contentLength(){ return null; }
|
||||
public void subscribe(Subscriber<? super ByteBuffer> p0){}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.ResponsePublisher for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public class ResponsePublisher<ResponseT extends SdkResponse> implements SdkPublisher<ByteBuffer>
|
||||
{
|
||||
protected ResponsePublisher() {}
|
||||
public ResponsePublisher(ResponseT p0, SdkPublisher<ByteBuffer> p1){}
|
||||
public ResponseT response(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public void subscribe(Subscriber<? super ByteBuffer> p0){}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.SdkPublisher for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
import org.reactivestreams.Publisher;
|
||||
|
||||
public interface SdkPublisher<T> extends org.reactivestreams.Publisher<T>
|
||||
{
|
||||
default <U extends T> software.amazon.awssdk.core.async.SdkPublisher<U> filter(java.lang.Class<U> p0){ return null; }
|
||||
default <U> software.amazon.awssdk.core.async.SdkPublisher<U> flatMapIterable(Function<T, Iterable<U>> p0){ return null; }
|
||||
default <U> software.amazon.awssdk.core.async.SdkPublisher<U> map(Function<T, U> p0){ return null; }
|
||||
default CompletableFuture<Void> subscribe(java.util.function.Consumer<T> p0){ return null; }
|
||||
default SdkPublisher<T> doAfterOnCancel(Runnable p0){ return null; }
|
||||
default SdkPublisher<T> doAfterOnComplete(Runnable p0){ return null; }
|
||||
default SdkPublisher<T> doAfterOnError(Consumer<Throwable> p0){ return null; }
|
||||
default SdkPublisher<T> filter(java.util.function.Predicate<T> p0){ return null; }
|
||||
default SdkPublisher<T> limit(int p0){ return null; }
|
||||
default SdkPublisher<java.util.List<T>> buffer(int p0){ return null; }
|
||||
static <T> SdkPublisher<T> adapt(org.reactivestreams.Publisher<T> p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.builder.SdkAsyncClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.builder;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.client.config.ClientAsyncConfiguration;
|
||||
import software.amazon.awssdk.http.async.SdkAsyncHttpClient;
|
||||
|
||||
public interface SdkAsyncClientBuilder<B extends SdkAsyncClientBuilder<B, C>, C>
|
||||
{
|
||||
B asyncConfiguration(ClientAsyncConfiguration p0);
|
||||
B httpClient(SdkAsyncHttpClient p0);
|
||||
B httpClientBuilder(SdkAsyncHttpClient.Builder p0);
|
||||
default B asyncConfiguration(java.util.function.Consumer<ClientAsyncConfiguration.Builder> p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.builder.SdkClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.builder;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration;
|
||||
import software.amazon.awssdk.utils.builder.SdkBuilder;
|
||||
|
||||
public interface SdkClientBuilder<B extends SdkClientBuilder<B, C>, C> extends software.amazon.awssdk.utils.builder.SdkBuilder<B, C>
|
||||
{
|
||||
B endpointOverride(URI p0);
|
||||
B overrideConfiguration(ClientOverrideConfiguration p0);
|
||||
ClientOverrideConfiguration overrideConfiguration();
|
||||
default B overrideConfiguration(java.util.function.Consumer<ClientOverrideConfiguration.Builder> p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.ClientAsyncConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import java.util.Map;
|
||||
import software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class ClientAsyncConfiguration implements ToCopyableBuilder<ClientAsyncConfiguration.Builder, ClientAsyncConfiguration>
|
||||
{
|
||||
protected ClientAsyncConfiguration() {}
|
||||
public <T> T advancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption<T> p0){ return null; }
|
||||
public ClientAsyncConfiguration.Builder toBuilder(){ return null; }
|
||||
public static ClientAsyncConfiguration.Builder builder(){ return null; }
|
||||
static public interface Builder extends CopyableBuilder<ClientAsyncConfiguration.Builder, ClientAsyncConfiguration>
|
||||
{
|
||||
<T> ClientAsyncConfiguration.Builder advancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption<T> p0, T p1);
|
||||
ClientAsyncConfiguration.Builder advancedOptions(Map<SdkAdvancedAsyncClientOption<? extends Object>, ? extends Object> p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.ClientOption for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import software.amazon.awssdk.utils.AttributeMap;
|
||||
|
||||
abstract public class ClientOption<T> extends AttributeMap.Key<T>
|
||||
{
|
||||
protected ClientOption() {}
|
||||
protected ClientOption(AttributeMap.Key.UnsafeValueType p0){}
|
||||
protected ClientOption(java.lang.Class<T> p0){}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.ClientOverrideConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.client.config.SdkAdvancedClientOption;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
|
||||
import software.amazon.awssdk.core.retry.RetryMode;
|
||||
import software.amazon.awssdk.core.retry.RetryPolicy;
|
||||
import software.amazon.awssdk.metrics.MetricPublisher;
|
||||
import software.amazon.awssdk.profiles.ProfileFile;
|
||||
import software.amazon.awssdk.utils.AttributeMap;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class ClientOverrideConfiguration implements ToCopyableBuilder<ClientOverrideConfiguration.Builder, ClientOverrideConfiguration>
|
||||
{
|
||||
protected ClientOverrideConfiguration() {}
|
||||
public <T> java.util.Optional<T> advancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedClientOption<T> p0){ return null; }
|
||||
public ClientOverrideConfiguration.Builder toBuilder(){ return null; }
|
||||
public ExecutionAttributes executionAttributes(){ return null; }
|
||||
public List<ExecutionInterceptor> executionInterceptors(){ return null; }
|
||||
public List<MetricPublisher> metricPublishers(){ return null; }
|
||||
public Map<String, List<String>> headers(){ return null; }
|
||||
public Optional<Duration> apiCallAttemptTimeout(){ return null; }
|
||||
public Optional<Duration> apiCallTimeout(){ return null; }
|
||||
public Optional<ProfileFile> defaultProfileFile(){ return null; }
|
||||
public Optional<RetryPolicy> retryPolicy(){ return null; }
|
||||
public Optional<String> defaultProfileName(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public static ClientOverrideConfiguration.Builder builder(){ return null; }
|
||||
static public interface Builder extends CopyableBuilder<ClientOverrideConfiguration.Builder, ClientOverrideConfiguration>
|
||||
{
|
||||
<T> ClientOverrideConfiguration.Builder putAdvancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedClientOption<T> p0, T p1);
|
||||
<T> ClientOverrideConfiguration.Builder putExecutionAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<T> p0, T p1);
|
||||
AttributeMap advancedOptions();
|
||||
ClientOverrideConfiguration.Builder addExecutionInterceptor(ExecutionInterceptor p0);
|
||||
ClientOverrideConfiguration.Builder addMetricPublisher(MetricPublisher p0);
|
||||
ClientOverrideConfiguration.Builder advancedOptions(Map<SdkAdvancedClientOption<? extends Object>, ? extends Object> p0);
|
||||
ClientOverrideConfiguration.Builder apiCallAttemptTimeout(Duration p0);
|
||||
ClientOverrideConfiguration.Builder apiCallTimeout(Duration p0);
|
||||
ClientOverrideConfiguration.Builder defaultProfileFile(ProfileFile p0);
|
||||
ClientOverrideConfiguration.Builder defaultProfileName(String p0);
|
||||
ClientOverrideConfiguration.Builder executionAttributes(ExecutionAttributes p0);
|
||||
ClientOverrideConfiguration.Builder executionInterceptors(List<ExecutionInterceptor> p0);
|
||||
ClientOverrideConfiguration.Builder headers(Map<String, List<String>> p0);
|
||||
ClientOverrideConfiguration.Builder metricPublishers(List<MetricPublisher> p0);
|
||||
ClientOverrideConfiguration.Builder putHeader(String p0, List<String> p1);
|
||||
ClientOverrideConfiguration.Builder retryPolicy(RetryPolicy p0);
|
||||
Duration apiCallAttemptTimeout();
|
||||
Duration apiCallTimeout();
|
||||
ExecutionAttributes executionAttributes();
|
||||
List<ExecutionInterceptor> executionInterceptors();
|
||||
List<MetricPublisher> metricPublishers();
|
||||
Map<String, List<String>> headers();
|
||||
ProfileFile defaultProfileFile();
|
||||
RetryPolicy retryPolicy();
|
||||
String defaultProfileName();
|
||||
default ClientOverrideConfiguration.Builder putHeader(String p0, String p1){ return null; }
|
||||
default ClientOverrideConfiguration.Builder retryPolicy(RetryMode p0){ return null; }
|
||||
default ClientOverrideConfiguration.Builder retryPolicy(java.util.function.Consumer<RetryPolicy.Builder> p0){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
import software.amazon.awssdk.core.client.config.ClientOption;
|
||||
|
||||
public class SdkAdvancedAsyncClientOption<T> extends software.amazon.awssdk.core.client.config.ClientOption<T>
|
||||
{
|
||||
protected SdkAdvancedAsyncClientOption() {}
|
||||
public static SdkAdvancedAsyncClientOption<Executor> FUTURE_COMPLETION_EXECUTOR = null;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.SdkAdvancedClientOption for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import software.amazon.awssdk.core.client.config.ClientOption;
|
||||
import software.amazon.awssdk.core.signer.Signer;
|
||||
|
||||
public class SdkAdvancedClientOption<T> extends software.amazon.awssdk.core.client.config.ClientOption<T>
|
||||
{
|
||||
protected SdkAdvancedClientOption() {}
|
||||
protected SdkAdvancedClientOption(java.lang.Class<T> p0){}
|
||||
public static SdkAdvancedClientOption<Boolean> DISABLE_HOST_PREFIX_INJECTION = null;
|
||||
public static SdkAdvancedClientOption<Signer> SIGNER = null;
|
||||
public static SdkAdvancedClientOption<Signer> TOKEN_SIGNER = null;
|
||||
public static SdkAdvancedClientOption<String> USER_AGENT_PREFIX = null;
|
||||
public static SdkAdvancedClientOption<String> USER_AGENT_SUFFIX = null;
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.document.Document for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.document;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.SdkNumber;
|
||||
import software.amazon.awssdk.core.document.DocumentVisitor;
|
||||
import software.amazon.awssdk.core.document.VoidDocumentVisitor;
|
||||
|
||||
public interface Document extends Serializable
|
||||
{
|
||||
<R> R accept(DocumentVisitor<? extends R> p0);
|
||||
List<Document> asList();
|
||||
Map<String, Document> asMap();
|
||||
Object unwrap();
|
||||
SdkNumber asNumber();
|
||||
String asString();
|
||||
boolean asBoolean();
|
||||
default boolean isBoolean(){ return false; }
|
||||
default boolean isList(){ return false; }
|
||||
default boolean isMap(){ return false; }
|
||||
default boolean isNull(){ return false; }
|
||||
default boolean isNumber(){ return false; }
|
||||
default boolean isString(){ return false; }
|
||||
static Document fromBoolean(boolean p0){ return null; }
|
||||
static Document fromList(List<Document> p0){ return null; }
|
||||
static Document fromMap(Map<String, Document> p0){ return null; }
|
||||
static Document fromNull(){ return null; }
|
||||
static Document fromNumber(BigDecimal p0){ return null; }
|
||||
static Document fromNumber(BigInteger p0){ return null; }
|
||||
static Document fromNumber(SdkNumber p0){ return null; }
|
||||
static Document fromNumber(String p0){ return null; }
|
||||
static Document fromNumber(double p0){ return null; }
|
||||
static Document fromNumber(float p0){ return null; }
|
||||
static Document fromNumber(int p0){ return null; }
|
||||
static Document fromNumber(long p0){ return null; }
|
||||
static Document fromString(String p0){ return null; }
|
||||
static Document.ListBuilder listBuilder(){ return null; }
|
||||
static Document.MapBuilder mapBuilder(){ return null; }
|
||||
static public interface ListBuilder
|
||||
{
|
||||
Document build();
|
||||
Document.ListBuilder addBoolean(boolean p0);
|
||||
Document.ListBuilder addDocument(Document p0);
|
||||
Document.ListBuilder addMap(Consumer<Document.MapBuilder> p0);
|
||||
Document.ListBuilder addNull();
|
||||
Document.ListBuilder addNumber(BigDecimal p0);
|
||||
Document.ListBuilder addNumber(BigInteger p0);
|
||||
Document.ListBuilder addNumber(SdkNumber p0);
|
||||
Document.ListBuilder addNumber(String p0);
|
||||
Document.ListBuilder addNumber(double p0);
|
||||
Document.ListBuilder addNumber(float p0);
|
||||
Document.ListBuilder addNumber(int p0);
|
||||
Document.ListBuilder addNumber(long p0);
|
||||
Document.ListBuilder addString(String p0);
|
||||
}
|
||||
static public interface MapBuilder
|
||||
{
|
||||
Document build();
|
||||
Document.MapBuilder putBoolean(String p0, boolean p1);
|
||||
Document.MapBuilder putDocument(String p0, Document p1);
|
||||
Document.MapBuilder putList(String p0, Consumer<Document.ListBuilder> p1);
|
||||
Document.MapBuilder putList(String p0, List<Document> p1);
|
||||
Document.MapBuilder putMap(String p0, Consumer<Document.MapBuilder> p1);
|
||||
Document.MapBuilder putMap(String p0, Map<String, Document> p1);
|
||||
Document.MapBuilder putNull(String p0);
|
||||
Document.MapBuilder putNumber(String p0, BigDecimal p1);
|
||||
Document.MapBuilder putNumber(String p0, BigInteger p1);
|
||||
Document.MapBuilder putNumber(String p0, SdkNumber p1);
|
||||
Document.MapBuilder putNumber(String p0, String p1);
|
||||
Document.MapBuilder putNumber(String p0, double p1);
|
||||
Document.MapBuilder putNumber(String p0, float p1);
|
||||
Document.MapBuilder putNumber(String p0, int p1);
|
||||
Document.MapBuilder putNumber(String p0, long p1);
|
||||
Document.MapBuilder putString(String p0, String p1);
|
||||
}
|
||||
void accept(VoidDocumentVisitor p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.document.DocumentVisitor for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.document;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import software.amazon.awssdk.core.SdkNumber;
|
||||
import software.amazon.awssdk.core.document.Document;
|
||||
|
||||
public interface DocumentVisitor<R>
|
||||
{
|
||||
R visitBoolean(Boolean p0);
|
||||
R visitList(List<Document> p0);
|
||||
R visitMap(Map<String, Document> p0);
|
||||
R visitNull();
|
||||
R visitNumber(SdkNumber p0);
|
||||
R visitString(String p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.document.VoidDocumentVisitor for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.document;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import software.amazon.awssdk.core.SdkNumber;
|
||||
import software.amazon.awssdk.core.document.Document;
|
||||
|
||||
public interface VoidDocumentVisitor
|
||||
{
|
||||
default void visitBoolean(Boolean p0){}
|
||||
default void visitList(List<Document> p0){}
|
||||
default void visitMap(Map<String, Document> p0){}
|
||||
default void visitNull(){}
|
||||
default void visitNumber(SdkNumber p0){}
|
||||
default void visitString(String p0){}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.exception.SdkException for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.exception;
|
||||
|
||||
import software.amazon.awssdk.utils.builder.Buildable;
|
||||
|
||||
public class SdkException extends RuntimeException
|
||||
{
|
||||
protected SdkException() {}
|
||||
protected SdkException(SdkException.Builder p0){}
|
||||
public SdkException.Builder toBuilder(){ return null; }
|
||||
public boolean retryable(){ return false; }
|
||||
public static SdkException create(String p0, Throwable p1){ return null; }
|
||||
public static SdkException.Builder builder(){ return null; }
|
||||
static public interface Builder extends Buildable
|
||||
{
|
||||
Boolean writableStackTrace();
|
||||
SdkException build();
|
||||
SdkException.Builder cause(Throwable p0);
|
||||
SdkException.Builder message(String p0);
|
||||
SdkException.Builder writableStackTrace(Boolean p0);
|
||||
String message();
|
||||
Throwable cause();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.interceptor.Context for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.interceptor;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import org.reactivestreams.Publisher;
|
||||
import software.amazon.awssdk.core.SdkRequest;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
import software.amazon.awssdk.core.async.AsyncRequestBody;
|
||||
import software.amazon.awssdk.core.sync.RequestBody;
|
||||
import software.amazon.awssdk.http.SdkHttpRequest;
|
||||
import software.amazon.awssdk.http.SdkHttpResponse;
|
||||
|
||||
public class Context
|
||||
{
|
||||
protected Context() {}
|
||||
static public interface AfterExecution extends Context.ModifyResponse
|
||||
{
|
||||
}
|
||||
static public interface AfterMarshalling extends Context.BeforeMarshalling
|
||||
{
|
||||
Optional<AsyncRequestBody> asyncRequestBody();
|
||||
Optional<RequestBody> requestBody();
|
||||
SdkHttpRequest httpRequest();
|
||||
}
|
||||
static public interface AfterTransmission extends Context.BeforeTransmission
|
||||
{
|
||||
Optional<InputStream> responseBody();
|
||||
Optional<Publisher<ByteBuffer>> responsePublisher();
|
||||
SdkHttpResponse httpResponse();
|
||||
}
|
||||
static public interface AfterUnmarshalling extends Context.BeforeUnmarshalling
|
||||
{
|
||||
SdkResponse response();
|
||||
}
|
||||
static public interface BeforeExecution
|
||||
{
|
||||
SdkRequest request();
|
||||
}
|
||||
static public interface BeforeMarshalling extends Context.ModifyRequest
|
||||
{
|
||||
}
|
||||
static public interface BeforeTransmission extends Context.ModifyHttpRequest
|
||||
{
|
||||
}
|
||||
static public interface BeforeUnmarshalling extends Context.ModifyHttpResponse
|
||||
{
|
||||
}
|
||||
static public interface FailedExecution
|
||||
{
|
||||
Optional<SdkHttpRequest> httpRequest();
|
||||
Optional<SdkHttpResponse> httpResponse();
|
||||
Optional<SdkResponse> response();
|
||||
SdkRequest request();
|
||||
Throwable exception();
|
||||
}
|
||||
static public interface ModifyHttpRequest extends Context.AfterMarshalling
|
||||
{
|
||||
}
|
||||
static public interface ModifyHttpResponse extends Context.AfterTransmission
|
||||
{
|
||||
}
|
||||
static public interface ModifyRequest extends Context.BeforeExecution
|
||||
{
|
||||
}
|
||||
static public interface ModifyResponse extends Context.AfterUnmarshalling
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.interceptor.ExecutionAttribute for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.interceptor;
|
||||
|
||||
|
||||
public class ExecutionAttribute<T>
|
||||
{
|
||||
protected ExecutionAttribute() {}
|
||||
public ExecutionAttribute(String p0){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.interceptor.ExecutionAttributes for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.interceptor;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class ExecutionAttributes implements ToCopyableBuilder<ExecutionAttributes.Builder, ExecutionAttributes>
|
||||
{
|
||||
protected ExecutionAttributes(Map<? extends ExecutionAttribute<? extends Object>, ? extends Object> p0){}
|
||||
public <U> ExecutionAttributes putAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0, U p1){ return null; }
|
||||
public <U> ExecutionAttributes putAttributeIfAbsent(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0, U p1){ return null; }
|
||||
public <U> U getAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0){ return null; }
|
||||
public <U> java.util.Optional<U> getOptionalAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0){ return null; }
|
||||
public ExecutionAttributes copy(){ return null; }
|
||||
public ExecutionAttributes merge(ExecutionAttributes p0){ return null; }
|
||||
public ExecutionAttributes(){}
|
||||
public ExecutionAttributes.Builder toBuilder(){ return null; }
|
||||
public Map<ExecutionAttribute<? extends Object>, Object> getAttributes(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static ExecutionAttributes unmodifiableExecutionAttributes(ExecutionAttributes p0){ return null; }
|
||||
public static ExecutionAttributes.Builder builder(){ return null; }
|
||||
public void putAbsentAttributes(ExecutionAttributes p0){}
|
||||
static public class Builder implements CopyableBuilder<ExecutionAttributes.Builder, ExecutionAttributes>
|
||||
{
|
||||
protected Builder() {}
|
||||
public <T> ExecutionAttributes.Builder put(software.amazon.awssdk.core.interceptor.ExecutionAttribute<T> p0, T p1){ return null; }
|
||||
public ExecutionAttributes build(){ return null; }
|
||||
public ExecutionAttributes.Builder putAll(Map<? extends ExecutionAttribute<? extends Object>, ? extends Object> p0){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.interceptor.ExecutionInterceptor for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.interceptor;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import org.reactivestreams.Publisher;
|
||||
import software.amazon.awssdk.core.SdkRequest;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
import software.amazon.awssdk.core.async.AsyncRequestBody;
|
||||
import software.amazon.awssdk.core.interceptor.Context;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
||||
import software.amazon.awssdk.core.sync.RequestBody;
|
||||
import software.amazon.awssdk.http.SdkHttpRequest;
|
||||
import software.amazon.awssdk.http.SdkHttpResponse;
|
||||
|
||||
public interface ExecutionInterceptor
|
||||
{
|
||||
default Optional<AsyncRequestBody> modifyAsyncHttpContent(Context.ModifyHttpRequest p0, ExecutionAttributes p1){ return null; }
|
||||
default Optional<InputStream> modifyHttpResponseContent(Context.ModifyHttpResponse p0, ExecutionAttributes p1){ return null; }
|
||||
default Optional<Publisher<ByteBuffer>> modifyAsyncHttpResponseContent(Context.ModifyHttpResponse p0, ExecutionAttributes p1){ return null; }
|
||||
default Optional<RequestBody> modifyHttpContent(Context.ModifyHttpRequest p0, ExecutionAttributes p1){ return null; }
|
||||
default SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest p0, ExecutionAttributes p1){ return null; }
|
||||
default SdkHttpResponse modifyHttpResponse(Context.ModifyHttpResponse p0, ExecutionAttributes p1){ return null; }
|
||||
default SdkRequest modifyRequest(Context.ModifyRequest p0, ExecutionAttributes p1){ return null; }
|
||||
default SdkResponse modifyResponse(Context.ModifyResponse p0, ExecutionAttributes p1){ return null; }
|
||||
default Throwable modifyException(Context.FailedExecution p0, ExecutionAttributes p1){ return null; }
|
||||
default void afterExecution(Context.AfterExecution p0, ExecutionAttributes p1){}
|
||||
default void afterMarshalling(Context.AfterMarshalling p0, ExecutionAttributes p1){}
|
||||
default void afterTransmission(Context.AfterTransmission p0, ExecutionAttributes p1){}
|
||||
default void afterUnmarshalling(Context.AfterUnmarshalling p0, ExecutionAttributes p1){}
|
||||
default void beforeExecution(Context.BeforeExecution p0, ExecutionAttributes p1){}
|
||||
default void beforeMarshalling(Context.BeforeMarshalling p0, ExecutionAttributes p1){}
|
||||
default void beforeTransmission(Context.BeforeTransmission p0, ExecutionAttributes p1){}
|
||||
default void beforeUnmarshalling(Context.BeforeUnmarshalling p0, ExecutionAttributes p1){}
|
||||
default void onExecutionFailure(Context.FailedExecution p0, ExecutionAttributes p1){}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.internal.io.Releasable for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.internal.io;
|
||||
|
||||
import java.io.Closeable;
|
||||
import org.slf4j.Logger;
|
||||
|
||||
public interface Releasable
|
||||
{
|
||||
static void release(Closeable p0, Logger p1){}
|
||||
void release();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.internal.waiters.ResponseOrException for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.internal.waiters;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
public class ResponseOrException<R>
|
||||
{
|
||||
protected ResponseOrException() {}
|
||||
public Optional<R> response(){ return null; }
|
||||
public Optional<Throwable> exception(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static <R> software.amazon.awssdk.core.internal.waiters.ResponseOrException<R> exception(Throwable p0){ return null; }
|
||||
public static <R> software.amazon.awssdk.core.internal.waiters.ResponseOrException<R> response(R p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.io.SdkFilterInputStream for testing
|
||||
// purposes
|
||||
|
||||
package software.amazon.awssdk.core.io;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.FilterInputStream;
|
||||
import java.io.InputStream;
|
||||
import software.amazon.awssdk.core.internal.io.Releasable;
|
||||
|
||||
public class SdkFilterInputStream extends FilterInputStream implements Releasable {
|
||||
protected SdkFilterInputStream() {
|
||||
super(new ByteArrayInputStream("UTF-8".getBytes()));
|
||||
}
|
||||
|
||||
protected SdkFilterInputStream(InputStream p0) {
|
||||
super(new ByteArrayInputStream("UTF-8".getBytes()));
|
||||
}
|
||||
|
||||
protected final void abortIfNeeded() {}
|
||||
|
||||
protected void abort() {}
|
||||
|
||||
public boolean markSupported() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int available() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int read() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int read(byte[] p0, int p1, int p2) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long skip(long p0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void close() {}
|
||||
|
||||
public void mark(int p0) {}
|
||||
|
||||
public void release() {}
|
||||
|
||||
public void reset() {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.protocol.MarshallLocation for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.protocol;
|
||||
|
||||
|
||||
public enum MarshallLocation
|
||||
{
|
||||
GREEDY_PATH, HEADER, PATH, PAYLOAD, QUERY_PARAM, STATUS_CODE;
|
||||
private MarshallLocation() {}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.protocol.MarshallingType for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.protocol;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import software.amazon.awssdk.core.SdkBytes;
|
||||
import software.amazon.awssdk.core.SdkPojo;
|
||||
import software.amazon.awssdk.core.document.Document;
|
||||
|
||||
public interface MarshallingType<T>
|
||||
{
|
||||
java.lang.Class<? super T> getTargetClass();
|
||||
static <T> MarshallingType<T> newType(java.lang.Class<? super T> p0){ return null; }
|
||||
static MarshallingType<BigDecimal> BIG_DECIMAL = null;
|
||||
static MarshallingType<Boolean> BOOLEAN = null;
|
||||
static MarshallingType<Document> DOCUMENT = null;
|
||||
static MarshallingType<Double> DOUBLE = null;
|
||||
static MarshallingType<Float> FLOAT = null;
|
||||
static MarshallingType<Instant> INSTANT = null;
|
||||
static MarshallingType<Integer> INTEGER = null;
|
||||
static MarshallingType<List<? extends Object>> LIST = null;
|
||||
static MarshallingType<Long> LONG = null;
|
||||
static MarshallingType<Map<String, ? extends Object>> MAP = null;
|
||||
static MarshallingType<SdkBytes> SDK_BYTES = null;
|
||||
static MarshallingType<SdkPojo> SDK_POJO = null;
|
||||
static MarshallingType<Short> SHORT = null;
|
||||
static MarshallingType<String> STRING = null;
|
||||
static MarshallingType<Void> NULL = null;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.retry.RetryMode for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.retry;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
import software.amazon.awssdk.profiles.ProfileFile;
|
||||
|
||||
public enum RetryMode
|
||||
{
|
||||
ADAPTIVE, LEGACY, STANDARD;
|
||||
private RetryMode() {}
|
||||
public static RetryMode defaultRetryMode(){ return null; }
|
||||
public static RetryMode.Resolver resolver(){ return null; }
|
||||
static public class Resolver
|
||||
{
|
||||
protected Resolver() {}
|
||||
public RetryMode resolve(){ return null; }
|
||||
public RetryMode.Resolver defaultRetryMode(RetryMode p0){ return null; }
|
||||
public RetryMode.Resolver profileFile(Supplier<ProfileFile> p0){ return null; }
|
||||
public RetryMode.Resolver profileName(String p0){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.retry.RetryPolicy for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.retry;
|
||||
|
||||
import software.amazon.awssdk.core.retry.RetryMode;
|
||||
import software.amazon.awssdk.core.retry.backoff.BackoffStrategy;
|
||||
import software.amazon.awssdk.core.retry.conditions.RetryCondition;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class RetryPolicy implements ToCopyableBuilder<RetryPolicy.Builder, RetryPolicy>
|
||||
{
|
||||
protected RetryPolicy() {}
|
||||
public BackoffStrategy backoffStrategy(){ return null; }
|
||||
public BackoffStrategy throttlingBackoffStrategy(){ return null; }
|
||||
public Boolean isFastFailRateLimiting(){ return null; }
|
||||
public Integer numRetries(){ return null; }
|
||||
public RetryCondition aggregateRetryCondition(){ return null; }
|
||||
public RetryCondition retryCondition(){ return null; }
|
||||
public RetryMode retryMode(){ return null; }
|
||||
public RetryPolicy.Builder toBuilder(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean additionalRetryConditionsAllowed(){ return false; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static RetryPolicy defaultRetryPolicy(){ return null; }
|
||||
public static RetryPolicy forRetryMode(RetryMode p0){ return null; }
|
||||
public static RetryPolicy none(){ return null; }
|
||||
public static RetryPolicy.Builder builder(){ return null; }
|
||||
public static RetryPolicy.Builder builder(RetryMode p0){ return null; }
|
||||
static public interface Builder extends CopyableBuilder<RetryPolicy.Builder, RetryPolicy>
|
||||
{
|
||||
BackoffStrategy backoffStrategy();
|
||||
BackoffStrategy throttlingBackoffStrategy();
|
||||
Boolean isFastFailRateLimiting();
|
||||
Integer numRetries();
|
||||
RetryCondition retryCapacityCondition();
|
||||
RetryCondition retryCondition();
|
||||
RetryPolicy build();
|
||||
RetryPolicy.Builder additionalRetryConditionsAllowed(boolean p0);
|
||||
RetryPolicy.Builder backoffStrategy(BackoffStrategy p0);
|
||||
RetryPolicy.Builder fastFailRateLimiting(Boolean p0);
|
||||
RetryPolicy.Builder numRetries(Integer p0);
|
||||
RetryPolicy.Builder retryCapacityCondition(RetryCondition p0);
|
||||
RetryPolicy.Builder retryCondition(RetryCondition p0);
|
||||
RetryPolicy.Builder throttlingBackoffStrategy(BackoffStrategy p0);
|
||||
boolean additionalRetryConditionsAllowed();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.retry.RetryPolicyContext for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.retry;
|
||||
|
||||
import software.amazon.awssdk.core.SdkRequest;
|
||||
import software.amazon.awssdk.core.exception.SdkException;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
||||
import software.amazon.awssdk.http.SdkHttpFullRequest;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class RetryPolicyContext implements ToCopyableBuilder<RetryPolicyContext.Builder, RetryPolicyContext>
|
||||
{
|
||||
protected RetryPolicyContext() {}
|
||||
public ExecutionAttributes executionAttributes(){ return null; }
|
||||
public Integer httpStatusCode(){ return null; }
|
||||
public RetryPolicyContext.Builder toBuilder(){ return null; }
|
||||
public SdkException exception(){ return null; }
|
||||
public SdkHttpFullRequest request(){ return null; }
|
||||
public SdkRequest originalRequest(){ return null; }
|
||||
public int retriesAttempted(){ return 0; }
|
||||
public int totalRequests(){ return 0; }
|
||||
public static RetryPolicyContext.Builder builder(){ return null; }
|
||||
static public class Builder implements CopyableBuilder<RetryPolicyContext.Builder, RetryPolicyContext>
|
||||
{
|
||||
protected Builder() {}
|
||||
public RetryPolicyContext build(){ return null; }
|
||||
public RetryPolicyContext.Builder exception(SdkException p0){ return null; }
|
||||
public RetryPolicyContext.Builder executionAttributes(ExecutionAttributes p0){ return null; }
|
||||
public RetryPolicyContext.Builder httpStatusCode(Integer p0){ return null; }
|
||||
public RetryPolicyContext.Builder originalRequest(SdkRequest p0){ return null; }
|
||||
public RetryPolicyContext.Builder request(SdkHttpFullRequest p0){ return null; }
|
||||
public RetryPolicyContext.Builder retriesAttempted(int p0){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.retry.backoff.BackoffStrategy for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.retry.backoff;
|
||||
|
||||
import java.time.Duration;
|
||||
import software.amazon.awssdk.core.retry.RetryMode;
|
||||
import software.amazon.awssdk.core.retry.RetryPolicyContext;
|
||||
|
||||
public interface BackoffStrategy
|
||||
{
|
||||
Duration computeDelayBeforeNextRetry(RetryPolicyContext p0);
|
||||
default int calculateExponentialDelay(int p0, Duration p1, Duration p2){ return 0; }
|
||||
static BackoffStrategy defaultStrategy(){ return null; }
|
||||
static BackoffStrategy defaultStrategy(RetryMode p0){ return null; }
|
||||
static BackoffStrategy defaultThrottlingStrategy(){ return null; }
|
||||
static BackoffStrategy defaultThrottlingStrategy(RetryMode p0){ return null; }
|
||||
static BackoffStrategy none(){ return null; }
|
||||
static int RETRIES_ATTEMPTED_CEILING = 0;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.retry.conditions.RetryCondition for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.retry.conditions;
|
||||
|
||||
import software.amazon.awssdk.core.retry.RetryPolicyContext;
|
||||
|
||||
public interface RetryCondition
|
||||
{
|
||||
boolean shouldRetry(RetryPolicyContext p0);
|
||||
default void requestSucceeded(RetryPolicyContext p0){}
|
||||
default void requestWillNotBeRetried(RetryPolicyContext p0){}
|
||||
static RetryCondition defaultRetryCondition(){ return null; }
|
||||
static RetryCondition none(){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.signer.Signer for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.signer;
|
||||
|
||||
import software.amazon.awssdk.core.CredentialType;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
||||
import software.amazon.awssdk.http.SdkHttpFullRequest;
|
||||
|
||||
public interface Signer
|
||||
{
|
||||
SdkHttpFullRequest sign(SdkHttpFullRequest p0, ExecutionAttributes p1);
|
||||
default CredentialType credentialType(){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.sync.RequestBody for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.sync;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.http.ContentStreamProvider;
|
||||
|
||||
public class RequestBody
|
||||
{
|
||||
protected RequestBody() {}
|
||||
public ContentStreamProvider contentStreamProvider(){ return null; }
|
||||
public Optional<Long> optionalContentLength(){ return null; }
|
||||
public String contentType(){ return null; }
|
||||
public long contentLength(){ return 0; }
|
||||
public static RequestBody empty(){ return null; }
|
||||
public static RequestBody fromByteBuffer(ByteBuffer p0){ return null; }
|
||||
public static RequestBody fromBytes(byte[] p0){ return null; }
|
||||
public static RequestBody fromContentProvider(ContentStreamProvider p0, String p1){ return null; }
|
||||
public static RequestBody fromContentProvider(ContentStreamProvider p0, long p1, String p2){ return null; }
|
||||
public static RequestBody fromFile(File p0){ return null; }
|
||||
public static RequestBody fromFile(Path p0){ return null; }
|
||||
public static RequestBody fromInputStream(InputStream p0, long p1){ return null; }
|
||||
public static RequestBody fromRemainingByteBuffer(ByteBuffer p0){ return null; }
|
||||
public static RequestBody fromString(String p0){ return null; }
|
||||
public static RequestBody fromString(String p0, Charset p1){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.traits.Trait for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.traits;
|
||||
|
||||
|
||||
public interface Trait
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.waiters.WaiterOverrideConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.waiters;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.core.retry.backoff.BackoffStrategy;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class WaiterOverrideConfiguration implements ToCopyableBuilder<WaiterOverrideConfiguration.Builder, WaiterOverrideConfiguration>
|
||||
{
|
||||
protected WaiterOverrideConfiguration() {}
|
||||
public Optional<BackoffStrategy> backoffStrategy(){ return null; }
|
||||
public Optional<Duration> waitTimeout(){ return null; }
|
||||
public Optional<Integer> maxAttempts(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public WaiterOverrideConfiguration(WaiterOverrideConfiguration.Builder p0){}
|
||||
public WaiterOverrideConfiguration.Builder toBuilder(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static WaiterOverrideConfiguration.Builder builder(){ return null; }
|
||||
static public class Builder implements CopyableBuilder<WaiterOverrideConfiguration.Builder, WaiterOverrideConfiguration>
|
||||
{
|
||||
protected Builder() {}
|
||||
public WaiterOverrideConfiguration build(){ return null; }
|
||||
public WaiterOverrideConfiguration.Builder backoffStrategy(BackoffStrategy p0){ return null; }
|
||||
public WaiterOverrideConfiguration.Builder maxAttempts(Integer p0){ return null; }
|
||||
public WaiterOverrideConfiguration.Builder waitTimeout(Duration p0){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.waiters.WaiterResponse for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.waiters;
|
||||
|
||||
import software.amazon.awssdk.core.internal.waiters.ResponseOrException;
|
||||
|
||||
public interface WaiterResponse<T>
|
||||
{
|
||||
ResponseOrException<T> matched();
|
||||
int attemptsExecuted();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user