Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.443.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 22, 2024
1 parent 690f9d8 commit f8472f5
Show file tree
Hide file tree
Showing 23 changed files with 537 additions and 35 deletions.
24 changes: 18 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 7b361cb9-7960-4aa9-aefb-1d3ff2bbe54b
management:
docChecksum: 2e6d96fd26cc8e0abdaab86068eece08
docChecksum: 25f4c1321324459bae1ae0e40bd9591e
docVersion: 0.0.1
speakeasyVersion: 1.441.0
generationVersion: 2.460.1
releaseVersion: 2.11.1
configChecksum: 4dbc8b0c03d8d87de67a18174ef10571
speakeasyVersion: 1.443.0
generationVersion: 2.461.4
releaseVersion: 2.11.2
configChecksum: 76253325669ed6aa565b4a989880f552
repoURL: https://github.com/hathora/cloud-sdk-java.git
repoSubDirectory: .
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.32.0
core: 3.32.1
deprecations: 2.81.1
downloadStreams: 0.1.1
flattening: 2.81.1
Expand Down Expand Up @@ -342,6 +342,8 @@ generatedFiles:
- docs/models/shared/OrgMember.md
- docs/models/shared/OrgMembersPage.md
- docs/models/shared/OrgToken.md
- docs/models/shared/OrgToken2.md
- docs/models/shared/OrgTokenScopes.md
- docs/models/shared/OrgTokenStatus.md
- docs/models/shared/Organization.md
- docs/models/shared/OrgsPage.md
Expand Down Expand Up @@ -373,12 +375,15 @@ generatedFiles:
- docs/models/shared/RoomStatus.md
- docs/models/shared/RoomWithoutAllocations.md
- docs/models/shared/RoomWithoutAllocationsCurrentAllocation.md
- docs/models/shared/Scope.md
- docs/models/shared/Scopes.md
- docs/models/shared/Security.md
- docs/models/shared/SetLobbyStateParams.md
- docs/models/shared/StartingConnectionInfo.md
- docs/models/shared/StartingConnectionInfoStatus.md
- docs/models/shared/Status.md
- docs/models/shared/TransportType.md
- docs/models/shared/Two.md
- docs/models/shared/UpdateRoomConfigParams.md
- docs/models/shared/UploadBodyParams.md
- docs/models/shared/UsageLimits.md
Expand Down Expand Up @@ -871,6 +876,8 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/shared/OrgMember.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/OrgMembersPage.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/OrgToken.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/OrgToken2.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/OrgTokenScopes.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/OrgTokenStatus.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/Organization.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/OrgsPage.java
Expand Down Expand Up @@ -902,12 +909,15 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/shared/RoomStatus.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/RoomWithoutAllocations.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/RoomWithoutAllocationsCurrentAllocation.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/Scope.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/Scopes.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/Security.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/SetLobbyStateParams.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/StartingConnectionInfo.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/StartingConnectionInfoStatus.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/Status.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/TransportType.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/Two.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/UpdateRoomConfigParams.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/UploadBodyParams.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/UsageLimits.java
Expand Down Expand Up @@ -2150,6 +2160,8 @@ examples:
"404":
application/json: {"message": "<value>"}
"200": {}
"401":
application/json: {"message": "<value>"}
GetMetricsDeprecated:
speakeasy-default-get-metrics-deprecated:
parameters:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.441.0
speakeasyVersion: 1.443.0
sources:
java-source:
sourceNamespace: java-source
sourceRevisionDigest: sha256:b389e53e498d9cae15cdaf75f18f92d345dbde9a5d2b9c851e8993f0c49dc1ea
sourceBlobDigest: sha256:02eb3ea162a4bbca155f0e3df0133c20e7d6e301ed5b08797c8c5f6db8954a4f
sourceRevisionDigest: sha256:9772d7ba772ec937021772d76cabb88260be926e0efeaa6dc288de0d7ca56246
sourceBlobDigest: sha256:a57710c3bbebaa23e495807ea511f7b91325070cb183738d6bc00bdbb25de1bc
tags:
- latest
- speakeasy-sdk-regen-1732061269
- speakeasy-sdk-regen-1732234089
targets:
hathora-java:
source: java-source
sourceNamespace: java-source
sourceRevisionDigest: sha256:b389e53e498d9cae15cdaf75f18f92d345dbde9a5d2b9c851e8993f0c49dc1ea
sourceBlobDigest: sha256:02eb3ea162a4bbca155f0e3df0133c20e7d6e301ed5b08797c8c5f6db8954a4f
sourceRevisionDigest: sha256:9772d7ba772ec937021772d76cabb88260be926e0efeaa6dc288de0d7ca56246
sourceBlobDigest: sha256:a57710c3bbebaa23e495807ea511f7b91325070cb183738d6bc00bdbb25de1bc
codeSamplesNamespace: code-samples-java-hathora-java
codeSamplesRevisionDigest: sha256:09835d3dd67d4f5ebf5071f4c86720b77195072f360c6328eb47eb408e65b6f2
codeSamplesRevisionDigest: sha256:78b336593d3e8bbef9a4d8c5776c1c687aae1561c71a9d8d572e5935ee33edf9
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'dev.hathora:cloud-sdk:2.11.1'
implementation 'dev.hathora:cloud-sdk:2.11.2'
```

Maven:
```xml
<dependency>
<groupId>dev.hathora</groupId>
<artifactId>cloud-sdk</artifactId>
<version>2.11.1</version>
<version>2.11.2</version>
</dependency>
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -859,4 +859,14 @@ Based on:
### Generated
- [java v2.11.1] .
### Releases
- [Maven Central v2.11.1] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.11.1 - .
- [Maven Central v2.11.1] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.11.1 - .

