You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-27Lines changed: 15 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,8 @@ if res.apis is not None:
93
93
94
94
### [events](docs/sdks/events/README.md)
95
95
96
+
*[get_workspace_events](docs/sdks/events/README.md#get_workspace_events) - Load recent events for a particular workspace
97
+
*[get_workspace_targets](docs/sdks/events/README.md#get_workspace_targets) - Load targets for a particular workspace
96
98
*[post_workspace_events](docs/sdks/events/README.md#post_workspace_events) - Post events for a specific workspace
97
99
<!-- End Available Resources and Operations [operations] -->
98
100
@@ -125,19 +127,19 @@ s = speakeasy.Speakeasy(
125
127
workspace_id='<value>',
126
128
)
127
129
128
-
req = operations.GetWorkspaceAccessRequest()
130
+
req = operations.GetWorkspaceEventsRequest()
129
131
130
132
res =None
131
133
try:
132
-
res = s.auth.get_workspace_access(req)
134
+
res = s.events.get_workspace_events(req)
133
135
except errors.Error as e:
134
136
# handle exception
135
137
raise(e)
136
138
except errors.SDKError as e:
137
139
# handle exception
138
140
raise(e)
139
141
140
-
if res.access_detailsisnotNone:
142
+
if res.cli_event_batchisnotNone:
141
143
# handle response
142
144
pass
143
145
```
@@ -236,13 +238,14 @@ s = speakeasy.Speakeasy(client: http_client)
236
238
237
239
### Per-Client Security Schemes
238
240
239
-
This SDK supports the following security scheme globally:
241
+
This SDK supports the following security schemes globally:
240
242
241
-
| Name | Type | Scheme |
242
-
| --------- | --------- | --------- |
243
-
|`api_key`| apiKey | API key |
243
+
| Name | Type | Scheme |
244
+
| ----------- | ----------- | ----------- |
245
+
|`api_key`| apiKey | API key |
246
+
|`bearer`| http | HTTP Bearer |
244
247
245
-
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
248
+
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
246
249
```python
247
250
import speakeasy
248
251
from speakeasy.models import operations, shared
@@ -272,7 +275,7 @@ if res.status_code == 200:
272
275
273
276
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.
274
277
275
-
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 `post_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.
278
+
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.
276
279
277
280
278
281
### Available Globals
@@ -287,7 +290,6 @@ The following global parameter is available.
|`content_type`|*str*|:heavy_check_mark:| HTTP response content type for this operation |
9
+
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
10
+
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
|`content_type`|*str*|:heavy_check_mark:| HTTP response content type for this operation |
9
+
|`status_code`|*int*|:heavy_check_mark:| HTTP response status code for this operation |
10
+
|`raw_response`|[requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing |
0 commit comments