Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 19, 2024
1 parent c71684f commit 926cbc0
Show file tree
Hide file tree
Showing 26 changed files with 1,230 additions and 117 deletions.
31 changes: 25 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: bfa4946b490fdca2f1007eca2c488a3f
docChecksum: f8d9519632cef4bd7e7a797fde2f0772
docVersion: 0.0.1
speakeasyVersion: 1.434.6
generationVersion: 2.452.0
releaseVersion: 2.10.14
configChecksum: f334376e7fa44bf241d4294fba7b13d4
speakeasyVersion: 1.441.0
generationVersion: 2.460.1
releaseVersion: 2.11.0
configChecksum: ba87b88717514bec26d36a884030275c
repoURL: https://github.com/hathora/cloud-sdk-java.git
repoSubDirectory: .
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.30.7
core: 3.32.0
deprecations: 2.81.1
downloadStreams: 0.1.1
flattening: 2.81.1
Expand Down Expand Up @@ -211,6 +211,8 @@ generatedFiles:
- docs/models/operations/GetUpcomingInvoiceItemsResponse.md
- docs/models/operations/GetUpcomingInvoiceTotalResponse.md
- docs/models/operations/GetUpcomingInvoiceTotalResponseBody.md
- docs/models/operations/GetUsageLimitsRequest.md
- docs/models/operations/GetUsageLimitsResponse.md
- docs/models/operations/GetUserPendingInvitesResponse.md
- docs/models/operations/InitStripeCustomerPortalUrlResponse.md
- docs/models/operations/InviteUserRequest.md
Expand Down Expand Up @@ -379,6 +381,7 @@ generatedFiles:
- docs/models/shared/TransportType.md
- docs/models/shared/UpdateRoomConfigParams.md
- docs/models/shared/UploadBodyParams.md
- docs/models/shared/UsageLimits.md
- docs/models/shared/VerificationEmailRequest.md
- docs/models/shared/VerificationEmailSuccess.md
- docs/sdks/appsv1/README.md
Expand Down Expand Up @@ -710,6 +713,9 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceTotalRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceTotalResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUpcomingInvoiceTotalResponseBody.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUsageLimitsRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUsageLimitsRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUsageLimitsResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUserPendingInvitesRequestBuilder.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/GetUserPendingInvitesResponse.java
- src/main/java/dev/hathora/cloud_sdk/models/operations/InitStripeCustomerPortalUrlRequestBuilder.java
Expand Down Expand Up @@ -904,6 +910,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/models/shared/TransportType.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
- src/main/java/dev/hathora/cloud_sdk/models/shared/VerificationEmailRequest.java
- src/main/java/dev/hathora/cloud_sdk/models/shared/VerificationEmailSuccess.java
- src/main/java/dev/hathora/cloud_sdk/utils/BackoffStrategy.java
Expand All @@ -928,6 +935,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/utils/OneOfDeserializer.java
- src/main/java/dev/hathora/cloud_sdk/utils/Options.java
- src/main/java/dev/hathora/cloud_sdk/utils/PathParamsMetadata.java
- src/main/java/dev/hathora/cloud_sdk/utils/QueryParameter.java
- src/main/java/dev/hathora/cloud_sdk/utils/QueryParameters.java
- src/main/java/dev/hathora/cloud_sdk/utils/QueryParamsMetadata.java
- src/main/java/dev/hathora/cloud_sdk/utils/RequestBody.java
Expand All @@ -942,6 +950,7 @@ generatedFiles:
- src/main/java/dev/hathora/cloud_sdk/utils/SpeakeasyMetadata.java
- src/main/java/dev/hathora/cloud_sdk/utils/TypedObject.java
- src/main/java/dev/hathora/cloud_sdk/utils/Types.java
- src/main/java/dev/hathora/cloud_sdk/utils/Utf8UrlEncoder.java
- src/main/java/dev/hathora/cloud_sdk/utils/Utils.java
examples:
CreateAppV1Deprecated:
Expand Down Expand Up @@ -2163,3 +2172,13 @@ examples:
"401":
application/json: {"message": "<value>"}
"200": {}
GetUsageLimits:
speakeasy-default-get-usage-limits:
parameters:
query:
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
responses:
"200":
application/json: {"concurrentProcessVcpus7DayMax": "5579.88", "monthlyProcessVcpuHoursConsumed": "7121.65"}
"401":
application/json: {"message": "<value>"}
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.434.6
speakeasyVersion: 1.441.0
sources:
java-source:
sourceNamespace: java-source
sourceRevisionDigest: sha256:357acfbd27e09e9494d9c305264d5af9aeffeaf10dadff9630b787ea7a4eabf7
sourceBlobDigest: sha256:0a0a4f688111af52e19ad94595b5a7affd98fae905a1f77743b94a9f0f91b59f
sourceRevisionDigest: sha256:c58b3eeee9b038ea133521163fb67af9274a497b42a8f8bc2795e9cc6d295d9a
sourceBlobDigest: sha256:ad44b14888555b1ee9f6a6497354a604779cfbcdafac32437ab16e66bd12e89d
tags:
- latest
- main
- speakeasy-sdk-regen-1731974889
targets:
hathora-java:
source: java-source
sourceNamespace: java-source
sourceRevisionDigest: sha256:357acfbd27e09e9494d9c305264d5af9aeffeaf10dadff9630b787ea7a4eabf7
sourceBlobDigest: sha256:0a0a4f688111af52e19ad94595b5a7affd98fae905a1f77743b94a9f0f91b59f
sourceRevisionDigest: sha256:c58b3eeee9b038ea133521163fb67af9274a497b42a8f8bc2795e9cc6d295d9a
sourceBlobDigest: sha256:ad44b14888555b1ee9f6a6497354a604779cfbcdafac32437ab16e66bd12e89d
codeSamplesNamespace: code-samples-java-hathora-java
codeSamplesRevisionDigest: sha256:eb35ee3aa0b0c87983254ffc9ff55e7a6b1ad1c05ef20f05e0397e920b3586b9
codeSamplesRevisionDigest: sha256:3547e84d623853799e3f6ac468e4502ecdf316917d206129f97e77d8c7d0bc60
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
39 changes: 19 additions & 20 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.10.14'
implementation 'dev.hathora:cloud-sdk:2.11.0'
```

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

Expand Down Expand Up @@ -248,6 +248,7 @@ public class Application {
* [getOrgMembers](docs/sdks/organizationsv1/README.md#getorgmembers) - GetOrgMembers
* [getOrgPendingInvites](docs/sdks/organizationsv1/README.md#getorgpendinginvites) - GetOrgPendingInvites
* [getOrgs](docs/sdks/organizationsv1/README.md#getorgs) - GetOrgs
* [getUsageLimits](docs/sdks/organizationsv1/README.md#getusagelimits) - GetUsageLimits
* [getUserPendingInvites](docs/sdks/organizationsv1/README.md#getuserpendinginvites) - GetUserPendingInvites
* [inviteUser](docs/sdks/organizationsv1/README.md#inviteuser) - InviteUser
* [rejectInvite](docs/sdks/organizationsv1/README.md#rejectinvite) - RejectInvite
Expand Down Expand Up @@ -318,10 +319,9 @@ For example, you can set `appId` to `"app-af469a92-5b45-4565-b3c4-b79878de67d2"`

The following global parameter is available.

| Name | Type | Required | Description |
| ---- | ---- |:--------:| ----------- |
| appId | java.lang.String | | The appId parameter. |

| Name | Type | Description |
| ----- | ---------------- | -------------------- |
| appId | java.lang.String | The appId parameter. |

### Example

Expand Down Expand Up @@ -362,10 +362,10 @@ Handling errors in this SDK should largely match your expectations. All operatio

By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `createApp` method throws the following exceptions:

| Error Type | Status Code | Content Type |
| ----------------------- | ----------------------- | ----------------------- |
| models/errors/ApiError | 401, 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 | \*/\* |

### Example

Expand Down Expand Up @@ -413,12 +413,12 @@ public class Application {

### Select Server by Index

You can override the default server globally by passing a server index to the `serverIndex` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
You can override the default server globally using the `.serverIndex(int serverIdx)` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://api.hathora.dev` | None |
| 1 | `https:///` | None |
| # | Server |
| --- | ------------------------- |
| 0 | `https://api.hathora.dev` |
| 1 | `https:///` |

