Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.469.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 18, 2025
1 parent c17636d commit 7f2b418
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 1,106 deletions.
17 changes: 4 additions & 13 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 66f99777-b2f2-4e45-9581-501d199e5c0c
management:
docChecksum: 37a13cf25882217bb6883efc4407294c
docChecksum: 1766b7749df601fc084985fa6f54c7be
docVersion: 0.4.0
speakeasyVersion: 1.468.9
speakeasyVersion: 1.469.1
generationVersion: 2.493.21
releaseVersion: 7.23.4
configChecksum: b3d006d07d722b89a2a5bb3377a19d5f
releaseVersion: 7.23.5
configChecksum: d082ce24ea380ee644f55c1749bfd393
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-java.git
repoSubDirectory: .
published: true
Expand Down Expand Up @@ -60,8 +60,6 @@ generatedFiles:
- docs/models/operations/GetCodeSamplePreviewAsyncRequest.md
- docs/models/operations/GetCodeSamplePreviewAsyncResponse.md
- docs/models/operations/GetCodeSamplePreviewAsyncResponseBody.md
- docs/models/operations/GetCodeSamplesRequest.md
- docs/models/operations/GetCodeSamplesResponse.md
- docs/models/operations/GetGitHubActionRequest.md
- docs/models/operations/GetGitHubActionResponse.md
- docs/models/operations/GetGithubSetupStateRequest.md
Expand Down Expand Up @@ -212,8 +210,6 @@ generatedFiles:
- docs/models/shared/Tag.md
- docs/models/shared/TargetSDK.md
- docs/models/shared/Type.md
- docs/models/shared/UsageSnippet.md
- docs/models/shared/UsageSnippets.md
- docs/models/shared/User.md
- docs/models/shared/V2Descriptor.md
- docs/models/shared/WorkflowDocument.md
Expand Down Expand Up @@ -304,9 +300,6 @@ generatedFiles:
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetCodeSamplePreviewAsyncRequestBuilder.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetCodeSamplePreviewAsyncResponse.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetCodeSamplePreviewAsyncResponseBody.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetCodeSamplesRequest.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetCodeSamplesRequestBuilder.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetCodeSamplesResponse.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetGitHubActionRequest.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetGitHubActionRequestBuilder.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/operations/GetGitHubActionResponse.java
Expand Down Expand Up @@ -506,8 +499,6 @@ generatedFiles:
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/Tag.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/TargetSDK.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/Type.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/UsageSnippet.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/UsageSnippets.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/User.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/V2Descriptor.java
- src/main/java/dev/speakeasyapi/javaclientsdk/models/shared/WorkflowDocument.java
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
speakeasyVersion: 1.468.9
speakeasyVersion: 1.469.1
sources:
first-source: {}
my-source:
sourceNamespace: my-source-new
sourceRevisionDigest: sha256:988388772e5593e64ec3340e617c2043909570fcd91c0cfab9bf188f2fef5b92
sourceBlobDigest: sha256:8f42a23c071ea4583fdaac6d8f79bd01e9162d8ac53fe951400456d9773591a3
sourceRevisionDigest: sha256:5d8a43d4d79bfd35535420419b8823b4752ccc5dff864a2b6fd69a6816a3fa56
sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589
tags:
- latest
- speakeasy-sdk-regen-1737072154
- speakeasy-sdk-regen-1737158556
- 0.4.0
targets:
java-target:
source: my-source
sourceNamespace: my-source-new
sourceRevisionDigest: sha256:988388772e5593e64ec3340e617c2043909570fcd91c0cfab9bf188f2fef5b92
sourceBlobDigest: sha256:8f42a23c071ea4583fdaac6d8f79bd01e9162d8ac53fe951400456d9773591a3
sourceRevisionDigest: sha256:5d8a43d4d79bfd35535420419b8823b4752ccc5dff864a2b6fd69a6816a3fa56
sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589
codeSamplesNamespace: my-source-java-code-samples
codeSamplesRevisionDigest: sha256:b2d983b1828c0e83ab61e279aac0180f588bb8ccd8f5885240e1d086c9242498
codeSamplesRevisionDigest: sha256:720c161f14ea96f19626f18aa9c34e6fa04f7c6de44a89fd06a33ffc4a4f2cfb
py:
source: first-source
ts:
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'dev.speakeasyapi:javaclientsdk:7.23.4'
implementation 'dev.speakeasyapi:javaclientsdk:7.23.5'
```

Maven:
```xml
<dependency>
<groupId>dev.speakeasyapi</groupId>
<artifactId>javaclientsdk</artifactId>
<version>7.23.4</version>
<version>7.23.5</version>
</dependency>
```

Expand Down Expand Up @@ -138,7 +138,6 @@ public class Application {

* [generateCodeSamplePreview](docs/sdks/codesamples/README.md#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters.
* [generateCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
* [get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets
* [getCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.

### [events()](docs/sdks/events/README.md)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2076,4 +2076,14 @@ Based on:
### Generated
- [java v7.23.4] .
### Releases
- [Maven Central v7.23.4] https://central.sonatype.com/artifact/dev.speakeasyapi/javaclientsdk/7.23.4 - .
- [Maven Central v7.23.4] https://central.sonatype.com/artifact/dev.speakeasyapi/javaclientsdk/7.23.4 - .

## 2025-01-18 00:02:18
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.1 (2.493.21) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v7.23.5] .
### Releases
- [Maven Central v7.23.5] https://central.sonatype.com/artifact/dev.speakeasyapi/javaclientsdk/7.23.5 - .
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tasks.withType(Javadoc) {
}

group = "dev.speakeasyapi"
version = "7.23.4"
version = "7.23.5"

sourcesJar {
archiveBaseName = "javaclientsdk"
Expand All @@ -88,7 +88,7 @@ publishing {
maven(MavenPublication) {
groupId = 'dev.speakeasyapi'
artifactId = 'javaclientsdk'
version = '7.23.4'
version = '7.23.5'

from components.java

Expand Down
43 changes: 0 additions & 43 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,49 +369,6 @@ actions:
}
}
}
- target: $["paths"]["/v1/code_sample"]["get"]
update:
x-codeSamples:
- lang: java
label: getCodeSamples
source: |-
package hello.world;
import dev.speakeasyapi.javaclientsdk.RyanTest;
import dev.speakeasyapi.javaclientsdk.models.errors.Error;
import dev.speakeasyapi.javaclientsdk.models.operations.GetCodeSamplesRequest;
import dev.speakeasyapi.javaclientsdk.models.operations.GetCodeSamplesResponse;
import dev.speakeasyapi.javaclientsdk.models.shared.Security;
import java.lang.Exception;
import java.util.List;
public class Application {
public static void main(String[] args) throws Error, Exception {
RyanTest sdk = RyanTest.builder()
.security(Security.builder()
.apiKey("<YOUR_API_KEY_HERE>")
.build())
.build();
GetCodeSamplesRequest req = GetCodeSamplesRequest.builder()
.registryUrl("https://spec.speakeasy.com/my-org/my-workspace/my-source")
.operationIds(List.of(
"getPetById"))
.languages(List.of(
"python"))
.build();
GetCodeSamplesResponse res = sdk.codeSamples().get()
.request(req)
.call();
if (res.usageSnippets().isPresent()) {
// handle response
}
}
}
- target: $["paths"]["/v1/code_sample/preview"]["post"]
update:
x-codeSamples:
Expand Down
10 changes: 0 additions & 10 deletions docs/models/operations/GetCodeSamplesRequest.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/models/operations/GetCodeSamplesResponse.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/models/shared/UsageSnippet.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/models/shared/UsageSnippets.md

This file was deleted.

65 changes: 0 additions & 65 deletions docs/sdks/codesamples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ REST APIs for retrieving Code Samples

* [generateCodeSamplePreview](#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters.
* [generateCodeSamplePreviewAsync](#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
* [get](#get) - Retrieve usage snippets
* [getCodeSamplePreviewAsync](#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.

## generateCodeSamplePreview
Expand Down Expand Up @@ -147,70 +146,6 @@ public class Application {
| models/errors/Error | 4XX | application/json |
| models/errors/Error | 5XX | application/json |

## get

Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID.


### Example Usage

```java
package hello.world;

