Skip to content

Commit 8f2a0da

Browse files
Ubunturbs1518
authored andcommitted
chore(sdk): generate java extend sdk (2025-08-21T21:28:57+00:00)
generated from openapi spec commit: bd085b93730e32909c685723c9c75ab51167b912
1 parent 4d5fd8a commit 8f2a0da

Some content is hidden

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

52 files changed

+1172
-323
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<a name="v0.75.0"></a>
2+
## [v0.75.0]
3+
### chore
4+
- **build.gradle:** update ossrh url
5+
- **:** refresh gitignore
6+
### test
7+
- **integration:** csm - move private functions to the bottom
8+
- **integration:** csm - fix delete extend app iam client
9+
### ci
10+
- **github:** better utilize all available build machines
11+
- **:** consolidate job channel
12+
13+
114
<a name="v0.74.0"></a>
215
## [v0.74.0]
316
### ci

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111
}
1212

1313
group = 'net.accelbyte.sdk'
14-
version = '0.74.0'
14+
version = '0.75.0'
1515

1616
compileJava.options.encoding = 'UTF-8'
1717
sourceCompatibility = 1.8
@@ -68,7 +68,7 @@ publishing {
6868
mavenJava(MavenPublication){
6969
//groupId = 'net.accelbyte.sdk'
7070
artifactId = 'sdk'
71-
//version = '0.74.0'
71+
//version = '0.75.0'
7272
from components.java
7373

7474
afterEvaluate {

codegen.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9803479323be767bdc34cfba8652bd6004278f50
1+
d95d92804d019512f282178e2c729df077d84904

docs/operations/match2.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
| `/match2/v1/admin/namespaces/{namespace}/playfeatureflag` | POST | AdminUpsertPlayFeatureFlag | [AdminUpsertPlayFeatureFlag](../../src/main/java/net/accelbyte/sdk/api/match2/operations/play_feature_flag/AdminUpsertPlayFeatureFlag.java) | [AdminUpsertPlayFeatureFlag](../../samples/cli/src/main/java/net/accelbyte/sdk/cli/api/match2/play_feature_flag/AdminUpsertPlayFeatureFlag.java) |
2828
| `/match2/v1/admin/namespaces/{namespace}/playfeatureflag` | DELETE | AdminDeletePlayFeatureFlag | [AdminDeletePlayFeatureFlag](../../src/main/java/net/accelbyte/sdk/api/match2/operations/play_feature_flag/AdminDeletePlayFeatureFlag.java) | [AdminDeletePlayFeatureFlag](../../samples/cli/src/main/java/net/accelbyte/sdk/cli/api/match2/play_feature_flag/AdminDeletePlayFeatureFlag.java) |
2929

30+
### XRay Config Wrapper: [XRayConfig](../../src/main/java/net/accelbyte/sdk/api/match2/wrappers/XRayConfig.java)
31+
| Endpoint | Method | ID | Class | Example |
32+
|---|---|---|---|---|
33+
| `/match2/v1/admin/namespaces/{namespace}/xray/config` | GET | AdminGetXRayConfig | [AdminGetXRayConfig](../../src/main/java/net/accelbyte/sdk/api/match2/operations/x_ray_config/AdminGetXRayConfig.java) | [AdminGetXRayConfig](../../samples/cli/src/main/java/net/accelbyte/sdk/cli/api/match2/x_ray_config/AdminGetXRayConfig.java) |
34+
| `/match2/v1/admin/namespaces/{namespace}/xray/config` | POST | AdminUpdateXRayConfig | [AdminUpdateXRayConfig](../../src/main/java/net/accelbyte/sdk/api/match2/operations/x_ray_config/AdminUpdateXRayConfig.java) | [AdminUpdateXRayConfig](../../samples/cli/src/main/java/net/accelbyte/sdk/cli/api/match2/x_ray_config/AdminUpdateXRayConfig.java) |
35+
3036
### Environment-Variables Wrapper: [EnvironmentVariables](../../src/main/java/net/accelbyte/sdk/api/match2/wrappers/EnvironmentVariables.java)
3137
| Endpoint | Method | ID | Class | Example |
3238
|---|---|---|---|---|
@@ -139,5 +145,7 @@
139145
| `models.PlayFeatureFlag` | [ModelsPlayFeatureFlag](../../src/main/java/net/accelbyte/sdk/api/match2/models/ModelsPlayFeatureFlag.java) |
140146
| `models.Server` | [ModelsServer](../../src/main/java/net/accelbyte/sdk/api/match2/models/ModelsServer.java) |
141147
| `models.User` | [ModelsUser](../../src/main/java/net/accelbyte/sdk/api/match2/models/ModelsUser.java) |
148+
| `models.XRayConfigHttpResponse` | [ModelsXRayConfigHttpResponse](../../src/main/java/net/accelbyte/sdk/api/match2/models/ModelsXRayConfigHttpResponse.java) |
149+
| `models.XRayConfigHttpUpdateRequest` | [ModelsXRayConfigHttpUpdateRequest](../../src/main/java/net/accelbyte/sdk/api/match2/models/ModelsXRayConfigHttpUpdateRequest.java) |
142150
| `player.PlayerData` | [PlayerPlayerData](../../src/main/java/net/accelbyte/sdk/api/match2/models/PlayerPlayerData.java) |
143151
| `response.Error` | [ResponseError](../../src/main/java/net/accelbyte/sdk/api/match2/models/ResponseError.java) |

samples/cli/operations/ams.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ $ build/install/cli/bin/cli ams artifactGetURL \
102102
$ build/install/cli/bin/cli ams developmentServerConfigurationList \
103103
--namespace <namespace value> \
104104
--count <count value - optional> \
105-
--offset <offset value - optional>
105+
--imageId <imageId value - optional> \
106+
--name <name value - optional> \
107+
--offset <offset value - optional> \
108+
--sortBy <sortBy value - optional> \
109+
--sortDirection <sortDirection value - optional>
106110
```
107111

108112
### Operation DevelopmentServerConfigurationCreate

samples/cli/operations/match2.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ $ build/install/cli/bin/cli match2 adminDeletePlayFeatureFlag \
4747
--namespace <namespace value>
4848
```
4949

50+
### Operation AdminGetXRayConfig
51+
52+
```sh
53+
$ build/install/cli/bin/cli match2 adminGetXRayConfig \
54+
--namespace <namespace value>
55+
```
56+
57+
### Operation AdminUpdateXRayConfig
58+
59+
```sh
60+
$ build/install/cli/bin/cli match2 adminUpdateXRayConfig \
61+
--namespace <namespace value> \
62+
--body <json string for request body>
63+
```
64+
5065
### Operation AdminGetAllConfigV1
5166

5267
```sh

samples/cli/src/main/java/net/accelbyte/sdk/cli/api/ams/development/DevelopmentServerConfigurationList.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,31 @@ public class DevelopmentServerConfigurationList implements Callable<Integer> {
4040
description = "count")
4141
Integer count;
4242

43+
@Option(
44+
names = {"--imageId"},
45+
description = "imageId")
46+
String imageId;
47+
48+
@Option(
49+
names = {"--name"},
50+
description = "name")
51+
String name;
52+
4353
@Option(
4454
names = {"--offset"},
4555
description = "offset")
4656
Integer offset;
4757

58+
@Option(
59+
names = {"--sortBy"},
60+
description = "sortBy")
61+
String sortBy;
62+
63+
@Option(
64+
names = {"--sortDirection"},
65+
description = "sortDirection")
66+
String sortDirection;
67+
4868
@Option(
4969
names = {"--logging"},
5070
description = "logger")
@@ -72,7 +92,11 @@ public Integer call() {
7292
.builder()
7393
.namespace(namespace)
7494
.count(count)
95+
.imageId(imageId)
96+
.name(name)
7597
.offset(offset)
98+
.sortBy(sortBy)
99+
.sortDirection(sortDirection)
76100
.build();
77101
final ApiDevelopmentServerConfigurationListResponse response =
78102
wrapper.developmentServerConfigurationList(operation);
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*
2+
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
3+
* This is licensed software from AccelByte Inc, for limitations
4+
* and restrictions contact your company contract manager.
5+
*
6+
* Code generated. DO NOT EDIT.
7+
*/
8+
9+
package net.accelbyte.sdk.cli.api.match2.x_ray_config;
10+
11+
import com.fasterxml.jackson.databind.ObjectMapper;
12+
import java.util.*;
13+
import java.util.concurrent.Callable;
14+
import net.accelbyte.sdk.api.match2.models.*;
15+
import net.accelbyte.sdk.api.match2.wrappers.XRayConfig;
16+
import net.accelbyte.sdk.cli.repository.CLITokenRepositoryImpl;
17+
import net.accelbyte.sdk.core.AccelByteSDK;
18+
import net.accelbyte.sdk.core.HttpResponseException;
19+
import net.accelbyte.sdk.core.client.OkhttpClient;
20+
import net.accelbyte.sdk.core.logging.OkhttpLogger;
21+
import net.accelbyte.sdk.core.repository.DefaultConfigRepository;
22+
import org.apache.logging.log4j.LogManager;
23+
import org.apache.logging.log4j.Logger;
24+
import picocli.CommandLine;
25+
import picocli.CommandLine.Command;
26+
import picocli.CommandLine.Option;
27+
28+
@Command(name = "adminGetXRayConfig", mixinStandardHelpOptions = true)
29+
public class AdminGetXRayConfig implements Callable<Integer> {
30+
31+
private static final Logger log = LogManager.getLogger(AdminGetXRayConfig.class);
32+
33+
@Option(
34+
names = {"--namespace"},
35+
description = "namespace")
36+
String namespace;
37+
38+
@Option(
39+
names = {"--logging"},
40+
description = "logger")
41+
boolean logging;
42+
43+
public static void main(String[] args) {
44+
int exitCode = new CommandLine(new AdminGetXRayConfig()).execute(args);
45+
System.exit(exitCode);
46+
}
47+
48+
@Override
49+
public Integer call() {
50+
try {
51+
final OkhttpClient httpClient = new OkhttpClient();
52+
if (logging) {
53+
httpClient.setLogger(new OkhttpLogger());
54+
}
55+
final AccelByteSDK sdk =
56+
new AccelByteSDK(
57+
httpClient, CLITokenRepositoryImpl.getInstance(), new DefaultConfigRepository());
58+
final XRayConfig wrapper = new XRayConfig(sdk);
59+
final net.accelbyte.sdk.api.match2.operations.x_ray_config.AdminGetXRayConfig operation =
60+
net.accelbyte.sdk.api.match2.operations.x_ray_config.AdminGetXRayConfig.builder()
61+
.namespace(namespace)
62+
.build();
63+
final ModelsXRayConfigHttpResponse response = wrapper.adminGetXRayConfig(operation);
64+
final String responseString =
65+
new ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(response);
66+
log.info("Operation successful\n{}", responseString);
67+
return 0;
68+
} catch (HttpResponseException e) {
69+
log.error(String.format("Operation failed with HTTP response %s\n{}", e.getHttpCode()), e);
70+
} catch (Exception e) {
71+
log.error("An exception was thrown", e);
72+
}
73+
return 1;
74+
}
75+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
3+
* This is licensed software from AccelByte Inc, for limitations
4+
* and restrictions contact your company contract manager.
5+
*
6+
* Code generated. DO NOT EDIT.
7+
*/
8+
9+
package net.accelbyte.sdk.cli.api.match2.x_ray_config;
10+
11+
import com.fasterxml.jackson.databind.ObjectMapper;
12+
import java.util.*;
13+
import java.util.concurrent.Callable;
14+
import net.accelbyte.sdk.api.match2.models.*;
15+
import net.accelbyte.sdk.api.match2.wrappers.XRayConfig;
16+
import net.accelbyte.sdk.cli.repository.CLITokenRepositoryImpl;
17+
import net.accelbyte.sdk.core.AccelByteSDK;
18+
import net.accelbyte.sdk.core.HttpResponseException;
19+
import net.accelbyte.sdk.core.client.OkhttpClient;
20+
import net.accelbyte.sdk.core.logging.OkhttpLogger;
21+
import net.accelbyte.sdk.core.repository.DefaultConfigRepository;
22+
import org.apache.logging.log4j.LogManager;
23+
import org.apache.logging.log4j.Logger;
24+
import picocli.CommandLine;
25+
import picocli.CommandLine.Command;
26+
import picocli.CommandLine.Option;
27+
28+
@Command(name = "adminUpdateXRayConfig", mixinStandardHelpOptions = true)
29+
public class AdminUpdateXRayConfig implements Callable<Integer> {
30+
31+
private static final Logger log = LogManager.getLogger(AdminUpdateXRayConfig.class);
32+
33+
@Option(
34+
names = {"--namespace"},
35+
description = "namespace")
36+
String namespace;
37+
38+
@Option(
39+
names = {"--body"},
40+
description = "body")
41+
String body;
42+
43+
@Option(
44+
names = {"--logging"},
45+
description = "logger")
46+
boolean logging;
47+
48+
public static void main(String[] args) {
49+
int exitCode = new CommandLine(new AdminUpdateXRayConfig()).execute(args);
50+
System.exit(exitCode);
51+
}
52+
53+
@Override
54+
public Integer call() {
55+
try {
56+
final OkhttpClient httpClient = new OkhttpClient();
57+
if (logging) {
58+
httpClient.setLogger(new OkhttpLogger());
59+
}
60+
final AccelByteSDK sdk =
61+
new AccelByteSDK(
62+
httpClient, CLITokenRepositoryImpl.getInstance(), new DefaultConfigRepository());
63+
final XRayConfig wrapper = new XRayConfig(sdk);
64+
final net.accelbyte.sdk.api.match2.operations.x_ray_config.AdminUpdateXRayConfig operation =
65+
net.accelbyte.sdk.api.match2.operations.x_ray_config.AdminUpdateXRayConfig.builder()
66+
.namespace(namespace)
67+
.body(new ObjectMapper().readValue(body, ModelsXRayConfigHttpUpdateRequest.class))
68+
.build();
69+
wrapper.adminUpdateXRayConfig(operation);
70+
log.info("Operation successful");
71+
return 0;
72+
} catch (HttpResponseException e) {
73+
log.error(String.format("Operation failed with HTTP response %s\n{}", e.getHttpCode()), e);
74+
} catch (Exception e) {
75+
log.error("An exception was thrown", e);
76+
}
77+
return 1;
78+
}
79+
}

samples/cli/src/main/java/net/accelbyte/sdk/cli/wrapper/Match2.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import net.accelbyte.sdk.cli.api.match2.operations.*;
1818
import net.accelbyte.sdk.cli.api.match2.play_feature_flag.*;
1919
import net.accelbyte.sdk.cli.api.match2.rule_sets.*;
20+
import net.accelbyte.sdk.cli.api.match2.x_ray_config.*;
2021
import picocli.CommandLine.Command;
2122

2223
@Command(
@@ -30,6 +31,8 @@
3031
AdminGetPlayFeatureFlag.class,
3132
AdminUpsertPlayFeatureFlag.class,
3233
AdminDeletePlayFeatureFlag.class,
34+
AdminGetXRayConfig.class,
35+
AdminUpdateXRayConfig.class,
3336
AdminGetAllConfigV1.class,
3437
AdminGetConfigV1.class,
3538
AdminPatchConfigV1.class,

0 commit comments

Comments
 (0)