diff --git a/README.md b/README.md index eb1e566..626a520 100644 --- a/README.md +++ b/README.md @@ -132,8 +132,8 @@ $client->videos()->upload( Method | Description | HTTP request ------------- | ------------- | ------------- -[**getLiveStreamsPlays()**](https://github.com/apivideo/api.video-php-client/blob/main/docs/Api/AnalyticsApi.md#getLiveStreamsPlays) | Get play events for live stream | **GET** `/analytics/live-streams/plays` -[**getVideosPlays()**](https://github.com/apivideo/api.video-php-client/blob/main/docs/Api/AnalyticsApi.md#getVideosPlays) | Get play events for video | **GET** `/analytics/videos/plays` +**(deprecated)** [**getLiveStreamsPlays()**](https://github.com/apivideo/api.video-php-client/blob/main/docs/Api/AnalyticsApi.md#getLiveStreamsPlays) | Get play events for live stream | **GET** `/analytics/live-streams/plays` +**(deprecated)** [**getVideosPlays()**](https://github.com/apivideo/api.video-php-client/blob/main/docs/Api/AnalyticsApi.md#getVideosPlays) | Get play events for video | **GET** `/analytics/videos/plays` #### CaptionsApi @@ -249,12 +249,6 @@ Method | Description | HTTP request - [LiveStreamAssets](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamAssets.md) - [LiveStreamCreationPayload](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamCreationPayload.md) - [LiveStreamListResponse](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamListResponse.md) - - [LiveStreamSession](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamSession.md) - - [LiveStreamSessionClient](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamSessionClient.md) - - [LiveStreamSessionDevice](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamSessionDevice.md) - - [LiveStreamSessionLocation](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamSessionLocation.md) - - [LiveStreamSessionReferrer](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamSessionReferrer.md) - - [LiveStreamSessionSession](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamSessionSession.md) - [LiveStreamUpdatePayload](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/LiveStreamUpdatePayload.md) - [Metadata](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/Metadata.md) - [Model403ErrorSchema](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/Model403ErrorSchema.md) @@ -274,18 +268,12 @@ Method | Description | HTTP request - [TokenCreationPayload](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/TokenCreationPayload.md) - [TokenListResponse](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/TokenListResponse.md) - [TooManyRequests](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/TooManyRequests.md) + - [UnrecognizedRequestUrl](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/UnrecognizedRequestUrl.md) - [UploadToken](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/UploadToken.md) - [Video](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/Video.md) - [VideoAssets](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoAssets.md) - [VideoClip](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoClip.md) - [VideoCreationPayload](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoCreationPayload.md) - - [VideoSession](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSession.md) - - [VideoSessionClient](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSessionClient.md) - - [VideoSessionDevice](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSessionDevice.md) - - [VideoSessionLocation](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSessionLocation.md) - - [VideoSessionOs](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSessionOs.md) - - [VideoSessionReferrer](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSessionReferrer.md) - - [VideoSessionSession](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSessionSession.md) - [VideoSource](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSource.md) - [VideoSourceLiveStream](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSourceLiveStream.md) - [VideoSourceLiveStreamLink](https://github.com/apivideo/api.video-php-client/blob/main/docs/Model/VideoSourceLiveStreamLink.md) diff --git a/docs/Api/AnalyticsApi.md b/docs/Api/AnalyticsApi.md index 8606f8c..7e612a1 100644 --- a/docs/Api/AnalyticsApi.md +++ b/docs/Api/AnalyticsApi.md @@ -14,6 +14,12 @@ Method | Description | HTTP request Retrieve filtered analytics about the number of plays for your live streams in a project. + + +This endpoint will be deprecated with the release of Analytics v2.0. + + + ### Arguments @@ -50,6 +56,12 @@ Name | Type | Description | Notes Retrieve filtered analytics about the number of plays for your videos in a project. + + +This endpoint will be deprecated with the release of Analytics v2.0. + + + ### Arguments diff --git a/docs/Model/LiveStreamSession.md b/docs/Model/LiveStreamSession.md deleted file mode 100644 index 1f30f06..0000000 --- a/docs/Model/LiveStreamSession.md +++ /dev/null @@ -1,14 +0,0 @@ -# # LiveStreamSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**session** | [**\ApiVideo\Client\Model\LiveStreamSessionSession**](LiveStreamSessionSession.md) | | [optional] -**location** | [**\ApiVideo\Client\Model\LiveStreamSessionLocation**](LiveStreamSessionLocation.md) | | [optional] -**referrer** | [**\ApiVideo\Client\Model\LiveStreamSessionReferrer**](LiveStreamSessionReferrer.md) | | [optional] -**device** | [**\ApiVideo\Client\Model\LiveStreamSessionDevice**](LiveStreamSessionDevice.md) | | [optional] -**os** | [**\ApiVideo\Client\Model\VideoSessionOs**](VideoSessionOs.md) | | [optional] -**client** | [**\ApiVideo\Client\Model\LiveStreamSessionClient**](LiveStreamSessionClient.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LiveStreamSessionClient.md b/docs/Model/LiveStreamSessionClient.md deleted file mode 100644 index c3bf180..0000000 --- a/docs/Model/LiveStreamSessionClient.md +++ /dev/null @@ -1,11 +0,0 @@ -# # LiveStreamSessionClient - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the browser used to view the live stream session. | [optional] -**version** | **string** | The version of the browser used to view the live stream session. | [optional] -**type** | **string** | The type of client used to view the live stream session. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LiveStreamSessionDevice.md b/docs/Model/LiveStreamSessionDevice.md deleted file mode 100644 index a2acd62..0000000 --- a/docs/Model/LiveStreamSessionDevice.md +++ /dev/null @@ -1,11 +0,0 @@ -# # LiveStreamSessionDevice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | What the type is like desktop, laptop, mobile. | [optional] -**vendor** | **string** | If known, what the brand of the device is, like Apple, Dell, etc. | [optional] -**model** | **string** | The specific model of the device, if known. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LiveStreamSessionLocation.md b/docs/Model/LiveStreamSessionLocation.md deleted file mode 100644 index b8ae38b..0000000 --- a/docs/Model/LiveStreamSessionLocation.md +++ /dev/null @@ -1,10 +0,0 @@ -# # LiveStreamSessionLocation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **string** | The country of the viewer of the live stream. | [optional] -**city** | **string** | The city of the viewer of the live stream. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LiveStreamSessionReferrer.md b/docs/Model/LiveStreamSessionReferrer.md deleted file mode 100644 index 36b90d7..0000000 --- a/docs/Model/LiveStreamSessionReferrer.md +++ /dev/null @@ -1,12 +0,0 @@ -# # LiveStreamSessionReferrer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **string** | The website the viewer of the live stream was referred to in order to view the live stream. | [optional] -**medium** | **string** | The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement. | [optional] -**source** | **string** | Where the viewer came from to see the live stream (usually where they searched from). | [optional] -**searchTerm** | **string** | What term they searched for that led them to the live stream. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LiveStreamSessionSession.md b/docs/Model/LiveStreamSessionSession.md deleted file mode 100644 index bd9e1d8..0000000 --- a/docs/Model/LiveStreamSessionSession.md +++ /dev/null @@ -1,11 +0,0 @@ -# # LiveStreamSessionSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **string** | A unique identifier for your session. You can use this to track what happens during a specific session. | [optional] -**loadedAt** | [**\DateTime**](\DateTime.md) | When the session started, with the date and time presented in ISO-8601 format. | [optional] -**endedAt** | [**\DateTime**](\DateTime.md) | When the session ended, with the date and time presented in ISO-8601 format. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/VideoSessionLocation.md b/docs/Model/UnrecognizedRequestUrl.md similarity index 50% rename from docs/Model/VideoSessionLocation.md rename to docs/Model/UnrecognizedRequestUrl.md index 2805535..710f4c9 100644 --- a/docs/Model/VideoSessionLocation.md +++ b/docs/Model/UnrecognizedRequestUrl.md @@ -1,10 +1,11 @@ -# # VideoSessionLocation +# # UnrecognizedRequestUrl ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**country** | **string** | The country of the viewer. | [optional] -**city** | **string** | The city of the viewer. | [optional] +**type** | **string** | A link to the error documentation. | [optional] +**title** | **string** | A description of the error that occurred. | [optional] +**status** | **int** | The HTTP status code. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/VideoSession.md b/docs/Model/VideoSession.md deleted file mode 100644 index 494eb21..0000000 --- a/docs/Model/VideoSession.md +++ /dev/null @@ -1,14 +0,0 @@ -# # VideoSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**session** | [**\ApiVideo\Client\Model\VideoSessionSession**](VideoSessionSession.md) | | [optional] -**location** | [**\ApiVideo\Client\Model\VideoSessionLocation**](VideoSessionLocation.md) | | [optional] -**referrer** | [**\ApiVideo\Client\Model\VideoSessionReferrer**](VideoSessionReferrer.md) | | [optional] -**device** | [**\ApiVideo\Client\Model\VideoSessionDevice**](VideoSessionDevice.md) | | [optional] -**os** | [**\ApiVideo\Client\Model\VideoSessionOs**](VideoSessionOs.md) | | [optional] -**client** | [**\ApiVideo\Client\Model\VideoSessionClient**](VideoSessionClient.md) | | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/VideoSessionClient.md b/docs/Model/VideoSessionClient.md deleted file mode 100644 index ba59895..0000000 --- a/docs/Model/VideoSessionClient.md +++ /dev/null @@ -1,11 +0,0 @@ -# # VideoSessionClient - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the browser used to view the video session. | [optional] -**version** | **string** | The version of the browser used to view the video session. | [optional] -**type** | **string** | The type of client used to view the video session. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/VideoSessionDevice.md b/docs/Model/VideoSessionDevice.md deleted file mode 100644 index 192eca9..0000000 --- a/docs/Model/VideoSessionDevice.md +++ /dev/null @@ -1,11 +0,0 @@ -# # VideoSessionDevice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **string** | What the type is like desktop, laptop, mobile. | [optional] -**vendor** | **string** | If known, what the brand of the device is, like Apple, Dell, etc. | [optional] -**model** | **string** | The specific model of the device, if known. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/VideoSessionOs.md b/docs/Model/VideoSessionOs.md deleted file mode 100644 index 8e153da..0000000 --- a/docs/Model/VideoSessionOs.md +++ /dev/null @@ -1,11 +0,0 @@ -# # VideoSessionOs - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the operating system. | [optional] -**shortname** | **string** | The nickname for the operating system, often representing the version. | [optional] -**version** | **string** | The version of the operating system. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/VideoSessionReferrer.md b/docs/Model/VideoSessionReferrer.md deleted file mode 100644 index e567183..0000000 --- a/docs/Model/VideoSessionReferrer.md +++ /dev/null @@ -1,12 +0,0 @@ -# # VideoSessionReferrer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **string** | The link the viewer used to reach the video session. | [optional] -**medium** | **string** | How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement. | [optional] -**source** | **string** | The source the referrer came from to the video session. For example if they searched through google to find the stream. | [optional] -**searchTerm** | **string** | The search term they typed to arrive at the video session. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/VideoSessionSession.md b/docs/Model/VideoSessionSession.md deleted file mode 100644 index f0e5bb9..0000000 --- a/docs/Model/VideoSessionSession.md +++ /dev/null @@ -1,12 +0,0 @@ -# # VideoSessionSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **string** | The unique identifier for the session that you can use to track what happens during it. | [optional] -**loadedAt** | [**\DateTime**](\DateTime.md) | When the video session started, presented in ISO-8601 format. | [optional] -**endedAt** | [**\DateTime**](\DateTime.md) | When the video session ended, presented in ISO-8601 format. | [optional] -**metadata** | [**\ApiVideo\Client\Model\Metadata[]**](Metadata.md) | A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos. | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/src/Model/LiveStreamSession.php b/src/Model/LiveStreamSession.php deleted file mode 100644 index f3e7fa0..0000000 --- a/src/Model/LiveStreamSession.php +++ /dev/null @@ -1,304 +0,0 @@ - '\ApiVideo\Client\Model\LiveStreamSessionSession', - 'location' => '\ApiVideo\Client\Model\LiveStreamSessionLocation', - 'referrer' => '\ApiVideo\Client\Model\LiveStreamSessionReferrer', - 'device' => '\ApiVideo\Client\Model\LiveStreamSessionDevice', - 'os' => '\ApiVideo\Client\Model\VideoSessionOs', - 'client' => '\ApiVideo\Client\Model\LiveStreamSessionClient' - ], - [ - 'session' => null, - 'location' => null, - 'referrer' => null, - 'device' => null, - 'os' => null, - 'client' => null - ], - [ - 'session' => 'session', - 'location' => 'location', - 'referrer' => 'referrer', - 'device' => 'device', - 'os' => 'os', - 'client' => 'client' - ], - [ - 'session' => 'setSession', - 'location' => 'setLocation', - 'referrer' => 'setReferrer', - 'device' => 'setDevice', - 'os' => 'setOs', - 'client' => 'setClient' - ], - [ - 'session' => 'getSession', - 'location' => 'getLocation', - 'referrer' => 'getReferrer', - 'device' => 'getDevice', - 'os' => 'getOs', - 'client' => 'getClient' - ], - [ - 'session' => null, - 'location' => null, - 'referrer' => null, - 'device' => null, - 'os' => null, - 'client' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['session'] = isset($data['session']) ? new LiveStreamSessionSession($data['session']) : null; - $this->container['location'] = isset($data['location']) ? new LiveStreamSessionLocation($data['location']) : null; - $this->container['referrer'] = isset($data['referrer']) ? new LiveStreamSessionReferrer($data['referrer']) : null; - $this->container['device'] = isset($data['device']) ? new LiveStreamSessionDevice($data['device']) : null; - $this->container['os'] = isset($data['os']) ? new VideoSessionOs($data['os']) : null; - $this->container['client'] = isset($data['client']) ? new LiveStreamSessionClient($data['client']) : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets session - * - * @return \ApiVideo\Client\Model\LiveStreamSessionSession|null - */ - public function getSession() - { - return $this->container['session']; - } - - /** - * Sets session - * - * @param \ApiVideo\Client\Model\LiveStreamSessionSession|null $session session - * - * @return self - */ - public function setSession($session) - { - $this->container['session'] = $session; - - return $this; - } - - /** - * Gets location - * - * @return \ApiVideo\Client\Model\LiveStreamSessionLocation|null - */ - public function getLocation() - { - return $this->container['location']; - } - - /** - * Sets location - * - * @param \ApiVideo\Client\Model\LiveStreamSessionLocation|null $location location - * - * @return self - */ - public function setLocation($location) - { - $this->container['location'] = $location; - - return $this; - } - - /** - * Gets referrer - * - * @return \ApiVideo\Client\Model\LiveStreamSessionReferrer|null - */ - public function getReferrer() - { - return $this->container['referrer']; - } - - /** - * Sets referrer - * - * @param \ApiVideo\Client\Model\LiveStreamSessionReferrer|null $referrer referrer - * - * @return self - */ - public function setReferrer($referrer) - { - $this->container['referrer'] = $referrer; - - return $this; - } - - /** - * Gets device - * - * @return \ApiVideo\Client\Model\LiveStreamSessionDevice|null - */ - public function getDevice() - { - return $this->container['device']; - } - - /** - * Sets device - * - * @param \ApiVideo\Client\Model\LiveStreamSessionDevice|null $device device - * - * @return self - */ - public function setDevice($device) - { - $this->container['device'] = $device; - - return $this; - } - - /** - * Gets os - * - * @return \ApiVideo\Client\Model\VideoSessionOs|null - */ - public function getOs() - { - return $this->container['os']; - } - - /** - * Sets os - * - * @param \ApiVideo\Client\Model\VideoSessionOs|null $os os - * - * @return self - */ - public function setOs($os) - { - $this->container['os'] = $os; - - return $this; - } - - /** - * Gets client - * - * @return \ApiVideo\Client\Model\LiveStreamSessionClient|null - */ - public function getClient() - { - return $this->container['client']; - } - - /** - * Sets client - * - * @param \ApiVideo\Client\Model\LiveStreamSessionClient|null $client client - * - * @return self - */ - public function setClient($client) - { - $this->container['client'] = $client; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/LiveStreamSessionClient.php b/src/Model/LiveStreamSessionClient.php deleted file mode 100644 index fdca8fb..0000000 --- a/src/Model/LiveStreamSessionClient.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'version' => 'string', - 'type' => 'string' - ], - [ - 'name' => null, - 'version' => null, - 'type' => null - ], - [ - 'name' => 'name', - 'version' => 'version', - 'type' => 'type' - ], - [ - 'name' => 'setName', - 'version' => 'setVersion', - 'type' => 'setType' - ], - [ - 'name' => 'getName', - 'version' => 'getVersion', - 'type' => 'getType' - ], - [ - 'name' => null, - 'version' => null, - 'type' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['version'] = $data['version'] ?? null; - $this->container['type'] = $data['type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name of the browser used to view the live stream session. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets version - * - * @return string|null - */ - public function getVersion() - { - return $this->container['version']; - } - - /** - * Sets version - * - * @param string|null $version The version of the browser used to view the live stream session. - * - * @return self - */ - public function setVersion($version) - { - $this->container['version'] = $version; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type The type of client used to view the live stream session. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/LiveStreamSessionDevice.php b/src/Model/LiveStreamSessionDevice.php deleted file mode 100644 index ddc414b..0000000 --- a/src/Model/LiveStreamSessionDevice.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'vendor' => 'string', - 'model' => 'string' - ], - [ - 'type' => null, - 'vendor' => null, - 'model' => null - ], - [ - 'type' => 'type', - 'vendor' => 'vendor', - 'model' => 'model' - ], - [ - 'type' => 'setType', - 'vendor' => 'setVendor', - 'model' => 'setModel' - ], - [ - 'type' => 'getType', - 'vendor' => 'getVendor', - 'model' => 'getModel' - ], - [ - 'type' => null, - 'vendor' => null, - 'model' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['type'] = $data['type'] ?? null; - $this->container['vendor'] = $data['vendor'] ?? null; - $this->container['model'] = $data['model'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type What the type is like desktop, laptop, mobile. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - - /** - * Gets vendor - * - * @return string|null - */ - public function getVendor() - { - return $this->container['vendor']; - } - - /** - * Sets vendor - * - * @param string|null $vendor If known, what the brand of the device is, like Apple, Dell, etc. - * - * @return self - */ - public function setVendor($vendor) - { - $this->container['vendor'] = $vendor; - - return $this; - } - - /** - * Gets model - * - * @return string|null - */ - public function getModel() - { - return $this->container['model']; - } - - /** - * Sets model - * - * @param string|null $model The specific model of the device, if known. - * - * @return self - */ - public function setModel($model) - { - $this->container['model'] = $model; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/LiveStreamSessionLocation.php b/src/Model/LiveStreamSessionLocation.php deleted file mode 100644 index bd44ca5..0000000 --- a/src/Model/LiveStreamSessionLocation.php +++ /dev/null @@ -1,181 +0,0 @@ - 'string', - 'city' => 'string' - ], - [ - 'country' => null, - 'city' => null - ], - [ - 'country' => 'country', - 'city' => 'city' - ], - [ - 'country' => 'setCountry', - 'city' => 'setCity' - ], - [ - 'country' => 'getCountry', - 'city' => 'getCity' - ], - [ - 'country' => null, - 'city' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['country'] = $data['country'] ?? null; - $this->container['city'] = $data['city'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets country - * - * @return string|null - */ - public function getCountry() - { - return $this->container['country']; - } - - /** - * Sets country - * - * @param string|null $country The country of the viewer of the live stream. - * - * @return self - */ - public function setCountry($country) - { - $this->container['country'] = $country; - - return $this; - } - - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city of the viewer of the live stream. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/LiveStreamSessionReferrer.php b/src/Model/LiveStreamSessionReferrer.php deleted file mode 100644 index a9c60e2..0000000 --- a/src/Model/LiveStreamSessionReferrer.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string', - 'medium' => 'string', - 'source' => 'string', - 'searchTerm' => 'string' - ], - [ - 'url' => null, - 'medium' => null, - 'source' => null, - 'searchTerm' => null - ], - [ - 'url' => 'url', - 'medium' => 'medium', - 'source' => 'source', - 'searchTerm' => 'searchTerm' - ], - [ - 'url' => 'setUrl', - 'medium' => 'setMedium', - 'source' => 'setSource', - 'searchTerm' => 'setSearchTerm' - ], - [ - 'url' => 'getUrl', - 'medium' => 'getMedium', - 'source' => 'getSource', - 'searchTerm' => 'getSearchTerm' - ], - [ - 'url' => null, - 'medium' => null, - 'source' => null, - 'searchTerm' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['url'] = $data['url'] ?? null; - $this->container['medium'] = $data['medium'] ?? null; - $this->container['source'] = $data['source'] ?? null; - $this->container['searchTerm'] = $data['searchTerm'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The website the viewer of the live stream was referred to in order to view the live stream. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets medium - * - * @return string|null - */ - public function getMedium() - { - return $this->container['medium']; - } - - /** - * Sets medium - * - * @param string|null $medium The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement. - * - * @return self - */ - public function setMedium($medium) - { - $this->container['medium'] = $medium; - - return $this; - } - - /** - * Gets source - * - * @return string|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param string|null $source Where the viewer came from to see the live stream (usually where they searched from). - * - * @return self - */ - public function setSource($source) - { - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets searchTerm - * - * @return string|null - */ - public function getSearchTerm() - { - return $this->container['searchTerm']; - } - - /** - * Sets searchTerm - * - * @param string|null $searchTerm What term they searched for that led them to the live stream. - * - * @return self - */ - public function setSearchTerm($searchTerm) - { - $this->container['searchTerm'] = $searchTerm; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/LiveStreamSessionSession.php b/src/Model/LiveStreamSessionSession.php deleted file mode 100644 index ff77f2b..0000000 --- a/src/Model/LiveStreamSessionSession.php +++ /dev/null @@ -1,211 +0,0 @@ - 'string', - 'loadedAt' => '\DateTime', - 'endedAt' => '\DateTime' - ], - [ - 'sessionId' => null, - 'loadedAt' => 'date-time', - 'endedAt' => 'date-time' - ], - [ - 'sessionId' => 'sessionId', - 'loadedAt' => 'loadedAt', - 'endedAt' => 'endedAt' - ], - [ - 'sessionId' => 'setSessionId', - 'loadedAt' => 'setLoadedAt', - 'endedAt' => 'setEndedAt' - ], - [ - 'sessionId' => 'getSessionId', - 'loadedAt' => 'getLoadedAt', - 'endedAt' => 'getEndedAt' - ], - [ - 'sessionId' => null, - 'loadedAt' => null, - 'endedAt' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sessionId'] = $data['sessionId'] ?? null; - $this->container['loadedAt'] = isset($data['loadedAt']) ? new \DateTime($data['loadedAt']) : null; - $this->container['endedAt'] = isset($data['endedAt']) ? new \DateTime($data['endedAt']) : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets sessionId - * - * @return string|null - */ - public function getSessionId() - { - return $this->container['sessionId']; - } - - /** - * Sets sessionId - * - * @param string|null $sessionId A unique identifier for your session. You can use this to track what happens during a specific session. - * - * @return self - */ - public function setSessionId($sessionId) - { - $this->container['sessionId'] = $sessionId; - - return $this; - } - - /** - * Gets loadedAt - * - * @return \DateTime|null - */ - public function getLoadedAt() - { - return $this->container['loadedAt']; - } - - /** - * Sets loadedAt - * - * @param \DateTime|null $loadedAt When the session started, with the date and time presented in ISO-8601 format. - * - * @return self - */ - public function setLoadedAt($loadedAt) - { - $this->container['loadedAt'] = $loadedAt; - - return $this; - } - - /** - * Gets endedAt - * - * @return \DateTime|null - */ - public function getEndedAt() - { - return $this->container['endedAt']; - } - - /** - * Sets endedAt - * - * @param \DateTime|null $endedAt When the session ended, with the date and time presented in ISO-8601 format. - * - * @return self - */ - public function setEndedAt($endedAt) - { - $this->container['endedAt'] = $endedAt; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/VideoSessionDevice.php b/src/Model/UnrecognizedRequestUrl.php similarity index 69% rename from src/Model/VideoSessionDevice.php rename to src/Model/UnrecognizedRequestUrl.php index 00e9931..69053ed 100644 --- a/src/Model/VideoSessionDevice.php +++ b/src/Model/UnrecognizedRequestUrl.php @@ -17,49 +17,48 @@ use ApiVideo\Client\ObjectSerializer; /** - * VideoSessionDevice Class Doc Comment + * UnrecognizedRequestUrl Class Doc Comment * * @category Class - * @description What type of device the user is on when in the video session. * @package ApiVideo\Client * @template TKey int|null * @template TValue mixed|null */ -class VideoSessionDevice implements ModelInterface, \JsonSerializable +class UnrecognizedRequestUrl implements ModelInterface, \JsonSerializable { public static function getDefinition(): ModelDefinition { return new ModelDefinition( - 'video-session-device', + 'unrecognized-request-url', [ 'type' => 'string', - 'vendor' => 'string', - 'model' => 'string' + 'title' => 'string', + 'status' => 'int' ], [ 'type' => null, - 'vendor' => null, - 'model' => null + 'title' => null, + 'status' => null ], [ 'type' => 'type', - 'vendor' => 'vendor', - 'model' => 'model' + 'title' => 'title', + 'status' => 'status' ], [ 'type' => 'setType', - 'vendor' => 'setVendor', - 'model' => 'setModel' + 'title' => 'setTitle', + 'status' => 'setStatus' ], [ 'type' => 'getType', - 'vendor' => 'getVendor', - 'model' => 'getModel' + 'title' => 'getTitle', + 'status' => 'getStatus' ], [ 'type' => null, - 'vendor' => null, - 'model' => null + 'title' => null, + 'status' => null ], null ); @@ -82,8 +81,8 @@ public static function getDefinition(): ModelDefinition public function __construct(array $data = null) { $this->container['type'] = $data['type'] ?? null; - $this->container['vendor'] = $data['vendor'] ?? null; - $this->container['model'] = $data['model'] ?? null; + $this->container['title'] = $data['title'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -123,7 +122,7 @@ public function getType() /** * Sets type * - * @param string|null $type What the type is like desktop, laptop, mobile. + * @param string|null $type A link to the error documentation. * * @return self */ @@ -135,49 +134,49 @@ public function setType($type) } /** - * Gets vendor + * Gets title * * @return string|null */ - public function getVendor() + public function getTitle() { - return $this->container['vendor']; + return $this->container['title']; } /** - * Sets vendor + * Sets title * - * @param string|null $vendor If known, what the brand of the device is, like Apple, Dell, etc. + * @param string|null $title A description of the error that occurred. * * @return self */ - public function setVendor($vendor) + public function setTitle($title) { - $this->container['vendor'] = $vendor; + $this->container['title'] = $title; return $this; } /** - * Gets model + * Gets status * - * @return string|null + * @return int|null */ - public function getModel() + public function getStatus() { - return $this->container['model']; + return $this->container['status']; } /** - * Sets model + * Sets status * - * @param string|null $model The specific model of the device, if known. + * @param int|null $status The HTTP status code. * * @return self */ - public function setModel($model) + public function setStatus($status) { - $this->container['model'] = $model; + $this->container['status'] = $status; return $this; } diff --git a/src/Model/VideoSession.php b/src/Model/VideoSession.php deleted file mode 100644 index fb6b838..0000000 --- a/src/Model/VideoSession.php +++ /dev/null @@ -1,304 +0,0 @@ - '\ApiVideo\Client\Model\VideoSessionSession', - 'location' => '\ApiVideo\Client\Model\VideoSessionLocation', - 'referrer' => '\ApiVideo\Client\Model\VideoSessionReferrer', - 'device' => '\ApiVideo\Client\Model\VideoSessionDevice', - 'os' => '\ApiVideo\Client\Model\VideoSessionOs', - 'client' => '\ApiVideo\Client\Model\VideoSessionClient' - ], - [ - 'session' => null, - 'location' => null, - 'referrer' => null, - 'device' => null, - 'os' => null, - 'client' => null - ], - [ - 'session' => 'session', - 'location' => 'location', - 'referrer' => 'referrer', - 'device' => 'device', - 'os' => 'os', - 'client' => 'client' - ], - [ - 'session' => 'setSession', - 'location' => 'setLocation', - 'referrer' => 'setReferrer', - 'device' => 'setDevice', - 'os' => 'setOs', - 'client' => 'setClient' - ], - [ - 'session' => 'getSession', - 'location' => 'getLocation', - 'referrer' => 'getReferrer', - 'device' => 'getDevice', - 'os' => 'getOs', - 'client' => 'getClient' - ], - [ - 'session' => null, - 'location' => null, - 'referrer' => null, - 'device' => null, - 'os' => null, - 'client' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['session'] = isset($data['session']) ? new VideoSessionSession($data['session']) : null; - $this->container['location'] = isset($data['location']) ? new VideoSessionLocation($data['location']) : null; - $this->container['referrer'] = isset($data['referrer']) ? new VideoSessionReferrer($data['referrer']) : null; - $this->container['device'] = isset($data['device']) ? new VideoSessionDevice($data['device']) : null; - $this->container['os'] = isset($data['os']) ? new VideoSessionOs($data['os']) : null; - $this->container['client'] = isset($data['client']) ? new VideoSessionClient($data['client']) : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets session - * - * @return \ApiVideo\Client\Model\VideoSessionSession|null - */ - public function getSession() - { - return $this->container['session']; - } - - /** - * Sets session - * - * @param \ApiVideo\Client\Model\VideoSessionSession|null $session session - * - * @return self - */ - public function setSession($session) - { - $this->container['session'] = $session; - - return $this; - } - - /** - * Gets location - * - * @return \ApiVideo\Client\Model\VideoSessionLocation|null - */ - public function getLocation() - { - return $this->container['location']; - } - - /** - * Sets location - * - * @param \ApiVideo\Client\Model\VideoSessionLocation|null $location location - * - * @return self - */ - public function setLocation($location) - { - $this->container['location'] = $location; - - return $this; - } - - /** - * Gets referrer - * - * @return \ApiVideo\Client\Model\VideoSessionReferrer|null - */ - public function getReferrer() - { - return $this->container['referrer']; - } - - /** - * Sets referrer - * - * @param \ApiVideo\Client\Model\VideoSessionReferrer|null $referrer referrer - * - * @return self - */ - public function setReferrer($referrer) - { - $this->container['referrer'] = $referrer; - - return $this; - } - - /** - * Gets device - * - * @return \ApiVideo\Client\Model\VideoSessionDevice|null - */ - public function getDevice() - { - return $this->container['device']; - } - - /** - * Sets device - * - * @param \ApiVideo\Client\Model\VideoSessionDevice|null $device device - * - * @return self - */ - public function setDevice($device) - { - $this->container['device'] = $device; - - return $this; - } - - /** - * Gets os - * - * @return \ApiVideo\Client\Model\VideoSessionOs|null - */ - public function getOs() - { - return $this->container['os']; - } - - /** - * Sets os - * - * @param \ApiVideo\Client\Model\VideoSessionOs|null $os os - * - * @return self - */ - public function setOs($os) - { - $this->container['os'] = $os; - - return $this; - } - - /** - * Gets client - * - * @return \ApiVideo\Client\Model\VideoSessionClient|null - */ - public function getClient() - { - return $this->container['client']; - } - - /** - * Sets client - * - * @param \ApiVideo\Client\Model\VideoSessionClient|null $client client - * - * @return self - */ - public function setClient($client) - { - $this->container['client'] = $client; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/VideoSessionClient.php b/src/Model/VideoSessionClient.php deleted file mode 100644 index 01d616c..0000000 --- a/src/Model/VideoSessionClient.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'version' => 'string', - 'type' => 'string' - ], - [ - 'name' => null, - 'version' => null, - 'type' => null - ], - [ - 'name' => 'name', - 'version' => 'version', - 'type' => 'type' - ], - [ - 'name' => 'setName', - 'version' => 'setVersion', - 'type' => 'setType' - ], - [ - 'name' => 'getName', - 'version' => 'getVersion', - 'type' => 'getType' - ], - [ - 'name' => null, - 'version' => null, - 'type' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['version'] = $data['version'] ?? null; - $this->container['type'] = $data['type'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name of the browser used to view the video session. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets version - * - * @return string|null - */ - public function getVersion() - { - return $this->container['version']; - } - - /** - * Sets version - * - * @param string|null $version The version of the browser used to view the video session. - * - * @return self - */ - public function setVersion($version) - { - $this->container['version'] = $version; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type The type of client used to view the video session. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/VideoSessionLocation.php b/src/Model/VideoSessionLocation.php deleted file mode 100644 index 486dcb2..0000000 --- a/src/Model/VideoSessionLocation.php +++ /dev/null @@ -1,181 +0,0 @@ - 'string', - 'city' => 'string' - ], - [ - 'country' => null, - 'city' => null - ], - [ - 'country' => 'country', - 'city' => 'city' - ], - [ - 'country' => 'setCountry', - 'city' => 'setCity' - ], - [ - 'country' => 'getCountry', - 'city' => 'getCity' - ], - [ - 'country' => null, - 'city' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['country'] = $data['country'] ?? null; - $this->container['city'] = $data['city'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets country - * - * @return string|null - */ - public function getCountry() - { - return $this->container['country']; - } - - /** - * Sets country - * - * @param string|null $country The country of the viewer. - * - * @return self - */ - public function setCountry($country) - { - $this->container['country'] = $country; - - return $this; - } - - /** - * Gets city - * - * @return string|null - */ - public function getCity() - { - return $this->container['city']; - } - - /** - * Sets city - * - * @param string|null $city The city of the viewer. - * - * @return self - */ - public function setCity($city) - { - $this->container['city'] = $city; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/VideoSessionOs.php b/src/Model/VideoSessionOs.php deleted file mode 100644 index ed647c8..0000000 --- a/src/Model/VideoSessionOs.php +++ /dev/null @@ -1,212 +0,0 @@ - 'string', - 'shortname' => 'string', - 'version' => 'string' - ], - [ - 'name' => null, - 'shortname' => null, - 'version' => null - ], - [ - 'name' => 'name', - 'shortname' => 'shortname', - 'version' => 'version' - ], - [ - 'name' => 'setName', - 'shortname' => 'setShortname', - 'version' => 'setVersion' - ], - [ - 'name' => 'getName', - 'shortname' => 'getShortname', - 'version' => 'getVersion' - ], - [ - 'name' => null, - 'shortname' => null, - 'version' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['shortname'] = $data['shortname'] ?? null; - $this->container['version'] = $data['version'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name of the operating system. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets shortname - * - * @return string|null - */ - public function getShortname() - { - return $this->container['shortname']; - } - - /** - * Sets shortname - * - * @param string|null $shortname The nickname for the operating system, often representing the version. - * - * @return self - */ - public function setShortname($shortname) - { - $this->container['shortname'] = $shortname; - - return $this; - } - - /** - * Gets version - * - * @return string|null - */ - public function getVersion() - { - return $this->container['version']; - } - - /** - * Sets version - * - * @param string|null $version The version of the operating system. - * - * @return self - */ - public function setVersion($version) - { - $this->container['version'] = $version; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/VideoSessionReferrer.php b/src/Model/VideoSessionReferrer.php deleted file mode 100644 index c2cd0fa..0000000 --- a/src/Model/VideoSessionReferrer.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string', - 'medium' => 'string', - 'source' => 'string', - 'searchTerm' => 'string' - ], - [ - 'url' => null, - 'medium' => null, - 'source' => null, - 'searchTerm' => null - ], - [ - 'url' => 'url', - 'medium' => 'medium', - 'source' => 'source', - 'searchTerm' => 'searchTerm' - ], - [ - 'url' => 'setUrl', - 'medium' => 'setMedium', - 'source' => 'setSource', - 'searchTerm' => 'setSearchTerm' - ], - [ - 'url' => 'getUrl', - 'medium' => 'getMedium', - 'source' => 'getSource', - 'searchTerm' => 'getSearchTerm' - ], - [ - 'url' => null, - 'medium' => null, - 'source' => null, - 'searchTerm' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['url'] = $data['url'] ?? null; - $this->container['medium'] = $data['medium'] ?? null; - $this->container['source'] = $data['source'] ?? null; - $this->container['searchTerm'] = $data['searchTerm'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The link the viewer used to reach the video session. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets medium - * - * @return string|null - */ - public function getMedium() - { - return $this->container['medium']; - } - - /** - * Sets medium - * - * @param string|null $medium How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement. - * - * @return self - */ - public function setMedium($medium) - { - $this->container['medium'] = $medium; - - return $this; - } - - /** - * Gets source - * - * @return string|null - */ - public function getSource() - { - return $this->container['source']; - } - - /** - * Sets source - * - * @param string|null $source The source the referrer came from to the video session. For example if they searched through google to find the stream. - * - * @return self - */ - public function setSource($source) - { - $this->container['source'] = $source; - - return $this; - } - - /** - * Gets searchTerm - * - * @return string|null - */ - public function getSearchTerm() - { - return $this->container['searchTerm']; - } - - /** - * Sets searchTerm - * - * @param string|null $searchTerm The search term they typed to arrive at the video session. - * - * @return self - */ - public function setSearchTerm($searchTerm) - { - $this->container['searchTerm'] = $searchTerm; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - - diff --git a/src/Model/VideoSessionSession.php b/src/Model/VideoSessionSession.php deleted file mode 100644 index 9fd984f..0000000 --- a/src/Model/VideoSessionSession.php +++ /dev/null @@ -1,242 +0,0 @@ - 'string', - 'loadedAt' => '\DateTime', - 'endedAt' => '\DateTime', - 'metadata' => '\ApiVideo\Client\Model\Metadata[]' - ], - [ - 'sessionId' => null, - 'loadedAt' => 'date-time', - 'endedAt' => 'date-time', - 'metadata' => null - ], - [ - 'sessionId' => 'sessionId', - 'loadedAt' => 'loadedAt', - 'endedAt' => 'endedAt', - 'metadata' => 'metadata' - ], - [ - 'sessionId' => 'setSessionId', - 'loadedAt' => 'setLoadedAt', - 'endedAt' => 'setEndedAt', - 'metadata' => 'setMetadata' - ], - [ - 'sessionId' => 'getSessionId', - 'loadedAt' => 'getLoadedAt', - 'endedAt' => 'getEndedAt', - 'metadata' => 'getMetadata' - ], - [ - 'sessionId' => null, - 'loadedAt' => null, - 'endedAt' => null, - 'metadata' => null - ], - null - ); - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['sessionId'] = $data['sessionId'] ?? null; - $this->container['loadedAt'] = isset($data['loadedAt']) ? new \DateTime($data['loadedAt']) : null; - $this->container['endedAt'] = isset($data['endedAt']) ? new \DateTime($data['endedAt']) : null; - $this->container['metadata'] = isset($data['metadata']) ? array_map(function(array $value): Metadata { return new Metadata($value); }, $data['metadata']) : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets sessionId - * - * @return string|null - */ - public function getSessionId() - { - return $this->container['sessionId']; - } - - /** - * Sets sessionId - * - * @param string|null $sessionId The unique identifier for the session that you can use to track what happens during it. - * - * @return self - */ - public function setSessionId($sessionId) - { - $this->container['sessionId'] = $sessionId; - - return $this; - } - - /** - * Gets loadedAt - * - * @return \DateTime|null - */ - public function getLoadedAt() - { - return $this->container['loadedAt']; - } - - /** - * Sets loadedAt - * - * @param \DateTime|null $loadedAt When the video session started, presented in ISO-8601 format. - * - * @return self - */ - public function setLoadedAt($loadedAt) - { - $this->container['loadedAt'] = $loadedAt; - - return $this; - } - - /** - * Gets endedAt - * - * @return \DateTime|null - */ - public function getEndedAt() - { - return $this->container['endedAt']; - } - - /** - * Sets endedAt - * - * @param \DateTime|null $endedAt When the video session ended, presented in ISO-8601 format. - * - * @return self - */ - public function setEndedAt($endedAt) - { - $this->container['endedAt'] = $endedAt; - - return $this; - } - - /** - * Gets metadata - * - * @return \ApiVideo\Client\Model\Metadata[]|null - */ - public function getMetadata() - { - return $this->container['metadata']; - } - - /** - * Sets metadata - * - * @param \ApiVideo\Client\Model\Metadata[]|null $metadata A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos. - * - * @return self - */ - public function setMetadata($metadata) - { - $this->container['metadata'] = $metadata; - - return $this; - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } -} - -