Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.4.0 ., Speakeasy CLI 1.277.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Apr 30, 2024
1 parent 66ecef3 commit 6824ecb
Show file tree
Hide file tree
Showing 18 changed files with 197 additions and 177 deletions.
26 changes: 13 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: b0b519b1-d1d3-43b2-82dd-b4292eadd4b0
management:
docChecksum: 0df832386c1fcd5f74fb87fea6d0e2b7
docChecksum: e87f7661ef116d09df25c842b1032981
docVersion: 0.4.0 .
speakeasyVersion: 1.269.1
generationVersion: 2.312.1
releaseVersion: 5.6.11
configChecksum: 0f63b6d40acff557a7ff2dc25c263d7b
speakeasyVersion: 1.277.0
generationVersion: 2.317.0
releaseVersion: 5.6.12
configChecksum: 07ee419dccd2777287e8afcfc0972899
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
Expand Down Expand Up @@ -91,10 +91,10 @@ generatedFiles:
- src/speakeasy/models/operations/getembedaccesstoken.py
- src/speakeasy/models/operations/getvalidembedaccesstokens.py
- src/speakeasy/models/operations/revokeembedaccesstoken.py
- src/speakeasy/models/operations/getworkspaceevents.py
- src/speakeasy/models/operations/getworkspaceeventsbysourcerevisiondigest.py
- src/speakeasy/models/operations/getworkspaceeventsbytarget.py
- src/speakeasy/models/operations/getworkspacetargets.py
- src/speakeasy/models/operations/postworkspaceevents.py
- src/speakeasy/models/operations/searchworkspaceevents.py
- src/speakeasy/models/errors/error.py
- src/speakeasy/models/shared/generateopenapispecdiff.py
- src/speakeasy/models/shared/api.py
Expand Down Expand Up @@ -231,18 +231,18 @@ generatedFiles:
- docs/models/operations/getvalidembedaccesstokensresponse.md
- docs/models/operations/revokeembedaccesstokenrequest.md
- docs/models/operations/revokeembedaccesstokenresponse.md
- docs/models/operations/getworkspaceeventsglobals.md
- docs/models/operations/getworkspaceeventsrequest.md
- docs/models/operations/getworkspaceeventsresponse.md
- docs/models/operations/getworkspaceeventsbysourcerevisiondigestglobals.md
- docs/models/operations/getworkspaceeventsbysourcerevisiondigestrequest.md
- docs/models/operations/getworkspaceeventsbysourcerevisiondigestresponse.md
- docs/models/operations/getworkspaceeventsbytargetglobals.md
- docs/models/operations/getworkspaceeventsbytargetrequest.md
- docs/models/operations/getworkspaceeventsbytargetresponse.md
- docs/models/operations/getworkspacetargetsglobals.md
- docs/models/operations/getworkspacetargetsrequest.md
- docs/models/operations/getworkspacetargetsresponse.md
- docs/models/operations/postworkspaceeventsglobals.md
- docs/models/operations/postworkspaceeventsrequest.md
- docs/models/operations/postworkspaceeventsresponse.md
- docs/models/operations/searchworkspaceeventsglobals.md
- docs/models/operations/searchworkspaceeventsrequest.md
- docs/models/operations/searchworkspaceeventsresponse.md
- docs/models/errors/error.md
- docs/models/shared/generateopenapispecdiff.md
- docs/models/shared/api.md
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ if res.apis is not None:

### [events](docs/sdks/events/README.md)

* [get_workspace_events](docs/sdks/events/README.md#get_workspace_events) - Load recent events for a particular workspace
* [get_workspace_events_by_source_revision_digest](docs/sdks/events/README.md#get_workspace_events_by_source_revision_digest) - Load events for a particular workspace and source revision digest
* [get_workspace_events_by_target](docs/sdks/events/README.md#get_workspace_events_by_target) - Load recent events for a particular workspace
* [get_workspace_targets](docs/sdks/events/README.md#get_workspace_targets) - Load targets for a particular workspace
* [post_workspace_events](docs/sdks/events/README.md#post_workspace_events) - Post events for a specific workspace
* [search_workspace_events](docs/sdks/events/README.md#search_workspace_events) - Search events for a particular workspace by any field
<!-- End Available Resources and Operations [operations] -->


Expand Down Expand Up @@ -150,11 +150,13 @@ s = speakeasy.Speakeasy(
workspace_id='<value>',
)

req = operations.GetWorkspaceEventsRequest()
req = operations.GetWorkspaceEventsByTargetRequest(
target_id='<value>',
)

res = None
try:
res = s.events.get_workspace_events(req)
res = s.events.get_workspace_events_by_target(req)
except errors.Error as e:
# handle exception
raise(e)
Expand Down Expand Up @@ -302,7 +304,7 @@ if res is not None:

A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.

For example, you can set `workspaceID` to `'<value>'` at SDK initialization and then you do not have to pass the same value on calls to operations like `get_workspace_events`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
For example, you can set `workspaceID` to `'<value>'` at SDK initialization and then you do not have to pass the same value on calls to operations like `get_workspace_events_by_target`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.


### Available Globals
Expand All @@ -327,9 +329,11 @@ s = speakeasy.Speakeasy(
workspace_id='<value>',
)

req = operations.GetWorkspaceEventsRequest()
req = operations.GetWorkspaceEventsByTargetRequest(
target_id='<value>',
)

res = s.events.get_workspace_events(req)
res = s.events.get_workspace_events_by_target(req)

if res.cli_event_batch is not None:
# handle response
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1496,4 +1496,14 @@ Based on:
### Generated
- [python v5.6.11] .
### Releases
- [PyPI v5.6.11] https://pypi.org/project/speakeasy-client-sdk-python/5.6.11 - .
- [PyPI v5.6.11] https://pypi.org/project/speakeasy-client-sdk-python/5.6.11 - .

## 2024-04-30 00:10:40
### Changes
Based on:
- OpenAPI Doc 0.4.0 . https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.277.0 (2.317.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v5.6.12] .
### Releases
- [PyPI v5.6.12] https://pypi.org/project/speakeasy-client-sdk-python/5.6.12 - .

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetWorkspaceEventsBySourceRevisionDigestGlobals
# GetWorkspaceEventsByTargetGlobals


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# GetWorkspaceEventsRequest
# GetWorkspaceEventsByTargetRequest


## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `target_id` | *str* | :heavy_check_mark: | Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target) |
| `after_created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Filter to only return events created after this timestamp |
| `generate_gen_lock_id` | *Optional[str]* | :heavy_minus_sign: | Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target) |
| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the workspace. |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetWorkspaceEventsBySourceRevisionDigestResponse
# GetWorkspaceEventsByTargetResponse


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetWorkspaceEventsGlobals
# SearchWorkspaceEventsGlobals


## Fields
Expand Down
11 changes: 11 additions & 0 deletions docs/models/operations/searchworkspaceeventsrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SearchWorkspaceEventsRequest


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `lint_report_digest` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the lint report digest. |
| `openapi_diff_report_digest` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the openapi diff report digest. |
| `source_revision_digest` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the source revision digest. |
| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the workspace. |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetWorkspaceEventsResponse
# SearchWorkspaceEventsResponse


## Fields
Expand Down
Loading

0 comments on commit 6824ecb

Please sign in to comment.