#### Example

Expand Down Expand Up @@ -461,10 +461,9 @@ public class Application {
}
```


### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `serverURL` builder method when initializing the SDK client instance. For example:
The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
```java
package hello.world;

Expand Down Expand Up @@ -512,9 +511,9 @@ public class Application {

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ----------------- | ----------------- | ----------------- |
| `hathoraDevToken` | http | HTTP Bearer |
| Name | Type | Scheme |
| ----------------- | ---- | ----------- |
| `hathoraDevToken` | http | HTTP Bearer |

You can set the security parameters through the `security` builder method when initializing the SDK client instance. For example:
```java
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -839,4 +839,14 @@ Based on:
### Generated
- [java v2.10.14] .
### Releases
- [Maven Central v2.10.14] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.14 - .
- [Maven Central v2.10.14] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.10.14 - .

## 2024-11-19 00:08:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.441.0 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.11.0] .
### Releases
- [Maven Central v2.11.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/2.11.0 - .
4 changes: 2 additions & 2 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.10.14"
version = "2.11.0"

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

from components.java

Expand Down
6 changes: 6 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ actions:
- "lang": "java"
"label": "GetOrgs"
"source": "package hello.world;\n\nimport dev.hathora.cloud_sdk.HathoraCloud;\nimport dev.hathora.cloud_sdk.models.errors.ApiError;\nimport dev.hathora.cloud_sdk.models.operations.GetOrgsResponse;\nimport dev.hathora.cloud_sdk.models.shared.Security;\nimport java.lang.Exception;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .security(Security.builder()\n .hathoraDevToken(\"<YOUR_BEARER_TOKEN_HERE>\")\n .build())\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .build();\n\n GetOrgsResponse res = sdk.organizationsV1().getOrgs()\n .call();\n\n if (res.orgsPage().isPresent()) {\n // handle response\n }\n }\n}"
- target: $["paths"]["/orgs/v1/metadata/usageLimits"]["get"]
update:
"x-codeSamples":
- "lang": "java"
"label": "GetUsageLimits"
"source": "package hello.world;\n\nimport dev.hathora.cloud_sdk.HathoraCloud;\nimport dev.hathora.cloud_sdk.models.errors.ApiError;\nimport dev.hathora.cloud_sdk.models.operations.GetUsageLimitsResponse;\nimport dev.hathora.cloud_sdk.models.shared.Security;\nimport java.lang.Exception;\n\npublic class Application {\n\n public static void main(String[] args) throws ApiError, Exception {\n\n HathoraCloud sdk = HathoraCloud.builder()\n .security(Security.builder()\n .hathoraDevToken(\"<YOUR_BEARER_TOKEN_HERE>\")\n .build())\n .appId(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\")\n .build();\n\n GetUsageLimitsResponse res = sdk.organizationsV1().getUsageLimits()\n .orgId(\"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\")\n .call();\n\n if (res.usageLimits().isPresent()) {\n // handle response\n }\n }\n}"
- target: $["paths"]["/orgs/v1/user/invites/pending"]["get"]
update:
"x-codeSamples":
Expand Down
8 changes: 8 additions & 0 deletions docs/models/operations/GetUsageLimitsRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# GetUsageLimitsRequest


## Fields

| Field | Type | Required | Description | Example |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `orgId` | *Optional\<String>* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
11 changes: 11 additions & 0 deletions docs/models/operations/GetUsageLimitsResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetUsageLimitsResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `usageLimits` | [Optional\<UsageLimits>](../../models/shared/UsageLimits.md) | :heavy_minus_sign: | Ok |
11 changes: 11 additions & 0 deletions docs/models/shared/UsageLimits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# UsageLimits


## Fields

| Field | Type | Required | Description |
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
| `concurrentProcessVcpus7DayMax` | *double* | :heavy_check_mark: | N/A |
| `concurrentProcessVcpusLimit` | *Optional\<Double>* | :heavy_minus_sign: | N/A |
| `monthlyProcessVcpuHoursConsumed` | *double* | :heavy_check_mark: | N/A |
| `monthlyProcessVcpuHoursLimit` | *Optional\<Double>* | :heavy_minus_sign: | N/A |
Loading

0 comments on commit 926cbc0

Please sign in to comment.