Skip to content

Commit

Permalink
Merge pull request #51 from hathora/speakeasy-sdk-regen-1726174034
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 2.9.11
  • Loading branch information
gwprice115 authored Sep 12, 2024
2 parents 0971d70 + 0cff8e1 commit 30ce978
Show file tree
Hide file tree
Showing 545 changed files with 3,557 additions and 3,535 deletions.
1,028 changes: 514 additions & 514 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ speakeasyVersion: 1.396.4
sources:
java-source:
sourceNamespace: java-source
sourceRevisionDigest: sha256:57db62f5dccd81ea3d330d5aa20d8ea18a5baddadc1daa2e476fa9a75ecbec88
sourceRevisionDigest: sha256:f2868f48f2ad224ea882af05a700bdcd6886938f58904774ff03e38bccc08505
sourceBlobDigest: sha256:2443386b55189d2041dcbd4d7f5b138ac33c9e29d201158a06d4026adc77f95a
tags:
- latest
Expand All @@ -11,7 +11,7 @@ targets:
hathora-java:
source: java-source
sourceNamespace: java-source
sourceRevisionDigest: sha256:57db62f5dccd81ea3d330d5aa20d8ea18a5baddadc1daa2e476fa9a75ecbec88
sourceRevisionDigest: sha256:f2868f48f2ad224ea882af05a700bdcd6886938f58904774ff03e38bccc08505
sourceBlobDigest: sha256:2443386b55189d2041dcbd4d7f5b138ac33c9e29d201158a06d4026adc77f95a
outLocation: /github/workspace/repo
workflow:
Expand All @@ -29,10 +29,9 @@ workflow:
source: java-source
publish:
java:
ossrhUsername: USC8HvBS
ossrhUsername: hEuK3iaG
ossrhPassword: $ossrh_password
gpgSecretKey: $java_gpg_secret_key
gpgPassPhrase: $java_gpg_passphrase
useSonatypeLegacy: true
codeSamples:
output: codeSamples.yaml
98 changes: 49 additions & 49 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 'com.hathora:cloud-sdk:2.9.10'
implementation 'dev.hathora:cloud-sdk:2.9.11'
```

Maven:
```xml
<dependency>
<groupId>com.hathora</groupId>
<groupId>dev.hathora</groupId>
<artifactId>cloud-sdk</artifactId>
<version>2.9.10</version>
<version>2.9.11</version>
</dependency>
```

Expand All @@ -70,12 +70,12 @@ gradlew.bat publishToMavenLocal -Pskip.signing
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import com.hathora.cloud_sdk.models.shared.AppConfig;
import com.hathora.cloud_sdk.models.shared.AuthConfiguration;
import com.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.AppConfig;
import dev.hathora.cloud_sdk.models.shared.AuthConfiguration;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

public class Application {
Expand All @@ -102,7 +102,7 @@ public class Application {
if (res.application().isPresent()) {
// handle response
}
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand Down Expand Up @@ -336,10 +336,10 @@ The following global parameter is available.
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.DeleteAppV1DeprecatedResponse;
import com.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.DeleteAppV1DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

public class Application {
Expand All @@ -358,7 +358,7 @@ public class Application {
.call();

// handle response
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand Down Expand Up @@ -389,12 +389,12 @@ Handling errors in this SDK should largely match your expectations. All operati
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import com.hathora.cloud_sdk.models.shared.AppConfig;
import com.hathora.cloud_sdk.models.shared.AuthConfiguration;
import com.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.AppConfig;
import dev.hathora.cloud_sdk.models.shared.AuthConfiguration;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

public class Application {
Expand All @@ -421,7 +421,7 @@ public class Application {
if (res.application().isPresent()) {
// handle response
}
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand Down Expand Up @@ -454,12 +454,12 @@ You can override the default server globally by passing a server index to the `s
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import com.hathora.cloud_sdk.models.shared.AppConfig;
import com.hathora.cloud_sdk.models.shared.AuthConfiguration;
import com.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.AppConfig;
import dev.hathora.cloud_sdk.models.shared.AuthConfiguration;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

