ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.392.1

This commit is contained in:
speakeasybot
2024-09-09 00:22:35 +00:00
parent 201fa479dd
commit 08dcf43f3d
618 changed files with 8649 additions and 1367 deletions

View File

@@ -73,10 +73,11 @@ var res = await sdk.Plex.GetServerResourcesAsync(req);
Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type.
| Error Object | Status Code | Content Type |
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
| LukeHagar.PlexAPI.SDK.Models.Errors.GetServerCapabilitiesResponseBody | 401 | application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException | 4xx-5xx | */* |
| Error Object | Status Code | Content Type |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| LukeHagar.PlexAPI.SDK.Models.Errors.GetServerCapabilitiesResponseBody | 400 | application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.GetServerCapabilitiesServerResponseBody | 401 | application/json |
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException | 4xx-5xx | */* |
### Example
@@ -103,6 +104,10 @@ catch (Exception ex)
{
// handle exception
}
else if (ex is GetServerCapabilitiesServerResponseBody)
{
// handle exception
}
else if (ex is LukeHagar.PlexAPI.SDK.Models.Errors.SDKException)
{
// handle exception
@@ -148,7 +153,7 @@ var sdk = new PlexAPI(
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
);
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2");
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2/");
// handle response
```