import dev.speakeasyapi.javaclientsdk.RyanTest;
import dev.speakeasyapi.javaclientsdk.models.errors.Error;
import dev.speakeasyapi.javaclientsdk.models.operations.GetCodeSamplesRequest;
import dev.speakeasyapi.javaclientsdk.models.operations.GetCodeSamplesResponse;
import dev.speakeasyapi.javaclientsdk.models.shared.Security;
import java.lang.Exception;
import java.util.List;

public class Application {

public static void main(String[] args) throws Error, Exception {

RyanTest sdk = RyanTest.builder()
.security(Security.builder()
.apiKey("<YOUR_API_KEY_HERE>")
.build())
.build();

GetCodeSamplesRequest req = GetCodeSamplesRequest.builder()
.registryUrl("https://spec.speakeasy.com/my-org/my-workspace/my-source")
.languages(List.of(
"python"))
.operationIds(List.of(
"getPetById"))
.build();

GetCodeSamplesResponse res = sdk.codeSamples().get()
.request(req)
.call();

if (res.usageSnippets().isPresent()) {
// handle response
}
}
}
```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `request` | [GetCodeSamplesRequest](../../models/operations/GetCodeSamplesRequest.md) | :heavy_check_mark: | The request object to use for the request. |

### Response

**[GetCodeSamplesResponse](../../models/operations/GetCodeSamplesResponse.md)**

### Errors

| Error Type | Status Code | Content Type |
| ---------------------- | ---------------------- | ---------------------- |
| models/errors/Error | 4XX | application/json |
| models/errors/SDKError | 5XX | \*/\* |

## getCodeSamplePreviewAsync

Poll for the result of an asynchronous Code Sample preview generation.
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
java:
version: 7.23.4
version: 7.23.5
additionalDependencies: []
additionalPlugins: []
artifactID: javaclientsdk
Expand Down
Loading

0 comments on commit 7f2b418

Please sign in to comment.