mirror of
https://github.com/LukeHagar/plexphp.git
synced 2025-12-10 04:21:03 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.148.0
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: 01a51eb2-5d90-4a24-b154-68e491d02c36
|
id: 01a51eb2-5d90-4a24-b154-68e491d02c36
|
||||||
management:
|
management:
|
||||||
docChecksum: a14d0ae27d4f5bd83b80747112f74352
|
docChecksum: 1e8e82037a237e1d1467721fbd2c7ab0
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: internal
|
speakeasyVersion: internal
|
||||||
generationVersion: 2.237.2
|
generationVersion: 2.237.3
|
||||||
releaseVersion: 0.1.3
|
releaseVersion: 0.1.4
|
||||||
configChecksum: ea1097dac6c5030a500119909dde2843
|
configChecksum: 2f15e997f6c8f65632a5d44d8f976acb
|
||||||
repoURL: https://github.com/LukeHagar/plexphp.git
|
repoURL: https://github.com/LukeHagar/plexphp.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/plexphp
|
installationURL: https://github.com/LukeHagar/plexphp
|
||||||
@@ -60,6 +60,8 @@ generatedFiles:
|
|||||||
- src/Models/Operations/GetServerCapabilitiesResponseBody.php
|
- src/Models/Operations/GetServerCapabilitiesResponseBody.php
|
||||||
- src/Models/Operations/GetServerCapabilitiesResponse.php
|
- src/Models/Operations/GetServerCapabilitiesResponse.php
|
||||||
- src/Models/Operations/GetServerPreferencesErrors.php
|
- src/Models/Operations/GetServerPreferencesErrors.php
|
||||||
|
- src/Models/Operations/GetServerPreferencesServerResponseBody.php
|
||||||
|
- src/Models/Operations/GetServerPreferencesMediaContainer.php
|
||||||
- src/Models/Operations/GetServerPreferencesResponseBody.php
|
- src/Models/Operations/GetServerPreferencesResponseBody.php
|
||||||
- src/Models/Operations/GetServerPreferencesResponse.php
|
- src/Models/Operations/GetServerPreferencesResponse.php
|
||||||
- src/Models/Operations/GetAvailableClientsErrors.php
|
- src/Models/Operations/GetAvailableClientsErrors.php
|
||||||
@@ -203,6 +205,12 @@ generatedFiles:
|
|||||||
- src/Models/Operations/GetLibraryErrors.php
|
- src/Models/Operations/GetLibraryErrors.php
|
||||||
- src/Models/Operations/GetLibraryLibraryResponseBody.php
|
- src/Models/Operations/GetLibraryLibraryResponseBody.php
|
||||||
- src/Models/Operations/GetLibraryDirectory.php
|
- src/Models/Operations/GetLibraryDirectory.php
|
||||||
|
- src/Models/Operations/Filter.php
|
||||||
|
- src/Models/Operations/Sort.php
|
||||||
|
- src/Models/Operations/Field.php
|
||||||
|
- src/Models/Operations/GetLibraryType.php
|
||||||
|
- src/Models/Operations/Operator.php
|
||||||
|
- src/Models/Operations/FieldType.php
|
||||||
- src/Models/Operations/GetLibraryMediaContainer.php
|
- src/Models/Operations/GetLibraryMediaContainer.php
|
||||||
- src/Models/Operations/GetLibraryResponseBody.php
|
- src/Models/Operations/GetLibraryResponseBody.php
|
||||||
- src/Models/Operations/GetLibraryResponse.php
|
- src/Models/Operations/GetLibraryResponse.php
|
||||||
@@ -353,6 +361,8 @@ generatedFiles:
|
|||||||
- docs/Models/Operations/GetServerCapabilitiesResponseBody.md
|
- docs/Models/Operations/GetServerCapabilitiesResponseBody.md
|
||||||
- docs/Models/Operations/GetServerCapabilitiesResponse.md
|
- docs/Models/Operations/GetServerCapabilitiesResponse.md
|
||||||
- docs/Models/Operations/GetServerPreferencesErrors.md
|
- docs/Models/Operations/GetServerPreferencesErrors.md
|
||||||
|
- docs/Models/Operations/GetServerPreferencesServerResponseBody.md
|
||||||
|
- docs/Models/Operations/GetServerPreferencesMediaContainer.md
|
||||||
- docs/Models/Operations/GetServerPreferencesResponseBody.md
|
- docs/Models/Operations/GetServerPreferencesResponseBody.md
|
||||||
- docs/Models/Operations/GetServerPreferencesResponse.md
|
- docs/Models/Operations/GetServerPreferencesResponse.md
|
||||||
- docs/Models/Operations/GetAvailableClientsErrors.md
|
- docs/Models/Operations/GetAvailableClientsErrors.md
|
||||||
@@ -496,6 +506,12 @@ generatedFiles:
|
|||||||
- docs/Models/Operations/GetLibraryErrors.md
|
- docs/Models/Operations/GetLibraryErrors.md
|
||||||
- docs/Models/Operations/GetLibraryLibraryResponseBody.md
|
- docs/Models/Operations/GetLibraryLibraryResponseBody.md
|
||||||
- docs/Models/Operations/GetLibraryDirectory.md
|
- docs/Models/Operations/GetLibraryDirectory.md
|
||||||
|
- docs/Models/Operations/Filter.md
|
||||||
|
- docs/Models/Operations/Sort.md
|
||||||
|
- docs/Models/Operations/Field.md
|
||||||
|
- docs/Models/Operations/GetLibraryType.md
|
||||||
|
- docs/Models/Operations/Operator.md
|
||||||
|
- docs/Models/Operations/FieldType.md
|
||||||
- docs/Models/Operations/GetLibraryMediaContainer.md
|
- docs/Models/Operations/GetLibraryMediaContainer.md
|
||||||
- docs/Models/Operations/GetLibraryResponseBody.md
|
- docs/Models/Operations/GetLibraryResponseBody.md
|
||||||
- docs/Models/Operations/GetLibraryResponse.md
|
- docs/Models/Operations/GetLibraryResponse.md
|
||||||
|
|||||||
@@ -39,3 +39,11 @@ Based on:
|
|||||||
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
|
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
|
||||||
### Generated
|
### Generated
|
||||||
- [php v0.1.3] .
|
- [php v0.1.3] .
|
||||||
|
|
||||||
|
## 2024-01-20 03:10:24
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.148.0 (2.237.3) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [php v0.1.4] .
|
||||||
11
docs/Models/Operations/Field.md
Normal file
11
docs/Models/Operations/Field.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Field
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `key` | *?string* | :heavy_minus_sign: | N/A | label |
|
||||||
|
| `title` | *?string* | :heavy_minus_sign: | N/A | Label |
|
||||||
|
| `type` | *?string* | :heavy_minus_sign: | N/A | tag |
|
||||||
|
| `subType` | *?string* | :heavy_minus_sign: | N/A | bitrate |
|
||||||
9
docs/Models/Operations/FieldType.md
Normal file
9
docs/Models/Operations/FieldType.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# FieldType
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
||||||
|
| `type` | *?string* | :heavy_minus_sign: | N/A | resolution |
|
||||||
|
| `operator` | array<[\LukeHagar\Plex_API\Models\Operations\Operator](../../Models/Operations/Operator.md)> | :heavy_minus_sign: | N/A | [{"key":"=","title":"is"}] |
|
||||||
12
docs/Models/Operations/Filter.md
Normal file
12
docs/Models/Operations/Filter.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Filter
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- |
|
||||||
|
| `filter` | *?string* | :heavy_minus_sign: | N/A | label |
|
||||||
|
| `filterType` | *?string* | :heavy_minus_sign: | N/A | string |
|
||||||
|
| `key` | *?string* | :heavy_minus_sign: | N/A | /library/sections/1/label |
|
||||||
|
| `title` | *?string* | :heavy_minus_sign: | N/A | Labels |
|
||||||
|
| `type` | *?string* | :heavy_minus_sign: | N/A | filter |
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `key` | *?string* | :heavy_minus_sign: | N/A | search?type=1 |
|
||||||
|
| `title` | *?string* | :heavy_minus_sign: | N/A | Search... |
|
||||||
| `secondary` | *?bool* | :heavy_minus_sign: | N/A | true |
|
| `secondary` | *?bool* | :heavy_minus_sign: | N/A | true |
|
||||||
| `prompt` | *?string* | :heavy_minus_sign: | N/A | Search Movies |
|
| `prompt` | *?string* | :heavy_minus_sign: | N/A | Search Movies |
|
||||||
| `search` | *?bool* | :heavy_minus_sign: | N/A | true |
|
| `search` | *?bool* | :heavy_minus_sign: | N/A | true |
|
||||||
| `key` | *?string* | :heavy_minus_sign: | N/A | search?type=1 |
|
|
||||||
| `title` | *?string* | :heavy_minus_sign: | N/A | Search... |
|
|
||||||
File diff suppressed because one or more lines are too long
14
docs/Models/Operations/GetLibraryType.md
Normal file
14
docs/Models/Operations/GetLibraryType.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# GetLibraryType
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `key` | *?string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 |
|
||||||
|
| `type` | *?string* | :heavy_minus_sign: | N/A | movie |
|
||||||
|
| `title` | *?string* | :heavy_minus_sign: | N/A | Movies |
|
||||||
|
| `active` | *?bool* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `filter` | array<[\LukeHagar\Plex_API\Models\Operations\Filter](../../Models/Operations/Filter.md)> | :heavy_minus_sign: | N/A | [{"filter":"label","filterType":"string","key":"/library/sections/1/label","title":"Labels","type":"filter"}] |
|
||||||
|
| `sort` | array<[\LukeHagar\Plex_API\Models\Operations\Sort](../../Models/Operations/Sort.md)> | :heavy_minus_sign: | N/A | [{"default":"asc","defaultDirection":"desc","descKey":"random:desc","firstCharacterKey":"/library/sections/1/firstCharacter","key":"random","title":"Randomly"}] |
|
||||||
|
| `field` | array<[\LukeHagar\Plex_API\Models\Operations\Field](../../Models/Operations/Field.md)> | :heavy_minus_sign: | N/A | [{"key":"label","subType":"bitrate","title":"Label","type":"tag"}] |
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# GetServerPreferencesMediaContainer
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `size` | *?int* | :heavy_minus_sign: | N/A | 161 |
|
||||||
|
| `setting` | array<*mixed*> | :heavy_minus_sign: | N/A | [{"advanced":false,"default":"","group":"general","hidden":false,"id":"FriendlyName","label":"Friendly name","summary":"This name will be used to identify this media server to other computers on your network. If you leave it blank, your computer's name will be used instead.","type":"text","value":"Hera"},{"advanced":false,"default":3600,"enumValues":"900:every 15 minutes\|1800:every 30 minutes\|3600:hourly\|7200:every 2 hours\|21600:every 6 hours\|43200:every 12 hours\|86400:daily","group":"library","hidden":false,"id":"ScheduledLibraryUpdateInterval","label":"Library scan interval","summary":"","type":"int","value":3600}] |
|
||||||
@@ -4,8 +4,9 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||||
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
|
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||||
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||||
| `object` | [?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody](../../Models/Operations/GetServerPreferencesResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. |
|
| `twoHundredApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody](../../Models/Operations/GetServerPreferencesResponseBody.md) | :heavy_minus_sign: | Server Preferences |
|
||||||
|
| `fourHundredAndOneApplicationJsonObject` | [?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesServerResponseBody](../../Models/Operations/GetServerPreferencesServerResponseBody.md) | :heavy_minus_sign: | Unauthorized - Returned if the X-Plex-Token is missing from the header or query. |
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
# GetServerPreferencesResponseBody
|
# GetServerPreferencesResponseBody
|
||||||
|
|
||||||
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
Server Preferences
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesErrors](../../Models/Operations/GetServerPreferencesErrors.md)> | :heavy_minus_sign: | N/A |
|
| `mediaContainer` | [?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesMediaContainer](../../Models/Operations/GetServerPreferencesMediaContainer.md) | :heavy_minus_sign: | N/A |
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# GetServerPreferencesServerResponseBody
|
||||||
|
|
||||||
|
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `errors` | array<[\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesErrors](../../Models/Operations/GetServerPreferencesErrors.md)> | :heavy_minus_sign: | N/A |
|
||||||
9
docs/Models/Operations/Operator.md
Normal file
9
docs/Models/Operations/Operator.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Operator
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `key` | *?string* | :heavy_minus_sign: | N/A | = |
|
||||||
|
| `title` | *?string* | :heavy_minus_sign: | N/A | is |
|
||||||
13
docs/Models/Operations/Sort.md
Normal file
13
docs/Models/Operations/Sort.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Sort
|
||||||
|
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||||
|
| `default` | *?string* | :heavy_minus_sign: | N/A | asc |
|
||||||
|
| `defaultDirection` | *?string* | :heavy_minus_sign: | N/A | desc |
|
||||||
|
| `descKey` | *?string* | :heavy_minus_sign: | N/A | random:desc |
|
||||||
|
| `firstCharacterKey` | *?string* | :heavy_minus_sign: | N/A | /library/sections/1/firstCharacter |
|
||||||
|
| `key` | *?string* | :heavy_minus_sign: | N/A | random |
|
||||||
|
| `title` | *?string* | :heavy_minus_sign: | N/A | Randomly |
|
||||||
@@ -77,7 +77,7 @@ $sdk = Plex_API\PlexAPI::builder()->setSecurity($security)->build();
|
|||||||
try {
|
try {
|
||||||
$response = $sdk->server->getServerPreferences();
|
$response = $sdk->server->getServerPreferences();
|
||||||
|
|
||||||
if ($response->statusCode === 200) {
|
if ($response->twoHundredApplicationJsonObject !== null) {
|
||||||
// handle response
|
// handle response
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|||||||
2
gen.yaml
2
gen.yaml
@@ -8,7 +8,7 @@ generation:
|
|||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: false
|
nameResolutionDec2023: false
|
||||||
php:
|
php:
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
imports:
|
imports:
|
||||||
option: openapi
|
option: openapi
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
41
src/Models/Operations/Field.php
Normal file
41
src/Models/Operations/Field.php
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
class Field
|
||||||
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('key')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $key = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('title')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $title = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('type')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $type = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('subType')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $subType = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->key = null;
|
||||||
|
$this->title = null;
|
||||||
|
$this->type = null;
|
||||||
|
$this->subType = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
34
src/Models/Operations/FieldType.php
Normal file
34
src/Models/Operations/FieldType.php
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
class FieldType
|
||||||
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('type')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $type = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $operator
|
||||||
|
*
|
||||||
|
* @var ?array<\LukeHagar\Plex_API\Models\Operations\Operator> $operator
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('Operator')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\Operator>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $operator = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->type = null;
|
||||||
|
$this->operator = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
47
src/Models/Operations/Filter.php
Normal file
47
src/Models/Operations/Filter.php
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
class Filter
|
||||||
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('filter')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $filter = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('filterType')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $filterType = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('key')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $key = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('title')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $title = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('type')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $type = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->filter = null;
|
||||||
|
$this->filterType = null;
|
||||||
|
$this->key = null;
|
||||||
|
$this->title = null;
|
||||||
|
$this->type = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,6 +11,16 @@ namespace LukeHagar\Plex_API\Models\Operations;
|
|||||||
|
|
||||||
class GetLibraryDirectory
|
class GetLibraryDirectory
|
||||||
{
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('key')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $key = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('title')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $title = null;
|
||||||
|
|
||||||
#[\JMS\Serializer\Annotation\SerializedName('secondary')]
|
#[\JMS\Serializer\Annotation\SerializedName('secondary')]
|
||||||
#[\JMS\Serializer\Annotation\Type('bool')]
|
#[\JMS\Serializer\Annotation\Type('bool')]
|
||||||
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
@@ -26,22 +36,12 @@ class GetLibraryDirectory
|
|||||||
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
public ?bool $search = null;
|
public ?bool $search = null;
|
||||||
|
|
||||||
#[\JMS\Serializer\Annotation\SerializedName('key')]
|
|
||||||
#[\JMS\Serializer\Annotation\Type('string')]
|
|
||||||
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
|
||||||
public ?string $key = null;
|
|
||||||
|
|
||||||
#[\JMS\Serializer\Annotation\SerializedName('title')]
|
|
||||||
#[\JMS\Serializer\Annotation\Type('string')]
|
|
||||||
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
|
||||||
public ?string $title = null;
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
$this->key = null;
|
||||||
|
$this->title = null;
|
||||||
$this->secondary = null;
|
$this->secondary = null;
|
||||||
$this->prompt = null;
|
$this->prompt = null;
|
||||||
$this->search = null;
|
$this->search = null;
|
||||||
$this->key = null;
|
|
||||||
$this->title = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,26 @@ class GetLibraryMediaContainer
|
|||||||
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
public ?array $directory = null;
|
public ?array $directory = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $type
|
||||||
|
*
|
||||||
|
* @var ?array<\LukeHagar\Plex_API\Models\Operations\GetLibraryType> $type
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('Type')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\GetLibraryType>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $type = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $fieldType
|
||||||
|
*
|
||||||
|
* @var ?array<\LukeHagar\Plex_API\Models\Operations\FieldType> $fieldType
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('FieldType')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\FieldType>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $fieldType = null;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->size = null;
|
$this->size = null;
|
||||||
@@ -96,5 +116,7 @@ class GetLibraryMediaContainer
|
|||||||
$this->viewGroup = null;
|
$this->viewGroup = null;
|
||||||
$this->viewMode = null;
|
$this->viewMode = null;
|
||||||
$this->directory = null;
|
$this->directory = null;
|
||||||
|
$this->type = null;
|
||||||
|
$this->fieldType = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
74
src/Models/Operations/GetLibraryType.php
Normal file
74
src/Models/Operations/GetLibraryType.php
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
class GetLibraryType
|
||||||
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('key')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $key = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('type')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $type = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('title')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $title = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('active')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('bool')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?bool $active = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $filter
|
||||||
|
*
|
||||||
|
* @var ?array<\LukeHagar\Plex_API\Models\Operations\Filter> $filter
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('Filter')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\Filter>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $filter = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $sort
|
||||||
|
*
|
||||||
|
* @var ?array<\LukeHagar\Plex_API\Models\Operations\Sort> $sort
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('Sort')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\Sort>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $sort = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $field
|
||||||
|
*
|
||||||
|
* @var ?array<\LukeHagar\Plex_API\Models\Operations\Field> $field
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('Field')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\Field>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $field = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->key = null;
|
||||||
|
$this->type = null;
|
||||||
|
$this->title = null;
|
||||||
|
$this->active = null;
|
||||||
|
$this->filter = null;
|
||||||
|
$this->sort = null;
|
||||||
|
$this->field = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
34
src/Models/Operations/GetServerPreferencesMediaContainer.php
Normal file
34
src/Models/Operations/GetServerPreferencesMediaContainer.php
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
class GetServerPreferencesMediaContainer
|
||||||
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('size')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('int')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?int $size = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* $setting
|
||||||
|
*
|
||||||
|
* @var ?array<mixed> $setting
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('Setting')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<mixed>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $setting = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->size = null;
|
||||||
|
$this->setting = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -36,18 +36,27 @@ class GetServerPreferencesResponse
|
|||||||
public ?\Psr\Http\Message\ResponseInterface $rawResponse;
|
public ?\Psr\Http\Message\ResponseInterface $rawResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
* Server Preferences
|
||||||
*
|
*
|
||||||
* @var ?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody $object
|
* @var ?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody $twoHundredApplicationJsonObject
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public ?GetServerPreferencesResponseBody $object = null;
|
public ?GetServerPreferencesResponseBody $twoHundredApplicationJsonObject = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
*
|
||||||
|
* @var ?\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesServerResponseBody $fourHundredAndOneApplicationJsonObject
|
||||||
|
*/
|
||||||
|
|
||||||
|
public ?GetServerPreferencesServerResponseBody $fourHundredAndOneApplicationJsonObject = null;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->contentType = "";
|
$this->contentType = "";
|
||||||
$this->statusCode = 0;
|
$this->statusCode = 0;
|
||||||
$this->rawResponse = null;
|
$this->rawResponse = null;
|
||||||
$this->object = null;
|
$this->twoHundredApplicationJsonObject = null;
|
||||||
|
$this->fourHundredAndOneApplicationJsonObject = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,25 +10,20 @@ namespace LukeHagar\Plex_API\Models\Operations;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GetServerPreferencesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
* GetServerPreferencesResponseBody - Server Preferences
|
||||||
*
|
*
|
||||||
* @package LukeHagar\Plex_API\Models\Operations
|
* @package LukeHagar\Plex_API\Models\Operations
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
class GetServerPreferencesResponseBody
|
class GetServerPreferencesResponseBody
|
||||||
{
|
{
|
||||||
/**
|
#[\JMS\Serializer\Annotation\SerializedName('MediaContainer')]
|
||||||
* $errors
|
#[\JMS\Serializer\Annotation\Type('LukeHagar\Plex_API\Models\Operations\GetServerPreferencesMediaContainer')]
|
||||||
*
|
|
||||||
* @var ?array<\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesErrors> $errors
|
|
||||||
*/
|
|
||||||
#[\JMS\Serializer\Annotation\SerializedName('errors')]
|
|
||||||
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\GetServerPreferencesErrors>')]
|
|
||||||
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
public ?array $errors = null;
|
public ?GetServerPreferencesMediaContainer $mediaContainer = null;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->errors = null;
|
$this->mediaContainer = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GetServerPreferencesServerResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
*
|
||||||
|
* @package LukeHagar\Plex_API\Models\Operations
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
class GetServerPreferencesServerResponseBody
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* $errors
|
||||||
|
*
|
||||||
|
* @var ?array<\LukeHagar\Plex_API\Models\Operations\GetServerPreferencesErrors> $errors
|
||||||
|
*/
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('errors')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('array<LukeHagar\Plex_API\Models\Operations\GetServerPreferencesErrors>')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?array $errors = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->errors = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
29
src/Models/Operations/Operator.php
Normal file
29
src/Models/Operations/Operator.php
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
class Operator
|
||||||
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('key')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $key = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('title')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $title = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->key = null;
|
||||||
|
$this->title = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
53
src/Models/Operations/Sort.php
Normal file
53
src/Models/Operations/Sort.php
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace LukeHagar\Plex_API\Models\Operations;
|
||||||
|
|
||||||
|
|
||||||
|
class Sort
|
||||||
|
{
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('default')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $default = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('defaultDirection')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $defaultDirection = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('descKey')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $descKey = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('firstCharacterKey')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $firstCharacterKey = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('key')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $key = null;
|
||||||
|
|
||||||
|
#[\JMS\Serializer\Annotation\SerializedName('title')]
|
||||||
|
#[\JMS\Serializer\Annotation\Type('string')]
|
||||||
|
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
|
||||||
|
public ?string $title = null;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->default = null;
|
||||||
|
$this->defaultDirection = null;
|
||||||
|
$this->descKey = null;
|
||||||
|
$this->firstCharacterKey = null;
|
||||||
|
$this->key = null;
|
||||||
|
$this->title = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,9 +25,9 @@ class SDKConfiguration
|
|||||||
];
|
];
|
||||||
public string $language = 'php';
|
public string $language = 'php';
|
||||||
public string $openapiDocVersion = '0.0.3';
|
public string $openapiDocVersion = '0.0.3';
|
||||||
public string $sdkVersion = '0.1.3';
|
public string $sdkVersion = '0.1.4';
|
||||||
public string $genVersion = '2.237.2';
|
public string $genVersion = '2.237.3';
|
||||||
public string $userAgent = 'speakeasy-sdk/php 0.1.3 2.237.2 0.0.3 lukehagar/plex-api';
|
public string $userAgent = 'speakeasy-sdk/php 0.1.4 2.237.3 0.0.3 lukehagar/plex-api';
|
||||||
|
|
||||||
|
|
||||||
public function getServerUrl(): string
|
public function getServerUrl(): string
|
||||||
|
|||||||
@@ -95,12 +95,18 @@ class Server
|
|||||||
$response->contentType = $contentType;
|
$response->contentType = $contentType;
|
||||||
$response->rawResponse = $httpResponse;
|
$response->rawResponse = $httpResponse;
|
||||||
|
|
||||||
if ($httpResponse->getStatusCode() === 200 or $httpResponse->getStatusCode() === 400) {
|
if ($httpResponse->getStatusCode() === 200) {
|
||||||
|
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
|
||||||
|
$serializer = Utils\JSON::createSerializer();
|
||||||
|
$response->twoHundredApplicationJsonObject = $serializer->deserialize((string)$httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody', 'json');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if ($httpResponse->getStatusCode() === 400) {
|
||||||
}
|
}
|
||||||
else if ($httpResponse->getStatusCode() === 401) {
|
else if ($httpResponse->getStatusCode() === 401) {
|
||||||
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
|
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
|
||||||
$serializer = Utils\JSON::createSerializer();
|
$serializer = Utils\JSON::createSerializer();
|
||||||
$response->object = $serializer->deserialize((string)$httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerPreferencesResponseBody', 'json');
|
$response->fourHundredAndOneApplicationJsonObject = $serializer->deserialize((string)$httpResponse->getBody(), 'LukeHagar\Plex_API\Models\Operations\GetServerPreferencesServerResponseBody', 'json');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user