public class Application {
Expand Down Expand Up @@ -487,7 +487,7 @@ public class Application {
if (res.application().isPresent()) {
// handle response
}
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand All @@ -509,12 +509,12 @@ The default server can also be overridden globally by passing a URL to the `serv
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import com.hathora.cloud_sdk.models.shared.AppConfig;
import com.hathora.cloud_sdk.models.shared.AuthConfiguration;
import com.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.AppConfig;
import dev.hathora.cloud_sdk.models.shared.AuthConfiguration;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

public class Application {
Expand Down Expand Up @@ -542,7 +542,7 @@ public class Application {
if (res.application().isPresent()) {
// handle response
}
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand Down Expand Up @@ -573,12 +573,12 @@ You can set the security parameters through the `security` builder method when i
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import com.hathora.cloud_sdk.models.shared.AppConfig;
import com.hathora.cloud_sdk.models.shared.AuthConfiguration;
import com.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.AppConfig;
import dev.hathora.cloud_sdk.models.shared.AuthConfiguration;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

public class Application {
Expand All @@ -605,7 +605,7 @@ public class Application {
if (res.application().isPresent()) {
// handle response
}
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand All @@ -626,11 +626,11 @@ Some operations in this SDK require the security scheme to be specified at the r
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.CreatePrivateLobbyDeprecatedResponse;
import com.hathora.cloud_sdk.models.operations.CreatePrivateLobbyDeprecatedSecurity;
import com.hathora.cloud_sdk.models.shared.Region;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.CreatePrivateLobbyDeprecatedResponse;
import dev.hathora.cloud_sdk.models.operations.CreatePrivateLobbyDeprecatedSecurity;
import dev.hathora.cloud_sdk.models.shared.Region;
import java.lang.Exception;

public class Application {
Expand All @@ -653,7 +653,7 @@ public class Application {
if (res.roomId().isPresent()) {
// handle response
}
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,4 +639,14 @@ Based on:
### Generated
- [java v2.9.10] .
### Releases
- [Maven Central v2.9.10] https://central.sonatype.com/artifact/com.hathora/cloud-sdk/2.9.10 - .
- [Maven Central v2.9.10] https://central.sonatype.com/artifact/com.hathora/cloud-sdk/2.9.10 - .

## 2024-09-12 20:47:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.4 (2.415.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.9.11] .
### Releases
- [Maven Central v2.9.11] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.9.11 - .
14 changes: 7 additions & 7 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
```java
package hello.world;

import com.hathora.cloud_sdk.HathoraCloud;
import com.hathora.cloud_sdk.models.errors.SDKError;
import com.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import com.hathora.cloud_sdk.models.shared.AppConfig;
import com.hathora.cloud_sdk.models.shared.AuthConfiguration;
import com.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.SDKError;
import dev.hathora.cloud_sdk.models.operations.CreateAppV1DeprecatedResponse;
import dev.hathora.cloud_sdk.models.shared.AppConfig;
import dev.hathora.cloud_sdk.models.shared.AuthConfiguration;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;

public class Application {
Expand All @@ -34,7 +34,7 @@ public class Application {
if (res.application().isPresent()) {
// handle response
}
} catch (com.hathora.cloud_sdk.models.errors.ApiError e) {
} catch (dev.hathora.cloud_sdk.models.errors.ApiError e) {
// handle exception
throw e;
} catch (SDKError e) {
Expand Down
43 changes: 28 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
}

compileJava.options.encoding = "UTF-8"
Expand All @@ -40,8 +41,9 @@ model {

jar {
dependsOn(":generatePomFileForMavenPublication")
archiveBaseName = "cloud-sdk"

into("META-INF/maven/com.hathora/cloud-sdk") {
into("META-INF/maven/dev.hathora/cloud-sdk") {
from("$buildDir/pom.xml")
}
}
Expand All @@ -60,8 +62,8 @@ tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}

group = "com.hathora"
version = "2.9.10"
group = "dev.hathora"
version = "2.9.11"

sourcesJar {
archiveBaseName = "cloud-sdk"
Expand All @@ -70,25 +72,36 @@ sourcesJar {
javadocJar {
archiveBaseName = "cloud-sdk"
}
sonatypeCentralUpload {
// This is your Sonatype generated username
username = System.getenv("SONATYPE_USERNAME")
// This is your sonatype generated password
password = System.getenv("SONATYPE_PASSWORD")

// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
archives = files(
"$buildDir/libs/cloud-sdk-${version}.jar",
"$buildDir/libs/cloud-sdk-${version}-sources.jar",
"$buildDir/libs/cloud-sdk-${version}-javadoc.jar"
)

// This is the pom file to upload. This is required by central
pom = file("$buildDir/pom.xml")

// This is your PGP private key. This is required to sign your files
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
// This is your PGP private key passphrase to decrypt your private key
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
}


publishing {
repositories {
maven {
name = "OSSRH"
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}

publications {
maven(MavenPublication) {
groupId = 'com.hathora'
groupId = 'dev.hathora'
artifactId = 'cloud-sdk'
version = '2.9.10'
version = '2.9.11'

from components.java

Expand Down
Loading

0 comments on commit 30ce978

Please sign in to comment.