## 2024-11-22 00:08:05
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.443.0 (2.461.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.11.2] .
### Releases
- [Maven Central v2.11.2] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.11.2 - .
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}

group = "dev.hathora"
version = "2.11.1"
version = "2.11.2"

sourcesJar {
archiveBaseName = "cloud-sdk"
Expand Down Expand Up @@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'dev.hathora'
artifactId = 'cloud-sdk'
version = '2.11.1'
version = '2.11.2'

from components.java

Expand Down Expand Up @@ -148,10 +148,11 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation 'org.java-websocket:Java-WebSocket:1.5.6'
api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
implementation 'commons-io:commons-io:2.15.1'
Expand Down
3 changes: 2 additions & 1 deletion docs/models/shared/CreateOrgToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
| `name` | *String* | :heavy_check_mark: | Readable name for a token. Must be unique within an organization. | ci-token |
| `name` | *String* | :heavy_check_mark: | Readable name for a token. Must be unique within an organization. | ci-token |
| `scopes` | [Optional\<Scopes>](../../models/shared/Scopes.md) | :heavy_minus_sign: | If not defined, the token has Admin access. | |
1 change: 1 addition & 0 deletions docs/models/shared/OrgToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
| `name` | *String* | :heavy_check_mark: | Readable name for a token. Must be unique within an organization. | ci-token |
| `orgId` | *String* | :heavy_check_mark: | N/A | |
| `orgTokenId` | *String* | :heavy_check_mark: | System generated unique identifier for an organization token. | org-token-af469a92-5b45-4565-b3c4-b79878de67d2 |
| `scopes` | [Optional\<OrgTokenScopes>](../../models/shared/OrgTokenScopes.md) | :heavy_minus_sign: | If not defined, the token has Admin access. | |
| `status` | [OrgTokenStatus](../../models/shared/OrgTokenStatus.md) | :heavy_check_mark: | N/A | |
8 changes: 8 additions & 0 deletions docs/models/shared/OrgToken2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# OrgToken2


## Values

| Name | Value |
| ------- | ------- |
| `ADMIN` | admin |
4 changes: 4 additions & 0 deletions docs/models/shared/OrgTokenScopes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# OrgTokenScopes

If not defined, the token has Admin access.

22 changes: 22 additions & 0 deletions docs/models/shared/Scope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Scope


## Values

| Name | Value |
| ------------------------- | ------------------------- |
| `BILLING_READ_WRITE` | billing:read-write |
| `BUILDS_READ` | builds:read |
| `BUILDS_READ_WRITE` | builds:read-write |
| `DEPLOYMENTS_READ` | deployments:read |
| `DEPLOYMENTS_READ_WRITE` | deployments:read-write |
| `APPLICATIONS_READ` | applications:read |
| `APPLICATIONS_READ_WRITE` | applications:read-write |
| `PROCESSES_READ` | processes:read |
| `PROCESSES_READ_WRITE` | processes:read-write |
| `FLEETS_READ` | fleets:read |
| `FLEETS_READ_WRITE` | fleets:read-write |
| `ORGS_READ` | orgs:read |
| `ORGS_READ_WRITE` | orgs:read-write |
| `TOKENS_READ` | tokens:read |
| `TOKENS_READ_WRITE` | tokens:read-write |
4 changes: 4 additions & 0 deletions docs/models/shared/Scopes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Scopes

If not defined, the token has Admin access.

8 changes: 8 additions & 0 deletions docs/models/shared/Two.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Two


## Values

| Name | Value |
| ------- | ------- |
| `ADMIN` | admin |
8 changes: 4 additions & 4 deletions docs/sdks/fleetsv1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public class Application {

### Errors

| Error Type | Status Code | Content Type |
| ---------------------- | ---------------------- | ---------------------- |
| models/errors/ApiError | 404, 422, 429, 500 | application/json |
| models/errors/SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| ----------------------- | ----------------------- | ----------------------- |
| models/errors/ApiError | 401, 404, 422, 429, 500 | application/json |
| models/errors/SDKError | 4XX, 5XX | \*/\* |

## getFleetRegion

Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
baseServerURL: ""
flattenGlobalSecurity: true
java:
version: 2.11.1
version: 2.11.2
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter-api:5.8.1
- testRuntimeOnly:org.junit.jupiter:junit-jupiter-engine:5.8.1
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/dev/hathora/cloud_sdk/FleetsV1.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public GetFleetMetricsResponse getFleetMetrics(
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "422", "429", "4XX", "500", "5XX")) {
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "404", "422", "429", "4XX", "500", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl(
Expand Down Expand Up @@ -163,7 +163,7 @@ public GetFleetMetricsResponse getFleetMetrics(
Utils.extractByteArrayFromBody(_httpRes));
}
}
if (Utils.statusCodeMatches(_httpRes.statusCode(), "404", "422", "429", "500")) {
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "404", "422", "429", "500")) {
if (Utils.contentTypeMatches(_contentType, "application/json")) {
ApiError _out = Utils.mapper().readValue(
Utils.toUtf8AndClose(_httpRes.body()),
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/dev/hathora/cloud_sdk/SDKConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public Optional<SecuritySource> securitySource() {
public int serverIdx = 0;
private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.0.1";
public static final String SDK_VERSION = "2.11.1";
public static final String GEN_VERSION = "2.460.1";
public static final String SDK_VERSION = "2.11.2";
public static final String GEN_VERSION = "2.461.4";
private static final String BASE_PACKAGE = "dev.hathora.cloud_sdk";
public static final String USER_AGENT =
String.format("speakeasy-sdk/%s %s %s %s %s",
Expand Down
Loading

0 comments on commit f8472f5

Please sign in to comment.